1 #include "nit.common.h"
2 #define COLOR_nitc__separate_erasure_compiler__ToolContext___opt_erasure 54
3 extern const char FILE_nitc__separate_erasure_compiler
[];
4 #define COLOR_nitc__separate_erasure_compiler__ToolContext___opt_rta 55
5 #define COLOR_nitc__separate_erasure_compiler__ToolContext___opt_no_check_erasure_cast 56
6 #define COLOR_nitc__separate_erasure_compiler___ToolContext___core__kernel__Object__init 141
7 #define COLOR_nitc__toolcontext__ToolContext___option_context 15
8 extern const char FILE_nitc__toolcontext
[];
9 val
* NEW_core__Array(const struct type
* type
);
10 extern const struct type type_core__Array__opts__Option
;
11 val
* NEW_core__NativeArray(int length
, const struct type
* type
);
12 extern const struct type type_core__NativeArray__opts__Option
;
13 #define COLOR_core__array__Array__with_native 32
14 void opts___opts__OptionContext___add_option(val
* self
, val
* p0
);
15 #define COLOR_nitc__separate_erasure_compiler___ToolContext___process_options 144
16 #define COLOR_nitc__abstract_compiler__ToolContext___opt_no_check_all 92
17 extern const char FILE_nitc__abstract_compiler
[];
18 #define COLOR_opts__Option___value 6
19 #define COLOR_opts__Option__VALUE 0
20 extern const struct type type_core__Bool
;
21 extern const char FILE_opts
[];
22 #define COLOR_nitc__separate_compiler__ToolContext___opt_no_tag_primitives 62
23 extern const char FILE_nitc__separate_compiler
[];
24 #define COLOR_nitc__phase__Phase___toolcontext 0
25 extern const char FILE_nitc__phase
[];
26 val
* nitc__modelbuilder_base___ToolContext___modelbuilder(val
* self
);
27 val
* nitc__rapid_type_analysis___ModelBuilder___do_rapid_type_analysis(val
* self
, val
* p0
);
28 void nitc__separate_erasure_compiler___ModelBuilder___run_separate_erasure_compiler(val
* self
, val
* p0
, val
* p1
);
29 long core__time___Sys_get_time___impl( struct nitni_instance
* self
);
30 #define COLOR_nitc__modelbuilder_base__ModelBuilder___toolcontext 13
31 extern const char FILE_nitc__modelbuilder_base
[];
32 val
* core__flat___CString___to_s_unsafe(char* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
);
33 void nitc___nitc__ToolContext___info(val
* self
, val
* p0
, long p1
);
34 val
* NEW_nitc__SeparateErasureCompiler(const struct type
* type
);
35 extern const struct type type_nitc__SeparateErasureCompiler
;
36 #define COLOR_nitc__abstract_compiler__AbstractCompiler__mainmodule_61d 13
37 #define COLOR_nitc__abstract_compiler__AbstractCompiler__modelbuilder_61d 14
38 #define COLOR_nitc__separate_compiler__SeparateCompiler__runtime_type_analysis_61d 55
39 #define COLOR_core__kernel__Object__init 0
40 void nitc___nitc__SeparateCompiler___nitc__abstract_compiler__AbstractCompiler__do_compilation(val
* self
);
41 void nitc___nitc__SeparateCompiler___nitc__abstract_compiler__AbstractCompiler__display_stats(val
* self
);
42 extern const struct type type_core__NativeArray__core__String
;
43 extern const struct type type_core__Int
;
44 extern const char FILE_core__kernel
[];
45 val
* core__flat___Int___core__abstract_text__Object__to_s(long self
);
46 #define COLOR_core__abstract_text__NativeArray__native_to_s 12
47 void nitc__abstract_compiler___ModelBuilder___write_and_make(val
* self
, val
* p0
);
48 #define COLOR_nitc__separate_erasure_compiler__SeparateErasureCompiler___class_ids 34
49 #define COLOR_nitc__separate_erasure_compiler__SeparateErasureCompiler___class_colors 35
50 #define COLOR_nitc__separate_erasure_compiler__SeparateErasureCompiler___vt_colors 36
51 #define COLOR_nitc___nitc__SeparateErasureCompiler___core__kernel__Object__init 123
52 #define COLOR_nitc__abstract_compiler__AbstractCompiler___mainmodule 1
53 val
* nitc__model___MModule___flatten_mclass_hierarchy(val
* self
);
54 val
* NEW_core__HashSet(const struct type
* type
);
55 extern const struct type type_core__HashSet__nitc__MClass
;
56 void core___core__HashSet___from(val
* self
, val
* p0
);
57 val
* NEW_nitc__POSetColorer(const struct type
* type
);
58 extern const struct type type_nitc__POSetColorer__nitc__MClass
;
59 void nitc___nitc__POSetColorer___colorize(val
* self
, val
* p0
);
60 val
* nitc___nitc__POSetColorer___ids(val
* self
);
61 val
* nitc___nitc__POSetColorer___colors(val
* self
);
62 val
* nitc___nitc__SeparateErasureCompiler___build_class_typing_tables(val
* self
, val
* p0
);
63 #define COLOR_nitc__separate_erasure_compiler__SeparateErasureCompiler___class_tables 37
64 val
* NEW_core__HashMap(const struct type
* type
);
65 extern const struct type type_core__HashMap__nitc__MClass__core__Set__nitc__MVirtualTypeProp
;
66 void core___core__HashMap___core__kernel__Object__init(val
* self
);
67 val
* core___core__HashSet___core__abstract_collection__Collection__iterator(val
* self
);
68 #define COLOR_core__abstract_collection__Iterator__is_ok 12
69 #define COLOR_core__abstract_collection__Iterator__item 13
70 extern const struct type type_core__HashSet__nitc__MVirtualTypeProp
;
71 void core___core__HashSet___core__kernel__Object__init(val
* self
);
72 void core___core__HashMap___core__abstract_collection__Map___91d_93d_61d(val
* self
, val
* p0
, val
* p1
);
73 val
* nitc__abstract_compiler___MModule___properties(val
* self
, val
* p0
);
74 #define COLOR_core__abstract_collection__Collection__iterator 24
75 extern const struct type type_nitc__MVirtualTypeProp
;
76 val
* core___core__HashMap___core__abstract_collection__MapRead___91d_93d(val
* self
, val
* p0
);
77 #define COLOR_core__abstract_collection__SimpleCollection__add 49
78 #define COLOR_core__abstract_collection__Iterator__next 14
79 #define COLOR_core__abstract_collection__Iterator__finish 15
80 val
* NEW_nitc__POSetBucketsColorer(const struct type
* type
);
81 extern const struct type type_nitc__POSetBucketsColorer__nitc__MClass__nitc__MVirtualTypeProp
;
82 val
* nitc___nitc__POSetColorer___conflicts(val
* self
);
83 #define COLOR_nitc__coloring__POSetBucketsColorer__poset_61d 12
84 #define COLOR_nitc__coloring__POSetBucketsColorer__conflicts_61d 13
85 val
* nitc___nitc__POSetBucketsColorer___colorize(val
* self
, val
* p0
);
86 val
* nitc___nitc__SeparateErasureCompiler___build_vt_tables(val
* self
, val
* p0
);
87 #define COLOR_nitc__separate_erasure_compiler__SeparateErasureCompiler___vt_tables 38
88 extern const struct type type_core__HashMap__nitc__MClass__core__Array__nullable__nitc__MPropDef
;
89 extern const struct type type_core__Array__nullable__nitc__MPropDef
;
90 void core___core__Array___core__kernel__Object__init(val
* self
);
91 extern const struct type type_core__Array__nitc__MClass
;
92 short int poset___poset__POSet___core__abstract_collection__Collection__has(val
* self
, val
* p0
);
93 val
* nitc___nitc__MClass___in_hierarchy(val
* self
, val
* p0
);
94 val
* poset___poset__POSetElement___greaters(val
* self
);
95 #define COLOR_core__array__Collection__to_a 21
96 void nitc__model___MModule___linearize_mclasses(val
* self
, val
* p0
);
97 val
* core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(val
* self
);
98 #define COLOR_core__abstract_collection__MapRead___91d_93d 15
99 #define COLOR_core__array__AbstractArrayRead___length 0
100 void core___core__Array___core__abstract_collection__Sequence___91d_93d_61d(val
* self
, long p0
, val
* p1
);
101 long core___core__Int___Discrete__successor(long self
, long p0
);
102 #define COLOR_nitc__model__MProperty___mpropdefs 15
103 extern const char FILE_nitc__model
[];
104 #define COLOR_nitc__model__MPropDef___mclassdef 7
105 #define COLOR_nitc__model__MClassDef___mclass 8
106 extern const struct type type_core__HashMap__nitc__MClass__core__Array__nullable__nitc__MClass
;
107 extern const struct type type_core__Array__nullable__nitc__MClass
;
108 #define COLOR_nitc__abstract_compiler__AbstractCompiler___header 7
109 void nitc___nitc__CodeWriter___add_decl(val
* self
, val
* p0
);
110 void nitc___nitc__SeparateCompiler___compile_header_attribute_structs(val
* self
);
111 #define COLOR_nitc__model__MClass___intro 19
112 #define COLOR_nitc__model__MClassDef___bound_mtype 9
113 val
* nitc___nitc__MClass___nitc__model_base__MEntity__c_name(val
* self
);
114 val
* nitc___nitc__SeparateErasureCompiler___nitc__abstract_compiler__AbstractCompiler__new_visitor(val
* self
);
115 #define COLOR_nitc__separate_compiler__SeparateCompiler___runtime_type_analysis 19
116 #define COLOR_core__kernel__Object___61d_61d 4
117 #define COLOR_nitc__rapid_type_analysis__RapidTypeAnalysis___live_classes 4
118 extern const char FILE_nitc__rapid_type_analysis
[];
119 short int core___core__HashSet___core__abstract_collection__Collection__has(val
* self
, val
* p0
);
120 short int nitc__abstract_compiler___MClassType___MType__is_c_primitive(val
* self
);
121 #define COLOR_nitc__model__MClass___name 8
122 void nitc___nitc__AbstractCompilerVisitor___add_decl(val
* self
, val
* p0
);
123 void nitc___nitc__AbstractCompiler___provide_declaration(val
* self
, val
* p0
, val
* p1
);
124 long nitc___nitc__SeparateCompiler___box_kind_of(val
* self
, val
* p0
);
125 short int nitc___nitc__SeparateErasureCompiler___build_class_vts_table(val
* self
, val
* p0
);
126 void nitc___nitc__AbstractCompilerVisitor___require_declaration(val
* self
, val
* p0
);
127 #define COLOR_nitc__separate_compiler__SeparateCompiler___method_tables 30
128 #define COLOR_core__abstract_collection__MapRead__get_or_null 20
129 val
* core___core__Array___core__abstract_collection__SequenceRead___91d_93d(val
* self
, long p0
);
130 extern const struct type type_nitc__MMethodDef
;
131 #define COLOR_nitc__rapid_type_analysis__RapidTypeAnalysis___live_methoddefs 7
132 #define COLOR_nitc__model__MClass___intro_mmodule 7
133 #define COLOR_core__abstract_text__Object__to_s 3
134 val
* nitc__separate_compiler___MMethodDef___virtual_runtime_function(val
* self
);
135 val
* nitc___nitc__AbstractRuntimeFunction___c_name(val
* self
);
136 val
* nitc___nitc__MPropDef___nitc__model_base__MEntity__full_name(val
* self
);
137 #define COLOR_nitc__model__MClassType___mclass 9
138 val
* nitc__abstract_compiler___MClassType___MType__ctype(val
* self
);
139 val
* nitc__abstract_compiler___MClassType___MType__ctype_extern(val
* self
);
140 #define COLOR_nitc__model_base__MEntity__c_name 12
141 void nitc___nitc__AbstractCompilerVisitor___add(val
* self
, val
* p0
);
142 void nitc___nitc__AbstractCompilerVisitor___add_abort(val
* self
, val
* p0
);
143 val
* nitc___nitc__AbstractCompilerVisitor___new_named_var(val
* self
, val
* p0
, val
* p1
);
144 #define COLOR_nitc__abstract_compiler__RuntimeVariable___is_exact 3
145 val
* nitc___nitc__AbstractCompilerVisitor___get_name(val
* self
, val
* p0
);
146 #define COLOR_nitc__model__MClassType__arguments 61
147 val
* core___core__SequenceRead___Collection__first(val
* self
);
148 #define COLOR_nitc__abstract_compiler__MType__ctype 30
149 #define COLOR_nitc__model__MClass___kind 16
150 val
* nitc__model___core__Sys___extern_kind(val
* self
);
151 val
* nitc__model___MModule___pointer_type(val
* self
);
152 #define COLOR_nitc__separate_compiler__SeparateCompiler___attr_tables 31
153 short int core___core__Array___core__kernel__Object___61d_61d(val
* self
, val
* p0
);
154 void nitc___nitc__AbstractCompiler___generate_init_attr(val
* self
, val
* p0
, val
* p1
, val
* p2
);
155 void nitc___nitc__AbstractCompilerVisitor___set_finalizer(val
* self
, val
* p0
);
156 short int core___core__AbstractArrayRead___core__abstract_collection__Collection__is_empty(val
* self
);
157 extern const struct type type_nitc__MVirtualTypeDef
;
158 #define COLOR_nitc__model__MVirtualTypeDef___bound 15
159 val
* nitc___nitc__SeparateErasureCompiler___retrieve_vt_bound(val
* self
, val
* p0
, val
* p1
);
160 extern const struct type type_nitc__MNullableType
;
161 #define COLOR_nitc__model__MProxyType___mtype 9
162 extern const struct type type_nitc__MClassType
;
163 void core__file___Sys___print(val
* self
, val
* p0
);
164 extern const struct type type_nitc__MVirtualType
;
165 val
* nitc___nitc__MType___anchor_to(val
* self
, val
* p0
, val
* p1
);
166 extern const struct type type_nitc__MParameterType
;
167 void nitc___nitc__SeparateCompiler___compile_color_consts(val
* self
, val
* p0
);
168 val
* NEW_nitc__SeparateErasureCompilerVisitor(const struct type
* type
);
169 extern const struct type type_nitc__SeparateErasureCompilerVisitor
;
170 #define COLOR_nitc__abstract_compiler__AbstractCompilerVisitor__compiler_61d 24
171 #define COLOR_nitc__abstract_compiler__AbstractCompiler__VISITOR 0
172 #define COLOR_core__abstract_collection__MapRead__iterator 13
173 #define COLOR_core__abstract_collection__MapIterator__is_ok 12
174 #define COLOR_core__abstract_collection__MapIterator__key 13
175 #define COLOR_core__abstract_collection__MapIterator__item 14
176 #define COLOR_core__abstract_collection__MapIterator__next 15
177 #define COLOR_nitc___nitc__SeparateErasureCompilerVisitor___nitc__abstract_compiler__AbstractCompilerVisitor__compile_callsite 110
178 #define COLOR_nitc__typing__CallSite___erasure_cast 14
179 #define COLOR_nitc__abstract_compiler__AbstractCompilerVisitor___compiler 0
180 #define COLOR_nitc__abstract_compiler__AbstractCompiler___modelbuilder 3
181 #define COLOR_nitc__typing__CallSite___msignature 13
182 extern const char FILE_nitc__typing
[];
183 #define COLOR_nitc__model__MSignature___return_mtype 10
184 val
* nitc___nitc__SeparateErasureCompilerVisitor___nitc__abstract_compiler__AbstractCompilerVisitor__type_test(val
* self
, val
* p0
, val
* p1
, val
* p2
);
185 val
* nitc___nitc__AbstractCompilerVisitor___new_expr(val
* self
, val
* p0
, val
* p1
);
186 val
* nitc___nitc__RuntimeVariable___core__abstract_text__Object__inspect(val
* self
);
187 val
* nitc___nitc__AbstractCompilerVisitor___bool_type(val
* self
);
188 val
* nitc___nitc__AbstractCompilerVisitor___new_var(val
* self
, val
* p0
);
189 short int nitc___nitc__SeparateCompilerVisitor___maybe_null(val
* self
, val
* p0
);
190 #define COLOR_nitc__abstract_compiler__AbstractCompilerVisitor___frame 2
191 #define COLOR_nitc__abstract_compiler__StaticFrame___mpropdef 1
192 #define COLOR_nitc__model__MClassDef___mmodule 7
193 val
* nitc___nitc__MParameterType___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
);
194 #define COLOR_nitc__abstract_compiler__RuntimeVariable___mcasttype 2
195 short int nitc___nitc__MType___is_subtype(val
* self
, val
* p0
, val
* p1
, val
* p2
);
196 #define COLOR_nitc__abstract_compiler__ToolContext___opt_typing_test_metrics 93
197 #define COLOR_nitc__abstract_compiler__AbstractCompiler___count_type_test_skipped 17
198 #define COLOR_nitc__abstract_compiler__RuntimeVariable___mtype 1
199 #define COLOR_nitc__abstract_compiler__MType__is_c_primitive 43
200 #define COLOR_nitc__abstract_compiler__AbstractCompiler___count_type_test_resolved 15
201 #define COLOR_nitc__abstract_compiler__StaticFrame___arguments 3
202 #define COLOR_nitc__model__MVirtualType___mproperty 11
203 val
* nitc__separate_compiler___MEntity___const_color(val
* self
);
204 val
* core___core__String___Object__to_s(val
* self
);
205 #define COLOR_nitc__abstract_compiler__AbstractCompiler___count_type_test_unresolved 16
206 void nitc___nitc__AbstractCompilerVisitor___debug(val
* self
, val
* p0
);
207 val
* nitc___nitc__AbstractCompilerVisitor___new_var_extern(val
* self
, val
* p0
);
208 #define COLOR_nitc__rapid_type_analysis__RapidTypeAnalysis___live_types 2
209 val
* nitc___nitc__AbstractCompilerVisitor___mmodule(val
* self
);
210 val
* nitc__model___MModule___native_array_class(val
* self
);
211 extern const struct type type_core__Array__nitc__MType
;
212 void core___core__Array___with_capacity(val
* self
, long p0
);
213 void core___core__AbstractArray___core__abstract_collection__Sequence__push(val
* self
, val
* p0
);
214 val
* nitc___nitc__MClass___get_mtype(val
* self
, val
* p0
);