1 #include "nit.common.h"
2 #define COLOR_separate_erasure_compiler__ToolContext___opt_erasure 78
3 #define COLOR_separate_erasure_compiler__ToolContext___opt_rta 79
4 #define COLOR_separate_erasure_compiler__ToolContext___opt_no_check_erasure_cast 80
5 #define COLOR_separate_erasure_compiler__ToolContext__init 134
6 #define COLOR_toolcontext__ToolContext___option_context 5
7 val
* NEW_array__Array(const struct type
* type
);
8 extern const struct type type_array__Arrayopts__Option
;
9 val
* NEW_array__NativeArray(int length
, const struct type
* type
);
10 extern const struct type type_array__NativeArrayopts__Option
;
11 #define COLOR_array__Array__with_native 74
12 void opts__OptionContext__add_option(val
* self
, val
* p0
);
13 void separate_erasure_compiler__ToolContext__init(val
* self
);
14 #define COLOR_separate_erasure_compiler__ToolContext__process_options 137
15 #define COLOR_abstract_compiler__ToolContext___opt_no_check_all 59
16 #define COLOR_opts__Option___value 6
17 #define COLOR_opts__Option_VTVALUE 0
18 extern const struct type type_kernel__Bool
;
19 val
* BOX_kernel__Bool(short int);
20 void separate_erasure_compiler__ToolContext__process_options(val
* self
, val
* p0
);
21 #define COLOR_phase__Phase___toolcontext 0
22 val
* modelbuilder__ToolContext__modelbuilder(val
* self
);
23 val
* rapid_type_analysis__ModelBuilder__do_rapid_type_analysis(val
* self
, val
* p0
);
24 void separate_erasure_compiler__ModelBuilder__run_separate_erasure_compiler(val
* self
, val
* p0
, val
* p1
);
25 void separate_erasure_compiler__ErasureCompilerPhase__process_mainmodule(val
* self
, val
* p0
, val
* p1
);
27 #define COLOR_modelbuilder__ModelBuilder___toolcontext 1
28 val
* string__NativeString__to_s_with_length(char* self
, long p0
);
29 void toolcontext__ToolContext__info(val
* self
, val
* p0
, long p1
);
30 val
* NEW_separate_erasure_compiler__SeparateErasureCompiler(const struct type
* type
);
31 extern const struct type type_separate_erasure_compiler__SeparateErasureCompiler
;
32 void separate_erasure_compiler__SeparateErasureCompiler__init(val
* self
, val
* p0
, val
* p1
, val
* p2
);
33 void abstract_compiler__AbstractCompiler__compile_header(val
* self
);
34 #define COLOR_mmodule__MModule___name 4
35 extern const struct type type_array__Arraykernel__Object
;
36 extern const struct type type_array__NativeArraykernel__Object
;
37 #define COLOR_string__Object__to_s 9
38 val
* abstract_compiler__AbstractCompiler__new_file(val
* self
, val
* p0
);
39 void separate_compiler__SeparateCompiler__do_property_coloring(val
* self
);
40 #define COLOR_mmodule__MModule___in_importation 7
41 val
* poset__POSetElement__greaters(val
* self
);
42 #define COLOR_abstract_collection__Collection__iterator 37
43 #define COLOR_abstract_collection__Iterator__is_ok 33
44 #define COLOR_abstract_collection__Iterator__item 31
45 #define COLOR_model__MModule___intro_mclasses 12
46 val
* array__AbstractArrayRead__iterator(val
* self
);
47 short int array__ArrayIterator__is_ok(val
* self
);
48 val
* array__ArrayIterator__item(val
* self
);
49 void separate_erasure_compiler__SeparateErasureCompiler__compile_class_to_c(val
* self
, val
* p0
);
50 void array__ArrayIterator__next(val
* self
);
51 #define COLOR_abstract_collection__Iterator__next 32
52 #define COLOR_separate_erasure_compiler__SeparateErasureCompiler___vt_colors 33
53 void separate_compiler__SeparateCompiler__compile_color_consts(val
* self
, val
* p0
);
54 void abstract_compiler__AbstractCompiler__compile_nitni_global_ref_functions(val
* self
);
55 void abstract_compiler__AbstractCompiler__compile_main_function(val
* self
);
56 void separate_compiler__SeparateCompiler__compile_module_to_c(val
* self
, val
* p0
);
57 void separate_compiler__SeparateCompiler__display_stats(val
* self
);
58 extern const struct type type_kernel__Int
;
59 val
* BOX_kernel__Int(long);
60 void abstract_compiler__ModelBuilder__write_and_make(val
* self
, val
* p0
);
61 #define COLOR_separate_erasure_compiler__SeparateErasureCompiler___class_ids 31
62 #define COLOR_separate_erasure_compiler__SeparateErasureCompiler___class_colors 32
63 void separate_compiler__SeparateCompiler__init(val
* self
, val
* p0
, val
* p1
, val
* p2
);
64 val
* model__MModule__flatten_mclass_hierarchy(val
* self
);
65 val
* NEW_hash_collection__HashSet(const struct type
* type
);
66 extern const struct type type_hash_collection__HashSetmodel__MClass
;
67 void hash_collection__HashSet__from(val
* self
, val
* p0
);
68 val
* NEW_coloring__POSetColorer(const struct type
* type
);
69 extern const struct type type_coloring__POSetColorermodel__MClass
;
70 #define COLOR_kernel__Object__init 7
71 void coloring__POSetColorer__colorize(val
* self
, val
* p0
);
72 val
* coloring__POSetColorer__ids(val
* self
);
73 val
* coloring__POSetColorer__colors(val
* self
);
74 val
* separate_erasure_compiler__SeparateErasureCompiler__build_class_typing_tables(val
* self
, val
* p0
);
75 #define COLOR_separate_erasure_compiler__SeparateErasureCompiler___class_tables 34
76 val
* NEW_hash_collection__HashMap(const struct type
* type
);
77 extern const struct type type_hash_collection__HashMapmodel__MClassabstract_collection__Setmodel__MVirtualTypeProp
;
78 val
* hash_collection__HashSet__iterator(val
* self
);
79 extern const struct type type_hash_collection__HashSetmodel__MVirtualTypeProp
;
80 void hash_collection__HashMap___91d_93d_61d(val
* self
, val
* p0
, val
* p1
);
81 #define COLOR_abstract_compiler__AbstractCompiler___mainmodule 1
82 val
* abstract_compiler__MModule__properties(val
* self
, val
* p0
);
83 extern const struct type type_model__MVirtualTypeProp
;
84 val
* hash_collection__HashMap___91d_93d(val
* self
, val
* p0
);
85 #define COLOR_abstract_collection__SimpleCollection__add 58
86 val
* NEW_coloring__POSetBucketsColorer(const struct type
* type
);
87 extern const struct type type_coloring__POSetBucketsColorermodel__MClassmodel__MVirtualTypeProp
;
88 val
* coloring__POSetColorer__conflicts(val
* self
);
89 void coloring__POSetBucketsColorer__init(val
* self
, val
* p0
, val
* p1
);
90 val
* coloring__POSetBucketsColorer__colorize(val
* self
, val
* p0
);
91 val
* separate_erasure_compiler__SeparateErasureCompiler__build_vt_tables(val
* self
, val
* p0
);
92 #define COLOR_separate_erasure_compiler__SeparateErasureCompiler___vt_tables 35
93 extern const struct type type_hash_collection__HashMapmodel__MClassarray__Arraynullable_model__MPropDef
;
94 extern const struct type type_array__Arraynullable_model__MPropDef
;
95 extern const struct type type_array__Arraymodel__MClass
;
96 short int poset__POSet__has(val
* self
, val
* p0
);
97 val
* model__MClass__in_hierarchy(val
* self
, val
* p0
);
98 val
* array__Collection__to_a(val
* self
);
99 void model__MModule__linearize_mclasses(val
* self
, val
* p0
);
100 #define COLOR_abstract_collection__MapRead___91d_93d 31
101 #define COLOR_array__AbstractArrayRead___length 0
102 void array__Array___91d_93d_61d(val
* self
, long p0
, val
* p1
);
103 long kernel__Int__successor(long self
, long p0
);
104 #define COLOR_model__MProperty___mpropdefs 5
105 #define COLOR_model__MPropDef___mclassdef 3
106 #define COLOR_model__MClassDef___mclass 3
107 extern const struct type type_hash_collection__HashMapmodel__MClassarray__Arraynullable_model__MClass
;
108 extern const struct type type_array__Arraynullable_model__MClass
;
109 #define COLOR_abstract_compiler__AbstractCompiler___header 5
110 void abstract_compiler__CodeWriter__add_decl(val
* self
, val
* p0
);
111 void separate_compiler__SeparateCompiler__compile_header_attribute_structs(val
* self
);
112 void separate_erasure_compiler__SeparateErasureCompiler__compile_header_structs(val
* self
);
113 #define COLOR_model__MClass___intro 9
114 #define COLOR_model__MClassDef___bound_mtype 4
115 val
* abstract_compiler__MClass__c_name(val
* self
);
116 #define COLOR_separate_compiler__SeparateCompiler___method_tables 27
117 #define COLOR_separate_compiler__SeparateCompiler___attr_tables 28
118 val
* separate_erasure_compiler__SeparateErasureCompiler__new_visitor(val
* self
);
119 #define COLOR_separate_compiler__SeparateCompiler___runtime_type_analysis 15
120 #define COLOR_kernel__Object___61d_61d 2
121 #define COLOR_rapid_type_analysis__RapidTypeAnalysis___live_classes 4
122 short int hash_collection__HashSet__has(val
* self
, val
* p0
);
123 val
* abstract_compiler__MClassType__ctype(val
* self
);
124 short int string__FlatString___61d_61d(val
* self
, val
* p0
);
125 #define COLOR_model__MClass___name 3
126 void abstract_compiler__AbstractCompilerVisitor__add_decl(val
* self
, val
* p0
);
127 void abstract_compiler__AbstractCompiler__provide_declaration(val
* self
, val
* p0
, val
* p1
);
128 long separate_compiler__SeparateCompiler__box_kind_of(val
* self
, val
* p0
);
129 short int separate_erasure_compiler__SeparateErasureCompiler__build_class_vts_table(val
* self
, val
* p0
);
130 void abstract_compiler__AbstractCompilerVisitor__require_declaration(val
* self
, val
* p0
);
131 val
* array__Array___91d_93d(val
* self
, long p0
);
132 extern const struct type type_model__MMethodDef
;
133 #define COLOR_rapid_type_analysis__RapidTypeAnalysis___live_methoddefs 7
134 #define COLOR_model__MClass___intro_mmodule 2
135 val
* abstract_compiler__MPropDef__c_name(val
* self
);
136 #define COLOR_model__MClassType___mclass 4
137 #define COLOR_abstract_compiler__MType__c_name 55
138 void abstract_compiler__AbstractCompilerVisitor__add(val
* self
, val
* p0
);
139 void abstract_compiler__AbstractCompilerVisitor__add_abort(val
* self
, val
* p0
);
140 val
* abstract_compiler__AbstractCompilerVisitor__new_named_var(val
* self
, val
* p0
, val
* p1
);
141 #define COLOR_abstract_compiler__RuntimeVariable___is_exact 3
142 val
* abstract_compiler__AbstractCompilerVisitor__get_name(val
* self
, val
* p0
);
143 #define COLOR_model__MClassType___arguments 5
144 val
* abstract_collection__SequenceRead__first(val
* self
);
145 #define COLOR_abstract_compiler__MType__ctype 52
146 #define COLOR_model__MClass___kind 6
147 val
* model__Object__extern_kind(val
* self
);
148 #define COLOR_model__MModule___pointer_type 16
149 val
* model__MModule__get_primitive_class(val
* self
, val
* p0
);
150 #define COLOR_model__MClass___mclass_type 10
151 void abstract_compiler__AbstractCompiler__generate_init_attr(val
* self
, val
* p0
, val
* p1
, val
* p2
);
152 void abstract_compiler__AbstractCompilerVisitor__set_finalizer(val
* self
, val
* p0
);
153 short int array__AbstractArrayRead__is_empty(val
* self
);
154 extern const struct type type_model__MVirtualTypeDef
;
155 #define COLOR_model__MVirtualTypeDef___bound 8
156 val
* separate_erasure_compiler__SeparateErasureCompiler__retrieve_vt_bound(val
* self
, val
* p0
, val
* p1
);
157 extern const struct type type_model__MNullableType
;
158 #define COLOR_model__MNullableType___mtype 4
159 extern const struct type type_model__MClassType
;
160 void file__Object__print(val
* self
, val
* p0
);
161 extern const struct type type_model__MVirtualType
;
162 val
* model__MType__anchor_to(val
* self
, val
* p0
, val
* p1
);
163 extern const struct type type_model__MParameterType
;
164 val
* NEW_separate_erasure_compiler__SeparateErasureCompilerVisitor(const struct type
* type
);
165 extern const struct type type_separate_erasure_compiler__SeparateErasureCompilerVisitor
;
166 void abstract_compiler__AbstractCompilerVisitor__init(val
* self
, val
* p0
);
167 #define COLOR_abstract_compiler__AbstractCompiler_VTVISITOR 0
168 #define COLOR_abstract_collection__MapRead__iterator 34
169 #define COLOR_abstract_collection__MapIterator__is_ok 34
170 #define COLOR_abstract_collection__MapIterator__key 32
171 #define COLOR_abstract_collection__MapIterator__item 31
172 #define COLOR_abstract_collection__MapIterator__next 33
173 void separate_erasure_compiler__SeparateErasureCompiler__display_sizes(val
* self
);
174 #define COLOR_separate_erasure_compiler__SeparateErasureCompilerVisitor__compile_callsite 114
175 #define COLOR_typing__CallSite___erasure_cast 8
176 #define COLOR_abstract_compiler__AbstractCompilerVisitor___compiler 0
177 #define COLOR_abstract_compiler__AbstractCompiler___modelbuilder 3
178 #define COLOR_typing__CallSite___msignature 7
179 #define COLOR_model__MSignature___return_mtype 5
180 val
* separate_erasure_compiler__SeparateErasureCompilerVisitor__type_test(val
* self
, val
* p0
, val
* p1
, val
* p2
);
181 val
* separate_erasure_compiler__SeparateErasureCompilerVisitor__compile_callsite(val
* self
, val
* p0
, val
* p1
);
182 val
* abstract_compiler__AbstractCompilerVisitor__new_expr(val
* self
, val
* p0
, val
* p1
);
183 val
* separate_erasure_compiler__SeparateErasureCompilerVisitor__init_instance(val
* self
, val
* p0
);
184 val
* abstract_compiler__RuntimeVariable__inspect(val
* self
);
185 val
* abstract_compiler__AbstractCompilerVisitor__bool_type(val
* self
);
186 val
* abstract_compiler__AbstractCompilerVisitor__new_var(val
* self
, val
* p0
);
187 short int separate_compiler__SeparateCompilerVisitor__maybe_null(val
* self
, val
* p0
);
188 #define COLOR_abstract_compiler__AbstractCompilerVisitor___frame 2
189 #define COLOR_abstract_compiler__Frame___mpropdef 1
190 #define COLOR_model__MClassDef___mmodule 2
191 val
* model__MParameterType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
);
192 #define COLOR_abstract_compiler__RuntimeVariable___mcasttype 2
193 short int model__MType__is_subtype(val
* self
, val
* p0
, val
* p1
, val
* p2
);
194 #define COLOR_abstract_compiler__ToolContext___opt_typing_test_metrics 60
195 #define COLOR_abstract_compiler__AbstractCompiler___count_type_test_skipped 14
196 #define COLOR_abstract_compiler__RuntimeVariable___mtype 1
197 #define COLOR_abstract_compiler__AbstractCompiler___count_type_test_resolved 12
198 #define COLOR_abstract_compiler__Frame___arguments 3
199 #define COLOR_model__MVirtualType___mproperty 4
200 val
* separate_compiler__MProperty__const_color(val
* self
);
201 val
* string__String__to_s(val
* self
);
202 #define COLOR_abstract_compiler__AbstractCompiler___count_type_test_unresolved 13
203 void abstract_compiler__AbstractCompilerVisitor__debug(val
* self
, val
* p0
);
204 val
* abstract_compiler__AbstractCompilerVisitor__new_var_extern(val
* self
, val
* p0
);
205 val
* separate_erasure_compiler__SeparateErasureCompilerVisitor__unbox_extern(val
* self
, val
* p0
, val
* p1
);
206 #define COLOR_rapid_type_analysis__RapidTypeAnalysis___live_types 2
207 val
* separate_erasure_compiler__SeparateErasureCompilerVisitor__box_extern(val
* self
, val
* p0
, val
* p1
);
208 val
* separate_erasure_compiler__SeparateErasureCompilerVisitor__class_name_string(val
* self
, val
* p0
);
209 val
* abstract_compiler__AbstractCompilerVisitor__get_class(val
* self
, val
* p0
);
210 extern const struct type type_array__Arraymodel__MType
;
211 void array__Array__with_capacity(val
* self
, long p0
);
212 void array__AbstractArray__push(val
* self
, val
* p0
);
213 val
* model__MClass__get_mtype(val
* self
, val
* p0
);
214 val
* separate_erasure_compiler__SeparateErasureCompilerVisitor__native_array_instance(val
* self
, val
* p0
, val
* p1
);
215 void abstract_compiler__AbstractCompilerVisitor__ret(val
* self
, val
* p0
);
216 void separate_erasure_compiler__SeparateErasureCompilerVisitor__calloc_array(val
* self
, val
* p0
, val
* p1
);