1 #include "core__ropes.sep.0.h"
2 /* method ropes#RopeChars#reverse_iterator_from for (self: RopeChars, Int): IndexedIterator[Char] */
3 val
* core__ropes___core__ropes__RopeChars___core__abstract_collection__SequenceRead__reverse_iterator_from(val
* self
, long p0
) {
4 val
* var
/* : IndexedIterator[Char] */;
5 long var_i
/* var i: Int */;
6 val
* var1
/* : RopeCharReverseIterator */;
7 val
* var2
/* : Text */;
8 val
* var4
/* : Text */;
10 var1
= NEW_core__ropes__RopeCharReverseIterator(&type_core__ropes__RopeCharReverseIterator
);
12 { /* Inline abstract_text#StringCharView#target (self) on <self:RopeChars> */
13 var4
= self
->attrs
[COLOR_core__abstract_text__StringCharView___target
].val
; /* _target on <self:RopeChars> */
14 if (unlikely(var4
== NULL
)) {
15 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
16 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1138);
24 core__ropes___core__ropes__RopeCharReverseIterator___from(var1
, var2
, var_i
); /* Direct call ropes#RopeCharReverseIterator#from on <var1:RopeCharReverseIterator>*/
31 /* method ropes#RopeBytes#[] for (self: RopeBytes, Int): Byte */
32 unsigned char core__ropes___core__ropes__RopeBytes___core__abstract_collection__SequenceRead___91d_93d(val
* self
, long p0
) {
33 unsigned char var
/* : Byte */;
34 long var_i
/* var i: Int */;
35 val
* var1
/* : Text */;
36 val
* var3
/* : Text */;
37 val
* var_nod
/* var nod: String */;
38 short int var4
/* : Bool */;
41 char* var5
/* : NativeString */;
42 unsigned char var6
/* : Byte */;
43 unsigned char var8
/* : Byte */;
44 short int var9
/* : Bool */;
47 short int var12
/* : Bool */;
48 val
* var13
/* : String */;
49 val
* var_lft
/* var lft: String */;
50 long var14
/* : Int */;
51 short int var15
/* : Bool */;
52 short int var17
/* : Bool */;
55 const char* var_class_name
;
56 short int var20
/* : Bool */;
57 val
* var21
/* : String */;
60 { /* Inline abstract_text#StringByteView#target (self) on <self:RopeBytes> */
61 var3
= self
->attrs
[COLOR_core__abstract_text__StringByteView___target
].val
; /* _target on <self:RopeBytes> */
62 if (unlikely(var3
== NULL
)) {
63 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
64 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1156);
73 /* <var_nod:String> isa FlatString */
74 cltype
= type_core__FlatString
.color
;
75 idtype
= type_core__FlatString
.id
;
76 if(cltype
>= var_nod
->type
->table_size
) {
79 var4
= var_nod
->type
->type_table
[cltype
] == idtype
;
82 var5
= var_nod
->attrs
[COLOR_core__abstract_text__FlatText___items
].str
; /* _items on <var_nod:String(FlatString)> */
84 { /* Inline native#NativeString#[] (var5,var_i) on <var5:NativeString> */
85 var8
= (unsigned char)((int)var5
[var_i
]);
95 /* <var_nod:String> isa Concat */
96 cltype10
= type_core__ropes__Concat
.color
;
97 idtype11
= type_core__ropes__Concat
.id
;
98 if(cltype10
>= var_nod
->type
->table_size
) {
101 var9
= var_nod
->type
->type_table
[cltype10
] == idtype11
;
105 PRINT_ERROR("Runtime error: %s", "Aborted");
106 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 991);
110 var13
= var_nod
->attrs
[COLOR_core__ropes__Concat___left
].val
; /* _left on <var_nod:String(Concat)> */
111 if (unlikely(var13
== NULL
)) {
112 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _left");
113 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 992);
118 var14
= ((long(*)(val
* self
))(var_lft
->class->vft
[COLOR_core__abstract_text__Text__bytelen
]))(var_lft
); /* bytelen on <var_lft:String>*/
121 { /* Inline kernel#Int#>= (var14,var_i) on <var14:Int> */
122 /* Covariant cast for argument 0 (i) <var_i:Int> isa OTHER */
123 /* <var_i:Int> isa OTHER */
124 var17
= 1; /* easy <var_i:Int> isa OTHER*/
125 if (unlikely(!var17
)) {
126 var_class_name
= type_core__Int
.name
;
127 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
128 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 729);
131 var20
= var14
>= var_i
;
138 var21
= var_nod
->attrs
[COLOR_core__ropes__Concat___right
].val
; /* _right on <var_nod:String(Concat)> */
139 if (unlikely(var21
== NULL
)) {
140 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _right");
141 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 994);
152 /* method ropes#RopeBytes#[] for (self: SequenceRead[nullable Object], Int): nullable Object */
153 val
* VIRTUAL_core__ropes___core__ropes__RopeBytes___core__abstract_collection__SequenceRead___91d_93d(val
* self
, long p0
) {
154 val
* var
/* : nullable Object */;
155 unsigned char var1
/* : Byte */;
156 val
* var2
/* : nullable Object */;
157 var1
= core__ropes___core__ropes__RopeBytes___core__abstract_collection__SequenceRead___91d_93d(self
, p0
);
158 var2
= BOX_core__Byte(var1
); /* autobox from Byte to nullable Object */
163 /* method ropes#RopeBytes#iterator_from for (self: RopeBytes, Int): IndexedIterator[Byte] */
164 val
* core__ropes___core__ropes__RopeBytes___core__abstract_collection__SequenceRead__iterator_from(val
* self
, long p0
) {
165 val
* var
/* : IndexedIterator[Byte] */;
166 long var_i
/* var i: Int */;
167 val
* var1
/* : RopeByteIterator */;
168 val
* var2
/* : Text */;
169 val
* var4
/* : Text */;
171 var1
= NEW_core__ropes__RopeByteIterator(&type_core__ropes__RopeByteIterator
);
173 { /* Inline abstract_text#StringByteView#target (self) on <self:RopeBytes> */
174 var4
= self
->attrs
[COLOR_core__abstract_text__StringByteView___target
].val
; /* _target on <self:RopeBytes> */
175 if (unlikely(var4
== NULL
)) {
176 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
177 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1156);
185 core__ropes___core__ropes__RopeByteIterator___from(var1
, var2
, var_i
); /* Direct call ropes#RopeByteIterator#from on <var1:RopeByteIterator>*/
192 /* method ropes#RopeBytes#reverse_iterator_from for (self: RopeBytes, Int): IndexedIterator[Byte] */
193 val
* core__ropes___core__ropes__RopeBytes___core__abstract_collection__SequenceRead__reverse_iterator_from(val
* self
, long p0
) {
194 val
* var
/* : IndexedIterator[Byte] */;
195 long var_i
/* var i: Int */;
196 val
* var1
/* : RopeByteReverseIterator */;
197 val
* var2
/* : Text */;
198 val
* var4
/* : Text */;
200 var1
= NEW_core__ropes__RopeByteReverseIterator(&type_core__ropes__RopeByteReverseIterator
);
202 { /* Inline abstract_text#StringByteView#target (self) on <self:RopeBytes> */
203 var4
= self
->attrs
[COLOR_core__abstract_text__StringByteView___target
].val
; /* _target on <self:RopeBytes> */
204 if (unlikely(var4
== NULL
)) {
205 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
206 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1156);
214 core__ropes___core__ropes__RopeByteReverseIterator___from(var1
, var2
, var_i
); /* Direct call ropes#RopeByteReverseIterator#from on <var1:RopeByteReverseIterator>*/
221 /* method ropes#RopeBufferCharIterator#sit for (self: RopeBufferCharIterator): IndexedIterator[Char] */
222 val
* core___core__RopeBufferCharIterator___sit(val
* self
) {
223 val
* var
/* : IndexedIterator[Char] */;
224 val
* var1
/* : IndexedIterator[Char] */;
225 var1
= self
->attrs
[COLOR_core__ropes__RopeBufferCharIterator___sit
].val
; /* _sit on <self:RopeBufferCharIterator> */
226 if (unlikely(var1
== NULL
)) {
227 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
228 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1011);
235 /* method ropes#RopeBufferCharIterator#sit= for (self: RopeBufferCharIterator, IndexedIterator[Char]) */
236 void core___core__RopeBufferCharIterator___sit_61d(val
* self
, val
* p0
) {
237 self
->attrs
[COLOR_core__ropes__RopeBufferCharIterator___sit
].val
= p0
; /* _sit on <self:RopeBufferCharIterator> */
240 /* method ropes#RopeBufferCharIterator#index for (self: RopeBufferCharIterator): Int */
241 long core___core__RopeBufferCharIterator___core__abstract_collection__IndexedIterator__index(val
* self
) {
242 long var
/* : Int */;
243 val
* var1
/* : IndexedIterator[Char] */;
244 val
* var3
/* : IndexedIterator[Char] */;
245 long var4
/* : Int */;
247 { /* Inline ropes#RopeBufferCharIterator#sit (self) on <self:RopeBufferCharIterator> */
248 var3
= self
->attrs
[COLOR_core__ropes__RopeBufferCharIterator___sit
].val
; /* _sit on <self:RopeBufferCharIterator> */
249 if (unlikely(var3
== NULL
)) {
250 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
251 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1011);
259 var4
= ((long(*)(val
* self
))((((long)var1
&3)?class_info
[((long)var1
&3)]:var1
->class)->vft
[COLOR_core__abstract_collection__IndexedIterator__index
]))(var1
); /* index on <var1:IndexedIterator[Char]>*/
266 /* method ropes#RopeBufferCharIterator#from for (self: RopeBufferCharIterator, RopeBuffer, Int) */
267 void core___core__RopeBufferCharIterator___from(val
* self
, val
* p0
, long p1
) {
268 val
* var_t
/* var t: RopeBuffer */;
269 long var_pos
/* var pos: Int */;
270 val
* var
/* : String */;
271 val
* var3
/* : String */;
272 val
* var4
/* : SequenceRead[Char] */;
273 val
* var5
/* : IndexedIterator[nullable Object] */;
275 { /* Inline kernel#Object#init (self) on <self:RopeBufferCharIterator> */
282 core___core__RopeBuffer___persist_buffer(var_t
); /* Direct call ropes#RopeBuffer#persist_buffer on <var_t:RopeBuffer>*/
285 { /* Inline ropes#RopeBuffer#str (var_t) on <var_t:RopeBuffer> */
286 var3
= var_t
->attrs
[COLOR_core__ropes__RopeBuffer___str
].val
; /* _str on <var_t:RopeBuffer> */
287 if (unlikely(var3
== NULL
)) {
288 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _str");
289 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 310);
297 var4
= ((val
*(*)(val
* self
))(var
->class->vft
[COLOR_core__abstract_text__Text__chars
]))(var
); /* chars on <var:String>*/
300 var5
= ((val
*(*)(val
* self
, long p0
))((((long)var4
&3)?class_info
[((long)var4
&3)]:var4
->class)->vft
[COLOR_core__abstract_collection__SequenceRead__iterator_from
]))(var4
, var_pos
); /* iterator_from on <var4:SequenceRead[Char]>*/
303 { /* Inline ropes#RopeBufferCharIterator#sit= (self,var5) on <self:RopeBufferCharIterator> */
304 self
->attrs
[COLOR_core__ropes__RopeBufferCharIterator___sit
].val
= var5
; /* _sit on <self:RopeBufferCharIterator> */
310 /* method ropes#RopeBufferCharIterator#is_ok for (self: RopeBufferCharIterator): Bool */
311 short int core___core__RopeBufferCharIterator___core__abstract_collection__Iterator__is_ok(val
* self
) {
312 short int var
/* : Bool */;
313 val
* var1
/* : IndexedIterator[Char] */;
314 val
* var3
/* : IndexedIterator[Char] */;
315 short int var4
/* : Bool */;
317 { /* Inline ropes#RopeBufferCharIterator#sit (self) on <self:RopeBufferCharIterator> */
318 var3
= self
->attrs
[COLOR_core__ropes__RopeBufferCharIterator___sit
].val
; /* _sit on <self:RopeBufferCharIterator> */
319 if (unlikely(var3
== NULL
)) {
320 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
321 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1011);
329 var4
= ((short int(*)(val
* self
))((((long)var1
&3)?class_info
[((long)var1
&3)]:var1
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var1
); /* is_ok on <var1:IndexedIterator[Char]>*/
336 /* method ropes#RopeBufferCharIterator#item for (self: RopeBufferCharIterator): Char */
337 uint32_t core___core__RopeBufferCharIterator___core__abstract_collection__Iterator__item(val
* self
) {
338 uint32_t var
/* : Char */;
339 short int var1
/* : Bool */;
340 val
* var2
/* : IndexedIterator[Char] */;
341 val
* var4
/* : IndexedIterator[Char] */;
342 val
* var5
/* : nullable Object */;
343 uint32_t var6
/* : Char */;
345 var1
= core___core__RopeBufferCharIterator___core__abstract_collection__Iterator__is_ok(self
);
347 if (unlikely(!var1
)) {
348 PRINT_ERROR("Runtime error: %s", "Assert failed");
349 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1025);
353 { /* Inline ropes#RopeBufferCharIterator#sit (self) on <self:RopeBufferCharIterator> */
354 var4
= self
->attrs
[COLOR_core__ropes__RopeBufferCharIterator___sit
].val
; /* _sit on <self:RopeBufferCharIterator> */
355 if (unlikely(var4
== NULL
)) {
356 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
357 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1011);
365 var5
= ((val
*(*)(val
* self
))((((long)var2
&3)?class_info
[((long)var2
&3)]:var2
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var2
); /* item on <var2:IndexedIterator[Char]>*/
367 var6
= (uint32_t)((long)(var5
)>>2);
373 /* method ropes#RopeBufferCharIterator#item for (self: Iterator[nullable Object]): nullable Object */
374 val
* VIRTUAL_core___core__RopeBufferCharIterator___core__abstract_collection__Iterator__item(val
* self
) {
375 val
* var
/* : nullable Object */;
376 uint32_t var1
/* : Char */;
377 val
* var2
/* : nullable Object */;
378 var1
= core___core__RopeBufferCharIterator___core__abstract_collection__Iterator__item(self
);
379 var2
= (val
*)((long)(var1
)<<2|2);
384 /* method ropes#RopeBufferCharIterator#next for (self: RopeBufferCharIterator) */
385 void core___core__RopeBufferCharIterator___core__abstract_collection__Iterator__next(val
* self
) {
386 val
* var
/* : IndexedIterator[Char] */;
387 val
* var2
/* : IndexedIterator[Char] */;
389 { /* Inline ropes#RopeBufferCharIterator#sit (self) on <self:RopeBufferCharIterator> */
390 var2
= self
->attrs
[COLOR_core__ropes__RopeBufferCharIterator___sit
].val
; /* _sit on <self:RopeBufferCharIterator> */
391 if (unlikely(var2
== NULL
)) {
392 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
393 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1011);
401 ((void(*)(val
* self
))((((long)var
&3)?class_info
[((long)var
&3)]:var
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var
); /* next on <var:IndexedIterator[Char]>*/
405 /* method ropes#RopeBufferCharReverseIterator#sit for (self: RopeBufferCharReverseIterator): IndexedIterator[Char] */
406 val
* core___core__RopeBufferCharReverseIterator___sit(val
* self
) {
407 val
* var
/* : IndexedIterator[Char] */;
408 val
* var1
/* : IndexedIterator[Char] */;
409 var1
= self
->attrs
[COLOR_core__ropes__RopeBufferCharReverseIterator___sit
].val
; /* _sit on <self:RopeBufferCharReverseIterator> */
410 if (unlikely(var1
== NULL
)) {
411 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
412 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1036);
419 /* method ropes#RopeBufferCharReverseIterator#sit= for (self: RopeBufferCharReverseIterator, IndexedIterator[Char]) */
420 void core___core__RopeBufferCharReverseIterator___sit_61d(val
* self
, val
* p0
) {
421 self
->attrs
[COLOR_core__ropes__RopeBufferCharReverseIterator___sit
].val
= p0
; /* _sit on <self:RopeBufferCharReverseIterator> */
424 /* method ropes#RopeBufferCharReverseIterator#index for (self: RopeBufferCharReverseIterator): Int */
425 long core___core__RopeBufferCharReverseIterator___core__abstract_collection__IndexedIterator__index(val
* self
) {
426 long var
/* : Int */;
427 val
* var1
/* : IndexedIterator[Char] */;
428 val
* var3
/* : IndexedIterator[Char] */;
429 long var4
/* : Int */;
431 { /* Inline ropes#RopeBufferCharReverseIterator#sit (self) on <self:RopeBufferCharReverseIterator> */
432 var3
= self
->attrs
[COLOR_core__ropes__RopeBufferCharReverseIterator___sit
].val
; /* _sit on <self:RopeBufferCharReverseIterator> */
433 if (unlikely(var3
== NULL
)) {
434 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
435 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1036);
443 var4
= ((long(*)(val
* self
))((((long)var1
&3)?class_info
[((long)var1
&3)]:var1
->class)->vft
[COLOR_core__abstract_collection__IndexedIterator__index
]))(var1
); /* index on <var1:IndexedIterator[Char]>*/
450 /* method ropes#RopeBufferCharReverseIterator#from for (self: RopeBufferCharReverseIterator, RopeBuffer, Int) */
451 void core___core__RopeBufferCharReverseIterator___from(val
* self
, val
* p0
, long p1
) {
452 val
* var_tgt
/* var tgt: RopeBuffer */;
453 long var_pos
/* var pos: Int */;
454 val
* var
/* : String */;
455 val
* var3
/* : String */;
456 val
* var4
/* : SequenceRead[Char] */;
457 val
* var5
/* : IndexedIterator[nullable Object] */;
459 { /* Inline kernel#Object#init (self) on <self:RopeBufferCharReverseIterator> */
466 core___core__RopeBuffer___persist_buffer(var_tgt
); /* Direct call ropes#RopeBuffer#persist_buffer on <var_tgt:RopeBuffer>*/
469 { /* Inline ropes#RopeBuffer#str (var_tgt) on <var_tgt:RopeBuffer> */
470 var3
= var_tgt
->attrs
[COLOR_core__ropes__RopeBuffer___str
].val
; /* _str on <var_tgt:RopeBuffer> */
471 if (unlikely(var3
== NULL
)) {
472 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _str");
473 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 310);
481 var4
= ((val
*(*)(val
* self
))(var
->class->vft
[COLOR_core__abstract_text__Text__chars
]))(var
); /* chars on <var:String>*/
484 var5
= ((val
*(*)(val
* self
, long p0
))((((long)var4
&3)?class_info
[((long)var4
&3)]:var4
->class)->vft
[COLOR_core__abstract_collection__SequenceRead__reverse_iterator_from
]))(var4
, var_pos
); /* reverse_iterator_from on <var4:SequenceRead[Char]>*/
487 { /* Inline ropes#RopeBufferCharReverseIterator#sit= (self,var5) on <self:RopeBufferCharReverseIterator> */
488 self
->attrs
[COLOR_core__ropes__RopeBufferCharReverseIterator___sit
].val
= var5
; /* _sit on <self:RopeBufferCharReverseIterator> */
494 /* method ropes#RopeBufferCharReverseIterator#is_ok for (self: RopeBufferCharReverseIterator): Bool */
495 short int core___core__RopeBufferCharReverseIterator___core__abstract_collection__Iterator__is_ok(val
* self
) {
496 short int var
/* : Bool */;
497 val
* var1
/* : IndexedIterator[Char] */;
498 val
* var3
/* : IndexedIterator[Char] */;
499 short int var4
/* : Bool */;
501 { /* Inline ropes#RopeBufferCharReverseIterator#sit (self) on <self:RopeBufferCharReverseIterator> */
502 var3
= self
->attrs
[COLOR_core__ropes__RopeBufferCharReverseIterator___sit
].val
; /* _sit on <self:RopeBufferCharReverseIterator> */
503 if (unlikely(var3
== NULL
)) {
504 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
505 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1036);
513 var4
= ((short int(*)(val
* self
))((((long)var1
&3)?class_info
[((long)var1
&3)]:var1
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var1
); /* is_ok on <var1:IndexedIterator[Char]>*/
520 /* method ropes#RopeBufferCharReverseIterator#item for (self: RopeBufferCharReverseIterator): Char */
521 uint32_t core___core__RopeBufferCharReverseIterator___core__abstract_collection__Iterator__item(val
* self
) {
522 uint32_t var
/* : Char */;
523 short int var1
/* : Bool */;
524 val
* var2
/* : IndexedIterator[Char] */;
525 val
* var4
/* : IndexedIterator[Char] */;
526 val
* var5
/* : nullable Object */;
527 uint32_t var6
/* : Char */;
529 var1
= core___core__RopeBufferCharReverseIterator___core__abstract_collection__Iterator__is_ok(self
);
531 if (unlikely(!var1
)) {
532 PRINT_ERROR("Runtime error: %s", "Assert failed");
533 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1050);
537 { /* Inline ropes#RopeBufferCharReverseIterator#sit (self) on <self:RopeBufferCharReverseIterator> */
538 var4
= self
->attrs
[COLOR_core__ropes__RopeBufferCharReverseIterator___sit
].val
; /* _sit on <self:RopeBufferCharReverseIterator> */
539 if (unlikely(var4
== NULL
)) {
540 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
541 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1036);
549 var5
= ((val
*(*)(val
* self
))((((long)var2
&3)?class_info
[((long)var2
&3)]:var2
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var2
); /* item on <var2:IndexedIterator[Char]>*/
551 var6
= (uint32_t)((long)(var5
)>>2);
557 /* method ropes#RopeBufferCharReverseIterator#item for (self: Iterator[nullable Object]): nullable Object */
558 val
* VIRTUAL_core___core__RopeBufferCharReverseIterator___core__abstract_collection__Iterator__item(val
* self
) {
559 val
* var
/* : nullable Object */;
560 uint32_t var1
/* : Char */;
561 val
* var2
/* : nullable Object */;
562 var1
= core___core__RopeBufferCharReverseIterator___core__abstract_collection__Iterator__item(self
);
563 var2
= (val
*)((long)(var1
)<<2|2);
568 /* method ropes#RopeBufferCharReverseIterator#next for (self: RopeBufferCharReverseIterator) */
569 void core___core__RopeBufferCharReverseIterator___core__abstract_collection__Iterator__next(val
* self
) {
570 val
* var
/* : IndexedIterator[Char] */;
571 val
* var2
/* : IndexedIterator[Char] */;
573 { /* Inline ropes#RopeBufferCharReverseIterator#sit (self) on <self:RopeBufferCharReverseIterator> */
574 var2
= self
->attrs
[COLOR_core__ropes__RopeBufferCharReverseIterator___sit
].val
; /* _sit on <self:RopeBufferCharReverseIterator> */
575 if (unlikely(var2
== NULL
)) {
576 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
577 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1036);
585 ((void(*)(val
* self
))((((long)var
&3)?class_info
[((long)var
&3)]:var
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var
); /* next on <var:IndexedIterator[Char]>*/
589 /* method ropes#RopeBufferChars#[] for (self: RopeBufferChars, Int): Char */
590 uint32_t core___core__RopeBufferChars___core__abstract_collection__SequenceRead___91d_93d(val
* self
, long p0
) {
591 uint32_t var
/* : Char */;
592 long var_i
/* var i: Int */;
593 val
* var1
/* : Text */;
594 val
* var3
/* : Text */;
595 uint32_t var4
/* : Char */;
598 { /* Inline abstract_text#StringCharView#target (self) on <self:RopeBufferChars> */
599 var3
= self
->attrs
[COLOR_core__abstract_text__StringCharView___target
].val
; /* _target on <self:RopeBufferChars> */
600 if (unlikely(var3
== NULL
)) {
601 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
602 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1138);
610 var4
= core___core__RopeBuffer___core__abstract_text__Text___91d_93d(var1
, var_i
);
617 /* method ropes#RopeBufferChars#[] for (self: SequenceRead[nullable Object], Int): nullable Object */
618 val
* VIRTUAL_core___core__RopeBufferChars___core__abstract_collection__SequenceRead___91d_93d(val
* self
, long p0
) {
619 val
* var
/* : nullable Object */;
620 uint32_t var1
/* : Char */;
621 val
* var2
/* : nullable Object */;
622 var1
= core___core__RopeBufferChars___core__abstract_collection__SequenceRead___91d_93d(self
, p0
);
623 var2
= (val
*)((long)(var1
)<<2|2);
628 /* method ropes#RopeBufferChars#[]= for (self: RopeBufferChars, Int, Char) */
629 void core___core__RopeBufferChars___core__abstract_collection__Sequence___91d_93d_61d(val
* self
, long p0
, uint32_t p1
) {
630 short int var
/* : Bool */;
633 const char* var_class_name
;
634 long var_i
/* var i: Int */;
635 uint32_t var_c
/* var c: Char */;
636 val
* var1
/* : Text */;
637 val
* var3
/* : Text */;
638 /* Covariant cast for argument 1 (c) <p1:Char> isa Char */
639 /* <p1:Char> isa Char */
640 var
= 1; /* easy <p1:Char> isa Char*/
641 if (unlikely(!var
)) {
642 var_class_name
= type_core__Char
.name
;
643 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "Char", var_class_name
);
644 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1065);
650 { /* Inline abstract_text#StringCharView#target (self) on <self:RopeBufferChars> */
651 var3
= self
->attrs
[COLOR_core__abstract_text__StringCharView___target
].val
; /* _target on <self:RopeBufferChars> */
652 if (unlikely(var3
== NULL
)) {
653 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
654 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1138);
662 core___core__RopeBuffer___core__abstract_text__Buffer___91d_93d_61d(var1
, var_i
, var_c
); /* Direct call ropes#RopeBuffer#[]= on <var1:Text(RopeBuffer)>*/
666 /* method ropes#RopeBufferChars#[]= for (self: Sequence[nullable Object], Int, nullable Object) */
667 void VIRTUAL_core___core__RopeBufferChars___core__abstract_collection__Sequence___91d_93d_61d(val
* self
, long p0
, val
* p1
) {
668 uint32_t var
/* : Char */;
669 var
= (uint32_t)((long)(p1
)>>2);
670 core___core__RopeBufferChars___core__abstract_collection__Sequence___91d_93d_61d(self
, p0
, var
); /* Direct call ropes#RopeBufferChars#[]= on <self:Sequence[nullable Object](RopeBufferChars)>*/
673 /* method ropes#RopeBufferChars#add for (self: RopeBufferChars, Char) */
674 void core___core__RopeBufferChars___core__abstract_collection__SimpleCollection__add(val
* self
, uint32_t p0
) {
675 short int var
/* : Bool */;
678 const char* var_class_name
;
679 uint32_t var_c
/* var c: Char */;
680 val
* var1
/* : Text */;
681 val
* var3
/* : Text */;
682 /* Covariant cast for argument 0 (c) <p0:Char> isa Char */
683 /* <p0:Char> isa Char */
684 var
= 1; /* easy <p0:Char> isa Char*/
685 if (unlikely(!var
)) {
686 var_class_name
= type_core__Char
.name
;
687 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "Char", var_class_name
);
688 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1067);
693 { /* Inline abstract_text#StringCharView#target (self) on <self:RopeBufferChars> */
694 var3
= self
->attrs
[COLOR_core__abstract_text__StringCharView___target
].val
; /* _target on <self:RopeBufferChars> */
695 if (unlikely(var3
== NULL
)) {
696 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
697 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1138);
705 core___core__RopeBuffer___core__abstract_text__Buffer__add(var1
, var_c
); /* Direct call ropes#RopeBuffer#add on <var1:Text(RopeBuffer)>*/
709 /* method ropes#RopeBufferChars#add for (self: SimpleCollection[nullable Object], nullable Object) */
710 void VIRTUAL_core___core__RopeBufferChars___core__abstract_collection__SimpleCollection__add(val
* self
, val
* p0
) {
711 uint32_t var
/* : Char */;
712 var
= (uint32_t)((long)(p0
)>>2);
713 core___core__RopeBufferChars___core__abstract_collection__SimpleCollection__add(self
, var
); /* Direct call ropes#RopeBufferChars#add on <self:SimpleCollection[nullable Object](RopeBufferChars)>*/
716 /* method ropes#RopeBufferChars#push for (self: RopeBufferChars, Char) */
717 void core___core__RopeBufferChars___core__abstract_collection__Sequence__push(val
* self
, uint32_t p0
) {
718 short int var
/* : Bool */;
721 const char* var_class_name
;
722 uint32_t var_c
/* var c: Char */;
723 val
* var1
/* : Text */;
724 val
* var3
/* : Text */;
725 /* Covariant cast for argument 0 (c) <p0:Char> isa Char */
726 /* <p0:Char> isa Char */
727 var
= 1; /* easy <p0:Char> isa Char*/
728 if (unlikely(!var
)) {
729 var_class_name
= type_core__Char
.name
;
730 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "Char", var_class_name
);
731 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1069);
736 { /* Inline abstract_text#StringCharView#target (self) on <self:RopeBufferChars> */
737 var3
= self
->attrs
[COLOR_core__abstract_text__StringCharView___target
].val
; /* _target on <self:RopeBufferChars> */
738 if (unlikely(var3
== NULL
)) {
739 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
740 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1138);
748 core___core__RopeBuffer___core__abstract_text__Buffer__add(var1
, var_c
); /* Direct call ropes#RopeBuffer#add on <var1:Text(RopeBuffer)>*/
752 /* method ropes#RopeBufferChars#push for (self: Sequence[nullable Object], nullable Object) */
753 void VIRTUAL_core___core__RopeBufferChars___core__abstract_collection__Sequence__push(val
* self
, val
* p0
) {
754 uint32_t var
/* : Char */;
755 var
= (uint32_t)((long)(p0
)>>2);
756 core___core__RopeBufferChars___core__abstract_collection__Sequence__push(self
, var
); /* Direct call ropes#RopeBufferChars#push on <self:Sequence[nullable Object](RopeBufferChars)>*/
759 /* method ropes#RopeBufferChars#iterator_from for (self: RopeBufferChars, Int): IndexedIterator[Char] */
760 val
* core___core__RopeBufferChars___core__abstract_collection__SequenceRead__iterator_from(val
* self
, long p0
) {
761 val
* var
/* : IndexedIterator[Char] */;
762 long var_i
/* var i: Int */;
763 val
* var1
/* : RopeBufferCharIterator */;
764 val
* var2
/* : Text */;
765 val
* var4
/* : Text */;
767 var1
= NEW_core__RopeBufferCharIterator(&type_core__RopeBufferCharIterator
);
769 { /* Inline abstract_text#StringCharView#target (self) on <self:RopeBufferChars> */
770 var4
= self
->attrs
[COLOR_core__abstract_text__StringCharView___target
].val
; /* _target on <self:RopeBufferChars> */
771 if (unlikely(var4
== NULL
)) {
772 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
773 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1138);
781 core___core__RopeBufferCharIterator___from(var1
, var2
, var_i
); /* Direct call ropes#RopeBufferCharIterator#from on <var1:RopeBufferCharIterator>*/
788 /* method ropes#RopeBufferChars#reverse_iterator_from for (self: RopeBufferChars, Int): IndexedIterator[Char] */
789 val
* core___core__RopeBufferChars___core__abstract_collection__SequenceRead__reverse_iterator_from(val
* self
, long p0
) {
790 val
* var
/* : IndexedIterator[Char] */;
791 long var_i
/* var i: Int */;
792 val
* var1
/* : RopeBufferCharReverseIterator */;
793 val
* var2
/* : Text */;
794 val
* var4
/* : Text */;
796 var1
= NEW_core__RopeBufferCharReverseIterator(&type_core__RopeBufferCharReverseIterator
);
798 { /* Inline abstract_text#StringCharView#target (self) on <self:RopeBufferChars> */
799 var4
= self
->attrs
[COLOR_core__abstract_text__StringCharView___target
].val
; /* _target on <self:RopeBufferChars> */
800 if (unlikely(var4
== NULL
)) {
801 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
802 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1138);
810 core___core__RopeBufferCharReverseIterator___from(var1
, var2
, var_i
); /* Direct call ropes#RopeBufferCharReverseIterator#from on <var1:RopeBufferCharReverseIterator>*/
817 /* method ropes#RopeBufferByteIterator#sit for (self: RopeBufferByteIterator): IndexedIterator[Byte] */
818 val
* core___core__RopeBufferByteIterator___sit(val
* self
) {
819 val
* var
/* : IndexedIterator[Byte] */;
820 val
* var1
/* : IndexedIterator[Byte] */;
821 var1
= self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___sit
].val
; /* _sit on <self:RopeBufferByteIterator> */
822 if (unlikely(var1
== NULL
)) {
823 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
824 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1080);
831 /* method ropes#RopeBufferByteIterator#sit= for (self: RopeBufferByteIterator, IndexedIterator[Byte]) */
832 void core___core__RopeBufferByteIterator___sit_61d(val
* self
, val
* p0
) {
833 self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___sit
].val
= p0
; /* _sit on <self:RopeBufferByteIterator> */
836 /* method ropes#RopeBufferByteIterator#ns for (self: RopeBufferByteIterator): NativeString */
837 char* core___core__RopeBufferByteIterator___ns(val
* self
) {
838 char* var
/* : NativeString */;
839 char* var1
/* : NativeString */;
840 var1
= self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___ns
].str
; /* _ns on <self:RopeBufferByteIterator> */
845 /* method ropes#RopeBufferByteIterator#ns= for (self: RopeBufferByteIterator, NativeString) */
846 void core___core__RopeBufferByteIterator___ns_61d(val
* self
, char* p0
) {
847 self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___ns
].str
= p0
; /* _ns on <self:RopeBufferByteIterator> */
850 /* method ropes#RopeBufferByteIterator#pns for (self: RopeBufferByteIterator): Int */
851 long core___core__RopeBufferByteIterator___pns(val
* self
) {
852 long var
/* : Int */;
853 long var1
/* : Int */;
854 var1
= self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___pns
].l
; /* _pns on <self:RopeBufferByteIterator> */
859 /* method ropes#RopeBufferByteIterator#pns= for (self: RopeBufferByteIterator, Int) */
860 void core___core__RopeBufferByteIterator___pns_61d(val
* self
, long p0
) {
861 self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___pns
].l
= p0
; /* _pns on <self:RopeBufferByteIterator> */
864 /* method ropes#RopeBufferByteIterator#maxpos for (self: RopeBufferByteIterator): Int */
865 long core___core__RopeBufferByteIterator___maxpos(val
* self
) {
866 long var
/* : Int */;
867 long var1
/* : Int */;
868 var1
= self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___maxpos
].l
; /* _maxpos on <self:RopeBufferByteIterator> */
873 /* method ropes#RopeBufferByteIterator#maxpos= for (self: RopeBufferByteIterator, Int) */
874 void core___core__RopeBufferByteIterator___maxpos_61d(val
* self
, long p0
) {
875 self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___maxpos
].l
= p0
; /* _maxpos on <self:RopeBufferByteIterator> */
878 /* method ropes#RopeBufferByteIterator#index for (self: RopeBufferByteIterator): Int */
879 long core___core__RopeBufferByteIterator___core__abstract_collection__IndexedIterator__index(val
* self
) {
880 long var
/* : Int */;
881 long var1
/* : Int */;
882 var1
= self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___index
].l
; /* _index on <self:RopeBufferByteIterator> */
887 /* method ropes#RopeBufferByteIterator#index= for (self: RopeBufferByteIterator, Int) */
888 void core___core__RopeBufferByteIterator___index_61d(val
* self
, long p0
) {
889 self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___index
].l
= p0
; /* _index on <self:RopeBufferByteIterator> */
892 /* method ropes#RopeBufferByteIterator#from for (self: RopeBufferByteIterator, RopeBuffer, Int) */
893 void core___core__RopeBufferByteIterator___from(val
* self
, val
* p0
, long p1
) {
894 val
* var_t
/* var t: RopeBuffer */;
895 long var_pos
/* var pos: Int */;
896 char* var
/* : NativeString */;
897 char* var3
/* : NativeString */;
898 long var5
/* : Int */;
899 val
* var7
/* : String */;
900 val
* var9
/* : String */;
901 val
* var10
/* : SequenceRead[Byte] */;
902 val
* var11
/* : IndexedIterator[nullable Object] */;
903 val
* var13
/* : String */;
904 val
* var15
/* : String */;
905 long var16
/* : Int */;
906 long var17
/* : Int */;
907 short int var19
/* : Bool */;
910 const char* var_class_name
;
911 long var20
/* : Int */;
913 { /* Inline kernel#Object#init (self) on <self:RopeBufferByteIterator> */
920 { /* Inline ropes#RopeBuffer#ns (var_t) on <var_t:RopeBuffer> */
921 var3
= var_t
->attrs
[COLOR_core__ropes__RopeBuffer___ns
].str
; /* _ns on <var_t:RopeBuffer> */
927 { /* Inline ropes#RopeBufferByteIterator#ns= (self,var) on <self:RopeBufferByteIterator> */
928 self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___ns
].str
= var
; /* _ns on <self:RopeBufferByteIterator> */
932 var5
= var_t
->attrs
[COLOR_core__ropes__RopeBuffer___bytelen
].l
; /* _bytelen on <var_t:RopeBuffer> */
934 { /* Inline ropes#RopeBufferByteIterator#maxpos= (self,var5) on <self:RopeBufferByteIterator> */
935 self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___maxpos
].l
= var5
; /* _maxpos on <self:RopeBufferByteIterator> */
940 { /* Inline ropes#RopeBuffer#str (var_t) on <var_t:RopeBuffer> */
941 var9
= var_t
->attrs
[COLOR_core__ropes__RopeBuffer___str
].val
; /* _str on <var_t:RopeBuffer> */
942 if (unlikely(var9
== NULL
)) {
943 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _str");
944 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 310);
952 var10
= ((val
*(*)(val
* self
))(var7
->class->vft
[COLOR_core__abstract_text__Text__bytes
]))(var7
); /* bytes on <var7:String>*/
955 var11
= ((val
*(*)(val
* self
, long p0
))((((long)var10
&3)?class_info
[((long)var10
&3)]:var10
->class)->vft
[COLOR_core__abstract_collection__SequenceRead__iterator_from
]))(var10
, var_pos
); /* iterator_from on <var10:SequenceRead[Byte]>*/
958 { /* Inline ropes#RopeBufferByteIterator#sit= (self,var11) on <self:RopeBufferByteIterator> */
959 self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___sit
].val
= var11
; /* _sit on <self:RopeBufferByteIterator> */
964 { /* Inline ropes#RopeBuffer#str (var_t) on <var_t:RopeBuffer> */
965 var15
= var_t
->attrs
[COLOR_core__ropes__RopeBuffer___str
].val
; /* _str on <var_t:RopeBuffer> */
966 if (unlikely(var15
== NULL
)) {
967 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _str");
968 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 310);
976 var16
= ((long(*)(val
* self
))(var13
->class->vft
[COLOR_core__abstract_text__Text__length
]))(var13
); /* length on <var13:String>*/
979 { /* Inline kernel#Int#- (var_pos,var16) on <var_pos:Int> */
980 /* Covariant cast for argument 0 (i) <var16:Int> isa OTHER */
981 /* <var16:Int> isa OTHER */
982 var19
= 1; /* easy <var16:Int> isa OTHER*/
983 if (unlikely(!var19
)) {
984 var_class_name
= type_core__Int
.name
;
985 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
986 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 734);
989 var20
= var_pos
- var16
;
996 { /* Inline ropes#RopeBufferByteIterator#pns= (self,var17) on <self:RopeBufferByteIterator> */
997 self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___pns
].l
= var17
; /* _pns on <self:RopeBufferByteIterator> */
1002 { /* Inline ropes#RopeBufferByteIterator#index= (self,var_pos) on <self:RopeBufferByteIterator> */
1003 self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___index
].l
= var_pos
; /* _index on <self:RopeBufferByteIterator> */
1004 RET_LABEL22
:(void)0;
1009 /* method ropes#RopeBufferByteIterator#is_ok for (self: RopeBufferByteIterator): Bool */
1010 short int core___core__RopeBufferByteIterator___core__abstract_collection__Iterator__is_ok(val
* self
) {
1011 short int var
/* : Bool */;
1012 long var1
/* : Int */;
1013 long var3
/* : Int */;
1014 long var4
/* : Int */;
1015 long var6
/* : Int */;
1016 short int var7
/* : Bool */;
1017 short int var9
/* : Bool */;
1020 const char* var_class_name
;
1021 short int var10
/* : Bool */;
1023 { /* Inline ropes#RopeBufferByteIterator#index (self) on <self:RopeBufferByteIterator> */
1024 var3
= self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___index
].l
; /* _index on <self:RopeBufferByteIterator> */
1030 { /* Inline ropes#RopeBufferByteIterator#maxpos (self) on <self:RopeBufferByteIterator> */
1031 var6
= self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___maxpos
].l
; /* _maxpos on <self:RopeBufferByteIterator> */
1037 { /* Inline kernel#Int#< (var1,var4) on <var1:Int> */
1038 /* Covariant cast for argument 0 (i) <var4:Int> isa OTHER */
1039 /* <var4:Int> isa OTHER */
1040 var9
= 1; /* easy <var4:Int> isa OTHER*/
1041 if (unlikely(!var9
)) {
1042 var_class_name
= type_core__Int
.name
;
1043 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
1044 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 728);
1047 var10
= var1
< var4
;
1058 /* method ropes#RopeBufferByteIterator#item for (self: RopeBufferByteIterator): Byte */
1059 unsigned char core___core__RopeBufferByteIterator___core__abstract_collection__Iterator__item(val
* self
) {
1060 unsigned char var
/* : Byte */;
1061 val
* var1
/* : IndexedIterator[Byte] */;
1062 val
* var3
/* : IndexedIterator[Byte] */;
1063 short int var4
/* : Bool */;
1064 val
* var5
/* : IndexedIterator[Byte] */;
1065 val
* var7
/* : IndexedIterator[Byte] */;
1066 val
* var8
/* : nullable Object */;
1067 unsigned char var9
/* : Byte */;
1068 char* var10
/* : NativeString */;
1069 char* var12
/* : NativeString */;
1070 long var13
/* : Int */;
1071 long var15
/* : Int */;
1072 unsigned char var16
/* : Byte */;
1073 unsigned char var18
/* : Byte */;
1075 { /* Inline ropes#RopeBufferByteIterator#sit (self) on <self:RopeBufferByteIterator> */
1076 var3
= self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___sit
].val
; /* _sit on <self:RopeBufferByteIterator> */
1077 if (unlikely(var3
== NULL
)) {
1078 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
1079 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1080);
1087 var4
= ((short int(*)(val
* self
))((((long)var1
&3)?class_info
[((long)var1
&3)]:var1
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var1
); /* is_ok on <var1:IndexedIterator[Byte]>*/
1091 { /* Inline ropes#RopeBufferByteIterator#sit (self) on <self:RopeBufferByteIterator> */
1092 var7
= self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___sit
].val
; /* _sit on <self:RopeBufferByteIterator> */
1093 if (unlikely(var7
== NULL
)) {
1094 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
1095 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1080);
1103 var8
= ((val
*(*)(val
* self
))((((long)var5
&3)?class_info
[((long)var5
&3)]:var5
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var5
); /* item on <var5:IndexedIterator[Byte]>*/
1105 var9
= ((struct instance_core__Byte
*)var8
)->value
; /* autounbox from nullable Object to Byte */;
1111 { /* Inline ropes#RopeBufferByteIterator#ns (self) on <self:RopeBufferByteIterator> */
1112 var12
= self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___ns
].str
; /* _ns on <self:RopeBufferByteIterator> */
1114 RET_LABEL11
:(void)0;
1118 { /* Inline ropes#RopeBufferByteIterator#pns (self) on <self:RopeBufferByteIterator> */
1119 var15
= self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___pns
].l
; /* _pns on <self:RopeBufferByteIterator> */
1121 RET_LABEL14
:(void)0;
1125 { /* Inline native#NativeString#[] (var10,var13) on <var10:NativeString> */
1126 var18
= (unsigned char)((int)var10
[var13
]);
1129 RET_LABEL17
:(void)0;
1137 /* method ropes#RopeBufferByteIterator#item for (self: Iterator[nullable Object]): nullable Object */
1138 val
* VIRTUAL_core___core__RopeBufferByteIterator___core__abstract_collection__Iterator__item(val
* self
) {
1139 val
* var
/* : nullable Object */;
1140 unsigned char var1
/* : Byte */;
1141 val
* var2
/* : nullable Object */;
1142 var1
= core___core__RopeBufferByteIterator___core__abstract_collection__Iterator__item(self
);
1143 var2
= BOX_core__Byte(var1
); /* autobox from Byte to nullable Object */
1148 /* method ropes#RopeBufferByteIterator#next for (self: RopeBufferByteIterator) */
1149 void core___core__RopeBufferByteIterator___core__abstract_collection__Iterator__next(val
* self
) {
1150 val
* var_
/* var : RopeBufferByteIterator */;
1151 long var
/* : Int */;
1152 long var2
/* : Int */;
1153 long var3
/* : Int */;
1154 short int var5
/* : Bool */;
1157 const char* var_class_name
;
1158 long var6
/* : Int */;
1159 val
* var8
/* : IndexedIterator[Byte] */;
1160 val
* var10
/* : IndexedIterator[Byte] */;
1161 short int var11
/* : Bool */;
1162 val
* var12
/* : IndexedIterator[Byte] */;
1163 val
* var14
/* : IndexedIterator[Byte] */;
1164 val
* var_15
/* var : RopeBufferByteIterator */;
1165 long var16
/* : Int */;
1166 long var18
/* : Int */;
1167 long var19
/* : Int */;
1168 short int var21
/* : Bool */;
1171 const char* var_class_name24
;
1172 long var25
/* : Int */;
1175 { /* Inline ropes#RopeBufferByteIterator#index (var_) on <var_:RopeBufferByteIterator> */
1176 var2
= var_
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___index
].l
; /* _index on <var_:RopeBufferByteIterator> */
1182 { /* Inline kernel#Int#+ (var,1l) on <var:Int> */
1183 /* Covariant cast for argument 0 (i) <1l:Int> isa OTHER */
1184 /* <1l:Int> isa OTHER */
1185 var5
= 1; /* easy <1l:Int> isa OTHER*/
1186 if (unlikely(!var5
)) {
1187 var_class_name
= type_core__Int
.name
;
1188 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
1189 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 731);
1199 { /* Inline ropes#RopeBufferByteIterator#index= (var_,var3) on <var_:RopeBufferByteIterator> */
1200 var_
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___index
].l
= var3
; /* _index on <var_:RopeBufferByteIterator> */
1205 { /* Inline ropes#RopeBufferByteIterator#sit (self) on <self:RopeBufferByteIterator> */
1206 var10
= self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___sit
].val
; /* _sit on <self:RopeBufferByteIterator> */
1207 if (unlikely(var10
== NULL
)) {
1208 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
1209 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1080);
1217 var11
= ((short int(*)(val
* self
))((((long)var8
&3)?class_info
[((long)var8
&3)]:var8
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var8
); /* is_ok on <var8:IndexedIterator[Byte]>*/
1221 { /* Inline ropes#RopeBufferByteIterator#sit (self) on <self:RopeBufferByteIterator> */
1222 var14
= self
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___sit
].val
; /* _sit on <self:RopeBufferByteIterator> */
1223 if (unlikely(var14
== NULL
)) {
1224 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
1225 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1080);
1229 RET_LABEL13
:(void)0;
1233 ((void(*)(val
* self
))((((long)var12
&3)?class_info
[((long)var12
&3)]:var12
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var12
); /* next on <var12:IndexedIterator[Byte]>*/
1238 { /* Inline ropes#RopeBufferByteIterator#pns (var_15) on <var_15:RopeBufferByteIterator> */
1239 var18
= var_15
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___pns
].l
; /* _pns on <var_15:RopeBufferByteIterator> */
1241 RET_LABEL17
:(void)0;
1245 { /* Inline kernel#Int#+ (var16,1l) on <var16:Int> */
1246 /* Covariant cast for argument 0 (i) <1l:Int> isa OTHER */
1247 /* <1l:Int> isa OTHER */
1248 var21
= 1; /* easy <1l:Int> isa OTHER*/
1249 if (unlikely(!var21
)) {
1250 var_class_name24
= type_core__Int
.name
;
1251 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name24
);
1252 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 731);
1258 RET_LABEL20
:(void)0;
1262 { /* Inline ropes#RopeBufferByteIterator#pns= (var_15,var19) on <var_15:RopeBufferByteIterator> */
1263 var_15
->attrs
[COLOR_core__ropes__RopeBufferByteIterator___pns
].l
= var19
; /* _pns on <var_15:RopeBufferByteIterator> */
1264 RET_LABEL26
:(void)0;
1270 /* method ropes#RopeBufferByteReverseIterator#sit for (self: RopeBufferByteReverseIterator): IndexedIterator[Byte] */
1271 val
* core___core__RopeBufferByteReverseIterator___sit(val
* self
) {
1272 val
* var
/* : IndexedIterator[Byte] */;
1273 val
* var1
/* : IndexedIterator[Byte] */;
1274 var1
= self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___sit
].val
; /* _sit on <self:RopeBufferByteReverseIterator> */
1275 if (unlikely(var1
== NULL
)) {
1276 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
1277 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1124);
1284 /* method ropes#RopeBufferByteReverseIterator#sit= for (self: RopeBufferByteReverseIterator, IndexedIterator[Byte]) */
1285 void core___core__RopeBufferByteReverseIterator___sit_61d(val
* self
, val
* p0
) {
1286 self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___sit
].val
= p0
; /* _sit on <self:RopeBufferByteReverseIterator> */
1289 /* method ropes#RopeBufferByteReverseIterator#ns for (self: RopeBufferByteReverseIterator): NativeString */
1290 char* core___core__RopeBufferByteReverseIterator___ns(val
* self
) {
1291 char* var
/* : NativeString */;
1292 char* var1
/* : NativeString */;
1293 var1
= self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___ns
].str
; /* _ns on <self:RopeBufferByteReverseIterator> */
1298 /* method ropes#RopeBufferByteReverseIterator#ns= for (self: RopeBufferByteReverseIterator, NativeString) */
1299 void core___core__RopeBufferByteReverseIterator___ns_61d(val
* self
, char* p0
) {
1300 self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___ns
].str
= p0
; /* _ns on <self:RopeBufferByteReverseIterator> */
1303 /* method ropes#RopeBufferByteReverseIterator#pns for (self: RopeBufferByteReverseIterator): Int */
1304 long core___core__RopeBufferByteReverseIterator___pns(val
* self
) {
1305 long var
/* : Int */;
1306 long var1
/* : Int */;
1307 var1
= self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___pns
].l
; /* _pns on <self:RopeBufferByteReverseIterator> */
1312 /* method ropes#RopeBufferByteReverseIterator#pns= for (self: RopeBufferByteReverseIterator, Int) */
1313 void core___core__RopeBufferByteReverseIterator___pns_61d(val
* self
, long p0
) {
1314 self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___pns
].l
= p0
; /* _pns on <self:RopeBufferByteReverseIterator> */
1317 /* method ropes#RopeBufferByteReverseIterator#index for (self: RopeBufferByteReverseIterator): Int */
1318 long core___core__RopeBufferByteReverseIterator___core__abstract_collection__IndexedIterator__index(val
* self
) {
1319 long var
/* : Int */;
1320 long var1
/* : Int */;
1321 var1
= self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___index
].l
; /* _index on <self:RopeBufferByteReverseIterator> */
1326 /* method ropes#RopeBufferByteReverseIterator#index= for (self: RopeBufferByteReverseIterator, Int) */
1327 void core___core__RopeBufferByteReverseIterator___index_61d(val
* self
, long p0
) {
1328 self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___index
].l
= p0
; /* _index on <self:RopeBufferByteReverseIterator> */
1331 /* method ropes#RopeBufferByteReverseIterator#from for (self: RopeBufferByteReverseIterator, RopeBuffer, Int) */
1332 void core___core__RopeBufferByteReverseIterator___from(val
* self
, val
* p0
, long p1
) {
1333 val
* var_tgt
/* var tgt: RopeBuffer */;
1334 long var_pos
/* var pos: Int */;
1335 val
* var
/* : String */;
1336 val
* var3
/* : String */;
1337 val
* var4
/* : SequenceRead[Byte] */;
1338 long var5
/* : Int */;
1339 long var7
/* : Int */;
1340 long var8
/* : Int */;
1341 long var10
/* : Int */;
1342 long var11
/* : Int */;
1343 short int var13
/* : Bool */;
1346 const char* var_class_name
;
1347 long var14
/* : Int */;
1348 long var15
/* : Int */;
1349 short int var17
/* : Bool */;
1352 const char* var_class_name20
;
1353 long var21
/* : Int */;
1354 val
* var22
/* : IndexedIterator[nullable Object] */;
1355 val
* var24
/* : String */;
1356 val
* var26
/* : String */;
1357 long var27
/* : Int */;
1358 long var28
/* : Int */;
1359 short int var30
/* : Bool */;
1362 const char* var_class_name33
;
1363 long var34
/* : Int */;
1364 long var35
/* : Int */;
1365 long var37
/* : Int */;
1366 long var38
/* : Int */;
1367 short int var40
/* : Bool */;
1370 const char* var_class_name43
;
1371 long var44
/* : Int */;
1372 char* var47
/* : NativeString */;
1373 char* var49
/* : NativeString */;
1375 { /* Inline kernel#Object#init (self) on <self:RopeBufferByteReverseIterator> */
1382 { /* Inline ropes#RopeBuffer#str (var_tgt) on <var_tgt:RopeBuffer> */
1383 var3
= var_tgt
->attrs
[COLOR_core__ropes__RopeBuffer___str
].val
; /* _str on <var_tgt:RopeBuffer> */
1384 if (unlikely(var3
== NULL
)) {
1385 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _str");
1386 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 310);
1394 var4
= ((val
*(*)(val
* self
))(var
->class->vft
[COLOR_core__abstract_text__Text__bytes
]))(var
); /* bytes on <var:String>*/
1397 { /* Inline ropes#RopeBuffer#rpos (var_tgt) on <var_tgt:RopeBuffer> */
1398 var7
= var_tgt
->attrs
[COLOR_core__ropes__RopeBuffer___rpos
].l
; /* _rpos on <var_tgt:RopeBuffer> */
1404 { /* Inline ropes#RopeBuffer#dumped (var_tgt) on <var_tgt:RopeBuffer> */
1405 var10
= var_tgt
->attrs
[COLOR_core__ropes__RopeBuffer___dumped
].l
; /* _dumped on <var_tgt:RopeBuffer> */
1411 { /* Inline kernel#Int#- (var5,var8) on <var5:Int> */
1412 /* Covariant cast for argument 0 (i) <var8:Int> isa OTHER */
1413 /* <var8:Int> isa OTHER */
1414 var13
= 1; /* easy <var8:Int> isa OTHER*/
1415 if (unlikely(!var13
)) {
1416 var_class_name
= type_core__Int
.name
;
1417 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
1418 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 734);
1421 var14
= var5
- var8
;
1424 RET_LABEL12
:(void)0;
1428 { /* Inline kernel#Int#- (var_pos,var11) on <var_pos:Int> */
1429 /* Covariant cast for argument 0 (i) <var11:Int> isa OTHER */
1430 /* <var11:Int> isa OTHER */
1431 var17
= 1; /* easy <var11:Int> isa OTHER*/
1432 if (unlikely(!var17
)) {
1433 var_class_name20
= type_core__Int
.name
;
1434 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name20
);
1435 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 734);
1438 var21
= var_pos
- var11
;
1441 RET_LABEL16
:(void)0;
1445 var22
= ((val
*(*)(val
* self
, long p0
))((((long)var4
&3)?class_info
[((long)var4
&3)]:var4
->class)->vft
[COLOR_core__abstract_collection__SequenceRead__reverse_iterator_from
]))(var4
, var15
); /* reverse_iterator_from on <var4:SequenceRead[Byte]>*/
1448 { /* Inline ropes#RopeBufferByteReverseIterator#sit= (self,var22) on <self:RopeBufferByteReverseIterator> */
1449 self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___sit
].val
= var22
; /* _sit on <self:RopeBufferByteReverseIterator> */
1450 RET_LABEL23
:(void)0;
1454 { /* Inline ropes#RopeBuffer#str (var_tgt) on <var_tgt:RopeBuffer> */
1455 var26
= var_tgt
->attrs
[COLOR_core__ropes__RopeBuffer___str
].val
; /* _str on <var_tgt:RopeBuffer> */
1456 if (unlikely(var26
== NULL
)) {
1457 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _str");
1458 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 310);
1462 RET_LABEL25
:(void)0;
1466 var27
= ((long(*)(val
* self
))(var24
->class->vft
[COLOR_core__abstract_text__Text__bytelen
]))(var24
); /* bytelen on <var24:String>*/
1469 { /* Inline kernel#Int#- (var_pos,var27) on <var_pos:Int> */
1470 /* Covariant cast for argument 0 (i) <var27:Int> isa OTHER */
1471 /* <var27:Int> isa OTHER */
1472 var30
= 1; /* easy <var27:Int> isa OTHER*/
1473 if (unlikely(!var30
)) {
1474 var_class_name33
= type_core__Int
.name
;
1475 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name33
);
1476 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 734);
1479 var34
= var_pos
- var27
;
1482 RET_LABEL29
:(void)0;
1486 { /* Inline ropes#RopeBuffer#rpos (var_tgt) on <var_tgt:RopeBuffer> */
1487 var37
= var_tgt
->attrs
[COLOR_core__ropes__RopeBuffer___rpos
].l
; /* _rpos on <var_tgt:RopeBuffer> */
1489 RET_LABEL36
:(void)0;
1493 { /* Inline kernel#Int#+ (var28,var35) on <var28:Int> */
1494 /* Covariant cast for argument 0 (i) <var35:Int> isa OTHER */
1495 /* <var35:Int> isa OTHER */
1496 var40
= 1; /* easy <var35:Int> isa OTHER*/
1497 if (unlikely(!var40
)) {
1498 var_class_name43
= type_core__Int
.name
;
1499 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name43
);
1500 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 731);
1503 var44
= var28
+ var35
;
1506 RET_LABEL39
:(void)0;
1510 { /* Inline ropes#RopeBufferByteReverseIterator#pns= (self,var38) on <self:RopeBufferByteReverseIterator> */
1511 self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___pns
].l
= var38
; /* _pns on <self:RopeBufferByteReverseIterator> */
1512 RET_LABEL45
:(void)0;
1516 { /* Inline ropes#RopeBufferByteReverseIterator#index= (self,var_pos) on <self:RopeBufferByteReverseIterator> */
1517 self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___index
].l
= var_pos
; /* _index on <self:RopeBufferByteReverseIterator> */
1518 RET_LABEL46
:(void)0;
1522 { /* Inline ropes#RopeBuffer#ns (var_tgt) on <var_tgt:RopeBuffer> */
1523 var49
= var_tgt
->attrs
[COLOR_core__ropes__RopeBuffer___ns
].str
; /* _ns on <var_tgt:RopeBuffer> */
1525 RET_LABEL48
:(void)0;
1529 { /* Inline ropes#RopeBufferByteReverseIterator#ns= (self,var47) on <self:RopeBufferByteReverseIterator> */
1530 self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___ns
].str
= var47
; /* _ns on <self:RopeBufferByteReverseIterator> */
1531 RET_LABEL50
:(void)0;
1536 /* method ropes#RopeBufferByteReverseIterator#is_ok for (self: RopeBufferByteReverseIterator): Bool */
1537 short int core___core__RopeBufferByteReverseIterator___core__abstract_collection__Iterator__is_ok(val
* self
) {
1538 short int var
/* : Bool */;
1539 long var1
/* : Int */;
1540 long var3
/* : Int */;
1541 short int var4
/* : Bool */;
1542 short int var6
/* : Bool */;
1545 const char* var_class_name
;
1546 short int var7
/* : Bool */;
1548 { /* Inline ropes#RopeBufferByteReverseIterator#index (self) on <self:RopeBufferByteReverseIterator> */
1549 var3
= self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___index
].l
; /* _index on <self:RopeBufferByteReverseIterator> */
1555 { /* Inline kernel#Int#>= (var1,0l) on <var1:Int> */
1556 /* Covariant cast for argument 0 (i) <0l:Int> isa OTHER */
1557 /* <0l:Int> isa OTHER */
1558 var6
= 1; /* easy <0l:Int> isa OTHER*/
1559 if (unlikely(!var6
)) {
1560 var_class_name
= type_core__Int
.name
;
1561 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
1562 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 729);
1576 /* method ropes#RopeBufferByteReverseIterator#item for (self: RopeBufferByteReverseIterator): Byte */
1577 unsigned char core___core__RopeBufferByteReverseIterator___core__abstract_collection__Iterator__item(val
* self
) {
1578 unsigned char var
/* : Byte */;
1579 long var1
/* : Int */;
1580 long var3
/* : Int */;
1581 short int var4
/* : Bool */;
1582 short int var6
/* : Bool */;
1585 const char* var_class_name
;
1586 short int var7
/* : Bool */;
1587 char* var8
/* : NativeString */;
1588 char* var10
/* : NativeString */;
1589 long var11
/* : Int */;
1590 long var13
/* : Int */;
1591 unsigned char var14
/* : Byte */;
1592 unsigned char var16
/* : Byte */;
1593 val
* var17
/* : IndexedIterator[Byte] */;
1594 val
* var19
/* : IndexedIterator[Byte] */;
1595 val
* var20
/* : nullable Object */;
1596 unsigned char var21
/* : Byte */;
1598 { /* Inline ropes#RopeBufferByteReverseIterator#pns (self) on <self:RopeBufferByteReverseIterator> */
1599 var3
= self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___pns
].l
; /* _pns on <self:RopeBufferByteReverseIterator> */
1605 { /* Inline kernel#Int#>= (var1,0l) on <var1:Int> */
1606 /* Covariant cast for argument 0 (i) <0l:Int> isa OTHER */
1607 /* <0l:Int> isa OTHER */
1608 var6
= 1; /* easy <0l:Int> isa OTHER*/
1609 if (unlikely(!var6
)) {
1610 var_class_name
= type_core__Int
.name
;
1611 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
1612 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 729);
1623 { /* Inline ropes#RopeBufferByteReverseIterator#ns (self) on <self:RopeBufferByteReverseIterator> */
1624 var10
= self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___ns
].str
; /* _ns on <self:RopeBufferByteReverseIterator> */
1630 { /* Inline ropes#RopeBufferByteReverseIterator#pns (self) on <self:RopeBufferByteReverseIterator> */
1631 var13
= self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___pns
].l
; /* _pns on <self:RopeBufferByteReverseIterator> */
1633 RET_LABEL12
:(void)0;
1637 { /* Inline native#NativeString#[] (var8,var11) on <var8:NativeString> */
1638 var16
= (unsigned char)((int)var8
[var11
]);
1641 RET_LABEL15
:(void)0;
1649 { /* Inline ropes#RopeBufferByteReverseIterator#sit (self) on <self:RopeBufferByteReverseIterator> */
1650 var19
= self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___sit
].val
; /* _sit on <self:RopeBufferByteReverseIterator> */
1651 if (unlikely(var19
== NULL
)) {
1652 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
1653 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1124);
1657 RET_LABEL18
:(void)0;
1661 var20
= ((val
*(*)(val
* self
))((((long)var17
&3)?class_info
[((long)var17
&3)]:var17
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var17
); /* item on <var17:IndexedIterator[Byte]>*/
1663 var21
= ((struct instance_core__Byte
*)var20
)->value
; /* autounbox from nullable Object to Byte */;
1669 /* method ropes#RopeBufferByteReverseIterator#item for (self: Iterator[nullable Object]): nullable Object */
1670 val
* VIRTUAL_core___core__RopeBufferByteReverseIterator___core__abstract_collection__Iterator__item(val
* self
) {
1671 val
* var
/* : nullable Object */;
1672 unsigned char var1
/* : Byte */;
1673 val
* var2
/* : nullable Object */;
1674 var1
= core___core__RopeBufferByteReverseIterator___core__abstract_collection__Iterator__item(self
);
1675 var2
= BOX_core__Byte(var1
); /* autobox from Byte to nullable Object */
1680 /* method ropes#RopeBufferByteReverseIterator#next for (self: RopeBufferByteReverseIterator) */
1681 void core___core__RopeBufferByteReverseIterator___core__abstract_collection__Iterator__next(val
* self
) {
1682 val
* var_
/* var : RopeBufferByteReverseIterator */;
1683 long var
/* : Int */;
1684 long var2
/* : Int */;
1685 long var3
/* : Int */;
1686 short int var5
/* : Bool */;
1689 const char* var_class_name
;
1690 long var6
/* : Int */;
1691 long var8
/* : Int */;
1692 long var10
/* : Int */;
1693 short int var11
/* : Bool */;
1694 short int var13
/* : Bool */;
1697 const char* var_class_name16
;
1698 short int var17
/* : Bool */;
1699 val
* var_18
/* var : RopeBufferByteReverseIterator */;
1700 long var19
/* : Int */;
1701 long var21
/* : Int */;
1702 long var22
/* : Int */;
1703 short int var24
/* : Bool */;
1706 const char* var_class_name27
;
1707 long var28
/* : Int */;
1708 val
* var30
/* : IndexedIterator[Byte] */;
1709 val
* var32
/* : IndexedIterator[Byte] */;
1712 { /* Inline ropes#RopeBufferByteReverseIterator#index (var_) on <var_:RopeBufferByteReverseIterator> */
1713 var2
= var_
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___index
].l
; /* _index on <var_:RopeBufferByteReverseIterator> */
1719 { /* Inline kernel#Int#- (var,1l) on <var:Int> */
1720 /* Covariant cast for argument 0 (i) <1l:Int> isa OTHER */
1721 /* <1l:Int> isa OTHER */
1722 var5
= 1; /* easy <1l:Int> isa OTHER*/
1723 if (unlikely(!var5
)) {
1724 var_class_name
= type_core__Int
.name
;
1725 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
1726 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 734);
1736 { /* Inline ropes#RopeBufferByteReverseIterator#index= (var_,var3) on <var_:RopeBufferByteReverseIterator> */
1737 var_
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___index
].l
= var3
; /* _index on <var_:RopeBufferByteReverseIterator> */
1742 { /* Inline ropes#RopeBufferByteReverseIterator#pns (self) on <self:RopeBufferByteReverseIterator> */
1743 var10
= self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___pns
].l
; /* _pns on <self:RopeBufferByteReverseIterator> */
1749 { /* Inline kernel#Int#>= (var8,0l) on <var8:Int> */
1750 /* Covariant cast for argument 0 (i) <0l:Int> isa OTHER */
1751 /* <0l:Int> isa OTHER */
1752 var13
= 1; /* easy <0l:Int> isa OTHER*/
1753 if (unlikely(!var13
)) {
1754 var_class_name16
= type_core__Int
.name
;
1755 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name16
);
1756 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 729);
1762 RET_LABEL12
:(void)0;
1768 { /* Inline ropes#RopeBufferByteReverseIterator#pns (var_18) on <var_18:RopeBufferByteReverseIterator> */
1769 var21
= var_18
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___pns
].l
; /* _pns on <var_18:RopeBufferByteReverseIterator> */
1771 RET_LABEL20
:(void)0;
1775 { /* Inline kernel#Int#- (var19,1l) on <var19:Int> */
1776 /* Covariant cast for argument 0 (i) <1l:Int> isa OTHER */
1777 /* <1l:Int> isa OTHER */
1778 var24
= 1; /* easy <1l:Int> isa OTHER*/
1779 if (unlikely(!var24
)) {
1780 var_class_name27
= type_core__Int
.name
;
1781 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name27
);
1782 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 734);
1788 RET_LABEL23
:(void)0;
1792 { /* Inline ropes#RopeBufferByteReverseIterator#pns= (var_18,var22) on <var_18:RopeBufferByteReverseIterator> */
1793 var_18
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___pns
].l
= var22
; /* _pns on <var_18:RopeBufferByteReverseIterator> */
1794 RET_LABEL29
:(void)0;
1799 { /* Inline ropes#RopeBufferByteReverseIterator#sit (self) on <self:RopeBufferByteReverseIterator> */
1800 var32
= self
->attrs
[COLOR_core__ropes__RopeBufferByteReverseIterator___sit
].val
; /* _sit on <self:RopeBufferByteReverseIterator> */
1801 if (unlikely(var32
== NULL
)) {
1802 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _sit");
1803 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 1124);
1807 RET_LABEL31
:(void)0;
1811 ((void(*)(val
* self
))((((long)var30
&3)?class_info
[((long)var30
&3)]:var30
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var30
); /* next on <var30:IndexedIterator[Byte]>*/
1816 /* method ropes#RopeBufferBytes#[] for (self: RopeBufferBytes, Int): Byte */
1817 unsigned char core___core__RopeBufferBytes___core__abstract_collection__SequenceRead___91d_93d(val
* self
, long p0
) {
1818 unsigned char var
/* : Byte */;
1819 long var_i
/* var i: Int */;
1820 val
* var1
/* : Text */;
1821 val
* var3
/* : Text */;
1822 val
* var4
/* : String */;
1823 val
* var6
/* : String */;
1824 long var7
/* : Int */;
1825 short int var8
/* : Bool */;
1826 short int var10
/* : Bool */;
1829 const char* var_class_name
;
1830 short int var11
/* : Bool */;
1831 val
* var12
/* : Text */;
1832 val
* var14
/* : Text */;
1833 val
* var15
/* : String */;
1834 val
* var17
/* : String */;
1835 val
* var18
/* : SequenceRead[Byte] */;
1836 val
* var19
/* : nullable Object */;
1837 unsigned char var20
/* : Byte */;
1838 val
* var21
/* : Text */;
1839 val
* var23
/* : Text */;
1840 char* var24
/* : NativeString */;
1841 char* var26
/* : NativeString */;
1842 val
* var27
/* : Text */;
1843 val
* var29
/* : Text */;
1844 val
* var30
/* : String */;
1845 val
* var32
/* : String */;
1846 long var33
/* : Int */;
1847 long var34
/* : Int */;
1848 short int var36
/* : Bool */;
1851 const char* var_class_name39
;
1852 long var40
/* : Int */;
1853 unsigned char var41
/* : Byte */;
1854 unsigned char var43
/* : Byte */;
1857 { /* Inline abstract_text#StringByteView#target (self) on <self:RopeBufferBytes> */
1858 var3
= self
->attrs
[COLOR_core__abstract_text__StringByteView___target
].val
; /* _target on <self:RopeBufferBytes> */
1859 if (unlikely(var3
== NULL
)) {
1860 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
1861 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1156);
1869 { /* Inline ropes#RopeBuffer#str (var1) on <var1:Text(RopeBuffer)> */
1870 var6
= var1
->attrs
[COLOR_core__ropes__RopeBuffer___str
].val
; /* _str on <var1:Text(RopeBuffer)> */
1871 if (unlikely(var6
== NULL
)) {
1872 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _str");
1873 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 310);
1881 var7
= ((long(*)(val
* self
))(var4
->class->vft
[COLOR_core__abstract_text__Text__bytelen
]))(var4
); /* bytelen on <var4:String>*/
1884 { /* Inline kernel#Int#< (var_i,var7) on <var_i:Int> */
1885 /* Covariant cast for argument 0 (i) <var7:Int> isa OTHER */
1886 /* <var7:Int> isa OTHER */
1887 var10
= 1; /* easy <var7:Int> isa OTHER*/
1888 if (unlikely(!var10
)) {
1889 var_class_name
= type_core__Int
.name
;
1890 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
1891 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 728);
1894 var11
= var_i
< var7
;
1902 { /* Inline abstract_text#StringByteView#target (self) on <self:RopeBufferBytes> */
1903 var14
= self
->attrs
[COLOR_core__abstract_text__StringByteView___target
].val
; /* _target on <self:RopeBufferBytes> */
1904 if (unlikely(var14
== NULL
)) {
1905 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
1906 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1156);
1910 RET_LABEL13
:(void)0;
1914 { /* Inline ropes#RopeBuffer#str (var12) on <var12:Text(RopeBuffer)> */
1915 var17
= var12
->attrs
[COLOR_core__ropes__RopeBuffer___str
].val
; /* _str on <var12:Text(RopeBuffer)> */
1916 if (unlikely(var17
== NULL
)) {
1917 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _str");
1918 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 310);
1922 RET_LABEL16
:(void)0;
1926 var18
= ((val
*(*)(val
* self
))(var15
->class->vft
[COLOR_core__abstract_text__Text__bytes
]))(var15
); /* bytes on <var15:String>*/
1929 var19
= ((val
*(*)(val
* self
, long p0
))((((long)var18
&3)?class_info
[((long)var18
&3)]:var18
->class)->vft
[COLOR_core__abstract_collection__SequenceRead___91d_93d
]))(var18
, var_i
); /* [] on <var18:SequenceRead[Byte]>*/
1931 var20
= ((struct instance_core__Byte
*)var19
)->value
; /* autounbox from nullable Object to Byte */;
1936 { /* Inline abstract_text#StringByteView#target (self) on <self:RopeBufferBytes> */
1937 var23
= self
->attrs
[COLOR_core__abstract_text__StringByteView___target
].val
; /* _target on <self:RopeBufferBytes> */
1938 if (unlikely(var23
== NULL
)) {
1939 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
1940 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1156);
1944 RET_LABEL22
:(void)0;
1948 { /* Inline ropes#RopeBuffer#ns (var21) on <var21:Text(RopeBuffer)> */
1949 var26
= var21
->attrs
[COLOR_core__ropes__RopeBuffer___ns
].str
; /* _ns on <var21:Text(RopeBuffer)> */
1951 RET_LABEL25
:(void)0;
1955 { /* Inline abstract_text#StringByteView#target (self) on <self:RopeBufferBytes> */
1956 var29
= self
->attrs
[COLOR_core__abstract_text__StringByteView___target
].val
; /* _target on <self:RopeBufferBytes> */
1957 if (unlikely(var29
== NULL
)) {
1958 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
1959 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1156);
1963 RET_LABEL28
:(void)0;
1967 { /* Inline ropes#RopeBuffer#str (var27) on <var27:Text(RopeBuffer)> */
1968 var32
= var27
->attrs
[COLOR_core__ropes__RopeBuffer___str
].val
; /* _str on <var27:Text(RopeBuffer)> */
1969 if (unlikely(var32
== NULL
)) {
1970 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _str");
1971 PRINT_ERROR(" (%s:%d)\n", FILE_core__ropes
, 310);
1975 RET_LABEL31
:(void)0;
1979 var33
= ((long(*)(val
* self
))(var30
->class->vft
[COLOR_core__abstract_text__Text__bytelen
]))(var30
); /* bytelen on <var30:String>*/
1982 { /* Inline kernel#Int#- (var_i,var33) on <var_i:Int> */
1983 /* Covariant cast for argument 0 (i) <var33:Int> isa OTHER */
1984 /* <var33:Int> isa OTHER */
1985 var36
= 1; /* easy <var33:Int> isa OTHER*/
1986 if (unlikely(!var36
)) {
1987 var_class_name39
= type_core__Int
.name
;
1988 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name39
);
1989 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 734);
1992 var40
= var_i
- var33
;
1995 RET_LABEL35
:(void)0;
1999 { /* Inline native#NativeString#[] (var24,var34) on <var24:NativeString> */
2000 var43
= (unsigned char)((int)var24
[var34
]);
2003 RET_LABEL42
:(void)0;
2012 /* method ropes#RopeBufferBytes#[] for (self: SequenceRead[nullable Object], Int): nullable Object */
2013 val
* VIRTUAL_core___core__RopeBufferBytes___core__abstract_collection__SequenceRead___91d_93d(val
* self
, long p0
) {
2014 val
* var
/* : nullable Object */;
2015 unsigned char var1
/* : Byte */;
2016 val
* var2
/* : nullable Object */;
2017 var1
= core___core__RopeBufferBytes___core__abstract_collection__SequenceRead___91d_93d(self
, p0
);
2018 var2
= BOX_core__Byte(var1
); /* autobox from Byte to nullable Object */
2023 /* method ropes#RopeBufferBytes#iterator_from for (self: RopeBufferBytes, Int): IndexedIterator[Byte] */
2024 val
* core___core__RopeBufferBytes___core__abstract_collection__SequenceRead__iterator_from(val
* self
, long p0
) {
2025 val
* var
/* : IndexedIterator[Byte] */;
2026 long var_i
/* var i: Int */;
2027 val
* var1
/* : RopeBufferByteIterator */;
2028 val
* var2
/* : Text */;
2029 val
* var4
/* : Text */;
2031 var1
= NEW_core__RopeBufferByteIterator(&type_core__RopeBufferByteIterator
);
2033 { /* Inline abstract_text#StringByteView#target (self) on <self:RopeBufferBytes> */
2034 var4
= self
->attrs
[COLOR_core__abstract_text__StringByteView___target
].val
; /* _target on <self:RopeBufferBytes> */
2035 if (unlikely(var4
== NULL
)) {
2036 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
2037 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1156);
2045 core___core__RopeBufferByteIterator___from(var1
, var2
, var_i
); /* Direct call ropes#RopeBufferByteIterator#from on <var1:RopeBufferByteIterator>*/
2052 /* method ropes#RopeBufferBytes#reverse_iterator_from for (self: RopeBufferBytes, Int): IndexedIterator[Byte] */
2053 val
* core___core__RopeBufferBytes___core__abstract_collection__SequenceRead__reverse_iterator_from(val
* self
, long p0
) {
2054 val
* var
/* : IndexedIterator[Byte] */;
2055 long var_i
/* var i: Int */;
2056 val
* var1
/* : RopeBufferByteReverseIterator */;
2057 val
* var2
/* : Text */;
2058 val
* var4
/* : Text */;
2060 var1
= NEW_core__RopeBufferByteReverseIterator(&type_core__RopeBufferByteReverseIterator
);
2062 { /* Inline abstract_text#StringByteView#target (self) on <self:RopeBufferBytes> */
2063 var4
= self
->attrs
[COLOR_core__abstract_text__StringByteView___target
].val
; /* _target on <self:RopeBufferBytes> */
2064 if (unlikely(var4
== NULL
)) {
2065 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _target");
2066 PRINT_ERROR(" (%s:%d)\n", FILE_core__abstract_text
, 1156);
2074 core___core__RopeBufferByteReverseIterator___from(var1
, var2
, var_i
); /* Direct call ropes#RopeBufferByteReverseIterator#from on <var1:RopeBufferByteReverseIterator>*/
2081 /* method ropes#Sys#maxlen for (self: Sys): Int */
2082 long core__ropes___Sys___maxlen(val
* self
) {
2083 long var
/* : Int */;