compile: clean class PrimitiveInfo
[nit.git] / c_src / nitc._sep.c
1 /* This C file is generated by NIT to compile module nitc. */
2 #include "nitc._sep.h"
3 void nitc___NitCompiler___process_options(val_t self) {
4 struct trace_t trace = {NULL, NULL, 41, LOCATE_nitc___NitCompiler___process_options};
5 static val_t once_value_1; static int once_bool_1; /* Once value for variable[3]*/
6 static val_t once_value_2; static int once_bool_2; /* Once value for variable[3]*/
7 static val_t once_value_3; static int once_bool_3; /* Once value for variable[3]*/
8 val_t variable[11];
9 void **closurevariable = NULL;
10 trace.prev = tracehead; tracehead = &trace;
11 trace.file = LOCATE_nitc;
12 variable[0] = self;
13 CALL_SUPER_nitc___NitCompiler___process_options(variable[0])(variable[0]) /*super NitCompiler::process_options*/;
14 variable[2] = variable[0];
15 variable[3] = variable[0];
16 variable[3] = CALL_nitc___NitCompiler___opt_output(variable[3])(variable[3]) /*NitCompiler::opt_output*/;
17 variable[3] = CALL_opts___Option___value(variable[3])(variable[3]) /*Option::value*/;
18 CALL_compiling_base___ToolContext___output_file__eq(variable[2])(variable[2], variable[3]) /*ToolContext::output_file=*/;
19 variable[2] = variable[0];
20 variable[3] = variable[0];
21 variable[3] = CALL_nitc___NitCompiler___opt_boost(variable[3])(variable[3]) /*NitCompiler::opt_boost*/;
22 variable[3] = CALL_opts___Option___value(variable[3])(variable[3]) /*Option::value*/;
23 CALL_compiling_base___ToolContext___boost__eq(variable[2])(variable[2], variable[3]) /*ToolContext::boost=*/;
24 variable[2] = variable[0];
25 variable[3] = variable[0];
26 variable[3] = CALL_nitc___NitCompiler___opt_no_cc(variable[3])(variable[3]) /*NitCompiler::opt_no_cc*/;
27 variable[3] = CALL_opts___Option___value(variable[3])(variable[3]) /*Option::value*/;
28 CALL_compiling_base___ToolContext___no_cc__eq(variable[2])(variable[2], variable[3]) /*ToolContext::no_cc=*/;
29 variable[2] = variable[0];
30 variable[3] = variable[0];
31 variable[3] = CALL_nitc___NitCompiler___opt_extension_prefix(variable[3])(variable[3]) /*NitCompiler::opt_extension_prefix*/;
32 variable[3] = CALL_opts___Option___value(variable[3])(variable[3]) /*Option::value*/;
33 CALL_compiling_base___ToolContext___ext_prefix__eq(variable[2])(variable[2], variable[3]) /*ToolContext::ext_prefix=*/;
34 variable[2] = variable[0];
35 variable[2] = CALL_compiling_base___ToolContext___ext_prefix(variable[2])(variable[2]) /*ToolContext::ext_prefix*/;
36 variable[2] = TAG_Bool((variable[2] == NIT_NULL /*null*/) || ((variable[2] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[2])(variable[2], NIT_NULL /*null*/) /*String::==*/)));
37 if (UNTAG_Bool(variable[2])) { /*if*/
38 variable[2] = variable[0];
39 variable[3] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)); /*new String*/
40 CALL_compiling_base___ToolContext___ext_prefix__eq(variable[2])(variable[2], variable[3]) /*ToolContext::ext_prefix=*/;
41 }
42 variable[2] = variable[0];
43 variable[3] = variable[0];
44 variable[3] = CALL_nitc___NitCompiler___opt_global(variable[3])(variable[3]) /*NitCompiler::opt_global*/;
45 variable[3] = CALL_opts___Option___value(variable[3])(variable[3]) /*Option::value*/;
46 CALL_compiling_base___ToolContext___global__eq(variable[2])(variable[2], variable[3]) /*ToolContext::global=*/;
47 variable[2] = variable[0];
48 variable[3] = variable[0];
49 variable[3] = CALL_nitc___NitCompiler___opt_compdir(variable[3])(variable[3]) /*NitCompiler::opt_compdir*/;
50 variable[3] = CALL_opts___Option___value(variable[3])(variable[3]) /*Option::value*/;
51 CALL_compiling_base___ToolContext___compdir__eq(variable[2])(variable[2], variable[3]) /*ToolContext::compdir=*/;
52 variable[2] = variable[0];
53 variable[2] = CALL_compiling_base___ToolContext___compdir(variable[2])(variable[2]) /*ToolContext::compdir*/;
54 variable[2] = TAG_Bool((variable[2] == NIT_NULL /*null*/) || ((variable[2] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[2])(variable[2], NIT_NULL /*null*/) /*String::==*/)));
55 if (UNTAG_Bool(variable[2])) { /*if*/
56 if (once_bool_1) variable[3] = once_value_1;
57 else {
58 variable[3] = NEW_String_string___String___with_native(BOX_NativeString("NIT_COMPDIR"), TAG_Int(11)); /*new String*/
59 variable[3] = CALL_symbol___String___to_symbol(variable[3])(variable[3]) /*String::to_symbol*/;
60 variable[3] = CALL_environ___Symbol___environ(variable[3])(variable[3]) /*Symbol::environ*/;
61 once_value_1 = variable[3];
62 once_bool_1 = true;
63 }
64 variable[2] = variable[3];
65 variable[3] = CALL_abstract_collection___Collection___is_empty( variable[2] /*dir*/)( variable[2] /*dir*/) /*AbstractArray::is_empty*/;
66 if (UNTAG_Bool( TAG_Bool(!UNTAG_Bool(variable[3])))) { /*if*/
67 variable[3] = variable[0];
68 CALL_compiling_base___ToolContext___compdir__eq(variable[3])(variable[3], variable[2] /*dir*/) /*ToolContext::compdir=*/;
69 }
70 variable[3] = variable[0];
71 variable[3] = CALL_compiling_base___ToolContext___compdir(variable[3])(variable[3]) /*ToolContext::compdir*/;
72 variable[3] = TAG_Bool((variable[3] == NIT_NULL /*null*/) || ((variable[3] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3], NIT_NULL /*null*/) /*String::==*/)));
73 if (UNTAG_Bool(variable[3])) { /*if*/
74 variable[3] = variable[0];
75 variable[4] = NEW_String_string___String___with_native(BOX_NativeString(".nit_compile"), TAG_Int(12)); /*new String*/
76 CALL_compiling_base___ToolContext___compdir__eq(variable[3])(variable[3], variable[4]) /*ToolContext::compdir=*/;
77 }
78 }
79 variable[2] = variable[0];
80 variable[2] = CALL_compiling_base___ToolContext___compdir(variable[2])(variable[2]) /*ToolContext::compdir*/;
81 variable[3] = variable[0];
82 variable[3] = CALL_compiling_base___ToolContext___ext_prefix(variable[3])(variable[3]) /*ToolContext::ext_prefix*/;
83 CALL_abstract_collection___IndexedCollection___append(variable[2])(variable[2], variable[3]) /*String::append*/;
84 variable[2] = variable[0];
85 variable[3] = variable[0];
86 variable[3] = CALL_nitc___NitCompiler___opt_clibdir(variable[3])(variable[3]) /*NitCompiler::opt_clibdir*/;
87 variable[3] = CALL_opts___Option___value(variable[3])(variable[3]) /*Option::value*/;
88 CALL_compiling_base___ToolContext___clibdir__eq(variable[2])(variable[2], variable[3]) /*ToolContext::clibdir=*/;
89 variable[2] = variable[0];
90 variable[2] = CALL_compiling_base___ToolContext___clibdir(variable[2])(variable[2]) /*ToolContext::clibdir*/;
91 variable[2] = TAG_Bool((variable[2] == NIT_NULL /*null*/) || ((variable[2] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[2])(variable[2], NIT_NULL /*null*/) /*String::==*/)));
92 if (UNTAG_Bool(variable[2])) { /*if*/
93 if (once_bool_2) variable[3] = once_value_2;
94 else {
95 variable[3] = NEW_String_string___String___with_native(BOX_NativeString("NIT_DIR"), TAG_Int(7)); /*new String*/
96 variable[3] = CALL_symbol___String___to_symbol(variable[3])(variable[3]) /*String::to_symbol*/;
97 variable[3] = CALL_environ___Symbol___environ(variable[3])(variable[3]) /*Symbol::environ*/;
98 once_value_2 = variable[3];
99 once_bool_2 = true;
100 }
101 variable[2] = variable[3];
102 variable[3] = CALL_abstract_collection___Collection___is_empty( variable[2] /*dir*/)( variable[2] /*dir*/) /*AbstractArray::is_empty*/;
103 if (UNTAG_Bool(variable[3])) { /*if*/
104 variable[4] = NEW_Array_array___Array___with_capacity(TAG_Int(3)); /*new Array[String]*/
105 variable[5] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)); /*new String*/
106 variable[6] = variable[5];
107 CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], variable[6]) /*AbstractArray::add*/;
108 variable[7] = variable[0];
109 variable[7] = (G_sys);
110 variable[7] = CALL_string___Sys___program_name(variable[7])(variable[7]) /*Sys::program_name*/;
111 variable[7] = CALL_file___String___dirname(variable[7])(variable[7]) /*String::dirname*/;
112 variable[8] = variable[7];
113 CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], variable[8]) /*AbstractArray::add*/;
114 variable[9] = NEW_String_string___String___with_native(BOX_NativeString("/../lib"), TAG_Int(7)); /*new String*/
115 variable[10] = variable[9];
116 CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], variable[10]) /*AbstractArray::add*/;
117 variable[4] = CALL_string___Object___to_s(variable[4])(variable[4]) /*Object::to_s*/;
118 variable[3] = variable[4];
119 variable[4] = CALL_file___String___file_exists( variable[3] /*dir*/)( variable[3] /*dir*/) /*String::file_exists*/;
120 if (UNTAG_Bool(variable[4])) { /*if*/
121 variable[4] = variable[0];
122 CALL_compiling_base___ToolContext___clibdir__eq(variable[4])(variable[4], variable[3] /*dir*/) /*ToolContext::clibdir=*/;
123 }
124 } else { /*if*/
125 variable[3] = NEW_Array_array___Array___with_capacity(TAG_Int(3)); /*new Array[String]*/
126 variable[4] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)); /*new String*/
127 variable[5] = variable[4];
128 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[5]) /*AbstractArray::add*/;
129 variable[6] = variable[2] /*dir*/;
130 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[6]) /*AbstractArray::add*/;
131 variable[7] = NEW_String_string___String___with_native(BOX_NativeString("/lib"), TAG_Int(4)); /*new String*/
132 variable[8] = variable[7];
133 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[8]) /*AbstractArray::add*/;
134 variable[3] = CALL_string___Object___to_s(variable[3])(variable[3]) /*Object::to_s*/;
135 variable[2] = variable[3] /*dir=*/;
136 variable[3] = CALL_file___String___file_exists( variable[2] /*dir*/)( variable[2] /*dir*/) /*String::file_exists*/;
137 if (UNTAG_Bool(variable[3])) { /*if*/
138 variable[3] = variable[0];
139 CALL_compiling_base___ToolContext___clibdir__eq(variable[3])(variable[3], variable[2] /*dir*/) /*ToolContext::clibdir=*/;
140 }
141 }
142 variable[3] = variable[0];
143 variable[3] = CALL_compiling_base___ToolContext___clibdir(variable[3])(variable[3]) /*ToolContext::clibdir*/;
144 variable[3] = TAG_Bool((variable[3] == NIT_NULL /*null*/) || ((variable[3] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3], NIT_NULL /*null*/) /*String::==*/)));
145 if (UNTAG_Bool(variable[3])) { /*if*/
146 variable[3] = variable[0];
147 variable[4] = NEW_String_string___String___with_native(BOX_NativeString("Error: Cannot locate NIT C library directory. Uses --clibdir or envvar NIT_DIR."), TAG_Int(79)); /*new String*/
148 CALL_mmloader___ToolContext___error(variable[3])(variable[3], variable[4]) /*ToolContext::error*/;
149 variable[3] = variable[0];
150 exit(UNTAG_Int( TAG_Int(1)));
151 }
152 }
153 variable[2] = variable[0];
154 variable[3] = variable[0];
155 variable[3] = CALL_nitc___NitCompiler___opt_bindir(variable[3])(variable[3]) /*NitCompiler::opt_bindir*/;
156 variable[3] = CALL_opts___Option___value(variable[3])(variable[3]) /*Option::value*/;
157 CALL_compiling_base___ToolContext___bindir__eq(variable[2])(variable[2], variable[3]) /*ToolContext::bindir=*/;
158 variable[2] = variable[0];
159 variable[2] = CALL_compiling_base___ToolContext___bindir(variable[2])(variable[2]) /*ToolContext::bindir*/;
160 variable[2] = TAG_Bool((variable[2] == NIT_NULL /*null*/) || ((variable[2] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[2])(variable[2], NIT_NULL /*null*/) /*String::==*/)));
161 if (UNTAG_Bool(variable[2])) { /*if*/
162 if (once_bool_3) variable[3] = once_value_3;
163 else {
164 variable[3] = NEW_String_string___String___with_native(BOX_NativeString("NIT_DIR"), TAG_Int(7)); /*new String*/
165 variable[3] = CALL_symbol___String___to_symbol(variable[3])(variable[3]) /*String::to_symbol*/;
166 variable[3] = CALL_environ___Symbol___environ(variable[3])(variable[3]) /*Symbol::environ*/;
167 once_value_3 = variable[3];
168 once_bool_3 = true;
169 }
170 variable[2] = variable[3];
171 variable[3] = CALL_abstract_collection___Collection___is_empty( variable[2] /*dir*/)( variable[2] /*dir*/) /*AbstractArray::is_empty*/;
172 if (UNTAG_Bool(variable[3])) { /*if*/
173 variable[4] = NEW_Array_array___Array___with_capacity(TAG_Int(3)); /*new Array[String]*/
174 variable[5] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)); /*new String*/
175 variable[6] = variable[5];
176 CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], variable[6]) /*AbstractArray::add*/;
177 variable[7] = variable[0];
178 variable[7] = (G_sys);
179 variable[7] = CALL_string___Sys___program_name(variable[7])(variable[7]) /*Sys::program_name*/;
180 variable[7] = CALL_file___String___dirname(variable[7])(variable[7]) /*String::dirname*/;
181 variable[8] = variable[7];
182 CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], variable[8]) /*AbstractArray::add*/;
183 variable[9] = NEW_String_string___String___with_native(BOX_NativeString("/../bin"), TAG_Int(7)); /*new String*/
184 variable[10] = variable[9];
185 CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], variable[10]) /*AbstractArray::add*/;
186 variable[4] = CALL_string___Object___to_s(variable[4])(variable[4]) /*Object::to_s*/;
187 variable[3] = variable[4];
188 variable[4] = CALL_file___String___file_exists( variable[3] /*dir*/)( variable[3] /*dir*/) /*String::file_exists*/;
189 if (UNTAG_Bool(variable[4])) { /*if*/
190 variable[4] = variable[0];
191 CALL_compiling_base___ToolContext___bindir__eq(variable[4])(variable[4], variable[3] /*dir*/) /*ToolContext::bindir=*/;
192 }
193 } else { /*if*/
194 variable[3] = NEW_Array_array___Array___with_capacity(TAG_Int(3)); /*new Array[String]*/
195 variable[4] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)); /*new String*/
196 variable[5] = variable[4];
197 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[5]) /*AbstractArray::add*/;
198 variable[6] = variable[2] /*dir*/;
199 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[6]) /*AbstractArray::add*/;
200 variable[7] = NEW_String_string___String___with_native(BOX_NativeString("/bin"), TAG_Int(4)); /*new String*/
201 variable[8] = variable[7];
202 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[8]) /*AbstractArray::add*/;
203 variable[3] = CALL_string___Object___to_s(variable[3])(variable[3]) /*Object::to_s*/;
204 variable[2] = variable[3] /*dir=*/;
205 variable[3] = CALL_file___String___file_exists( variable[2] /*dir*/)( variable[2] /*dir*/) /*String::file_exists*/;
206 if (UNTAG_Bool(variable[3])) { /*if*/
207 variable[3] = variable[0];
208 CALL_compiling_base___ToolContext___bindir__eq(variable[3])(variable[3], variable[2] /*dir*/) /*ToolContext::bindir=*/;
209 }
210 }
211 variable[3] = variable[0];
212 variable[3] = CALL_compiling_base___ToolContext___bindir(variable[3])(variable[3]) /*ToolContext::bindir*/;
213 variable[3] = TAG_Bool((variable[3] == NIT_NULL /*null*/) || ((variable[3] != NIT_NULL) && UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3], NIT_NULL /*null*/) /*String::==*/)));
214 if (UNTAG_Bool(variable[3])) { /*if*/
215 variable[3] = variable[0];
216 variable[4] = NEW_String_string___String___with_native(BOX_NativeString("Error: Cannot locate NIT tools directory. Uses --bindir or envvar NIT_DIR."), TAG_Int(74)); /*new String*/
217 CALL_mmloader___ToolContext___error(variable[3])(variable[3], variable[4]) /*ToolContext::error*/;
218 variable[3] = variable[0];
219 exit(UNTAG_Int( TAG_Int(1)));
220 }
221 }
222 return_label0: while(false);
223 tracehead = trace.prev;
224 return;
225 }
226 void nitc___NitCompiler___perform_work(val_t self, val_t param0) {
227 struct trace_t trace = {NULL, NULL, 95, LOCATE_nitc___NitCompiler___perform_work};
228 val_t variable[7];
229 void **closurevariable = NULL;
230 trace.prev = tracehead; tracehead = &trace;
231 trace.file = LOCATE_nitc;
232 variable[0] = self;
233 variable[1] = param0;
234 variable[3] = CALL_abstract_collection___Collection___iterator( variable[1] /*mods*/)( variable[1] /*mods*/) /*AbstractArray::iterator*/;
235 while (true) { /*for*/
236 variable[4] = CALL_abstract_collection___Iterator___is_ok(variable[3])(variable[3]) /*ArrayIterator::is_ok*/;
237 if (!UNTAG_Bool(variable[4])) break; /*for*/
238 variable[4] = CALL_abstract_collection___Iterator___item(variable[3])(variable[3]) /*ArrayIterator::item*/;
239 variable[5] = variable[4];
240 variable[6] = TAG_Bool(( variable[5] /*mod*/==NIT_NULL) || VAL_ISA( variable[5] /*mod*/, COLOR_MMSrcModule, ID_MMSrcModule)) /*cast MMSrcModule*/;
241 if (!UNTAG_Bool(variable[6])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_nitc___NitCompiler___perform_work, LOCATE_nitc, 98); nit_exit(1);}
242 variable[6] = variable[0];
243 CALL_compiling___MMSrcModule___compile_prog_to_c( variable[5] /*mod*/)( variable[5] /*mod*/, variable[6]) /*MMSrcModule::compile_prog_to_c*/;
244 continue_5: while(0);
245 CALL_abstract_collection___Iterator___next(variable[3])(variable[3]) /*ArrayIterator::next*/;
246 }
247 break_5: while(0);
248 return_label4: while(false);
249 tracehead = trace.prev;
250 return;
251 }
252 val_t nitc___NitCompiler___opt_output(val_t self) {
253 struct trace_t trace = {NULL, NULL, 26, LOCATE_nitc___NitCompiler___opt_output};
254 val_t *variable = NULL;
255 void **closurevariable = NULL;
256 trace.prev = tracehead; tracehead = &trace;
257 trace.file = LOCATE_nitc;
258 tracehead = trace.prev;
259 return ATTR_nitc___NitCompiler____opt_output( self) /*NitCompiler::_opt_output*/;
260 }
261 val_t nitc___NitCompiler___opt_boost(val_t self) {
262 struct trace_t trace = {NULL, NULL, 27, LOCATE_nitc___NitCompiler___opt_boost};
263 val_t *variable = NULL;
264 void **closurevariable = NULL;
265 trace.prev = tracehead; tracehead = &trace;
266 trace.file = LOCATE_nitc;
267 tracehead = trace.prev;
268 return ATTR_nitc___NitCompiler____opt_boost( self) /*NitCompiler::_opt_boost*/;
269 }
270 val_t nitc___NitCompiler___opt_no_cc(val_t self) {
271 struct trace_t trace = {NULL, NULL, 28, LOCATE_nitc___NitCompiler___opt_no_cc};
272 val_t *variable = NULL;
273 void **closurevariable = NULL;
274 trace.prev = tracehead; tracehead = &trace;
275 trace.file = LOCATE_nitc;
276 tracehead = trace.prev;
277 return ATTR_nitc___NitCompiler____opt_no_cc( self) /*NitCompiler::_opt_no_cc*/;
278 }
279 val_t nitc___NitCompiler___opt_global(val_t self) {
280 struct trace_t trace = {NULL, NULL, 29, LOCATE_nitc___NitCompiler___opt_global};
281 val_t *variable = NULL;
282 void **closurevariable = NULL;
283 trace.prev = tracehead; tracehead = &trace;
284 trace.file = LOCATE_nitc;
285 tracehead = trace.prev;
286 return ATTR_nitc___NitCompiler____opt_global( self) /*NitCompiler::_opt_global*/;
287 }
288 val_t nitc___NitCompiler___opt_clibdir(val_t self) {
289 struct trace_t trace = {NULL, NULL, 30, LOCATE_nitc___NitCompiler___opt_clibdir};
290 val_t *variable = NULL;
291 void **closurevariable = NULL;
292 trace.prev = tracehead; tracehead = &trace;
293 trace.file = LOCATE_nitc;
294 tracehead = trace.prev;
295 return ATTR_nitc___NitCompiler____opt_clibdir( self) /*NitCompiler::_opt_clibdir*/;
296 }
297 val_t nitc___NitCompiler___opt_bindir(val_t self) {
298 struct trace_t trace = {NULL, NULL, 31, LOCATE_nitc___NitCompiler___opt_bindir};
299 val_t *variable = NULL;
300 void **closurevariable = NULL;
301 trace.prev = tracehead; tracehead = &trace;
302 trace.file = LOCATE_nitc;
303 tracehead = trace.prev;
304 return ATTR_nitc___NitCompiler____opt_bindir( self) /*NitCompiler::_opt_bindir*/;
305 }
306 val_t nitc___NitCompiler___opt_compdir(val_t self) {
307 struct trace_t trace = {NULL, NULL, 32, LOCATE_nitc___NitCompiler___opt_compdir};
308 val_t *variable = NULL;
309 void **closurevariable = NULL;
310 trace.prev = tracehead; tracehead = &trace;
311 trace.file = LOCATE_nitc;
312 tracehead = trace.prev;
313 return ATTR_nitc___NitCompiler____opt_compdir( self) /*NitCompiler::_opt_compdir*/;
314 }
315 val_t nitc___NitCompiler___opt_extension_prefix(val_t self) {
316 struct trace_t trace = {NULL, NULL, 33, LOCATE_nitc___NitCompiler___opt_extension_prefix};
317 val_t *variable = NULL;
318 void **closurevariable = NULL;
319 trace.prev = tracehead; tracehead = &trace;
320 trace.file = LOCATE_nitc;
321 tracehead = trace.prev;
322 return ATTR_nitc___NitCompiler____opt_extension_prefix( self) /*NitCompiler::_opt_extension_prefix*/;
323 }
324 void nitc___NitCompiler___init(val_t self, int* init_table) {
325 struct trace_t trace = {NULL, NULL, 35, LOCATE_nitc___NitCompiler___init};
326 val_t variable[12];
327 void **closurevariable = NULL;
328 trace.prev = tracehead; tracehead = &trace;
329 trace.file = LOCATE_nitc;
330 variable[0] = self;
331 if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_NitCompiler].i]) return;
332 CALL_abstracttool___AbstractCompiler___init(variable[0])(variable[0], init_table /*YYY*/) /*AbstractCompiler::init*/;
333 variable[2] = variable[0];
334 variable[2] = CALL_mmloader___ToolContext___option_context(variable[2])(variable[2]) /*ToolContext::option_context*/;
335 variable[3] = NEW_Array_array___Array___with_capacity(TAG_Int(8)); /*new Array[Option]*/
336 variable[4] = variable[0];
337 variable[4] = CALL_nitc___NitCompiler___opt_output(variable[4])(variable[4]) /*NitCompiler::opt_output*/;
338 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[4]) /*AbstractArray::add*/;
339 variable[5] = variable[0];
340 variable[5] = CALL_nitc___NitCompiler___opt_boost(variable[5])(variable[5]) /*NitCompiler::opt_boost*/;
341 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[5]) /*AbstractArray::add*/;
342 variable[6] = variable[0];
343 variable[6] = CALL_nitc___NitCompiler___opt_no_cc(variable[6])(variable[6]) /*NitCompiler::opt_no_cc*/;
344 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[6]) /*AbstractArray::add*/;
345 variable[7] = variable[0];
346 variable[7] = CALL_nitc___NitCompiler___opt_global(variable[7])(variable[7]) /*NitCompiler::opt_global*/;
347 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[7]) /*AbstractArray::add*/;
348 variable[8] = variable[0];
349 variable[8] = CALL_nitc___NitCompiler___opt_clibdir(variable[8])(variable[8]) /*NitCompiler::opt_clibdir*/;
350 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[8]) /*AbstractArray::add*/;
351 variable[9] = variable[0];
352 variable[9] = CALL_nitc___NitCompiler___opt_bindir(variable[9])(variable[9]) /*NitCompiler::opt_bindir*/;
353 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[9]) /*AbstractArray::add*/;
354 variable[10] = variable[0];
355 variable[10] = CALL_nitc___NitCompiler___opt_compdir(variable[10])(variable[10]) /*NitCompiler::opt_compdir*/;
356 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[10]) /*AbstractArray::add*/;
357 variable[11] = variable[0];
358 variable[11] = CALL_nitc___NitCompiler___opt_extension_prefix(variable[11])(variable[11]) /*NitCompiler::opt_extension_prefix*/;
359 CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[11]) /*AbstractArray::add*/;
360 CALL_opts___OptionContext___add_option(variable[2])(variable[2], variable[3]) /*OptionContext::add_option*/;
361 return_label6: while(false);
362 init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_NitCompiler].i] = 1;
363 tracehead = trace.prev;
364 return;
365 }
366 void nitc___Sys___main(val_t self) {
367 struct trace_t trace = {NULL, NULL, 105, LOCATE_nitc___Sys___main};
368 val_t variable[4];
369 void **closurevariable = NULL;
370 trace.prev = tracehead; tracehead = &trace;
371 trace.file = LOCATE_nitc;
372 variable[0] = self;
373 variable[3] = NEW_NitCompiler_nitc___NitCompiler___init(); /*new NitCompiler*/
374 variable[2] = variable[3];
375 CALL_abstracttool___AbstractCompiler___exec_cmd_line( variable[2] /*c*/)( variable[2] /*c*/) /*AbstractCompiler::exec_cmd_line*/;
376 return_label7: while(false);
377 tracehead = trace.prev;
378 return;
379 }