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