1 #include "py/emitglue.h"
2 #include "py/mpconfig.h"
3 #include "py/objint.h"
4 #include "py/objstr.h"
5 
6 #if MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE != 0
7 #error "incompatible MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE"
8 #endif
9 
10 #if MICROPY_PY_BUILTINS_FLOAT
11 typedef struct _mp_obj_float_t {
12     mp_obj_base_t base;
13     mp_float_t value;
14 } mp_obj_float_t;
15 #endif
16 
17 #if MICROPY_PY_BUILTINS_COMPLEX
18 typedef struct _mp_obj_complex_t {
19     mp_obj_base_t base;
20     mp_float_t real;
21     mp_float_t imag;
22 } mp_obj_complex_t;
23 #endif
24 
25 enum {
26     MP_QSTR_uPy = MP_QSTRnumber_of,
27     MP_QSTR_i,
28     MP_QSTR_frozentest_dot_py,
29 };
30 
31 extern const qstr_pool_t mp_qstr_const_pool;
32 const qstr_pool_t mp_qstr_frozen_const_pool = {
33     (qstr_pool_t *)&mp_qstr_const_pool,  // previous pool
34     MP_QSTRnumber_of,                    // previous pool size
35     3,                                   // allocated entries
36     3,                                   // used entries
37     {
38         (const byte *)"\xf9\x03"
39                       "uPy",
40         (const byte *)"\xcc\x01"
41                       "i",
42         (const byte *)"\xfe\x0d"
43                       "frozentest.py",
44     },
45 };
46 
47 // frozen bytecode for file frozentest.py, scope frozentest_<module>
48 STATIC const fun_data_frozentest__lt_module_gt_[92] = {
49     0x03,
50     0x00,
51     0x20,
52     0x00,
53     0x00,
54     0x00,
55     0x0d,
56     MP_QSTR__lt_module_gt_ & 0xff,
57     MP_QSTR__lt_module_gt_ >> 8,
58     MP_QSTR_frozentest_dot_py & 0xff,
59     MP_QSTR_frozentest_dot_py >> 8,
60     0x2a,
61     0x28,
62     0x28,
63     0x28,
64     0x2b,
65     0x28,
66     0x00,
67     0x00,
68     0xff,
69     0x1b,
70     MP_QSTR_print & 0xff,
71     MP_QSTR_print >> 8,
72     0x16,
73     MP_QSTR_uPy & 0xff,
74     MP_QSTR_uPy >> 8,
75     0x64,
76     0x01,
77     0x32,
78     0x1b,
79     MP_QSTR_print & 0xff,
80     MP_QSTR_print >> 8,
81     0x17,
82     0x00,
83     0x64,
84     0x01,
85     0x32,
86     0x1b,
87     MP_QSTR_print & 0xff,
88     MP_QSTR_print >> 8,
89     0x17,
90     0x01,
91     0x64,
92     0x01,
93     0x32,
94     0x1b,
95     MP_QSTR_print & 0xff,
96     MP_QSTR_print >> 8,
97     0x17,
98     0x02,
99     0x64,
100     0x01,
101     0x32,
102     0x1b,
103     MP_QSTR_print & 0xff,
104     MP_QSTR_print >> 8,
105     0x14,
106     0xba,
107     0xef,
108     0x9a,
109     0x15,
110     0x64,
111     0x01,
112     0x32,
113     0x80,
114     0x35,
115     0x0f,
116     0x80,
117     0x30,
118     0x24,
119     MP_QSTR_i & 0xff,
120     MP_QSTR_i >> 8,
121     0x1b,
122     MP_QSTR_print & 0xff,
123     MP_QSTR_print >> 8,
124     0x1b,
125     MP_QSTR_i & 0xff,
126     MP_QSTR_i >> 8,
127     0x64,
128     0x01,
129     0x32,
130     0x81,
131     0xe5,
132     0x30,
133     0x84,
134     0xd7,
135     0x36,
136     0xeb,
137     0x7f,
138     0x32,
139     0x11,
140     0x5b,
141 };
142 STATIC const mp_obj_str_t const_obj_frozentest__lt_module_gt__0 = {
143     { &mp_type_str },
144     246,
145     34,
146     (const byte*)"\x61\x20\x6c\x6f\x6e\x67\x20\x73\x74\x72\x69\x6e\x67\x20"
147                   "\x74\x68\x61\x74\x20\x69\x73\x20\x6e\x6f\x74\x20\x69\x6e"
148                   "\x74\x65\x72\x6e\x65\x64"
149 };
150 STATIC const mp_obj_str_t const_obj_frozentest__lt_module_gt__1 = {
151     { &mp_type_str },
152     200,
153     38,
154     (const byte*)"\x61\x20\x73\x74\x72\x69\x6e\x67\x20\x74\x68\x61\x74\x20"
155                   "\x68\x61\x73\x20\x75\x6e\x69\x63\x6f\x64\x65\x20\xce\xb1"
156                   "\xce\xb2\xce\xb3\x20\x63\x68\x61\x72\x73"
157 };
158 STATIC const mp_obj_str_t const_obj_frozentest__lt_module_gt__2 = {
159     { &mp_type_bytes },
160     57,
161     11,
162     (const byte *)"\x62\x79\x74\x65\x73\x20\x31\x32\x33\x34\x01"
163 };
164 STATIC const mp_rom_obj_t const_table_data_frozentest__lt_module_gt_[3] = {
165     MP_ROM_PTR(&const_obj_frozentest__lt_module_gt__0),
166     MP_ROM_PTR(&const_obj_frozentest__lt_module_gt__1),
167     MP_ROM_PTR(&const_obj_frozentest__lt_module_gt__2),
168 };
169 const mp_raw_code_t raw_code_frozentest__lt_module_gt_ = {
170     .kind = MP_CODE_BYTECODE,
171     .scope_flags = 0x20,
172     .n_pos_args = 0,
173     .fun_data = fun_data_frozentest__lt_module_gt_,
174     .const_table = (mp_uint_t *)const_table_data_frozentest__lt_module_gt_,
175 #if MICROPY_PERSISTENT_CODE_SAVE
176     .fun_data_len = 92,
177     .n_obj = 3,
178     .n_raw_code = 0,
179 #if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM
180     .prelude_offset = 0,
181     .n_qstr = 0,
182     .qstr_link = NULL,
183 #endif
184 #endif
185 #if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM
186     .type_sig = 0,
187 #endif
188 };
189 
190 const char mp_frozen_mpy_names[] = {
191     "frozentest.py\0"
192     "\0"
193 };
194 const mp_raw_code_t *const mp_frozen_mpy_content[] = {
195     &raw_code_frozentest__lt_module_gt_,
196 };
197