1 #include "nit.common.h"
2 extern const int COLOR_separate_erasure_compiler__ToolContext___64dopt_erasure
;
3 val
* separate_erasure_compiler__ToolContext__opt_erasure(val
* self
);
4 void separate_erasure_compiler__ToolContext__opt_erasure_61d(val
* self
, val
* p0
);
5 extern const int COLOR_separate_erasure_compiler__ToolContext___64dopt_no_check_erasure_cast
;
6 val
* separate_erasure_compiler__ToolContext__opt_no_check_erasure_cast(val
* self
);
7 void separate_erasure_compiler__ToolContext__opt_no_check_erasure_cast_61d(val
* self
, val
* p0
);
8 extern const int COLOR_separate_erasure_compiler__ToolContext__init
;
9 extern const int COLOR_toolcontext__ToolContext__option_context
;
10 extern const int COLOR_separate_erasure_compiler__ToolContext__opt_erasure
;
11 extern const int COLOR_separate_erasure_compiler__ToolContext__opt_no_check_erasure_cast
;
12 val
* NEW_array__Array(const struct type
* type
);
13 extern const struct type type_array__Arrayopts__Option
;
14 val
* NEW_array__NativeArray(int length
, const struct type
* type
);
15 extern const struct type type_array__NativeArrayopts__Option
;
16 extern const int COLOR_array__Array__with_native
;
17 void CHECK_NEW_array__Array(val
*);
18 extern const int COLOR_opts__OptionContext__add_option
;
19 void separate_erasure_compiler__ToolContext__init(val
* self
);
20 extern const int COLOR_time__Object__get_time
;
21 extern const int COLOR_modelbuilder__ModelBuilder__toolcontext
;
22 val
* string__NativeString__to_s_with_length(char* self
, long p0
);
23 extern const int COLOR_toolcontext__ToolContext__info
;
24 val
* NEW_separate_erasure_compiler__SeparateErasureCompiler(const struct type
* type
);
25 extern const struct type type_separate_erasure_compiler__SeparateErasureCompiler
;
26 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler__init
;
27 void CHECK_NEW_separate_erasure_compiler__SeparateErasureCompiler(val
*);
28 extern const int COLOR_abstract_compiler__AbstractCompiler__compile_header
;
29 extern const int COLOR_model_base__MModule__name
;
30 extern const struct type type_array__Arraykernel__Object
;
31 extern const struct type type_array__NativeArraykernel__Object
;
32 extern const int COLOR_string__Object__to_s
;
33 extern const int COLOR_abstract_compiler__AbstractCompiler__new_file
;
34 extern const int COLOR_separate_compiler__SeparateCompiler__do_property_coloring
;
35 extern const int COLOR_model_base__MModule__in_importation
;
36 extern const int COLOR_poset__POSetElement__greaters
;
37 extern const int COLOR_abstract_collection__Collection__iterator
;
38 extern const int COLOR_abstract_collection__Iterator__is_ok
;
39 extern const int COLOR_abstract_collection__Iterator__item
;
40 extern const int COLOR_model__MModule__intro_mclasses
;
41 extern const int COLOR_separate_compiler__SeparateCompiler__compile_class_to_c
;
42 extern const int COLOR_abstract_collection__Iterator__next
;
43 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler__vt_layout
;
44 extern const int COLOR_layout_builders__Layout__pos
;
45 extern const int COLOR_separate_compiler__SeparateCompiler__compile_color_consts
;
46 extern const int COLOR_abstract_compiler__AbstractCompiler__compile_main_function
;
47 extern const int COLOR_separate_compiler__SeparateCompiler__compile_module_to_c
;
48 extern const int COLOR_abstract_compiler__AbstractCompiler__display_stats
;
49 extern const int COLOR_abstract_compiler__ModelBuilder__write_and_make
;
50 void separate_erasure_compiler__ModelBuilder__run_separate_erasure_compiler(val
* self
, val
* p0
, val
* p1
);
51 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler___64dclass_layout
;
52 val
* separate_erasure_compiler__SeparateErasureCompiler__class_layout(val
* self
);
53 void separate_erasure_compiler__SeparateErasureCompiler__class_layout_61d(val
* self
, val
* p0
);
54 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler___64dvt_layout
;
55 val
* separate_erasure_compiler__SeparateErasureCompiler__vt_layout(val
* self
);
56 void separate_erasure_compiler__SeparateErasureCompiler__vt_layout_61d(val
* self
, val
* p0
);
57 extern const int COLOR_separate_compiler__SeparateCompiler__init
;
58 val
* NEW_hash_collection__HashSet(const struct type
* type
);
59 extern const struct type type_hash_collection__HashSetmodel__MClass
;
60 extern const int COLOR_modelbuilder__ModelBuilder__model
;
61 extern const int COLOR_model__Model__mclasses
;
62 extern const int COLOR_hash_collection__HashSet__from
;
63 void CHECK_NEW_hash_collection__HashSet(val
*);
64 val
* NEW_layout_builders__MClassColorer(const struct type
* type
);
65 extern const struct type type_layout_builders__MClassColorer
;
66 extern const int COLOR_layout_builders__MClassColorer__init
;
67 void CHECK_NEW_layout_builders__MClassColorer(val
*);
68 extern const int COLOR_abstract_compiler__AbstractCompiler__modelbuilder
;
69 extern const int COLOR_separate_compiler__ToolContext__opt_phmod_typing
;
70 extern const int COLOR_opts__Option__value
;
71 val
* NEW_layout_builders__MClassHasher(const struct type
* type
);
72 extern const struct type type_layout_builders__MClassHasher
;
73 val
* NEW_layout_builders__PHModOperator(const struct type
* type
);
74 extern const struct type type_layout_builders__PHModOperator
;
75 extern const int COLOR_layout_builders__PHModOperator__init
;
76 void CHECK_NEW_layout_builders__PHModOperator(val
*);
77 extern const int COLOR_layout_builders__MClassHasher__init
;
78 void CHECK_NEW_layout_builders__MClassHasher(val
*);
79 extern const int COLOR_layout_builders__TypingLayoutBuilder__build_layout
;
80 extern const int COLOR_separate_compiler__ToolContext__opt_phand_typing
;
81 val
* NEW_layout_builders__PHAndOperator(const struct type
* type
);
82 extern const struct type type_layout_builders__PHAndOperator
;
83 extern const int COLOR_layout_builders__PHAndOperator__init
;
84 void CHECK_NEW_layout_builders__PHAndOperator(val
*);
85 extern const int COLOR_separate_compiler__ToolContext__opt_bm_typing
;
86 val
* NEW_layout_builders__MClassBMizer(const struct type
* type
);
87 extern const struct type type_layout_builders__MClassBMizer
;
88 extern const int COLOR_layout_builders__MClassBMizer__init
;
89 void CHECK_NEW_layout_builders__MClassBMizer(val
*);
90 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler__class_layout_61d
;
91 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler__build_class_typing_tables
;
92 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler__class_tables_61d
;
93 val
* NEW_hash_collection__HashMap(const struct type
* type
);
94 extern const struct type type_hash_collection__HashMapmodel__MClassabstract_collection__Setmodel__MVirtualTypeProp
;
95 extern const int COLOR_hash_collection__HashMap__init
;
96 void CHECK_NEW_hash_collection__HashMap(val
*);
97 extern const struct type type_hash_collection__HashSetmodel__MVirtualTypeProp
;
98 extern const int COLOR_hash_collection__HashSet__init
;
99 extern const int COLOR_abstract_collection__Map___91d_93d_61d
;
100 extern const int COLOR_abstract_compiler__AbstractCompiler__mainmodule
;
101 extern const int COLOR_abstract_compiler__MModule__properties
;
102 extern const struct type type_model__MVirtualTypeProp
;
103 extern const int COLOR_abstract_collection__MapRead___91d_93d
;
104 extern const int COLOR_abstract_collection__SimpleCollection__add
;
105 val
* NEW_layout_builders__MPropertyColorer(const struct type
* type
);
106 extern const struct type type_layout_builders__MPropertyColorermodel__MVirtualTypeProp
;
107 extern const int COLOR_layout_builders__MPropertyColorer__init
;
108 void CHECK_NEW_layout_builders__MPropertyColorer(val
*);
109 extern const int COLOR_layout_builders__PropertyLayoutBuilder__build_layout
;
110 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler__build_vt_tables
;
111 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler__vt_tables_61d
;
112 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler__vt_layout_61d
;
113 void separate_erasure_compiler__SeparateErasureCompiler__init(val
* self
, val
* p0
, val
* p1
, val
* p2
);
114 extern const struct type type_hash_collection__HashMapmodel__MClassarray__Arraynullable_model__MPropDef
;
115 extern const struct type type_array__Arraynullable_model__MPropDef
;
116 extern const int COLOR_array__Array__init
;
117 extern const struct type type_array__Arraymodel__MClass
;
118 extern const int COLOR_model__MModule__flatten_mclass_hierarchy
;
119 extern const int COLOR_abstract_collection__Collection__has
;
120 extern const int COLOR_model__MClass__in_hierarchy
;
121 extern const int COLOR_array__Collection__to_a
;
122 extern const int COLOR_model__MModule__linearize_mclasses
;
123 extern const int COLOR_kernel__Object___61d_61d
;
124 extern const int COLOR_abstract_collection__Collection__length
;
125 extern const struct type type_kernel__Int
;
126 val
* NEW_range__Range(const struct type
* type
);
127 extern const struct type type_range__Rangekernel__Int
;
128 extern const int COLOR_range__Range__without_last
;
129 void CHECK_NEW_range__Range(val
*);
130 extern const int COLOR_abstract_collection__Sequence___91d_93d_61d
;
131 extern const int COLOR_model__MProperty__mpropdefs
;
132 extern const int COLOR_model__MPropDef__mclassdef
;
133 extern const int COLOR_model__MClassDef__mclass
;
134 val
* separate_erasure_compiler__SeparateErasureCompiler__build_vt_tables(val
* self
, val
* p0
, val
* p1
);
135 extern const struct type type_hash_collection__HashMapmodel__MClassarray__Arraynullable_model__MClass
;
136 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler__class_layout
;
137 extern const struct type type_array__Arraynullable_model__MClass
;
138 extern const struct type type_layout_builders__PHLayoutmodel__MClassmodel__MClass
;
139 extern const int COLOR_layout_builders__PHLayout__hashes
;
140 val
* separate_erasure_compiler__SeparateErasureCompiler__build_class_typing_tables(val
* self
, val
* p0
);
141 extern const int COLOR_abstract_compiler__AbstractCompiler__header
;
142 extern const int COLOR_abstract_compiler__CodeWriter__add_decl
;
143 extern const int COLOR_separate_compiler__SeparateCompiler__compile_header_attribute_structs
;
144 extern const struct type type_layout_builders__PHLayoutmodel__MClassmodel__MVirtualTypeProp
;
145 void separate_erasure_compiler__SeparateErasureCompiler__compile_header_structs(val
* self
);
146 extern const int COLOR_model__MClass__intro
;
147 extern const int COLOR_model__MClassDef__bound_mtype
;
148 extern const int COLOR_abstract_compiler__MClass__c_name
;
149 extern const int COLOR_separate_compiler__SeparateCompiler__method_tables
;
150 extern const int COLOR_separate_compiler__SeparateCompiler__attr_tables
;
151 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler__class_tables
;
152 extern const int COLOR_abstract_compiler__AbstractCompiler__new_visitor
;
153 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__add_decl
;
154 extern const int COLOR_abstract_compiler__AbstractCompiler__provide_declaration
;
155 extern const int COLOR_layout_builders__Layout__ids
;
156 extern const int COLOR_model__MClass__name
;
157 extern const int COLOR_separate_compiler__SeparateCompiler__box_kind_of
;
158 extern const int COLOR_layout_builders__PHLayout__masks
;
159 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler__build_class_vts_table
;
160 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__require_declaration
;
161 extern const int COLOR_abstract_collection__SequenceRead___91d_93d
;
162 extern const int COLOR_abstract_compiler__MType__ctype
;
163 extern const int COLOR_kernel__Object___33d_61d
;
164 extern const int COLOR_abstract_compiler__MPropDef__c_name
;
165 extern const int COLOR_model__MClass__intro_mmodule
;
166 extern const int COLOR_abstract_compiler__MType__c_name
;
167 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__add
;
168 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__new_named_var
;
169 extern const int COLOR_abstract_compiler__RuntimeVariable__is_exact_61d
;
170 extern const int COLOR_model__MClassType__arguments
;
171 extern const int COLOR_abstract_collection__Collection__first
;
172 extern const int COLOR_abstract_compiler__AbstractCompiler__generate_init_attr
;
173 extern const int COLOR_abstract_compiler__AbstractCompiler__generate_check_init_instance
;
174 void separate_erasure_compiler__SeparateErasureCompiler__compile_class_to_c(val
* self
, val
* p0
);
175 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler__vt_tables
;
176 extern const int COLOR_abstract_collection__Collection__is_empty
;
177 extern const struct type type_model__MVirtualTypeDef
;
178 extern const int COLOR_model__MVirtualTypeDef__bound
;
179 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler__retrieve_vt_bound
;
180 extern const struct type type_model__MNullableType
;
181 extern const int COLOR_model__MNullableType__mtype
;
182 extern const struct type type_model__MClassType
;
183 extern const int COLOR_model__MClassType__mclass
;
184 short int separate_erasure_compiler__SeparateErasureCompiler__build_class_vts_table(val
* self
, val
* p0
);
185 extern const int COLOR_file__Object__print
;
186 extern const struct type type_model__MVirtualType
;
187 extern const int COLOR_model__MType__anchor_to
;
188 extern const struct type type_model__MParameterType
;
189 val
* separate_erasure_compiler__SeparateErasureCompiler__retrieve_vt_bound(val
* self
, val
* p0
, val
* p1
);
190 val
* NEW_separate_erasure_compiler__SeparateErasureCompilerVisitor(const struct type
* type
);
191 extern const struct type type_separate_erasure_compiler__SeparateErasureCompilerVisitor
;
192 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__init
;
193 void CHECK_NEW_separate_erasure_compiler__SeparateErasureCompilerVisitor(val
*);
194 extern const int COLOR_abstract_compiler__AbstractCompiler_VTVISITOR
;
195 val
* separate_erasure_compiler__SeparateErasureCompiler__new_visitor(val
* self
);
196 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler___64dclass_tables
;
197 val
* separate_erasure_compiler__SeparateErasureCompiler__class_tables(val
* self
);
198 void separate_erasure_compiler__SeparateErasureCompiler__class_tables_61d(val
* self
, val
* p0
);
199 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompiler___64dvt_tables
;
200 val
* separate_erasure_compiler__SeparateErasureCompiler__vt_tables(val
* self
);
201 void separate_erasure_compiler__SeparateErasureCompiler__vt_tables_61d(val
* self
, val
* p0
);
202 extern const int COLOR_abstract_collection__MapRead__iterator
;
203 extern const int COLOR_abstract_collection__MapIterator__is_ok
;
204 extern const int COLOR_abstract_collection__MapIterator__key
;
205 extern const int COLOR_abstract_collection__MapIterator__item
;
206 extern const int COLOR_abstract_collection__MapIterator__next
;
207 void separate_erasure_compiler__SeparateErasureCompiler__display_sizes(val
* self
);
208 extern const int COLOR_separate_erasure_compiler__SeparateErasureCompilerVisitor__compile_callsite
;
209 extern const int COLOR_typing__CallSite__erasure_cast
;
210 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__compiler
;
211 extern const int COLOR_typing__CallSite__msignature
;
212 extern const int COLOR_model__MSignature__return_mtype
;
213 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__type_test
;
214 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__add_abort
;
215 val
* separate_erasure_compiler__SeparateErasureCompilerVisitor__compile_callsite(val
* self
, val
* p0
, val
* p1
);
216 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__new_expr
;
217 val
* separate_erasure_compiler__SeparateErasureCompilerVisitor__init_instance(val
* self
, val
* p0
);
218 extern const int COLOR_string__Object__inspect
;
219 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__bool_type
;
220 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__new_var
;
221 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__get_name
;
222 extern const int COLOR_separate_compiler__SeparateCompilerVisitor__maybe_null
;
223 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__frame
;
224 extern const int COLOR_abstract_compiler__Frame__mpropdef
;
225 extern const int COLOR_model__MClassDef__mmodule
;
226 extern const int COLOR_model__MType__resolve_for
;
227 extern const int COLOR_abstract_compiler__RuntimeVariable__mcasttype
;
228 extern const int COLOR_model__MType__is_subtype
;
229 extern const int COLOR_abstract_compiler__ToolContext__opt_typing_test_metrics
;
230 extern const int COLOR_abstract_compiler__AbstractCompiler__count_type_test_skipped
;
231 extern const int COLOR_abstract_compiler__RuntimeVariable__mtype
;
232 extern const int COLOR_array__Array__with_capacity
;
233 extern const int COLOR_abstract_compiler__AbstractCompiler__count_type_test_resolved
;
234 extern const int COLOR_abstract_compiler__Frame__arguments
;
235 extern const int COLOR_model__MVirtualType__mproperty
;
236 extern const int COLOR_separate_compiler__MProperty__const_color
;
237 extern const int COLOR_abstract_compiler__AbstractCompiler__count_type_test_unresolved
;
238 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__debug
;
239 val
* separate_erasure_compiler__SeparateErasureCompilerVisitor__type_test(val
* self
, val
* p0
, val
* p1
, val
* p2
);
240 val
* separate_erasure_compiler__SeparateErasureCompilerVisitor__class_name_string(val
* self
, val
* p0
);
241 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__get_class
;
242 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__anchor
;
243 extern const struct type type_array__Arraymodel__MType
;
244 extern const struct type type_array__NativeArraymodel__MType
;
245 extern const int COLOR_model__MClass__get_mtype
;
246 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__init_instance
;
247 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__object_type
;
248 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__autobox
;
249 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__int_instance
;
250 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__get_property
;
251 extern const struct type type_array__Arrayabstract_compiler__RuntimeVariable
;
252 extern const struct type type_array__NativeArrayabstract_compiler__RuntimeVariable
;
253 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__send
;
254 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__check_init_instance
;
255 val
* separate_erasure_compiler__SeparateErasureCompilerVisitor__array_instance(val
* self
, val
* p0
, val
* p1
);
256 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__ret
;
257 void separate_erasure_compiler__SeparateErasureCompilerVisitor__calloc_array(val
* self
, val
* p0
, val
* p1
);