|
NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; |
|
NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; |
|
PyObject *exception_type = NULL; |
|
PyObject *exception_type = NULL; |
|
PyObject *exception_value = NULL; |
|
PyObject *exception_value = NULL; |
|
PyTracebackObject *exception_tb = NULL; |
|
PyTracebackObject *exception_tb = NULL; |
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0; |
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0; |
n |
PyObject *exception_keeper_type_1; |
n |
|
|
PyObject *exception_keeper_value_1; |
|
|
|
PyTracebackObject *exception_keeper_tb_1; |
|
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; |
|
|
|
int tmp_res; |
|
|
|
bool tmp_result; |
|
|
|
static struct Nuitka_FrameObject *cache_frame_615b4c99237900cf18c1229684fc8a1b = NULL; |
|
static struct Nuitka_FrameObject *cache_frame_615b4c99237900cf18c1229684fc8a1b = NULL; |
|
PyObject *tmp_return_value = NULL; |
|
PyObject *tmp_return_value = NULL; |
|
|
|
|
|
// Actual function body. |
|
// Actual function body. |
|
if (isFrameUnusable(cache_frame_615b4c99237900cf18c1229684fc8a1b)) { |
|
if (isFrameUnusable(cache_frame_615b4c99237900cf18c1229684fc8a1b)) { |
|
exception_lineno = 17; |
|
exception_lineno = 17; |
|
type_description_1 = "o"; |
|
type_description_1 = "o"; |
|
goto frame_exception_exit_1; |
|
goto frame_exception_exit_1; |
|
} |
|
} |
|
} |
|
} |
n |
// Tried code: |
n |
|
|
{ |
|
|
|
PyObject *tmp_called_value_1; |
|
|
|
PyObject *tmp_call_result_1; |
|
|
|
CHECK_OBJECT(par_raisy); |
|
|
|
tmp_called_value_1 = par_raisy; |
|
|
|
frame_615b4c99237900cf18c1229684fc8a1b->m_frame.f_lineno = 21; |
|
|
|
tmp_call_result_1 = CALL_FUNCTION_NO_ARGS(tstate, tmp_called_value_1); |
|
|
|
if (tmp_call_result_1 == NULL) { |
|
|
|
assert(HAS_ERROR_OCCURRED(tstate)); |
|
|
|
|
|
|
n |
FETCH_ERROR_OCCURRED(tstate, &exception_type, &exception_value, &exception_tb); |
n |
|
|
|
|
|
|
|
|
|
|
exception_lineno = 21; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto try_except_handler_1; |
|
|
|
} |
|
|
|
Py_DECREF(tmp_call_result_1); |
|
|
|
} |
|
|
|
goto try_end_1; |
|
|
|
// Exception handler code: |
|
|
|
try_except_handler_1:; |
|
|
|
exception_keeper_type_1 = exception_type; |
|
|
|
exception_keeper_value_1 = exception_value; |
|
|
|
exception_keeper_tb_1 = exception_tb; |
|
|
|
exception_keeper_lineno_1 = exception_lineno; |
|
|
|
exception_type = NULL; |
|
|
|
exception_value = NULL; |
|
|
|
exception_tb = NULL; |
|
|
|
exception_lineno = 0; |
|
|
|
|
|
|
|
// Preserve existing published exception. |
|
|
|
PRESERVE_FRAME_EXCEPTION(tstate, frame_615b4c99237900cf18c1229684fc8a1b); |
|
|
|
if (exception_keeper_tb_1 == NULL) { |
|
|
|
exception_keeper_tb_1 = MAKE_TRACEBACK(frame_615b4c99237900cf18c1229684fc8a1b, exception_keeper_lineno_1); |
|
|
|
} else if (exception_keeper_lineno_1 != 0) { |
|
|
|
exception_keeper_tb_1 = ADD_TRACEBACK(exception_keeper_tb_1, frame_615b4c99237900cf18c1229684fc8a1b, exception_keeper_lineno_1); |
|
|
|
} |
|
|
|
|
|
|
|
PUBLISH_CURRENT_EXCEPTION(tstate, &exception_keeper_type_1, &exception_keeper_value_1, &exception_keeper_tb_1); |
|
|
|
{ |
|
|
|
bool tmp_condition_result_1; |
|
|
|
PyObject *tmp_cmp_expr_left_1; |
|
|
|
PyObject *tmp_cmp_expr_right_1; |
|
|
|
tmp_cmp_expr_left_1 = EXC_TYPE(PyThreadState_GET()); |
|
|
|
tmp_cmp_expr_right_1 = PyExc_TypeError; |
|
|
|
tmp_res = EXCEPTION_MATCH_BOOL(tstate, tmp_cmp_expr_left_1, tmp_cmp_expr_right_1); |
|
|
|
assert(!(tmp_res == -1)); |
|
|
|
tmp_condition_result_1 = (tmp_res == 0) ? true : false; |
|
|
|
if (tmp_condition_result_1 != false) { |
|
|
|
goto branch_yes_1; |
|
|
|
} else { |
|
|
|
goto branch_no_1; |
|
|
|
} |
|
|
|
} |
|
|
|
branch_yes_1:; |
|
|
|
tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); |
|
|
|
if (unlikely(tmp_result == false)) { |
|
|
|
exception_lineno = 20; |
|
|
|
} |
|
|
|
|
|
|
|
if (exception_tb && exception_tb->tb_frame == &frame_615b4c99237900cf18c1229684fc8a1b->m_frame) frame_615b4c99237900cf18c1229684fc8a1b->m_frame.f_lineno = exception_tb->tb_lineno; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
branch_no_1:; |
|
|
|
goto try_end_1; |
|
|
|
NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); |
|
|
|
return NULL; |
|
|
|
// End of try: |
|
|
|
try_end_1:; |
|
|
|
|
|
|
|
// Restore frame exception if necessary. |
|
|
|
RESTORE_FRAME_EXCEPTION(tstate, frame_615b4c99237900cf18c1229684fc8a1b); |
|
|
|
|
|
|
|
// Put the previous frame back on top. |
|
// Put the previous frame back on top. |
|
popFrameStack(tstate); |
|
popFrameStack(tstate); |
|
|
|
|
|
goto frame_no_exception_1; |
|
goto frame_no_exception_1; |
|
frame_exception_exit_1: |
|
frame_exception_exit_1: |
|
|
|
|
t |
RESTORE_FRAME_EXCEPTION(tstate, frame_615b4c99237900cf18c1229684fc8a1b); |
t |
|
|
|
|
|
|
if (exception_tb == NULL) { |
|
if (exception_tb == NULL) { |
|
exception_tb = MAKE_TRACEBACK(frame_615b4c99237900cf18c1229684fc8a1b, exception_lineno); |
|
exception_tb = MAKE_TRACEBACK(frame_615b4c99237900cf18c1229684fc8a1b, exception_lineno); |
|
} else if (exception_tb->tb_frame != &frame_615b4c99237900cf18c1229684fc8a1b->m_frame) { |
|
} else if (exception_tb->tb_frame != &frame_615b4c99237900cf18c1229684fc8a1b->m_frame) { |
|
exception_tb = ADD_TRACEBACK(exception_tb, frame_615b4c99237900cf18c1229684fc8a1b, exception_lineno); |
|
exception_tb = ADD_TRACEBACK(exception_tb, frame_615b4c99237900cf18c1229684fc8a1b, exception_lineno); |