mirror of
https://github.com/house-of-vanity/fesmoo_perdoliq.git
synced 2025-08-21 16:17:15 +00:00
6245 lines
192 KiB
C
6245 lines
192 KiB
C
/* Generated code for Python source for module 'html5lib._trie.py'
|
|
* created by Nuitka version 0.6.0
|
|
*
|
|
* This code is in part copyright 2018 Kay Hayen.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#include "nuitka/prelude.h"
|
|
|
|
#include "__helpers.h"
|
|
|
|
/* The _module_html5lib$_trie$py is a Python object pointer of module type. */
|
|
|
|
/* Note: For full compatibility with CPython, every module variable access
|
|
* needs to go through it except for cases where the module cannot possibly
|
|
* have changed in the mean time.
|
|
*/
|
|
|
|
PyObject *module_html5lib$_trie$py;
|
|
PyDictObject *moduledict_html5lib$_trie$py;
|
|
|
|
/* The module constants used, if any. */
|
|
extern PyObject *const_str_plain_metaclass;
|
|
static PyObject *const_str_digest_4b9e4e3451d5bca7e46fc3936a2a37b8;
|
|
extern PyObject *const_str_plain___name__;
|
|
extern PyObject *const_tuple_str_plain_self_str_plain_key_tuple;
|
|
extern PyObject *const_tuple_str_plain___class___tuple;
|
|
extern PyObject *const_str_plain_sorted;
|
|
extern PyObject *const_str_angle_metaclass;
|
|
extern PyObject *const_str_plain_i;
|
|
extern PyObject *const_str_plain___file__;
|
|
extern PyObject *const_str_plain_prefix;
|
|
extern PyObject *const_str_plain_division;
|
|
extern PyObject *const_str_plain_None;
|
|
extern PyObject *const_str_digest_5439b2431ccfdb405e8922060b74a8bc;
|
|
extern PyObject *const_str_plain_start;
|
|
extern PyObject *const_str_plain_absolute_import;
|
|
extern PyObject *const_str_plain___doc__;
|
|
extern PyObject *const_str_plain___debug__;
|
|
extern PyObject *const_str_plain___orig_bases__;
|
|
extern PyObject *const_str_plain_data;
|
|
extern PyObject *const_str_plain___len__;
|
|
extern PyObject *const_str_plain_add;
|
|
extern PyObject *const_str_angle_genexpr;
|
|
extern PyObject *const_str_plain___qualname__;
|
|
extern PyObject *const_str_digest_b9c4baf879ebd882d40843df3a4dead7;
|
|
static PyObject *const_str_digest_6ee4e96f1d7889de38fe2e2aa6bc0af6;
|
|
extern PyObject *const_str_plain_six;
|
|
extern PyObject *const_tuple_str_plain_self_tuple;
|
|
static PyObject *const_str_plain__keys;
|
|
extern PyObject *const_str_plain_all;
|
|
extern PyObject *const_str_plain_keys;
|
|
extern PyObject *const_tuple_str_plain_text_type_tuple;
|
|
extern PyObject *const_tuple_empty;
|
|
extern PyObject *const_str_plain_ABCTrie;
|
|
extern PyObject *const_tuple_str_digest_b9c4baf879ebd882d40843df3a4dead7_str_plain_x_tuple;
|
|
static PyObject *const_str_plain_hi;
|
|
static PyObject *const_str_plain_lo;
|
|
extern PyObject *const_str_digest_d1f24012f0aabc86f8269032f7c40d2f;
|
|
extern PyObject *const_str_plain_False;
|
|
extern PyObject *const_str_plain___contains__;
|
|
extern PyObject *const_str_plain___getitem__;
|
|
extern PyObject *const_str_plain_bisect;
|
|
static PyObject *const_tuple_522e7f9ded5cb8fb0b6cfd2c48275471_tuple;
|
|
extern PyObject *const_int_0;
|
|
static PyObject *const_str_digest_5fbb485bbeeb787aab71a7500d755287;
|
|
extern PyObject *const_str_plain_bisect_left;
|
|
extern PyObject *const_str_digest_6b433739bc211790c1f500e9925557e8;
|
|
extern PyObject *const_str_digest_75fd71b1edada749c2ef7ac810062295;
|
|
extern PyObject *const_str_plain_x;
|
|
extern PyObject *const_str_digest_d01a0935c804902ddadea22ba70dfecd;
|
|
static PyObject *const_str_plain__cachepoints;
|
|
extern PyObject *const_str_plain_type;
|
|
extern PyObject *const_str_plain___cached__;
|
|
extern PyObject *const_str_plain___class__;
|
|
extern PyObject *const_tuple_none_tuple;
|
|
extern PyObject *const_str_plain_has_keys_with_prefix;
|
|
extern PyObject *const_str_plain___module__;
|
|
extern PyObject *const_str_plain_unicode_literals;
|
|
extern PyObject *const_str_plain_text_type;
|
|
extern PyObject *const_str_digest_ab8d0ea13d52c67a316bda945c09b7a5;
|
|
extern PyObject *const_int_pos_1;
|
|
extern PyObject *const_str_digest_7746eb05730aadf73907e7f4e9cf8ec4;
|
|
extern PyObject *const_str_digest_6f88c871026b8eb6886d09b9aec08ea2;
|
|
extern PyObject *const_str_plain_key;
|
|
static PyObject *const_str_digest_53d32d6ef3da269e5e2c883985f7daf5;
|
|
extern PyObject *const_tuple_str_plain_self_str_plain_data_tuple;
|
|
extern PyObject *const_str_plain___prepare__;
|
|
extern PyObject *const_str_plain___init__;
|
|
static PyObject *const_str_plain__cachestr;
|
|
extern PyObject *const_str_plain__base;
|
|
extern PyObject *const_str_plain_self;
|
|
extern PyObject *const_str_plain_Trie;
|
|
extern PyObject *const_tuple_str_plain_Trie_tuple;
|
|
extern PyObject *const_str_digest_85a92b83ed8fb1cf505e929eb211fd14;
|
|
static PyObject *const_tuple_95e36448b26f2a54d2e915aac3c1c6a2_tuple;
|
|
extern PyObject *const_str_plain_startswith;
|
|
extern PyObject *const_str_empty;
|
|
static PyObject *const_tuple_str_plain_bisect_left_tuple;
|
|
extern PyObject *const_str_plain___iter__;
|
|
extern PyObject *const_str_plain__data;
|
|
static PyObject *module_filename_obj;
|
|
|
|
static bool constants_created = false;
|
|
|
|
static void createModuleConstants( void )
|
|
{
|
|
const_str_digest_4b9e4e3451d5bca7e46fc3936a2a37b8 = UNSTREAM_STRING( &constant_bin[ 772891 ], 32, 0 );
|
|
const_str_digest_6ee4e96f1d7889de38fe2e2aa6bc0af6 = UNSTREAM_STRING( &constant_bin[ 772923 ], 26, 0 );
|
|
const_str_plain__keys = UNSTREAM_STRING( &constant_bin[ 35763 ], 5, 1 );
|
|
const_str_plain_hi = UNSTREAM_STRING( &constant_bin[ 1023 ], 2, 1 );
|
|
const_str_plain_lo = UNSTREAM_STRING( &constant_bin[ 1449 ], 2, 1 );
|
|
const_tuple_522e7f9ded5cb8fb0b6cfd2c48275471_tuple = PyTuple_New( 5 );
|
|
PyTuple_SET_ITEM( const_tuple_522e7f9ded5cb8fb0b6cfd2c48275471_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
|
|
PyTuple_SET_ITEM( const_tuple_522e7f9ded5cb8fb0b6cfd2c48275471_tuple, 1, const_str_plain_prefix ); Py_INCREF( const_str_plain_prefix );
|
|
PyTuple_SET_ITEM( const_tuple_522e7f9ded5cb8fb0b6cfd2c48275471_tuple, 2, const_str_plain_lo ); Py_INCREF( const_str_plain_lo );
|
|
PyTuple_SET_ITEM( const_tuple_522e7f9ded5cb8fb0b6cfd2c48275471_tuple, 3, const_str_plain_hi ); Py_INCREF( const_str_plain_hi );
|
|
PyTuple_SET_ITEM( const_tuple_522e7f9ded5cb8fb0b6cfd2c48275471_tuple, 4, const_str_plain_i ); Py_INCREF( const_str_plain_i );
|
|
const_str_digest_5fbb485bbeeb787aab71a7500d755287 = UNSTREAM_STRING( &constant_bin[ 772949 ], 53, 0 );
|
|
const_str_plain__cachepoints = UNSTREAM_STRING( &constant_bin[ 773002 ], 12, 1 );
|
|
const_str_digest_53d32d6ef3da269e5e2c883985f7daf5 = UNSTREAM_STRING( &constant_bin[ 772931 ], 17, 0 );
|
|
const_str_plain__cachestr = UNSTREAM_STRING( &constant_bin[ 773014 ], 9, 1 );
|
|
const_tuple_95e36448b26f2a54d2e915aac3c1c6a2_tuple = PyTuple_New( 7 );
|
|
PyTuple_SET_ITEM( const_tuple_95e36448b26f2a54d2e915aac3c1c6a2_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
|
|
PyTuple_SET_ITEM( const_tuple_95e36448b26f2a54d2e915aac3c1c6a2_tuple, 1, const_str_plain_prefix ); Py_INCREF( const_str_plain_prefix );
|
|
PyTuple_SET_ITEM( const_tuple_95e36448b26f2a54d2e915aac3c1c6a2_tuple, 2, const_str_plain_lo ); Py_INCREF( const_str_plain_lo );
|
|
PyTuple_SET_ITEM( const_tuple_95e36448b26f2a54d2e915aac3c1c6a2_tuple, 3, const_str_plain_hi ); Py_INCREF( const_str_plain_hi );
|
|
PyTuple_SET_ITEM( const_tuple_95e36448b26f2a54d2e915aac3c1c6a2_tuple, 4, const_str_plain_start ); Py_INCREF( const_str_plain_start );
|
|
PyTuple_SET_ITEM( const_tuple_95e36448b26f2a54d2e915aac3c1c6a2_tuple, 5, const_str_plain_i ); Py_INCREF( const_str_plain_i );
|
|
PyTuple_SET_ITEM( const_tuple_95e36448b26f2a54d2e915aac3c1c6a2_tuple, 6, const_str_plain_keys ); Py_INCREF( const_str_plain_keys );
|
|
const_tuple_str_plain_bisect_left_tuple = PyTuple_New( 1 );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_bisect_left_tuple, 0, const_str_plain_bisect_left ); Py_INCREF( const_str_plain_bisect_left );
|
|
|
|
constants_created = true;
|
|
}
|
|
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
void checkModuleConstants_html5lib$_trie$py( void )
|
|
{
|
|
// The module may not have been used at all.
|
|
if (constants_created == false) return;
|
|
|
|
|
|
}
|
|
#endif
|
|
|
|
// The module code objects.
|
|
static PyCodeObject *codeobj_b0f46b59c649f2dd9a53e885efed0e3b;
|
|
static PyCodeObject *codeobj_f3e4731e967f865ef87bc7724a928268;
|
|
static PyCodeObject *codeobj_c86e3def807a2a7af36407ba52af97e2;
|
|
static PyCodeObject *codeobj_d584860ffbd79a2c4c5f549ff0dbc533;
|
|
static PyCodeObject *codeobj_0c818cdfd4dc2d32c6635d8588241df6;
|
|
static PyCodeObject *codeobj_c300f6484ffb2019a82cb302e977e30b;
|
|
static PyCodeObject *codeobj_a728da736d8a1b2625d4f1df8e949a68;
|
|
static PyCodeObject *codeobj_7a004b51940daae8eecbe4b5539e42e9;
|
|
static PyCodeObject *codeobj_246369d1eaca78bdba0b5283892ac9e9;
|
|
static PyCodeObject *codeobj_5e985f539f05dc02ff810123ec988ce1;
|
|
|
|
static void createModuleCodeObjects(void)
|
|
{
|
|
module_filename_obj = const_str_digest_5fbb485bbeeb787aab71a7500d755287;
|
|
codeobj_b0f46b59c649f2dd9a53e885efed0e3b = MAKE_CODEOBJ( module_filename_obj, const_str_angle_genexpr, 11, const_tuple_str_digest_b9c4baf879ebd882d40843df3a4dead7_str_plain_x_tuple, 1, 0, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS );
|
|
codeobj_f3e4731e967f865ef87bc7724a928268 = MAKE_CODEOBJ( module_filename_obj, const_str_digest_6ee4e96f1d7889de38fe2e2aa6bc0af6, 1, const_tuple_empty, 0, 0, CO_NOFREE | CO_FUTURE_UNICODE_LITERALS );
|
|
codeobj_c86e3def807a2a7af36407ba52af97e2 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_Trie, 9, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE | CO_FUTURE_UNICODE_LITERALS );
|
|
codeobj_d584860ffbd79a2c4c5f549ff0dbc533 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___contains__, 19, const_tuple_str_plain_self_str_plain_key_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS );
|
|
codeobj_0c818cdfd4dc2d32c6635d8588241df6 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___getitem__, 28, const_tuple_str_plain_self_str_plain_key_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS );
|
|
codeobj_c300f6484ffb2019a82cb302e977e30b = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 10, const_tuple_str_plain_self_str_plain_data_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS );
|
|
codeobj_a728da736d8a1b2625d4f1df8e949a68 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___iter__, 25, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS );
|
|
codeobj_7a004b51940daae8eecbe4b5539e42e9 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___len__, 22, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS );
|
|
codeobj_246369d1eaca78bdba0b5283892ac9e9 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_has_keys_with_prefix, 54, const_tuple_522e7f9ded5cb8fb0b6cfd2c48275471_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS );
|
|
codeobj_5e985f539f05dc02ff810123ec988ce1 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_keys, 31, const_tuple_95e36448b26f2a54d2e915aac3c1c6a2_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS );
|
|
}
|
|
|
|
// The module function declarations.
|
|
static PyObject *html5lib$_trie$py$$$function_1___init__$$$genexpr_1_genexpr_maker( void );
|
|
|
|
|
|
NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_1__mro_entries_conversion( PyObject **python_pars );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_1___init__( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_2___contains__( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_3___len__( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_4___iter__( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_5___getitem__( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_6_keys( PyObject *defaults );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_7_has_keys_with_prefix( );
|
|
|
|
|
|
// The module function definitions.
|
|
static PyObject *impl_html5lib$_trie$py$$$function_1___init__( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
PyObject *par_self = python_pars[ 0 ];
|
|
PyObject *par_data = python_pars[ 1 ];
|
|
PyObject *tmp_genexpr_1__$0 = NULL;
|
|
struct Nuitka_FrameObject *frame_c300f6484ffb2019a82cb302e977e30b;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
int tmp_res;
|
|
bool tmp_result;
|
|
static struct Nuitka_FrameObject *cache_frame_c300f6484ffb2019a82cb302e977e30b = NULL;
|
|
PyObject *tmp_return_value = NULL;
|
|
PyObject *exception_keeper_type_1;
|
|
PyObject *exception_keeper_value_1;
|
|
PyTracebackObject *exception_keeper_tb_1;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
|
|
|
// Actual function code.
|
|
{
|
|
// Tried code:
|
|
MAKE_OR_REUSE_FRAME( cache_frame_c300f6484ffb2019a82cb302e977e30b, codeobj_c300f6484ffb2019a82cb302e977e30b, module_html5lib$_trie$py, sizeof(void *)+sizeof(void *) );
|
|
frame_c300f6484ffb2019a82cb302e977e30b = cache_frame_c300f6484ffb2019a82cb302e977e30b;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_c300f6484ffb2019a82cb302e977e30b );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_c300f6484ffb2019a82cb302e977e30b ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_operand_name_1;
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_args_element_name_1;
|
|
tmp_called_name_1 = LOOKUP_BUILTIN( const_str_plain_all );
|
|
assert( tmp_called_name_1 != NULL );
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
PyObject *tmp_iter_arg_1;
|
|
PyObject *tmp_called_instance_1;
|
|
CHECK_OBJECT( par_data );
|
|
tmp_called_instance_1 = par_data;
|
|
frame_c300f6484ffb2019a82cb302e977e30b->m_frame.f_lineno = 11;
|
|
tmp_iter_arg_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_keys );
|
|
if ( tmp_iter_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 11;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_assign_source_1 = MAKE_ITERATOR( tmp_iter_arg_1 );
|
|
Py_DECREF( tmp_iter_arg_1 );
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 11;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( tmp_genexpr_1__$0 == NULL );
|
|
tmp_genexpr_1__$0 = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
tmp_args_element_name_1 = html5lib$_trie$py$$$function_1___init__$$$genexpr_1_genexpr_maker();
|
|
|
|
((struct Nuitka_GeneratorObject *)tmp_args_element_name_1)->m_closure[0] = PyCell_NEW0( tmp_genexpr_1__$0 );
|
|
|
|
|
|
goto try_return_handler_2;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_1___init__ );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_2:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_genexpr_1__$0 );
|
|
Py_DECREF( tmp_genexpr_1__$0 );
|
|
tmp_genexpr_1__$0 = NULL;
|
|
|
|
}
|
|
{
|
|
goto outline_result_1;
|
|
}
|
|
// End of try:
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_genexpr_1__$0 );
|
|
Py_DECREF( tmp_genexpr_1__$0 );
|
|
tmp_genexpr_1__$0 = NULL;
|
|
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_1___init__ );
|
|
return NULL;
|
|
outline_result_1:;
|
|
frame_c300f6484ffb2019a82cb302e977e30b->m_frame.f_lineno = 11;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
|
tmp_operand_name_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_args_element_name_1 );
|
|
if ( tmp_operand_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 11;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 );
|
|
Py_DECREF( tmp_operand_name_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 11;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_1 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_1;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_1;
|
|
}
|
|
branch_yes_1:;
|
|
{
|
|
PyObject *tmp_raise_type_1;
|
|
PyObject *tmp_make_exception_arg_1;
|
|
tmp_make_exception_arg_1 = const_str_digest_d1f24012f0aabc86f8269032f7c40d2f;
|
|
frame_c300f6484ffb2019a82cb302e977e30b->m_frame.f_lineno = 12;
|
|
{
|
|
PyObject *call_args[] = { tmp_make_exception_arg_1 };
|
|
tmp_raise_type_1 = CALL_FUNCTION_WITH_ARGS1( PyExc_TypeError, call_args );
|
|
}
|
|
|
|
assert( !(tmp_raise_type_1 == NULL) );
|
|
exception_type = tmp_raise_type_1;
|
|
exception_lineno = 12;
|
|
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_1;
|
|
PyObject *tmp_assattr_target_1;
|
|
if ( par_data == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "data" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 14;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_name_1 = par_data;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 14;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_1 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__data, tmp_assattr_name_1 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 14;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_2;
|
|
PyObject *tmp_called_name_2;
|
|
PyObject *tmp_args_element_name_2;
|
|
PyObject *tmp_called_instance_2;
|
|
PyObject *tmp_assattr_target_2;
|
|
tmp_called_name_2 = LOOKUP_BUILTIN( const_str_plain_sorted );
|
|
assert( tmp_called_name_2 != NULL );
|
|
if ( par_data == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "data" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 15;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_called_instance_2 = par_data;
|
|
frame_c300f6484ffb2019a82cb302e977e30b->m_frame.f_lineno = 15;
|
|
tmp_args_element_name_2 = CALL_METHOD_NO_ARGS( tmp_called_instance_2, const_str_plain_keys );
|
|
if ( tmp_args_element_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 15;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
frame_c300f6484ffb2019a82cb302e977e30b->m_frame.f_lineno = 15;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_2 };
|
|
tmp_assattr_name_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_args_element_name_2 );
|
|
if ( tmp_assattr_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 15;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_assattr_name_2 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 15;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_2 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain__keys, tmp_assattr_name_2 );
|
|
Py_DECREF( tmp_assattr_name_2 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 15;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_3;
|
|
PyObject *tmp_assattr_target_3;
|
|
tmp_assattr_name_3 = const_str_empty;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 16;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_3 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain__cachestr, tmp_assattr_name_3 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 16;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_4;
|
|
PyObject *tmp_tuple_element_1;
|
|
PyObject *tmp_len_arg_1;
|
|
PyObject *tmp_assattr_target_4;
|
|
tmp_tuple_element_1 = const_int_0;
|
|
tmp_assattr_name_4 = PyTuple_New( 2 );
|
|
Py_INCREF( tmp_tuple_element_1 );
|
|
PyTuple_SET_ITEM( tmp_assattr_name_4, 0, tmp_tuple_element_1 );
|
|
if ( par_data == NULL )
|
|
{
|
|
Py_DECREF( tmp_assattr_name_4 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "data" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 17;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_len_arg_1 = par_data;
|
|
tmp_tuple_element_1 = BUILTIN_LEN( tmp_len_arg_1 );
|
|
if ( tmp_tuple_element_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_assattr_name_4 );
|
|
|
|
exception_lineno = 17;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
PyTuple_SET_ITEM( tmp_assattr_name_4, 1, tmp_tuple_element_1 );
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_assattr_name_4 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 17;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_4 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_4, const_str_plain__cachepoints, tmp_assattr_name_4 );
|
|
Py_DECREF( tmp_assattr_name_4 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 17;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_c300f6484ffb2019a82cb302e977e30b );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_c300f6484ffb2019a82cb302e977e30b );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_c300f6484ffb2019a82cb302e977e30b, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_c300f6484ffb2019a82cb302e977e30b->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_c300f6484ffb2019a82cb302e977e30b, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_c300f6484ffb2019a82cb302e977e30b,
|
|
type_description_1,
|
|
par_self,
|
|
par_data
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_c300f6484ffb2019a82cb302e977e30b == cache_frame_c300f6484ffb2019a82cb302e977e30b )
|
|
{
|
|
Py_DECREF( frame_c300f6484ffb2019a82cb302e977e30b );
|
|
}
|
|
cache_frame_c300f6484ffb2019a82cb302e977e30b = NULL;
|
|
|
|
assertFrameObject( frame_c300f6484ffb2019a82cb302e977e30b );
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto try_except_handler_1;
|
|
|
|
frame_no_exception_1:;
|
|
{
|
|
tmp_return_value = Py_None;
|
|
Py_INCREF( tmp_return_value );
|
|
goto try_return_handler_1;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_1___init__ );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_data );
|
|
par_data = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// 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;
|
|
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_data );
|
|
par_data = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_1;
|
|
exception_value = exception_keeper_value_1;
|
|
exception_tb = exception_keeper_tb_1;
|
|
exception_lineno = exception_keeper_lineno_1;
|
|
|
|
goto function_exception_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_1___init__ );
|
|
return NULL;
|
|
|
|
function_exception_exit:
|
|
assert( exception_type );
|
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
|
|
|
return NULL;
|
|
function_return_exit:
|
|
|
|
CHECK_OBJECT( tmp_return_value );
|
|
assert( had_error || !ERROR_OCCURRED() );
|
|
return tmp_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct html5lib$_trie$py$$$function_1___init__$$$genexpr_1_genexpr_locals {
|
|
PyObject *var_x;
|
|
PyObject *tmp_iter_value_0;
|
|
char const *type_description_1;
|
|
PyObject *exception_type;
|
|
PyObject *exception_value;
|
|
PyTracebackObject *exception_tb;
|
|
int exception_lineno;
|
|
int tmp_res;
|
|
char yield_tmps[1024];
|
|
PyObject *exception_keeper_type_1;
|
|
PyObject *exception_keeper_value_1;
|
|
PyTracebackObject *exception_keeper_tb_1;
|
|
int exception_keeper_lineno_1;
|
|
PyObject *exception_keeper_type_2;
|
|
PyObject *exception_keeper_value_2;
|
|
PyTracebackObject *exception_keeper_tb_2;
|
|
int exception_keeper_lineno_2;
|
|
};
|
|
|
|
static PyObject *html5lib$_trie$py$$$function_1___init__$$$genexpr_1_genexpr_context( struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value )
|
|
{
|
|
CHECK_OBJECT( (PyObject *)generator );
|
|
assert( Nuitka_Generator_Check( (PyObject *)generator ) );
|
|
|
|
// Heap access if used.
|
|
struct html5lib$_trie$py$$$function_1___init__$$$genexpr_1_genexpr_locals *generator_heap = (struct html5lib$_trie$py$$$function_1___init__$$$genexpr_1_genexpr_locals *)generator->m_heap_storage;
|
|
|
|
// Dispatch to yield based on return label index:
|
|
switch(generator->m_yield_return_index) {
|
|
case 1: goto yield_return_1;
|
|
}
|
|
|
|
// Local variable initialization
|
|
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
|
|
static struct Nuitka_FrameObject *cache_m_frame = NULL;
|
|
generator_heap->var_x = NULL;
|
|
generator_heap->tmp_iter_value_0 = NULL;
|
|
generator_heap->type_description_1 = NULL;
|
|
generator_heap->exception_type = NULL;
|
|
generator_heap->exception_value = NULL;
|
|
generator_heap->exception_tb = NULL;
|
|
generator_heap->exception_lineno = 0;
|
|
|
|
// Actual function code.
|
|
{
|
|
// Tried code:
|
|
MAKE_OR_REUSE_FRAME( cache_m_frame, codeobj_b0f46b59c649f2dd9a53e885efed0e3b, module_html5lib$_trie$py, sizeof(void *)+sizeof(void *) );
|
|
generator->m_frame = cache_m_frame;
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
Py_INCREF( generator->m_frame );
|
|
assert( Py_REFCNT( generator->m_frame ) == 2 ); // Frame stack
|
|
|
|
#if PYTHON_VERSION >= 340
|
|
generator->m_frame->m_frame.f_gen = (PyObject *)generator;
|
|
#endif
|
|
|
|
Py_CLEAR( generator->m_frame->m_frame.f_back );
|
|
|
|
generator->m_frame->m_frame.f_back = PyThreadState_GET()->frame;
|
|
Py_INCREF( generator->m_frame->m_frame.f_back );
|
|
|
|
PyThreadState_GET()->frame = &generator->m_frame->m_frame;
|
|
Py_INCREF( generator->m_frame );
|
|
|
|
Nuitka_Frame_MarkAsExecuting( generator->m_frame );
|
|
|
|
#if PYTHON_VERSION >= 300
|
|
// Accept currently existing exception as the one to publish again when we
|
|
// yield or yield from.
|
|
{
|
|
PyThreadState *thread_state = PyThreadState_GET();
|
|
|
|
#if PYTHON_VERSION < 370
|
|
generator->m_frame->m_frame.f_exc_type = EXC_TYPE( thread_state );
|
|
if ( generator->m_frame->m_frame.f_exc_type == Py_None ) generator->m_frame->m_frame.f_exc_type = NULL;
|
|
Py_XINCREF( generator->m_frame->m_frame.f_exc_type );
|
|
generator->m_frame->m_frame.f_exc_value = EXC_VALUE( thread_state );
|
|
Py_XINCREF( generator->m_frame->m_frame.f_exc_value );
|
|
generator->m_frame->m_frame.f_exc_traceback = EXC_TRACEBACK( thread_state );
|
|
Py_XINCREF( generator->m_frame->m_frame.f_exc_traceback );
|
|
#else
|
|
generator->m_exc_state.exc_type = EXC_TYPE( thread_state );
|
|
if ( generator->m_exc_state.exc_type == Py_None ) generator->m_exc_state.exc_type = NULL;
|
|
Py_XINCREF( generator->m_exc_state.exc_type );
|
|
generator->m_exc_state.exc_value = EXC_VALUE( thread_state );
|
|
Py_XINCREF( generator->m_exc_state.exc_value );
|
|
generator->m_exc_state.exc_traceback = EXC_TRACEBACK( thread_state );
|
|
Py_XINCREF( generator->m_exc_state.exc_traceback );
|
|
#endif
|
|
}
|
|
|
|
#endif
|
|
|
|
// Framed code:
|
|
{
|
|
// Tried code:
|
|
{
|
|
loop_start_1:;
|
|
{
|
|
PyObject *tmp_next_source_1;
|
|
PyObject *tmp_assign_source_1;
|
|
CHECK_OBJECT( PyCell_GET( generator->m_closure[0] ) );
|
|
tmp_next_source_1 = PyCell_GET( generator->m_closure[0] );
|
|
tmp_assign_source_1 = ITERATOR_NEXT( tmp_next_source_1 );
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() )
|
|
{
|
|
|
|
goto loop_end_1;
|
|
}
|
|
else
|
|
{
|
|
|
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
|
generator_heap->type_description_1 = "No";
|
|
generator_heap->exception_lineno = 11;
|
|
goto try_except_handler_2;
|
|
}
|
|
}
|
|
|
|
{
|
|
PyObject *old = generator_heap->tmp_iter_value_0;
|
|
generator_heap->tmp_iter_value_0 = tmp_assign_source_1;
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_2;
|
|
CHECK_OBJECT( generator_heap->tmp_iter_value_0 );
|
|
tmp_assign_source_2 = generator_heap->tmp_iter_value_0;
|
|
{
|
|
PyObject *old = generator_heap->var_x;
|
|
generator_heap->var_x = tmp_assign_source_2;
|
|
Py_INCREF( generator_heap->var_x );
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_expression_name_1;
|
|
PyObject *tmp_isinstance_inst_1;
|
|
PyObject *tmp_isinstance_cls_1;
|
|
PyObject *tmp_mvar_value_1;
|
|
CHECK_OBJECT( generator_heap->var_x );
|
|
tmp_isinstance_inst_1 = generator_heap->var_x;
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain_text_type );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_text_type );
|
|
}
|
|
|
|
if ( tmp_mvar_value_1 == NULL )
|
|
{
|
|
|
|
generator_heap->exception_type = PyExc_NameError;
|
|
Py_INCREF( generator_heap->exception_type );
|
|
generator_heap->exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "text_type" );
|
|
generator_heap->exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
|
CHAIN_EXCEPTION( generator_heap->exception_value );
|
|
|
|
generator_heap->exception_lineno = 11;
|
|
generator_heap->type_description_1 = "No";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_isinstance_cls_1 = tmp_mvar_value_1;
|
|
generator_heap->tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 );
|
|
if ( generator_heap->tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
|
|
|
|
|
generator_heap->exception_lineno = 11;
|
|
generator_heap->type_description_1 = "No";
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_expression_name_1 = ( generator_heap->tmp_res != 0 ) ? Py_True : Py_False;
|
|
Py_INCREF( tmp_expression_name_1 );
|
|
Nuitka_PreserveHeap( generator_heap->yield_tmps, &tmp_isinstance_inst_1, sizeof(PyObject *), &tmp_isinstance_cls_1, sizeof(PyObject *), &tmp_mvar_value_1, sizeof(PyObject *), NULL );
|
|
generator->m_yield_return_index = 1;
|
|
return tmp_expression_name_1;
|
|
yield_return_1:
|
|
Nuitka_RestoreHeap( generator_heap->yield_tmps, &tmp_isinstance_inst_1, sizeof(PyObject *), &tmp_isinstance_cls_1, sizeof(PyObject *), &tmp_mvar_value_1, sizeof(PyObject *), NULL );
|
|
if ( yield_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
|
|
|
|
|
generator_heap->exception_lineno = 11;
|
|
generator_heap->type_description_1 = "No";
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_unused = yield_return_value;
|
|
}
|
|
if ( CONSIDER_THREADING() == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
|
|
|
|
|
generator_heap->exception_lineno = 11;
|
|
generator_heap->type_description_1 = "No";
|
|
goto try_except_handler_2;
|
|
}
|
|
goto loop_start_1;
|
|
loop_end_1:;
|
|
}
|
|
goto try_end_1;
|
|
// Exception handler code:
|
|
try_except_handler_2:;
|
|
generator_heap->exception_keeper_type_1 = generator_heap->exception_type;
|
|
generator_heap->exception_keeper_value_1 = generator_heap->exception_value;
|
|
generator_heap->exception_keeper_tb_1 = generator_heap->exception_tb;
|
|
generator_heap->exception_keeper_lineno_1 = generator_heap->exception_lineno;
|
|
generator_heap->exception_type = NULL;
|
|
generator_heap->exception_value = NULL;
|
|
generator_heap->exception_tb = NULL;
|
|
generator_heap->exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( generator_heap->tmp_iter_value_0 );
|
|
generator_heap->tmp_iter_value_0 = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
generator_heap->exception_type = generator_heap->exception_keeper_type_1;
|
|
generator_heap->exception_value = generator_heap->exception_keeper_value_1;
|
|
generator_heap->exception_tb = generator_heap->exception_keeper_tb_1;
|
|
generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_1;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_1:;
|
|
}
|
|
|
|
Nuitka_Frame_MarkAsNotExecuting( generator->m_frame );
|
|
|
|
#if PYTHON_VERSION >= 370
|
|
Py_CLEAR( generator->m_exc_state.exc_type );
|
|
Py_CLEAR( generator->m_exc_state.exc_value );
|
|
Py_CLEAR( generator->m_exc_state.exc_traceback );
|
|
#elif PYTHON_VERSION >= 300
|
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_type );
|
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_value );
|
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_traceback );
|
|
#endif
|
|
|
|
// Allow re-use of the frame again.
|
|
Py_DECREF( generator->m_frame );
|
|
goto frame_no_exception_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
// If it's not an exit exception, consider and create a traceback for it.
|
|
if ( !EXCEPTION_MATCH_GENERATOR( generator_heap->exception_type ) )
|
|
{
|
|
if ( generator_heap->exception_tb == NULL )
|
|
{
|
|
generator_heap->exception_tb = MAKE_TRACEBACK( generator->m_frame, generator_heap->exception_lineno );
|
|
}
|
|
else if ( generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame )
|
|
{
|
|
generator_heap->exception_tb = ADD_TRACEBACK( generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno );
|
|
}
|
|
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)generator->m_frame,
|
|
generator_heap->type_description_1,
|
|
NULL,
|
|
generator_heap->var_x
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( generator->m_frame == cache_m_frame )
|
|
{
|
|
Py_DECREF( generator->m_frame );
|
|
}
|
|
cache_m_frame = NULL;
|
|
|
|
assertFrameObject( generator->m_frame );
|
|
}
|
|
|
|
#if PYTHON_VERSION >= 370
|
|
Py_CLEAR( generator->m_exc_state.exc_type );
|
|
Py_CLEAR( generator->m_exc_state.exc_value );
|
|
Py_CLEAR( generator->m_exc_state.exc_traceback );
|
|
#elif PYTHON_VERSION >= 300
|
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_type );
|
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_value );
|
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_traceback );
|
|
#endif
|
|
|
|
Py_DECREF( generator->m_frame );
|
|
|
|
// Return the error.
|
|
goto try_except_handler_1;
|
|
|
|
frame_no_exception_1:;
|
|
goto try_end_2;
|
|
// Exception handler code:
|
|
try_except_handler_1:;
|
|
generator_heap->exception_keeper_type_2 = generator_heap->exception_type;
|
|
generator_heap->exception_keeper_value_2 = generator_heap->exception_value;
|
|
generator_heap->exception_keeper_tb_2 = generator_heap->exception_tb;
|
|
generator_heap->exception_keeper_lineno_2 = generator_heap->exception_lineno;
|
|
generator_heap->exception_type = NULL;
|
|
generator_heap->exception_value = NULL;
|
|
generator_heap->exception_tb = NULL;
|
|
generator_heap->exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( generator_heap->var_x );
|
|
generator_heap->var_x = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
generator_heap->exception_type = generator_heap->exception_keeper_type_2;
|
|
generator_heap->exception_value = generator_heap->exception_keeper_value_2;
|
|
generator_heap->exception_tb = generator_heap->exception_keeper_tb_2;
|
|
generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_2;
|
|
|
|
goto function_exception_exit;
|
|
}
|
|
// End of try:
|
|
try_end_2:;
|
|
}
|
|
{
|
|
Py_XDECREF( generator_heap->tmp_iter_value_0 );
|
|
generator_heap->tmp_iter_value_0 = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( generator_heap->var_x );
|
|
generator_heap->var_x = NULL;
|
|
|
|
}
|
|
|
|
|
|
return NULL;
|
|
|
|
function_exception_exit:
|
|
assert( generator_heap->exception_type );
|
|
RESTORE_ERROR_OCCURRED( generator_heap->exception_type, generator_heap->exception_value, generator_heap->exception_tb );
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
static PyObject *html5lib$_trie$py$$$function_1___init__$$$genexpr_1_genexpr_maker( void )
|
|
{
|
|
return Nuitka_Generator_New(
|
|
html5lib$_trie$py$$$function_1___init__$$$genexpr_1_genexpr_context,
|
|
module_html5lib$_trie$py,
|
|
const_str_angle_genexpr,
|
|
#if PYTHON_VERSION >= 350
|
|
const_str_digest_4b9e4e3451d5bca7e46fc3936a2a37b8,
|
|
#endif
|
|
codeobj_b0f46b59c649f2dd9a53e885efed0e3b,
|
|
1,
|
|
sizeof(struct html5lib$_trie$py$$$function_1___init__$$$genexpr_1_genexpr_locals)
|
|
);
|
|
}
|
|
|
|
|
|
static PyObject *impl_html5lib$_trie$py$$$function_2___contains__( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
PyObject *par_self = python_pars[ 0 ];
|
|
PyObject *par_key = python_pars[ 1 ];
|
|
struct Nuitka_FrameObject *frame_d584860ffbd79a2c4c5f549ff0dbc533;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
PyObject *tmp_return_value = NULL;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
int tmp_res;
|
|
static struct Nuitka_FrameObject *cache_frame_d584860ffbd79a2c4c5f549ff0dbc533 = NULL;
|
|
PyObject *exception_keeper_type_1;
|
|
PyObject *exception_keeper_value_1;
|
|
PyTracebackObject *exception_keeper_tb_1;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
|
|
|
// Actual function code.
|
|
{
|
|
// Tried code:
|
|
MAKE_OR_REUSE_FRAME( cache_frame_d584860ffbd79a2c4c5f549ff0dbc533, codeobj_d584860ffbd79a2c4c5f549ff0dbc533, module_html5lib$_trie$py, sizeof(void *)+sizeof(void *) );
|
|
frame_d584860ffbd79a2c4c5f549ff0dbc533 = cache_frame_d584860ffbd79a2c4c5f549ff0dbc533;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_d584860ffbd79a2c4c5f549ff0dbc533 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_d584860ffbd79a2c4c5f549ff0dbc533 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_compexpr_left_1;
|
|
PyObject *tmp_compexpr_right_1;
|
|
PyObject *tmp_source_name_1;
|
|
CHECK_OBJECT( par_key );
|
|
tmp_compexpr_left_1 = par_key;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_compexpr_right_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__data );
|
|
if ( tmp_compexpr_right_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 20;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_res = PySequence_Contains( tmp_compexpr_right_1, tmp_compexpr_left_1 );
|
|
Py_DECREF( tmp_compexpr_right_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 20;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_return_value = ( tmp_res == 1 ) ? Py_True : Py_False;
|
|
Py_INCREF( tmp_return_value );
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_d584860ffbd79a2c4c5f549ff0dbc533 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_d584860ffbd79a2c4c5f549ff0dbc533 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_d584860ffbd79a2c4c5f549ff0dbc533 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_d584860ffbd79a2c4c5f549ff0dbc533, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_d584860ffbd79a2c4c5f549ff0dbc533->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_d584860ffbd79a2c4c5f549ff0dbc533, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_d584860ffbd79a2c4c5f549ff0dbc533,
|
|
type_description_1,
|
|
par_self,
|
|
par_key
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_d584860ffbd79a2c4c5f549ff0dbc533 == cache_frame_d584860ffbd79a2c4c5f549ff0dbc533 )
|
|
{
|
|
Py_DECREF( frame_d584860ffbd79a2c4c5f549ff0dbc533 );
|
|
}
|
|
cache_frame_d584860ffbd79a2c4c5f549ff0dbc533 = NULL;
|
|
|
|
assertFrameObject( frame_d584860ffbd79a2c4c5f549ff0dbc533 );
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto try_except_handler_1;
|
|
|
|
frame_no_exception_1:;
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_2___contains__ );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_key );
|
|
par_key = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// 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;
|
|
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_key );
|
|
par_key = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_1;
|
|
exception_value = exception_keeper_value_1;
|
|
exception_tb = exception_keeper_tb_1;
|
|
exception_lineno = exception_keeper_lineno_1;
|
|
|
|
goto function_exception_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_2___contains__ );
|
|
return NULL;
|
|
|
|
function_exception_exit:
|
|
assert( exception_type );
|
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
|
|
|
return NULL;
|
|
function_return_exit:
|
|
|
|
CHECK_OBJECT( tmp_return_value );
|
|
assert( had_error || !ERROR_OCCURRED() );
|
|
return tmp_return_value;
|
|
|
|
}
|
|
|
|
|
|
static PyObject *impl_html5lib$_trie$py$$$function_3___len__( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
PyObject *par_self = python_pars[ 0 ];
|
|
struct Nuitka_FrameObject *frame_7a004b51940daae8eecbe4b5539e42e9;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
PyObject *tmp_return_value = NULL;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
static struct Nuitka_FrameObject *cache_frame_7a004b51940daae8eecbe4b5539e42e9 = NULL;
|
|
PyObject *exception_keeper_type_1;
|
|
PyObject *exception_keeper_value_1;
|
|
PyTracebackObject *exception_keeper_tb_1;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
|
|
|
// Actual function code.
|
|
{
|
|
// Tried code:
|
|
MAKE_OR_REUSE_FRAME( cache_frame_7a004b51940daae8eecbe4b5539e42e9, codeobj_7a004b51940daae8eecbe4b5539e42e9, module_html5lib$_trie$py, sizeof(void *) );
|
|
frame_7a004b51940daae8eecbe4b5539e42e9 = cache_frame_7a004b51940daae8eecbe4b5539e42e9;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_7a004b51940daae8eecbe4b5539e42e9 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_7a004b51940daae8eecbe4b5539e42e9 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_len_arg_1;
|
|
PyObject *tmp_source_name_1;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_len_arg_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__data );
|
|
if ( tmp_len_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 23;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_return_value = BUILTIN_LEN( tmp_len_arg_1 );
|
|
Py_DECREF( tmp_len_arg_1 );
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 23;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_7a004b51940daae8eecbe4b5539e42e9 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_7a004b51940daae8eecbe4b5539e42e9 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_7a004b51940daae8eecbe4b5539e42e9 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_7a004b51940daae8eecbe4b5539e42e9, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_7a004b51940daae8eecbe4b5539e42e9->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_7a004b51940daae8eecbe4b5539e42e9, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_7a004b51940daae8eecbe4b5539e42e9,
|
|
type_description_1,
|
|
par_self
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_7a004b51940daae8eecbe4b5539e42e9 == cache_frame_7a004b51940daae8eecbe4b5539e42e9 )
|
|
{
|
|
Py_DECREF( frame_7a004b51940daae8eecbe4b5539e42e9 );
|
|
}
|
|
cache_frame_7a004b51940daae8eecbe4b5539e42e9 = NULL;
|
|
|
|
assertFrameObject( frame_7a004b51940daae8eecbe4b5539e42e9 );
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto try_except_handler_1;
|
|
|
|
frame_no_exception_1:;
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_3___len__ );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// 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;
|
|
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_1;
|
|
exception_value = exception_keeper_value_1;
|
|
exception_tb = exception_keeper_tb_1;
|
|
exception_lineno = exception_keeper_lineno_1;
|
|
|
|
goto function_exception_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_3___len__ );
|
|
return NULL;
|
|
|
|
function_exception_exit:
|
|
assert( exception_type );
|
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
|
|
|
return NULL;
|
|
function_return_exit:
|
|
|
|
CHECK_OBJECT( tmp_return_value );
|
|
assert( had_error || !ERROR_OCCURRED() );
|
|
return tmp_return_value;
|
|
|
|
}
|
|
|
|
|
|
static PyObject *impl_html5lib$_trie$py$$$function_4___iter__( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
PyObject *par_self = python_pars[ 0 ];
|
|
struct Nuitka_FrameObject *frame_a728da736d8a1b2625d4f1df8e949a68;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
PyObject *tmp_return_value = NULL;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
static struct Nuitka_FrameObject *cache_frame_a728da736d8a1b2625d4f1df8e949a68 = NULL;
|
|
PyObject *exception_keeper_type_1;
|
|
PyObject *exception_keeper_value_1;
|
|
PyTracebackObject *exception_keeper_tb_1;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
|
|
|
// Actual function code.
|
|
{
|
|
// Tried code:
|
|
MAKE_OR_REUSE_FRAME( cache_frame_a728da736d8a1b2625d4f1df8e949a68, codeobj_a728da736d8a1b2625d4f1df8e949a68, module_html5lib$_trie$py, sizeof(void *) );
|
|
frame_a728da736d8a1b2625d4f1df8e949a68 = cache_frame_a728da736d8a1b2625d4f1df8e949a68;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_a728da736d8a1b2625d4f1df8e949a68 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_a728da736d8a1b2625d4f1df8e949a68 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_iter_arg_1;
|
|
PyObject *tmp_source_name_1;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_iter_arg_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__data );
|
|
if ( tmp_iter_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 26;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_return_value = MAKE_ITERATOR( tmp_iter_arg_1 );
|
|
Py_DECREF( tmp_iter_arg_1 );
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 26;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_a728da736d8a1b2625d4f1df8e949a68 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_a728da736d8a1b2625d4f1df8e949a68 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_a728da736d8a1b2625d4f1df8e949a68 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_a728da736d8a1b2625d4f1df8e949a68, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_a728da736d8a1b2625d4f1df8e949a68->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_a728da736d8a1b2625d4f1df8e949a68, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_a728da736d8a1b2625d4f1df8e949a68,
|
|
type_description_1,
|
|
par_self
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_a728da736d8a1b2625d4f1df8e949a68 == cache_frame_a728da736d8a1b2625d4f1df8e949a68 )
|
|
{
|
|
Py_DECREF( frame_a728da736d8a1b2625d4f1df8e949a68 );
|
|
}
|
|
cache_frame_a728da736d8a1b2625d4f1df8e949a68 = NULL;
|
|
|
|
assertFrameObject( frame_a728da736d8a1b2625d4f1df8e949a68 );
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto try_except_handler_1;
|
|
|
|
frame_no_exception_1:;
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_4___iter__ );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// 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;
|
|
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_1;
|
|
exception_value = exception_keeper_value_1;
|
|
exception_tb = exception_keeper_tb_1;
|
|
exception_lineno = exception_keeper_lineno_1;
|
|
|
|
goto function_exception_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_4___iter__ );
|
|
return NULL;
|
|
|
|
function_exception_exit:
|
|
assert( exception_type );
|
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
|
|
|
return NULL;
|
|
function_return_exit:
|
|
|
|
CHECK_OBJECT( tmp_return_value );
|
|
assert( had_error || !ERROR_OCCURRED() );
|
|
return tmp_return_value;
|
|
|
|
}
|
|
|
|
|
|
static PyObject *impl_html5lib$_trie$py$$$function_5___getitem__( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
PyObject *par_self = python_pars[ 0 ];
|
|
PyObject *par_key = python_pars[ 1 ];
|
|
struct Nuitka_FrameObject *frame_0c818cdfd4dc2d32c6635d8588241df6;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
PyObject *tmp_return_value = NULL;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
static struct Nuitka_FrameObject *cache_frame_0c818cdfd4dc2d32c6635d8588241df6 = NULL;
|
|
PyObject *exception_keeper_type_1;
|
|
PyObject *exception_keeper_value_1;
|
|
PyTracebackObject *exception_keeper_tb_1;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
|
|
|
// Actual function code.
|
|
{
|
|
// Tried code:
|
|
MAKE_OR_REUSE_FRAME( cache_frame_0c818cdfd4dc2d32c6635d8588241df6, codeobj_0c818cdfd4dc2d32c6635d8588241df6, module_html5lib$_trie$py, sizeof(void *)+sizeof(void *) );
|
|
frame_0c818cdfd4dc2d32c6635d8588241df6 = cache_frame_0c818cdfd4dc2d32c6635d8588241df6;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_0c818cdfd4dc2d32c6635d8588241df6 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_0c818cdfd4dc2d32c6635d8588241df6 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_subscribed_name_1;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_subscript_name_1;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_subscribed_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__data );
|
|
if ( tmp_subscribed_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 29;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_key == NULL )
|
|
{
|
|
Py_DECREF( tmp_subscribed_name_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "key" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 29;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_subscript_name_1 = par_key;
|
|
tmp_return_value = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 );
|
|
Py_DECREF( tmp_subscribed_name_1 );
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 29;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_0c818cdfd4dc2d32c6635d8588241df6 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_0c818cdfd4dc2d32c6635d8588241df6 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_0c818cdfd4dc2d32c6635d8588241df6 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_0c818cdfd4dc2d32c6635d8588241df6, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_0c818cdfd4dc2d32c6635d8588241df6->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_0c818cdfd4dc2d32c6635d8588241df6, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_0c818cdfd4dc2d32c6635d8588241df6,
|
|
type_description_1,
|
|
par_self,
|
|
par_key
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_0c818cdfd4dc2d32c6635d8588241df6 == cache_frame_0c818cdfd4dc2d32c6635d8588241df6 )
|
|
{
|
|
Py_DECREF( frame_0c818cdfd4dc2d32c6635d8588241df6 );
|
|
}
|
|
cache_frame_0c818cdfd4dc2d32c6635d8588241df6 = NULL;
|
|
|
|
assertFrameObject( frame_0c818cdfd4dc2d32c6635d8588241df6 );
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto try_except_handler_1;
|
|
|
|
frame_no_exception_1:;
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_5___getitem__ );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_key );
|
|
par_key = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// 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;
|
|
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_key );
|
|
par_key = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_1;
|
|
exception_value = exception_keeper_value_1;
|
|
exception_tb = exception_keeper_tb_1;
|
|
exception_lineno = exception_keeper_lineno_1;
|
|
|
|
goto function_exception_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_5___getitem__ );
|
|
return NULL;
|
|
|
|
function_exception_exit:
|
|
assert( exception_type );
|
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
|
|
|
return NULL;
|
|
function_return_exit:
|
|
|
|
CHECK_OBJECT( tmp_return_value );
|
|
assert( had_error || !ERROR_OCCURRED() );
|
|
return tmp_return_value;
|
|
|
|
}
|
|
|
|
|
|
static PyObject *impl_html5lib$_trie$py$$$function_6_keys( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
PyObject *par_self = python_pars[ 0 ];
|
|
PyObject *par_prefix = python_pars[ 1 ];
|
|
PyObject *var_lo = NULL;
|
|
PyObject *var_hi = NULL;
|
|
PyObject *var_start = NULL;
|
|
PyObject *var_i = NULL;
|
|
PyObject *var_keys = NULL;
|
|
PyObject *tmp_assign_unpack_1__assign_source = NULL;
|
|
PyObject *tmp_assign_unpack_2__assign_source = NULL;
|
|
PyObject *tmp_tuple_unpack_1__element_1 = NULL;
|
|
PyObject *tmp_tuple_unpack_1__element_2 = NULL;
|
|
PyObject *tmp_tuple_unpack_1__source_iter = NULL;
|
|
struct Nuitka_FrameObject *frame_5e985f539f05dc02ff810123ec988ce1;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
int tmp_res;
|
|
PyObject *tmp_return_value = NULL;
|
|
PyObject *tmp_iterator_attempt;
|
|
PyObject *exception_keeper_type_1;
|
|
PyObject *exception_keeper_value_1;
|
|
PyTracebackObject *exception_keeper_tb_1;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
|
PyObject *exception_keeper_type_2;
|
|
PyObject *exception_keeper_value_2;
|
|
PyTracebackObject *exception_keeper_tb_2;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
|
|
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
|
|
bool tmp_result;
|
|
static struct Nuitka_FrameObject *cache_frame_5e985f539f05dc02ff810123ec988ce1 = NULL;
|
|
PyObject *exception_keeper_type_3;
|
|
PyObject *exception_keeper_value_3;
|
|
PyTracebackObject *exception_keeper_tb_3;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
|
|
|
|
// Actual function code.
|
|
{
|
|
// Tried code:
|
|
MAKE_OR_REUSE_FRAME( cache_frame_5e985f539f05dc02ff810123ec988ce1, codeobj_5e985f539f05dc02ff810123ec988ce1, module_html5lib$_trie$py, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_5e985f539f05dc02ff810123ec988ce1 = cache_frame_5e985f539f05dc02ff810123ec988ce1;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_5e985f539f05dc02ff810123ec988ce1 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_5e985f539f05dc02ff810123ec988ce1 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
int tmp_or_left_truth_1;
|
|
nuitka_bool tmp_or_left_value_1;
|
|
nuitka_bool tmp_or_right_value_1;
|
|
PyObject *tmp_compexpr_left_1;
|
|
PyObject *tmp_compexpr_right_1;
|
|
int tmp_or_left_truth_2;
|
|
nuitka_bool tmp_or_left_value_2;
|
|
nuitka_bool tmp_or_right_value_2;
|
|
PyObject *tmp_compexpr_left_2;
|
|
PyObject *tmp_compexpr_right_2;
|
|
PyObject *tmp_operand_name_1;
|
|
PyObject *tmp_source_name_1;
|
|
CHECK_OBJECT( par_prefix );
|
|
tmp_compexpr_left_1 = par_prefix;
|
|
tmp_compexpr_right_1 = Py_None;
|
|
tmp_or_left_value_1 = ( tmp_compexpr_left_1 == tmp_compexpr_right_1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0;
|
|
if ( tmp_or_left_truth_1 == 1 )
|
|
{
|
|
goto or_left_1;
|
|
}
|
|
else
|
|
{
|
|
goto or_right_1;
|
|
}
|
|
or_right_1:;
|
|
if ( par_prefix == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "prefix" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 32;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_compexpr_left_2 = par_prefix;
|
|
tmp_compexpr_right_2 = const_str_empty;
|
|
tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_2, tmp_compexpr_right_2 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 32;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_or_left_value_2 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
tmp_or_left_truth_2 = tmp_or_left_value_2 == NUITKA_BOOL_TRUE ? 1 : 0;
|
|
if ( tmp_or_left_truth_2 == 1 )
|
|
{
|
|
goto or_left_2;
|
|
}
|
|
else
|
|
{
|
|
goto or_right_2;
|
|
}
|
|
or_right_2:;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 32;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_1 = par_self;
|
|
tmp_operand_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__keys );
|
|
if ( tmp_operand_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 32;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 );
|
|
Py_DECREF( tmp_operand_name_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 32;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_or_right_value_2 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
tmp_or_right_value_1 = tmp_or_right_value_2;
|
|
goto or_end_2;
|
|
or_left_2:;
|
|
tmp_or_right_value_1 = tmp_or_left_value_2;
|
|
or_end_2:;
|
|
tmp_condition_result_1 = tmp_or_right_value_1;
|
|
goto or_end_1;
|
|
or_left_1:;
|
|
tmp_condition_result_1 = tmp_or_left_value_1;
|
|
or_end_1:;
|
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_1;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_1;
|
|
}
|
|
branch_yes_1:;
|
|
{
|
|
PyObject *tmp_set_arg_1;
|
|
PyObject *tmp_source_name_2;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 33;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_2 = par_self;
|
|
tmp_set_arg_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain__keys );
|
|
if ( tmp_set_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 33;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_return_value = PySet_New( tmp_set_arg_1 );
|
|
Py_DECREF( tmp_set_arg_1 );
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 33;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_2;
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_source_name_3;
|
|
PyObject *tmp_call_result_1;
|
|
PyObject *tmp_args_element_name_1;
|
|
PyObject *tmp_source_name_4;
|
|
int tmp_truth_name_1;
|
|
if ( par_prefix == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "prefix" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 35;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_3 = par_prefix;
|
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_startswith );
|
|
if ( tmp_called_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 35;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_called_name_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 35;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_4 = par_self;
|
|
tmp_args_element_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain__cachestr );
|
|
if ( tmp_args_element_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_called_name_1 );
|
|
|
|
exception_lineno = 35;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
frame_5e985f539f05dc02ff810123ec988ce1->m_frame.f_lineno = 35;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
|
tmp_call_result_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_called_name_1 );
|
|
Py_DECREF( tmp_args_element_name_1 );
|
|
if ( tmp_call_result_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 35;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_call_result_1 );
|
|
if ( tmp_truth_name_1 == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_call_result_1 );
|
|
|
|
exception_lineno = 35;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_2 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
Py_DECREF( tmp_call_result_1 );
|
|
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_2;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_2;
|
|
}
|
|
branch_yes_2:;
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
PyObject *tmp_iter_arg_1;
|
|
PyObject *tmp_source_name_5;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 36;
|
|
type_description_1 = "ooooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_source_name_5 = par_self;
|
|
tmp_iter_arg_1 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain__cachepoints );
|
|
if ( tmp_iter_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 36;
|
|
type_description_1 = "ooooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_assign_source_1 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_1 );
|
|
Py_DECREF( tmp_iter_arg_1 );
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 36;
|
|
type_description_1 = "ooooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
assert( tmp_tuple_unpack_1__source_iter == NULL );
|
|
tmp_tuple_unpack_1__source_iter = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_2;
|
|
PyObject *tmp_unpack_1;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
|
|
tmp_unpack_1 = tmp_tuple_unpack_1__source_iter;
|
|
tmp_assign_source_2 = UNPACK_NEXT( tmp_unpack_1, 0, 2 );
|
|
if ( tmp_assign_source_2 == NULL )
|
|
{
|
|
if ( !ERROR_OCCURRED() )
|
|
{
|
|
exception_type = PyExc_StopIteration;
|
|
Py_INCREF( exception_type );
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
}
|
|
else
|
|
{
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
}
|
|
|
|
|
|
type_description_1 = "ooooooo";
|
|
exception_lineno = 36;
|
|
goto try_except_handler_3;
|
|
}
|
|
assert( tmp_tuple_unpack_1__element_1 == NULL );
|
|
tmp_tuple_unpack_1__element_1 = tmp_assign_source_2;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_3;
|
|
PyObject *tmp_unpack_2;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
|
|
tmp_unpack_2 = tmp_tuple_unpack_1__source_iter;
|
|
tmp_assign_source_3 = UNPACK_NEXT( tmp_unpack_2, 1, 2 );
|
|
if ( tmp_assign_source_3 == NULL )
|
|
{
|
|
if ( !ERROR_OCCURRED() )
|
|
{
|
|
exception_type = PyExc_StopIteration;
|
|
Py_INCREF( exception_type );
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
}
|
|
else
|
|
{
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
}
|
|
|
|
|
|
type_description_1 = "ooooooo";
|
|
exception_lineno = 36;
|
|
goto try_except_handler_3;
|
|
}
|
|
assert( tmp_tuple_unpack_1__element_2 == NULL );
|
|
tmp_tuple_unpack_1__element_2 = tmp_assign_source_3;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_iterator_name_1;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
|
|
tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter;
|
|
// Check if iterator has left-over elements.
|
|
CHECK_OBJECT( tmp_iterator_name_1 ); assert( HAS_ITERNEXT( tmp_iterator_name_1 ) );
|
|
|
|
tmp_iterator_attempt = (*Py_TYPE( tmp_iterator_name_1 )->tp_iternext)( tmp_iterator_name_1 );
|
|
|
|
if (likely( tmp_iterator_attempt == NULL ))
|
|
{
|
|
PyObject *error = GET_ERROR_OCCURRED();
|
|
|
|
if ( error != NULL )
|
|
{
|
|
if ( EXCEPTION_MATCH_BOOL_SINGLE( error, PyExc_StopIteration ))
|
|
{
|
|
CLEAR_ERROR_OCCURRED();
|
|
}
|
|
else
|
|
{
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
type_description_1 = "ooooooo";
|
|
exception_lineno = 36;
|
|
goto try_except_handler_3;
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
Py_DECREF( tmp_iterator_attempt );
|
|
|
|
// TODO: Could avoid PyErr_Format.
|
|
#if PYTHON_VERSION < 300
|
|
PyErr_Format( PyExc_ValueError, "too many values to unpack" );
|
|
#else
|
|
PyErr_Format( PyExc_ValueError, "too many values to unpack (expected 2)" );
|
|
#endif
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
type_description_1 = "ooooooo";
|
|
exception_lineno = 36;
|
|
goto try_except_handler_3;
|
|
}
|
|
}
|
|
goto try_end_1;
|
|
// Exception handler code:
|
|
try_except_handler_3:;
|
|
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;
|
|
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter );
|
|
Py_DECREF( tmp_tuple_unpack_1__source_iter );
|
|
tmp_tuple_unpack_1__source_iter = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_1;
|
|
exception_value = exception_keeper_value_1;
|
|
exception_tb = exception_keeper_tb_1;
|
|
exception_lineno = exception_keeper_lineno_1;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
// End of try:
|
|
try_end_1:;
|
|
}
|
|
goto try_end_2;
|
|
// Exception handler code:
|
|
try_except_handler_2:;
|
|
exception_keeper_type_2 = exception_type;
|
|
exception_keeper_value_2 = exception_value;
|
|
exception_keeper_tb_2 = exception_tb;
|
|
exception_keeper_lineno_2 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( tmp_tuple_unpack_1__element_1 );
|
|
tmp_tuple_unpack_1__element_1 = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_tuple_unpack_1__element_2 );
|
|
tmp_tuple_unpack_1__element_2 = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_2;
|
|
exception_value = exception_keeper_value_2;
|
|
exception_tb = exception_keeper_tb_2;
|
|
exception_lineno = exception_keeper_lineno_2;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_2:;
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter );
|
|
Py_DECREF( tmp_tuple_unpack_1__source_iter );
|
|
tmp_tuple_unpack_1__source_iter = NULL;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_4;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__element_1 );
|
|
tmp_assign_source_4 = tmp_tuple_unpack_1__element_1;
|
|
assert( var_lo == NULL );
|
|
Py_INCREF( tmp_assign_source_4 );
|
|
var_lo = tmp_assign_source_4;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_tuple_unpack_1__element_1 );
|
|
tmp_tuple_unpack_1__element_1 = NULL;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_5;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__element_2 );
|
|
tmp_assign_source_5 = tmp_tuple_unpack_1__element_2;
|
|
assert( var_hi == NULL );
|
|
Py_INCREF( tmp_assign_source_5 );
|
|
var_hi = tmp_assign_source_5;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_tuple_unpack_1__element_2 );
|
|
tmp_tuple_unpack_1__element_2 = NULL;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_6;
|
|
PyObject *tmp_called_name_2;
|
|
PyObject *tmp_mvar_value_1;
|
|
PyObject *tmp_args_element_name_2;
|
|
PyObject *tmp_source_name_6;
|
|
PyObject *tmp_args_element_name_3;
|
|
PyObject *tmp_args_element_name_4;
|
|
PyObject *tmp_args_element_name_5;
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain_bisect_left );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_bisect_left );
|
|
}
|
|
|
|
if ( tmp_mvar_value_1 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "bisect_left" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 37;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_called_name_2 = tmp_mvar_value_1;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 37;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_6 = par_self;
|
|
tmp_args_element_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain__keys );
|
|
if ( tmp_args_element_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 37;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_prefix == NULL )
|
|
{
|
|
Py_DECREF( tmp_args_element_name_2 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "prefix" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 37;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_3 = par_prefix;
|
|
if ( var_lo == NULL )
|
|
{
|
|
Py_DECREF( tmp_args_element_name_2 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "lo" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 37;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_4 = var_lo;
|
|
if ( var_hi == NULL )
|
|
{
|
|
Py_DECREF( tmp_args_element_name_2 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "hi" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 37;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_5 = var_hi;
|
|
frame_5e985f539f05dc02ff810123ec988ce1->m_frame.f_lineno = 37;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5 };
|
|
tmp_assign_source_6 = CALL_FUNCTION_WITH_ARGS4( tmp_called_name_2, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_args_element_name_2 );
|
|
if ( tmp_assign_source_6 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 37;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( tmp_assign_unpack_1__assign_source == NULL );
|
|
tmp_assign_unpack_1__assign_source = tmp_assign_source_6;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_7;
|
|
CHECK_OBJECT( tmp_assign_unpack_1__assign_source );
|
|
tmp_assign_source_7 = tmp_assign_unpack_1__assign_source;
|
|
assert( var_start == NULL );
|
|
Py_INCREF( tmp_assign_source_7 );
|
|
var_start = tmp_assign_source_7;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_8;
|
|
CHECK_OBJECT( tmp_assign_unpack_1__assign_source );
|
|
tmp_assign_source_8 = tmp_assign_unpack_1__assign_source;
|
|
assert( var_i == NULL );
|
|
Py_INCREF( tmp_assign_source_8 );
|
|
var_i = tmp_assign_source_8;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_assign_unpack_1__assign_source );
|
|
Py_DECREF( tmp_assign_unpack_1__assign_source );
|
|
tmp_assign_unpack_1__assign_source = NULL;
|
|
|
|
}
|
|
goto branch_end_2;
|
|
branch_no_2:;
|
|
{
|
|
PyObject *tmp_assign_source_9;
|
|
PyObject *tmp_called_name_3;
|
|
PyObject *tmp_mvar_value_2;
|
|
PyObject *tmp_args_element_name_6;
|
|
PyObject *tmp_source_name_7;
|
|
PyObject *tmp_args_element_name_7;
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain_bisect_left );
|
|
|
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
|
{
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_bisect_left );
|
|
}
|
|
|
|
if ( tmp_mvar_value_2 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "bisect_left" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 39;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_called_name_3 = tmp_mvar_value_2;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 39;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_7 = par_self;
|
|
tmp_args_element_name_6 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain__keys );
|
|
if ( tmp_args_element_name_6 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 39;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_prefix == NULL )
|
|
{
|
|
Py_DECREF( tmp_args_element_name_6 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "prefix" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 39;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_7 = par_prefix;
|
|
frame_5e985f539f05dc02ff810123ec988ce1->m_frame.f_lineno = 39;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_6, tmp_args_element_name_7 };
|
|
tmp_assign_source_9 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_3, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_args_element_name_6 );
|
|
if ( tmp_assign_source_9 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 39;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( tmp_assign_unpack_2__assign_source == NULL );
|
|
tmp_assign_unpack_2__assign_source = tmp_assign_source_9;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_10;
|
|
CHECK_OBJECT( tmp_assign_unpack_2__assign_source );
|
|
tmp_assign_source_10 = tmp_assign_unpack_2__assign_source;
|
|
assert( var_start == NULL );
|
|
Py_INCREF( tmp_assign_source_10 );
|
|
var_start = tmp_assign_source_10;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_11;
|
|
CHECK_OBJECT( tmp_assign_unpack_2__assign_source );
|
|
tmp_assign_source_11 = tmp_assign_unpack_2__assign_source;
|
|
assert( var_i == NULL );
|
|
Py_INCREF( tmp_assign_source_11 );
|
|
var_i = tmp_assign_source_11;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_assign_unpack_2__assign_source );
|
|
Py_DECREF( tmp_assign_unpack_2__assign_source );
|
|
tmp_assign_unpack_2__assign_source = NULL;
|
|
|
|
}
|
|
branch_end_2:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_12;
|
|
tmp_assign_source_12 = PySet_New( NULL );
|
|
assert( var_keys == NULL );
|
|
var_keys = tmp_assign_source_12;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_3;
|
|
PyObject *tmp_compexpr_left_3;
|
|
PyObject *tmp_compexpr_right_3;
|
|
PyObject *tmp_len_arg_1;
|
|
PyObject *tmp_source_name_8;
|
|
if ( var_start == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "start" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 42;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_compexpr_left_3 = var_start;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 42;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_8 = par_self;
|
|
tmp_len_arg_1 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain__keys );
|
|
if ( tmp_len_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 42;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_compexpr_right_3 = BUILTIN_LEN( tmp_len_arg_1 );
|
|
Py_DECREF( tmp_len_arg_1 );
|
|
if ( tmp_compexpr_right_3 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 42;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_3, tmp_compexpr_right_3 );
|
|
Py_DECREF( tmp_compexpr_right_3 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 42;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_3;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_3;
|
|
}
|
|
branch_yes_3:;
|
|
{
|
|
if ( var_keys == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "keys" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 43;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_return_value = var_keys;
|
|
Py_INCREF( tmp_return_value );
|
|
goto frame_return_exit_1;
|
|
}
|
|
branch_no_3:;
|
|
}
|
|
{
|
|
loop_start_1:;
|
|
{
|
|
nuitka_bool tmp_condition_result_4;
|
|
PyObject *tmp_operand_name_2;
|
|
PyObject *tmp_called_name_4;
|
|
PyObject *tmp_source_name_9;
|
|
PyObject *tmp_subscribed_name_1;
|
|
PyObject *tmp_source_name_10;
|
|
PyObject *tmp_subscript_name_1;
|
|
PyObject *tmp_args_element_name_8;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 45;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_10 = par_self;
|
|
tmp_subscribed_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_10, const_str_plain__keys );
|
|
if ( tmp_subscribed_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 45;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( var_i == NULL )
|
|
{
|
|
Py_DECREF( tmp_subscribed_name_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "i" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 45;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_subscript_name_1 = var_i;
|
|
tmp_source_name_9 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 );
|
|
Py_DECREF( tmp_subscribed_name_1 );
|
|
if ( tmp_source_name_9 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 45;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_called_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain_startswith );
|
|
Py_DECREF( tmp_source_name_9 );
|
|
if ( tmp_called_name_4 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 45;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_prefix == NULL )
|
|
{
|
|
Py_DECREF( tmp_called_name_4 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "prefix" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 45;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_8 = par_prefix;
|
|
frame_5e985f539f05dc02ff810123ec988ce1->m_frame.f_lineno = 45;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_8 };
|
|
tmp_operand_name_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_4, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_called_name_4 );
|
|
if ( tmp_operand_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 45;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_res = CHECK_IF_TRUE( tmp_operand_name_2 );
|
|
Py_DECREF( tmp_operand_name_2 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 45;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_4 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_4;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_4;
|
|
}
|
|
branch_yes_4:;
|
|
{
|
|
goto loop_end_1;
|
|
}
|
|
branch_no_4:;
|
|
}
|
|
{
|
|
PyObject *tmp_called_name_5;
|
|
PyObject *tmp_source_name_11;
|
|
PyObject *tmp_args_element_name_9;
|
|
PyObject *tmp_subscribed_name_2;
|
|
PyObject *tmp_source_name_12;
|
|
PyObject *tmp_subscript_name_2;
|
|
if ( var_keys == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "keys" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 46;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_11 = var_keys;
|
|
tmp_called_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_11, const_str_plain_add );
|
|
if ( tmp_called_name_5 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 46;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_called_name_5 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 46;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_12 = par_self;
|
|
tmp_subscribed_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_12, const_str_plain__keys );
|
|
if ( tmp_subscribed_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_called_name_5 );
|
|
|
|
exception_lineno = 46;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( var_i == NULL )
|
|
{
|
|
Py_DECREF( tmp_called_name_5 );
|
|
Py_DECREF( tmp_subscribed_name_2 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "i" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 46;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_subscript_name_2 = var_i;
|
|
tmp_args_element_name_9 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_2, tmp_subscript_name_2 );
|
|
Py_DECREF( tmp_subscribed_name_2 );
|
|
if ( tmp_args_element_name_9 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_called_name_5 );
|
|
|
|
exception_lineno = 46;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
frame_5e985f539f05dc02ff810123ec988ce1->m_frame.f_lineno = 46;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_9 };
|
|
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_5, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_called_name_5 );
|
|
Py_DECREF( tmp_args_element_name_9 );
|
|
if ( tmp_unused == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 46;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
Py_DECREF( tmp_unused );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_13;
|
|
PyObject *tmp_left_name_1;
|
|
PyObject *tmp_right_name_1;
|
|
if ( var_i == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "i" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 47;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_left_name_1 = var_i;
|
|
tmp_right_name_1 = const_int_pos_1;
|
|
tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE( &tmp_left_name_1, tmp_right_name_1 );
|
|
tmp_assign_source_13 = tmp_left_name_1;
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 47;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
var_i = tmp_assign_source_13;
|
|
|
|
}
|
|
if ( CONSIDER_THREADING() == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 45;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto loop_start_1;
|
|
loop_end_1:;
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_1;
|
|
PyObject *tmp_assattr_target_1;
|
|
if ( par_prefix == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "prefix" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 49;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_name_1 = par_prefix;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 49;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_1 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__cachestr, tmp_assattr_name_1 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 49;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_2;
|
|
PyObject *tmp_tuple_element_1;
|
|
PyObject *tmp_assattr_target_2;
|
|
if ( var_start == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "start" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 50;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_tuple_element_1 = var_start;
|
|
tmp_assattr_name_2 = PyTuple_New( 2 );
|
|
Py_INCREF( tmp_tuple_element_1 );
|
|
PyTuple_SET_ITEM( tmp_assattr_name_2, 0, tmp_tuple_element_1 );
|
|
if ( var_i == NULL )
|
|
{
|
|
Py_DECREF( tmp_assattr_name_2 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "i" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 50;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_tuple_element_1 = var_i;
|
|
Py_INCREF( tmp_tuple_element_1 );
|
|
PyTuple_SET_ITEM( tmp_assattr_name_2, 1, tmp_tuple_element_1 );
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_assattr_name_2 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 50;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_2 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain__cachepoints, tmp_assattr_name_2 );
|
|
Py_DECREF( tmp_assattr_name_2 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 50;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
if ( var_keys == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "keys" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 52;
|
|
type_description_1 = "ooooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_return_value = var_keys;
|
|
Py_INCREF( tmp_return_value );
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_5e985f539f05dc02ff810123ec988ce1 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_5e985f539f05dc02ff810123ec988ce1 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_5e985f539f05dc02ff810123ec988ce1 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_5e985f539f05dc02ff810123ec988ce1, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_5e985f539f05dc02ff810123ec988ce1->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_5e985f539f05dc02ff810123ec988ce1, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_5e985f539f05dc02ff810123ec988ce1,
|
|
type_description_1,
|
|
par_self,
|
|
par_prefix,
|
|
var_lo,
|
|
var_hi,
|
|
var_start,
|
|
var_i,
|
|
var_keys
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_5e985f539f05dc02ff810123ec988ce1 == cache_frame_5e985f539f05dc02ff810123ec988ce1 )
|
|
{
|
|
Py_DECREF( frame_5e985f539f05dc02ff810123ec988ce1 );
|
|
}
|
|
cache_frame_5e985f539f05dc02ff810123ec988ce1 = NULL;
|
|
|
|
assertFrameObject( frame_5e985f539f05dc02ff810123ec988ce1 );
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto try_except_handler_1;
|
|
|
|
frame_no_exception_1:;
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_6_keys );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_prefix );
|
|
par_prefix = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_lo );
|
|
var_lo = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_hi );
|
|
var_hi = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_start );
|
|
var_start = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_i );
|
|
var_i = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_keys );
|
|
var_keys = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_1:;
|
|
exception_keeper_type_3 = exception_type;
|
|
exception_keeper_value_3 = exception_value;
|
|
exception_keeper_tb_3 = exception_tb;
|
|
exception_keeper_lineno_3 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_prefix );
|
|
par_prefix = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_lo );
|
|
var_lo = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_hi );
|
|
var_hi = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_start );
|
|
var_start = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_i );
|
|
var_i = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_keys );
|
|
var_keys = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_3;
|
|
exception_value = exception_keeper_value_3;
|
|
exception_tb = exception_keeper_tb_3;
|
|
exception_lineno = exception_keeper_lineno_3;
|
|
|
|
goto function_exception_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_6_keys );
|
|
return NULL;
|
|
|
|
function_exception_exit:
|
|
assert( exception_type );
|
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
|
|
|
return NULL;
|
|
function_return_exit:
|
|
|
|
CHECK_OBJECT( tmp_return_value );
|
|
assert( had_error || !ERROR_OCCURRED() );
|
|
return tmp_return_value;
|
|
|
|
}
|
|
|
|
|
|
static PyObject *impl_html5lib$_trie$py$$$function_7_has_keys_with_prefix( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
PyObject *par_self = python_pars[ 0 ];
|
|
PyObject *par_prefix = python_pars[ 1 ];
|
|
PyObject *var_lo = NULL;
|
|
PyObject *var_hi = NULL;
|
|
PyObject *var_i = NULL;
|
|
PyObject *tmp_tuple_unpack_1__element_1 = NULL;
|
|
PyObject *tmp_tuple_unpack_1__element_2 = NULL;
|
|
PyObject *tmp_tuple_unpack_1__source_iter = NULL;
|
|
struct Nuitka_FrameObject *frame_246369d1eaca78bdba0b5283892ac9e9;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
int tmp_res;
|
|
PyObject *tmp_return_value = NULL;
|
|
PyObject *tmp_iterator_attempt;
|
|
PyObject *exception_keeper_type_1;
|
|
PyObject *exception_keeper_value_1;
|
|
PyTracebackObject *exception_keeper_tb_1;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
|
PyObject *exception_keeper_type_2;
|
|
PyObject *exception_keeper_value_2;
|
|
PyTracebackObject *exception_keeper_tb_2;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
|
|
static struct Nuitka_FrameObject *cache_frame_246369d1eaca78bdba0b5283892ac9e9 = NULL;
|
|
PyObject *exception_keeper_type_3;
|
|
PyObject *exception_keeper_value_3;
|
|
PyTracebackObject *exception_keeper_tb_3;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
|
|
|
|
// Actual function code.
|
|
{
|
|
// Tried code:
|
|
MAKE_OR_REUSE_FRAME( cache_frame_246369d1eaca78bdba0b5283892ac9e9, codeobj_246369d1eaca78bdba0b5283892ac9e9, module_html5lib$_trie$py, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_246369d1eaca78bdba0b5283892ac9e9 = cache_frame_246369d1eaca78bdba0b5283892ac9e9;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_246369d1eaca78bdba0b5283892ac9e9 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_246369d1eaca78bdba0b5283892ac9e9 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_compexpr_left_1;
|
|
PyObject *tmp_compexpr_right_1;
|
|
PyObject *tmp_source_name_1;
|
|
CHECK_OBJECT( par_prefix );
|
|
tmp_compexpr_left_1 = par_prefix;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_compexpr_right_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__data );
|
|
if ( tmp_compexpr_right_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 55;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_res = PySequence_Contains( tmp_compexpr_right_1, tmp_compexpr_left_1 );
|
|
Py_DECREF( tmp_compexpr_right_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 55;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_1 = ( tmp_res == 1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_1;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_1;
|
|
}
|
|
branch_yes_1:;
|
|
{
|
|
tmp_return_value = Py_True;
|
|
Py_INCREF( tmp_return_value );
|
|
goto frame_return_exit_1;
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_2;
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_source_name_2;
|
|
PyObject *tmp_call_result_1;
|
|
PyObject *tmp_args_element_name_1;
|
|
PyObject *tmp_source_name_3;
|
|
int tmp_truth_name_1;
|
|
if ( par_prefix == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "prefix" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 58;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_2 = par_prefix;
|
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_startswith );
|
|
if ( tmp_called_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 58;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_called_name_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 58;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_3 = par_self;
|
|
tmp_args_element_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain__cachestr );
|
|
if ( tmp_args_element_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_called_name_1 );
|
|
|
|
exception_lineno = 58;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
frame_246369d1eaca78bdba0b5283892ac9e9->m_frame.f_lineno = 58;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
|
tmp_call_result_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_called_name_1 );
|
|
Py_DECREF( tmp_args_element_name_1 );
|
|
if ( tmp_call_result_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 58;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_call_result_1 );
|
|
if ( tmp_truth_name_1 == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_call_result_1 );
|
|
|
|
exception_lineno = 58;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_2 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
Py_DECREF( tmp_call_result_1 );
|
|
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_2;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_2;
|
|
}
|
|
branch_yes_2:;
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
PyObject *tmp_iter_arg_1;
|
|
PyObject *tmp_source_name_4;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 59;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_source_name_4 = par_self;
|
|
tmp_iter_arg_1 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain__cachepoints );
|
|
if ( tmp_iter_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 59;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_assign_source_1 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_1 );
|
|
Py_DECREF( tmp_iter_arg_1 );
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 59;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
assert( tmp_tuple_unpack_1__source_iter == NULL );
|
|
tmp_tuple_unpack_1__source_iter = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_2;
|
|
PyObject *tmp_unpack_1;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
|
|
tmp_unpack_1 = tmp_tuple_unpack_1__source_iter;
|
|
tmp_assign_source_2 = UNPACK_NEXT( tmp_unpack_1, 0, 2 );
|
|
if ( tmp_assign_source_2 == NULL )
|
|
{
|
|
if ( !ERROR_OCCURRED() )
|
|
{
|
|
exception_type = PyExc_StopIteration;
|
|
Py_INCREF( exception_type );
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
}
|
|
else
|
|
{
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
}
|
|
|
|
|
|
type_description_1 = "ooooo";
|
|
exception_lineno = 59;
|
|
goto try_except_handler_3;
|
|
}
|
|
assert( tmp_tuple_unpack_1__element_1 == NULL );
|
|
tmp_tuple_unpack_1__element_1 = tmp_assign_source_2;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_3;
|
|
PyObject *tmp_unpack_2;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
|
|
tmp_unpack_2 = tmp_tuple_unpack_1__source_iter;
|
|
tmp_assign_source_3 = UNPACK_NEXT( tmp_unpack_2, 1, 2 );
|
|
if ( tmp_assign_source_3 == NULL )
|
|
{
|
|
if ( !ERROR_OCCURRED() )
|
|
{
|
|
exception_type = PyExc_StopIteration;
|
|
Py_INCREF( exception_type );
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
}
|
|
else
|
|
{
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
}
|
|
|
|
|
|
type_description_1 = "ooooo";
|
|
exception_lineno = 59;
|
|
goto try_except_handler_3;
|
|
}
|
|
assert( tmp_tuple_unpack_1__element_2 == NULL );
|
|
tmp_tuple_unpack_1__element_2 = tmp_assign_source_3;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_iterator_name_1;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
|
|
tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter;
|
|
// Check if iterator has left-over elements.
|
|
CHECK_OBJECT( tmp_iterator_name_1 ); assert( HAS_ITERNEXT( tmp_iterator_name_1 ) );
|
|
|
|
tmp_iterator_attempt = (*Py_TYPE( tmp_iterator_name_1 )->tp_iternext)( tmp_iterator_name_1 );
|
|
|
|
if (likely( tmp_iterator_attempt == NULL ))
|
|
{
|
|
PyObject *error = GET_ERROR_OCCURRED();
|
|
|
|
if ( error != NULL )
|
|
{
|
|
if ( EXCEPTION_MATCH_BOOL_SINGLE( error, PyExc_StopIteration ))
|
|
{
|
|
CLEAR_ERROR_OCCURRED();
|
|
}
|
|
else
|
|
{
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
type_description_1 = "ooooo";
|
|
exception_lineno = 59;
|
|
goto try_except_handler_3;
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
Py_DECREF( tmp_iterator_attempt );
|
|
|
|
// TODO: Could avoid PyErr_Format.
|
|
#if PYTHON_VERSION < 300
|
|
PyErr_Format( PyExc_ValueError, "too many values to unpack" );
|
|
#else
|
|
PyErr_Format( PyExc_ValueError, "too many values to unpack (expected 2)" );
|
|
#endif
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
type_description_1 = "ooooo";
|
|
exception_lineno = 59;
|
|
goto try_except_handler_3;
|
|
}
|
|
}
|
|
goto try_end_1;
|
|
// Exception handler code:
|
|
try_except_handler_3:;
|
|
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;
|
|
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter );
|
|
Py_DECREF( tmp_tuple_unpack_1__source_iter );
|
|
tmp_tuple_unpack_1__source_iter = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_1;
|
|
exception_value = exception_keeper_value_1;
|
|
exception_tb = exception_keeper_tb_1;
|
|
exception_lineno = exception_keeper_lineno_1;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
// End of try:
|
|
try_end_1:;
|
|
}
|
|
goto try_end_2;
|
|
// Exception handler code:
|
|
try_except_handler_2:;
|
|
exception_keeper_type_2 = exception_type;
|
|
exception_keeper_value_2 = exception_value;
|
|
exception_keeper_tb_2 = exception_tb;
|
|
exception_keeper_lineno_2 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( tmp_tuple_unpack_1__element_1 );
|
|
tmp_tuple_unpack_1__element_1 = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_tuple_unpack_1__element_2 );
|
|
tmp_tuple_unpack_1__element_2 = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_2;
|
|
exception_value = exception_keeper_value_2;
|
|
exception_tb = exception_keeper_tb_2;
|
|
exception_lineno = exception_keeper_lineno_2;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_2:;
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter );
|
|
Py_DECREF( tmp_tuple_unpack_1__source_iter );
|
|
tmp_tuple_unpack_1__source_iter = NULL;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_4;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__element_1 );
|
|
tmp_assign_source_4 = tmp_tuple_unpack_1__element_1;
|
|
assert( var_lo == NULL );
|
|
Py_INCREF( tmp_assign_source_4 );
|
|
var_lo = tmp_assign_source_4;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_tuple_unpack_1__element_1 );
|
|
tmp_tuple_unpack_1__element_1 = NULL;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_5;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__element_2 );
|
|
tmp_assign_source_5 = tmp_tuple_unpack_1__element_2;
|
|
assert( var_hi == NULL );
|
|
Py_INCREF( tmp_assign_source_5 );
|
|
var_hi = tmp_assign_source_5;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_tuple_unpack_1__element_2 );
|
|
tmp_tuple_unpack_1__element_2 = NULL;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_6;
|
|
PyObject *tmp_called_name_2;
|
|
PyObject *tmp_mvar_value_1;
|
|
PyObject *tmp_args_element_name_2;
|
|
PyObject *tmp_source_name_5;
|
|
PyObject *tmp_args_element_name_3;
|
|
PyObject *tmp_args_element_name_4;
|
|
PyObject *tmp_args_element_name_5;
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain_bisect_left );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_bisect_left );
|
|
}
|
|
|
|
if ( tmp_mvar_value_1 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "bisect_left" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 60;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_called_name_2 = tmp_mvar_value_1;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 60;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_5 = par_self;
|
|
tmp_args_element_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain__keys );
|
|
if ( tmp_args_element_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 60;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_prefix == NULL )
|
|
{
|
|
Py_DECREF( tmp_args_element_name_2 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "prefix" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 60;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_3 = par_prefix;
|
|
if ( var_lo == NULL )
|
|
{
|
|
Py_DECREF( tmp_args_element_name_2 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "lo" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 60;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_4 = var_lo;
|
|
if ( var_hi == NULL )
|
|
{
|
|
Py_DECREF( tmp_args_element_name_2 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "hi" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 60;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_5 = var_hi;
|
|
frame_246369d1eaca78bdba0b5283892ac9e9->m_frame.f_lineno = 60;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5 };
|
|
tmp_assign_source_6 = CALL_FUNCTION_WITH_ARGS4( tmp_called_name_2, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_args_element_name_2 );
|
|
if ( tmp_assign_source_6 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 60;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( var_i == NULL );
|
|
var_i = tmp_assign_source_6;
|
|
|
|
}
|
|
goto branch_end_2;
|
|
branch_no_2:;
|
|
{
|
|
PyObject *tmp_assign_source_7;
|
|
PyObject *tmp_called_name_3;
|
|
PyObject *tmp_mvar_value_2;
|
|
PyObject *tmp_args_element_name_6;
|
|
PyObject *tmp_source_name_6;
|
|
PyObject *tmp_args_element_name_7;
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain_bisect_left );
|
|
|
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
|
{
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_bisect_left );
|
|
}
|
|
|
|
if ( tmp_mvar_value_2 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "bisect_left" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 62;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_called_name_3 = tmp_mvar_value_2;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 62;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_6 = par_self;
|
|
tmp_args_element_name_6 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain__keys );
|
|
if ( tmp_args_element_name_6 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 62;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_prefix == NULL )
|
|
{
|
|
Py_DECREF( tmp_args_element_name_6 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "prefix" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 62;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_7 = par_prefix;
|
|
frame_246369d1eaca78bdba0b5283892ac9e9->m_frame.f_lineno = 62;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_6, tmp_args_element_name_7 };
|
|
tmp_assign_source_7 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_3, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_args_element_name_6 );
|
|
if ( tmp_assign_source_7 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 62;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( var_i == NULL );
|
|
var_i = tmp_assign_source_7;
|
|
|
|
}
|
|
branch_end_2:;
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_3;
|
|
PyObject *tmp_compexpr_left_2;
|
|
PyObject *tmp_compexpr_right_2;
|
|
PyObject *tmp_len_arg_1;
|
|
PyObject *tmp_source_name_7;
|
|
CHECK_OBJECT( var_i );
|
|
tmp_compexpr_left_2 = var_i;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 64;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_7 = par_self;
|
|
tmp_len_arg_1 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain__keys );
|
|
if ( tmp_len_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 64;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_compexpr_right_2 = BUILTIN_LEN( tmp_len_arg_1 );
|
|
Py_DECREF( tmp_len_arg_1 );
|
|
if ( tmp_compexpr_right_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 64;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_2, tmp_compexpr_right_2 );
|
|
Py_DECREF( tmp_compexpr_right_2 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 64;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_3;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_3;
|
|
}
|
|
branch_yes_3:;
|
|
{
|
|
tmp_return_value = Py_False;
|
|
Py_INCREF( tmp_return_value );
|
|
goto frame_return_exit_1;
|
|
}
|
|
branch_no_3:;
|
|
}
|
|
{
|
|
PyObject *tmp_called_name_4;
|
|
PyObject *tmp_source_name_8;
|
|
PyObject *tmp_subscribed_name_1;
|
|
PyObject *tmp_source_name_9;
|
|
PyObject *tmp_subscript_name_1;
|
|
PyObject *tmp_args_element_name_8;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_9 = par_self;
|
|
tmp_subscribed_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain__keys );
|
|
if ( tmp_subscribed_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( var_i == NULL )
|
|
{
|
|
Py_DECREF( tmp_subscribed_name_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "i" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_subscript_name_1 = var_i;
|
|
tmp_source_name_8 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 );
|
|
Py_DECREF( tmp_subscribed_name_1 );
|
|
if ( tmp_source_name_8 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_called_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain_startswith );
|
|
Py_DECREF( tmp_source_name_8 );
|
|
if ( tmp_called_name_4 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_prefix == NULL )
|
|
{
|
|
Py_DECREF( tmp_called_name_4 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "prefix" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_8 = par_prefix;
|
|
frame_246369d1eaca78bdba0b5283892ac9e9->m_frame.f_lineno = 67;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_8 };
|
|
tmp_return_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_4, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_called_name_4 );
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_246369d1eaca78bdba0b5283892ac9e9 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_246369d1eaca78bdba0b5283892ac9e9 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_246369d1eaca78bdba0b5283892ac9e9 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_246369d1eaca78bdba0b5283892ac9e9, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_246369d1eaca78bdba0b5283892ac9e9->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_246369d1eaca78bdba0b5283892ac9e9, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_246369d1eaca78bdba0b5283892ac9e9,
|
|
type_description_1,
|
|
par_self,
|
|
par_prefix,
|
|
var_lo,
|
|
var_hi,
|
|
var_i
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_246369d1eaca78bdba0b5283892ac9e9 == cache_frame_246369d1eaca78bdba0b5283892ac9e9 )
|
|
{
|
|
Py_DECREF( frame_246369d1eaca78bdba0b5283892ac9e9 );
|
|
}
|
|
cache_frame_246369d1eaca78bdba0b5283892ac9e9 = NULL;
|
|
|
|
assertFrameObject( frame_246369d1eaca78bdba0b5283892ac9e9 );
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto try_except_handler_1;
|
|
|
|
frame_no_exception_1:;
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_7_has_keys_with_prefix );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_prefix );
|
|
par_prefix = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_lo );
|
|
var_lo = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_hi );
|
|
var_hi = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_i );
|
|
var_i = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_1:;
|
|
exception_keeper_type_3 = exception_type;
|
|
exception_keeper_value_3 = exception_value;
|
|
exception_keeper_tb_3 = exception_tb;
|
|
exception_keeper_lineno_3 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_prefix );
|
|
par_prefix = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_lo );
|
|
var_lo = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_hi );
|
|
var_hi = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_i );
|
|
var_i = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_3;
|
|
exception_value = exception_keeper_value_3;
|
|
exception_tb = exception_keeper_tb_3;
|
|
exception_lineno = exception_keeper_lineno_3;
|
|
|
|
goto function_exception_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py$$$function_7_has_keys_with_prefix );
|
|
return NULL;
|
|
|
|
function_exception_exit:
|
|
assert( exception_type );
|
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
|
|
|
return NULL;
|
|
function_return_exit:
|
|
|
|
CHECK_OBJECT( tmp_return_value );
|
|
assert( had_error || !ERROR_OCCURRED() );
|
|
return tmp_return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_1___init__( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_html5lib$_trie$py$$$function_1___init__,
|
|
const_str_plain___init__,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_85a92b83ed8fb1cf505e929eb211fd14,
|
|
#endif
|
|
codeobj_c300f6484ffb2019a82cb302e977e30b,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_html5lib$_trie$py,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_2___contains__( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_html5lib$_trie$py$$$function_2___contains__,
|
|
const_str_plain___contains__,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_7746eb05730aadf73907e7f4e9cf8ec4,
|
|
#endif
|
|
codeobj_d584860ffbd79a2c4c5f549ff0dbc533,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_html5lib$_trie$py,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_3___len__( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_html5lib$_trie$py$$$function_3___len__,
|
|
const_str_plain___len__,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_ab8d0ea13d52c67a316bda945c09b7a5,
|
|
#endif
|
|
codeobj_7a004b51940daae8eecbe4b5539e42e9,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_html5lib$_trie$py,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_4___iter__( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_html5lib$_trie$py$$$function_4___iter__,
|
|
const_str_plain___iter__,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_6f88c871026b8eb6886d09b9aec08ea2,
|
|
#endif
|
|
codeobj_a728da736d8a1b2625d4f1df8e949a68,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_html5lib$_trie$py,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_5___getitem__( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_html5lib$_trie$py$$$function_5___getitem__,
|
|
const_str_plain___getitem__,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_6b433739bc211790c1f500e9925557e8,
|
|
#endif
|
|
codeobj_0c818cdfd4dc2d32c6635d8588241df6,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_html5lib$_trie$py,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_6_keys( PyObject *defaults )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_html5lib$_trie$py$$$function_6_keys,
|
|
const_str_plain_keys,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_d01a0935c804902ddadea22ba70dfecd,
|
|
#endif
|
|
codeobj_5e985f539f05dc02ff810123ec988ce1,
|
|
defaults,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_html5lib$_trie$py,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_html5lib$_trie$py$$$function_7_has_keys_with_prefix( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_html5lib$_trie$py$$$function_7_has_keys_with_prefix,
|
|
const_str_plain_has_keys_with_prefix,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_5439b2431ccfdb405e8922060b74a8bc,
|
|
#endif
|
|
codeobj_246369d1eaca78bdba0b5283892ac9e9,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_html5lib$_trie$py,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
#if PYTHON_VERSION >= 300
|
|
static struct PyModuleDef mdef_html5lib$_trie$py =
|
|
{
|
|
PyModuleDef_HEAD_INIT,
|
|
"html5lib._trie.py", /* m_name */
|
|
NULL, /* m_doc */
|
|
-1, /* m_size */
|
|
NULL, /* m_methods */
|
|
NULL, /* m_reload */
|
|
NULL, /* m_traverse */
|
|
NULL, /* m_clear */
|
|
NULL, /* m_free */
|
|
};
|
|
#endif
|
|
|
|
extern PyObject *const_str_plain___package__;
|
|
|
|
#if PYTHON_VERSION >= 300
|
|
extern PyObject *const_str_dot;
|
|
|
|
extern PyObject *const_str_plain___loader__;
|
|
extern PyObject *metapath_based_loader;
|
|
#endif
|
|
|
|
#if PYTHON_VERSION >= 340
|
|
extern PyObject *const_str_plain___spec__;
|
|
extern PyObject *const_str_plain__initializing;
|
|
#endif
|
|
|
|
extern void _initCompiledCellType();
|
|
extern void _initCompiledGeneratorType();
|
|
extern void _initCompiledFunctionType();
|
|
extern void _initCompiledMethodType();
|
|
extern void _initCompiledFrameType();
|
|
#if PYTHON_VERSION >= 350
|
|
extern void _initCompiledCoroutineTypes();
|
|
#endif
|
|
#if PYTHON_VERSION >= 360
|
|
extern void _initCompiledAsyncgenTypes();
|
|
#endif
|
|
|
|
// The exported interface to CPython. On import of the module, this function
|
|
// gets called. It has to have an exact function name, in cases it's a shared
|
|
// library export. This is hidden behind the MOD_INIT_DECL.
|
|
|
|
MOD_INIT_DECL( html5lib$_trie$py )
|
|
{
|
|
#if defined(_NUITKA_EXE) || PYTHON_VERSION >= 300
|
|
static bool _init_done = false;
|
|
|
|
// Modules might be imported repeatedly, which is to be ignored.
|
|
if ( _init_done )
|
|
{
|
|
return MOD_RETURN_VALUE( module_html5lib$_trie$py );
|
|
}
|
|
else
|
|
{
|
|
_init_done = true;
|
|
}
|
|
#endif
|
|
|
|
#ifdef _NUITKA_MODULE
|
|
// In case of a stand alone extension module, need to call initialization
|
|
// the init here because that's the first and only time we are going to get
|
|
// called here.
|
|
|
|
// Initialize the constant values used.
|
|
_initBuiltinModule();
|
|
createGlobalConstants();
|
|
|
|
/* Initialize the compiled types of Nuitka. */
|
|
_initCompiledCellType();
|
|
_initCompiledGeneratorType();
|
|
_initCompiledFunctionType();
|
|
_initCompiledMethodType();
|
|
_initCompiledFrameType();
|
|
#if PYTHON_VERSION >= 350
|
|
_initCompiledCoroutineTypes();
|
|
#endif
|
|
#if PYTHON_VERSION >= 360
|
|
_initCompiledAsyncgenTypes();
|
|
#endif
|
|
|
|
#if PYTHON_VERSION < 300
|
|
_initSlotCompare();
|
|
#endif
|
|
#if PYTHON_VERSION >= 270
|
|
_initSlotIternext();
|
|
#endif
|
|
|
|
patchBuiltinModule();
|
|
patchTypeComparison();
|
|
|
|
// Enable meta path based loader if not already done.
|
|
#ifdef _NUITKA_TRACE
|
|
puts("html5lib._trie.py: Calling setupMetaPathBasedLoader().");
|
|
#endif
|
|
setupMetaPathBasedLoader();
|
|
|
|
#if PYTHON_VERSION >= 300
|
|
patchInspectModule();
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/* The constants only used by this module are created now. */
|
|
#ifdef _NUITKA_TRACE
|
|
puts("html5lib._trie.py: Calling createModuleConstants().");
|
|
#endif
|
|
createModuleConstants();
|
|
|
|
/* The code objects used by this module are created now. */
|
|
#ifdef _NUITKA_TRACE
|
|
puts("html5lib._trie.py: Calling createModuleCodeObjects().");
|
|
#endif
|
|
createModuleCodeObjects();
|
|
|
|
// puts( "in inithtml5lib$_trie$py" );
|
|
|
|
// Create the module object first. There are no methods initially, all are
|
|
// added dynamically in actual code only. Also no "__doc__" is initially
|
|
// set at this time, as it could not contain NUL characters this way, they
|
|
// are instead set in early module code. No "self" for modules, we have no
|
|
// use for it.
|
|
#if PYTHON_VERSION < 300
|
|
module_html5lib$_trie$py = Py_InitModule4(
|
|
"html5lib._trie.py", // Module Name
|
|
NULL, // No methods initially, all are added
|
|
// dynamically in actual module code only.
|
|
NULL, // No "__doc__" is initially set, as it could
|
|
// not contain NUL this way, added early in
|
|
// actual code.
|
|
NULL, // No self for modules, we don't use it.
|
|
PYTHON_API_VERSION
|
|
);
|
|
#else
|
|
|
|
module_html5lib$_trie$py = PyModule_Create( &mdef_html5lib$_trie$py );
|
|
#endif
|
|
|
|
moduledict_html5lib$_trie$py = MODULE_DICT( module_html5lib$_trie$py );
|
|
|
|
// Update "__package__" value to what it ought to be.
|
|
{
|
|
#if 0
|
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain___name__ );
|
|
|
|
UPDATE_STRING_DICT1(
|
|
moduledict_html5lib$_trie$py,
|
|
(Nuitka_StringObject *)const_str_plain___package__,
|
|
module_name
|
|
);
|
|
|
|
#else
|
|
|
|
#if PYTHON_VERSION < 300
|
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain___name__ );
|
|
char const *module_name_cstr = PyString_AS_STRING( module_name );
|
|
|
|
char const *last_dot = strrchr( module_name_cstr, '.' );
|
|
|
|
if ( last_dot != NULL )
|
|
{
|
|
UPDATE_STRING_DICT1(
|
|
moduledict_html5lib$_trie$py,
|
|
(Nuitka_StringObject *)const_str_plain___package__,
|
|
PyString_FromStringAndSize( module_name_cstr, last_dot - module_name_cstr )
|
|
);
|
|
}
|
|
#else
|
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain___name__ );
|
|
Py_ssize_t dot_index = PyUnicode_Find( module_name, const_str_dot, 0, PyUnicode_GetLength( module_name ), -1 );
|
|
|
|
if ( dot_index != -1 )
|
|
{
|
|
UPDATE_STRING_DICT1(
|
|
moduledict_html5lib$_trie$py,
|
|
(Nuitka_StringObject *)const_str_plain___package__,
|
|
PyUnicode_Substring( module_name, 0, dot_index )
|
|
);
|
|
}
|
|
#endif
|
|
#endif
|
|
}
|
|
|
|
CHECK_OBJECT( module_html5lib$_trie$py );
|
|
|
|
// Seems to work for Python2.7 out of the box, but for Python3, the module
|
|
// doesn't automatically enter "sys.modules", so do it manually.
|
|
#if PYTHON_VERSION >= 300
|
|
{
|
|
int r = PyObject_SetItem( PySys_GetObject( (char *)"modules" ), const_str_digest_53d32d6ef3da269e5e2c883985f7daf5, module_html5lib$_trie$py );
|
|
|
|
assert( r != -1 );
|
|
}
|
|
#endif
|
|
|
|
// For deep importing of a module we need to have "__builtins__", so we set
|
|
// it ourselves in the same way than CPython does. Note: This must be done
|
|
// before the frame object is allocated, or else it may fail.
|
|
|
|
if ( GET_STRING_DICT_VALUE( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain___builtins__ ) == NULL )
|
|
{
|
|
PyObject *value = (PyObject *)builtin_module;
|
|
|
|
// Check if main module, not a dict then but the module itself.
|
|
#if !defined(_NUITKA_EXE) || !0
|
|
value = PyModule_GetDict( value );
|
|
#endif
|
|
|
|
UPDATE_STRING_DICT0( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain___builtins__, value );
|
|
}
|
|
|
|
#if PYTHON_VERSION >= 300
|
|
UPDATE_STRING_DICT0( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
|
|
#endif
|
|
|
|
#if PYTHON_VERSION >= 340
|
|
#if 0
|
|
UPDATE_STRING_DICT0( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain___spec__, Py_None );
|
|
#else
|
|
{
|
|
PyObject *bootstrap_module = PyImport_ImportModule("importlib._bootstrap");
|
|
CHECK_OBJECT( bootstrap_module );
|
|
PyObject *module_spec_class = PyObject_GetAttrString( bootstrap_module, "ModuleSpec" );
|
|
Py_DECREF( bootstrap_module );
|
|
|
|
PyObject *args[] = {
|
|
GET_STRING_DICT_VALUE( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain___name__ ),
|
|
metapath_based_loader
|
|
};
|
|
|
|
PyObject *spec_value = CALL_FUNCTION_WITH_ARGS2(
|
|
module_spec_class,
|
|
args
|
|
);
|
|
|
|
SET_ATTRIBUTE( spec_value, const_str_plain__initializing, Py_True );
|
|
|
|
UPDATE_STRING_DICT1( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain___spec__, spec_value );
|
|
|
|
Py_DECREF( module_spec_class );
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
// Temp variables if any
|
|
PyObject *outline_0_var___class__ = NULL;
|
|
PyObject *tmp_class_creation_1__bases = NULL;
|
|
PyObject *tmp_class_creation_1__bases_orig = NULL;
|
|
PyObject *tmp_class_creation_1__class_decl_dict = NULL;
|
|
PyObject *tmp_class_creation_1__metaclass = NULL;
|
|
PyObject *tmp_class_creation_1__prepared = NULL;
|
|
PyObject *tmp_import_from_1__module = NULL;
|
|
struct Nuitka_FrameObject *frame_f3e4731e967f865ef87bc7724a928268;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
PyObject *exception_keeper_type_1;
|
|
PyObject *exception_keeper_value_1;
|
|
PyTracebackObject *exception_keeper_tb_1;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
|
int tmp_res;
|
|
PyObject *tmp_dictdel_dict;
|
|
PyObject *tmp_dictdel_key;
|
|
bool tmp_result;
|
|
PyObject *locals_html5lib$_trie$py_9 = NULL;
|
|
PyObject *tmp_dictset_value;
|
|
struct Nuitka_FrameObject *frame_c86e3def807a2a7af36407ba52af97e2_2;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL;
|
|
static struct Nuitka_FrameObject *cache_frame_c86e3def807a2a7af36407ba52af97e2_2 = NULL;
|
|
PyObject *exception_keeper_type_2;
|
|
PyObject *exception_keeper_value_2;
|
|
PyTracebackObject *exception_keeper_tb_2;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
|
|
PyObject *exception_keeper_type_3;
|
|
PyObject *exception_keeper_value_3;
|
|
PyTracebackObject *exception_keeper_tb_3;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
|
|
PyObject *exception_keeper_type_4;
|
|
PyObject *exception_keeper_value_4;
|
|
PyTracebackObject *exception_keeper_tb_4;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4;
|
|
|
|
// Module code.
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
tmp_assign_source_1 = Py_None;
|
|
UPDATE_STRING_DICT0( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_2;
|
|
tmp_assign_source_2 = const_str_digest_5fbb485bbeeb787aab71a7500d755287;
|
|
UPDATE_STRING_DICT0( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain___file__, tmp_assign_source_2 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_3;
|
|
tmp_assign_source_3 = Py_None;
|
|
UPDATE_STRING_DICT0( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_4;
|
|
tmp_assign_source_4 = PyImport_ImportModule("__future__");
|
|
assert( !(tmp_assign_source_4 == NULL) );
|
|
assert( tmp_import_from_1__module == NULL );
|
|
Py_INCREF( tmp_assign_source_4 );
|
|
tmp_import_from_1__module = tmp_assign_source_4;
|
|
|
|
}
|
|
// Frame without reuse.
|
|
frame_f3e4731e967f865ef87bc7724a928268 = MAKE_MODULE_FRAME( codeobj_f3e4731e967f865ef87bc7724a928268, module_html5lib$_trie$py );
|
|
|
|
// Push the new frame as the currently active one, and we should be exclusively
|
|
// owning it.
|
|
pushFrameStack( frame_f3e4731e967f865ef87bc7724a928268 );
|
|
assert( Py_REFCNT( frame_f3e4731e967f865ef87bc7724a928268 ) == 2 );
|
|
|
|
// Framed code:
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_5;
|
|
PyObject *tmp_import_name_from_1;
|
|
CHECK_OBJECT( tmp_import_from_1__module );
|
|
tmp_import_name_from_1 = tmp_import_from_1__module;
|
|
tmp_assign_source_5 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_absolute_import );
|
|
if ( tmp_assign_source_5 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 1;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain_absolute_import, tmp_assign_source_5 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_6;
|
|
PyObject *tmp_import_name_from_2;
|
|
CHECK_OBJECT( tmp_import_from_1__module );
|
|
tmp_import_name_from_2 = tmp_import_from_1__module;
|
|
tmp_assign_source_6 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_division );
|
|
if ( tmp_assign_source_6 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 1;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain_division, tmp_assign_source_6 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_7;
|
|
PyObject *tmp_import_name_from_3;
|
|
CHECK_OBJECT( tmp_import_from_1__module );
|
|
tmp_import_name_from_3 = tmp_import_from_1__module;
|
|
tmp_assign_source_7 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_unicode_literals );
|
|
if ( tmp_assign_source_7 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 1;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain_unicode_literals, tmp_assign_source_7 );
|
|
}
|
|
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;
|
|
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_import_from_1__module );
|
|
Py_DECREF( tmp_import_from_1__module );
|
|
tmp_import_from_1__module = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_1;
|
|
exception_value = exception_keeper_value_1;
|
|
exception_tb = exception_keeper_tb_1;
|
|
exception_lineno = exception_keeper_lineno_1;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_1:;
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_import_from_1__module );
|
|
Py_DECREF( tmp_import_from_1__module );
|
|
tmp_import_from_1__module = NULL;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_8;
|
|
PyObject *tmp_import_name_from_4;
|
|
PyObject *tmp_name_name_1;
|
|
PyObject *tmp_globals_name_1;
|
|
PyObject *tmp_locals_name_1;
|
|
PyObject *tmp_fromlist_name_1;
|
|
PyObject *tmp_level_name_1;
|
|
tmp_name_name_1 = const_str_plain_six;
|
|
tmp_globals_name_1 = (PyObject *)moduledict_html5lib$_trie$py;
|
|
tmp_locals_name_1 = Py_None;
|
|
tmp_fromlist_name_1 = const_tuple_str_plain_text_type_tuple;
|
|
tmp_level_name_1 = const_int_0;
|
|
frame_f3e4731e967f865ef87bc7724a928268->m_frame.f_lineno = 2;
|
|
tmp_import_name_from_4 = IMPORT_MODULE5( tmp_name_name_1, tmp_globals_name_1, tmp_locals_name_1, tmp_fromlist_name_1, tmp_level_name_1 );
|
|
if ( tmp_import_name_from_4 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 2;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_assign_source_8 = IMPORT_NAME( tmp_import_name_from_4, const_str_plain_text_type );
|
|
Py_DECREF( tmp_import_name_from_4 );
|
|
if ( tmp_assign_source_8 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 2;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain_text_type, tmp_assign_source_8 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_9;
|
|
PyObject *tmp_import_name_from_5;
|
|
PyObject *tmp_name_name_2;
|
|
PyObject *tmp_globals_name_2;
|
|
PyObject *tmp_locals_name_2;
|
|
PyObject *tmp_fromlist_name_2;
|
|
PyObject *tmp_level_name_2;
|
|
tmp_name_name_2 = const_str_plain_bisect;
|
|
tmp_globals_name_2 = (PyObject *)moduledict_html5lib$_trie$py;
|
|
tmp_locals_name_2 = Py_None;
|
|
tmp_fromlist_name_2 = const_tuple_str_plain_bisect_left_tuple;
|
|
tmp_level_name_2 = const_int_0;
|
|
frame_f3e4731e967f865ef87bc7724a928268->m_frame.f_lineno = 4;
|
|
tmp_import_name_from_5 = IMPORT_MODULE5( tmp_name_name_2, tmp_globals_name_2, tmp_locals_name_2, tmp_fromlist_name_2, tmp_level_name_2 );
|
|
if ( tmp_import_name_from_5 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 4;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_assign_source_9 = IMPORT_NAME( tmp_import_name_from_5, const_str_plain_bisect_left );
|
|
Py_DECREF( tmp_import_name_from_5 );
|
|
if ( tmp_assign_source_9 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 4;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain_bisect_left, tmp_assign_source_9 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_10;
|
|
PyObject *tmp_import_name_from_6;
|
|
PyObject *tmp_name_name_3;
|
|
PyObject *tmp_globals_name_3;
|
|
PyObject *tmp_locals_name_3;
|
|
PyObject *tmp_fromlist_name_3;
|
|
PyObject *tmp_level_name_3;
|
|
tmp_name_name_3 = const_str_plain__base;
|
|
tmp_globals_name_3 = (PyObject *)moduledict_html5lib$_trie$py;
|
|
tmp_locals_name_3 = Py_None;
|
|
tmp_fromlist_name_3 = const_tuple_str_plain_Trie_tuple;
|
|
tmp_level_name_3 = const_int_pos_1;
|
|
frame_f3e4731e967f865ef87bc7724a928268->m_frame.f_lineno = 6;
|
|
tmp_import_name_from_6 = IMPORT_MODULE5( tmp_name_name_3, tmp_globals_name_3, tmp_locals_name_3, tmp_fromlist_name_3, tmp_level_name_3 );
|
|
if ( tmp_import_name_from_6 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 6;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( PyModule_Check( tmp_import_name_from_6 ) )
|
|
{
|
|
tmp_assign_source_10 = IMPORT_NAME_OR_MODULE(
|
|
tmp_import_name_from_6,
|
|
(PyObject *)MODULE_DICT(tmp_import_name_from_6),
|
|
const_str_plain_Trie,
|
|
const_int_pos_1
|
|
);
|
|
}
|
|
else
|
|
{
|
|
tmp_assign_source_10 = IMPORT_NAME( tmp_import_name_from_6, const_str_plain_Trie );
|
|
}
|
|
|
|
Py_DECREF( tmp_import_name_from_6 );
|
|
if ( tmp_assign_source_10 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 6;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain_ABCTrie, tmp_assign_source_10 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_11;
|
|
PyObject *tmp_tuple_element_1;
|
|
PyObject *tmp_mvar_value_1;
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain_ABCTrie );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_ABCTrie );
|
|
}
|
|
|
|
CHECK_OBJECT( tmp_mvar_value_1 );
|
|
tmp_tuple_element_1 = tmp_mvar_value_1;
|
|
tmp_assign_source_11 = PyTuple_New( 1 );
|
|
Py_INCREF( tmp_tuple_element_1 );
|
|
PyTuple_SET_ITEM( tmp_assign_source_11, 0, tmp_tuple_element_1 );
|
|
assert( tmp_class_creation_1__bases_orig == NULL );
|
|
tmp_class_creation_1__bases_orig = tmp_assign_source_11;
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_12;
|
|
PyObject *tmp_dircall_arg1_1;
|
|
CHECK_OBJECT( tmp_class_creation_1__bases_orig );
|
|
tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig;
|
|
Py_INCREF( tmp_dircall_arg1_1 );
|
|
|
|
{
|
|
PyObject *dir_call_args[] = {tmp_dircall_arg1_1};
|
|
tmp_assign_source_12 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
|
|
}
|
|
if ( tmp_assign_source_12 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
assert( tmp_class_creation_1__bases == NULL );
|
|
tmp_class_creation_1__bases = tmp_assign_source_12;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_13;
|
|
tmp_assign_source_13 = PyDict_New();
|
|
assert( tmp_class_creation_1__class_decl_dict == NULL );
|
|
tmp_class_creation_1__class_decl_dict = tmp_assign_source_13;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_14;
|
|
PyObject *tmp_metaclass_name_1;
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_key_name_1;
|
|
PyObject *tmp_dict_name_1;
|
|
PyObject *tmp_dict_name_2;
|
|
PyObject *tmp_key_name_2;
|
|
nuitka_bool tmp_condition_result_2;
|
|
int tmp_truth_name_1;
|
|
PyObject *tmp_type_arg_1;
|
|
PyObject *tmp_subscribed_name_1;
|
|
PyObject *tmp_subscript_name_1;
|
|
PyObject *tmp_bases_name_1;
|
|
tmp_key_name_1 = const_str_plain_metaclass;
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_dict_name_1 = tmp_class_creation_1__class_decl_dict;
|
|
tmp_res = PyDict_Contains( tmp_dict_name_1, tmp_key_name_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto condexpr_true_1;
|
|
}
|
|
else
|
|
{
|
|
goto condexpr_false_1;
|
|
}
|
|
condexpr_true_1:;
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_dict_name_2 = tmp_class_creation_1__class_decl_dict;
|
|
tmp_key_name_2 = const_str_plain_metaclass;
|
|
tmp_metaclass_name_1 = DICT_GET_ITEM( tmp_dict_name_2, tmp_key_name_2 );
|
|
if ( tmp_metaclass_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
goto condexpr_end_1;
|
|
condexpr_false_1:;
|
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
|
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_class_creation_1__bases );
|
|
if ( tmp_truth_name_1 == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_condition_result_2 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto condexpr_true_2;
|
|
}
|
|
else
|
|
{
|
|
goto condexpr_false_2;
|
|
}
|
|
condexpr_true_2:;
|
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
|
tmp_subscribed_name_1 = tmp_class_creation_1__bases;
|
|
tmp_subscript_name_1 = const_int_0;
|
|
tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 0 );
|
|
if ( tmp_type_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_metaclass_name_1 = BUILTIN_TYPE1( tmp_type_arg_1 );
|
|
Py_DECREF( tmp_type_arg_1 );
|
|
if ( tmp_metaclass_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
goto condexpr_end_2;
|
|
condexpr_false_2:;
|
|
tmp_metaclass_name_1 = (PyObject *)&PyType_Type;
|
|
Py_INCREF( tmp_metaclass_name_1 );
|
|
condexpr_end_2:;
|
|
condexpr_end_1:;
|
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
|
tmp_bases_name_1 = tmp_class_creation_1__bases;
|
|
tmp_assign_source_14 = SELECT_METACLASS( tmp_metaclass_name_1, tmp_bases_name_1 );
|
|
Py_DECREF( tmp_metaclass_name_1 );
|
|
if ( tmp_assign_source_14 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
assert( tmp_class_creation_1__metaclass == NULL );
|
|
tmp_class_creation_1__metaclass = tmp_assign_source_14;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_3;
|
|
PyObject *tmp_key_name_3;
|
|
PyObject *tmp_dict_name_3;
|
|
tmp_key_name_3 = const_str_plain_metaclass;
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_dict_name_3 = tmp_class_creation_1__class_decl_dict;
|
|
tmp_res = PyDict_Contains( tmp_dict_name_3, tmp_key_name_3 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_condition_result_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_1;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_1;
|
|
}
|
|
branch_yes_1:;
|
|
{
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict;
|
|
tmp_dictdel_key = const_str_plain_metaclass;
|
|
tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_4;
|
|
PyObject *tmp_source_name_1;
|
|
CHECK_OBJECT( tmp_class_creation_1__metaclass );
|
|
tmp_source_name_1 = tmp_class_creation_1__metaclass;
|
|
tmp_res = PyObject_HasAttr( tmp_source_name_1, const_str_plain___prepare__ );
|
|
tmp_condition_result_4 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_2;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_2;
|
|
}
|
|
branch_yes_2:;
|
|
{
|
|
PyObject *tmp_assign_source_15;
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_source_name_2;
|
|
PyObject *tmp_args_name_1;
|
|
PyObject *tmp_tuple_element_2;
|
|
PyObject *tmp_kw_name_1;
|
|
CHECK_OBJECT( tmp_class_creation_1__metaclass );
|
|
tmp_source_name_2 = tmp_class_creation_1__metaclass;
|
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain___prepare__ );
|
|
if ( tmp_called_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_tuple_element_2 = const_str_plain_Trie;
|
|
tmp_args_name_1 = PyTuple_New( 2 );
|
|
Py_INCREF( tmp_tuple_element_2 );
|
|
PyTuple_SET_ITEM( tmp_args_name_1, 0, tmp_tuple_element_2 );
|
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
|
tmp_tuple_element_2 = tmp_class_creation_1__bases;
|
|
Py_INCREF( tmp_tuple_element_2 );
|
|
PyTuple_SET_ITEM( tmp_args_name_1, 1, tmp_tuple_element_2 );
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_kw_name_1 = tmp_class_creation_1__class_decl_dict;
|
|
frame_f3e4731e967f865ef87bc7724a928268->m_frame.f_lineno = 9;
|
|
tmp_assign_source_15 = CALL_FUNCTION( tmp_called_name_1, tmp_args_name_1, tmp_kw_name_1 );
|
|
Py_DECREF( tmp_called_name_1 );
|
|
Py_DECREF( tmp_args_name_1 );
|
|
if ( tmp_assign_source_15 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
assert( tmp_class_creation_1__prepared == NULL );
|
|
tmp_class_creation_1__prepared = tmp_assign_source_15;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_5;
|
|
PyObject *tmp_operand_name_1;
|
|
PyObject *tmp_source_name_3;
|
|
CHECK_OBJECT( tmp_class_creation_1__prepared );
|
|
tmp_source_name_3 = tmp_class_creation_1__prepared;
|
|
tmp_res = PyObject_HasAttr( tmp_source_name_3, const_str_plain___getitem__ );
|
|
tmp_operand_name_1 = ( tmp_res != 0 ) ? Py_True : Py_False;
|
|
tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_condition_result_5 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_3;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_3;
|
|
}
|
|
branch_yes_3:;
|
|
{
|
|
PyObject *tmp_raise_type_1;
|
|
PyObject *tmp_raise_value_1;
|
|
PyObject *tmp_left_name_1;
|
|
PyObject *tmp_right_name_1;
|
|
PyObject *tmp_tuple_element_3;
|
|
PyObject *tmp_getattr_target_1;
|
|
PyObject *tmp_getattr_attr_1;
|
|
PyObject *tmp_getattr_default_1;
|
|
PyObject *tmp_source_name_4;
|
|
PyObject *tmp_type_arg_2;
|
|
tmp_raise_type_1 = PyExc_TypeError;
|
|
tmp_left_name_1 = const_str_digest_75fd71b1edada749c2ef7ac810062295;
|
|
CHECK_OBJECT( tmp_class_creation_1__metaclass );
|
|
tmp_getattr_target_1 = tmp_class_creation_1__metaclass;
|
|
tmp_getattr_attr_1 = const_str_plain___name__;
|
|
tmp_getattr_default_1 = const_str_angle_metaclass;
|
|
tmp_tuple_element_3 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1 );
|
|
if ( tmp_tuple_element_3 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_right_name_1 = PyTuple_New( 2 );
|
|
PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_3 );
|
|
CHECK_OBJECT( tmp_class_creation_1__prepared );
|
|
tmp_type_arg_2 = tmp_class_creation_1__prepared;
|
|
tmp_source_name_4 = BUILTIN_TYPE1( tmp_type_arg_2 );
|
|
assert( !(tmp_source_name_4 == NULL) );
|
|
tmp_tuple_element_3 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain___name__ );
|
|
Py_DECREF( tmp_source_name_4 );
|
|
if ( tmp_tuple_element_3 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_right_name_1 );
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
PyTuple_SET_ITEM( tmp_right_name_1, 1, tmp_tuple_element_3 );
|
|
tmp_raise_value_1 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 );
|
|
Py_DECREF( tmp_right_name_1 );
|
|
if ( tmp_raise_value_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
exception_type = tmp_raise_type_1;
|
|
Py_INCREF( tmp_raise_type_1 );
|
|
exception_value = tmp_raise_value_1;
|
|
exception_lineno = 9;
|
|
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
branch_no_3:;
|
|
}
|
|
goto branch_end_2;
|
|
branch_no_2:;
|
|
{
|
|
PyObject *tmp_assign_source_16;
|
|
tmp_assign_source_16 = PyDict_New();
|
|
assert( tmp_class_creation_1__prepared == NULL );
|
|
tmp_class_creation_1__prepared = tmp_assign_source_16;
|
|
|
|
}
|
|
branch_end_2:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_17;
|
|
{
|
|
PyObject *tmp_set_locals_1;
|
|
CHECK_OBJECT( tmp_class_creation_1__prepared );
|
|
tmp_set_locals_1 = tmp_class_creation_1__prepared;
|
|
locals_html5lib$_trie$py_9 = tmp_set_locals_1;
|
|
Py_INCREF( tmp_set_locals_1 );
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
// Tried code:
|
|
{
|
|
tmp_dictset_value = const_str_digest_53d32d6ef3da269e5e2c883985f7daf5;
|
|
tmp_res = PyObject_SetItem( locals_html5lib$_trie$py_9, const_str_plain___module__, tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = const_str_plain_Trie;
|
|
tmp_res = PyObject_SetItem( locals_html5lib$_trie$py_9, const_str_plain___qualname__, tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
}
|
|
MAKE_OR_REUSE_FRAME( cache_frame_c86e3def807a2a7af36407ba52af97e2_2, codeobj_c86e3def807a2a7af36407ba52af97e2, module_html5lib$_trie$py, sizeof(void *) );
|
|
frame_c86e3def807a2a7af36407ba52af97e2_2 = cache_frame_c86e3def807a2a7af36407ba52af97e2_2;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_c86e3def807a2a7af36407ba52af97e2_2 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_c86e3def807a2a7af36407ba52af97e2_2 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_html5lib$_trie$py$$$function_1___init__( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_html5lib$_trie$py_9, const_str_plain___init__, tmp_dictset_value );
|
|
Py_DECREF( tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 10;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_html5lib$_trie$py$$$function_2___contains__( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_html5lib$_trie$py_9, const_str_plain___contains__, tmp_dictset_value );
|
|
Py_DECREF( tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 19;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_html5lib$_trie$py$$$function_3___len__( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_html5lib$_trie$py_9, const_str_plain___len__, tmp_dictset_value );
|
|
Py_DECREF( tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 22;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_html5lib$_trie$py$$$function_4___iter__( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_html5lib$_trie$py_9, const_str_plain___iter__, tmp_dictset_value );
|
|
Py_DECREF( tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 25;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_html5lib$_trie$py$$$function_5___getitem__( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_html5lib$_trie$py_9, const_str_plain___getitem__, tmp_dictset_value );
|
|
Py_DECREF( tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 28;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_defaults_1;
|
|
tmp_defaults_1 = const_tuple_none_tuple;
|
|
Py_INCREF( tmp_defaults_1 );
|
|
tmp_dictset_value = MAKE_FUNCTION_html5lib$_trie$py$$$function_6_keys( tmp_defaults_1 );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_html5lib$_trie$py_9, const_str_plain_keys, tmp_dictset_value );
|
|
Py_DECREF( tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 31;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_html5lib$_trie$py$$$function_7_has_keys_with_prefix( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_html5lib$_trie$py_9, const_str_plain_has_keys_with_prefix, tmp_dictset_value );
|
|
Py_DECREF( tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 54;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_c86e3def807a2a7af36407ba52af97e2_2 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_exception_exit_2:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_c86e3def807a2a7af36407ba52af97e2_2 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_c86e3def807a2a7af36407ba52af97e2_2, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_c86e3def807a2a7af36407ba52af97e2_2->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_c86e3def807a2a7af36407ba52af97e2_2, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_c86e3def807a2a7af36407ba52af97e2_2,
|
|
type_description_2,
|
|
outline_0_var___class__
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_c86e3def807a2a7af36407ba52af97e2_2 == cache_frame_c86e3def807a2a7af36407ba52af97e2_2 )
|
|
{
|
|
Py_DECREF( frame_c86e3def807a2a7af36407ba52af97e2_2 );
|
|
}
|
|
cache_frame_c86e3def807a2a7af36407ba52af97e2_2 = NULL;
|
|
|
|
assertFrameObject( frame_c86e3def807a2a7af36407ba52af97e2_2 );
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto nested_frame_exit_1;
|
|
|
|
frame_no_exception_1:;
|
|
goto skip_nested_handling_1;
|
|
nested_frame_exit_1:;
|
|
|
|
goto try_except_handler_4;
|
|
skip_nested_handling_1:;
|
|
{
|
|
nuitka_bool tmp_condition_result_6;
|
|
PyObject *tmp_compexpr_left_1;
|
|
PyObject *tmp_compexpr_right_1;
|
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
|
tmp_compexpr_left_1 = tmp_class_creation_1__bases;
|
|
CHECK_OBJECT( tmp_class_creation_1__bases_orig );
|
|
tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig;
|
|
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_1, tmp_compexpr_right_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
tmp_condition_result_6 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_4;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_4;
|
|
}
|
|
branch_yes_4:;
|
|
{
|
|
CHECK_OBJECT( tmp_class_creation_1__bases_orig );
|
|
tmp_dictset_value = tmp_class_creation_1__bases_orig;
|
|
tmp_res = PyObject_SetItem( locals_html5lib$_trie$py_9, const_str_plain___orig_bases__, tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
}
|
|
branch_no_4:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_18;
|
|
PyObject *tmp_called_name_2;
|
|
PyObject *tmp_args_name_2;
|
|
PyObject *tmp_tuple_element_4;
|
|
PyObject *tmp_kw_name_2;
|
|
CHECK_OBJECT( tmp_class_creation_1__metaclass );
|
|
tmp_called_name_2 = tmp_class_creation_1__metaclass;
|
|
tmp_tuple_element_4 = const_str_plain_Trie;
|
|
tmp_args_name_2 = PyTuple_New( 3 );
|
|
Py_INCREF( tmp_tuple_element_4 );
|
|
PyTuple_SET_ITEM( tmp_args_name_2, 0, tmp_tuple_element_4 );
|
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
|
tmp_tuple_element_4 = tmp_class_creation_1__bases;
|
|
Py_INCREF( tmp_tuple_element_4 );
|
|
PyTuple_SET_ITEM( tmp_args_name_2, 1, tmp_tuple_element_4 );
|
|
tmp_tuple_element_4 = locals_html5lib$_trie$py_9;
|
|
Py_INCREF( tmp_tuple_element_4 );
|
|
PyTuple_SET_ITEM( tmp_args_name_2, 2, tmp_tuple_element_4 );
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_kw_name_2 = tmp_class_creation_1__class_decl_dict;
|
|
frame_f3e4731e967f865ef87bc7724a928268->m_frame.f_lineno = 9;
|
|
tmp_assign_source_18 = CALL_FUNCTION( tmp_called_name_2, tmp_args_name_2, tmp_kw_name_2 );
|
|
Py_DECREF( tmp_args_name_2 );
|
|
if ( tmp_assign_source_18 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
assert( outline_0_var___class__ == NULL );
|
|
outline_0_var___class__ = tmp_assign_source_18;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( outline_0_var___class__ );
|
|
tmp_assign_source_17 = outline_0_var___class__;
|
|
Py_INCREF( tmp_assign_source_17 );
|
|
goto try_return_handler_4;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_4:;
|
|
{
|
|
Py_DECREF( locals_html5lib$_trie$py_9 );
|
|
locals_html5lib$_trie$py_9 = NULL;
|
|
}
|
|
{
|
|
goto try_return_handler_3;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_4:;
|
|
exception_keeper_type_2 = exception_type;
|
|
exception_keeper_value_2 = exception_value;
|
|
exception_keeper_tb_2 = exception_tb;
|
|
exception_keeper_lineno_2 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_DECREF( locals_html5lib$_trie$py_9 );
|
|
locals_html5lib$_trie$py_9 = NULL;
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_2;
|
|
exception_value = exception_keeper_value_2;
|
|
exception_tb = exception_keeper_tb_2;
|
|
exception_lineno = exception_keeper_lineno_2;
|
|
|
|
goto try_except_handler_3;
|
|
}
|
|
// End of try:
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_3:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)outline_0_var___class__ );
|
|
Py_DECREF( outline_0_var___class__ );
|
|
outline_0_var___class__ = NULL;
|
|
|
|
}
|
|
{
|
|
goto outline_result_1;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_3:;
|
|
exception_keeper_type_3 = exception_type;
|
|
exception_keeper_value_3 = exception_value;
|
|
exception_keeper_tb_3 = exception_tb;
|
|
exception_keeper_lineno_3 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_3;
|
|
exception_value = exception_keeper_value_3;
|
|
exception_tb = exception_keeper_tb_3;
|
|
exception_lineno = exception_keeper_lineno_3;
|
|
|
|
goto outline_exception_1;
|
|
}
|
|
// End of try:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( html5lib$_trie$py );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
outline_exception_1:;
|
|
exception_lineno = 9;
|
|
goto try_except_handler_2;
|
|
outline_result_1:;
|
|
UPDATE_STRING_DICT1( moduledict_html5lib$_trie$py, (Nuitka_StringObject *)const_str_plain_Trie, tmp_assign_source_17 );
|
|
}
|
|
goto try_end_2;
|
|
// Exception handler code:
|
|
try_except_handler_2:;
|
|
exception_keeper_type_4 = exception_type;
|
|
exception_keeper_value_4 = exception_value;
|
|
exception_keeper_tb_4 = exception_tb;
|
|
exception_keeper_lineno_4 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( tmp_class_creation_1__bases );
|
|
tmp_class_creation_1__bases = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_class_creation_1__class_decl_dict );
|
|
tmp_class_creation_1__class_decl_dict = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_class_creation_1__metaclass );
|
|
tmp_class_creation_1__metaclass = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_class_creation_1__prepared );
|
|
tmp_class_creation_1__prepared = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_4;
|
|
exception_value = exception_keeper_value_4;
|
|
exception_tb = exception_keeper_tb_4;
|
|
exception_lineno = exception_keeper_lineno_4;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_2:;
|
|
}
|
|
|
|
// Restore frame exception if necessary.
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_f3e4731e967f865ef87bc7724a928268 );
|
|
#endif
|
|
popFrameStack();
|
|
|
|
assertFrameObject( frame_f3e4731e967f865ef87bc7724a928268 );
|
|
|
|
goto frame_no_exception_2;
|
|
|
|
frame_exception_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_f3e4731e967f865ef87bc7724a928268 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_f3e4731e967f865ef87bc7724a928268, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_f3e4731e967f865ef87bc7724a928268->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_f3e4731e967f865ef87bc7724a928268, exception_lineno );
|
|
}
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto module_exception_exit;
|
|
|
|
frame_no_exception_2:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__bases );
|
|
Py_DECREF( tmp_class_creation_1__bases );
|
|
tmp_class_creation_1__bases = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__class_decl_dict );
|
|
Py_DECREF( tmp_class_creation_1__class_decl_dict );
|
|
tmp_class_creation_1__class_decl_dict = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__metaclass );
|
|
Py_DECREF( tmp_class_creation_1__metaclass );
|
|
tmp_class_creation_1__metaclass = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__prepared );
|
|
Py_DECREF( tmp_class_creation_1__prepared );
|
|
tmp_class_creation_1__prepared = NULL;
|
|
|
|
}
|
|
|
|
return MOD_RETURN_VALUE( module_html5lib$_trie$py );
|
|
module_exception_exit:
|
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
}
|