{"Template_token": ["", "const", "char", "*", "msp430_select_hwmult_lib", "(", "int", "argc", "ATTRIBUTE_UNUSED", ",", "const", "char", "*", "*", "argv", "ATTRIBUTE_UNUSED", ")", "{", "int", "i", ";", "switch", "(", "argc", ")", "{", "case", "", ":", "if", "(", "strcasecmp", "(", "argv", "[", "", "]", ",", "", ")", ")", "error", "(", "", ",", "argv", "[", "", "]", ")", ";", "break", ";", "default", ":", "if", "(", "strcasecmp", "(", "argv", "[", "", "]", ",", "", ")", "==", "", ")", "{", "static", "struct", "hwmult_options", "{", "const", "char", "*", "name", ";", "const", "char", "*", "lib", ";", "}", "hwmult_options", "[", "]", "=", "{", "{", "", ",", "", "}", ",", "{", "", ",", "", "}", ",", "{", "", ",", "", "}", ",", "{", "", ",", "", "}", ",", "{", "", ",", "", "}", "}", ";", "for", "(", "i", "=", "ARRAY_SIZE", "(", "hwmult_options", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "argv", "[", "argc", "-", "", "]", ",", "hwmult_options", "[", "i", "]", ".", "name", ")", "==", "", ")", "return", "hwmult_options", "[", "i", "]", ".", "lib", ";", "}", "else", "if", "(", "strcasecmp", "(", "argv", "[", "", "]", ",", "", ")", "==", "", ")", "{", "for", "(", "i", "=", "ARRAY_SIZE", "(", "msp430_mcu_data", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "argv", "[", "argc", "-", "", "]", ",", "msp430_mcu_data", "[", "i", "]", ".", "name", ")", "==", "", ")", "{", "switch", "(", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", ")", "{", "case", "", ":", "return", "", ";"], "ground_truth": ["case", "", ":"], "File": "driver-msp4303", "Func": "msp430_select_hwmult_lib", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200496, "Length": 233, "Cover_Rate": 0.7766666666666666} {"Template_token": ["", "if", "(", "msp430_check_env_var_for_devices", "(", "&", "devices_csv_path", ")", ")", "return", "NULL", ";", "return", "concat", "(", "", ",", "msp430_dirname", "(", "devices_csv_path", ")", ",", "NULL", ")", ";"], "ground_truth": ["}"], "File": "driver-msp430", "Func": "msp430_get_linker_devices_include_path", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200497, "Length": 25, "Cover_Rate": 0.5434782608695652} {"Template_token": ["", "const", "char", "*", "msp430_get_linker_devices_include_path", "(", "int", "argc", "ATTRIBUTE_UNUSED", ",", "const", "char", "*", "*", "argv", "ATTRIBUTE_UNUSED", ")", "{", "char", "*", "devices_csv_path", ";", "if", "(", "msp430_check_env_var_for_devices", "(", "&", "devices_csv_path", ")", ")", "return", "NULL", ";"], "ground_truth": ["return", "concat", "(", "", ",", "msp430_dirname", "(", "devices_csv_path", ")", ",", "NULL", ")", ";"], "File": "driver-msp430", "Func": "msp430_get_linker_devices_include_path", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200498, "Length": 45, "Cover_Rate": 0.9782608695652174} {"Template_token": ["", "if", "(", "strcmp", "(", "argv", "[", "", "]", ",", "", ")", "!=", "", ")", "return", "argv", "[", "", "]", ";", "else", "if", "(", "(", "argc", "==", "", ")", "&&", "(", "strcmp", "(", "argv", "[", "", "]", ",", "", ")", "==", "", ")", ")", "return", "argv", "[", "", "]", ";", "return", "", ";"], "ground_truth": ["}"], "File": "driver-msp430", "Func": "msp430_propagate_region_opt", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200499, "Length": 53, "Cover_Rate": 0.7794117647058824} {"Template_token": ["", "error", "(", "", ")", ";", "return", "NULL", ";", "}", "msp430_extract_mcu_data", "(", "argv", "[", "", "]", ")", ";", "if", "(", "extracted_mcu_data", ".", "name", "!=", "NULL", ")", "{", "switch", "(", "extracted_mcu_data", ".", "revision", ")", "{", "case", "", ":", "return", "", ";"], "ground_truth": ["case", "", ":", "return", "", ";"], "File": "driver-msp430", "Func": "msp430_select_cpu", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200501, "Length": 45, "Cover_Rate": 0.5294117647058824} {"Template_token": ["", "static", "struct", "hwmult_options", "{", "const", "char", "*", "name", ";", "const", "char", "*", "lib", ";", "}", "hwmult_options", "[", "]", "=", "{", "{", "", ",", "", "}", ",", "{", "", ",", "", "}", ",", "{", "", ",", "", "}", ",", "{", "", ",", "", "}", ",", "{", "", ",", "", "}", "}", ";", "for", "(", "i", "=", "ARRAY_SIZE", "(", "hwmult_options", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "argv", "[", "argc", "-", "", "]", ",", "hwmult_options", "[", "i", "]", ".", "name", ")", "==", "", ")", "return", "hwmult_options", "[", "i", "]", ".", "lib", ";", "}", "else", "if", "(", "strcasecmp", "(", "argv", "[", "", "]", ",", "", ")", "==", "", ")", "{", "msp430_extract_mcu_data", "(", "argv", "[", "argc", "-", "", "]", ")", ";", "if", "(", "extracted_mcu_data", ".", "name", "!=", "NULL", ")", "{", "switch", "(", "extracted_mcu_data", ".", "hwmpy", ")", "{", "case", "", ":", "return", "", ";", "case", "", ":", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "break", ";", "}", "}", "}", "else", "error", "(", "", ",", "argv", "[", "", "]", ")", ";", "break", ";"], "ground_truth": ["case", "", ":"], "File": "driver-msp430", "Func": "msp430_select_hwmult_lib", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200502, "Length": 190, "Cover_Rate": 0.7011070110701108} {"Template_token": ["", "else", "if", "(", "strcmp", "(", "argv", "[", "", "]", ",", "", ")", "==", "", ")", "msp430_warn_devices_csv", "=", "atoi", "(", "argv", "[", "", "]", ")", ";", "else", "if", "(", "strcmp", "(", "argv", "[", "", "]", ",", "", ")", "==", "", ")", "msp430_devices_csv_loc", "=", "argv", "[", "", "]", ";", "else", "error", "(", "", ",", "argv", "[", "", "]", ",", "argv", "[", "", "]", ")", ";"], "ground_truth": ["return", "NULL", ";"], "File": "driver-msp430", "Func": "msp430_set_driver_var", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200503, "Length": 66, "Cover_Rate": 0.7096774193548387} {"Template_token": ["", "if", "(", "argc", "!=", "", ")", "error", "(", "", ")", ";", "else", "if", "(", "strcmp", "(", "argv", "[", "", "]", ",", "", ")", "==", "", ")", "msp430_warn_devices_csv", "=", "atoi", "(", "argv", "[", "", "]", ")", ";", "else", "if", "(", "strcmp", "(", "argv", "[", "", "]", ",", "", ")", "==", "", ")", "msp430_devices_csv_loc", "=", "argv", "[", "", "]", ";", "else", "error", "(", "", ",", "argv", "[", "", "]", ",", "argv", "[", "", "]", ")", ";", "return", "NULL", ";"], "ground_truth": ["}"], "File": "driver-msp430", "Func": "msp430_set_driver_var", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200504, "Length": 78, "Cover_Rate": 0.8387096774193549} {"Template_token": ["", "c_register_addr_space", "(", "", ",", "ADDR_SPACE_NEAR", ")", ";"], "ground_truth": ["if", "(", "msp430x", ")", "c_register_addr_space", "(", "", ",", "ADDR_SPACE_FAR", ")", ";"], "File": "msp430-c", "Func": "msp430_register_pragmas", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200506, "Length": 18, "Cover_Rate": 0.72} {"Template_token": ["", "char", "*", "t_path", "=", "*", "path", ";", "int", "len", "=", "strlen", "(", "t_path", ")", ";", "int", "i", ";"], "ground_truth": ["for", "(", "i", "=", "", ";", "i", "<", "len", ";", "i", "++", ")", "if", "(", "IS_DIR_SEPARATOR", "(", "t_path", "[", "i", "]", ")", ")", "t_path", "[", "i", "]", "=", "DIR_SEPARATOR", ";"], "File": "msp430-devices", "Func": "canonicalize_path_dirsep", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200507, "Length": 48, "Cover_Rate": 0.8135593220338984} {"Template_token": ["", "char", "*", "t_path", "=", "*", "path", ";", "int", "len", "=", "strlen", "(", "t_path", ")", ";", "int", "i", ";", "for", "(", "i", "=", "", ";", "i", "<", "len", ";", "i", "++", ")", "if", "(", "IS_DIR_SEPARATOR", "(", "t_path", "[", "i", "]", ")", ")", "t_path", "[", "i", "]", "=", "DIR_SEPARATOR", ";"], "ground_truth": ["}"], "File": "msp430-devices", "Func": "canonicalize_path_dirsep", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200508, "Length": 49, "Cover_Rate": 0.8305084745762712} {"Template_token": ["", "static", "void", "extract_devices_dir_from_collect_gcc", "(", "char", "*", "*", "devices_loc", ")", "{", "char", "*", "t_devices_loc", "=", "*", "devices_loc", ";"], "ground_truth": ["t_devices_loc", "=", "msp430_dirname", "(", "msp430_dirname", "(", "t_devices_loc", ")", ")", ";"], "File": "msp430-devices", "Func": "extract_devices_dir_from_collect_gcc", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200509, "Length": 27, "Cover_Rate": 0.6136363636363636} {"Template_token": ["", "temp", "=", "gcc_exec_prefix", "+", "len", "-", "sizeof", "(", "", ")", "+", "", ";", "if", "(", "IS_DIR_SEPARATOR", "(", "*", "temp", ")", "&&", "filename_ncmp", "(", "temp", "+", "", ",", "", ",", "", ")", "==", "", "&&", "IS_DIR_SEPARATOR", "(", "temp", "[", "", "]", ")", "&&", "filename_ncmp", "(", "temp", "+", "", ",", "", ",", "", ")", "==", "", ")", "{", "len", "-=", "sizeof", "(", "", ")", "-", "", ";", "gcc_exec_prefix", "[", "len", "+", "", "]", "=", "(", "char", ")", "", ";", "*", "devices_loc", "=", "concat", "(", "gcc_exec_prefix", ",", "rest_of_devices_path", ",", "NULL", ")", ";"], "ground_truth": ["return", ";"], "File": "msp430-devices", "Func": "extract_devices_dir_from_exec_prefix", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200510, "Length": 91, "Cover_Rate": 0.6026490066225165} {"Template_token": ["", "int", "len", "=", "strlen", "(", "gcc_exec_prefix", ")", ";", "if", "(", "len", ">", "(", "int", ")", "sizeof", "(", "", ")", "-", "", "&&", "(", "IS_DIR_SEPARATOR", "(", "gcc_exec_prefix", "[", "len", "-", "", "]", ")", ")", ")", "{", "temp", "=", "gcc_exec_prefix", "+", "len", "-", "sizeof", "(", "", ")", "+", "", ";", "if", "(", "IS_DIR_SEPARATOR", "(", "*", "temp", ")", "&&", "filename_ncmp", "(", "temp", "+", "", ",", "", ",", "", ")", "==", "", "&&", "IS_DIR_SEPARATOR", "(", "temp", "[", "", "]", ")", "&&", "filename_ncmp", "(", "temp", "+", "", ",", "", ",", "", ")", "==", "", ")", "{", "len", "-=", "sizeof", "(", "", ")", "-", "", ";", "gcc_exec_prefix", "[", "len", "+", "", "]", "=", "(", "char", ")", "", ";", "*", "devices_loc", "=", "concat", "(", "gcc_exec_prefix", ",", "rest_of_devices_path", ",", "NULL", ")", ";", "return", ";", "}", "}"], "ground_truth": ["}"], "File": "msp430-devices", "Func": "extract_devices_dir_from_exec_prefix", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200511, "Length": 129, "Cover_Rate": 0.8543046357615894} {"Template_token": ["", "t_devices_loc", "=", "xstrdup", "(", "val", ")", ";", "if", "(", "i", "==", "MSP430_GCC_INCLUDE_DIR", ")", "{", "if", "(", "!", "IS_DIR_SEPARATOR", "(", "t_devices_loc", "[", "strlen", "(", "t_devices_loc", ")", "-", "", "]", ")", ")", "t_devices_loc", "=", "concat", "(", "t_devices_loc", ",", "dirsep", ",", "NULL", ")", ";", "}", "else", "if", "(", "i", "==", "GCC_EXEC_PREFIX", ")", "extract_devices_dir_from_exec_prefix", "(", "&", "t_devices_loc", ")", ";", "else", "if", "(", "i", "==", "COLLECT_GCC", ")", "extract_devices_dir_from_collect_gcc", "(", "&", "t_devices_loc", ")", ";", "t_devices_loc", "=", "concat", "(", "t_devices_loc", ",", "", ",", "NULL", ")", ";", "devices_csv_file", "=", "fopen", "(", "t_devices_loc", ",", "", ")", ";", "if", "(", "devices_csv_file", "!=", "NULL", ")", "{", "fclose", "(", "devices_csv_file", ")", ";"], "ground_truth": ["*", "local_devices_csv_loc", "=", "t_devices_loc", ";"], "File": "msp430-devices", "Func": "msp430_check_env_var_for_devices", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200512, "Length": 105, "Cover_Rate": 0.4772727272727273} {"Template_token": ["", "const", "char", "dirsep", "[", "", "]", "=", "{", "DIR_SEPARATOR", ",", "", "}", ";", "FILE", "*", "devices_file", "=", "NULL", ";", "char", "*", "local_devices_csv_loc", "=", "NULL", ";", "int", "i", ";", "if", "(", "msp430_devices_csv_loc", "||", "derived_devices_csv_loc", ")", "return", "NULL", ";", "for", "(", "i", "=", "", ";", "i", "<", "argc", ";", "i", "++", ")", "{", "char", "*", "inc_path", "=", "xstrdup", "(", "argv", "[", "i", "]", ")", ";", "canonicalize_path_dirsep", "(", "&", "inc_path", ")", ";", "if", "(", "!", "IS_DIR_SEPARATOR", "(", "inc_path", "[", "strlen", "(", "inc_path", ")", "-", "", "]", ")", ")", "inc_path", "=", "concat", "(", "inc_path", ",", "dirsep", ",", "NULL", ")", ";", "local_devices_csv_loc", "=", "concat", "(", "inc_path", ",", "", ",", "NULL", ")", ";", "devices_file", "=", "fopen", "(", "local_devices_csv_loc", ",", "", ")", ";", "if", "(", "devices_file", "!=", "NULL", ")", "{", "fclose", "(", "devices_file", ")", ";", "derived_devices_csv_loc", "=", "local_devices_csv_loc", ";", "return", "concat", "(", "", ",", "local_devices_csv_loc", ",", "NULL", ")", ";", "}"], "ground_truth": ["}"], "File": "msp430-devices", "Func": "msp430_check_path_for_devices", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200513, "Length": 144, "Cover_Rate": 0.8834355828220859} {"Template_token": ["", "for", "(", "i", "=", "", ";", "i", "<", "argc", ";", "i", "++", ")", "{", "char", "*", "inc_path", "=", "xstrdup", "(", "argv", "[", "i", "]", ")", ";", "canonicalize_path_dirsep", "(", "&", "inc_path", ")", ";", "if", "(", "!", "IS_DIR_SEPARATOR", "(", "inc_path", "[", "strlen", "(", "inc_path", ")", "-", "", "]", ")", ")", "inc_path", "=", "concat", "(", "inc_path", ",", "dirsep", ",", "NULL", ")", ";", "local_devices_csv_loc", "=", "concat", "(", "inc_path", ",", "", ",", "NULL", ")", ";", "devices_file", "=", "fopen", "(", "local_devices_csv_loc", ",", "", ")", ";", "if", "(", "devices_file", "!=", "NULL", ")", "{", "fclose", "(", "devices_file", ")", ";", "derived_devices_csv_loc", "=", "local_devices_csv_loc", ";", "return", "concat", "(", "", ",", "local_devices_csv_loc", ",", "NULL", ")", ";"], "ground_truth": ["}"], "File": "msp430-devices", "Func": "msp430_check_path_for_devices", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200514, "Length": 106, "Cover_Rate": 0.6503067484662577} {"Template_token": ["", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "for", "(", "i", "=", "ARRAY_SIZE", "(", "hard_msp430_mcu_data", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "mcu_name", ",", "hard_msp430_mcu_data", "[", "i", "]", ".", "name", ")", "==", "", ")", "{", "extracted_mcu_data", "=", "hard_msp430_mcu_data", "[", "i", "]", ";", "break", ";", "}", "if", "(", "extracted_mcu_data", ".", "name", "!=", "NULL", ")", "{", "switch", "(", "extracted_mcu_data", ".", "hwmpy", ")", "{", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "break", ";", "default", ":", "error", "(", "", "", ",", "i", ",", "hard_msp430_mcu_data", "[", "i", "]", ".", "hwmpy", ")", ";", "break", ";", "}", "switch", "(", "extracted_mcu_data", ".", "revision", ")", "{", "case", "", ":", "case", "", ":"], "ground_truth": ["case", "", ":", "break", ";"], "File": "msp430-devices", "Func": "msp430_extract_mcu_data", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200515, "Length": 118, "Cover_Rate": 0.5108225108225108} {"Template_token": ["", "if", "(", "mcu_name", "==", "NULL", "||", "executed", "==", "", ")", "return", ";", "executed", "=", "", ";", "switch", "(", "parse_devices_csv", "(", "mcu_name", ")", ")", "{", "case", "", ":", "return", ";", "case", "", ":", "break", ";", "case", "", ":", "devices_csv_not_found", "=", "", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "for", "(", "i", "=", "ARRAY_SIZE", "(", "hard_msp430_mcu_data", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "mcu_name", ",", "hard_msp430_mcu_data", "[", "i", "]", ".", "name", ")", "==", "", ")", "{", "extracted_mcu_data", "=", "hard_msp430_mcu_data", "[", "i", "]", ";", "break", ";", "}", "if", "(", "extracted_mcu_data", ".", "name", "!=", "NULL", ")", "{", "switch", "(", "extracted_mcu_data", ".", "hwmpy", ")", "{", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "break", ";", "default", ":", "error", "(", "", "", ",", "i", ",", "hard_msp430_mcu_data", "[", "i", "]", ".", "hwmpy", ")", ";"], "ground_truth": ["break", ";"], "File": "msp430-devices", "Func": "msp430_extract_mcu_data", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200516, "Length": 142, "Cover_Rate": 0.6147186147186147} {"Template_token": ["", "static", "int", "parse_devices_csv", "(", "const", "char", "*", "mcu_name", ")", "{", "if", "(", "msp430_devices_csv_loc", "!=", "NULL", ")", "return", "parse_devices_csv_1", "(", "msp430_devices_csv_loc", ",", "mcu_name", ")", ";", "else", "if", "(", "derived_devices_csv_loc", "!=", "NULL", ")", "return", "parse_devices_csv_1", "(", "derived_devices_csv_loc", ",", "mcu_name", ")", ";", "if", "(", "msp430_check_env_var_for_devices", "(", "&", "derived_devices_csv_loc", ")", ")", "return", "", ";"], "ground_truth": ["return", "parse_devices_csv_1", "(", "derived_devices_csv_loc", ",", "mcu_name", ")", ";"], "File": "msp430-devices", "Func": "parse_devices_csv", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200517, "Length": 58, "Cover_Rate": 0.9830508474576272} {"Template_token": ["", "static", "int", "parse_devices_csv", "(", "const", "char", "*", "mcu_name", ")", "{", "if", "(", "msp430_devices_csv_loc", "!=", "NULL", ")", "return", "parse_devices_csv_1", "(", "msp430_devices_csv_loc", ",", "mcu_name", ")", ";", "else", "if", "(", "derived_devices_csv_loc", "!=", "NULL", ")", "return", "parse_devices_csv_1", "(", "derived_devices_csv_loc", ",", "mcu_name", ")", ";", "if", "(", "msp430_check_env_var_for_devices", "(", "&", "derived_devices_csv_loc", ")", ")", "return", "", ";"], "ground_truth": ["return", "parse_devices_csv_1", "(", "derived_devices_csv_loc", ",", "mcu_name", ")", ";"], "File": "msp430-devices", "Func": "parse_devices_csv", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200518, "Length": 58, "Cover_Rate": 0.9830508474576272} {"Template_token": ["", "if", "(", "arg1mode", "==", "SImode", ")", "{", "arg2", "=", "", ";", "arg1sz", "=", "", ";", "}", "else", "if", "(", "arg1mode", "==", "DImode", ")", "{", "arg1", "=", "", ";", "arg1sz", "=", "", ";", "arg2", "=", "", ";", "}", "if", "(", "const_variants", "&&", "CONST_INT_P", "(", "operands", "[", "", "]", ")", "&&", "INTVAL", "(", "operands", "[", "", "]", ")", ">=", "", "&&", "INTVAL", "(", "operands", "[", "", "]", ")", "<=", "", ")", "{", "int", "len", "=", "strlen", "(", "helper_name", ")", "+", "", ";", "helper_const", "=", "(", "char", "*", ")", "xmalloc", "(", "len", ")", ";", "snprintf", "(", "helper_const", ",", "len", ",", "", ",", "helper_name", ",", "(", "int", ")", "INTVAL", "(", "operands", "[", "", "]", ")", ")", ";", "}", "emit_move_insn", "(", "gen_rtx_REG", "(", "arg1mode", ",", "arg1", ")", ",", "operands", "[", "", "]", ")", ";", "if", "(", "!", "helper_const", ")", "emit_move_insn", "(", "gen_rtx_REG", "(", "arg2mode", ",", "arg2", ")", ",", "operands", "[", "", "]", ")", ";", "if", "(", "expand_mpy", ")", "{", "if", "(", "msp430_use_f5_series_hwmult", "(", ")", ")", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "else", "if", "(", "msp430_use_32bit_hwmult", "(", ")", ")", "{", "if", "(", "arg1mode", "==", "HImode", ")", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "else", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "}", "else", "if", "(", "msp430_use_16bit_hwmult", "(", ")", ")", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "else", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "helper_name", ")", ";", "}", "else", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "helper_const", "?", "helper_const", ":", "helper_name", ")", ";", "c", "=", "gen_call_value_internal", "(", "gen_rtx_REG", "(", "arg0mode", ",", "", ")", ",", "fsym", ",", "GEN_INT", "(", "", ")", ")", ";", "c", "=", "emit_call_insn", "(", "c", ")", ";"], "ground_truth": ["RTL_CONST_CALL_P", "(", "c", ")", "=", "", ";"], "File": "msp4301", "Func": "msp430_expand_helper", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200520, "Length": 305, "Cover_Rate": 0.5888030888030888} {"Template_token": ["", "int", "len", "=", "strlen", "(", "helper_name", ")", "+", "", ";", "helper_const", "=", "(", "char", "*", ")", "xmalloc", "(", "len", ")", ";", "snprintf", "(", "helper_const", ",", "len", ",", "", ",", "helper_name", ",", "(", "int", ")", "INTVAL", "(", "operands", "[", "", "]", ")", ")", ";", "}", "emit_move_insn", "(", "gen_rtx_REG", "(", "arg1mode", ",", "arg1", ")", ",", "operands", "[", "", "]", ")", ";", "if", "(", "!", "helper_const", ")", "emit_move_insn", "(", "gen_rtx_REG", "(", "arg2mode", ",", "arg2", ")", ",", "operands", "[", "", "]", ")", ";", "if", "(", "expand_mpy", ")", "{", "if", "(", "msp430_use_f5_series_hwmult", "(", ")", ")", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "else", "if", "(", "msp430_use_32bit_hwmult", "(", ")", ")", "{", "if", "(", "arg1mode", "==", "HImode", ")", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "else", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "}", "else", "if", "(", "msp430_use_16bit_hwmult", "(", ")", ")", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";"], "ground_truth": ["else", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "helper_name", ")", ";"], "File": "msp4301", "Func": "msp430_expand_helper", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200521, "Length": 187, "Cover_Rate": 0.361003861003861} {"Template_token": ["", "init_machine_status", "=", "msp430_init_machine_status", ";", "msp430x", "=", "target_cpu", ">=", "MSP430_CPU_MSP430X_DEFAULT", ";", "if", "(", "target_mcu", ")", "{", "msp430_extract_mcu_data", "(", "target_mcu", ")", ";", "if", "(", "extracted_mcu_data", ".", "name", "!=", "NULL", ")", "{", "bool", "xisa", "=", "extracted_mcu_data", ".", "revision", ">=", "", ";", "if", "(", "msp430_warn_mcu", ")", "{", "if", "(", "target_cpu", "!=", "MSP430_CPU_MSP430X_DEFAULT", "&&", "msp430x", "!=", "xisa", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "xisa", "?", "", ":", "", ",", "msp430x", "?", "", ":", "", ")", ";", "if", "(", "extracted_mcu_data", ".", "hwmpy", "==", "", "&&", "msp430_hwmult_type", "!=", "MSP430_HWMULT_AUTO", "&&", "msp430_hwmult_type", "!=", "MSP430_HWMULT_NONE", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "msp430_hwmult_type", "==", "MSP430_HWMULT_SMALL", "?", "", ":", "msp430_hwmult_type", "==", "MSP430_HWMULT_LARGE", "?", "", ":", "", ")", ";", "else", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_SMALL", "&&", "extracted_mcu_data", ".", "hwmpy", "!=", "", "&&", "extracted_mcu_data", ".", "hwmpy", "!=", "", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "hwmult_name", "(", "extracted_mcu_data", ".", "hwmpy", ")", ")", ";", "else", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_LARGE", "&&", "extracted_mcu_data", ".", "hwmpy", "!=", "", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "hwmult_name", "(", "extracted_mcu_data", ".", "hwmpy", ")", ")", ";", "else", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_F5SERIES", "&&", "extracted_mcu_data", ".", "hwmpy", "!=", "", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "hwmult_name", "(", "extracted_mcu_data", ".", "hwmpy", ")", ")", ";", "}", "if", "(", "target_cpu", "==", "MSP430_CPU_MSP430X_DEFAULT", ")", "msp430x", "=", "xisa", ";", "}", "else", "{", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_AUTO", ")", "{", "if", "(", "msp430_warn_mcu", ")", "{", "if", "(", "target_cpu", "==", "MSP430_CPU_MSP430X_DEFAULT", ")", "warning", "(", "", ",", "", "", "", "", ",", "target_mcu", ")", ";", "else", "warning", "(", "", ",", "", "", "", ",", "target_mcu", ")", ";", "}", "msp430_hwmult_type", "=", "MSP430_HWMULT_NONE", ";", "}", "else", "if", "(", "target_cpu", "==", "MSP430_CPU_MSP430X_DEFAULT", ")", "{", "if", "(", "msp430_warn_mcu", ")", "warning", "(", "", ",", "", "", "", ",", "target_mcu", ")", ";", "}", "else", "if", "(", "msp430_warn_mcu", ")", "warning", "(", "", ",", "", ",", "target_mcu", ")", ";", "}", "}", "if", "(", "TARGET_LARGE", "&&", "!", "msp430x", ")", "error", "(", "", ")", ";", "if", "(", "!", "TARGET_LARGE", "&&", "msp430_code_region", "==", "MSP430_REGION_EITHER", ")", "error", "(", "", "", ")", ";"], "ground_truth": ["else", "if", "(", "!", "TARGET_LARGE", "&&", "msp430_code_region", "==", "MSP430_REGION_UPPER", ")", "error", "(", "", "", ")", ";"], "File": "msp4301", "Func": "msp430_option_override", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200522, "Length": 356, "Cover_Rate": 0.7928730512249443} {"Template_token": ["", "else", "if", "(", "strncmp", "(", "name", ",", "either_prefix", ",", "strlen", "(", "either_prefix", ")", ")", "==", "", ")", "name", "+=", "strlen", "(", "either_prefix", ")", ";", "return", "default_section_type_flags", "(", "decl", ",", "name", ",", "reloc", ")", ";"], "ground_truth": ["}"], "File": "msp4301", "Func": "msp430_section_type_flags", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200523, "Length": 35, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "else", "if", "(", "strncmp", "(", "name", ",", "either_prefix", ",", "strlen", "(", "either_prefix", ")", ")", "==", "", ")", "name", "+=", "strlen", "(", "either_prefix", ")", ";"], "ground_truth": ["return", "default_section_type_flags", "(", "decl", ",", "name", ",", "reloc", ")", ";"], "File": "msp4301", "Func": "msp430_section_type_flags", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200524, "Length": 34, "Cover_Rate": 0.3469387755102041} {"Template_token": ["", "case", "MEM", ":", "if", "(", "msp430_is_mem_indirect", "(", "dst", ")", ")", "return", "cost_p", "->", "ind", ";", "else", "return", "cost_p", "->", "mem", ";", "case", "CONST_INT", ":", "case", "CONST_FIXED", ":", "case", "CONST_DOUBLE", ":", "case", "SYMBOL_REF", ":", "case", "CONST", ":", "return", "double_op_cost_p", "->", "imm2r", "+", "cost_p", "->", "reg", ";"], "ground_truth": ["default", ":"], "File": "msp4301", "Func": "msp430_single_op_cost", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200525, "Length": 47, "Cover_Rate": 0.376} {"Template_token": ["", "return", "is_attr_func", "(", "", ")", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "is_critical_func", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200528, "Length": 7, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "static", "inline", "bool", "is_naked_func", "(", "void", ")", "{", "return", "is_attr_func", "(", "", ")", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "is_naked_func", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200531, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "return", "msp430_is_interrupt_func", "(", ")", "&&", "is_attr_func", "(", "", ")", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "is_wakeup_func", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200535, "Length": 11, "Cover_Rate": 0.6111111111111112} {"Template_token": ["", "if", "(", "REGNO", "(", "operands", "[", "", "]", ")", "==", "REGNO", "(", "operands", "[", "", "]", ")", ")", "return", "", ";", "if", "(", "!", "msp430x", ")", "return", "", ";", "if", "(", "REGNO", "(", "operands", "[", "", "]", ")", "+", "", "==", "REGNO", "(", "operands", "[", "", "]", ")", ")", "return", "", ";", "return", "", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430x_extendhisi", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200536, "Length": 56, "Cover_Rate": 0.8484848484848485} {"Template_token": ["", "bool", "msp430_addr_space_legitimate_address_p", "(", "machine_mode", "mode", ",", "rtx", "x", ",", "bool", "strict", ",", "addr_space_t", "as", "ATTRIBUTE_UNUSED", ")", "{", "return", "msp430_legitimate_address_p", "(", "mode", ",", "x", ",", "strict", ")", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_addr_space_legitimate_address_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200538, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "static", "machine_mode", "msp430_addr_space_pointer_mode", "(", "addr_space_t", "addrspace", ")", "{", "switch", "(", "addrspace", ")", "{", "default", ":", "case", "ADDR_SPACE_GENERIC", ":", "return", "Pmode", ";", "case", "ADDR_SPACE_NEAR", ":", "return", "HImode", ";", "case", "ADDR_SPACE_FAR", ":", "return", "PSImode", ";", "}"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_addr_space_pointer_mode", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200539, "Length": 35, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "ca", "->", "reg_count", "&&", "ca", "->", "mem_count", ")", "return", "ca", "->", "reg_count", "*", "UNITS_PER_WORD", ";", "return", "", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_arg_partial_bytes", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200540, "Length": 21, "Cover_Rate": 0.3684210526315789} {"Template_token": ["", "CUMULATIVE_ARGS", "*", "ca", "=", "get_cumulative_args", "(", "cap", ")", ";", "msp430_evaluate_arg", "(", "cap", ",", "mode", ",", "type", ",", "named", ")", ";", "if", "(", "ca", "->", "reg_count", "&&", "ca", "->", "mem_count", ")", "return", "ca", "->", "reg_count", "*", "UNITS_PER_WORD", ";"], "ground_truth": ["return", "", ";"], "File": "msp4302", "Func": "msp430_arg_partial_bytes", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200541, "Length": 40, "Cover_Rate": 0.7017543859649122} {"Template_token": ["", "case", "", ":", "if", "(", "c", "==", "SYMBOL_REF", "||", "c", "==", "CONST", "||", "c", "==", "LABEL_REF", "||", "c", "==", "CONST_INT", ")", "{", "fprintf", "(", "asm_out_file", ",", "", ")", ";", "output_addr_const", "(", "asm_out_file", ",", "x", ")", ";"], "ground_truth": ["fputc", "(", "'\\n'", ",", "asm_out_file", ")", ";"], "File": "msp4302", "Func": "msp430_asm_integer", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200542, "Length": 43, "Cover_Rate": 0.4056603773584906} {"Template_token": ["", "static", "tree", "msp430_attr", "(", "tree", "*", "node", ",", "tree", "name", ",", "tree", "args", ",", "int", "flags", "ATTRIBUTE_UNUSED", ",", "bool", "*", "no_add_attrs", ")", "{", "gcc_assert", "(", "DECL_P", "(", "*", "node", ")", ")", ";", "if", "(", "args", "!=", "NULL", ")", "{", "tree", "value", "=", "TREE_VALUE", "(", "args", ")", ";", "switch", "(", "TREE_CODE", "(", "value", ")", ")", "{", "case", "STRING_CST", ":", "if", "(", "strcmp", "(", "TREE_STRING_POINTER", "(", "value", ")", ",", "", ")", "&&", "strcmp", "(", "TREE_STRING_POINTER", "(", "value", ")", ",", "", ")", "&&", "strcmp", "(", "TREE_STRING_POINTER", "(", "value", ")", ",", "", ")", ")", "warning", "(", "OPT_Wattributes", ",", "", ",", "name", ")", ";", "break", ";", "case", "INTEGER_CST", ":", "if", "(", "wi", "::", "gtu_p", "(", "value", ",", "", ")", ")", "warning", "(", "OPT_Wattributes", ",", "", ",", "name", ")", ";", "break", ";", "default", ":", "warning", "(", "OPT_Wattributes", ",", "", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "break", ";", "}", "}", "if", "(", "TREE_CODE", "(", "*", "node", ")", "!=", "FUNCTION_DECL", ")", "{", "warning", "(", "OPT_Wattributes", ",", "", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}"], "ground_truth": ["return", "NULL_TREE", ";"], "File": "msp4302", "Func": "msp430_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200543, "Length": 175, "Cover_Rate": 0.9943181818181818} {"Template_token": ["", "static", "bool", "msp430_callee_copies", "(", "cumulative_args_t", "cap", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "const_tree", "type", "ATTRIBUTE_UNUSED", ",", "bool", "named", "ATTRIBUTE_UNUSED", ")", "{"], "ground_truth": ["return", "true", ";"], "File": "msp4302", "Func": "msp430_callee_copies", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200544, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "static", "bool", "msp430_callee_copies", "(", "cumulative_args_t", "cap", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "const_tree", "type", "ATTRIBUTE_UNUSED", ",", "bool", "named", "ATTRIBUTE_UNUSED", ")", "{"], "ground_truth": ["return", "true", ";"], "File": "msp4302", "Func": "msp430_callee_copies", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200545, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "static", "void", "msp430_compute_frame_info", "(", "void", ")", "{", "int", "i", ";", "cfun", "->", "machine", "->", "computed", "=", "", ";", "cfun", "->", "machine", "->", "framesize_regs", "=", "", ";", "cfun", "->", "machine", "->", "framesize_locals", "=", "get_frame_size", "(", ")", ";", "cfun", "->", "machine", "->", "framesize_outgoing", "=", "crtl", "->", "outgoing_args_size", ";", "for", "(", "i", "=", "", ";", "i", "<", "ARG_POINTER_REGNUM", ";", "i", "++", ")", "if", "(", "msp430_preserve_reg_p", "(", "i", ")", ")", "{"], "ground_truth": ["cfun", "->", "machine", "->", "need_to_save", "[", "i", "]", "=", "", ";"], "File": "msp4302", "Func": "msp430_compute_frame_info", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200546, "Length": 78, "Cover_Rate": 0.4968152866242038} {"Template_token": ["", "return", ";", "}", "if", "(", "!", "ca", "->", "reg_used", "[", "", "]", "&&", "ca", "->", "can_split", ")", "{", "ca", "->", "reg_count", "=", "", ";", "ca", "->", "mem_count", "=", "", ";", "ca", "->", "start_reg", "=", "CA_FIRST_REG", "+", "", ";", "return", ";", "}", "break", ";", "case", "", ":", "case", "", ":", "ca", "->", "can_split", "=", "", ";", "if", "(", "!", "ca", "->", "reg_used", "[", "", "]", "&&", "!", "ca", "->", "reg_used", "[", "", "]", "&&", "!", "ca", "->", "reg_used", "[", "", "]", "&&", "!", "ca", "->", "reg_used", "[", "", "]", ")", "{", "ca", "->", "reg_count", "=", "", ";", "ca", "->", "start_reg", "=", "CA_FIRST_REG", ";", "return", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_evaluate_arg", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200547, "Length": 105, "Cover_Rate": 0.33762057877813506} {"Template_token": ["", "}", "if", "(", "!", "REG_P", "(", "arg1", ")", "&&", "!", "CONSTANT_P", "(", "arg1", ")", ")", "arg1", "=", "force_reg", "(", "mode", ",", "arg1", ")", ";", "switch", "(", "fcode", ")", "{", "case", "MSP430_BUILTIN_BIC_SR", ":", "emit_insn", "(", "gen_bic_SR", "(", "arg1", ")", ")", ";", "break", ";", "case", "MSP430_BUILTIN_BIS_SR", ":", "emit_insn", "(", "gen_bis_SR", "(", "arg1", ")", ")", ";", "break", ";", "default", ":", "internal_error", "(", "", ")", ";", "break", ";", "}"], "ground_truth": ["return", "NULL_RTX", ";"], "File": "msp4302", "Func": "msp430_expand_builtin", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200548, "Length": 68, "Cover_Rate": 0.4358974358974359} {"Template_token": ["", "error", "(", "", ")", ";", "return", "NULL_RTX", ";", "}", "c", "=", "INTVAL", "(", "arg", ")", ";", "if", "(", "HOST_BITS_PER_WIDE_INT", ">", "", ")", "{", "if", "(", "c", "<", "", ")", "{", "error", "(", "", ")", ";", "return", "NULL_RTX", ";", "}", "}", "emit_insn", "(", "gen_delay_cycles_start", "(", "arg", ")", ")", ";", "if", "(", "c", ">", "", "*", "", "+", "CYCX", "(", "", ",", "", ")", ")", "{", "n", "=", "c", ";", "if", "(", "c", ">=", "", "*", "", "+", "CYCX", "(", "", ",", "", ")", ")", "{", "i", "=", "", ";", "c", "-=", "CYCX", "(", "", ",", "", ")", "+", "", "*", "", ";", "i", "+=", "c", "/", "", ";", "c", "%=", "", ";", "if", "(", "(", "unsigned", "long", "long", ")", "i", ">", "", ")", "{", "error", "(", "", ")", ";", "return", "NULL_RTX", ";", "}", "}", "else", "{", "i", "=", "(", "c", "-", "CYCX", "(", "", ",", "", ")", ")", "/", "", ";", "c", "-=", "CYCX", "(", "", ",", "", ")", "+", "i", "*", "", ";", "}", "if", "(", "cg_magic_constant", "(", "i", "&", "", ")", ")", "c", "++", ";", "if", "(", "cg_magic_constant", "(", "(", "i", ">>", "", ")", "&", "", ")", ")", "c", "++", ";", "if", "(", "msp430x", ")", "emit_insn", "(", "gen_delay_cycles_32x", "(", "GEN_INT", "(", "i", ")", ",", "GEN_INT", "(", "n", "-", "c", ")", ")", ")", ";"], "ground_truth": ["else", "emit_insn", "(", "gen_delay_cycles_32", "(", "GEN_INT", "(", "i", ")", ",", "GEN_INT", "(", "n", "-", "c", ")", ")", ")", ";"], "File": "msp4302", "Func": "msp430_expand_delay_cycles", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200549, "Length": 233, "Cover_Rate": 0.585427135678392} {"Template_token": ["", "for", "(", "i", "=", "", ";", "i", "<=", "", ";", "i", "++", ")", "if", "(", "cfun", "->", "machine", "->", "need_to_save", "[", "i", "]", ")", "{", "int", "seq", ",", "count", ";", "for", "(", "seq", "=", "i", "+", "", ";", "seq", "<=", "", "&&", "cfun", "->", "machine", "->", "need_to_save", "[", "seq", "]", ";", "seq", "++", ")", ";", "count", "=", "seq", "-", "i", ";", "if", "(", "msp430x", ")", "{", "emit_insn", "(", "gen_popm", "(", "stack_pointer_rtx", ",", "GEN_INT", "(", "seq", "-", "", ")", ",", "GEN_INT", "(", "count", ")", ")", ")", ";", "i", "+=", "count", "-", "", ";", "}", "else", "if", "(", "i", "==", "", "-", "helper_n", "&&", "!", "msp430_is_interrupt_func", "(", ")", "&&", "!", "is_reentrant_func", "(", ")", "&&", "!", "is_critical_func", "(", ")", "&&", "crtl", "->", "args", ".", "pretend_args_size", "==", "", "&&", "helper_n", ">", "", "&&", "!", "is_eh", ")", "{", "emit_insn", "(", "gen_epilogue_helper", "(", "GEN_INT", "(", "helper_n", ")", ")", ")", ";", "return", ";", "}", "else", "emit_insn", "(", "gen_pop", "(", "gen_rtx_REG", "(", "Pmode", ",", "i", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_expand_epilogue", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200550, "Length": 162, "Cover_Rate": 0.31094049904030713} {"Template_token": ["", "char", "*", "helper_const", "=", "NULL", ";", "int", "arg2", "=", "", ";", "int", "arg1sz", "=", "", ";", "machine_mode", "arg0mode", "=", "GET_MODE", "(", "operands", "[", "", "]", ")", ";", "machine_mode", "arg1mode", "=", "GET_MODE", "(", "operands", "[", "", "]", ")", ";", "machine_mode", "arg2mode", "=", "GET_MODE", "(", "operands", "[", "", "]", ")", ";", "int", "have_430x", "=", "msp430x", "?", "", ":", "", ";", "if", "(", "CONST_INT_P", "(", "operands", "[", "", "]", ")", ")", "{", "int", "i", ";", "for", "(", "i", "=", "", ";", "const_shift_helpers", "[", "i", "]", ".", "name", ";", "i", "++", ")", "{", "if", "(", "const_shift_helpers", "[", "i", "]", ".", "need_430x", "<=", "have_430x", "&&", "strcmp", "(", "helper_name", ",", "const_shift_helpers", "[", "i", "]", ".", "name", ")", "==", "", "&&", "INTVAL", "(", "operands", "[", "", "]", ")", "==", "const_shift_helpers", "[", "i", "]", ".", "count", ")", "{", "emit_insn", "(", "const_shift_helpers", "[", "i", "]", ".", "genfunc", "(", "operands", "[", "", "]", ",", "operands", "[", "", "]", ")", ")", ";", "return", ";", "}", "}", "}", "if", "(", "arg1mode", "==", "VOIDmode", ")", "arg1mode", "=", "arg0mode", ";", "if", "(", "arg2mode", "==", "VOIDmode", ")", "arg2mode", "=", "arg0mode", ";", "if", "(", "arg1mode", "==", "SImode", ")", "{", "arg2", "=", "", ";", "arg1sz", "=", "", ";", "}", "if", "(", "const_variants", "&&", "CONST_INT_P", "(", "operands", "[", "", "]", ")", "&&", "INTVAL", "(", "operands", "[", "", "]", ")", ">=", "", "&&", "INTVAL", "(", "operands", "[", "", "]", ")", "<=", "", ")", "{", "int", "len", "=", "strlen", "(", "helper_name", ")", "+", "", ";", "helper_const", "=", "(", "char", "*", ")", "xmalloc", "(", "len", ")", ";", "snprintf", "(", "helper_const", ",", "len", ",", "", ",", "helper_name", ",", "(", "int", ")", "INTVAL", "(", "operands", "[", "", "]", ")", ")", ";", "}", "emit_move_insn", "(", "gen_rtx_REG", "(", "arg1mode", ",", "", ")", ",", "operands", "[", "", "]", ")", ";", "if", "(", "!", "helper_const", ")", "emit_move_insn", "(", "gen_rtx_REG", "(", "arg2mode", ",", "arg2", ")", ",", "operands", "[", "", "]", ")", ";"], "ground_truth": ["c", "=", "gen_call_value_internal", "(", "gen_rtx_REG", "(", "arg0mode", ",", "", ")", ",", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "helper_const", "?", "helper_const", ":", "helper_name", ")", ",", "GEN_INT", "(", "", ")", ")", ";"], "File": "msp4302", "Func": "msp430_expand_helper", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200551, "Length": 332, "Cover_Rate": 0.7923627684964201} {"Template_token": ["", "rtx", "sp", "=", "stack_pointer_rtx", ";", "rtx", "p", ";", "if", "(", "is_naked_func", "(", ")", ")", "{", "emit_insn", "(", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "GEN_INT", "(", "", ")", ")", ")", ";", "return", ";", "}", "emit_insn", "(", "gen_prologue_start_marker", "(", ")", ")", ";", "if", "(", "is_critical_func", "(", ")", ")", "{", "emit_insn", "(", "gen_push_intr_state", "(", ")", ")", ";", "emit_insn", "(", "gen_disable_interrupts", "(", ")", ")", ";", "}", "else", "if", "(", "is_reentrant_func", "(", ")", ")", "emit_insn", "(", "gen_disable_interrupts", "(", ")", ")", ";", "if", "(", "!", "cfun", "->", "machine", "->", "computed", ")", "msp430_compute_frame_info", "(", ")", ";", "if", "(", "flag_stack_usage_info", ")", "current_function_static_stack_size", "=", "cfun", "->", "machine", "->", "framesize", ";", "if", "(", "crtl", "->", "args", ".", "pretend_args_size", ")", "{", "rtx", "note", ";", "gcc_assert", "(", "crtl", "->", "args", ".", "pretend_args_size", "==", "", ")", ";", "p", "=", "emit_insn", "(", "gen_grow_and_swap", "(", ")", ")", ";", "note", "=", "F", "(", "gen_rtx_SET", "(", "Pmode", ",", "stack_pointer_rtx", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "", ")", ")", ")", ")", ";", "add_reg_note", "(", "p", ",", "REG_FRAME_RELATED_EXPR", ",", "note", ")", ";", "note", "=", "F", "(", "gen_rtx_SET", "(", "Pmode", ",", "gen_rtx_MEM", "(", "Pmode", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "", ")", ")", ")", ",", "pc_rtx", ")", ")", ";", "add_reg_note", "(", "p", ",", "REG_CFA_OFFSET", ",", "note", ")", ";", "F", "(", "p", ")", ";", "}", "for", "(", "i", "=", "", ";", "i", ">=", "", ";", "i", "--", ")", "if", "(", "cfun", "->", "machine", "->", "need_to_save", "[", "i", "]", ")", "{", "int", "seq", ",", "count", ";", "rtx", "note", ";", "for", "(", "seq", "=", "i", "-", "", ";", "seq", ">=", "", "&&", "cfun", "->", "machine", "->", "need_to_save", "[", "seq", "]", ";", "seq", "--", ")", ";", "count", "=", "i", "-", "seq", ";", "if", "(", "msp430x", ")", "{", "p", "=", "F", "(", "emit_insn", "(", "gen_pushm", "(", "gen_rtx_REG", "(", "Pmode", ",", "i", ")", ",", "GEN_INT", "(", "count", ")", ")", ")", ")", ";", "note", "=", "gen_rtx_SEQUENCE", "(", "VOIDmode", ",", "rtvec_alloc", "(", "count", "+", "", ")", ")", ";", "XVECEXP", "(", "note", ",", "", ",", "", ")", "=", "F", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "stack_pointer_rtx", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "count", "*", "(", "TARGET_LARGE", "?", "-", "", ":", "-", "", ")", ")", ")", ")", ")", ";", "for", "(", "j", "=", "", ";", "j", "<", "count", ";", "j", "++", ")", "{", "rtx", "addr", ";", "int", "ofs", "=", "(", "count", "-", "j", "-", "", ")", "*", "(", "TARGET_LARGE", "?", "", ":", "", ")", ";", "if", "(", "ofs", ")", "addr", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "sp", ",", "GEN_INT", "(", "ofs", ")", ")", ";", "else", "addr", "=", "stack_pointer_rtx", ";", "XVECEXP", "(", "note", ",", "", ",", "j", "+", "", ")", "=", "F", "(", "gen_rtx_SET", "(", "VOIDmode", ",", "gen_rtx_MEM", "(", "Pmode", ",", "addr", ")", ",", "gen_rtx_REG", "(", "Pmode", ",", "i", "-", "j", ")", ")", ")", ";", "}", "add_reg_note", "(", "p", ",", "REG_FRAME_RELATED_EXPR", ",", "note", ")", ";", "i", "-=", "count", "-", "", ";", "}"], "ground_truth": ["else", "F", "(", "emit_insn", "(", "gen_push", "(", "gen_rtx_REG", "(", "Pmode", ",", "i", ")", ")", ")", ")", ";"], "File": "msp4302", "Func": "msp430_expand_prologue", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200552, "Length": 484, "Cover_Rate": 0.8864468864468864} {"Template_token": ["", "rtx", "msp430_function_arg", "(", "cumulative_args_t", "cap", ",", "machine_mode", "mode", ",", "const_tree", "type", ",", "bool", "named", ")", "{", "CUMULATIVE_ARGS", "*", "ca", "=", "get_cumulative_args", "(", "cap", ")", ";", "msp430_evaluate_arg", "(", "cap", ",", "mode", ",", "type", ",", "named", ")", ";"], "ground_truth": ["if", "(", "ca", "->", "reg_count", ")", "return", "gen_rtx_REG", "(", "mode", ",", "ca", "->", "start_reg", ")", ";"], "File": "msp4302", "Func": "msp430_function_arg", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200553, "Length": 52, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "int", "i", ";", "msp430_evaluate_arg", "(", "cap", ",", "mode", ",", "type", ",", "named", ")", ";", "if", "(", "ca", "->", "start_reg", ">=", "CA_FIRST_REG", ")", "for", "(", "i", "=", "", ";", "i", "<", "ca", "->", "reg_count", ";", "i", "++", ")", "ca", "->", "reg_used", "[", "i", "+", "ca", "->", "start_reg", "-", "CA_FIRST_REG", "]", "=", "", ";"], "ground_truth": ["ca", "->", "special_p", "=", "", ";"], "File": "msp4302", "Func": "msp430_function_arg_advance", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200554, "Length": 58, "Cover_Rate": 0.6904761904761905} {"Template_token": ["", "if", "(", "ca", "->", "start_reg", ">=", "CA_FIRST_REG", ")", "for", "(", "i", "=", "", ";", "i", "<", "ca", "->", "reg_count", ";", "i", "++", ")", "ca", "->", "reg_used", "[", "i", "+", "ca", "->", "start_reg", "-", "CA_FIRST_REG", "]", "=", "", ";"], "ground_truth": ["ca", "->", "special_p", "=", "", ";"], "File": "msp4302", "Func": "msp430_function_arg_advance", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200555, "Length": 44, "Cover_Rate": 0.5238095238095238} {"Template_token": ["", "if", "(", "TARGET_LARGE", "&&", "lookup_attribute", "(", "", ",", "DECL_ATTRIBUTES", "(", "decl", ")", ")", ")", "return", "get_section", "(", "", ",", "SECTION_CODE", "|", "SECTION_WRITE", ",", "decl", ")", ";", "return", "default_function_section", "(", "decl", ",", "freq", ",", "startup", ",", "exit", ")", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_function_section", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200556, "Length": 39, "Cover_Rate": 0.6724137931034483} {"Template_token": ["", "static", "machine_mode", "msp430_get_raw_arg_mode", "(", "int", "regno", ")", "{"], "ground_truth": ["return", "(", "regno", "==", "ARG_POINTER_REGNUM", ")", "?", "VOIDmode", ":", "Pmode", ";"], "File": "msp4302", "Func": "msp430_get_raw_arg_mode", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200558, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "static", "machine_mode", "msp430_get_raw_arg_mode", "(", "int", "regno", ")", "{"], "ground_truth": ["return", "(", "regno", "==", "ARG_POINTER_REGNUM", ")", "?", "VOIDmode", ":", "Pmode", ";"], "File": "msp4302", "Func": "msp430_get_raw_arg_mode", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200559, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "static", "machine_mode", "msp430_get_raw_result_mode", "(", "int", "regno", "ATTRIBUTE_UNUSED", ")", "{", "return", "Pmode", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_get_raw_result_mode", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200560, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "return", "Pmode", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_get_raw_result_mode", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200561, "Length": 4, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "if", "(", "boundary", ">", "align", "&&", "!", "integer_zerop", "(", "TYPE_SIZE", "(", "type", ")", ")", ")", "{", "if", "(", "!", "POINTER_TYPE_P", "(", "type", ")", ")", "{", "t", "=", "build2", "(", "MODIFY_EXPR", ",", "TREE_TYPE", "(", "valist", ")", ",", "valist_tmp", ",", "fold_build_pointer_plus_hwi", "(", "valist_tmp", ",", "boundary", "-", "", ")", ")", ";", "gimplify_and_add", "(", "t", ",", "pre_p", ")", ";", "t", "=", "build2", "(", "MODIFY_EXPR", ",", "TREE_TYPE", "(", "valist", ")", ",", "valist_tmp", ",", "fold_build2", "(", "BIT_AND_EXPR", ",", "TREE_TYPE", "(", "valist", ")", ",", "valist_tmp", ",", "build_int_cst", "(", "TREE_TYPE", "(", "valist", ")", ",", "-", "boundary", ")", ")", ")", ";", "gimplify_and_add", "(", "t", ",", "pre_p", ")", ";", "}", "}", "else", "boundary", "=", "align", ";", "boundary", "*=", "BITS_PER_UNIT", ";", "if", "(", "boundary", "<", "TYPE_ALIGN", "(", "type", ")", ")", "{", "type", "=", "build_variant_type_copy", "(", "type", ")", ";"], "ground_truth": ["TYPE_ALIGN", "(", "type", ")", "=", "boundary", ";"], "File": "msp4302", "Func": "msp430_gimplify_va_arg_expr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200562, "Length": 134, "Cover_Rate": 0.3850574712643678} {"Template_token": ["", "int", "msp430_hard_regno_mode_ok", "(", "int", "regno", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", ")", "{"], "ground_truth": ["return", "regno", "<=", "(", "ARG_POINTER_REGNUM", "-", "msp430_hard_regno_nregs", "(", "regno", ",", "mode", ")", ")", ";"], "File": "msp4302", "Func": "msp430_hard_regno_mode_ok", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200563, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "if", "(", "mode", "==", "PSImode", "&&", "msp430x", ")", "return", "", ";", "return", "(", "(", "GET_MODE_SIZE", "(", "mode", ")", "+", "UNITS_PER_WORD", "-", "", ")", "/", "UNITS_PER_WORD", ")", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_hard_regno_nregs", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200566, "Length": 28, "Cover_Rate": 0.717948717948718} {"Template_token": ["", "return", "(", "(", "GET_MODE_SIZE", "(", "mode", ")", "+", "UNITS_PER_WORD", "-", "", ")", "/", "UNITS_PER_WORD", ")", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_hard_regno_nregs_has_padding", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200567, "Length": 17, "Cover_Rate": 0.4358974358974359} {"Template_token": ["", "int", "msp430_hard_regno_nregs_has_padding", "(", "int", "regno", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", ")", "{", "if", "(", "mode", "==", "PSImode", "&&", "msp430x", ")", "return", "", ";"], "ground_truth": ["return", "(", "(", "GET_MODE_SIZE", "(", "mode", ")", "+", "UNITS_PER_WORD", "-", "", ")", "/", "UNITS_PER_WORD", ")", ";"], "File": "msp4302", "Func": "msp430_hard_regno_nregs_has_padding", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200568, "Length": 38, "Cover_Rate": 0.9743589743589743} {"Template_token": ["", "int", "msp430_hard_regno_nregs_with_padding", "(", "int", "regno", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", ")", "{", "if", "(", "mode", "==", "PSImode", ")", "return", "", ";"], "ground_truth": ["return", "msp430_hard_regno_nregs", "(", "regno", ",", "mode", ")", ";"], "File": "msp4302", "Func": "msp430_hard_regno_nregs_with_padding", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200569, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "if", "(", "mode", "==", "PSImode", ")", "return", "", ";"], "ground_truth": ["return", "msp430_hard_regno_nregs", "(", "regno", ",", "mode", ")", ";"], "File": "msp4302", "Func": "msp430_hard_regno_nregs_with_padding", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200570, "Length": 17, "Cover_Rate": 0.5862068965517241} {"Template_token": ["", "return", "is_attr_func", "(", "", ")", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_is_interrupt_func", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200572, "Length": 7, "Cover_Rate": 0.3181818181818182} {"Template_token": ["", "bool", "msp430_legitimate_address_p", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "rtx", "x", "ATTRIBUTE_UNUSED", ",", "bool", "strict", "ATTRIBUTE_UNUSED", ")", "{", "switch", "(", "GET_CODE", "(", "x", ")", ")", "{", "case", "MEM", ":", "return", "false", ";", "case", "PLUS", ":", "if", "(", "REG_P", "(", "XEXP", "(", "x", ",", "", ")", ")", ")", "{", "if", "(", "GET_MODE", "(", "x", ")", "!=", "GET_MODE", "(", "XEXP", "(", "x", ",", "", ")", ")", ")", "return", "false", ";", "if", "(", "!", "reg_ok_for_addr", "(", "XEXP", "(", "x", ",", "", ")", ",", "strict", ")", ")", "return", "false", ";", "switch", "(", "GET_CODE", "(", "XEXP", "(", "x", ",", "", ")", ")", ")", "{", "case", "CONST", ":", "case", "SYMBOL_REF", ":", "case", "CONST_INT", ":", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}", "return", "false", ";", "case", "REG", ":"], "ground_truth": ["if", "(", "!", "reg_ok_for_addr", "(", "x", ",", "strict", ")", ")", "return", "false", ";"], "File": "msp4302", "Func": "msp430_legitimate_address_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200573, "Length": 135, "Cover_Rate": 0.8766233766233766} {"Template_token": ["", "return", "!", "CONST_INT_P", "(", "x", ")", "||", "mode", "!=", "PSImode", "||", "(", "INTVAL", "(", "x", ")", "<", "(", "", "<<", "", ")", "&&", "INTVAL", "(", "x", ")", ">=", "(", "-", "", "<<", "", ")", ")", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_legitimate_constant", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200574, "Length": 37, "Cover_Rate": 0.7708333333333334} {"Template_token": ["", "snprintf", "(", "mcu_name", ",", "sizeof", "(", "mcu_name", ")", "-", "", ",", "", ",", "target_mcu", ")", ";", "for", "(", "i", "=", "strlen", "(", "mcu_name", ")", ";", "i", "--", ";", ")", "mcu_name", "[", "i", "]", "=", "TOUPPER", "(", "mcu_name", "[", "i", "]", ")", ";", "return", "mcu_name", ";", "}", "return", "msp430x", "?", "", ":", "", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_mcu_name", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200576, "Length": 54, "Cover_Rate": 0.6923076923076923} {"Template_token": ["", "bool", "msp430_modes_tieable_p", "(", "machine_mode", "mode1", ",", "machine_mode", "mode2", ")", "{"], "ground_truth": ["if", "(", "(", "mode1", "==", "PSImode", "||", "mode2", "==", "SImode", ")", "||", "(", "mode1", "==", "SImode", "||", "mode2", "==", "PSImode", ")", ")", "return", "false", ";"], "File": "msp4302", "Func": "msp430_modes_tieable_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200578, "Length": 35, "Cover_Rate": 0.49295774647887325} {"Template_token": ["", "static", "const", "char", "*", "known_nomult_mcus", "[", "]", "=", "{", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", "}", ";", "static", "const", "char", "*", "cached_match", "=", "NULL", ";", "static", "bool", "cached_result", ";", "int", "i", ";", "if", "(", "msp430_hwmult_type", "==", "NONE", ")", "return", "true", ";", "if", "(", "target_mcu", "==", "NULL", "||", "msp430_hwmult_type", "!=", "AUTO", ")", "return", "false", ";", "if", "(", "target_mcu", "==", "cached_match", ")", "return", "cached_result", ";", "cached_match", "=", "target_mcu", ";", "for", "(", "i", "=", "ARRAY_SIZE", "(", "known_nomult_mcus", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "target_mcu", ",", "known_nomult_mcus", "[", "i", "]", ")", "==", "", ")", "return", "cached_result", "=", "true", ";"], "ground_truth": ["return", "cached_result", "=", "false", ";"], "File": "msp4302", "Func": "msp430_no_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200579, "Length": 427, "Cover_Rate": 0.9816091954022989} {"Template_token": ["", "else", "msp430x", "=", "false", ";", "}", "else", "if", "(", "target_mcu", ")", "{", "int", "i", ";", "msp430x", "=", "true", ";", "for", "(", "i", "=", "ARRAY_SIZE", "(", "msp430_mcu_names", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "msp430_mcu_names", "[", "i", "]", ",", "target_mcu", ")", "==", "", ")", "{", "msp430x", "=", "false", ";", "break", ";", "}", "}"], "ground_truth": ["if", "(", "TARGET_LARGE", "&&", "!", "msp430x", ")", "error", "(", "", ")", ";"], "File": "msp4302", "Func": "msp430_option_override", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200580, "Length": 67, "Cover_Rate": 0.5153846153846153} {"Template_token": ["", "int", "i", ";", "msp430x", "=", "true", ";", "for", "(", "i", "=", "ARRAY_SIZE", "(", "msp430_mcu_names", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "msp430_mcu_names", "[", "i", "]", ",", "target_mcu", ")", "==", "", ")", "{", "msp430x", "=", "false", ";"], "ground_truth": ["break", ";"], "File": "msp4302", "Func": "msp430_option_override", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200581, "Length": 41, "Cover_Rate": 0.3153846153846154} {"Template_token": ["", "if", "(", "msp430_use_f5_series_hwmult", "(", ")", ")", "name", "=", "", ";", "else", "if", "(", "!", "msp430_no_hwmult", "(", ")", ")", "name", "=", "", ";", "}", "else", "if", "(", "strcmp", "(", "", ",", "name", ")", "==", "", ")", "{", "if", "(", "msp430_use_f5_series_hwmult", "(", ")", ")", "name", "=", "", ";", "else", "if", "(", "use_32bit_hwmult", "(", ")", ")", "name", "=", "", ";", "else", "if", "(", "!", "msp430_no_hwmult", "(", ")", ")", "name", "=", "", ";", "}", "}"], "ground_truth": ["fputs", "(", "name", ",", "file", ")", ";"], "File": "msp4302", "Func": "msp430_output_labelref", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200582, "Length": 78, "Cover_Rate": 0.49056603773584906} {"Template_token": ["", "static", "bool", "msp430_pass_by_reference", "(", "cumulative_args_t", "cap", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", ",", "const_tree", "type", ",", "bool", "named", "ATTRIBUTE_UNUSED", ")", "{"], "ground_truth": ["return", "(", "mode", "==", "BLKmode", "||", "(", "type", "&&", "TREE_CODE", "(", "type", ")", "==", "RECORD_TYPE", ")", "||", "(", "type", "&&", "TREE_CODE", "(", "type", ")", "==", "UNION_TYPE", ")", ")", ";"], "File": "msp4302", "Func": "msp430_pass_by_reference", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200584, "Length": 48, "Cover_Rate": 0.9795918367346939} {"Template_token": ["", "if", "(", "msp430_is_interrupt_func", "(", ")", ")", "return", "!", "crtl", "->", "is_leaf", "||", "df_regs_ever_live_p", "(", "regno", ")", ";"], "ground_truth": ["if", "(", "!", "call_used_regs", "[", "regno", "]", "&&", "df_regs_ever_live_p", "(", "regno", ")", ")", "return", "true", ";"], "File": "msp4302", "Func": "msp430_preserve_reg_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200585, "Length": 33, "Cover_Rate": 0.4520547945205479} {"Template_token": ["", "static", "void", "msp430_print_operand", "(", "FILE", "*", "file", ",", "rtx", "op", ",", "int", "letter", ")", "{", "rtx", "addr", ";", "switch", "(", "letter", ")", "{", "case", "'Z'", ":", "gcc_assert", "(", "CONST_INT_P", "(", "op", ")", ")", ";", "fprintf", "(", "file", ",", "", ",", "INTVAL", "(", "op", ")", "-", "", ")", ";", "return", ";", "case", "'Y'", ":", "gcc_assert", "(", "CONST_INT_P", "(", "op", ")", ")", ";", "fprintf", "(", "file", ",", "", ",", "INTVAL", "(", "op", ")", "-", "", ")", ";", "return", ";", "case", "'I'", ":", "if", "(", "GET_CODE", "(", "op", ")", "==", "CONST_INT", ")", "{", "int", "i", "=", "INTVAL", "(", "op", ")", ";", "fprintf", "(", "file", ",", "", ",", "~", "i", ")", ";", "return", ";", "}", "op", "=", "XEXP", "(", "op", ",", "", ")", ";", "break", ";", "case", "'r'", ":", "switch", "(", "GET_CODE", "(", "op", ")", ")", "{", "case", "EQ", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "NE", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GEU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LTU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GE", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LT", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GTU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LEU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GT", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LE", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "default", ":", "msp430_print_operand_raw", "(", "file", ",", "op", ")", ";", "break", ";", "}", "return", ";", "case", "'R'", ":", "switch", "(", "GET_CODE", "(", "op", ")", ")", "{", "case", "GTU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LEU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GT", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LE", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "default", ":", "msp430_print_operand_raw", "(", "file", ",", "op", ")", ";", "break", ";", "}", "return", ";", "case", "'p'", ":", "gcc_assert", "(", "CONST_INT_P", "(", "op", ")", ")", ";", "fprintf", "(", "file", ",", "", ",", "", "<<", "INTVAL", "(", "op", ")", ")", ";", "return", ";", "case", "'b'", ":", "switch", "(", "GET_MODE", "(", "op", ")", ")", "{", "case", "QImode", ":", "fprintf", "(", "file", ",", "", ")", ";", "return", ";", "case", "HImode", ":", "fprintf", "(", "file", ",", "", ")", ";", "return", ";", "case", "PSImode", ":", "fprintf", "(", "file", ",", "", ")", ";", "return", ";", "case", "SImode", ":", "fprintf", "(", "file", ",", "", ")", ";", "return", ";", "default", ":", "return", ";", "}", "case", "'A'", ":", "case", "'L'", ":", "switch", "(", "GET_CODE", "(", "op", ")", ")", "{", "case", "MEM", ":", "op", "=", "adjust_address", "(", "op", ",", "Pmode", ",", "", ")", ";", "break", ";", "case", "REG", ":", "break", ";", "case", "CONST_INT", ":", "op", "=", "GEN_INT", "(", "INTVAL", "(", "op", ")", "&", "", ")", ";", "letter", "=", "", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "break", ";", "case", "'B'", ":", "case", "'H'", ":"], "ground_truth": ["switch", "(", "GET_CODE", "(", "op", ")", ")", "{"], "File": "msp4302", "Func": "msp430_print_operand", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200586, "Length": 510, "Cover_Rate": 0.45454545454545453} {"Template_token": ["", "msp430_print_operand_raw", "(", "file", ",", "XEXP", "(", "addr", ",", "", ")", ")", ";", "gcc_assert", "(", "REG_P", "(", "XEXP", "(", "addr", ",", "", ")", ")", ")", ";", "fprintf", "(", "file", ",", "", ",", "reg_names", "[", "REGNO", "(", "XEXP", "(", "addr", ",", "", ")", ")", "]", ")", ";", "return", ";", "case", "REG", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "CONST", ":"], "ground_truth": ["case", "CONST_INT", ":"], "File": "msp4302", "Func": "msp430_print_operand_addr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200587, "Length": 65, "Cover_Rate": 0.5603448275862069} {"Template_token": ["", "break", ";", "case", "CONST_INT", ":", "i", "=", "INTVAL", "(", "op", ")", ";", "if", "(", "TARGET_ASM_HEX", ")", "fprintf", "(", "file", ",", "", "HOST_WIDE_INT_PRINT", "", ",", "i", ")", ";", "else", "fprintf", "(", "file", ",", "", "HOST_WIDE_INT_PRINT", "", ",", "i", ")", ";", "break", ";", "case", "CONST", ":", "case", "PLUS", ":", "case", "MINUS", ":", "case", "SYMBOL_REF", ":", "case", "LABEL_REF", ":", "output_addr_const", "(", "file", ",", "op", ")", ";", "break", ";"], "ground_truth": ["default", ":"], "File": "msp4302", "Func": "msp430_print_operand_raw", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200588, "Length": 67, "Cover_Rate": 0.5630252100840336} {"Template_token": ["", "switch", "(", "GET_CODE", "(", "op", ")", ")", "{", "case", "REG", ":", "fprintf", "(", "file", ",", "", ",", "reg_names", "[", "REGNO", "(", "op", ")", "]", ")", ";", "break", ";", "case", "CONST_INT", ":", "i", "=", "INTVAL", "(", "op", ")", ";", "if", "(", "TARGET_ASM_HEX", ")", "fprintf", "(", "file", ",", "", "HOST_WIDE_INT_PRINT", "", ",", "i", ")", ";"], "ground_truth": ["else", "fprintf", "(", "file", ",", "", "HOST_WIDE_INT_PRINT", "", ",", "i", ")", ";"], "File": "msp4302", "Func": "msp430_print_operand_raw", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200589, "Length": 65, "Cover_Rate": 0.5462184873949579} {"Template_token": ["", "*", "total", "=", "COSTS_N_INSNS", "(", "", ")", ";", "return", "true", ";", "}", "break", ";", "case", "ASHIFT", ":", "case", "ASHIFTRT", ":", "case", "LSHIFTRT", ":", "if", "(", "!", "msp430x", ")", "{", "*", "total", "=", "COSTS_N_INSNS", "(", "", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "msp4302", "Func": "msp430_rtx_costs", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200590, "Length": 40, "Cover_Rate": 0.40816326530612246} {"Template_token": ["", "static", "bool", "msp430_scalar_mode_supported_p", "(", "machine_mode", "m", ")", "{"], "ground_truth": ["if", "(", "m", "==", "PSImode", "&&", "msp430x", ")", "return", "true", ";"], "File": "msp4302", "Func": "msp430_scalar_mode_supported_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200591, "Length": 19, "Cover_Rate": 0.5428571428571428} {"Template_token": ["", "if", "(", "m", "==", "TImode", ")", "return", "true", ";", "return", "default_scalar_mode_supported_p", "(", "m", ")", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_scalar_mode_supported_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200592, "Length": 16, "Cover_Rate": 0.45714285714285713} {"Template_token": ["", "static", "bool", "msp430_special_register_convention_p", "(", "const", "char", "*", "name", ")", "{", "int", "i", ";"], "ground_truth": ["for", "(", "i", "=", "", ";", "special_convention_function_names", "[", "i", "]", ";", "i", "++", ")", "if", "(", "!", "strcmp", "(", "name", ",", "special_convention_function_names", "[", "i", "]", ")", ")", "return", "true", ";"], "File": "msp4302", "Func": "msp430_special_register_convention_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200593, "Length": 43, "Cover_Rate": 0.9148936170212766} {"Template_token": ["", "rtx", "op00", ",", "op02", ",", "op10", ",", "op12", ";", "op00", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "op02", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "if", "(", "GET_CODE", "(", "operands", "[", "", "]", ")", "==", "CONST", "||", "GET_CODE", "(", "operands", "[", "", "]", ")", "==", "SYMBOL_REF", ")", "{", "op10", "=", "gen_rtx_ZERO_EXTRACT", "(", "HImode", ",", "operands", "[", "", "]", ",", "GEN_INT", "(", "", ")", ",", "GEN_INT", "(", "", ")", ")", ";", "op10", "=", "gen_rtx_CONST", "(", "HImode", ",", "op10", ")", ";", "op12", "=", "gen_rtx_ZERO_EXTRACT", "(", "HImode", ",", "operands", "[", "", "]", ",", "GEN_INT", "(", "", ")", ",", "GEN_INT", "(", "", ")", ")", ";", "op12", "=", "gen_rtx_CONST", "(", "HImode", ",", "op12", ")", ";", "}", "else", "{", "op10", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "op12", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "}", "if", "(", "rtx_equal_p", "(", "operands", "[", "", "]", ",", "operands", "[", "", "]", ")", ")", "{", "operands", "[", "", "]", "=", "op02", ";", "operands", "[", "", "]", "=", "op12", ";", "operands", "[", "", "]", "=", "op00", ";", "operands", "[", "", "]", "=", "op10", ";", "}"], "ground_truth": ["else", "if", "(", "rtx_equal_p", "(", "op00", ",", "op12", ")", "||", "(", "REG_P", "(", "op00", ")", "&&", "reg_mentioned_p", "(", "op00", ",", "op10", ")", ")", "||", "(", "REG_P", "(", "op10", ")", "&&", "reg_mentioned_p", "(", "op10", ",", "op00", ")", ")", ")", "{"], "File": "msp4302", "Func": "msp430_split_movsi", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200594, "Length": 246, "Cover_Rate": 0.780952380952381} {"Template_token": ["", "op00", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "op02", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "if", "(", "GET_CODE", "(", "operands", "[", "", "]", ")", "==", "CONST", "||", "GET_CODE", "(", "operands", "[", "", "]", ")", "==", "SYMBOL_REF", ")", "{", "op10", "=", "gen_rtx_ZERO_EXTRACT", "(", "HImode", ",", "operands", "[", "", "]", ",", "GEN_INT", "(", "", ")", ",", "GEN_INT", "(", "", ")", ")", ";", "op10", "=", "gen_rtx_CONST", "(", "HImode", ",", "op10", ")", ";", "op12", "=", "gen_rtx_ZERO_EXTRACT", "(", "HImode", ",", "operands", "[", "", "]", ",", "GEN_INT", "(", "", ")", ",", "GEN_INT", "(", "", ")", ")", ";", "op12", "=", "gen_rtx_CONST", "(", "HImode", ",", "op12", ")", ";", "}", "else", "{", "op10", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "op12", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "}", "if", "(", "rtx_equal_p", "(", "operands", "[", "", "]", ",", "operands", "[", "", "]", ")", ")", "{", "operands", "[", "", "]", "=", "op02", ";", "operands", "[", "", "]", "=", "op12", ";", "operands", "[", "", "]", "=", "op00", ";", "operands", "[", "", "]", "=", "op10", ";", "}", "else", "if", "(", "rtx_equal_p", "(", "op00", ",", "op12", ")", "||", "(", "REG_P", "(", "op00", ")", "&&", "reg_mentioned_p", "(", "op00", ",", "op10", ")", ")", "||", "(", "REG_P", "(", "op10", ")", "&&", "reg_mentioned_p", "(", "op10", ",", "op00", ")", ")", ")", "{", "operands", "[", "", "]", "=", "op02", ";", "operands", "[", "", "]", "=", "op12", ";", "operands", "[", "", "]", "=", "op00", ";", "operands", "[", "", "]", "=", "op10", ";", "}", "else", "{", "operands", "[", "", "]", "=", "op00", ";", "operands", "[", "", "]", "=", "op10", ";", "operands", "[", "", "]", "=", "op02", ";", "operands", "[", "", "]", "=", "op12", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_split_movsi", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200595, "Length": 297, "Cover_Rate": 0.9428571428571428} {"Template_token": ["", "void", "msp430_start_function", "(", "FILE", "*", "file", ",", "const", "char", "*", "name", ",", "tree", "decl", ")", "{", "tree", "int_attr", ";", "int_attr", "=", "lookup_attribute", "(", "", ",", "DECL_ATTRIBUTES", "(", "decl", ")", ")", ";", "if", "(", "int_attr", "!=", "NULL_TREE", ")", "{", "tree", "intr_vector", "=", "TREE_VALUE", "(", "int_attr", ")", ";", "if", "(", "intr_vector", "!=", "NULL_TREE", ")", "{", "char", "buf", "[", "", "]", ";", "intr_vector", "=", "TREE_VALUE", "(", "intr_vector", ")", ";", "if", "(", "TREE_CODE", "(", "intr_vector", ")", "==", "STRING_CST", ")", "sprintf", "(", "buf", ",", "", ",", "TREE_STRING_POINTER", "(", "intr_vector", ")", ")", ";", "else", "sprintf", "(", "buf", ",", "", ",", "(", "unsigned", "int", ")", "TREE_INT_CST_LOW", "(", "intr_vector", ")", ")", ";", "switch_to_section", "(", "get_section", "(", "buf", ",", "SECTION_CODE", ",", "decl", ")", ")", ";"], "ground_truth": ["fputs", "(", "", ",", "file", ")", ";"], "File": "msp4302", "Func": "msp430_start_function", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200596, "Length": 123, "Cover_Rate": 0.75} {"Template_token": ["", "rtx", "ireg", "=", "SUBREG_REG", "(", "r", ")", ";", "machine_mode", "imode", "=", "GET_MODE", "(", "ireg", ")", ";", "if", "(", "imode", "==", "PSImode", "&&", "mode", "==", "HImode", "&&", "byte", "==", "", ")", "rv", "=", "gen_rtx_SUBREG", "(", "mode", ",", "ireg", ",", "byte", ")", ";", "else", "rv", "=", "simplify_gen_subreg", "(", "mode", ",", "ireg", ",", "imode", ",", "byte", ")", ";"], "ground_truth": ["}"], "File": "msp4302", "Func": "msp430_subreg", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200597, "Length": 56, "Cover_Rate": 0.4} {"Template_token": ["", "static", "bool", "reg_ok_for_addr", "(", "rtx", "r", ",", "bool", "strict", ")", "{", "int", "rn", "=", "REGNO", "(", "r", ")", ";", "if", "(", "strict", "&&", "rn", ">=", "FIRST_PSEUDO_REGISTER", ")", "rn", "=", "reg_renumber", "[", "rn", "]", ";", "if", "(", "strict", "&&", "", "<=", "rn", "&&", "rn", "<", "FIRST_PSEUDO_REGISTER", ")", "return", "true", ";", "if", "(", "!", "strict", ")", "return", "true", ";"], "ground_truth": ["return", "false", ";"], "File": "msp4302", "Func": "reg_ok_for_addr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200600, "Length": 60, "Cover_Rate": 0.9836065573770492} {"Template_token": ["", "static", "const", "char", "*", "known_32bit_mult_mcus", "[", "]", "=", "{", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", "}", ";", "static", "const", "char", "*", "cached_match", "=", "NULL", ";", "static", "bool", "cached_result", ";", "int", "i", ";", "if", "(", "msp430_hwmult_type", "==", "LARGE", ")", "return", "true", ";", "if", "(", "target_mcu", "==", "NULL", "||", "msp430_hwmult_type", "!=", "AUTO", ")", "return", "false", ";", "if", "(", "target_mcu", "==", "cached_match", ")", "return", "cached_result", ";", "cached_match", "=", "target_mcu", ";", "for", "(", "i", "=", "ARRAY_SIZE", "(", "known_32bit_mult_mcus", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "target_mcu", ",", "known_32bit_mult_mcus", "[", "i", "]", ")", "==", "", ")", "return", "cached_result", "=", "true", ";"], "ground_truth": ["return", "cached_result", "=", "false", ";"], "File": "msp4302", "Func": "use_32bit_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200601, "Length": 133, "Cover_Rate": 0.9432624113475178} {"Template_token": ["", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", ",", "", "}", ";", "static", "const", "char", "*", "cached_match", "=", "NULL", ";", "static", "bool", "cached_result", ";", "int", "i", ";", "if", "(", "msp430_hwmult_type", "==", "LARGE", ")", "return", "true", ";", "if", "(", "target_mcu", "==", "NULL", "||", "msp430_hwmult_type", "!=", "AUTO", ")", "return", "false", ";", "if", "(", "target_mcu", "==", "cached_match", ")", "return", "cached_result", ";", "cached_match", "=", "target_mcu", ";", "for", "(", "i", "=", "ARRAY_SIZE", "(", "known_32bit_mult_mcus", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "target_mcu", ",", "known_32bit_mult_mcus", "[", "i", "]", ")", "==", "", ")", "return", "cached_result", "=", "true", ";"], "ground_truth": ["return", "cached_result", "=", "false", ";"], "File": "msp4302", "Func": "use_32bit_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200602, "Length": 124, "Cover_Rate": 0.8794326241134752} {"Template_token": ["", "if", "(", "msp430_code_region", "==", "LOWER", ")", "return", "lower_prefix", ";", "if", "(", "msp430_code_region", "==", "UPPER", ")", "return", "upper_prefix", ";", "if", "(", "msp430_code_region", "==", "EITHER", ")", "return", "either_prefix", ";", "}", "else", "{", "if", "(", "msp430_data_region", "==", "LOWER", ")", "return", "lower_prefix", ";", "if", "(", "msp430_data_region", "==", "UPPER", ")", "return", "upper_prefix", ";", "if", "(", "msp430_data_region", "==", "EITHER", ")", "return", "either_prefix", ";", "}", "return", "NULL", ";"], "ground_truth": ["}"], "File": "msp4303", "Func": "gen_prefix", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200603, "Length": 62, "Cover_Rate": 0.4189189189189189} {"Template_token": ["", "static", "bool", "msp430_allocate_stack_slots_for_args", "(", "void", ")", "{", "return", "!", "is_naked_func", "(", ")", ";"], "ground_truth": ["}"], "File": "msp4303", "Func": "msp430_allocate_stack_slots_for_args", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200604, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "static", "bool", "msp430_allocate_stack_slots_for_args", "(", "void", ")", "{", "return", "!", "is_naked_func", "(", ")", ";"], "ground_truth": ["}"], "File": "msp4303", "Func": "msp430_allocate_stack_slots_for_args", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200605, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "const", "char", "*", "message", "=", "NULL", ";", "if", "(", "TREE_CODE", "(", "*", "node", ")", "!=", "FUNCTION_DECL", ")", "{", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_INTR", ")", ")", "{", "if", "(", "TREE_CODE", "(", "TREE_TYPE", "(", "*", "node", ")", ")", "==", "FUNCTION_TYPE", "&&", "!", "VOID_TYPE_P", "(", "TREE_TYPE", "(", "TREE_TYPE", "(", "*", "node", ")", ")", ")", ")", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_REENT", ")", ")", "{", "if", "(", "is_naked_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "else", "if", "(", "is_critical_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_CRIT", ")", ")", "{", "if", "(", "is_naked_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "else", "if", "(", "is_reentrant_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_NAKED", ")", ")", "{", "if", "(", "is_critical_func", "(", "*", "node", ")", ")", "message", "=", "", ";"], "ground_truth": ["else", "if", "(", "is_reentrant_func", "(", "*", "node", ")", ")", "message", "=", "", ";"], "File": "msp4303", "Func": "msp430_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200606, "Length": 175, "Cover_Rate": 0.49157303370786515} {"Template_token": ["", "if", "(", "TREE_CODE", "(", "*", "node", ")", "!=", "VAR_DECL", ")", "message", "=", "", ";", "if", "(", "DECL_SECTION_NAME", "(", "*", "node", ")", ")", "message", "=", "", ";", "if", "(", "DECL_COMMON", "(", "*", "node", ")", ")", "DECL_COMMON", "(", "*", "node", ")", "=", "", ";", "if", "(", "message", ")", "{", "warning", "(", "OPT_Wattributes", ",", "message", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";"], "ground_truth": ["}"], "File": "msp4303", "Func": "msp430_data_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200607, "Length": 62, "Cover_Rate": 0.5486725663716814} {"Template_token": ["", "if", "(", "DECL_SECTION_NAME", "(", "*", "node", ")", ")", "message", "=", "", ";", "if", "(", "DECL_COMMON", "(", "*", "node", ")", ")", "DECL_COMMON", "(", "*", "node", ")", "=", "", ";", "if", "(", "message", ")", "{"], "ground_truth": ["warning", "(", "OPT_Wattributes", ",", "message", ",", "name", ")", ";"], "File": "msp4303", "Func": "msp430_data_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200608, "Length": 42, "Cover_Rate": 0.37168141592920356} {"Template_token": ["", "return", "msp430_code_region", "==", "EITHER", "||", "msp430_code_region", "==", "LOWER", "||", "has_attr", "(", "ATTR_EITHER", ",", "current_function_decl", ")", "||", "has_attr", "(", "ATTR_LOWER", ",", "current_function_decl", ")", ";"], "ground_truth": ["}"], "File": "msp4303", "Func": "msp430_do_not_relax_short_jumps", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200609, "Length": 24, "Cover_Rate": 0.8} {"Template_token": ["", "bool", "msp430_do_not_relax_short_jumps", "(", "void", ")", "{", "return", "msp430_code_region", "==", "EITHER", "||", "msp430_code_region", "==", "LOWER", "||", "has_attr", "(", "ATTR_EITHER", ",", "current_function_decl", ")", "||", "has_attr", "(", "ATTR_LOWER", ",", "current_function_decl", ")", ";"], "ground_truth": ["}"], "File": "msp4303", "Func": "msp430_do_not_relax_short_jumps", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200610, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "note", "=", "gen_rtx_SEQUENCE", "(", "VOIDmode", ",", "rtvec_alloc", "(", "count", "+", "", ")", ")", ";", "XVECEXP", "(", "note", ",", "", ",", "", ")", "=", "F", "(", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "count", "*", "(", "TARGET_LARGE", "?", "-", "", ":", "-", "", ")", ")", ")", ")", ")", ";", "for", "(", "j", "=", "", ";", "j", "<", "count", ";", "j", "++", ")", "{", "rtx", "addr", ";", "int", "ofs", "=", "(", "count", "-", "j", "-", "", ")", "*", "(", "TARGET_LARGE", "?", "", ":", "", ")", ";", "if", "(", "ofs", ")", "addr", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "sp", ",", "GEN_INT", "(", "ofs", ")", ")", ";", "else", "addr", "=", "stack_pointer_rtx", ";", "XVECEXP", "(", "note", ",", "", ",", "j", "+", "", ")", "=", "F", "(", "gen_rtx_SET", "(", "gen_rtx_MEM", "(", "Pmode", ",", "addr", ")", ",", "gen_rtx_REG", "(", "Pmode", ",", "i", "-", "j", ")", ")", ")", ";", "}", "add_reg_note", "(", "p", ",", "REG_FRAME_RELATED_EXPR", ",", "note", ")", ";", "i", "-=", "count", "-", "", ";", "}"], "ground_truth": ["else", "F", "(", "emit_insn", "(", "gen_push", "(", "gen_rtx_REG", "(", "Pmode", ",", "i", ")", ")", ")", ")", ";"], "File": "msp4303", "Func": "msp430_expand_prologue", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200611, "Length": 179, "Cover_Rate": 0.33271375464684017} {"Template_token": ["", "emit_insn", "(", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "GEN_INT", "(", "", ")", ")", ")", ";", "return", ";", "}", "emit_insn", "(", "gen_prologue_start_marker", "(", ")", ")", ";", "if", "(", "is_critical_func", "(", ")", ")", "{", "emit_insn", "(", "gen_push_intr_state", "(", ")", ")", ";", "emit_insn", "(", "gen_disable_interrupts", "(", ")", ")", ";", "}", "else", "if", "(", "is_reentrant_func", "(", ")", ")", "emit_insn", "(", "gen_disable_interrupts", "(", ")", ")", ";", "if", "(", "!", "cfun", "->", "machine", "->", "computed", ")", "msp430_compute_frame_info", "(", ")", ";", "if", "(", "flag_stack_usage_info", ")", "current_function_static_stack_size", "=", "cfun", "->", "machine", "->", "framesize", ";", "if", "(", "crtl", "->", "args", ".", "pretend_args_size", ")", "{", "rtx", "note", ";", "gcc_assert", "(", "crtl", "->", "args", ".", "pretend_args_size", "==", "", ")", ";", "p", "=", "emit_insn", "(", "gen_grow_and_swap", "(", ")", ")", ";", "note", "=", "F", "(", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "", ")", ")", ")", ")", ";", "add_reg_note", "(", "p", ",", "REG_FRAME_RELATED_EXPR", ",", "note", ")", ";", "note", "=", "F", "(", "gen_rtx_SET", "(", "gen_rtx_MEM", "(", "Pmode", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "", ")", ")", ")", ",", "pc_rtx", ")", ")", ";", "add_reg_note", "(", "p", ",", "REG_CFA_OFFSET", ",", "note", ")", ";", "F", "(", "p", ")", ";", "}", "for", "(", "i", "=", "", ";", "i", ">=", "", ";", "i", "--", ")", "if", "(", "cfun", "->", "machine", "->", "need_to_save", "[", "i", "]", ")", "{", "int", "seq", ",", "count", ";", "rtx", "note", ";", "for", "(", "seq", "=", "i", "-", "", ";", "seq", ">=", "", "&&", "cfun", "->", "machine", "->", "need_to_save", "[", "seq", "]", ";", "seq", "--", ")", ";", "count", "=", "i", "-", "seq", ";", "if", "(", "msp430x", ")", "{", "p", "=", "F", "(", "emit_insn", "(", "gen_pushm", "(", "gen_rtx_REG", "(", "Pmode", ",", "i", ")", ",", "GEN_INT", "(", "count", ")", ")", ")", ")", ";", "note", "=", "gen_rtx_SEQUENCE", "(", "VOIDmode", ",", "rtvec_alloc", "(", "count", "+", "", ")", ")", ";", "XVECEXP", "(", "note", ",", "", ",", "", ")", "=", "F", "(", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "count", "*", "(", "TARGET_LARGE", "?", "-", "", ":", "-", "", ")", ")", ")", ")", ")", ";"], "ground_truth": ["for", "(", "j", "=", "", ";", "j", "<", "count", ";", "j", "++", ")", "{"], "File": "msp4303", "Func": "msp430_expand_prologue", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200612, "Length": 349, "Cover_Rate": 0.6486988847583643} {"Template_token": ["", "persist_section", "=", "get_unnamed_section", "(", "", ",", "output_section_asm_op", ",", "", ")", ";"], "ground_truth": ["}"], "File": "msp4303", "Func": "msp430_init_sections", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200613, "Length": 12, "Cover_Rate": 0.4} {"Template_token": ["", "noinit_section", "=", "get_unnamed_section", "(", "", ",", "output_section_asm_op", ",", "", ")", ";", "persist_section", "=", "get_unnamed_section", "(", "", ",", "output_section_asm_op", ",", "", ")", ";"], "ground_truth": ["}"], "File": "msp4303", "Func": "msp430_init_sections", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200614, "Length": 23, "Cover_Rate": 0.7666666666666667} {"Template_token": ["", "if", "(", "target_mcu", "==", "NULL", ")", "return", "true", ";", "if", "(", "target_mcu", "==", "cached_match", ")", "return", "cached_result", ";", "cached_match", "=", "target_mcu", ";"], "ground_truth": ["for", "(", "i", "=", "ARRAY_SIZE", "(", "msp430_mcu_data", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "target_mcu", ",", "msp430_mcu_data", "[", "i", "]", ".", "name", ")", "==", "", ")", "return", "cached_result", "=", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "==", "", ";"], "File": "msp4303", "Func": "msp430_no_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200615, "Length": 63, "Cover_Rate": 0.5779816513761468} {"Template_token": ["", "static", "bool", "msp430_no_hwmult", "(", "void", ")", "{", "static", "const", "char", "*", "cached_match", "=", "NULL", ";", "static", "bool", "cached_result", ";", "int", "i", ";", "if", "(", "msp430_hwmult_type", "==", "NONE", ")", "return", "true", ";", "if", "(", "msp430_hwmult_type", "!=", "AUTO", ")", "return", "false", ";"], "ground_truth": ["if", "(", "target_mcu", "==", "NULL", ")", "return", "true", ";"], "File": "msp4303", "Func": "msp430_no_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200616, "Length": 49, "Cover_Rate": 0.44954128440366975} {"Template_token": ["", "}", "msp430x", "=", "xisa", ";", "break", ";", "}", "if", "(", "i", "<", "", ")", "{", "if", "(", "msp430_hwmult_type", "==", "AUTO", ")", "{", "if", "(", "msp430_warn_mcu", ")", "{", "if", "(", "target_cpu", "==", "NULL", ")", "warning", "(", "", ",", "", ",", "target_mcu", ")", ";", "else", "warning", "(", "", ",", "", ",", "target_mcu", ")", ";", "}", "msp430_hwmult_type", "=", "NONE", ";", "}", "else", "if", "(", "target_cpu", "==", "NULL", ")", "{", "if", "(", "msp430_warn_mcu", ")", "warning", "(", "", ",", "", ",", "target_mcu", ")", ";", "msp430x", "=", "false", ";", "}", "else", "if", "(", "msp430_warn_mcu", ")", "warning", "(", "", ",", "", ",", "target_mcu", ")", ";", "}", "}", "if", "(", "target_cpu", "==", "NULL", "&&", "target_mcu", "==", "NULL", "&&", "msp430_hwmult_type", "==", "F5SERIES", ")", "msp430x", "=", "true", ";", "if", "(", "TARGET_LARGE", "&&", "!", "msp430x", ")", "error", "(", "", ")", ";"], "ground_truth": ["if", "(", "msp430_code_region", "==", "UPPER", "&&", "!", "msp430x", ")", "error", "(", "", ")", ";"], "File": "msp4303", "Func": "msp430_option_override", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200617, "Length": 144, "Cover_Rate": 0.3083511777301927} {"Template_token": ["", "assemble_name", "(", "stream", ",", "name", ")", ";", "fprintf", "(", "stream", ",", "", "HOST_WIDE_INT_PRINT_UNSIGNED", "", ",", "size", ",", "align", "/", "BITS_PER_UNIT", ")", ";", "}", "else", "{", "section", "*", "sec", ";", "if", "(", "decl", ")", "sec", "=", "msp430_select_section", "(", "decl", ",", "", ",", "align", ")", ";", "else", "switch", "(", "msp430_data_region", ")", "{", "case", "UPPER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";", "case", "LOWER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";", "case", "EITHER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "gcc_assert", "(", "sec", "!=", "NULL", ")", ";", "switch_to_section", "(", "sec", ")", ";", "ASM_OUTPUT_ALIGN", "(", "stream", ",", "floor_log2", "(", "align", "/", "BITS_PER_UNIT", ")", ")", ";", "targetm", ".", "asm_out", ".", "globalize_label", "(", "stream", ",", "name", ")", ";", "ASM_WEAKEN_LABEL", "(", "stream", ",", "name", ")", ";", "ASM_OUTPUT_LABEL", "(", "stream", ",", "name", ")", ";", "ASM_OUTPUT_SKIP", "(", "stream", ",", "size", "?", "size", ":", "", ")", ";"], "ground_truth": ["}"], "File": "msp4303", "Func": "msp430_output_aligned_decl_common", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200618, "Length": 166, "Cover_Rate": 0.8058252427184466} {"Template_token": ["", "section", "*", "sec", ";", "if", "(", "decl", ")", "sec", "=", "msp430_select_section", "(", "decl", ",", "", ",", "align", ")", ";", "else", "switch", "(", "msp430_data_region", ")", "{", "case", "UPPER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";", "case", "LOWER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";", "case", "EITHER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "gcc_assert", "(", "sec", "!=", "NULL", ")", ";", "switch_to_section", "(", "sec", ")", ";", "ASM_OUTPUT_ALIGN", "(", "stream", ",", "floor_log2", "(", "align", "/", "BITS_PER_UNIT", ")", ")", ";"], "ground_truth": ["targetm", ".", "asm_out", ".", "globalize_label", "(", "stream", ",", "name", ")", ";"], "File": "msp4303", "Func": "msp430_output_aligned_decl_common", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200619, "Length": 115, "Cover_Rate": 0.558252427184466} {"Template_token": ["", "return", ";", "case", "'I'", ":", "if", "(", "GET_CODE", "(", "op", ")", "==", "CONST_INT", ")", "{", "int", "i", "=", "INTVAL", "(", "op", ")", ";", "fprintf", "(", "file", ",", "", ",", "~", "i", ")", ";", "return", ";", "}", "op", "=", "XEXP", "(", "op", ",", "", ")", ";", "break", ";", "case", "'r'", ":", "switch", "(", "GET_CODE", "(", "op", ")", ")", "{", "case", "EQ", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "NE", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GEU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LTU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GE", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LT", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GTU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LEU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GT", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LE", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "default", ":", "msp430_print_operand_raw", "(", "file", ",", "op", ")", ";", "break", ";", "}", "return", ";", "case", "'R'", ":", "switch", "(", "GET_CODE", "(", "op", ")", ")", "{", "case", "GTU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LEU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GT", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LE", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "default", ":", "msp430_print_operand_raw", "(", "file", ",", "op", ")", ";", "break", ";", "}", "return", ";", "case", "'p'", ":", "gcc_assert", "(", "CONST_INT_P", "(", "op", ")", ")", ";", "fprintf", "(", "file", ",", "", ",", "", "<<", "INTVAL", "(", "op", ")", ")", ";", "return", ";", "case", "'b'", ":", "switch", "(", "GET_MODE", "(", "op", ")", ")", "{", "case", "QImode", ":", "fprintf", "(", "file", ",", "", ")", ";", "return", ";", "case", "HImode", ":", "fprintf", "(", "file", ",", "", ")", ";", "return", ";", "case", "PSImode", ":", "fprintf", "(", "file", ",", "", ")", ";", "return", ";", "case", "SImode", ":", "fprintf", "(", "file", ",", "", ")", ";", "return", ";", "default", ":"], "ground_truth": ["return", ";"], "File": "msp4303", "Func": "msp430_print_operand", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200620, "Length": 355, "Cover_Rate": 0.3149955634427684} {"Template_token": ["", "static", "void", "msp430_print_operand_addr", "(", "FILE", "*", "file", ",", "machine_mode", ",", "rtx", "addr", ")", "{", "switch", "(", "GET_CODE", "(", "addr", ")", ")", "{", "case", "PLUS", ":", "msp430_print_operand_raw", "(", "file", ",", "XEXP", "(", "addr", ",", "", ")", ")", ";", "gcc_assert", "(", "REG_P", "(", "XEXP", "(", "addr", ",", "", ")", ")", ")", ";", "fprintf", "(", "file", ",", "", ",", "reg_names", "[", "REGNO", "(", "XEXP", "(", "addr", ",", "", ")", ")", "]", ")", ";", "return", ";"], "ground_truth": ["case", "REG", ":"], "File": "msp4303", "Func": "msp430_print_operand_addr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200621, "Length": 75, "Cover_Rate": 0.635593220338983} {"Template_token": ["", "msp430_print_operand_raw", "(", "file", ",", "XEXP", "(", "addr", ",", "", ")", ")", ";", "gcc_assert", "(", "REG_P", "(", "XEXP", "(", "addr", ",", "", ")", ")", ")", ";", "fprintf", "(", "file", ",", "", ",", "reg_names", "[", "REGNO", "(", "XEXP", "(", "addr", ",", "", ")", ")", "]", ")", ";", "return", ";", "case", "REG", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "CONST", ":", "case", "CONST_INT", ":", "case", "SYMBOL_REF", ":"], "ground_truth": ["case", "LABEL_REF", ":"], "File": "msp4303", "Func": "msp430_print_operand_addr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200622, "Length": 71, "Cover_Rate": 0.6016949152542372} {"Template_token": ["", "static", "tree", "msp430_section_attr", "(", "tree", "*", "node", ",", "tree", "name", ",", "tree", "args", ",", "int", "flags", "ATTRIBUTE_UNUSED", ",", "bool", "*", "no_add_attrs", "ATTRIBUTE_UNUSED", ")", "{", "gcc_assert", "(", "DECL_P", "(", "*", "node", ")", ")", ";", "gcc_assert", "(", "args", "==", "NULL", ")", ";", "const", "char", "*", "message", "=", "NULL", ";", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_UPPER", ")", ")", "{", "if", "(", "has_attr", "(", "ATTR_LOWER", ",", "*", "node", ")", ")", "message", "=", "", ";", "else", "if", "(", "has_attr", "(", "ATTR_EITHER", ",", "*", "node", ")", ")", "message", "=", "", ";", "else", "if", "(", "!", "msp430x", ")", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_LOWER", ")", ")", "{", "if", "(", "has_attr", "(", "ATTR_UPPER", ",", "*", "node", ")", ")", "message", "=", "", ";", "else", "if", "(", "has_attr", "(", "ATTR_EITHER", ",", "*", "node", ")", ")", "message", "=", "", ";"], "ground_truth": ["}"], "File": "msp4303", "Func": "msp430_section_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200623, "Length": 138, "Cover_Rate": 0.6764705882352942} {"Template_token": ["", "else", "if", "(", "strncmp", "(", "name", ",", "either_prefix", ",", "strlen", "(", "either_prefix", ")", ")", "==", "", ")", "name", "+=", "strlen", "(", "either_prefix", ")", ";", "else", "if", "(", "strcmp", "(", "name", ",", "", ")", "==", "", ")", "return", "SECTION_WRITE", "|", "SECTION_BSS", "|", "SECTION_NOTYPE", ";", "else", "if", "(", "strcmp", "(", "name", ",", "", ")", "==", "", ")", "return", "SECTION_WRITE", "|", "SECTION_NOTYPE", ";", "return", "default_section_type_flags", "(", "decl", ",", "name", ",", "reloc", ")", ";"], "ground_truth": ["}"], "File": "msp4303", "Func": "msp430_section_type_flags", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200624, "Length": 71, "Cover_Rate": 0.5298507462686567} {"Template_token": ["", "const", "char", "*", "prefix", "=", "gen_prefix", "(", "decl", ")", ";", "if", "(", "prefix", "==", "NULL", ")", "{", "if", "(", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", ")", "return", "text_section", ";", "else", "if", "(", "has_attr", "(", "ATTR_NOINIT", ",", "decl", ")", ")", "return", "noinit_section", ";", "else", "if", "(", "has_attr", "(", "ATTR_PERSIST", ",", "decl", ")", ")", "return", "persist_section", ";", "else", "return", "default_select_section", "(", "decl", ",", "reloc", ",", "align", ")", ";", "}", "const", "char", "*", "sec", ";", "switch", "(", "categorize_decl_for_section", "(", "decl", ",", "reloc", ")", ")", "{", "case", "SECCAT_TEXT", ":", "sec", "=", "", ";", "break", ";", "case", "SECCAT_DATA", ":", "sec", "=", "", ";", "break", ";", "case", "SECCAT_BSS", ":", "sec", "=", "", ";", "break", ";", "case", "SECCAT_RODATA", ":", "sec", "=", "", ";", "break", ";", "case", "SECCAT_RODATA_MERGE_STR", ":", "case", "SECCAT_RODATA_MERGE_STR_INIT", ":", "case", "SECCAT_RODATA_MERGE_CONST", ":", "case", "SECCAT_SRODATA", ":", "case", "SECCAT_DATA_REL", ":", "case", "SECCAT_DATA_REL_LOCAL", ":", "case", "SECCAT_DATA_REL_RO", ":", "case", "SECCAT_DATA_REL_RO_LOCAL", ":", "case", "SECCAT_SDATA", ":", "case", "SECCAT_SBSS", ":", "case", "SECCAT_TDATA", ":", "case", "SECCAT_TBSS", ":", "return", "default_select_section", "(", "decl", ",", "reloc", ",", "align", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "const", "char", "*", "dec_name", "=", "DECL_SECTION_NAME", "(", "decl", ")", ";"], "ground_truth": ["char", "*", "name", "=", "ACONCAT", "(", "(", "prefix", ",", "sec", ",", "dec_name", ",", "NULL", ")", ")", ";"], "File": "msp4303", "Func": "msp430_select_section", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200625, "Length": 198, "Cover_Rate": 0.6449511400651465} {"Template_token": ["", "if", "(", "TREE_CODE", "(", "intr_vector", ")", "==", "STRING_CST", ")", "sprintf", "(", "buf", ",", "", ",", "TREE_STRING_POINTER", "(", "intr_vector", ")", ")", ";", "else", "sprintf", "(", "buf", ",", "", ",", "(", "unsigned", "int", ")", "TREE_INT_CST_LOW", "(", "intr_vector", ")", ")", ";", "switch_to_section", "(", "get_section", "(", "buf", ",", "SECTION_CODE", ",", "decl", ")", ")", ";", "fputs", "(", "", ",", "file", ")", ";", "assemble_name", "(", "file", ",", "name", ")", ";", "fputc", "(", "'\\n'", ",", "file", ")", ";", "fputc", "(", "'\\t'", ",", "file", ")", ";", "}", "}", "switch_to_section", "(", "function_section", "(", "decl", ")", ")", ";", "ASM_OUTPUT_TYPE_DIRECTIVE", "(", "file", ",", "name", ",", "", ")", ";"], "ground_truth": ["ASM_OUTPUT_FUNCTION_LABEL", "(", "file", ",", "name", ",", "decl", ")", ";"], "File": "msp4303", "Func": "msp430_start_function", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200626, "Length": 106, "Cover_Rate": 0.6127167630057804} {"Template_token": ["", "if", "(", "GET_CODE", "(", "r", ")", "==", "SUBREG", "&&", "SUBREG_BYTE", "(", "r", ")", "==", "", ")", "{", "rtx", "ireg", "=", "SUBREG_REG", "(", "r", ")", ";", "machine_mode", "imode", "=", "GET_MODE", "(", "ireg", ")", ";", "if", "(", "imode", "==", "PSImode", "&&", "mode", "==", "HImode", "&&", "byte", "==", "", ")", "rv", "=", "gen_rtx_SUBREG", "(", "mode", ",", "ireg", ",", "byte", ")", ";", "else", "rv", "=", "simplify_gen_subreg", "(", "mode", ",", "ireg", ",", "imode", ",", "byte", ")", ";", "}", "else", "if", "(", "GET_CODE", "(", "r", ")", "==", "MEM", ")", "rv", "=", "adjust_address", "(", "r", ",", "mode", ",", "byte", ")", ";", "else", "if", "(", "GET_CODE", "(", "r", ")", "==", "SYMBOL_REF", "&&", "(", "byte", "==", "", "||", "byte", "==", "", ")", "&&", "mode", "==", "HImode", ")", "{", "rv", "=", "gen_rtx_ZERO_EXTRACT", "(", "HImode", ",", "r", ",", "GEN_INT", "(", "", ")", ",", "GEN_INT", "(", "", "*", "byte", ")", ")", ";", "rv", "=", "gen_rtx_CONST", "(", "HImode", ",", "r", ")", ";"], "ground_truth": ["}"], "File": "msp4303", "Func": "msp430_subreg", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200627, "Length": 150, "Cover_Rate": 0.7653061224489796} {"Template_token": ["", "if", "(", "imode", "==", "PSImode", "&&", "mode", "==", "HImode", "&&", "byte", "==", "", ")", "rv", "=", "gen_rtx_SUBREG", "(", "mode", ",", "ireg", ",", "byte", ")", ";", "else", "rv", "=", "simplify_gen_subreg", "(", "mode", ",", "ireg", ",", "imode", ",", "byte", ")", ";", "}", "else", "if", "(", "GET_CODE", "(", "r", ")", "==", "MEM", ")", "rv", "=", "adjust_address", "(", "r", ",", "mode", ",", "byte", ")", ";", "else", "if", "(", "GET_CODE", "(", "r", ")", "==", "SYMBOL_REF", "&&", "(", "byte", "==", "", "||", "byte", "==", "", ")", "&&", "mode", "==", "HImode", ")", "{", "rv", "=", "gen_rtx_ZERO_EXTRACT", "(", "HImode", ",", "r", ",", "GEN_INT", "(", "", ")", ",", "GEN_INT", "(", "", "*", "byte", ")", ")", ";", "rv", "=", "gen_rtx_CONST", "(", "HImode", ",", "r", ")", ";"], "ground_truth": ["}"], "File": "msp4303", "Func": "msp430_subreg", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200628, "Length": 117, "Cover_Rate": 0.5969387755102041} {"Template_token": ["", "static", "void", "msp430_unique_section", "(", "tree", "decl", ",", "int", "reloc", ")", "{", "gcc_assert", "(", "decl", "!=", "NULL_TREE", ")", ";", "if", "(", "TARGET_LARGE", "&&", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", "&&", "is_interrupt_func", "(", "decl", ")", ")", "{", "set_decl_section_name", "(", "decl", ",", "", ")", ";", "return", ";", "}", "default_unique_section", "(", "decl", ",", "reloc", ")", ";"], "ground_truth": ["const", "char", "*", "prefix", ";"], "File": "msp4303", "Func": "msp430_unique_section", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200629, "Length": 57, "Cover_Rate": 0.40714285714285714} {"Template_token": ["", "static", "machine_mode", "msp430_unwind_word_mode", "(", "void", ")", "{"], "ground_truth": ["return", "msp430x", "?", "PSImode", ":", "HImode", ";"], "File": "msp4303", "Func": "msp430_unwind_word_mode", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200631, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "static", "const", "char", "*", "cached_match", "=", "NULL", ";", "static", "bool", "cached_result", ";", "if", "(", "msp430_hwmult_type", "==", "F5SERIES", ")", "return", "true", ";", "if", "(", "target_mcu", "==", "NULL", "||", "msp430_hwmult_type", "!=", "AUTO", ")", "return", "false", ";", "if", "(", "target_mcu", "==", "cached_match", ")", "return", "cached_result", ";", "cached_match", "=", "target_mcu", ";", "if", "(", "strncasecmp", "(", "target_mcu", ",", "", ",", "", ")", "==", "", ")", "return", "cached_result", "=", "true", ";", "if", "(", "strncasecmp", "(", "target_mcu", ",", "", ",", "", ")", "==", "", ")", "return", "cached_result", "=", "true", ";", "if", "(", "strncasecmp", "(", "target_mcu", ",", "", ",", "", ")", "==", "", ")", "return", "cached_result", "=", "true", ";"], "ground_truth": ["int", "i", ";"], "File": "msp4303", "Func": "msp430_use_f5_series_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200632, "Length": 104, "Cover_Rate": 0.6624203821656051} {"Template_token": ["", "static", "const", "char", "*", "cached_match", "=", "NULL", ";", "static", "bool", "cached_result", ";", "int", "i", ";", "if", "(", "msp430_hwmult_type", "==", "LARGE", ")", "return", "true", ";"], "ground_truth": ["if", "(", "target_mcu", "==", "NULL", "||", "msp430_hwmult_type", "!=", "AUTO", ")", "return", "false", ";"], "File": "msp4303", "Func": "use_32bit_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200633, "Length": 37, "Cover_Rate": 0.3557692307692308} {"Template_token": ["", "static", "bool", "use_32bit_hwmult", "(", "void", ")", "{", "static", "const", "char", "*", "cached_match", "=", "NULL", ";", "static", "bool", "cached_result", ";", "int", "i", ";", "if", "(", "msp430_hwmult_type", "==", "LARGE", ")", "return", "true", ";", "if", "(", "target_mcu", "==", "NULL", "||", "msp430_hwmult_type", "!=", "AUTO", ")", "return", "false", ";", "if", "(", "target_mcu", "==", "cached_match", ")", "return", "cached_result", ";", "cached_match", "=", "target_mcu", ";"], "ground_truth": ["for", "(", "i", "=", "ARRAY_SIZE", "(", "msp430_mcu_data", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "target_mcu", ",", "msp430_mcu_data", "[", "i", "]", ".", "name", ")", "==", "", ")", "return", "cached_result", "=", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "==", "", ";"], "File": "msp4303", "Func": "use_32bit_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200634, "Length": 98, "Cover_Rate": 0.9423076923076923} {"Template_token": ["", "if", "(", "has_attr", "(", "ATTR_EITHER", ",", "decl", ")", ")", "return", "either_prefix", ";", "if", "(", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", ")", "{", "if", "(", "msp430_code_region", "==", "MSP430_REGION_LOWER", ")", "return", "lower_prefix", ";", "if", "(", "msp430_code_region", "==", "MSP430_REGION_UPPER", ")", "return", "upper_prefix", ";", "if", "(", "msp430_code_region", "==", "MSP430_REGION_EITHER", ")", "return", "either_prefix", ";", "}", "else", "{", "if", "(", "msp430_data_region", "==", "MSP430_REGION_LOWER", ")", "return", "lower_prefix", ";", "if", "(", "msp430_data_region", "==", "MSP430_REGION_UPPER", ")", "return", "upper_prefix", ";"], "ground_truth": ["if", "(", "msp430_data_region", "==", "MSP430_REGION_EITHER", ")", "return", "either_prefix", ";"], "File": "msp4304", "Func": "gen_prefix", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200635, "Length": 79, "Cover_Rate": 0.5337837837837838} {"Template_token": ["", "if", "(", "has_attr", "(", "ATTR_LOWER", ",", "decl", ")", ")", "return", "lower_prefix", ";", "if", "(", "!", "msp430x", ")", "return", "NULL", ";", "if", "(", "has_attr", "(", "ATTR_UPPER", ",", "decl", ")", ")", "return", "upper_prefix", ";", "if", "(", "has_attr", "(", "ATTR_EITHER", ",", "decl", ")", ")", "return", "either_prefix", ";", "if", "(", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", ")", "{", "if", "(", "msp430_code_region", "==", "MSP430_REGION_LOWER", ")", "return", "lower_prefix", ";", "if", "(", "msp430_code_region", "==", "MSP430_REGION_UPPER", ")", "return", "upper_prefix", ";", "if", "(", "msp430_code_region", "==", "MSP430_REGION_EITHER", ")", "return", "either_prefix", ";", "}", "else", "{", "if", "(", "msp430_data_region", "==", "MSP430_REGION_LOWER", ")", "return", "lower_prefix", ";", "if", "(", "msp430_data_region", "==", "MSP430_REGION_UPPER", ")", "return", "upper_prefix", ";", "if", "(", "msp430_data_region", "==", "MSP430_REGION_EITHER", ")", "return", "either_prefix", ";"], "ground_truth": ["}"], "File": "msp4304", "Func": "gen_prefix", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200636, "Length": 112, "Cover_Rate": 0.7567567567567568} {"Template_token": ["", "}", "}", "const", "char", "*", "message", "=", "NULL", ";", "if", "(", "TREE_CODE", "(", "*", "node", ")", "!=", "FUNCTION_DECL", ")", "{", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_INTR", ")", ")", "{", "if", "(", "TREE_CODE", "(", "TREE_TYPE", "(", "*", "node", ")", ")", "==", "FUNCTION_TYPE", "&&", "!", "VOID_TYPE_P", "(", "TREE_TYPE", "(", "TREE_TYPE", "(", "*", "node", ")", ")", ")", ")", "message", "=", "", ";", "if", "(", "!", "TREE_PUBLIC", "(", "*", "node", ")", ")", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_REENT", ")", ")", "{", "if", "(", "is_naked_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "else", "if", "(", "is_critical_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_CRIT", ")", ")", "{", "if", "(", "is_naked_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "else", "if", "(", "is_reentrant_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_NAKED", ")", ")", "{", "if", "(", "is_critical_func", "(", "*", "node", ")", ")", "message", "=", "", ";"], "ground_truth": ["else", "if", "(", "is_reentrant_func", "(", "*", "node", ")", ")", "message", "=", "", ";"], "File": "msp4304", "Func": "msp430_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200637, "Length": 190, "Cover_Rate": 0.5149051490514905} {"Template_token": ["", "return", "msp430_code_region", "==", "MSP430_REGION_EITHER", "||", "msp430_code_region", "==", "MSP430_REGION_LOWER", "||", "has_attr", "(", "ATTR_EITHER", ",", "current_function_decl", ")", "||", "has_attr", "(", "ATTR_LOWER", ",", "current_function_decl", ")", ";"], "ground_truth": ["}"], "File": "msp4304", "Func": "msp430_do_not_relax_short_jumps", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200638, "Length": 24, "Cover_Rate": 0.8} {"Template_token": ["", "bool", "msp430_do_not_relax_short_jumps", "(", "void", ")", "{", "return", "msp430_code_region", "==", "MSP430_REGION_EITHER", "||", "msp430_code_region", "==", "MSP430_REGION_LOWER", "||", "has_attr", "(", "ATTR_EITHER", ",", "current_function_decl", ")", "||", "has_attr", "(", "ATTR_LOWER", ",", "current_function_decl", ")", ";"], "ground_truth": ["}"], "File": "msp4304", "Func": "msp430_do_not_relax_short_jumps", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200639, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "int", "i", ";", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_NONE", ")", "return", "true", ";", "if", "(", "msp430_hwmult_type", "!=", "MSP430_HWMULT_AUTO", ")", "return", "false", ";", "if", "(", "target_mcu", "==", "NULL", ")", "return", "true", ";"], "ground_truth": ["if", "(", "target_mcu", "==", "cached_match", ")", "return", "cached_result", ";"], "File": "msp4304", "Func": "msp430_no_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200640, "Length": 39, "Cover_Rate": 0.3577981651376147} {"Template_token": ["", "assemble_name", "(", "stream", ",", "name", ")", ";", "fprintf", "(", "stream", ",", "", "HOST_WIDE_INT_PRINT_UNSIGNED", "", ",", "size", ",", "align", "/", "BITS_PER_UNIT", ")", ";", "}", "else", "{", "section", "*", "sec", ";", "if", "(", "decl", ")", "sec", "=", "msp430_select_section", "(", "decl", ",", "", ",", "align", ")", ";", "else", "switch", "(", "msp430_data_region", ")", "{", "case", "MSP430_REGION_UPPER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";", "case", "MSP430_REGION_LOWER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";", "case", "MSP430_REGION_EITHER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "gcc_assert", "(", "sec", "!=", "NULL", ")", ";", "switch_to_section", "(", "sec", ")", ";", "ASM_OUTPUT_ALIGN", "(", "stream", ",", "floor_log2", "(", "align", "/", "BITS_PER_UNIT", ")", ")", ";", "targetm", ".", "asm_out", ".", "globalize_label", "(", "stream", ",", "name", ")", ";", "ASM_WEAKEN_LABEL", "(", "stream", ",", "name", ")", ";"], "ground_truth": ["ASM_OUTPUT_LABEL", "(", "stream", ",", "name", ")", ";"], "File": "msp4304", "Func": "msp430_output_aligned_decl_common", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200641, "Length": 154, "Cover_Rate": 0.7475728155339806} {"Template_token": ["", "fprintf", "(", "stream", ",", "", "HOST_WIDE_INT_PRINT_UNSIGNED", "", ",", "size", ",", "align", "/", "BITS_PER_UNIT", ")", ";", "}", "else", "{", "section", "*", "sec", ";", "if", "(", "decl", ")", "sec", "=", "msp430_select_section", "(", "decl", ",", "", ",", "align", ")", ";", "else", "switch", "(", "msp430_data_region", ")", "{", "case", "MSP430_REGION_UPPER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";", "case", "MSP430_REGION_LOWER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";"], "ground_truth": ["case", "MSP430_REGION_EITHER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";"], "File": "msp4304", "Func": "msp430_output_aligned_decl_common", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200642, "Length": 91, "Cover_Rate": 0.441747572815534} {"Template_token": ["", "break", ";", "}", "if", "(", "msp430_hwmult_type", "!=", "MSP430_HWMULT_NONE", ")", "{", "if", "(", "strcmp", "(", "", ",", "name", ")", "==", "", ")", "{", "if", "(", "msp430_use_f5_series_hwmult", "(", ")", ")", "name", "=", "", ";", "else", "if", "(", "!", "msp430_no_hwmult", "(", ")", ")", "name", "=", "", ";", "}", "else", "if", "(", "strcmp", "(", "", ",", "name", ")", "==", "", ")", "{", "if", "(", "msp430_use_f5_series_hwmult", "(", ")", ")", "name", "=", "", ";", "else", "if", "(", "use_32bit_hwmult", "(", ")", ")", "name", "=", "", ";", "else", "if", "(", "!", "msp430_no_hwmult", "(", ")", ")", "name", "=", "", ";", "}"], "ground_truth": ["}"], "File": "msp4304", "Func": "msp430_output_labelref", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200643, "Length": 93, "Cover_Rate": 0.5849056603773585} {"Template_token": ["", "if", "(", "TREE_CODE", "(", "intr_vector", ")", "==", "STRING_CST", ")", "sprintf", "(", "buf", ",", "", ",", "TREE_STRING_POINTER", "(", "intr_vector", ")", ")", ";", "else", "sprintf", "(", "buf", ",", "", ",", "(", "unsigned", "int", ")", "TREE_INT_CST_LOW", "(", "intr_vector", ")", ")", ";", "switch_to_section", "(", "get_section", "(", "buf", ",", "SECTION_CODE", ",", "decl", ")", ")", ";", "fputs", "(", "", ",", "file", ")", ";", "assemble_name", "(", "file", ",", "name", ")", ";", "fputc", "(", "'\\n'", ",", "file", ")", ";", "fputc", "(", "'\\t'", ",", "file", ")", ";"], "ground_truth": ["}"], "File": "msp4304", "Func": "msp430_start_function", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200644, "Length": 79, "Cover_Rate": 0.42245989304812837} {"Template_token": ["", "cached_match", "=", "target_mcu", ";", "if", "(", "strncasecmp", "(", "target_mcu", ",", "", ",", "", ")", "==", "", ")", "return", "cached_result", "=", "true", ";", "if", "(", "strncasecmp", "(", "target_mcu", ",", "", ",", "", ")", "==", "", ")", "return", "cached_result", "=", "true", ";", "if", "(", "strncasecmp", "(", "target_mcu", ",", "", ",", "", ")", "==", "", ")", "return", "cached_result", "=", "true", ";", "int", "i", ";", "for", "(", "i", "=", "ARRAY_SIZE", "(", "msp430_mcu_data", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "target_mcu", ",", "msp430_mcu_data", "[", "i", "]", ".", "name", ")", "==", "", ")", "return", "cached_result", "=", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "==", "", ";"], "ground_truth": ["return", "cached_result", "=", "false", ";"], "File": "msp4304", "Func": "msp430_use_f5_series_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200645, "Length": 107, "Cover_Rate": 0.6815286624203821} {"Template_token": ["", "if", "(", "strncasecmp", "(", "target_mcu", ",", "", ",", "", ")", "==", "", ")", "return", "cached_result", "=", "true", ";", "if", "(", "strncasecmp", "(", "target_mcu", ",", "", ",", "", ")", "==", "", ")", "return", "cached_result", "=", "true", ";", "int", "i", ";", "for", "(", "i", "=", "ARRAY_SIZE", "(", "msp430_mcu_data", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "target_mcu", ",", "msp430_mcu_data", "[", "i", "]", ".", "name", ")", "==", "", ")", "return", "cached_result", "=", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "==", "", ";", "return", "cached_result", "=", "false", ";"], "ground_truth": ["}"], "File": "msp4304", "Func": "msp430_use_f5_series_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200646, "Length": 86, "Cover_Rate": 0.5477707006369427} {"Template_token": ["", "cached_match", "=", "target_mcu", ";", "for", "(", "i", "=", "ARRAY_SIZE", "(", "msp430_mcu_data", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "target_mcu", ",", "msp430_mcu_data", "[", "i", "]", ".", "name", ")", "==", "", ")", "return", "cached_result", "=", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "==", "", ";"], "ground_truth": ["return", "cached_result", "=", "false", ";"], "File": "msp4304", "Func": "use_32bit_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200647, "Length": 50, "Cover_Rate": 0.4807692307692308} {"Template_token": ["", "if", "(", "has_attr", "(", "ATTR_LOWER", ",", "decl", ")", ")", "return", "lower_prefix", ";", "if", "(", "!", "msp430x", ")", "return", "NULL", ";", "if", "(", "has_attr", "(", "ATTR_UPPER", ",", "decl", ")", ")", "return", "upper_prefix", ";", "if", "(", "has_attr", "(", "ATTR_EITHER", ",", "decl", ")", ")", "return", "either_prefix", ";", "if", "(", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", ")", "{", "if", "(", "msp430_code_region", "==", "MSP430_REGION_LOWER", ")", "return", "lower_prefix", ";", "if", "(", "msp430_code_region", "==", "MSP430_REGION_UPPER", ")", "return", "upper_prefix", ";", "if", "(", "msp430_code_region", "==", "MSP430_REGION_EITHER", ")", "return", "either_prefix", ";", "}"], "ground_truth": ["else", "{"], "File": "msp4305", "Func": "gen_prefix", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200648, "Length": 84, "Cover_Rate": 0.525} {"Template_token": ["", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_INTR", ")", ")", "{", "if", "(", "TREE_CODE", "(", "TREE_TYPE", "(", "*", "node", ")", ")", "==", "FUNCTION_TYPE", "&&", "!", "VOID_TYPE_P", "(", "TREE_TYPE", "(", "TREE_TYPE", "(", "*", "node", ")", ")", ")", ")", "message", "=", "", ";", "if", "(", "!", "TREE_PUBLIC", "(", "*", "node", ")", ")", "message", "=", "", ";", "TREE_USED", "(", "*", "node", ")", "=", "", ";", "DECL_PRESERVE_P", "(", "*", "node", ")", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_REENT", ")", ")", "{", "if", "(", "is_naked_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "else", "if", "(", "is_critical_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_CRIT", ")", ")", "{", "if", "(", "is_naked_func", "(", "*", "node", ")", ")", "message", "=", "", ";"], "ground_truth": ["else", "if", "(", "is_reentrant_func", "(", "*", "node", ")", ")", "message", "=", "", ";"], "File": "msp4305", "Func": "msp430_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200649, "Length": 144, "Cover_Rate": 0.36923076923076925} {"Template_token": ["", "if", "(", "TREE_CODE", "(", "*", "node", ")", "!=", "VAR_DECL", ")", "message", "=", "G_", "(", "", ")", ";", "if", "(", "(", "TREE_STATIC", "(", "*", "node", ")", "||", "DECL_EXTERNAL", "(", "*", "node", ")", "||", "in_lto_p", ")", "&&", "DECL_SECTION_NAME", "(", "*", "node", ")", ")", "message", "=", "G_", "(", "", ")", ";", "if", "(", "!", "message", "&&", "TREE_NAME_EQ", "(", "name", ",", "ATTR_PERSIST", ")", "&&", "!", "TREE_STATIC", "(", "*", "node", ")", "&&", "!", "TREE_PUBLIC", "(", "*", "node", ")", "&&", "!", "DECL_EXTERNAL", "(", "*", "node", ")", ")", "message", "=", "G_", "(", "", ")", ";", "if", "(", "(", "TREE_STATIC", "(", "*", "node", ")", "||", "DECL_EXTERNAL", "(", "*", "node", ")", "||", "in_lto_p", ")", "&&", "TREE_NAME_EQ", "(", "name", ",", "ATTR_PERSIST", ")", ")", "set_decl_section_name", "(", "*", "node", ",", "", ")", ";", "if", "(", "DECL_COMMON", "(", "*", "node", ")", ")", "DECL_COMMON", "(", "*", "node", ")", "=", "", ";", "if", "(", "message", ")", "{", "warning", "(", "OPT_Wattributes", ",", "message", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}"], "ground_truth": ["return", "NULL_TREE", ";"], "File": "msp4305", "Func": "msp430_data_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200650, "Length": 160, "Cover_Rate": 0.7692307692307693} {"Template_token": ["", "if", "(", "mode", "==", "PSImode", ")", "return", "", ";", "if", "(", "mode", "==", "CPSImode", ")", "return", "", ";", "return", "msp430_hard_regno_nregs", "(", "regno", ",", "mode", ")", ";"], "ground_truth": ["}"], "File": "msp4305", "Func": "msp430_hard_regno_nregs_with_padding", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200651, "Length": 27, "Cover_Rate": 0.7105263157894737} {"Template_token": ["", "flag_delete_null_pointer_checks", "=", "", ";", "init_machine_status", "=", "msp430_init_machine_status", ";", "if", "(", "target_cpu", ")", "{", "if", "(", "strcasecmp", "(", "target_cpu", ",", "", ")", "==", "", ")", "msp430x", "=", "true", ";", "else", "msp430x", "=", "false", ";", "}", "if", "(", "target_mcu", ")", "{", "int", "i", ";", "for", "(", "i", "=", "ARRAY_SIZE", "(", "msp430_mcu_data", ")", ";", "i", "--", ";", ")", "if", "(", "strcasecmp", "(", "msp430_mcu_data", "[", "i", "]", ".", "name", ",", "target_mcu", ")", "==", "", ")", "{", "bool", "xisa", "=", "msp430_mcu_data", "[", "i", "]", ".", "revision", ">=", "", ";", "if", "(", "msp430_warn_mcu", ")", "{", "if", "(", "target_cpu", "&&", "msp430x", "!=", "xisa", ")", "warning", "(", "", ",", "", ",", "target_mcu", ",", "xisa", "?", "", ":", "", ",", "msp430x", "?", "", ":", "", ")", ";", "if", "(", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "==", "", "&&", "msp430_hwmult_type", "!=", "MSP430_HWMULT_AUTO", "&&", "msp430_hwmult_type", "!=", "MSP430_HWMULT_NONE", ")", "warning", "(", "", ",", "", ",", "target_mcu", ",", "msp430_hwmult_type", "==", "MSP430_HWMULT_SMALL", "?", "", ":", "msp430_hwmult_type", "==", "MSP430_HWMULT_LARGE", "?", "", ":", "", ")", ";", "else", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_SMALL", "&&", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "!=", "", "&&", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "!=", "", ")", "warning", "(", "", ",", "", ",", "target_mcu", ",", "hwmult_name", "(", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", ")", ")", ";", "else", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_LARGE", "&&", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "!=", "", ")", "warning", "(", "", ",", "", ",", "target_mcu", ",", "hwmult_name", "(", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", ")", ")", ";", "else", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_F5SERIES", "&&", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "!=", "", ")", "warning", "(", "", ",", "", ",", "target_mcu", ",", "hwmult_name", "(", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", ")", ")", ";"], "ground_truth": ["}"], "File": "msp4305", "Func": "msp430_option_override", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200652, "Length": 275, "Cover_Rate": 0.5753138075313807} {"Template_token": ["", "if", "(", "is_critical_func", "(", ")", ")", "fprintf", "(", "outfile", ",", "", ")", ";", "if", "(", "is_wakeup_func", "(", ")", ")", "fprintf", "(", "outfile", ",", "", ")", ";", "fprintf", "(", "outfile", ",", "", ")", ";", "}", "fprintf", "(", "outfile", ",", "", ",", "cfun", "->", "machine", "->", "framesize_regs", ")", ";", "fprintf", "(", "outfile", ",", "", ",", "cfun", "->", "machine", "->", "framesize_locals", ")", ";", "fprintf", "(", "outfile", ",", "", ",", "cfun", "->", "machine", "->", "framesize_outgoing", ")", ";", "fprintf", "(", "outfile", ",", "", ",", "cfun", "->", "machine", "->", "framesize", ")", ";", "fprintf", "(", "outfile", ",", "", ",", "msp430_initial_elimination_offset", "(", "ARG_POINTER_REGNUM", ",", "FRAME_POINTER_REGNUM", ")", ")", ";", "fprintf", "(", "outfile", ",", "", ",", "msp430_initial_elimination_offset", "(", "FRAME_POINTER_REGNUM", ",", "STACK_POINTER_REGNUM", ")", ")", ";", "n", "=", "", ";"], "ground_truth": ["fprintf", "(", "outfile", ",", "", ")", ";"], "File": "msp4305", "Func": "msp430_start_function", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200653, "Length": 125, "Cover_Rate": 0.4716981132075472} {"Template_token": ["", "if", "(", "is_wakeup_func", "(", ")", ")", "fprintf", "(", "outfile", ",", "", ")", ";", "fprintf", "(", "outfile", ",", "", ")", ";", "}", "fprintf", "(", "outfile", ",", "", ",", "cfun", "->", "machine", "->", "framesize_regs", ")", ";", "fprintf", "(", "outfile", ",", "", ",", "cfun", "->", "machine", "->", "framesize_locals", ")", ";", "fprintf", "(", "outfile", ",", "", ",", "cfun", "->", "machine", "->", "framesize_outgoing", ")", ";", "fprintf", "(", "outfile", ",", "", ",", "cfun", "->", "machine", "->", "framesize", ")", ";", "fprintf", "(", "outfile", ",", "", ",", "msp430_initial_elimination_offset", "(", "ARG_POINTER_REGNUM", ",", "FRAME_POINTER_REGNUM", ")", ")", ";", "fprintf", "(", "outfile", ",", "", ",", "msp430_initial_elimination_offset", "(", "FRAME_POINTER_REGNUM", ",", "STACK_POINTER_REGNUM", ")", ")", ";", "n", "=", "", ";", "fprintf", "(", "outfile", ",", "", ")", ";", "for", "(", "r", "=", "", ";", "r", "<", "ARG_POINTER_REGNUM", ";", "r", "++", ")", "if", "(", "cfun", "->", "machine", "->", "need_to_save", "[", "r", "]", ")", "{"], "ground_truth": ["fprintf", "(", "outfile", ",", "", ",", "reg_names", "[", "r", "]", ")", ";"], "File": "msp4305", "Func": "msp430_start_function", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200654, "Length": 149, "Cover_Rate": 0.5622641509433962} {"Template_token": ["", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_INTR", ")", ")", "{", "if", "(", "TREE_CODE", "(", "TREE_TYPE", "(", "*", "node", ")", ")", "==", "FUNCTION_TYPE", "&&", "!", "VOID_TYPE_P", "(", "TREE_TYPE", "(", "TREE_TYPE", "(", "*", "node", ")", ")", ")", ")", "message", "=", "", ";", "else", "{", "TREE_USED", "(", "*", "node", ")", "=", "", ";", "DECL_PRESERVE_P", "(", "*", "node", ")", "=", "", ";", "}", "if", "(", "is_critical_func", "(", "*", "node", ")", ")", "{", "warning", "(", "OPT_Wattributes", ",", "", ")", ";", "DECL_ATTRIBUTES", "(", "*", "node", ")", "=", "remove_attribute", "(", "ATTR_CRIT", ",", "DECL_ATTRIBUTES", "(", "*", "node", ")", ")", ";", "}", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_REENT", ")", ")", "{", "if", "(", "is_naked_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "else", "if", "(", "is_critical_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_CRIT", ")", ")", "{"], "ground_truth": ["if", "(", "is_naked_func", "(", "*", "node", ")", ")", "message", "=", "", ";"], "File": "msp4306", "Func": "msp430_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200655, "Length": 156, "Cover_Rate": 0.37410071942446044} {"Template_token": ["", "}", "if", "(", "is_critical_func", "(", "*", "node", ")", ")", "{", "warning", "(", "OPT_Wattributes", ",", "", ")", ";", "DECL_ATTRIBUTES", "(", "*", "node", ")", "=", "remove_attribute", "(", "ATTR_CRIT", ",", "DECL_ATTRIBUTES", "(", "*", "node", ")", ")", ";", "}", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_REENT", ")", ")", "{", "if", "(", "is_naked_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "else", "if", "(", "is_critical_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_CRIT", ")", ")", "{", "if", "(", "is_naked_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "else", "if", "(", "is_reentrant_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "else", "if", "(", "is_interrupt_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_NAKED", ")", ")", "{", "if", "(", "is_critical_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "else", "if", "(", "is_reentrant_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "}", "if", "(", "message", ")", "{", "warning", "(", "OPT_Wattributes", ",", "message", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}"], "ground_truth": ["return", "NULL_TREE", ";"], "File": "msp4306", "Func": "msp430_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200656, "Length": 183, "Cover_Rate": 0.43884892086330934} {"Template_token": ["", "const", "char", "*", "msp430_mcu_name", "(", "void", ")", "{", "if", "(", "target_mcu", ")", "{", "unsigned", "int", "i", ";", "unsigned", "int", "start_upper", ";", "unsigned", "int", "end_upper", ";", "static", "char", "mcu_name", "[", "", "]", ";", "if", "(", "strncmp", "(", "target_mcu", ",", "", ",", "", ")", "==", "", ")", "{", "snprintf", "(", "mcu_name", ",", "sizeof", "(", "mcu_name", ")", "-", "", ",", "", ",", "target_mcu", "+", "", ")", ";", "start_upper", "=", "", ";", "}", "else", "{", "snprintf", "(", "mcu_name", ",", "sizeof", "(", "mcu_name", ")", "-", "", ",", "", ",", "target_mcu", ")", ";", "start_upper", "=", "", ";", "}", "end_upper", "=", "strlen", "(", "mcu_name", ")", "-", "", ";", "for", "(", "i", "=", "start_upper", ";", "i", "<", "end_upper", ";", "i", "++", ")", "mcu_name", "[", "i", "]", "=", "TOUPPER", "(", "mcu_name", "[", "i", "]", ")", ";", "return", "mcu_name", ";"], "ground_truth": ["}"], "File": "msp4306", "Func": "msp430_mcu_name", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200657, "Length": 131, "Cover_Rate": 0.9424460431654677} {"Template_token": ["", "if", "(", "target_cpu", "&&", "msp430x", "!=", "xisa", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "xisa", "?", "", ":", "", ",", "msp430x", "?", "", ":", "", ")", ";", "if", "(", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "==", "", "&&", "msp430_hwmult_type", "!=", "MSP430_HWMULT_AUTO", "&&", "msp430_hwmult_type", "!=", "MSP430_HWMULT_NONE", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "msp430_hwmult_type", "==", "MSP430_HWMULT_SMALL", "?", "", ":", "msp430_hwmult_type", "==", "MSP430_HWMULT_LARGE", "?", "", ":", "", ")", ";", "else", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_SMALL", "&&", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "!=", "", "&&", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "!=", "", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "hwmult_name", "(", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", ")", ")", ";", "else", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_LARGE", "&&", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "!=", "", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "hwmult_name", "(", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", ")", ")", ";", "else", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_F5SERIES", "&&", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", "!=", "", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "hwmult_name", "(", "msp430_mcu_data", "[", "i", "]", ".", "hwmpy", ")", ")", ";", "}", "msp430x", "=", "xisa", ";", "break", ";", "}", "if", "(", "i", "<", "", ")", "{", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_AUTO", ")", "{", "if", "(", "msp430_warn_mcu", ")", "{", "if", "(", "target_cpu", "==", "NULL", ")", "warning", "(", "", ",", "", "", "", "", ",", "target_mcu", ")", ";", "else", "warning", "(", "", ",", "", "", "", ",", "target_mcu", ")", ";", "}", "msp430_hwmult_type", "=", "MSP430_HWMULT_NONE", ";", "}", "else", "if", "(", "target_cpu", "==", "NULL", ")", "{", "if", "(", "msp430_warn_mcu", ")", "warning", "(", "", ",", "", "", "", ",", "target_mcu", ")", ";", "msp430x", "=", "false", ";", "}", "else", "if", "(", "msp430_warn_mcu", ")", "warning", "(", "", ",", "", ",", "target_mcu", ")", ";", "}", "}", "if", "(", "target_cpu", "==", "NULL", "&&", "target_mcu", "==", "NULL", "&&", "msp430_hwmult_type", "==", "MSP430_HWMULT_F5SERIES", ")", "msp430x", "=", "true", ";", "if", "(", "TARGET_LARGE", "&&", "!", "msp430x", ")", "error", "(", "", ")", ";"], "ground_truth": ["if", "(", "msp430_code_region", "==", "MSP430_REGION_UPPER", "&&", "!", "msp430x", ")", "error", "(", "", ")", ";"], "File": "msp4306", "Func": "msp430_option_override", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200658, "Length": 341, "Cover_Rate": 0.7060041407867494} {"Template_token": ["", "int", "i", ";", "for", "(", "i", "=", "", ";", "helper_function_name_mappings", "[", "i", "]", ".", "gcc_name", ";", "i", "++", ")", "if", "(", "strcmp", "(", "helper_function_name_mappings", "[", "i", "]", ".", "gcc_name", ",", "name", ")", "==", "", ")", "{", "name", "=", "helper_function_name_mappings", "[", "i", "]", ".", "ti_name", ";", "break", ";", "}", "if", "(", "msp430_hwmult_type", "!=", "MSP430_HWMULT_NONE", ")", "{", "if", "(", "strcmp", "(", "", ",", "name", ")", "==", "", ")", "{", "if", "(", "msp430_use_f5_series_hwmult", "(", ")", ")", "name", "=", "", ";", "else", "if", "(", "!", "msp430_no_hwmult", "(", ")", ")", "name", "=", "", ";", "}", "else", "if", "(", "strcmp", "(", "", ",", "name", ")", "==", "", ")", "{"], "ground_truth": ["if", "(", "msp430_use_f5_series_hwmult", "(", ")", ")", "name", "=", "", ";"], "File": "msp4306", "Func": "msp430_output_labelref", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200659, "Length": 113, "Cover_Rate": 0.6457142857142857} {"Template_token": ["", "void", "msp430_output_labelref", "(", "FILE", "*", "file", ",", "const", "char", "*", "name", ")", "{", "int", "i", ";", "for", "(", "i", "=", "", ";", "helper_function_name_mappings", "[", "i", "]", ".", "gcc_name", ";", "i", "++", ")", "if", "(", "strcmp", "(", "helper_function_name_mappings", "[", "i", "]", ".", "gcc_name", ",", "name", ")", "==", "", ")", "{", "name", "=", "helper_function_name_mappings", "[", "i", "]", ".", "ti_name", ";", "break", ";", "}", "if", "(", "msp430_hwmult_type", "!=", "MSP430_HWMULT_NONE", ")", "{", "if", "(", "strcmp", "(", "", ",", "name", ")", "==", "", ")", "{", "if", "(", "msp430_use_f5_series_hwmult", "(", ")", ")", "name", "=", "", ";", "else", "if", "(", "!", "msp430_no_hwmult", "(", ")", ")", "name", "=", "", ";"], "ground_truth": ["}"], "File": "msp4306", "Func": "msp430_output_labelref", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200660, "Length": 103, "Cover_Rate": 0.5885714285714285} {"Template_token": ["", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "return", "", ";"], "ground_truth": ["default", ":"], "File": "msp430", "Func": "cg_magic_constant", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200661, "Length": 17, "Cover_Rate": 0.37777777777777777} {"Template_token": ["", "static", "rtx", "F", "(", "rtx", "x", ")", "{", "RTX_FRAME_RELATED_P", "(", "x", ")", "=", "", ";"], "ground_truth": ["return", "x", ";"], "File": "msp430", "Func": "F", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200663, "Length": 18, "Cover_Rate": 0.9473684210526315} {"Template_token": ["", "if", "(", "DECL_ONE_ONLY", "(", "decl", ")", ")", "return", "NULL", ";", "if", "(", "has_attr", "(", "", ",", "decl", ")", ")", "return", "NULL", ";", "if", "(", "has_section_name", "(", "", ",", "decl", ")", ")", "return", "NULL", ";", "if", "(", "!", "TARGET_LARGE", ")", "return", "NULL", ";", "if", "(", "has_attr", "(", "ATTR_LOWER", ",", "decl", ")", ")", "return", "lower_prefix", ";", "if", "(", "has_attr", "(", "ATTR_UPPER", ",", "decl", ")", ")", "return", "upper_prefix", ";", "if", "(", "has_attr", "(", "ATTR_EITHER", ",", "decl", ")", ")", "return", "either_prefix", ";", "if", "(", "TREE_CODE", "(", "decl", ")", "==", "FUNCTION_DECL", ")", "{", "if", "(", "(", "msp430_code_region", "==", "MSP430_REGION_LOWER", ")", "&&", "TARGET_USE_LOWER_REGION_PREFIX", ")", "return", "lower_prefix", ";", "if", "(", "msp430_code_region", "==", "MSP430_REGION_UPPER", ")", "return", "upper_prefix", ";", "if", "(", "msp430_code_region", "==", "MSP430_REGION_EITHER", ")", "return", "either_prefix", ";", "}", "else", "{", "if", "(", "(", "msp430_data_region", "==", "MSP430_REGION_LOWER", ")", "&&", "TARGET_USE_LOWER_REGION_PREFIX", ")", "return", "lower_prefix", ";", "if", "(", "msp430_data_region", "==", "MSP430_REGION_UPPER", ")", "return", "upper_prefix", ";", "if", "(", "msp430_data_region", "==", "MSP430_REGION_EITHER", ")", "return", "either_prefix", ";", "}", "return", "NULL", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "gen_prefix", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200664, "Length": 158, "Cover_Rate": 0.9404761904761905} {"Template_token": ["", "if", "(", "decl", "==", "NULL_TREE", ")", "return", "false", ";"], "ground_truth": ["return", "lookup_attribute", "(", "attr", ",", "DECL_ATTRIBUTES", "(", "decl", ")", ")", "!=", "NULL_TREE", ";"], "File": "msp430", "Func": "has_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200665, "Length": 22, "Cover_Rate": 0.5945945945945946} {"Template_token": ["", "static", "inline", "bool", "has_attr", "(", "const", "char", "*", "attr", ",", "tree", "decl", ")", "{", "if", "(", "decl", "==", "NULL_TREE", ")", "return", "false", ";"], "ground_truth": ["return", "lookup_attribute", "(", "attr", ",", "DECL_ATTRIBUTES", "(", "decl", ")", ")", "!=", "NULL_TREE", ";"], "File": "msp430", "Func": "has_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200666, "Length": 36, "Cover_Rate": 0.972972972972973} {"Template_token": ["", "static", "bool", "has_section_name", "(", "const", "char", "*", "name", ",", "tree", "decl", "=", "current_function_decl", ")", "{"], "ground_truth": ["if", "(", "decl", "==", "NULL_TREE", ")", "return", "false", ";"], "File": "msp430", "Func": "has_section_name", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200667, "Length": 24, "Cover_Rate": 0.5106382978723404} {"Template_token": ["", "static", "bool", "has_section_name", "(", "const", "char", "*", "name", ",", "tree", "decl", "=", "current_function_decl", ")", "{"], "ground_truth": ["if", "(", "decl", "==", "NULL_TREE", ")", "return", "false", ";"], "File": "msp430", "Func": "has_section_name", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200668, "Length": 24, "Cover_Rate": 0.5106382978723404} {"Template_token": ["", "switch", "(", "val", ")", "{", "case", "", ":", "return", "", ";"], "ground_truth": ["case", "", ":", "return", "", ";"], "File": "msp430", "Func": "hwmult_name", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200669, "Length": 17, "Cover_Rate": 0.3148148148148148} {"Template_token": ["", "if", "(", "TARGET_LARGE", ")", "F", "(", "emit_insn", "(", "gen_subpsi3", "(", "sp", ",", "sp", ",", "inc", ")", ")", ")", ";", "else", "F", "(", "emit_insn", "(", "gen_subhi3", "(", "sp", ",", "sp", ",", "inc", ")", ")", ")", ";", "}", "else", "{", "inc", "=", "GEN_INT", "(", "amount", ")", ";", "if", "(", "TARGET_LARGE", ")", "F", "(", "emit_insn", "(", "gen_addpsi3", "(", "sp", ",", "sp", ",", "inc", ")", ")", ")", ";", "else", "F", "(", "emit_insn", "(", "gen_addhi3", "(", "sp", ",", "sp", ",", "inc", ")", ")", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "increment_stack", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200670, "Length": 81, "Cover_Rate": 0.6694214876033058} {"Template_token": ["", "if", "(", "TARGET_LARGE", ")", "F", "(", "emit_insn", "(", "gen_subpsi3", "(", "sp", ",", "sp", ",", "inc", ")", ")", ")", ";", "else", "F", "(", "emit_insn", "(", "gen_subhi3", "(", "sp", ",", "sp", ",", "inc", ")", ")", ")", ";", "}", "else", "{", "inc", "=", "GEN_INT", "(", "amount", ")", ";", "if", "(", "TARGET_LARGE", ")", "F", "(", "emit_insn", "(", "gen_addpsi3", "(", "sp", ",", "sp", ",", "inc", ")", ")", ")", ";", "else", "F", "(", "emit_insn", "(", "gen_addhi3", "(", "sp", ",", "sp", ",", "inc", ")", ")", ")", ";", "}"], "ground_truth": ["}"], "File": "msp430", "Func": "increment_stack", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200671, "Length": 82, "Cover_Rate": 0.6776859504132231} {"Template_token": ["", "return", "has_attr", "(", "ATTR_CRIT", ",", "decl", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "is_critical_func", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200672, "Length": 9, "Cover_Rate": 0.45} {"Template_token": ["", "return", "has_attr", "(", "ATTR_CRIT", ",", "decl", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "is_critical_func", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200673, "Length": 9, "Cover_Rate": 0.45} {"Template_token": ["", "return", "has_attr", "(", "ATTR_INTR", ",", "decl", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "is_interrupt_func", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200674, "Length": 9, "Cover_Rate": 0.47368421052631576} {"Template_token": ["", "static", "bool", "is_interrupt_func", "(", "tree", "decl", "=", "current_function_decl", ")", "{"], "ground_truth": ["return", "has_attr", "(", "ATTR_INTR", ",", "decl", ")", ";"], "File": "msp430", "Func": "is_interrupt_func", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200675, "Length": 18, "Cover_Rate": 0.9473684210526315} {"Template_token": ["", "return", "has_attr", "(", "ATTR_NAKED", ",", "decl", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "is_naked_func", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200677, "Length": 9, "Cover_Rate": 0.45} {"Template_token": ["", "static", "inline", "bool", "is_reentrant_func", "(", "tree", "decl", "=", "current_function_decl", ")", "{"], "ground_truth": ["return", "has_attr", "(", "ATTR_REENT", ",", "decl", ")", ";"], "File": "msp430", "Func": "is_reentrant_func", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200678, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "return", "has_attr", "(", "ATTR_REENT", ",", "decl", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "is_reentrant_func", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200679, "Length": 9, "Cover_Rate": 0.45} {"Template_token": ["", "return", "is_interrupt_func", "(", "decl", ")", "&&", "has_attr", "(", "ATTR_WAKEUP", ",", "decl", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "is_wakeup_func", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200680, "Length": 14, "Cover_Rate": 0.5833333333333334} {"Template_token": ["", "return", "is_interrupt_func", "(", "decl", ")", "&&", "has_attr", "(", "ATTR_WAKEUP", ",", "decl", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "is_wakeup_func", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200681, "Length": 14, "Cover_Rate": 0.5833333333333334} {"Template_token": ["", "return", "", ";", "}", "else", "if", "(", "REGNO", "(", "operands", "[", "", "]", ")", "+", "", "==", "REGNO", "(", "operands", "[", "", "]", ")", ")", "{", "if", "(", "!", "return_length", ")", "output_asm_insn", "(", "", ",", "operands", ")", ";", "return", "", ";", "}"], "ground_truth": ["if", "(", "!", "return_length", ")", "output_asm_insn", "(", "", ",", "operands", ")", ";"], "File": "msp430", "Func": "msp430x_extendhisi", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200682, "Length": 54, "Cover_Rate": 0.43902439024390244} {"Template_token": ["", "}", "else", "if", "(", "REGNO", "(", "operands", "[", "", "]", ")", "+", "", "==", "REGNO", "(", "operands", "[", "", "]", ")", ")", "{", "if", "(", "!", "return_length", ")", "output_asm_insn", "(", "", ",", "operands", ")", ";", "return", "", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430x_extendhisi", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200683, "Length": 39, "Cover_Rate": 0.3170731707317073} {"Template_token": ["", "bool", "msp430x_insn_required", "(", "rtx", "op", ")", "{", "return", "(", "GET_MODE", "(", "op", ")", "==", "PSImode", "||", "!", "msp430_op_not_in_high_mem", "(", "op", ")", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430x_insn_required", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200684, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "INTVAL", "(", "amount", ")", ">", "", "&&", "INTVAL", "(", "amount", ")", "<", "", ")", "return", "", ";", "if", "(", "INTVAL", "(", "amount", ")", ">", "", "&&", "INTVAL", "(", "amount", ")", "<", "", ")", "return", "", ";"], "ground_truth": ["return", "", ";"], "File": "msp430", "Func": "msp430x_logical_shift_right", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200685, "Length": 41, "Cover_Rate": 0.5256410256410257} {"Template_token": ["", "const", "char", "*", "msp430x_logical_shift_right", "(", "rtx", "amount", ")", "{", "gcc_assert", "(", "CONST_INT_P", "(", "amount", ")", ")", ";", "if", "(", "INTVAL", "(", "amount", ")", "<=", "", "||", "INTVAL", "(", "amount", ")", ">=", "", ")", "return", "", ";"], "ground_truth": ["if", "(", "INTVAL", "(", "amount", ")", ">", "", "&&", "INTVAL", "(", "amount", ")", "<", "", ")", "return", "", ";"], "File": "msp430", "Func": "msp430x_logical_shift_right", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200686, "Length": 55, "Cover_Rate": 0.7051282051282052} {"Template_token": ["", "if", "(", "to_as", "!=", "ADDR_SPACE_FAR", "&&", "from_as", "==", "ADDR_SPACE_FAR", ")", "{", "if", "(", "CONSTANT_P", "(", "op", ")", ")", "return", "gen_rtx_CONST", "(", "HImode", ",", "op", ")", ";", "result", "=", "gen_reg_rtx", "(", "HImode", ")", ";", "emit_insn", "(", "gen_truncpsihi2", "(", "result", ",", "op", ")", ")", ";"], "ground_truth": ["return", "result", ";"], "File": "msp430", "Func": "msp430_addr_space_convert", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200687, "Length": 46, "Cover_Rate": 0.32857142857142857} {"Template_token": ["", "msp430_addr_space_legitimate_address_p", "bool", "msp430_addr_space_legitimate_address_p", "(", "machine_mode", "mode", ",", "rtx", "x", ",", "bool", "strict", ",", "addr_space_t", "as", "ATTRIBUTE_UNUSED", ")", "{"], "ground_truth": ["return", "msp430_legitimate_address_p", "(", "mode", ",", "x", ",", "strict", ")", ";"], "File": "msp430", "Func": "msp430_addr_space_legitimate_address_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200689, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "switch", "(", "addrspace", ")", "{", "default", ":", "case", "ADDR_SPACE_GENERIC", ":", "return", "Pmode", ";", "case", "ADDR_SPACE_NEAR", ":", "return", "HImode", ";", "case", "ADDR_SPACE_FAR", ":", "return", "PSImode", ";", "}"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_addr_space_pointer_mode", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200690, "Length": 27, "Cover_Rate": 0.7714285714285715} {"Template_token": ["", "msp430_allocate_stack_slots_for_args", "static", "bool", "msp430_allocate_stack_slots_for_args", "(", "void", ")", "{"], "ground_truth": ["return", "!", "is_naked_func", "(", ")", ";"], "File": "msp430", "Func": "msp430_allocate_stack_slots_for_args", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200694, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "if", "(", "ca", "->", "reg_count", "&&", "ca", "->", "mem_count", ")", "return", "ca", "->", "reg_count", "*", "UNITS_PER_WORD", ";", "return", "", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_arg_partial_bytes", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200695, "Length": 21, "Cover_Rate": 0.3559322033898305} {"Template_token": ["", "int", "msp430_arg_partial_bytes", "(", "cumulative_args_t", "cap", ",", "const", "function_arg_info", "&", "arg", ")", "{", "CUMULATIVE_ARGS", "*", "ca", "=", "get_cumulative_args", "(", "cap", ")", ";"], "ground_truth": ["msp430_evaluate_arg", "(", "cap", ",", "arg", ".", "mode", ",", "arg", ".", "type", ",", "arg", ".", "named", ")", ";"], "File": "msp430", "Func": "msp430_arg_partial_bytes", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200696, "Length": 38, "Cover_Rate": 0.6440677966101694} {"Template_token": ["", "static", "bool", "msp430_asm_integer", "(", "rtx", "x", ",", "unsigned", "int", "size", ",", "int", "aligned_p", ")", "{", "int", "c", "=", "GET_CODE", "(", "x", ")", ";", "if", "(", "size", "==", "", "&&", "GET_MODE", "(", "x", ")", "==", "PSImode", ")", "size", "=", "", ";", "switch", "(", "size", ")", "{", "case", "", ":", "if", "(", "c", "==", "SYMBOL_REF", "||", "c", "==", "CONST", "||", "c", "==", "LABEL_REF", "||", "c", "==", "CONST_INT", "||", "c", "==", "PLUS", "||", "c", "==", "MINUS", ")", "{", "fprintf", "(", "asm_out_file", ",", "", ")", ";", "output_addr_const", "(", "asm_out_file", ",", "x", ")", ";", "fputc", "(", "'\\n'", ",", "asm_out_file", ")", ";", "return", "true", ";", "}", "break", ";", "}", "return", "default_assemble_integer", "(", "x", ",", "size", ",", "aligned_p", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_asm_integer", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200697, "Length": 114, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "wi", "::", "gtu_p", "(", "wi", "::", "to_wide", "(", "value", ")", ",", "", ")", ")", "warning", "(", "OPT_Wattributes", ",", "", ",", "name", ")", ";", "break", ";", "default", ":", "warning", "(", "OPT_Wattributes", ",", "", "", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "break", ";", "}", "}", "const", "char", "*", "message", "=", "NULL", ";", "if", "(", "TREE_CODE", "(", "*", "node", ")", "!=", "FUNCTION_DECL", ")", "{", "message", "=", "", ";", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_INTR", ")", ")", "{", "if", "(", "TREE_CODE", "(", "TREE_TYPE", "(", "*", "node", ")", ")", "==", "FUNCTION_TYPE", "&&", "!", "VOID_TYPE_P", "(", "TREE_TYPE", "(", "TREE_TYPE", "(", "*", "node", ")", ")", ")", ")", "message", "=", "", ";", "else", "{", "TREE_USED", "(", "*", "node", ")", "=", "", ";", "DECL_PRESERVE_P", "(", "*", "node", ")", "=", "", ";", "}", "if", "(", "is_critical_func", "(", "*", "node", ")", ")", "{", "warning", "(", "OPT_Wattributes", ",", "", ")", ";", "DECL_ATTRIBUTES", "(", "*", "node", ")", "=", "remove_attribute", "(", "ATTR_CRIT", ",", "DECL_ATTRIBUTES", "(", "*", "node", ")", ")", ";", "}", "}", "else", "if", "(", "TREE_NAME_EQ", "(", "name", ",", "ATTR_CRIT", ")", ")", "{", "if", "(", "is_interrupt_func", "(", "*", "node", ")", ")", "message", "=", "", ";", "}"], "ground_truth": ["if", "(", "message", ")", "{"], "File": "msp430", "Func": "msp430_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200698, "Length": 195, "Cover_Rate": 0.6132075471698113} {"Template_token": ["", "return", "msp430_builtins", "[", "code", "]", ";", "default", ":", "return", "error_mark_node", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_builtin_decl", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200700, "Length": 12, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "if", "(", "CONST_INT_P", "(", "op", ")", "&&", "IN_RANGE", "(", "INTVAL", "(", "op", ")", ",", "HOST_WIDE_INT_M1U", "<<", "", ",", "(", "", "<<", "", ")", "-", "", ")", ")", "return", "true", ";"], "ground_truth": ["return", "false", ";"], "File": "msp430", "Func": "msp430_check_index_not_high_mem", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200703, "Length": 33, "Cover_Rate": 0.7857142857142857} {"Template_token": ["", "static", "bool", "msp430_check_index_not_high_mem", "(", "rtx", "op", ")", "{", "if", "(", "CONST_INT_P", "(", "op", ")", "&&", "IN_RANGE", "(", "INTVAL", "(", "op", ")", ",", "HOST_WIDE_INT_M1U", "<<", "", ",", "(", "", "<<", "", ")", "-", "", ")", ")", "return", "true", ";"], "ground_truth": ["return", "false", ";"], "File": "msp430", "Func": "msp430_check_index_not_high_mem", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200704, "Length": 41, "Cover_Rate": 0.9761904761904762} {"Template_token": ["", "if", "(", "SYMBOL_REF_P", "(", "op0", ")", "&&", "(", "SYMBOL_REF_FLAGS", "(", "op0", ")", "&", "SYMBOL_FLAG_LOW_MEM", ")", "&&", "msp430_check_index_not_high_mem", "(", "op1", ")", ")", "return", "true", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_check_plus_not_high_mem", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200706, "Length": 28, "Cover_Rate": 0.4117647058823529} {"Template_token": ["", "cfun", "->", "machine", "->", "need_to_save", "[", "i", "]", "=", "", ";", "cfun", "->", "machine", "->", "framesize_regs", "+=", "(", "TARGET_LARGE", "?", "", ":", "", ")", ";", "}", "else", "cfun", "->", "machine", "->", "need_to_save", "[", "i", "]", "=", "", ";", "if", "(", "(", "cfun", "->", "machine", "->", "framesize_locals", "+", "cfun", "->", "machine", "->", "framesize_outgoing", ")", "&", "", ")", "cfun", "->", "machine", "->", "framesize_locals", "++", ";", "cfun", "->", "machine", "->", "framesize", "=", "(", "cfun", "->", "machine", "->", "framesize_regs", "+", "cfun", "->", "machine", "->", "framesize_locals", "+", "cfun", "->", "machine", "->", "framesize_outgoing", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_compute_frame_info", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200707, "Length": 90, "Cover_Rate": 0.5732484076433121} {"Template_token": ["", "return", "msp430_code_region", "==", "MSP430_REGION_EITHER", "||", "has_attr", "(", "ATTR_EITHER", ",", "current_function_decl", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_do_not_relax_short_jumps", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200709, "Length": 13, "Cover_Rate": 0.6842105263157895} {"Template_token": ["", "rtx", "msp430_eh_return_stackadj_rtx", "(", "void", ")", "{", "if", "(", "!", "cfun", "->", "machine", "->", "eh_stack_adjust", ")", "{", "rtx", "sa", ";", "sa", "=", "gen_rtx_REG", "(", "Pmode", ",", "", ")", ";", "cfun", "->", "machine", "->", "eh_stack_adjust", "=", "sa", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_eh_return_stackadj_rtx", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200710, "Length": 37, "Cover_Rate": 0.8222222222222222} {"Template_token": ["", "if", "(", "!", "MEM_P", "(", "rtl", ")", ")", "return", ";", "symbol", "=", "XEXP", "(", "rtl", ",", "", ")", ";"], "ground_truth": ["if", "(", "GET_CODE", "(", "symbol", ")", "!=", "SYMBOL_REF", ")", "return", ";"], "File": "msp430", "Func": "msp430_encode_section_info", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200711, "Length": 30, "Cover_Rate": 0.3409090909090909} {"Template_token": ["", "if", "(", "VAR_P", "(", "decl", ")", "&&", "(", "TREE_STATIC", "(", "decl", ")", "||", "DECL_EXTERNAL", "(", "decl", ")", ")", "&&", "msp430_var_in_low_mem", "(", "decl", ")", ")", "SYMBOL_REF_FLAGS", "(", "symbol", ")", "=", "SYMBOL_FLAG_LOW_MEM", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_encode_section_info", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200712, "Length": 32, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "ca", "->", "mem_count", "=", "", ";", "if", "(", "!", "named", ")", "return", ";", "if", "(", "mode", "==", "PSImode", ")", "nregs", "=", "", ";", "else", "nregs", "=", "(", "nregs", "+", "", ")", "/", "", ";", "if", "(", "ca", "->", "special_p", ")", "{", "ca", "->", "start_reg", "=", "", ";", "ca", "->", "reg_count", "=", "", ";", "return", ";", "}", "switch", "(", "nregs", ")", "{", "case", "", ":", "for", "(", "i", "=", "", ";", "i", "<", "", ";", "i", "++", ")", "if", "(", "!", "ca", "->", "reg_used", "[", "i", "]", ")", "{", "ca", "->", "reg_count", "=", "", ";", "ca", "->", "start_reg", "=", "CA_FIRST_REG", "+", "i", ";", "return", ";", "}", "break", ";", "case", "", ":", "for", "(", "i", "=", "", ";", "i", "<", "", ";", "i", "++", ")", "if", "(", "!", "ca", "->", "reg_used", "[", "i", "]", "&&", "!", "ca", "->", "reg_used", "[", "i", "+", "", "]", ")", "{", "ca", "->", "reg_count", "=", "", ";", "ca", "->", "start_reg", "=", "CA_FIRST_REG", "+", "i", ";", "return", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_evaluate_arg", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200713, "Length": 161, "Cover_Rate": 0.5176848874598071} {"Template_token": ["", "static", "rtx", "msp430_expand_builtin", "(", "tree", "exp", ",", "rtx", "target", "ATTRIBUTE_UNUSED", ",", "rtx", "subtarget", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "int", "ignore", "ATTRIBUTE_UNUSED", ")", "{", "tree", "fndecl", "=", "TREE_OPERAND", "(", "CALL_EXPR_FN", "(", "exp", ")", ",", "", ")", ";", "unsigned", "int", "fcode", "=", "DECL_MD_FUNCTION_CODE", "(", "fndecl", ")", ";", "rtx", "arg1", "=", "expand_normal", "(", "CALL_EXPR_ARG", "(", "exp", ",", "", ")", ")", ";", "if", "(", "fcode", "==", "MSP430_BUILTIN_DELAY_CYCLES", ")", "return", "msp430_expand_delay_cycles", "(", "arg1", ")", ";", "if", "(", "!", "msp430_is_interrupt_func", "(", ")", ")", "{", "error", "(", "", ")", ";", "return", "NULL_RTX", ";", "}", "if", "(", "!", "REG_P", "(", "arg1", ")", "&&", "!", "CONSTANT_P", "(", "arg1", ")", ")", "arg1", "=", "force_reg", "(", "mode", ",", "arg1", ")", ";", "switch", "(", "fcode", ")", "{"], "ground_truth": ["case", "MSP430_BUILTIN_BIC_SR", ":", "emit_insn", "(", "gen_bic_SR", "(", "arg1", ")", ")", ";", "break", ";"], "File": "msp430", "Func": "msp430_expand_builtin", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200714, "Length": 129, "Cover_Rate": 0.8269230769230769} {"Template_token": ["", "if", "(", "!", "msp430_is_interrupt_func", "(", ")", ")", "{", "error", "(", "", ")", ";", "return", "NULL_RTX", ";", "}", "if", "(", "!", "REG_P", "(", "arg1", ")", "&&", "!", "CONSTANT_P", "(", "arg1", ")", ")", "arg1", "=", "force_reg", "(", "mode", ",", "arg1", ")", ";", "switch", "(", "fcode", ")", "{", "case", "MSP430_BUILTIN_BIC_SR", ":", "emit_insn", "(", "gen_bic_SR", "(", "arg1", ")", ")", ";", "break", ";", "case", "MSP430_BUILTIN_BIS_SR", ":", "emit_insn", "(", "gen_bis_SR", "(", "arg1", ")", ")", ";", "break", ";", "default", ":"], "ground_truth": ["internal_error", "(", "", ")", ";"], "File": "msp430", "Func": "msp430_expand_builtin", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200715, "Length": 78, "Cover_Rate": 0.5} {"Template_token": ["", "if", "(", "c", ">=", "", "*", "", "+", "CYCX", "(", "", ",", "", ")", ")", "{", "i", "=", "", ";", "c", "-=", "CYCX", "(", "", ",", "", ")", "+", "", "*", "", ";", "i", "+=", "c", "/", "", ";", "c", "%=", "", ";", "if", "(", "(", "unsigned", "long", "long", ")", "i", ">", "", ")", "{", "error", "(", "", ")", ";", "return", "NULL_RTX", ";", "}", "}", "else", "{", "i", "=", "(", "c", "-", "CYCX", "(", "", ",", "", ")", ")", "/", "", ";", "c", "-=", "CYCX", "(", "", ",", "", ")", "+", "i", "*", "", ";", "}", "if", "(", "cg_magic_constant", "(", "i", "&", "", ")", ")", "c", "++", ";", "if", "(", "cg_magic_constant", "(", "(", "i", ">>", "", ")", "&", "", ")", ")", "c", "++", ";", "if", "(", "msp430x", ")", "emit_insn", "(", "gen_delay_cycles_32x", "(", "GEN_INT", "(", "i", ")", ",", "GEN_INT", "(", "n", "-", "c", ")", ")", ")", ";"], "ground_truth": ["else", "emit_insn", "(", "gen_delay_cycles_32", "(", "GEN_INT", "(", "i", ")", ",", "GEN_INT", "(", "n", "-", "c", ")", ")", ")", ";"], "File": "msp430", "Func": "msp430_expand_delay_cycles", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200716, "Length": 165, "Cover_Rate": 0.41457286432160806} {"Template_token": ["", "n", "=", "c", ";", "if", "(", "c", ">=", "", "*", "", "+", "CYCX", "(", "", ",", "", ")", ")", "{", "i", "=", "", ";", "c", "-=", "CYCX", "(", "", ",", "", ")", "+", "", "*", "", ";", "i", "+=", "c", "/", "", ";", "c", "%=", "", ";", "if", "(", "(", "unsigned", "long", "long", ")", "i", ">", "", ")", "{", "error", "(", "", ")", ";", "return", "NULL_RTX", ";", "}", "}", "else", "{", "i", "=", "(", "c", "-", "CYCX", "(", "", ",", "", ")", ")", "/", "", ";", "c", "-=", "CYCX", "(", "", ",", "", ")", "+", "i", "*", "", ";", "}", "if", "(", "cg_magic_constant", "(", "i", "&", "", ")", ")", "c", "++", ";", "if", "(", "cg_magic_constant", "(", "(", "i", ">>", "", ")", "&", "", ")", ")", "c", "++", ";", "if", "(", "msp430x", ")", "emit_insn", "(", "gen_delay_cycles_32x", "(", "GEN_INT", "(", "i", ")", ",", "GEN_INT", "(", "n", "-", "c", ")", ")", ")", ";", "else", "emit_insn", "(", "gen_delay_cycles_32", "(", "GEN_INT", "(", "i", ")", ",", "GEN_INT", "(", "n", "-", "c", ")", ")", ")", ";", "}"], "ground_truth": ["if", "(", "c", ">", "", ")", "{"], "File": "msp430", "Func": "msp430_expand_delay_cycles", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200717, "Length": 177, "Cover_Rate": 0.44472361809045224} {"Template_token": ["", "tmp", "=", "plus_constant", "(", "Pmode", ",", "tmp", ",", "TARGET_LARGE", "?", "-", "", ":", "-", "", ")", ";", "tmp", "=", "gen_rtx_MEM", "(", "Pmode", ",", "tmp", ")", ";", "emit_move_insn", "(", "tmp", ",", "ra", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_expand_eh_return", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200718, "Length": 34, "Cover_Rate": 0.43037974683544306} {"Template_token": ["", "void", "msp430_expand_eh_return", "(", "rtx", "eh_handler", ")", "{", "rtx", "ap", ",", "sa", ",", "ra", ",", "tmp", ";", "ap", "=", "arg_pointer_rtx", ";", "sa", "=", "msp430_eh_return_stackadj_rtx", "(", ")", ";", "ra", "=", "eh_handler", ";", "tmp", "=", "ap", ";", "tmp", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "ap", ",", "sa", ")", ";", "tmp", "=", "plus_constant", "(", "Pmode", ",", "tmp", ",", "TARGET_LARGE", "?", "-", "", ":", "-", "", ")", ";", "tmp", "=", "gen_rtx_MEM", "(", "Pmode", ",", "tmp", ")", ";"], "ground_truth": ["emit_move_insn", "(", "tmp", ",", "ra", ")", ";"], "File": "msp430", "Func": "msp430_expand_eh_return", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200719, "Length": 78, "Cover_Rate": 0.9873417721518988} {"Template_token": ["", "if", "(", "cfun", "->", "machine", "->", "need_to_save", "[", "", "]", ")", "{", "helper_n", "=", "", ";", "for", "(", "i", "=", "", ";", "i", ">=", "", ";", "i", "--", ")", "if", "(", "!", "cfun", "->", "machine", "->", "need_to_save", "[", "i", "]", ")", "{", "helper_n", "=", "", "-", "i", ";", "for", "(", ";", "i", ">=", "", ";", "i", "--", ")", "if", "(", "cfun", "->", "machine", "->", "need_to_save", "[", "i", "]", ")", "{", "helper_n", "=", "", ";", "break", ";", "}", "break", ";", "}", "}", "emit_insn", "(", "gen_epilogue_start_marker", "(", ")", ")", ";", "if", "(", "cfun", "->", "decl", "&&", "strcmp", "(", "IDENTIFIER_POINTER", "(", "DECL_NAME", "(", "cfun", "->", "decl", ")", ")", ",", "", ")", "==", "", ")", "emit_insn", "(", "gen_msp430_refsym_need_exit", "(", ")", ")", ";", "if", "(", "is_wakeup_func", "(", ")", ")", "emit_insn", "(", "gen_bic_SR", "(", "GEN_INT", "(", "", ")", ")", ")", ";", "fs", "=", "cfun", "->", "machine", "->", "framesize_locals", "+", "cfun", "->", "machine", "->", "framesize_outgoing", ";", "increment_stack", "(", "fs", ")", ";", "if", "(", "is_eh", ")", "{", "rtx", "r12", "=", "gen_rtx_REG", "(", "Pmode", ",", "", ")", ";", "rtx", "(", "*", "addPmode", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", "=", "TARGET_LARGE", "?", "gen_addpsi3", ":", "gen_addhi3", ";", "i", "=", "cfun", "->", "machine", "->", "framesize_regs", ";", "emit_move_insn", "(", "r12", ",", "stack_pointer_rtx", ")", ";", "emit_insn", "(", "addPmode", "(", "r12", ",", "r12", ",", "EH_RETURN_STACKADJ_RTX", ")", ")", ";", "emit_insn", "(", "addPmode", "(", "r12", ",", "r12", ",", "GEN_INT", "(", "i", ")", ")", ")", ";"], "ground_truth": ["emit_move_insn", "(", "gen_rtx_MEM", "(", "Pmode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "i", ")", ")", ",", "r12", ")", ";"], "File": "msp430", "Func": "msp430_expand_epilogue", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200720, "Length": 249, "Cover_Rate": 0.34344827586206894} {"Template_token": ["", "if", "(", "cfun", "->", "decl", "&&", "strcmp", "(", "IDENTIFIER_POINTER", "(", "DECL_NAME", "(", "cfun", "->", "decl", ")", ")", ",", "", ")", "==", "", ")", "emit_insn", "(", "gen_msp430_refsym_need_exit", "(", ")", ")", ";", "if", "(", "is_wakeup_func", "(", ")", ")", "emit_insn", "(", "gen_bic_SR", "(", "GEN_INT", "(", "", ")", ")", ")", ";", "fs", "=", "cfun", "->", "machine", "->", "framesize_locals", "+", "cfun", "->", "machine", "->", "framesize_outgoing", ";", "increment_stack", "(", "fs", ")", ";", "if", "(", "is_eh", ")", "{", "rtx", "r12", "=", "gen_rtx_REG", "(", "Pmode", ",", "", ")", ";", "rtx", "(", "*", "addPmode", ")", "(", "rtx", ",", "rtx", ",", "rtx", ")", "=", "TARGET_LARGE", "?", "gen_addpsi3", ":", "gen_addhi3", ";", "i", "=", "cfun", "->", "machine", "->", "framesize_regs", ";", "emit_move_insn", "(", "r12", ",", "stack_pointer_rtx", ")", ";", "emit_insn", "(", "addPmode", "(", "r12", ",", "r12", ",", "EH_RETURN_STACKADJ_RTX", ")", ")", ";", "emit_insn", "(", "addPmode", "(", "r12", ",", "r12", ",", "GEN_INT", "(", "i", ")", ")", ")", ";", "emit_move_insn", "(", "gen_rtx_MEM", "(", "Pmode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "i", ")", ")", ",", "r12", ")", ";", "}", "for", "(", "i", "=", "", ";", "i", "<=", "", ";", "i", "++", ")", "if", "(", "cfun", "->", "machine", "->", "need_to_save", "[", "i", "]", ")", "{", "int", "seq", ";", "int", "count", "=", "", ";", "int", "helper_used", "=", "", ";", "rtx", "note", ",", "addr", ";", "if", "(", "msp430x", ")", "{", "for", "(", "seq", "=", "i", "+", "", ";", "seq", "<=", "", "&&", "cfun", "->", "machine", "->", "need_to_save", "[", "seq", "]", ";", "seq", "++", ")", ";", "count", "=", "seq", "-", "i", ";", "}", "if", "(", "msp430x", ")", "{", "p", "=", "F", "(", "emit_insn", "(", "gen_popm", "(", "stack_pointer_rtx", ",", "GEN_INT", "(", "seq", "-", "", ")", ",", "GEN_INT", "(", "count", ")", ")", ")", ")", ";", "}", "else", "if", "(", "i", "==", "", "-", "helper_n", "&&", "!", "msp430_is_interrupt_func", "(", ")", "&&", "!", "is_reentrant_func", "(", ")", "&&", "!", "is_critical_func", "(", ")", "&&", "crtl", "->", "args", ".", "pretend_args_size", "==", "", "&&", "helper_n", ">", "", "&&", "!", "is_eh", ")", "{", "p", "=", "F", "(", "emit_jump_insn", "(", "gen_epilogue_helper", "(", "GEN_INT", "(", "helper_n", ")", ")", ")", ")", ";", "count", "=", "helper_n", ";"], "ground_truth": ["helper_used", "=", "", ";"], "File": "msp430", "Func": "msp430_expand_epilogue", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200721, "Length": 337, "Cover_Rate": 0.46482758620689657} {"Template_token": ["", "int", "arg1", "=", "", ";", "int", "arg2", "=", "", ";", "int", "arg1sz", "=", "", ";", "machine_mode", "arg0mode", "=", "GET_MODE", "(", "operands", "[", "", "]", ")", ";", "machine_mode", "arg1mode", "=", "GET_MODE", "(", "operands", "[", "", "]", ")", ";", "machine_mode", "arg2mode", "=", "GET_MODE", "(", "operands", "[", "", "]", ")", ";", "int", "expand_mpy", "=", "startswith", "(", "helper_name", ",", "", ")", ";", "gcc_assert", "(", "!", "(", "expand_mpy", "&&", "const_variants", ")", ")", ";", "if", "(", "arg1mode", "!=", "VOIDmode", "&&", "arg2mode", "!=", "VOIDmode", ")", "gcc_assert", "(", "arg1mode", "==", "arg2mode", ")", ";", "if", "(", "arg1mode", "==", "VOIDmode", ")", "arg1mode", "=", "arg0mode", ";", "if", "(", "arg2mode", "==", "VOIDmode", ")", "arg2mode", "=", "arg0mode", ";", "if", "(", "arg1mode", "==", "SImode", ")", "{", "arg2", "=", "", ";", "arg1sz", "=", "", ";", "}", "else", "if", "(", "arg1mode", "==", "DImode", ")", "{", "arg1", "=", "", ";", "arg1sz", "=", "", ";", "arg2", "=", "", ";", "}", "if", "(", "const_variants", "&&", "CONST_INT_P", "(", "operands", "[", "", "]", ")", "&&", "INTVAL", "(", "operands", "[", "", "]", ")", ">=", "", "&&", "INTVAL", "(", "operands", "[", "", "]", ")", "<=", "", ")", "{", "int", "len", "=", "strlen", "(", "helper_name", ")", "+", "", ";", "helper_const", "=", "(", "char", "*", ")", "xmalloc", "(", "len", ")", ";", "snprintf", "(", "helper_const", ",", "len", ",", "", ",", "helper_name", ",", "(", "int", ")", "INTVAL", "(", "operands", "[", "", "]", ")", ")", ";", "}", "emit_move_insn", "(", "gen_rtx_REG", "(", "arg1mode", ",", "arg1", ")", ",", "operands", "[", "", "]", ")", ";", "if", "(", "!", "helper_const", ")", "emit_move_insn", "(", "gen_rtx_REG", "(", "arg2mode", ",", "arg2", ")", ",", "operands", "[", "", "]", ")", ";", "if", "(", "expand_mpy", ")", "{", "if", "(", "msp430_use_f5_series_hwmult", "(", ")", ")", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "else", "if", "(", "msp430_use_32bit_hwmult", "(", ")", ")", "{", "if", "(", "arg1mode", "==", "HImode", ")", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "else", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "}", "else", "if", "(", "msp430_use_16bit_hwmult", "(", ")", ")", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "else", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "helper_name", ")", ";", "}", "else", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "helper_const", "?", "helper_const", ":", "helper_name", ")", ";", "c", "=", "gen_call_value_internal", "(", "gen_rtx_REG", "(", "arg0mode", ",", "", ")", ",", "fsym", ",", "GEN_INT", "(", "", ")", ")", ";", "c", "=", "emit_call_insn", "(", "c", ")", ";", "RTL_CONST_CALL_P", "(", "c", ")", "=", "", ";", "fusage", "=", "NULL", ";", "use_regs", "(", "&", "fusage", ",", "arg1", ",", "arg1sz", ")", ";", "if", "(", "!", "helper_const", ")", "{", "if", "(", "!", "expand_mpy", ")", "use_regs", "(", "&", "fusage", ",", "arg2", ",", "", ")", ";", "else", "use_regs", "(", "&", "fusage", ",", "arg2", ",", "arg1sz", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_expand_helper", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200722, "Length": 457, "Cover_Rate": 0.8978388998035364} {"Template_token": ["", "arg1sz", "=", "", ";", "arg2", "=", "", ";", "}", "if", "(", "const_variants", "&&", "CONST_INT_P", "(", "operands", "[", "", "]", ")", "&&", "INTVAL", "(", "operands", "[", "", "]", ")", ">=", "", "&&", "INTVAL", "(", "operands", "[", "", "]", ")", "<=", "", ")", "{", "int", "len", "=", "strlen", "(", "helper_name", ")", "+", "", ";", "helper_const", "=", "(", "char", "*", ")", "xmalloc", "(", "len", ")", ";", "snprintf", "(", "helper_const", ",", "len", ",", "", ",", "helper_name", ",", "(", "int", ")", "INTVAL", "(", "operands", "[", "", "]", ")", ")", ";", "}", "emit_move_insn", "(", "gen_rtx_REG", "(", "arg1mode", ",", "arg1", ")", ",", "operands", "[", "", "]", ")", ";", "if", "(", "!", "helper_const", ")", "emit_move_insn", "(", "gen_rtx_REG", "(", "arg2mode", ",", "arg2", ")", ",", "operands", "[", "", "]", ")", ";", "if", "(", "expand_mpy", ")", "{", "if", "(", "msp430_use_f5_series_hwmult", "(", ")", ")", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "else", "if", "(", "msp430_use_32bit_hwmult", "(", ")", ")", "{", "if", "(", "arg1mode", "==", "HImode", ")", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "else", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";", "}", "else", "if", "(", "msp430_use_16bit_hwmult", "(", ")", ")", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "concat", "(", "helper_name", ",", "", ",", "NULL", ")", ")", ";"], "ground_truth": ["else", "fsym", "=", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "helper_name", ")", ";"], "File": "msp430", "Func": "msp430_expand_helper", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200723, "Length": 229, "Cover_Rate": 0.449901768172888} {"Template_token": ["", "if", "(", "is_naked_func", "(", ")", ")", "{", "emit_insn", "(", "gen_rtx_CLOBBER", "(", "VOIDmode", ",", "GEN_INT", "(", "", ")", ")", ")", ";", "return", ";", "}", "emit_insn", "(", "gen_prologue_start_marker", "(", ")", ")", ";", "if", "(", "is_critical_func", "(", ")", ")", "{", "emit_insn", "(", "gen_push_intr_state", "(", ")", ")", ";", "emit_insn", "(", "gen_disable_interrupts", "(", ")", ")", ";", "}", "else", "if", "(", "is_reentrant_func", "(", ")", ")", "emit_insn", "(", "gen_disable_interrupts", "(", ")", ")", ";", "if", "(", "!", "cfun", "->", "machine", "->", "computed", ")", "msp430_compute_frame_info", "(", ")", ";", "if", "(", "flag_stack_usage_info", ")", "current_function_static_stack_size", "=", "cfun", "->", "machine", "->", "framesize", ";", "if", "(", "crtl", "->", "args", ".", "pretend_args_size", ")", "{", "rtx", "note", ";", "gcc_assert", "(", "crtl", "->", "args", ".", "pretend_args_size", "==", "", ")", ";", "p", "=", "emit_insn", "(", "gen_grow_and_swap", "(", ")", ")", ";", "note", "=", "F", "(", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "", ")", ")", ")", ")", ";", "add_reg_note", "(", "p", ",", "REG_FRAME_RELATED_EXPR", ",", "note", ")", ";", "note", "=", "F", "(", "gen_rtx_SET", "(", "gen_rtx_MEM", "(", "Pmode", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "-", "", ")", ")", ")", ",", "pc_rtx", ")", ")", ";", "add_reg_note", "(", "p", ",", "REG_CFA_OFFSET", ",", "note", ")", ";", "F", "(", "p", ")", ";", "}", "for", "(", "i", "=", "", ";", "i", ">=", "", ";", "i", "--", ")", "if", "(", "cfun", "->", "machine", "->", "need_to_save", "[", "i", "]", ")", "{", "int", "seq", ",", "count", ";", "rtx", "note", ";", "for", "(", "seq", "=", "i", "-", "", ";", "seq", ">=", "", "&&", "cfun", "->", "machine", "->", "need_to_save", "[", "seq", "]", ";", "seq", "--", ")", ";", "count", "=", "i", "-", "seq", ";", "if", "(", "msp430x", ")", "{", "p", "=", "F", "(", "emit_insn", "(", "gen_pushm", "(", "gen_rtx_REG", "(", "Pmode", ",", "i", ")", ",", "GEN_INT", "(", "count", ")", ")", ")", ")", ";", "note", "=", "gen_rtx_SEQUENCE", "(", "VOIDmode", ",", "rtvec_alloc", "(", "count", "+", "", ")", ")", ";", "XVECEXP", "(", "note", ",", "", ",", "", ")", "=", "F", "(", "gen_rtx_SET", "(", "stack_pointer_rtx", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "GEN_INT", "(", "count", "*", "(", "TARGET_LARGE", "?", "-", "", ":", "-", "", ")", ")", ")", ")", ")", ";", "for", "(", "j", "=", "", ";", "j", "<", "count", ";", "j", "++", ")", "{", "rtx", "addr", ";", "int", "ofs", "=", "(", "count", "-", "j", "-", "", ")", "*", "(", "TARGET_LARGE", "?", "", ":", "", ")", ";", "if", "(", "ofs", ")", "addr", "=", "gen_rtx_PLUS", "(", "Pmode", ",", "sp", ",", "GEN_INT", "(", "ofs", ")", ")", ";", "else", "addr", "=", "stack_pointer_rtx", ";", "XVECEXP", "(", "note", ",", "", ",", "j", "+", "", ")", "=", "F", "(", "gen_rtx_SET", "(", "gen_rtx_MEM", "(", "Pmode", ",", "addr", ")", ",", "gen_rtx_REG", "(", "Pmode", ",", "i", "-", "j", ")", ")", ")", ";", "}", "add_reg_note", "(", "p", ",", "REG_FRAME_RELATED_EXPR", ",", "note", ")", ";", "i", "-=", "count", "-", "", ";", "}", "else", "F", "(", "emit_insn", "(", "gen_push", "(", "gen_rtx_REG", "(", "Pmode", ",", "i", ")", ")", ")", ")", ";", "}"], "ground_truth": ["if", "(", "frame_pointer_needed", ")", "F", "(", "emit_move_insn", "(", "gen_rtx_REG", "(", "Pmode", ",", "FRAME_POINTER_REGNUM", ")", ",", "sp", ")", ")", ";"], "File": "msp430", "Func": "msp430_expand_prologue", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200724, "Length": 488, "Cover_Rate": 0.9070631970260223} {"Template_token": ["", "switch", "(", "mode", ")", "{", "case", "E_HImode", ":", "helper_name", "=", "(", "code", "==", "ASHIFT", "?", "", ":", "(", "code", "==", "ASHIFTRT", "?", "", ":", "(", "code", "==", "LSHIFTRT", "?", "", ":", "NULL", ")", ")", ")", ";", "break", ";", "case", "E_PSImode", ":", "helper_name", "=", "(", "code", "==", "ASHIFT", "?", "", ":", "(", "code", "==", "ASHIFTRT", "?", "", ":", "(", "code", "==", "LSHIFTRT", "?", "", ":", "NULL", ")", ")", ")", ";", "const_variant", "=", "false", ";", "break", ";", "case", "E_SImode", ":", "helper_name", "=", "(", "code", "==", "ASHIFT", "?", "", ":", "(", "code", "==", "ASHIFTRT", "?", "", ":", "(", "code", "==", "LSHIFTRT", "?", "", ":"], "ground_truth": ["NULL", ")", ")", ")", ";"], "File": "msp430", "Func": "msp430_expand_shift", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200725, "Length": 106, "Cover_Rate": 0.45493562231759654} {"Template_token": ["", "enum", "{", "OFBA_MSPABI_Val_ISA_MSP430", "=", "", ",", "OFBA_MSPABI_Val_ISA_MSP430X", "=", "", ",", "OFBA_MSPABI_Val_Model_Small", "=", "", ",", "OFBA_MSPABI_Val_Model_Large", "=", "", ",", "Tag_GNU_MSP430_Data_Region_Lower", "=", "", ",", "Tag_GNU_MSP430_Data_Region_Any", "=", "", "}", ";", "const", "char", "*", "msp430_attr", "=", "", ";", "const", "char", "*", "gnu_attr", "=", "", ";", "fprintf", "(", "asm_out_file", ",", "", ",", "msp430_attr", ",", "OFBA_MSPABI_Tag_ISA", ",", "msp430x", "?", "OFBA_MSPABI_Val_ISA_MSP430X", ":", "OFBA_MSPABI_Val_ISA_MSP430", ")", ";", "fprintf", "(", "asm_out_file", ",", "", ",", "msp430_attr", ",", "OFBA_MSPABI_Tag_Code_Model", ",", "TARGET_LARGE", "?", "OFBA_MSPABI_Val_Model_Large", ":", "OFBA_MSPABI_Val_Model_Small", ")", ";", "fprintf", "(", "asm_out_file", ",", "", ",", "msp430_attr", ",", "OFBA_MSPABI_Tag_Data_Model", ",", "TARGET_LARGE", "?", "OFBA_MSPABI_Val_Model_Large", ":", "OFBA_MSPABI_Val_Model_Small", ")", ";", "fprintf", "(", "asm_out_file", ",", "", ",", "gnu_attr", ",", "Tag_GNU_MSP430_Data_Region", ",", "msp430_data_region", "==", "MSP430_REGION_LOWER", "?", "Tag_GNU_MSP430_Data_Region_Lower", ":", "Tag_GNU_MSP430_Data_Region_Any", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_file_end", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200726, "Length": 112, "Cover_Rate": 0.8115942028985508} {"Template_token": ["", "if", "(", "GET_CODE", "(", "operands", "[", "const_op_idx", "]", ")", "!=", "REG", "&&", "GET_CODE", "(", "operands", "[", "const_op_idx", "]", ")", "!=", "MEM", ")", "operands", "[", "const_op_idx", "]", "=", "copy_to_mode_reg", "(", "my_mode", ",", "operands", "[", "const_op_idx", "]", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_fixup_compare_operands", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200727, "Length": 38, "Cover_Rate": 0.5428571428571428} {"Template_token": ["", "if", "(", "msp430_reversible_cmp_operator", "(", "operands", "[", "", "]", ",", "VOIDmode", ")", ")", "const_op_idx", "=", "", ";"], "ground_truth": ["if", "(", "GET_CODE", "(", "operands", "[", "const_op_idx", "]", ")", "!=", "REG", "&&", "GET_CODE", "(", "operands", "[", "const_op_idx", "]", ")", "!=", "MEM", ")", "operands", "[", "const_op_idx", "]", "=", "copy_to_mode_reg", "(", "my_mode", ",", "operands", "[", "const_op_idx", "]", ")", ";"], "File": "msp430", "Func": "msp430_fixup_compare_operands", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200728, "Length": 53, "Cover_Rate": 0.7571428571428571} {"Template_token": ["", "static", "bool", "msp430_frame_pointer_required", "(", "void", ")", "{"], "ground_truth": ["return", "false", ";"], "File": "msp430", "Func": "msp430_frame_pointer_required", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200729, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "static", "bool", "msp430_frame_pointer_required", "(", "void", ")", "{"], "ground_truth": ["return", "false", ";"], "File": "msp430", "Func": "msp430_frame_pointer_required", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200730, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "CUMULATIVE_ARGS", "*", "ca", "=", "get_cumulative_args", "(", "cap", ")", ";"], "ground_truth": ["msp430_evaluate_arg", "(", "cap", ",", "arg", ".", "mode", ",", "arg", ".", "type", ",", "arg", ".", "named", ")", ";"], "File": "msp430", "Func": "msp430_function_arg", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200731, "Length": 26, "Cover_Rate": 0.43333333333333335} {"Template_token": ["", "msp430_evaluate_arg", "(", "cap", ",", "arg", ".", "mode", ",", "arg", ".", "type", ",", "arg", ".", "named", ")", ";"], "ground_truth": ["if", "(", "ca", "->", "start_reg", ">=", "CA_FIRST_REG", ")", "for", "(", "i", "=", "", ";", "i", "<", "ca", "->", "reg_count", ";", "i", "++", ")", "ca", "->", "reg_used", "[", "i", "+", "ca", "->", "start_reg", "-", "CA_FIRST_REG", "]", "=", "", ";"], "File": "msp430", "Func": "msp430_function_arg_advance", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200732, "Length": 55, "Cover_Rate": 0.6395348837209303} {"Template_token": ["", "msp430_evaluate_arg", "(", "cap", ",", "arg", ".", "mode", ",", "arg", ".", "type", ",", "arg", ".", "named", ")", ";", "if", "(", "ca", "->", "start_reg", ">=", "CA_FIRST_REG", ")", "for", "(", "i", "=", "", ";", "i", "<", "ca", "->", "reg_count", ";", "i", "++", ")", "ca", "->", "reg_used", "[", "i", "+", "ca", "->", "start_reg", "-", "CA_FIRST_REG", "]", "=", "", ";", "ca", "->", "special_p", "=", "", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_function_arg_advance", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200733, "Length": 62, "Cover_Rate": 0.7209302325581395} {"Template_token": ["", "static", "unsigned", "int", "msp430_function_arg_boundary", "(", "machine_mode", "mode", ",", "const_tree", "type", ")", "{", "if", "(", "mode", "==", "BLKmode", "&&", "int_size_in_bytes", "(", "type", ")", ">", "", ")", "return", "", ";"], "ground_truth": ["if", "(", "GET_MODE_BITSIZE", "(", "mode", ")", ">", "", ")", "return", "", ";"], "File": "msp430", "Func": "msp430_function_arg_boundary", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200734, "Length": 40, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "if", "(", "mode", "==", "BLKmode", "&&", "int_size_in_bytes", "(", "type", ")", ">", "", ")", "return", "", ";"], "ground_truth": ["if", "(", "GET_MODE_BITSIZE", "(", "mode", ")", ">", "", ")", "return", "", ";"], "File": "msp430", "Func": "msp430_function_arg_boundary", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200735, "Length": 28, "Cover_Rate": 0.6363636363636364} {"Template_token": ["", "if", "(", "prefix", "==", "NULL", "||", "startswith", "(", "name", ",", "prefix", ")", ")", "return", "default_function_section", "(", "decl", ",", "freq", ",", "startup", ",", "exit", ")", ";", "name", "=", "ACONCAT", "(", "(", "prefix", ",", "name", ",", "NULL", ")", ")", ";"], "ground_truth": ["return", "get_named_section", "(", "decl", ",", "name", ",", "", ")", ";"], "File": "msp430", "Func": "msp430_function_section", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200736, "Length": 48, "Cover_Rate": 0.48} {"Template_token": ["", "const", "char", "*", "prefix", "=", "gen_prefix", "(", "decl", ")", ";"], "ground_truth": ["if", "(", "prefix", "==", "NULL", "||", "startswith", "(", "name", ",", "prefix", ")", ")", "return", "default_function_section", "(", "decl", ",", "freq", ",", "startup", ",", "exit", ")", ";"], "File": "msp430", "Func": "msp430_function_section", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200737, "Length": 35, "Cover_Rate": 0.35} {"Template_token": ["", "return", "gen_rtx_REG", "(", "TYPE_MODE", "(", "ret_type", ")", ",", "", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_function_value", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200738, "Length": 12, "Cover_Rate": 0.4444444444444444} {"Template_token": ["", "rtx", "msp430_function_value", "(", "const_tree", "ret_type", ",", "const_tree", "fn_decl_or_type", "ATTRIBUTE_UNUSED", ",", "bool", "outgoing", "ATTRIBUTE_UNUSED", ")", "{", "return", "gen_rtx_REG", "(", "TYPE_MODE", "(", "ret_type", ")", ",", "", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_function_value", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200739, "Length": 27, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "msp430_function_value_regno_p", "(", "unsigned", "int", "regno", ")", "{", "return", "regno", "==", "", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_function_value_regno_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200740, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "msp430_function_value_regno_p", "(", "unsigned", "int", "regno", ")", "{", "return", "regno", "==", "", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_function_value_regno_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200741, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "return", "x", ";", "case", "PLUS", ":", "if", "(", "GET_CODE", "(", "XEXP", "(", "op0", ",", "", ")", ")", "==", "REG", ")", "{", "if", "(", "GET_CODE", "(", "XEXP", "(", "op0", ",", "", ")", ")", "==", "CONST_INT", "||", "GET_CODE", "(", "XEXP", "(", "op0", ",", "", ")", ")", "==", "CONST", "||", "GET_CODE", "(", "XEXP", "(", "op0", ",", "", ")", ")", "==", "LABEL_REF", "||", "GET_CODE", "(", "XEXP", "(", "op0", ",", "", ")", ")", "==", "SYMBOL_REF", ")", "return", "x", ";", "else", "return", "msp430_get_inner_dest_code", "(", "op0", ")", ";", "}", "return", "msp430_get_inner_dest_code", "(", "op0", ")", ";", "default", ":", "if", "(", "GET_RTX_FORMAT", "(", "code", ")", "[", "", "]", "!=", "'e'", ")", "return", "x", ";", "return", "msp430_get_inner_dest_code", "(", "op0", ")", ";", "}"], "ground_truth": ["break", ";"], "File": "msp430", "Func": "msp430_get_inner_dest_code", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200742, "Length": 114, "Cover_Rate": 0.49137931034482757} {"Template_token": ["", "static", "fixed_size_mode", "msp430_get_raw_arg_mode", "(", "int", "regno", ")", "{"], "ground_truth": ["return", "as_a", "<", "fixed_size_mode", ">", "(", "regno", "==", "ARG_POINTER_REGNUM", "?", "VOIDmode", ":", "Pmode", ")", ";"], "File": "msp430", "Func": "msp430_get_raw_arg_mode", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200743, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "static", "fixed_size_mode", "msp430_get_raw_arg_mode", "(", "int", "regno", ")", "{", "return", "as_a", "<", "fixed_size_mode", ">", "(", "regno", "==", "ARG_POINTER_REGNUM", "?", "VOIDmode", ":", "Pmode", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_get_raw_arg_mode", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200744, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "return", "Pmode", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_get_raw_result_mode", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200745, "Length": 4, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "static", "fixed_size_mode", "msp430_get_raw_result_mode", "(", "int", "regno", "ATTRIBUTE_UNUSED", ")", "{"], "ground_truth": ["return", "Pmode", ";"], "File": "msp430", "Func": "msp430_get_raw_result_mode", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200746, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "SET_TYPE_ALIGN", "(", "type", ",", "boundary", ")", ";", "}", "type_size", "=", "size_in_bytes", "(", "type", ")", ";", "rounded_size", "=", "round_up", "(", "type_size", ",", "align", ")", ";", "gimplify_expr", "(", "&", "rounded_size", ",", "pre_p", ",", "post_p", ",", "is_gimple_val", ",", "fb_rvalue", ")", ";", "addr", "=", "valist_tmp", ";", "t", "=", "fold_build_pointer_plus", "(", "valist_tmp", ",", "rounded_size", ")", ";", "t", "=", "build2", "(", "MODIFY_EXPR", ",", "TREE_TYPE", "(", "valist", ")", ",", "valist", ",", "t", ")", ";", "gimplify_and_add", "(", "t", ",", "pre_p", ")", ";", "addr", "=", "fold_convert", "(", "build_pointer_type", "(", "type", ")", ",", "addr", ")", ";", "if", "(", "indirect", ")", "addr", "=", "build_va_arg_indirect_ref", "(", "addr", ")", ";", "addr", "=", "build_va_arg_indirect_ref", "(", "addr", ")", ";"], "ground_truth": ["return", "addr", ";"], "File": "msp430", "Func": "msp430_gimplify_va_arg_expr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200747, "Length": 107, "Cover_Rate": 0.31563421828908556} {"Template_token": ["", "if", "(", "has_attr", "(", "ATTR_LOWER", ",", "*", "node", ")", "&&", "!", "(", "TREE_NAME_EQ", "(", "name", ",", "", ")", "||", "TREE_NAME_EQ", "(", "name", ",", "ATTR_PERSIST", ")", "||", "TREE_NAME_EQ", "(", "name", ",", "ATTR_NOINIT", ")", ")", ")", "message", "=", "G_", "(", "", "", ")", ";", "else", "if", "(", "has_attr", "(", "ATTR_UPPER", ",", "*", "node", ")", ")", "message", "=", "G_", "(", "", "", ")", ";", "else", "if", "(", "has_attr", "(", "ATTR_EITHER", ",", "*", "node", ")", ")", "message", "=", "G_", "(", "", "", ")", ";", "if", "(", "message", ")", "{", "warning", "(", "OPT_Wattributes", ",", "message", ",", "name", ")", ";", "*", "no_add_attrs", "=", "true", ";", "}"], "ground_truth": ["return", "NULL_TREE", ";"], "File": "msp430", "Func": "msp430_handle_generic_attribute", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200748, "Length": 103, "Cover_Rate": 0.7686567164179104} {"Template_token": ["", "else", "if", "(", "has_attr", "(", "ATTR_UPPER", ",", "*", "node", ")", ")", "message", "=", "G_", "(", "", "", ")", ";", "else", "if", "(", "has_attr", "(", "ATTR_EITHER", ",", "*", "node", ")", ")", "message", "=", "G_", "(", "", "", ")", ";", "if", "(", "message", ")", "{", "warning", "(", "OPT_Wattributes", ",", "message", ",", "name", ")", ";"], "ground_truth": ["*", "no_add_attrs", "=", "true", ";"], "File": "msp430", "Func": "msp430_handle_generic_attribute", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200749, "Length": 57, "Cover_Rate": 0.4253731343283582} {"Template_token": ["", "static", "bool", "msp430_hard_regno_mode_ok", "(", "unsigned", "int", "regno", ",", "machine_mode", "mode", ")", "{"], "ground_truth": ["return", "regno", "<=", "(", "ARG_POINTER_REGNUM", "-", "(", "unsigned", "int", ")", "msp430_hard_regno_nregs", "(", "regno", ",", "mode", ")", ")", ";"], "File": "msp430", "Func": "msp430_hard_regno_mode_ok", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200750, "Length": 30, "Cover_Rate": 0.967741935483871} {"Template_token": ["", "if", "(", "mode", "==", "PSImode", "&&", "msp430x", ")", "return", "", ";", "if", "(", "mode", "==", "CPSImode", "&&", "msp430x", ")", "return", "", ";", "return", "(", "(", "GET_MODE_SIZE", "(", "mode", ")", "+", "UNITS_PER_WORD", "-", "", ")", "/", "UNITS_PER_WORD", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_hard_regno_nregs", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200752, "Length": 39, "Cover_Rate": 0.7647058823529411} {"Template_token": ["", "if", "(", "mode", "==", "PSImode", "&&", "msp430x", ")", "return", "", ";"], "ground_truth": ["if", "(", "mode", "==", "CPSImode", "&&", "msp430x", ")", "return", "", ";"], "File": "msp430", "Func": "msp430_hard_regno_nregs", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200753, "Length": 22, "Cover_Rate": 0.43137254901960786} {"Template_token": ["", "if", "(", "target_mcu", "==", "cached_match", ")", "return", "cached_result", ";", "cached_match", "=", "target_mcu", ";", "msp430_extract_mcu_data", "(", "target_mcu", ")", ";"], "ground_truth": ["if", "(", "extracted_mcu_data", ".", "name", "!=", "NULL", ")", "return", "cached_result", "=", "extracted_mcu_data", ".", "hwmpy", "!=", "", ";"], "File": "msp430", "Func": "msp430_has_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200754, "Length": 35, "Cover_Rate": 0.4069767441860465} {"Template_token": ["", "rtx", "msp430_incoming_return_addr_rtx", "(", "void", ")", "{", "return", "gen_rtx_MEM", "(", "Pmode", ",", "stack_pointer_rtx", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_incoming_return_addr_rtx", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200756, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "rv", "+=", "cfun", "->", "machine", "->", "framesize_outgoing", ";", "rv", "+=", "cfun", "->", "machine", "->", "framesize_locals", ";", "case", "FRAME_POINTER_REGNUM", ":", "rv", "+=", "cfun", "->", "machine", "->", "framesize_regs", ";", "rv", "+=", "(", "TARGET_LARGE", "?", "", ":", "", ")", ";"], "ground_truth": ["break", ";"], "File": "msp430", "Func": "msp430_initial_elimination_offset", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200757, "Length": 39, "Cover_Rate": 0.3391304347826087} {"Template_token": ["", "tree", "void_ftype_int", "=", "build_function_type_list", "(", "void_type_node", ",", "integer_type_node", ",", "NULL", ")", ";", "tree", "void_ftype_longlong", "=", "build_function_type_list", "(", "void_type_node", ",", "long_long_integer_type_node", ",", "NULL", ")", ";", "msp430_builtins", "[", "MSP430_BUILTIN_BIC_SR", "]", "=", "add_builtin_function", "(", "", ",", "void_ftype_int", ",", "MSP430_BUILTIN_BIC_SR", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "msp430_builtins", "[", "MSP430_BUILTIN_BIS_SR", "]", "=", "add_builtin_function", "(", "", ",", "void_ftype_int", ",", "MSP430_BUILTIN_BIS_SR", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";", "msp430_builtins", "[", "MSP430_BUILTIN_DELAY_CYCLES", "]", "=", "add_builtin_function", "(", "", ",", "void_ftype_longlong", ",", "MSP430_BUILTIN_DELAY_CYCLES", ",", "BUILT_IN_MD", ",", "NULL", ",", "NULL_TREE", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_init_builtins", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200758, "Length": 85, "Cover_Rate": 0.9239130434782609} {"Template_token": ["", "else", "if", "(", "libname", ")", "fname", "=", "XSTR", "(", "libname", ",", "", ")", ";", "else", "fname", "=", "NULL", ";"], "ground_truth": ["if", "(", "fname", "&&", "msp430_special_register_convention_p", "(", "fname", ")", ")", "ca", "->", "special_p", "=", "", ";"], "File": "msp430", "Func": "msp430_init_cumulative_args", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200759, "Length": 34, "Cover_Rate": 0.35051546391752575} {"Template_token": ["", "int", "i", ";", "rtx", "addr", "=", "expand_normal", "(", "address", ")", ";", "rtx", "mem", "=", "gen_rtx_MEM", "(", "BLKmode", ",", "addr", ")", ";", "if", "(", "!", "msp430x", ")", "return", ";", "for", "(", "i", "=", "", ";", "i", "<", "FIRST_PSEUDO_REGISTER", ";", "i", "++", ")", "{", "unsigned", "int", "dnum", "=", "DWARF_FRAME_REGNUM", "(", "i", ")", ";", "unsigned", "int", "rnum", "=", "DWARF2_FRAME_REG_OUT", "(", "dnum", ",", "", ")", ";"], "ground_truth": ["if", "(", "rnum", "<", "DWARF_FRAME_REGISTERS", ")", "{"], "File": "msp430", "Func": "msp430_init_dwarf_reg_sizes_extra", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200760, "Length": 69, "Cover_Rate": 0.6388888888888888} {"Template_token": ["", "m", "=", "ggc_cleared_alloc", "<", "machine_function", ">", "(", ")", ";", "return", "m", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_init_machine_status", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200761, "Length": 13, "Cover_Rate": 0.48148148148148145} {"Template_token": ["", "static", "int", "msp430_insn_cost", "(", "rtx_insn", "*", "insn", ",", "bool", "speed", "ATTRIBUTE_UNUSED", ")", "{"], "ground_truth": ["if", "(", "recog_memoized", "(", "insn", ")", "<", "", ")", "return", "", ";"], "File": "msp430", "Func": "msp430_insn_cost", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200764, "Length": 25, "Cover_Rate": 0.6756756756756757} {"Template_token": ["", "static", "int", "msp430_insn_cost", "(", "rtx_insn", "*", "insn", ",", "bool", "speed", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "recog_memoized", "(", "insn", ")", "<", "", ")", "return", "", ";", "return", "COSTS_N_INSNS", "(", "get_attr_length", "(", "insn", ")", "/", "", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_insn_cost", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200765, "Length": 37, "Cover_Rate": 1.0} {"Template_token": ["", "return", "(", "GET_CODE", "(", "op0", ")", "==", "REG", "||", "GET_CODE", "(", "op0", ")", "==", "POST_INC", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_is_mem_indirect", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200768, "Length": 18, "Cover_Rate": 0.391304347826087} {"Template_token": ["", "static", "bool", "msp430_is_mem_indirect", "(", "rtx", "x", ")", "{", "gcc_assert", "(", "GET_CODE", "(", "x", ")", "==", "MEM", ")", ";", "rtx", "op0", "=", "XEXP", "(", "x", ",", "", ")", ";", "return", "(", "GET_CODE", "(", "op0", ")", "==", "REG", "||", "GET_CODE", "(", "op0", ")", "==", "POST_INC", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_is_mem_indirect", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200769, "Length": 46, "Cover_Rate": 1.0} {"Template_token": ["", "case", "PLUS", ":", "case", "POST_INC", ":", "if", "(", "REG_P", "(", "XEXP", "(", "x", ",", "", ")", ")", ")", "{", "if", "(", "GET_MODE", "(", "x", ")", "!=", "GET_MODE", "(", "XEXP", "(", "x", ",", "", ")", ")", ")", "return", "false", ";"], "ground_truth": ["if", "(", "!", "reg_ok_for_addr", "(", "XEXP", "(", "x", ",", "", ")", ",", "strict", ")", ")", "return", "false", ";"], "File": "msp430", "Func": "msp430_legitimate_address_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200770, "Length": 57, "Cover_Rate": 0.33727810650887574} {"Template_token": ["", "static", "bool", "msp430_legitimate_constant", "(", "machine_mode", "mode", ",", "rtx", "x", ")", "{"], "ground_truth": ["return", "!", "CONST_INT_P", "(", "x", ")", "||", "mode", "!=", "PSImode", "||", "(", "INTVAL", "(", "x", ")", "<", "(", "", "<<", "", ")", "&&", "INTVAL", "(", "x", ")", ">=", "(", "HOST_WIDE_INT", ")", "(", "HOST_WIDE_INT_M1U", "<<", "", ")", ")", ";"], "File": "msp430", "Func": "msp430_legitimate_constant", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200771, "Length": 49, "Cover_Rate": 0.98} {"Template_token": ["", "static", "bool", "msp430_legitimate_constant", "(", "machine_mode", "mode", ",", "rtx", "x", ")", "{"], "ground_truth": ["return", "!", "CONST_INT_P", "(", "x", ")", "||", "mode", "!=", "PSImode", "||", "(", "INTVAL", "(", "x", ")", "<", "(", "", "<<", "", ")", "&&", "INTVAL", "(", "x", ")", ">=", "(", "HOST_WIDE_INT", ")", "(", "HOST_WIDE_INT_M1U", "<<", "", ")", ")", ";"], "File": "msp430", "Func": "msp430_legitimate_constant", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200772, "Length": 49, "Cover_Rate": 0.98} {"Template_token": ["", "rtx", "msp430_libcall_value", "(", "machine_mode", "mode", ",", "const_rtx", "fun", "ATTRIBUTE_UNUSED", ")", "{", "return", "gen_rtx_REG", "(", "mode", ",", "", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_libcall_value", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200774, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "startswith", "(", "target_mcu", ",", "", ")", ")", "{", "snprintf", "(", "mcu_name", ",", "sizeof", "(", "mcu_name", ")", "-", "", ",", "", ",", "target_mcu", "+", "", ")", ";", "start_upper", "=", "", ";", "}", "else", "{", "snprintf", "(", "mcu_name", ",", "sizeof", "(", "mcu_name", ")", "-", "", ",", "", ",", "target_mcu", ")", ";", "start_upper", "=", "", ";", "}", "end_upper", "=", "strlen", "(", "mcu_name", ")", "-", "", ";"], "ground_truth": ["for", "(", "i", "=", "start_upper", ";", "i", "<", "end_upper", ";", "i", "++", ")", "mcu_name", "[", "i", "]", "=", "TOUPPER", "(", "mcu_name", "[", "i", "]", ")", ";"], "File": "msp430", "Func": "msp430_mcu_name", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200775, "Length": 91, "Cover_Rate": 0.65} {"Template_token": ["", "if", "(", "target_mcu", ")", "{", "msp430_extract_mcu_data", "(", "target_mcu", ")", ";", "unsigned", "int", "i", ";", "unsigned", "int", "start_upper", ";", "unsigned", "int", "end_upper", ";", "static", "char", "mcu_name", "[", "", "]", ";", "if", "(", "startswith", "(", "target_mcu", ",", "", ")", ")", "{"], "ground_truth": ["snprintf", "(", "mcu_name", ",", "sizeof", "(", "mcu_name", ")", "-", "", ",", "", ",", "target_mcu", "+", "", ")", ";"], "File": "msp430", "Func": "msp430_mcu_name", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200776, "Length": 57, "Cover_Rate": 0.40714285714285714} {"Template_token": ["", "static", "int", "msp430_memory_move_cost", "(", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "reg_class_t", "rclass", "ATTRIBUTE_UNUSED", ",", "bool", "in", ")", "{", "int", "cost", ";", "const", "struct", "double_op_cost", "*", "cost_p", ";", "bool", "speed", "=", "(", "!", "optimize_size", "&&", "optimize", ">=", "", ")", ";", "cost_p", "=", "(", "speed", "?", "&", "cycle_cost_double_op_mov", ":", "&", "size_cost_double_op", ")", ";", "if", "(", "in", ")", "cost", "=", "cost_p", "->", "ind2r", ";"], "ground_truth": ["else", "cost", "=", "cost_p", "->", "r2m", ";"], "File": "msp430", "Func": "msp430_memory_move_cost", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200777, "Length": 66, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "const", "struct", "double_op_cost", "*", "cost_p", ";", "bool", "speed", "=", "(", "!", "optimize_size", "&&", "optimize", ">=", "", ")", ";", "cost_p", "=", "(", "speed", "?", "&", "cycle_cost_double_op_mov", ":", "&", "size_cost_double_op", ")", ";", "if", "(", "in", ")", "cost", "=", "cost_p", "->", "ind2r", ";", "else", "cost", "=", "cost_p", "->", "r2m", ";", "return", "", "*", "cost", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_memory_move_cost", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200778, "Length": 53, "Cover_Rate": 0.7361111111111112} {"Template_token": ["", "if", "(", "(", "mode1", "==", "PSImode", "||", "mode2", "==", "SImode", ")", "||", "(", "mode1", "==", "SImode", "||", "mode2", "==", "PSImode", ")", ")", "return", "false", ";"], "ground_truth": ["return", "(", "(", "GET_MODE_CLASS", "(", "mode1", ")", "==", "MODE_FLOAT", "||", "GET_MODE_CLASS", "(", "mode1", ")", "==", "MODE_COMPLEX_FLOAT", ")", "==", "(", "GET_MODE_CLASS", "(", "mode2", ")", "==", "MODE_FLOAT", "||", "GET_MODE_CLASS", "(", "mode2", ")", "==", "MODE_COMPLEX_FLOAT", ")", ")", ";"], "File": "msp430", "Func": "msp430_modes_tieable_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200780, "Length": 60, "Cover_Rate": 0.8333333333333334} {"Template_token": ["", "return", "false", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_ms_bitfield_layout_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200781, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "bool", "msp430_ms_bitfield_layout_p", "(", "const_tree", "record_type", "ATTRIBUTE_UNUSED", ")", "{", "return", "false", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_ms_bitfield_layout_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200782, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "static", "int", "msp430_muldiv_costs", "(", "rtx", "src", ",", "rtx", "dst", ",", "bool", "speed", ",", "rtx", "outer_rtx", ",", "machine_mode", "outer_mode", ")", "{", "enum", "rtx_code", "outer_code", "=", "GET_CODE", "(", "outer_rtx", ")", ";", "const", "struct", "msp430_multlib_costs", "*", "cost_p", ";", "cost_p", "=", "(", "msp430_use_16bit_hwmult", "(", ")", "?", "&", "cycle_cost_multlib_32bit", ":", "&", "cycle_cost_multlib_16bit", ")", ";", "int", "factor", "=", "", ";", "int", "mode_factor", "=", "", ";", "if", "(", "outer_mode", "==", "SImode", ")", "mode_factor", "=", "", ";", "else", "if", "(", "outer_mode", "==", "PSImode", ")", "mode_factor", "=", "", ";", "else", "if", "(", "outer_mode", "==", "DImode", ")", "mode_factor", "=", "", ";"], "ground_truth": ["if", "(", "!", "speed", ")", "{"], "File": "msp430", "Func": "msp430_muldiv_costs", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200783, "Length": 97, "Cover_Rate": 0.32441471571906355} {"Template_token": ["", "static", "int", "msp430_muldiv_costs", "(", "rtx", "src", ",", "rtx", "dst", ",", "bool", "speed", ",", "rtx", "outer_rtx", ",", "machine_mode", "outer_mode", ")", "{", "enum", "rtx_code", "outer_code", "=", "GET_CODE", "(", "outer_rtx", ")", ";", "const", "struct", "msp430_multlib_costs", "*", "cost_p", ";", "cost_p", "=", "(", "msp430_use_16bit_hwmult", "(", ")", "?", "&", "cycle_cost_multlib_32bit", ":", "&", "cycle_cost_multlib_16bit", ")", ";", "int", "factor", "=", "", ";", "int", "mode_factor", "=", "", ";", "if", "(", "outer_mode", "==", "SImode", ")", "mode_factor", "=", "", ";", "else", "if", "(", "outer_mode", "==", "PSImode", ")", "mode_factor", "=", "", ";", "else", "if", "(", "outer_mode", "==", "DImode", ")", "mode_factor", "=", "", ";", "if", "(", "!", "speed", ")", "{", "if", "(", "outer_code", "!=", "MULT", ")", "factor", "=", "", ";", "else", "if", "(", "(", "(", "msp430_use_16bit_hwmult", "(", ")", "&&", "outer_mode", "!=", "DImode", ")", "||", "msp430_use_32bit_hwmult", "(", ")", "||", "msp430_use_f5_series_hwmult", "(", ")", ")", ")", "factor", "=", "", ";", "else", "factor", "=", "", ";", "return", "factor", "*", "mode_factor", "*", "msp430_costs", "(", "src", ",", "dst", ",", "speed", ",", "outer_rtx", ")", ";", "}", "if", "(", "outer_code", "!=", "MULT", "||", "!", "msp430_has_hwmult", "(", ")", "||", "(", "outer_mode", "==", "DImode", "&&", "msp430_use_16bit_hwmult", "(", ")", ")", ")", "{", "factor", "=", "(", "outer_code", "==", "MULT", "?", "", ":", "", ")", ";", "return", "factor", "*", "mode_factor", "*", "msp430_costs", "(", "src", ",", "dst", ",", "speed", ",", "outer_rtx", ")", ";", "}", "switch", "(", "outer_mode", ")", "{", "case", "E_QImode", ":", "case", "E_HImode", ":", "return", "cost_p", "->", "mulhi", "+", "(", "", "*", "msp430_costs", "(", "src", ",", "dst", ",", "speed", ",", "outer_rtx", ")", ")", ";", "case", "E_PSImode", ":", "factor", "=", "", ";", "case", "E_SImode", ":", "return", "factor", "*", "(", "cost_p", "->", "mulsi", "+", "(", "", "*", "msp430_costs", "(", "src", ",", "dst", ",", "speed", ",", "outer_rtx", ")", ")", ")", ";"], "ground_truth": ["case", "E_DImode", ":"], "File": "msp430", "Func": "msp430_muldiv_costs", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200784, "Length": 275, "Cover_Rate": 0.919732441471572} {"Template_token": ["", "}", "if", "(", "target_cpu", "==", "MSP430_CPU_MSP430X_DEFAULT", ")", "msp430x", "=", "xisa", ";", "}", "else", "{", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_AUTO", ")", "{", "if", "(", "msp430_warn_mcu", ")", "{", "if", "(", "target_cpu", "==", "MSP430_CPU_MSP430X_DEFAULT", ")", "warning", "(", "", ",", "", "", "", "", ",", "target_mcu", ")", ";", "else", "warning", "(", "", ",", "", "", "", ",", "target_mcu", ")", ";", "}", "msp430_hwmult_type", "=", "MSP430_HWMULT_NONE", ";", "}", "else", "if", "(", "target_cpu", "==", "MSP430_CPU_MSP430X_DEFAULT", ")", "{", "if", "(", "msp430_warn_mcu", ")", "warning", "(", "", ",", "", "", "", ",", "target_mcu", ")", ";", "}", "else", "if", "(", "msp430_warn_mcu", ")", "warning", "(", "", ",", "", ",", "target_mcu", ")", ";", "}", "}", "if", "(", "TARGET_LARGE", "&&", "!", "msp430x", ")", "error", "(", "", ")", ";", "if", "(", "!", "TARGET_LARGE", "&&", "msp430_code_region", "==", "MSP430_REGION_EITHER", ")", "error", "(", "", "", ")", ";", "else", "if", "(", "!", "TARGET_LARGE", "&&", "msp430_code_region", "==", "MSP430_REGION_UPPER", ")", "error", "(", "", "", ")", ";", "if", "(", "!", "TARGET_LARGE", "&&", "msp430_data_region", "==", "MSP430_REGION_EITHER", ")", "error", "(", "", "", ")", ";", "else", "if", "(", "!", "TARGET_LARGE", "&&", "msp430_data_region", "==", "MSP430_REGION_UPPER", ")", "error", "(", "", "", ")", ";", "if", "(", "flag_exceptions", "||", "flag_non_call_exceptions", "||", "flag_unwind_tables", "||", "flag_asynchronous_unwind_tables", ")", "flag_omit_frame_pointer", "=", "false", ";", "else", "flag_omit_frame_pointer", "=", "true", ";", "if", "(", "TARGET_OPT_SPACE", "&&", "optimize", "<", "", ")", "optimize_size", "=", "", ";", "if", "(", "flag_use_cxa_atexit", ")", "error", "(", "", ")", ";", "if", "(", "TARGET_TINY_PRINTF", ")", "error", "(", "", "", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_option_override", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200785, "Length": 227, "Cover_Rate": 0.5055679287305123} {"Template_token": ["", "if", "(", "msp430_warn_mcu", ")", "{", "if", "(", "target_cpu", "!=", "MSP430_CPU_MSP430X_DEFAULT", "&&", "msp430x", "!=", "xisa", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "xisa", "?", "", ":", "", ",", "msp430x", "?", "", ":", "", ")", ";", "if", "(", "extracted_mcu_data", ".", "hwmpy", "==", "", "&&", "msp430_hwmult_type", "!=", "MSP430_HWMULT_AUTO", "&&", "msp430_hwmult_type", "!=", "MSP430_HWMULT_NONE", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "msp430_hwmult_type", "==", "MSP430_HWMULT_SMALL", "?", "", ":", "msp430_hwmult_type", "==", "MSP430_HWMULT_LARGE", "?", "", ":", "", ")", ";", "else", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_SMALL", "&&", "extracted_mcu_data", ".", "hwmpy", "!=", "", "&&", "extracted_mcu_data", ".", "hwmpy", "!=", "", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "hwmult_name", "(", "extracted_mcu_data", ".", "hwmpy", ")", ")", ";", "else", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_LARGE", "&&", "extracted_mcu_data", ".", "hwmpy", "!=", "", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "hwmult_name", "(", "extracted_mcu_data", ".", "hwmpy", ")", ")", ";", "else", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_F5SERIES", "&&", "extracted_mcu_data", ".", "hwmpy", "!=", "", ")", "warning", "(", "", ",", "", "", ",", "target_mcu", ",", "hwmult_name", "(", "extracted_mcu_data", ".", "hwmpy", ")", ")", ";", "}", "if", "(", "target_cpu", "==", "MSP430_CPU_MSP430X_DEFAULT", ")", "msp430x", "=", "xisa", ";", "}", "else", "{", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_AUTO", ")", "{", "if", "(", "msp430_warn_mcu", ")", "{", "if", "(", "target_cpu", "==", "MSP430_CPU_MSP430X_DEFAULT", ")", "warning", "(", "", ",", "", "", "", "", ",", "target_mcu", ")", ";", "else", "warning", "(", "", ",", "", "", "", ",", "target_mcu", ")", ";", "}"], "ground_truth": ["msp430_hwmult_type", "=", "MSP430_HWMULT_NONE", ";"], "File": "msp430", "Func": "msp430_option_override", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200786, "Length": 234, "Cover_Rate": 0.5211581291759465} {"Template_token": ["", "if", "(", "(", "CONST_INT_P", "(", "op0", ")", "&&", "(", "IN_RANGE", "(", "INTVAL", "(", "op0", ")", ",", "", ",", "(", "", "<<", "", ")", "-", "", ")", ")", ")", ")", "return", "true", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_op_not_in_high_mem", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200787, "Length": 36, "Cover_Rate": 0.3025210084033613} {"Template_token": ["", "if", "(", "!", "TARGET_LARGE", "||", "!", "MEM_P", "(", "op", ")", ")", "return", "true", ";", "op0", "=", "XEXP", "(", "op", ",", "", ")", ";"], "ground_truth": ["if", "(", "SYMBOL_REF_P", "(", "op0", ")", "&&", "(", "SYMBOL_REF_FLAGS", "(", "op0", ")", "&", "SYMBOL_FLAG_LOW_MEM", ")", ")", "return", "true", ";"], "File": "msp430", "Func": "msp430_op_not_in_high_mem", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200788, "Length": 42, "Cover_Rate": 0.35294117647058826} {"Template_token": ["", "void", "msp430_output_aligned_decl_common", "(", "FILE", "*", "stream", ",", "const", "tree", "decl", ",", "const", "char", "*", "name", ",", "unsigned", "HOST_WIDE_INT", "size", ",", "unsigned", "int", "align", ",", "int", "local", ")", "{", "if", "(", "(", "msp430_data_region", "==", "MSP430_REGION_ANY", "||", "(", "(", "msp430_data_region", "==", "MSP430_REGION_LOWER", ")", "&&", "!", "TARGET_USE_LOWER_REGION_PREFIX", ")", ")", "&&", "!", "(", "decl", "!=", "NULL_TREE", "&&", "DECL_SECTION_NAME", "(", "decl", ")", ")", "&&", "!", "has_attr", "(", "ATTR_EITHER", ",", "decl", ")", "&&", "!", "has_attr", "(", "ATTR_LOWER", ",", "decl", ")", "&&", "!", "has_attr", "(", "ATTR_UPPER", ",", "decl", ")", "&&", "!", "has_attr", "(", "ATTR_PERSIST", ",", "decl", ")", "&&", "!", "has_attr", "(", "ATTR_NOINIT", ",", "decl", ")", ")", "{", "if", "(", "local", ")", "{", "fprintf", "(", "stream", ",", "LOCAL_ASM_OP", ")", ";", "assemble_name", "(", "stream", ",", "name", ")", ";", "fprintf", "(", "stream", ",", "", ")", ";", "}", "fprintf", "(", "stream", ",", "COMMON_ASM_OP", ")", ";", "assemble_name", "(", "stream", ",", "name", ")", ";", "fprintf", "(", "stream", ",", "", "HOST_WIDE_INT_PRINT_UNSIGNED", "", ",", "size", ",", "align", "/", "BITS_PER_UNIT", ")", ";", "}", "else", "{"], "ground_truth": ["section", "*", "sec", ";"], "File": "msp430", "Func": "msp430_output_aligned_decl_common", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200789, "Length": 163, "Cover_Rate": 0.5292207792207793} {"Template_token": ["", "fprintf", "(", "stream", ",", "", "HOST_WIDE_INT_PRINT_UNSIGNED", "", ",", "size", ",", "align", "/", "BITS_PER_UNIT", ")", ";", "}", "else", "{", "section", "*", "sec", ";", "if", "(", "decl", ")", "sec", "=", "msp430_select_section", "(", "decl", ",", "", ",", "align", ")", ";", "else", "switch", "(", "msp430_data_region", ")", "{", "case", "MSP430_REGION_UPPER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";", "case", "MSP430_REGION_LOWER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";", "case", "MSP430_REGION_EITHER", ":", "sec", "=", "get_named_section", "(", "NULL", ",", "", ",", "", ")", ";", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "gcc_assert", "(", "sec", "!=", "NULL", ")", ";", "switch_to_section", "(", "sec", ")", ";", "ASM_OUTPUT_ALIGN", "(", "stream", ",", "floor_log2", "(", "align", "/", "BITS_PER_UNIT", ")", ")", ";", "if", "(", "!", "local", ")", "{", "targetm", ".", "asm_out", ".", "globalize_label", "(", "stream", ",", "name", ")", ";"], "ground_truth": ["ASM_WEAKEN_LABEL", "(", "stream", ",", "name", ")", ";"], "File": "msp430", "Func": "msp430_output_aligned_decl_common", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200790, "Length": 146, "Cover_Rate": 0.474025974025974} {"Template_token": ["", "}", "return", "", ";", "}", "if", "(", "code", "==", "ASHIFT", ")", "{", "if", "(", "!", "msp430x", "&&", "mode", "==", "HImode", ")", "{", "if", "(", "return_length", ")", "length", "=", "", "+", "(", "MEM_P", "(", "operands", "[", "", "]", ")", "?", "", ":", "", ")", ";", "else", "for", "(", "i", "=", "", ";", "i", "<", "amt", ";", "i", "++", ")", "output_asm_insn", "(", "", ",", "operands", ")", ";", "}", "else", "if", "(", "mode", "==", "SImode", ")", "{", "if", "(", "return_length", ")", "length", "=", "", "+", "(", "MEM_P", "(", "operands", "[", "", "]", ")", "?", "", ":", "", ")", "+", "(", "", "*", "msp430x_insn_required", "(", "operands", "[", "", "]", ")", ")", ";", "else", "for", "(", "i", "=", "", ";", "i", "<", "amt", ";", "i", "++", ")", "output_asm_insn", "(", "", ",", "operands", ")", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "}", "else", "if", "(", "code", "==", "ASHIFTRT", ")", "{", "if", "(", "!", "msp430x", "&&", "mode", "==", "HImode", ")", "{", "if", "(", "return_length", ")", "length", "=", "", "+", "(", "MEM_P", "(", "operands", "[", "", "]", ")", "?", "", ":", "", ")", ";", "else", "for", "(", "i", "=", "", ";", "i", "<", "amt", ";", "i", "++", ")", "output_asm_insn", "(", "", ",", "operands", ")", ";", "}", "else", "if", "(", "mode", "==", "SImode", ")", "{", "if", "(", "return_length", ")", "length", "=", "", "+", "(", "MEM_P", "(", "operands", "[", "", "]", ")", "?", "", ":", "", ")", "+", "(", "", "*", "msp430x_insn_required", "(", "operands", "[", "", "]", ")", ")", ";", "else", "for", "(", "i", "=", "", ";", "i", "<", "amt", ";", "i", "++", ")", "output_asm_insn", "(", "", ",", "operands", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_output_asm_shift_insns", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200791, "Length": 262, "Cover_Rate": 0.4564459930313589} {"Template_token": ["", "name", "=", "helper_function_name_mappings", "[", "i", "]", ".", "ti_name", ";", "break", ";", "}"], "ground_truth": ["if", "(", "user_label_prefix", "[", "", "]", "!=", "", ")", "fputs", "(", "user_label_prefix", ",", "file", ")", ";"], "File": "msp430", "Func": "msp430_output_labelref", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200792, "Length": 28, "Cover_Rate": 0.32941176470588235} {"Template_token": ["", "for", "(", "i", "=", "", ";", "helper_function_name_mappings", "[", "i", "]", ".", "gcc_name", ";", "i", "++", ")", "if", "(", "strcmp", "(", "helper_function_name_mappings", "[", "i", "]", ".", "gcc_name", ",", "name", ")", "==", "", ")", "{", "name", "=", "helper_function_name_mappings", "[", "i", "]", ".", "ti_name", ";"], "ground_truth": ["break", ";"], "File": "msp430", "Func": "msp430_output_labelref", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200793, "Length": 44, "Cover_Rate": 0.5176470588235295} {"Template_token": ["", "if", "(", "crtl", "->", "is_leaf", "&&", "df_regs_ever_live_p", "(", "regno", ")", ")", "return", "true", ";", "else", "if", "(", "!", "crtl", "->", "is_leaf", ")", "return", "true", ";", "}", "if", "(", "!", "call_used_or_fixed_reg_p", "(", "regno", ")", "&&", "df_regs_ever_live_p", "(", "regno", ")", ")", "return", "true", ";"], "ground_truth": ["return", "false", ";"], "File": "msp430", "Func": "msp430_preserve_reg_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200796, "Length": 45, "Cover_Rate": 0.4639175257731959} {"Template_token": ["", "if", "(", "crtl", "->", "calls_eh_return", ")", "return", "true", ";", "if", "(", "fixed_regs", "[", "regno", "]", ")", "return", "false", ";", "if", "(", "msp430_is_interrupt_func", "(", ")", "&&", "regno", ">=", "", "&&", "regno", "<=", "", ")", "{", "if", "(", "crtl", "->", "is_leaf", "&&", "df_regs_ever_live_p", "(", "regno", ")", ")", "return", "true", ";", "else", "if", "(", "!", "crtl", "->", "is_leaf", ")", "return", "true", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_preserve_reg_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200797, "Length": 60, "Cover_Rate": 0.6185567010309279} {"Template_token": ["", "op", "=", "XEXP", "(", "op", ",", "", ")", ";", "break", ";", "case", "'r'", ":", "switch", "(", "GET_CODE", "(", "op", ")", ")", "{", "case", "EQ", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "NE", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GEU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LTU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GE", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LT", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GTU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LEU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GT", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LE", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "default", ":", "msp430_print_operand_raw", "(", "file", ",", "op", ")", ";", "break", ";", "}", "return", ";", "case", "'R'", ":", "switch", "(", "GET_CODE", "(", "op", ")", ")", "{", "case", "GTU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LEU", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "GT", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "LE", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "default", ":", "msp430_print_operand_raw", "(", "file", ",", "op", ")", ";", "break", ";", "}", "return", ";", "case", "'p'", ":", "gcc_assert", "(", "CONST_INT_P", "(", "op", ")", ")", ";", "fprintf", "(", "file", ",", "", ",", "", "<<", "INTVAL", "(", "op", ")", ")", ";", "return", ";", "case", "'b'", ":", "switch", "(", "GET_MODE", "(", "op", ")", ")", "{", "case", "E_QImode", ":", "fprintf", "(", "file", ",", "", ")", ";", "return", ";", "case", "E_HImode", ":", "fprintf", "(", "file", ",", "", ")", ";", "return", ";", "case", "E_PSImode", ":", "fprintf", "(", "file", ",", "", ")", ";", "return", ";", "case", "E_SImode", ":", "fprintf", "(", "file", ",", "", ")", ";", "return", ";", "default", ":", "return", ";", "}", "case", "'d'", ":", "case", "'e'", ":", "case", "'f'", ":", "case", "'g'", ":", "if", "(", "REG_P", "(", "op", ")", ")", "{", "output_operand_lossage", "(", "", "", "", ")", ";", "return", ";", "}", "case", "'B'", ":", "case", "'H'", ":", "case", "'C'", ":", "case", "'D'", ":", "switch", "(", "letter", ")", "{", "case", "'d'", ":", "mem_off", "=", "", ";", "const_shift", "=", "", ";", "break", ";", "case", "'B'", ":", "case", "'H'", ":", "mem_off", "=", "", ";", "reg_off", "=", "", ";", "const_shift", "=", "", ";", "break", ";", "case", "'e'", ":", "mem_off", "=", "", ";", "const_shift", "=", "", ";", "break", ";", "case", "'C'", ":", "mem_off", "=", "", ";", "reg_off", "=", "", ";", "const_shift", "=", "", ";", "break", ";", "case", "'f'", ":", "mem_off", "=", "", ";", "const_shift", "=", "", ";", "break", ";", "case", "'D'", ":", "mem_off", "=", "", ";", "reg_off", "=", "", ";", "const_shift", "=", "", ";", "break", ";"], "ground_truth": ["case", "'g'", ":"], "File": "msp430", "Func": "msp430_print_operand", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200798, "Length": 463, "Cover_Rate": 0.40295909486510006} {"Template_token": ["", "case", "PLUS", ":", "msp430_print_operand_raw", "(", "file", ",", "XEXP", "(", "addr", ",", "", ")", ")", ";", "gcc_assert", "(", "REG_P", "(", "XEXP", "(", "addr", ",", "", ")", ")", ")", ";", "fprintf", "(", "file", ",", "", ",", "reg_names", "[", "REGNO", "(", "XEXP", "(", "addr", ",", "", ")", ")", "]", ")", ";", "return", ";", "case", "REG", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "case", "POST_INC", ":", "fprintf", "(", "file", ",", "", ",", "reg_names", "[", "REGNO", "(", "XEXP", "(", "addr", ",", "", ")", ")", "]", ")", ";", "return", ";", "case", "CONST", ":", "case", "CONST_INT", ":", "case", "SYMBOL_REF", ":", "case", "LABEL_REF", ":", "fprintf", "(", "file", ",", "", ")", ";", "break", ";", "default", ":"], "ground_truth": ["break", ";"], "File": "msp430", "Func": "msp430_print_operand_addr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200800, "Length": 112, "Cover_Rate": 0.7832167832167832} {"Template_token": ["", "switch", "(", "GET_CODE", "(", "op", ")", ")", "{", "case", "REG", ":", "fprintf", "(", "file", ",", "", ",", "reg_names", "[", "REGNO", "(", "op", ")", "]", ")", ";", "break", ";", "case", "CONST_INT", ":", "i", "=", "INTVAL", "(", "op", ")", ";", "if", "(", "TARGET_ASM_HEX", ")", "fprintf", "(", "file", ",", "", "HOST_WIDE_INT_PRINT", "", ",", "i", ")", ";", "else", "fprintf", "(", "file", ",", "", "HOST_WIDE_INT_PRINT", "", ",", "i", ")", ";", "break", ";", "case", "CONST", ":", "case", "PLUS", ":", "case", "MINUS", ":", "case", "SYMBOL_REF", ":", "case", "LABEL_REF", ":", "output_addr_const", "(", "file", ",", "op", ")", ";", "break", ";", "default", ":"], "ground_truth": ["print_rtl", "(", "file", ",", "op", ")", ";"], "File": "msp430", "Func": "msp430_print_operand_raw", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200801, "Length": 100, "Cover_Rate": 0.8403361344537815} {"Template_token": ["", "bool", "msp430_promote_prototypes", "(", "const_tree", "fntype", "ATTRIBUTE_UNUSED", ")", "{"], "ground_truth": ["return", "false", ";"], "File": "msp430", "Func": "msp430_promote_prototypes", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200802, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "char", "*", "include_dir", ";", "if", "(", "msp430_devices_csv_loc", ")", "include_dir", "=", "xstrdup", "(", "msp430_devices_csv_loc", ")", ";", "else", "if", "(", "msp430_check_env_var_for_devices", "(", "&", "include_dir", ")", ")", "return", ";", "include_dir", "=", "msp430_dirname", "(", "include_dir", ")", ";", "include_dir", "=", "update_path", "(", "include_dir", ",", "", ")", ";", "add_path", "(", "include_dir", ",", "INC_SYSTEM", ",", "false", ",", "false", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_register_pre_includes", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200804, "Length": 54, "Cover_Rate": 0.7297297297297297} {"Template_token": ["", "if", "(", "crtl", "->", "args", ".", "pretend_args_size", ")", "ra_size", "+=", "", ";"], "ground_truth": ["return", "gen_rtx_MEM", "(", "Pmode", ",", "gen_rtx_PLUS", "(", "Pmode", ",", "arg_pointer_rtx", ",", "GEN_INT", "(", "-", "ra_size", ")", ")", ")", ";"], "File": "msp430", "Func": "msp430_return_addr_rtx", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200805, "Length": 31, "Cover_Rate": 0.543859649122807} {"Template_token": ["", "else", "if", "(", "has_attr", "(", "ATTR_PERSIST", ",", "*", "node", ")", "&&", "!", "TREE_NAME_EQ", "(", "name", ",", "", ")", ")", "message", "=", "G_", "(", "", "", ")", ";", "else", "if", "(", "!", "TARGET_LARGE", ")", "message", "=", "G_", "(", "", "", ")", ";", "if", "(", "message", ")", "{", "warning", "(", "OPT_Wattributes", ",", "message", ",", "name", ")", ";"], "ground_truth": ["*", "no_add_attrs", "=", "true", ";"], "File": "msp430", "Func": "msp430_section_attr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200807, "Length": 60, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "if", "(", "startswith", "(", "name", ",", "lower_prefix", ")", ")", "name", "+=", "strlen", "(", "lower_prefix", ")", ";", "else", "if", "(", "startswith", "(", "name", ",", "upper_prefix", ")", ")", "name", "+=", "strlen", "(", "upper_prefix", ")", ";"], "ground_truth": ["else", "if", "(", "startswith", "(", "name", ",", "either_prefix", ")", ")", "name", "+=", "strlen", "(", "either_prefix", ")", ";"], "File": "msp430", "Func": "msp430_section_type_flags", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200808, "Length": 50, "Cover_Rate": 0.6493506493506493} {"Template_token": ["", "if", "(", "startswith", "(", "name", ",", "lower_prefix", ")", ")", "name", "+=", "strlen", "(", "lower_prefix", ")", ";", "else", "if", "(", "startswith", "(", "name", ",", "upper_prefix", ")", ")", "name", "+=", "strlen", "(", "upper_prefix", ")", ";"], "ground_truth": ["else", "if", "(", "startswith", "(", "name", ",", "either_prefix", ")", ")", "name", "+=", "strlen", "(", "either_prefix", ")", ";"], "File": "msp430", "Func": "msp430_section_type_flags", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200809, "Length": 50, "Cover_Rate": 0.6493506493506493} {"Template_token": ["", "case", "SECCAT_BSS", ":", "if", "(", "!", "prefix", ")", "return", "bss_section", ";", "base_sec_name", "=", "", ";", "break", ";", "case", "SECCAT_RODATA", ":", "if", "(", "!", "prefix", ")", "return", "readonly_data_section", ";", "base_sec_name", "=", "", ";", "break", ";", "case", "SECCAT_RODATA_MERGE_STR", ":", "case", "SECCAT_RODATA_MERGE_STR_INIT", ":", "case", "SECCAT_RODATA_MERGE_CONST", ":", "return", "default_elf_select_section", "(", "decl", ",", "reloc", ",", "align", ")", ";", "case", "SECCAT_SRODATA", ":", "case", "SECCAT_SDATA", ":", "case", "SECCAT_SBSS", ":", "case", "SECCAT_TDATA", ":", "case", "SECCAT_TBSS", ":", "case", "SECCAT_DATA_REL", ":", "case", "SECCAT_DATA_REL_LOCAL", ":", "case", "SECCAT_DATA_REL_RO", ":", "case", "SECCAT_DATA_REL_RO_LOCAL", ":", "return", "default_select_section", "(", "decl", ",", "reloc", ",", "align", ")", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "sec_name", "=", "ACONCAT", "(", "(", "prefix", ",", "base_sec_name", ",", "DECL_SECTION_NAME", "(", "decl", ")", ",", "NULL", ")", ")", ";"], "ground_truth": ["return", "get_named_section", "(", "decl", ",", "sec_name", ",", "", ")", ";"], "File": "msp430", "Func": "msp430_select_section", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200810, "Length": 125, "Cover_Rate": 0.39556962025316456} {"Template_token": ["", "if", "(", "msp430_is_mem_indirect", "(", "dst", ")", ")", "return", "cost_p", "->", "ind", ";", "else", "return", "cost_p", "->", "mem", ";", "case", "CONST_INT", ":", "case", "CONST_FIXED", ":", "case", "CONST_DOUBLE", ":", "case", "SYMBOL_REF", ":", "case", "CONST", ":", "return", "double_op_cost_p", "->", "imm2r", "+", "cost_p", "->", "reg", ";", "default", ":", "return", "cost_p", "->", "mem", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_single_op_cost", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200811, "Length": 50, "Cover_Rate": 0.3968253968253968} {"Template_token": ["", "int", "i", ";", "for", "(", "i", "=", "", ";", "special_convention_function_names", "[", "i", "]", ";", "i", "++", ")", "if", "(", "!", "strcmp", "(", "name", ",", "special_convention_function_names", "[", "i", "]", ")", ")", "return", "true", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_special_register_convention_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200812, "Length": 37, "Cover_Rate": 0.7872340425531915} {"Template_token": ["", "for", "(", "i", "=", "", ";", "special_convention_function_names", "[", "i", "]", ";", "i", "++", ")", "if", "(", "!", "strcmp", "(", "name", ",", "special_convention_function_names", "[", "i", "]", ")", ")", "return", "true", ";"], "ground_truth": ["return", "false", ";"], "File": "msp430", "Func": "msp430_special_register_convention_p", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200813, "Length": 33, "Cover_Rate": 0.7021276595744681} {"Template_token": ["", "operands", "[", "", "]", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "operands", "[", "", "]", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "operands", "[", "", "]", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "if", "(", "reg_overlap_mentioned_p", "(", "operands", "[", "", "]", ",", "operands", "[", "", "]", ")", "||", "reg_overlap_mentioned_p", "(", "operands", "[", "", "]", ",", "operands", "[", "", "]", ")", ")", "return", "", ";", "if", "(", "GET_CODE", "(", "operands", "[", "", "]", ")", "==", "CONST_INT", ")", "operands", "[", "", "]", "=", "GEN_INT", "(", "INTVAL", "(", "operands", "[", "", "]", ")", "&", "", ")", ";", "else", "if", "(", "MEM_P", "(", "operands", "[", "", "]", ")", "&&", "GET_CODE", "(", "XEXP", "(", "operands", "[", "", "]", ",", "", ")", ")", "==", "POST_INC", ")", "{", "operands", "[", "", "]", "=", "XEXP", "(", "XEXP", "(", "operands", "[", "", "]", ",", "", ")", ",", "", ")", ";", "operands", "[", "", "]", "=", "gen_rtx_MEM", "(", "HImode", ",", "operands", "[", "", "]", ")", ";", "operands", "[", "", "]", "=", "gen_rtx_ZERO_EXTEND", "(", "SImode", ",", "operands", "[", "", "]", ")", ";", "}", "else", "operands", "[", "", "]", "=", "gen_rtx_ZERO_EXTEND", "(", "SImode", ",", "operands", "[", "", "]", ")", ";"], "ground_truth": ["return", "", ";"], "File": "msp430", "Func": "msp430_split_addsi", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200814, "Length": 215, "Cover_Rate": 0.7651245551601423} {"Template_token": ["", "operands", "[", "", "]", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "operands", "[", "", "]", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "operands", "[", "", "]", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "operands", "[", "", "]", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "if", "(", "reg_overlap_mentioned_p", "(", "operands", "[", "", "]", ",", "operands", "[", "", "]", ")", "||", "reg_overlap_mentioned_p", "(", "operands", "[", "", "]", ",", "operands", "[", "", "]", ")", ")", "return", "", ";", "if", "(", "GET_CODE", "(", "operands", "[", "", "]", ")", "==", "CONST_INT", ")", "operands", "[", "", "]", "=", "GEN_INT", "(", "INTVAL", "(", "operands", "[", "", "]", ")", "&", "", ")", ";", "else", "if", "(", "MEM_P", "(", "operands", "[", "", "]", ")", "&&", "GET_CODE", "(", "XEXP", "(", "operands", "[", "", "]", ",", "", ")", ")", "==", "POST_INC", ")", "{", "operands", "[", "", "]", "=", "XEXP", "(", "XEXP", "(", "operands", "[", "", "]", ",", "", ")", ",", "", ")", ";", "operands", "[", "", "]", "=", "gen_rtx_MEM", "(", "HImode", ",", "operands", "[", "", "]", ")", ";", "operands", "[", "", "]", "=", "gen_rtx_ZERO_EXTEND", "(", "SImode", ",", "operands", "[", "", "]", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_split_addsi", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200815, "Length": 215, "Cover_Rate": 0.7651245551601423} {"Template_token": ["", "op12", "=", "gen_rtx_CONST", "(", "HImode", ",", "op12", ")", ";", "}", "else", "{", "op10", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "op12", "=", "msp430_subreg", "(", "HImode", ",", "operands", "[", "", "]", ",", "SImode", ",", "", ")", ";", "}", "if", "(", "rtx_equal_p", "(", "operands", "[", "", "]", ",", "operands", "[", "", "]", ")", ")", "{", "operands", "[", "", "]", "=", "op02", ";", "operands", "[", "", "]", "=", "op12", ";", "operands", "[", "", "]", "=", "op00", ";", "operands", "[", "", "]", "=", "op10", ";", "}", "else", "if", "(", "rtx_equal_p", "(", "op00", ",", "op12", ")", "||", "(", "REG_P", "(", "op00", ")", "&&", "reg_mentioned_p", "(", "op00", ",", "op10", ")", ")", "||", "(", "REG_P", "(", "op10", ")", "&&", "reg_mentioned_p", "(", "op10", ",", "op00", ")", ")", ")", "{"], "ground_truth": ["operands", "[", "", "]", "=", "op02", ";"], "File": "msp430", "Func": "msp430_split_movsi", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200816, "Length": 136, "Cover_Rate": 0.43174603174603177} {"Template_token": ["", "int_attr", "=", "lookup_attribute", "(", "", ",", "DECL_ATTRIBUTES", "(", "decl", ")", ")", ";", "if", "(", "int_attr", "!=", "NULL_TREE", ")", "{", "tree", "intr_vector", "=", "TREE_VALUE", "(", "int_attr", ")", ";", "if", "(", "intr_vector", "!=", "NULL_TREE", ")", "{", "char", "buf", "[", "", "]", ";", "if", "(", "DECL_WEAK", "(", "decl", ")", ")", "{", "error", "(", "", "", ")", ";", "}"], "ground_truth": ["intr_vector", "=", "TREE_VALUE", "(", "intr_vector", ")", ";"], "File": "msp430", "Func": "msp430_start_function", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200817, "Length": 62, "Cover_Rate": 0.32978723404255317} {"Template_token": ["", "if", "(", "imode", "==", "PSImode", "&&", "mode", "==", "HImode", "&&", "byte", "==", "", ")", "rv", "=", "gen_rtx_SUBREG", "(", "mode", ",", "ireg", ",", "byte", ")", ";", "else", "rv", "=", "simplify_gen_subreg", "(", "mode", ",", "ireg", ",", "imode", ",", "byte", ")", ";", "}", "else", "if", "(", "GET_CODE", "(", "r", ")", "==", "MEM", ")", "{", "if", "(", "GET_CODE", "(", "XEXP", "(", "r", ",", "", ")", ")", "==", "POST_INC", "&&", "byte", "==", "", ")", "byte", "=", "", ";", "rv", "=", "adjust_address", "(", "r", ",", "mode", ",", "byte", ")", ";", "}", "else", "if", "(", "GET_CODE", "(", "r", ")", "==", "SYMBOL_REF", "&&", "(", "byte", "==", "", "||", "byte", "==", "", ")", "&&", "mode", "==", "HImode", ")", "{"], "ground_truth": ["rv", "=", "gen_rtx_ZERO_EXTRACT", "(", "HImode", ",", "r", ",", "GEN_INT", "(", "", ")", ",", "GEN_INT", "(", "", "*", "byte", ")", ")", ";"], "File": "msp430", "Func": "msp430_subreg", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200818, "Length": 131, "Cover_Rate": 0.5770925110132159} {"Template_token": ["", "static", "scalar_int_mode", "msp430_unwind_word_mode", "(", "void", ")", "{", "return", "msp430x", "?", "PSImode", ":", "HImode", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_unwind_word_mode", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200820, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "target_mcu", "==", "NULL", "||", "msp430_hwmult_type", "!=", "MSP430_HWMULT_AUTO", ")", "return", "false", ";", "if", "(", "target_mcu", "==", "cached_match", ")", "return", "cached_result", ";", "cached_match", "=", "target_mcu", ";", "msp430_extract_mcu_data", "(", "target_mcu", ")", ";", "if", "(", "extracted_mcu_data", ".", "name", "!=", "NULL", ")", "return", "cached_result", "=", "(", "extracted_mcu_data", ".", "hwmpy", "==", "", "||", "extracted_mcu_data", ".", "hwmpy", "==", "", ")", ";", "return", "cached_result", "=", "false", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_use_16bit_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200822, "Length": 62, "Cover_Rate": 0.6888888888888889} {"Template_token": ["", "if", "(", "extracted_mcu_data", ".", "name", "!=", "NULL", ")", "return", "cached_result", "=", "(", "extracted_mcu_data", ".", "hwmpy", "==", "", "||", "extracted_mcu_data", ".", "hwmpy", "==", "", ")", ";"], "ground_truth": ["return", "cached_result", "=", "false", ";"], "File": "msp430", "Func": "msp430_use_16bit_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200823, "Length": 30, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "static", "bool", "msp430_use_32bit_hwmult", "(", "void", ")", "{", "static", "const", "char", "*", "cached_match", "=", "NULL", ";", "static", "bool", "cached_result", ";", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_LARGE", ")", "return", "true", ";", "if", "(", "target_mcu", "==", "NULL", "||", "msp430_hwmult_type", "!=", "MSP430_HWMULT_AUTO", ")", "return", "false", ";", "if", "(", "target_mcu", "==", "cached_match", ")", "return", "cached_result", ";"], "ground_truth": ["cached_match", "=", "target_mcu", ";"], "File": "msp430", "Func": "msp430_use_32bit_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200824, "Length": 54, "Cover_Rate": 0.6585365853658537} {"Template_token": ["", "cached_match", "=", "target_mcu", ";", "if", "(", "strncasecmp", "(", "target_mcu", ",", "", ",", "", ")", "==", "", ")", "return", "cached_result", "=", "true", ";", "if", "(", "strncasecmp", "(", "target_mcu", ",", "", ",", "", ")", "==", "", ")", "return", "cached_result", "=", "true", ";", "if", "(", "strncasecmp", "(", "target_mcu", ",", "", ",", "", ")", "==", "", ")", "return", "cached_result", "=", "true", ";", "msp430_extract_mcu_data", "(", "target_mcu", ")", ";", "if", "(", "extracted_mcu_data", ".", "name", "!=", "NULL", ")", "return", "cached_result", "=", "extracted_mcu_data", ".", "hwmpy", "==", "", ";"], "ground_truth": ["return", "cached_result", "=", "false", ";"], "File": "msp430", "Func": "msp430_use_f5_series_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200825, "Length": 85, "Cover_Rate": 0.6296296296296297} {"Template_token": ["", "if", "(", "has_attr", "(", "ATTR_UPPER", ",", "decl", ")", "||", "has_attr", "(", "ATTR_EITHER", ",", "decl", ")", "||", "has_attr", "(", "ATTR_PERSIST", ",", "decl", ")", "||", "(", "!", "has_attr", "(", "ATTR_LOWER", ",", "decl", ")", "&&", "!", "has_attr", "(", "ATTR_NOINIT", ",", "decl", ")", "&&", "(", "has_attr", "(", "", ",", "decl", ")", "||", "msp430_data_region", "==", "MSP430_REGION_UPPER", "||", "msp430_data_region", "==", "MSP430_REGION_EITHER", "||", "msp430_data_region", "==", "MSP430_REGION_ANY", ")", ")", ")", "return", "false", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_var_in_low_mem", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200826, "Length": 69, "Cover_Rate": 0.8117647058823529} {"Template_token": ["", "static", "bool", "msp430_var_in_low_mem", "(", "tree", "decl", ")", "{", "gcc_assert", "(", "VAR_P", "(", "decl", ")", ")", ";", "if", "(", "has_attr", "(", "ATTR_UPPER", ",", "decl", ")", "||", "has_attr", "(", "ATTR_EITHER", ",", "decl", ")", "||", "has_attr", "(", "ATTR_PERSIST", ",", "decl", ")", "||", "(", "!", "has_attr", "(", "ATTR_LOWER", ",", "decl", ")", "&&", "!", "has_attr", "(", "ATTR_NOINIT", ",", "decl", ")", "&&", "(", "has_attr", "(", "", ",", "decl", ")", "||", "msp430_data_region", "==", "MSP430_REGION_UPPER", "||", "msp430_data_region", "==", "MSP430_REGION_EITHER", "||", "msp430_data_region", "==", "MSP430_REGION_ANY", ")", ")", ")", "return", "false", ";"], "ground_truth": ["return", "true", ";"], "File": "msp430", "Func": "msp430_var_in_low_mem", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200827, "Length": 84, "Cover_Rate": 0.9882352941176471} {"Template_token": ["", "return", "!", "is_naked_func", "(", "decl", ")", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "msp430_warn_func_return", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200828, "Length": 8, "Cover_Rate": 0.5} {"Template_token": ["", "if", "(", "strict", "&&", "rn", ">=", "FIRST_PSEUDO_REGISTER", ")", "rn", "=", "reg_renumber", "[", "rn", "]", ";", "if", "(", "strict", "&&", "", "<=", "rn", "&&", "rn", "<", "FIRST_PSEUDO_REGISTER", ")", "return", "true", ";", "if", "(", "!", "strict", ")", "return", "true", ";"], "ground_truth": ["return", "false", ";"], "File": "msp430", "Func": "reg_ok_for_addr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200830, "Length": 41, "Cover_Rate": 0.6721311475409836} {"Template_token": ["", "static", "bool", "reg_ok_for_addr", "(", "rtx", "r", ",", "bool", "strict", ")", "{", "int", "rn", "=", "REGNO", "(", "r", ")", ";", "if", "(", "strict", "&&", "rn", ">=", "FIRST_PSEUDO_REGISTER", ")", "rn", "=", "reg_renumber", "[", "rn", "]", ";", "if", "(", "strict", "&&", "", "<=", "rn", "&&", "rn", "<", "FIRST_PSEUDO_REGISTER", ")", "return", "true", ";", "if", "(", "!", "strict", ")", "return", "true", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "msp430", "Func": "reg_ok_for_addr", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200831, "Length": 61, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_LARGE", ")", "return", "true", ";", "if", "(", "target_mcu", "==", "NULL", "||", "msp430_hwmult_type", "!=", "MSP430_HWMULT_AUTO", ")", "return", "false", ";"], "ground_truth": ["if", "(", "target_mcu", "==", "cached_match", ")", "return", "cached_result", ";"], "File": "msp430", "Func": "use_32bit_hwmult", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200832, "Length": 31, "Cover_Rate": 0.3780487804878049} {"Template_token": ["", "static", "bool", "use_helper_for_const_shift", "(", "machine_mode", "mode", ",", "HOST_WIDE_INT", "amt", ")", "{", "const", "int", "default_inline_shift", "=", "", ";", "int", "user_set_max_inline", "=", "(", "msp430_max_inline_shift", "==", "", "?", "", ":", "", ")", ";", "int", "max_inline", "=", "(", "user_set_max_inline", "?", "msp430_max_inline_shift", ":", "default_inline_shift", ")", ";", "int", "max_inline_32", "=", "max_inline", "/", "", ";", "if", "(", "mode", "==", "E_DImode", ")", "return", "true", ";", "if", "(", "(", "mode", "==", "E_QImode", "||", "mode", "==", "E_HImode", "||", "mode", "==", "E_PSImode", ")", "&&", "(", "msp430x", "||", "amt", "<=", "max_inline", "||", "(", "!", "user_set_max_inline", "&&", "(", "optimize", ">=", "", "&&", "!", "optimize_size", ")", ")", ")", ")", "return", "false", ";"], "ground_truth": ["if", "(", "mode", "==", "E_SImode", "&&", "(", "amt", "<=", "max_inline_32", "||", "(", "!", "user_set_max_inline", "&&", "(", "optimize", ">=", "", "&&", "!", "optimize_size", ")", "&&", "amt", "<=", "", ")", ")", ")", "return", "false", ";"], "File": "msp430", "Func": "use_helper_for_const_shift", "Target": "msp430", "Target_Clf": "MPU", "Compiler_Type": "GCC", "Idx": 200833, "Length": 131, "Cover_Rate": 0.9703703703703703}