1 /* This C file is generated by NIT to compile module location. */
2 #include "location._sep.h"
3 val_t
location___Location_____eqeq(val_t p0
, val_t p1
){
4 struct {struct stack_frame_t me
; val_t MORE_REG
[3];} fra
;
10 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
11 fra
.me
.file
= LOCATE_location
;
13 fra
.me
.meth
= LOCATE_location___Location_____eqeq
;
16 fra
.me
.REG
[0] = NIT_NULL
;
17 fra
.me
.REG
[1] = NIT_NULL
;
18 fra
.me
.REG
[2] = NIT_NULL
;
19 fra
.me
.REG
[3] = NIT_NULL
;
22 REGB0
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
23 /* ./location.nit:40 */
24 if (UNTAG_Bool(REGB0
)) {
26 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
27 if (UNTAG_Bool(REGB1
)) {
28 REGB1
= TAG_Bool(false);
31 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[1])(fra
.me
.REG
[1], NIT_NULL
);
35 if (UNTAG_Bool(REGB0
)) {
36 REGB0
= TAG_Bool(false);
39 REGB1
= TAG_Bool((fra
.me
.REG
[1]!=NIT_NULL
) && VAL_ISA(fra
.me
.REG
[1], COLOR_Location
, ID_Location
)) /*cast Location*/;
40 REGB1
= TAG_Bool(!UNTAG_Bool(REGB1
));
41 /* ./location.nit:41 */
42 if (UNTAG_Bool(REGB1
)) {
43 REGB1
= TAG_Bool(false);
47 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
48 /* ./location.nit:43 */
49 if (UNTAG_Bool(REGB1
)) {
50 fprintf(stderr
, "Reciever is null");
51 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 43);
54 fra
.me
.REG
[2] = CALL_location___Location___file(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
55 fra
.me
.REG
[3] = CALL_location___Location___file(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
56 REGB1
= TAG_Bool(IS_EQUAL_OO(fra
.me
.REG
[2],fra
.me
.REG
[3]));
57 if (UNTAG_Bool(REGB1
)) {
59 REGB2
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[2])(fra
.me
.REG
[2], fra
.me
.REG
[3]);
62 REGB1
= TAG_Bool(!UNTAG_Bool(REGB1
));
63 if (UNTAG_Bool(REGB1
)) {
64 REGB1
= TAG_Bool(false);
68 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
69 /* ./location.nit:44 */
70 if (UNTAG_Bool(REGB1
)) {
71 fprintf(stderr
, "Reciever is null");
72 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 44);
75 REGB1
= CALL_location___Location___line_start(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
76 REGB2
= CALL_location___Location___line_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
77 REGB3
= TAG_Bool(IS_EQUAL_OO(REGB1
,REGB2
));
78 if (UNTAG_Bool(REGB3
)) {
80 REGB2
= TAG_Bool((REGB1
)==(REGB2
));
82 /* ./location.nit:44 */
84 REGB3
= TAG_Bool(!UNTAG_Bool(REGB3
));
85 if (UNTAG_Bool(REGB3
)) {
86 REGB3
= TAG_Bool(false);
90 REGB3
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
91 /* ./location.nit:45 */
92 if (UNTAG_Bool(REGB3
)) {
93 fprintf(stderr
, "Reciever is null");
94 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 45);
97 REGB3
= CALL_location___Location___line_end(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
98 REGB2
= CALL_location___Location___line_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
99 REGB1
= TAG_Bool(IS_EQUAL_OO(REGB3
,REGB2
));
100 if (UNTAG_Bool(REGB1
)) {
102 REGB2
= TAG_Bool((REGB3
)==(REGB2
));
104 /* ./location.nit:45 */
106 REGB1
= TAG_Bool(!UNTAG_Bool(REGB1
));
107 if (UNTAG_Bool(REGB1
)) {
108 REGB1
= TAG_Bool(false);
112 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
113 /* ./location.nit:46 */
114 if (UNTAG_Bool(REGB1
)) {
115 fprintf(stderr
, "Reciever is null");
116 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 46);
119 REGB1
= CALL_location___Location___column_start(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
120 REGB2
= CALL_location___Location___column_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
121 REGB3
= TAG_Bool(IS_EQUAL_OO(REGB1
,REGB2
));
122 if (UNTAG_Bool(REGB3
)) {
124 REGB2
= TAG_Bool((REGB1
)==(REGB2
));
126 /* ./location.nit:46 */
128 REGB3
= TAG_Bool(!UNTAG_Bool(REGB3
));
129 if (UNTAG_Bool(REGB3
)) {
130 REGB3
= TAG_Bool(false);
134 REGB3
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
135 /* ./location.nit:47 */
136 if (UNTAG_Bool(REGB3
)) {
137 fprintf(stderr
, "Reciever is null");
138 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 47);
141 REGB3
= CALL_location___Location___column_end(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
142 REGB2
= CALL_location___Location___column_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
143 REGB1
= TAG_Bool(IS_EQUAL_OO(REGB3
,REGB2
));
144 if (UNTAG_Bool(REGB1
)) {
146 REGB2
= TAG_Bool((REGB3
)==(REGB2
));
148 /* ./location.nit:47 */
150 REGB1
= TAG_Bool(!UNTAG_Bool(REGB1
));
151 if (UNTAG_Bool(REGB1
)) {
152 REGB1
= TAG_Bool(false);
156 REGB1
= TAG_Bool(true);
158 /* ./location.nit:49 */
161 stack_frame_head
= fra
.me
.prev
;
164 val_t
location___Location_____l(val_t p0
, val_t p1
){
165 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
171 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
172 fra
.me
.file
= LOCATE_location
;
174 fra
.me
.meth
= LOCATE_location___Location_____l
;
175 fra
.me
.has_broke
= 0;
177 fra
.me
.REG
[0] = NIT_NULL
;
178 fra
.me
.REG
[1] = NIT_NULL
;
181 REGB0
= TAG_Bool(IS_EQUAL_OO(fra
.me
.REG
[0],fra
.me
.REG
[1]));
182 /* ./location.nit:96 */
183 if (UNTAG_Bool(REGB0
)) {
185 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
188 if (UNTAG_Bool(REGB0
)) {
189 REGB0
= TAG_Bool(false);
192 REGB1
= CALL_location___Location___located_in(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
193 /* ./location.nit:97 */
194 if (UNTAG_Bool(REGB1
)) {
195 REGB1
= TAG_Bool(true);
199 REGB1
= CALL_location___Location___located_in(fra
.me
.REG
[1])(fra
.me
.REG
[1], fra
.me
.REG
[0]);
200 /* ./location.nit:98 */
201 if (UNTAG_Bool(REGB1
)) {
202 REGB1
= TAG_Bool(false);
206 REGB1
= CALL_location___Location___line_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
207 REGB2
= CALL_location___Location___line_start(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
208 REGB3
= TAG_Bool(IS_EQUAL_OO(REGB1
,REGB2
));
209 /* ./location.nit:100 */
210 if (UNTAG_Bool(REGB3
)) {
212 REGB2
= TAG_Bool((REGB1
)==(REGB2
));
214 /* ./location.nit:100 */
216 REGB3
= TAG_Bool(!UNTAG_Bool(REGB3
));
217 if (UNTAG_Bool(REGB3
)) {
218 REGB3
= CALL_location___Location___line_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
219 REGB2
= CALL_location___Location___line_start(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
220 REGB2
= TAG_Bool(UNTAG_Int(REGB3
)<UNTAG_Int(REGB2
));
222 /* ./location.nit:100 */
225 REGB2
= CALL_location___Location___column_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
226 REGB3
= CALL_location___Location___column_start(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
227 REGB1
= TAG_Bool(IS_EQUAL_OO(REGB2
,REGB3
));
228 /* ./location.nit:101 */
229 if (UNTAG_Bool(REGB1
)) {
231 REGB3
= TAG_Bool((REGB2
)==(REGB3
));
233 /* ./location.nit:101 */
235 REGB1
= TAG_Bool(!UNTAG_Bool(REGB1
));
236 if (UNTAG_Bool(REGB1
)) {
237 REGB1
= CALL_location___Location___column_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
238 REGB3
= CALL_location___Location___column_start(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
239 REGB3
= TAG_Bool(UNTAG_Int(REGB1
)<UNTAG_Int(REGB3
));
241 /* ./location.nit:101 */
244 REGB3
= CALL_location___Location___line_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
245 REGB1
= CALL_location___Location___line_end(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
246 REGB2
= TAG_Bool(IS_EQUAL_OO(REGB3
,REGB1
));
247 /* ./location.nit:102 */
248 if (UNTAG_Bool(REGB2
)) {
250 REGB1
= TAG_Bool((REGB3
)==(REGB1
));
252 /* ./location.nit:102 */
254 REGB2
= TAG_Bool(!UNTAG_Bool(REGB2
));
255 if (UNTAG_Bool(REGB2
)) {
256 REGB2
= CALL_location___Location___line_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
257 REGB1
= CALL_location___Location___line_end(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
258 REGB1
= TAG_Bool(UNTAG_Int(REGB2
)<UNTAG_Int(REGB1
));
260 /* ./location.nit:102 */
263 REGB1
= CALL_location___Location___column_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
264 REGB2
= CALL_location___Location___column_end(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
265 REGB2
= TAG_Bool(UNTAG_Int(REGB1
)<UNTAG_Int(REGB2
));
267 /* ./location.nit:104 */
270 stack_frame_head
= fra
.me
.prev
;
273 val_t
location___Location___to_s(val_t p0
){
274 struct {struct stack_frame_t me
; val_t MORE_REG
[4];} fra
;
279 static val_t once_value_1
; /* Once value */
280 static val_t once_value_2
; /* Once value */
281 static val_t once_value_3
; /* Once value */
282 static val_t once_value_4
; /* Once value */
283 static val_t once_value_5
; /* Once value */
284 static val_t once_value_7
; /* Once value */
285 static val_t once_value_8
; /* Once value */
286 static val_t once_value_9
; /* Once value */
287 static val_t once_value_10
; /* Once value */
288 static val_t once_value_11
; /* Once value */
289 static val_t once_value_12
; /* Once value */
290 static val_t once_value_13
; /* Once value */
291 static val_t once_value_14
; /* Once value */
292 static val_t once_value_15
; /* Once value */
293 static val_t once_value_16
; /* Once value */
294 static val_t once_value_17
; /* Once value */
295 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
296 fra
.me
.file
= LOCATE_location
;
298 fra
.me
.meth
= LOCATE_location___Location___to_s
;
299 fra
.me
.has_broke
= 0;
301 fra
.me
.REG
[0] = NIT_NULL
;
302 fra
.me
.REG
[1] = NIT_NULL
;
303 fra
.me
.REG
[2] = NIT_NULL
;
304 fra
.me
.REG
[3] = NIT_NULL
;
305 fra
.me
.REG
[4] = NIT_NULL
;
307 fra
.me
.REG
[1] = CALL_location___Location___file(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
308 REGB0
= TAG_Bool(ATTR_array___AbstractArrayRead____length(fra
.me
.REG
[1])!=NIT_NULL
);
309 /* ./../lib/standard//collection//array.nit:23 */
310 if (UNTAG_Bool(REGB0
)) {
312 fprintf(stderr
, "Uninitialized attribute %s", "_length");
313 fprintf(stderr
, " (%s:%d)\n", LOCATE_array
, 23);
316 REGB0
= ATTR_array___AbstractArrayRead____length(fra
.me
.REG
[1]);
318 REGB1
= TAG_Bool(UNTAG_Int(REGB0
)>UNTAG_Int(REGB1
));
319 /* ./location.nit:72 */
320 if (UNTAG_Bool(REGB1
)) {
322 fra
.me
.REG
[2] = BOX_NativeString(":");
324 fra
.me
.REG
[2] = NEW_String_string___String___with_native(fra
.me
.REG
[2], REGB1
);
325 once_value_1
= fra
.me
.REG
[2];
326 register_static_object(&once_value_1
);
327 } else fra
.me
.REG
[2] = once_value_1
;
328 fra
.me
.REG
[2] = CALL_string___String_____plus(fra
.me
.REG
[1])(fra
.me
.REG
[1], fra
.me
.REG
[2]);
329 fra
.me
.REG
[1] = fra
.me
.REG
[2];
331 REGB1
= CALL_location___Location___line_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
332 REGB0
= CALL_location___Location___line_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
333 REGB2
= TAG_Bool(IS_EQUAL_OO(REGB1
,REGB0
));
334 /* ./location.nit:74 */
335 if (UNTAG_Bool(REGB2
)) {
337 REGB0
= TAG_Bool((REGB1
)==(REGB0
));
339 /* ./location.nit:74 */
341 if (UNTAG_Bool(REGB2
)) {
342 REGB2
= CALL_location___Location___column_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
343 REGB0
= CALL_location___Location___column_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
344 REGB1
= TAG_Bool(IS_EQUAL_OO(REGB2
,REGB0
));
345 /* ./location.nit:75 */
346 if (UNTAG_Bool(REGB1
)) {
348 REGB0
= TAG_Bool((REGB2
)==(REGB0
));
350 /* ./location.nit:75 */
352 if (UNTAG_Bool(REGB1
)) {
354 fra
.me
.REG
[2] = NEW_Array_array___Array___with_capacity(REGB1
);
355 /* ./location.nit:76 */
357 fra
.me
.REG
[3] = BOX_NativeString("");
359 fra
.me
.REG
[3] = NEW_String_string___String___with_native(fra
.me
.REG
[3], REGB1
);
360 once_value_2
= fra
.me
.REG
[3];
361 register_static_object(&once_value_2
);
362 } else fra
.me
.REG
[3] = once_value_2
;
363 array___Array___add(fra
.me
.REG
[2], fra
.me
.REG
[3]);
364 array___Array___add(fra
.me
.REG
[2], fra
.me
.REG
[1]);
366 fra
.me
.REG
[3] = BOX_NativeString("");
368 fra
.me
.REG
[3] = NEW_String_string___String___with_native(fra
.me
.REG
[3], REGB1
);
369 once_value_3
= fra
.me
.REG
[3];
370 register_static_object(&once_value_3
);
371 } else fra
.me
.REG
[3] = once_value_3
;
372 array___Array___add(fra
.me
.REG
[2], fra
.me
.REG
[3]);
373 REGB1
= CALL_location___Location___line_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
374 fra
.me
.REG
[3] = CALL_string___Object___to_s(REGB1
)(REGB1
);
375 array___Array___add(fra
.me
.REG
[2], fra
.me
.REG
[3]);
377 fra
.me
.REG
[3] = BOX_NativeString(",");
379 fra
.me
.REG
[3] = NEW_String_string___String___with_native(fra
.me
.REG
[3], REGB1
);
380 once_value_4
= fra
.me
.REG
[3];
381 register_static_object(&once_value_4
);
382 } else fra
.me
.REG
[3] = once_value_4
;
383 array___Array___add(fra
.me
.REG
[2], fra
.me
.REG
[3]);
384 REGB1
= CALL_location___Location___column_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
385 fra
.me
.REG
[3] = CALL_string___Object___to_s(REGB1
)(REGB1
);
386 array___Array___add(fra
.me
.REG
[2], fra
.me
.REG
[3]);
388 fra
.me
.REG
[3] = BOX_NativeString("");
390 fra
.me
.REG
[3] = NEW_String_string___String___with_native(fra
.me
.REG
[3], REGB1
);
391 once_value_5
= fra
.me
.REG
[3];
392 register_static_object(&once_value_5
);
393 } else fra
.me
.REG
[3] = once_value_5
;
394 array___Array___add(fra
.me
.REG
[2], fra
.me
.REG
[3]);
395 fra
.me
.REG
[2] = CALL_string___Object___to_s(fra
.me
.REG
[2])(fra
.me
.REG
[2]);
399 fra
.me
.REG
[3] = NEW_Array_array___Array___with_capacity(REGB1
);
400 /* ./location.nit:78 */
402 fra
.me
.REG
[4] = BOX_NativeString("");
404 fra
.me
.REG
[4] = NEW_String_string___String___with_native(fra
.me
.REG
[4], REGB1
);
405 once_value_7
= fra
.me
.REG
[4];
406 register_static_object(&once_value_7
);
407 } else fra
.me
.REG
[4] = once_value_7
;
408 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[4]);
409 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[1]);
411 fra
.me
.REG
[4] = BOX_NativeString("");
413 fra
.me
.REG
[4] = NEW_String_string___String___with_native(fra
.me
.REG
[4], REGB1
);
414 once_value_8
= fra
.me
.REG
[4];
415 register_static_object(&once_value_8
);
416 } else fra
.me
.REG
[4] = once_value_8
;
417 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[4]);
418 REGB1
= CALL_location___Location___line_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
419 fra
.me
.REG
[4] = CALL_string___Object___to_s(REGB1
)(REGB1
);
420 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[4]);
422 fra
.me
.REG
[4] = BOX_NativeString(",");
424 fra
.me
.REG
[4] = NEW_String_string___String___with_native(fra
.me
.REG
[4], REGB1
);
425 once_value_9
= fra
.me
.REG
[4];
426 register_static_object(&once_value_9
);
427 } else fra
.me
.REG
[4] = once_value_9
;
428 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[4]);
429 REGB1
= CALL_location___Location___column_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
430 fra
.me
.REG
[4] = CALL_string___Object___to_s(REGB1
)(REGB1
);
431 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[4]);
432 if (!once_value_10
) {
433 fra
.me
.REG
[4] = BOX_NativeString("--");
435 fra
.me
.REG
[4] = NEW_String_string___String___with_native(fra
.me
.REG
[4], REGB1
);
436 once_value_10
= fra
.me
.REG
[4];
437 register_static_object(&once_value_10
);
438 } else fra
.me
.REG
[4] = once_value_10
;
439 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[4]);
440 REGB1
= CALL_location___Location___column_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
441 fra
.me
.REG
[4] = CALL_string___Object___to_s(REGB1
)(REGB1
);
442 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[4]);
443 if (!once_value_11
) {
444 fra
.me
.REG
[4] = BOX_NativeString("");
446 fra
.me
.REG
[4] = NEW_String_string___String___with_native(fra
.me
.REG
[4], REGB1
);
447 once_value_11
= fra
.me
.REG
[4];
448 register_static_object(&once_value_11
);
449 } else fra
.me
.REG
[4] = once_value_11
;
450 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[4]);
451 fra
.me
.REG
[3] = CALL_string___Object___to_s(fra
.me
.REG
[3])(fra
.me
.REG
[3]);
452 fra
.me
.REG
[2] = fra
.me
.REG
[3];
457 fra
.me
.REG
[3] = NEW_Array_array___Array___with_capacity(REGB1
);
458 /* ./location.nit:81 */
459 if (!once_value_12
) {
460 fra
.me
.REG
[4] = BOX_NativeString("");
462 fra
.me
.REG
[4] = NEW_String_string___String___with_native(fra
.me
.REG
[4], REGB1
);
463 once_value_12
= fra
.me
.REG
[4];
464 register_static_object(&once_value_12
);
465 } else fra
.me
.REG
[4] = once_value_12
;
466 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[4]);
467 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[1]);
468 if (!once_value_13
) {
469 fra
.me
.REG
[1] = BOX_NativeString("");
471 fra
.me
.REG
[1] = NEW_String_string___String___with_native(fra
.me
.REG
[1], REGB1
);
472 once_value_13
= fra
.me
.REG
[1];
473 register_static_object(&once_value_13
);
474 } else fra
.me
.REG
[1] = once_value_13
;
475 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[1]);
476 REGB1
= CALL_location___Location___line_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
477 fra
.me
.REG
[1] = CALL_string___Object___to_s(REGB1
)(REGB1
);
478 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[1]);
479 if (!once_value_14
) {
480 fra
.me
.REG
[1] = BOX_NativeString(",");
482 fra
.me
.REG
[1] = NEW_String_string___String___with_native(fra
.me
.REG
[1], REGB1
);
483 once_value_14
= fra
.me
.REG
[1];
484 register_static_object(&once_value_14
);
485 } else fra
.me
.REG
[1] = once_value_14
;
486 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[1]);
487 REGB1
= CALL_location___Location___column_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
488 fra
.me
.REG
[1] = CALL_string___Object___to_s(REGB1
)(REGB1
);
489 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[1]);
490 if (!once_value_15
) {
491 fra
.me
.REG
[1] = BOX_NativeString("--");
493 fra
.me
.REG
[1] = NEW_String_string___String___with_native(fra
.me
.REG
[1], REGB1
);
494 once_value_15
= fra
.me
.REG
[1];
495 register_static_object(&once_value_15
);
496 } else fra
.me
.REG
[1] = once_value_15
;
497 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[1]);
498 REGB1
= CALL_location___Location___line_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
499 fra
.me
.REG
[1] = CALL_string___Object___to_s(REGB1
)(REGB1
);
500 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[1]);
501 if (!once_value_16
) {
502 fra
.me
.REG
[1] = BOX_NativeString(",");
504 fra
.me
.REG
[1] = NEW_String_string___String___with_native(fra
.me
.REG
[1], REGB1
);
505 once_value_16
= fra
.me
.REG
[1];
506 register_static_object(&once_value_16
);
507 } else fra
.me
.REG
[1] = once_value_16
;
508 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[1]);
509 REGB1
= CALL_location___Location___column_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
510 fra
.me
.REG
[0] = CALL_string___Object___to_s(REGB1
)(REGB1
);
511 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[0]);
512 if (!once_value_17
) {
513 fra
.me
.REG
[0] = BOX_NativeString("");
515 fra
.me
.REG
[0] = NEW_String_string___String___with_native(fra
.me
.REG
[0], REGB1
);
516 once_value_17
= fra
.me
.REG
[0];
517 register_static_object(&once_value_17
);
518 } else fra
.me
.REG
[0] = once_value_17
;
519 array___Array___add(fra
.me
.REG
[3], fra
.me
.REG
[0]);
520 fra
.me
.REG
[3] = CALL_string___Object___to_s(fra
.me
.REG
[3])(fra
.me
.REG
[3]);
521 fra
.me
.REG
[2] = fra
.me
.REG
[3];
525 stack_frame_head
= fra
.me
.prev
;
526 return fra
.me
.REG
[2];
528 val_t
location___Location___file(val_t p0
){
529 struct {struct stack_frame_t me
;} fra
;
532 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
533 fra
.me
.file
= LOCATE_location
;
535 fra
.me
.meth
= LOCATE_location___Location___file
;
536 fra
.me
.has_broke
= 0;
538 fra
.me
.REG
[0] = NIT_NULL
;
540 REGB0
= TAG_Bool(ATTR_location___Location____file(fra
.me
.REG
[0])!=NIT_NULL
);
541 /* ./location.nit:23 */
542 if (UNTAG_Bool(REGB0
)) {
544 fprintf(stderr
, "Uninitialized attribute %s", "_file");
545 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 23);
548 fra
.me
.REG
[0] = ATTR_location___Location____file(fra
.me
.REG
[0]);
549 stack_frame_head
= fra
.me
.prev
;
550 return fra
.me
.REG
[0];
552 val_t
location___Location___line_start(val_t p0
){
553 struct {struct stack_frame_t me
;} fra
;
556 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
557 fra
.me
.file
= LOCATE_location
;
559 fra
.me
.meth
= LOCATE_location___Location___line_start
;
560 fra
.me
.has_broke
= 0;
562 fra
.me
.REG
[0] = NIT_NULL
;
564 REGB0
= TAG_Bool(ATTR_location___Location____line_start(fra
.me
.REG
[0])!=NIT_NULL
);
565 /* ./location.nit:24 */
566 if (UNTAG_Bool(REGB0
)) {
568 fprintf(stderr
, "Uninitialized attribute %s", "_line_start");
569 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 24);
572 REGB0
= ATTR_location___Location____line_start(fra
.me
.REG
[0]);
573 stack_frame_head
= fra
.me
.prev
;
576 val_t
location___Location___line_end(val_t p0
){
577 struct {struct stack_frame_t me
;} fra
;
580 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
581 fra
.me
.file
= LOCATE_location
;
583 fra
.me
.meth
= LOCATE_location___Location___line_end
;
584 fra
.me
.has_broke
= 0;
586 fra
.me
.REG
[0] = NIT_NULL
;
588 REGB0
= TAG_Bool(ATTR_location___Location____line_end(fra
.me
.REG
[0])!=NIT_NULL
);
589 /* ./location.nit:25 */
590 if (UNTAG_Bool(REGB0
)) {
592 fprintf(stderr
, "Uninitialized attribute %s", "_line_end");
593 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 25);
596 REGB0
= ATTR_location___Location____line_end(fra
.me
.REG
[0]);
597 stack_frame_head
= fra
.me
.prev
;
600 val_t
location___Location___column_start(val_t p0
){
601 struct {struct stack_frame_t me
;} fra
;
604 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
605 fra
.me
.file
= LOCATE_location
;
607 fra
.me
.meth
= LOCATE_location___Location___column_start
;
608 fra
.me
.has_broke
= 0;
610 fra
.me
.REG
[0] = NIT_NULL
;
612 REGB0
= TAG_Bool(ATTR_location___Location____column_start(fra
.me
.REG
[0])!=NIT_NULL
);
613 /* ./location.nit:26 */
614 if (UNTAG_Bool(REGB0
)) {
616 fprintf(stderr
, "Uninitialized attribute %s", "_column_start");
617 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 26);
620 REGB0
= ATTR_location___Location____column_start(fra
.me
.REG
[0]);
621 stack_frame_head
= fra
.me
.prev
;
624 val_t
location___Location___column_end(val_t p0
){
625 struct {struct stack_frame_t me
;} fra
;
628 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
629 fra
.me
.file
= LOCATE_location
;
631 fra
.me
.meth
= LOCATE_location___Location___column_end
;
632 fra
.me
.has_broke
= 0;
634 fra
.me
.REG
[0] = NIT_NULL
;
636 REGB0
= TAG_Bool(ATTR_location___Location____column_end(fra
.me
.REG
[0])!=NIT_NULL
);
637 /* ./location.nit:27 */
638 if (UNTAG_Bool(REGB0
)) {
640 fprintf(stderr
, "Uninitialized attribute %s", "_column_end");
641 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 27);
644 REGB0
= ATTR_location___Location____column_end(fra
.me
.REG
[0]);
645 stack_frame_head
= fra
.me
.prev
;
648 void location___Location___init(val_t p0
, val_t p1
, val_t p2
, val_t p3
, val_t p4
, val_t p5
, int* init_table
){
649 int itpos0
= VAL2OBJ(p0
)->vft
[INIT_TABLE_POS_Location
].i
;
650 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
656 if (init_table
[itpos0
]) return;
657 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
658 fra
.me
.file
= LOCATE_location
;
660 fra
.me
.meth
= LOCATE_location___Location___init
;
661 fra
.me
.has_broke
= 0;
663 fra
.me
.REG
[0] = NIT_NULL
;
664 fra
.me
.REG
[1] = NIT_NULL
;
671 /* ./location.nit:30 */
672 ATTR_location___Location____file(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
673 /* ./location.nit:31 */
674 ATTR_location___Location____line_start(fra
.me
.REG
[0]) = REGB0
;
675 /* ./location.nit:32 */
676 ATTR_location___Location____line_end(fra
.me
.REG
[0]) = REGB1
;
677 /* ./location.nit:33 */
678 ATTR_location___Location____column_start(fra
.me
.REG
[0]) = REGB2
;
679 /* ./location.nit:34 */
680 ATTR_location___Location____column_end(fra
.me
.REG
[0]) = REGB3
;
681 stack_frame_head
= fra
.me
.prev
;
682 init_table
[itpos0
] = 1;
685 void location___Location___with_file(val_t p0
, val_t p1
, int* init_table
){
686 int itpos1
= VAL2OBJ(p0
)->vft
[INIT_TABLE_POS_Location
].i
;
687 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
693 if (init_table
[itpos1
]) return;
694 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
695 fra
.me
.file
= LOCATE_location
;
697 fra
.me
.meth
= LOCATE_location___Location___with_file
;
698 fra
.me
.has_broke
= 0;
700 fra
.me
.REG
[0] = NIT_NULL
;
701 fra
.me
.REG
[1] = NIT_NULL
;
708 /* ./location.nit:37 */
709 CALL_location___Location___init(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1], REGB0
, REGB1
, REGB2
, REGB3
, init_table
);
710 stack_frame_head
= fra
.me
.prev
;
711 init_table
[itpos1
] = 1;
714 val_t
location___Location___located_in(val_t p0
, val_t p1
){
715 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
721 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
722 fra
.me
.file
= LOCATE_location
;
724 fra
.me
.meth
= LOCATE_location___Location___located_in
;
725 fra
.me
.has_broke
= 0;
727 fra
.me
.REG
[0] = NIT_NULL
;
728 fra
.me
.REG
[1] = NIT_NULL
;
731 REGB0
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
732 /* ./location.nit:53 */
733 if (UNTAG_Bool(REGB0
)) {
735 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
736 if (UNTAG_Bool(REGB1
)) {
737 REGB1
= TAG_Bool(false);
740 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[1])(fra
.me
.REG
[1], NIT_NULL
);
744 if (UNTAG_Bool(REGB0
)) {
745 REGB0
= TAG_Bool(false);
748 REGB1
= CALL_location___Location___line_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
749 REGB2
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
750 /* ./location.nit:55 */
751 if (UNTAG_Bool(REGB2
)) {
752 fprintf(stderr
, "Reciever is null");
753 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 55);
756 REGB2
= CALL_location___Location___line_start(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
757 REGB2
= TAG_Bool(UNTAG_Int(REGB1
)<UNTAG_Int(REGB2
));
758 /* ./location.nit:55 */
759 if (UNTAG_Bool(REGB2
)) {
760 REGB2
= TAG_Bool(false);
764 REGB2
= CALL_location___Location___line_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
765 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
766 /* ./location.nit:56 */
767 if (UNTAG_Bool(REGB1
)) {
768 fprintf(stderr
, "Reciever is null");
769 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 56);
772 REGB1
= CALL_location___Location___line_end(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
773 REGB1
= TAG_Bool(UNTAG_Int(REGB2
)>UNTAG_Int(REGB1
));
774 /* ./location.nit:56 */
775 if (UNTAG_Bool(REGB1
)) {
776 REGB1
= TAG_Bool(false);
780 REGB1
= CALL_location___Location___line_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
781 REGB2
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
782 /* ./location.nit:58 */
783 if (UNTAG_Bool(REGB2
)) {
784 fprintf(stderr
, "Reciever is null");
785 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 58);
788 REGB2
= CALL_location___Location___line_end(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
789 REGB2
= TAG_Bool(UNTAG_Int(REGB1
)>UNTAG_Int(REGB2
));
790 /* ./location.nit:58 */
791 if (UNTAG_Bool(REGB2
)) {
792 REGB2
= TAG_Bool(false);
796 REGB2
= CALL_location___Location___line_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
797 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
798 /* ./location.nit:60 */
799 if (UNTAG_Bool(REGB1
)) {
800 fprintf(stderr
, "Reciever is null");
801 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 60);
804 REGB1
= CALL_location___Location___line_start(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
805 REGB3
= TAG_Bool(IS_EQUAL_OO(REGB2
,REGB1
));
806 if (UNTAG_Bool(REGB3
)) {
808 REGB1
= TAG_Bool((REGB2
)==(REGB1
));
810 /* ./location.nit:60 */
812 if (UNTAG_Bool(REGB3
)) {
813 REGB3
= CALL_location___Location___column_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
814 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
815 /* ./location.nit:61 */
816 if (UNTAG_Bool(REGB1
)) {
817 fprintf(stderr
, "Reciever is null");
818 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 61);
821 REGB1
= CALL_location___Location___column_start(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
822 REGB1
= TAG_Bool(UNTAG_Int(REGB3
)<UNTAG_Int(REGB1
));
823 /* ./location.nit:61 */
824 if (UNTAG_Bool(REGB1
)) {
825 REGB1
= TAG_Bool(false);
829 REGB1
= CALL_location___Location___column_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
830 REGB3
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
831 /* ./location.nit:62 */
832 if (UNTAG_Bool(REGB3
)) {
833 fprintf(stderr
, "Reciever is null");
834 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 62);
837 REGB3
= CALL_location___Location___column_end(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
838 REGB3
= TAG_Bool(UNTAG_Int(REGB1
)>UNTAG_Int(REGB3
));
839 /* ./location.nit:62 */
840 if (UNTAG_Bool(REGB3
)) {
841 REGB3
= TAG_Bool(false);
846 REGB3
= CALL_location___Location___line_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
847 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
848 /* ./location.nit:65 */
849 if (UNTAG_Bool(REGB1
)) {
850 fprintf(stderr
, "Reciever is null");
851 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 65);
854 REGB1
= CALL_location___Location___line_end(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
855 REGB2
= TAG_Bool(IS_EQUAL_OO(REGB3
,REGB1
));
856 if (UNTAG_Bool(REGB2
)) {
858 REGB1
= TAG_Bool((REGB3
)==(REGB1
));
860 /* ./location.nit:65 */
862 if (UNTAG_Bool(REGB2
)) {
863 REGB2
= CALL_location___Location___column_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
864 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
865 if (UNTAG_Bool(REGB1
)) {
866 fprintf(stderr
, "Reciever is null");
867 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 65);
870 REGB1
= CALL_location___Location___column_end(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
871 REGB1
= TAG_Bool(UNTAG_Int(REGB2
)>UNTAG_Int(REGB1
));
872 /* ./location.nit:65 */
874 REGB2
= TAG_Bool(false);
877 if (UNTAG_Bool(REGB1
)) {
878 REGB1
= TAG_Bool(false);
882 REGB1
= TAG_Bool(true);
884 /* ./location.nit:67 */
887 stack_frame_head
= fra
.me
.prev
;
890 val_t
location___Location___relative_to(val_t p0
, val_t p1
){
891 struct {struct stack_frame_t me
; val_t MORE_REG
[2];} fra
;
897 static val_t once_value_1
; /* Once value */
898 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
899 fra
.me
.file
= LOCATE_location
;
901 fra
.me
.meth
= LOCATE_location___Location___relative_to
;
902 fra
.me
.has_broke
= 0;
904 fra
.me
.REG
[0] = NIT_NULL
;
905 fra
.me
.REG
[1] = NIT_NULL
;
906 fra
.me
.REG
[2] = NIT_NULL
;
909 REGB0
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
910 /* ./location.nit:87 */
911 if (UNTAG_Bool(REGB0
)) {
913 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
914 if (UNTAG_Bool(REGB1
)) {
915 REGB1
= TAG_Bool(false);
918 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[1])(fra
.me
.REG
[1], NIT_NULL
);
922 REGB0
= TAG_Bool(!UNTAG_Bool(REGB0
));
923 if (UNTAG_Bool(REGB0
)) {
924 REGB0
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
925 if (UNTAG_Bool(REGB0
)) {
926 fprintf(stderr
, "Reciever is null");
927 fprintf(stderr
, " (%s:%d)\n", LOCATE_location
, 87);
930 fra
.me
.REG
[1] = CALL_location___Location___file(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
931 fra
.me
.REG
[2] = CALL_location___Location___file(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
932 REGB0
= TAG_Bool(IS_EQUAL_OO(fra
.me
.REG
[1],fra
.me
.REG
[2]));
933 if (UNTAG_Bool(REGB0
)) {
935 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[1])(fra
.me
.REG
[1], fra
.me
.REG
[2]);
939 REGB1
= TAG_Bool(false);
942 if (UNTAG_Bool(REGB0
)) {
943 /* ./location.nit:88 */
945 fra
.me
.REG
[2] = BOX_NativeString("");
947 fra
.me
.REG
[2] = NEW_String_string___String___with_native(fra
.me
.REG
[2], REGB0
);
948 once_value_1
= fra
.me
.REG
[2];
949 register_static_object(&once_value_1
);
950 } else fra
.me
.REG
[2] = once_value_1
;
951 REGB0
= CALL_location___Location___line_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
952 REGB1
= CALL_location___Location___line_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
953 REGB2
= CALL_location___Location___column_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
954 REGB3
= CALL_location___Location___column_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
955 fra
.me
.REG
[2] = NEW_Location_location___Location___init(fra
.me
.REG
[2], REGB0
, REGB1
, REGB2
, REGB3
);
957 fra
.me
.REG
[1] = CALL_location___Location___file(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
958 REGB3
= CALL_location___Location___line_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
959 REGB2
= CALL_location___Location___line_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
960 REGB1
= CALL_location___Location___column_start(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
961 REGB0
= CALL_location___Location___column_end(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
962 fra
.me
.REG
[1] = NEW_Location_location___Location___init(fra
.me
.REG
[1], REGB3
, REGB2
, REGB1
, REGB0
);
963 fra
.me
.REG
[2] = fra
.me
.REG
[1];
964 /* ./location.nit:90 */
966 fra
.me
.REG
[2] = CALL_string___Object___to_s(fra
.me
.REG
[2])(fra
.me
.REG
[2]);
967 /* ./location.nit:92 */
970 stack_frame_head
= fra
.me
.prev
;
971 return fra
.me
.REG
[2];