1 #include "nit.common.h"
2 extern const int COLOR_ropes__TupleLeafNodePos___64dcurr_node
;
3 val
* ropes__TupleLeafNodePos__curr_node(val
* self
);
4 void ropes__TupleLeafNodePos__curr_node_61d(val
* self
, val
* p0
);
5 extern const int COLOR_ropes__TupleLeafNodePos___64dcorrected_pos
;
6 long ropes__TupleLeafNodePos__corrected_pos(val
* self
);
7 void ropes__TupleLeafNodePos__corrected_pos_61d(val
* self
, long p0
);
8 extern const int COLOR_ropes__TupleLeafNodePos___64dvisit_stack
;
9 val
* ropes__TupleLeafNodePos__visit_stack(val
* self
);
10 void ropes__TupleLeafNodePos__visit_stack_61d(val
* self
, val
* p0
);
11 void ropes__TupleLeafNodePos__init(val
* self
, val
* p0
, long p1
, val
* p2
);
12 extern const int COLOR_ropes__Rope___64dstr_representation
;
13 val
* ropes__Rope__str_representation(val
* self
);
14 void ropes__Rope__str_representation_61d(val
* self
, val
* p0
);
15 extern const int COLOR_ropes__Rope___64dparent_node
;
16 val
* ropes__Rope__parent_node(val
* self
);
17 void ropes__Rope__parent_node_61d(val
* self
, val
* p0
);
18 val
* NEW_ropes__ConcatNode(const struct type
* type
);
19 extern const struct type type_ropes__ConcatNode
;
20 extern const int COLOR_ropes__ConcatNode__init
;
21 void CHECK_NEW_ropes__ConcatNode(val
*);
22 extern const int COLOR_ropes__Rope__parent_node_61d
;
23 void ropes__Rope__init(val
* self
);
24 extern const int COLOR_ropes__Rope__parent_node
;
25 val
* NEW_ropes__LeafNode(const struct type
* type
);
26 extern const struct type type_ropes__LeafNode
;
27 extern const int COLOR_ropes__LeafNode__init
;
28 void CHECK_NEW_ropes__LeafNode(val
*);
29 extern const int COLOR_ropes__ConcatNode__right_child_61d
;
30 extern const int COLOR_ropes__ConcatNode__update_data
;
31 void ropes__Rope__with_string(val
* self
, val
* p0
);
32 val
* NEW_ropes__CharRopeView(const struct type
* type
);
33 extern const struct type type_ropes__CharRopeView
;
34 extern const int COLOR_ropes__CharRopeView__init
;
35 void CHECK_NEW_ropes__CharRopeView(val
*);
36 val
* ropes__Rope__chars(val
* self
);
37 extern const int COLOR_ropes__RopeNode__length
;
38 long ropes__Rope__length(val
* self
);
39 extern const int COLOR_ropes__Rope__str_representation
;
40 extern const int COLOR_ropes__Rope__flatten
;
41 val
* ropes__Rope__to_s(val
* self
);
42 extern const int COLOR_ropes__Rope__length
;
43 extern const int COLOR_string__StringCapable__calloc_string
;
44 val
* NEW_ropes__DFSRopeLeafIterator(const struct type
* type
);
45 extern const struct type type_ropes__DFSRopeLeafIterator
;
46 extern const int COLOR_ropes__DFSRopeLeafIterator__init
;
47 void CHECK_NEW_ropes__DFSRopeLeafIterator(val
*);
48 extern const int COLOR_abstract_collection__Iterator__is_ok
;
49 extern const int COLOR_abstract_collection__Iterator__item
;
50 extern const int COLOR_ropes__LeafNode__value
;
51 extern const int COLOR_string__AbstractString___items
;
52 extern const int COLOR_abstract_collection__Collection__length
;
53 extern const int COLOR_abstract_collection__Iterator__next
;
54 val
* string__NativeString__to_s_with_length(char* self
, long p0
);
55 val
* ropes__Rope__flatten(val
* self
);
56 extern const struct type type_kernel__Int
;
57 val
* NEW_list__List(const struct type
* type
);
58 extern const struct type type_list__Listropes__TupleVisitNode
;
59 extern const int COLOR_list__List__init
;
60 void CHECK_NEW_list__List(val
*);
61 val
* NEW_ropes__TupleVisitNode(const struct type
* type
);
62 extern const struct type type_ropes__TupleVisitNode
;
63 extern const int COLOR_ropes__TupleVisitNode__init
;
64 void CHECK_NEW_ropes__TupleVisitNode(val
*);
65 extern const int COLOR_ropes__ConcatNode__left_child
;
66 extern const int COLOR_ropes__TupleVisitNode__left_visited_61d
;
67 extern const int COLOR_ropes__ConcatNode__right_child
;
68 extern const int COLOR_ropes__TupleVisitNode__right_visited_61d
;
69 extern const int COLOR_file__Object__print
;
70 extern const int COLOR_abstract_collection__Sequence__push
;
71 val
* NEW_ropes__TupleLeafNodePos(const struct type
* type
);
72 extern const struct type type_ropes__TupleLeafNodePos
;
73 extern const int COLOR_ropes__TupleLeafNodePos__init
;
74 void CHECK_NEW_ropes__TupleLeafNodePos(val
*);
75 val
* ropes__Rope__get_node_for_pos(val
* self
, long p0
);
76 val
* NEW_ropes__BufferRope(const struct type
* type
);
77 extern const struct type type_ropes__BufferRope
;
78 extern const int COLOR_ropes__BufferRope__init
;
79 void CHECK_NEW_ropes__BufferRope(val
*);
80 extern const int COLOR_ropes__BufferRope__append
;
81 val
* ropes__Rope___43d(val
* self
, val
* p0
);
82 extern const int COLOR_ropes__Rope__iterator
;
83 extern const int COLOR_abstract_collection__Collection__iterator
;
84 val
* ropes__Rope__multi_concat(val
* self
, val
* p0
);
85 extern const int COLOR_string__Object__to_s
;
86 val
* NEW_range__Range(const struct type
* type
);
87 extern const struct type type_range__Rangekernel__Int
;
88 extern const int COLOR_range__Range__init
;
89 void CHECK_NEW_range__Range(val
*);
90 val
* ropes__Rope___42d(val
* self
, long p0
);
91 val
* ropes__Rope__iterator(val
* self
);
92 extern const int COLOR_ropes__DFSRopeLeafIterator__with_index
;
93 extern const int COLOR_ropes__RopeIterator__pos
;
94 extern const int COLOR_string__AbstractString__substring
;
95 val
* ropes__Rope__subrope(val
* self
, long p0
, long p1
);
96 extern const int COLOR_string__AbstractString__to_upper
;
97 val
* ropes__Rope__to_upper(val
* self
);
98 extern const int COLOR_string__AbstractString__to_lower
;
99 val
* ropes__Rope__to_lower(val
* self
);
100 extern const struct type type_ropes__Rope
;
101 extern const struct type type_string__AbstractString
;
102 val
* NEW_ropes__RopeCharIterator(const struct type
* type
);
103 extern const struct type type_ropes__RopeCharIterator
;
104 extern const int COLOR_ropes__RopeCharIterator__init
;
105 void CHECK_NEW_ropes__RopeCharIterator(val
*);
106 extern const int COLOR_abstract_collection__SequenceRead___91d_93d
;
107 short int ropes__Rope___61d_61d(val
* self
, val
* p0
);
108 extern const int COLOR_kernel__Comparable_VTOTHER
;
109 extern const int COLOR_ropes__Rope__chars
;
110 extern const struct type type_kernel__Char
;
111 short int ropes__Rope___60d(val
* self
, val
* p0
);
112 extern const int COLOR_ropes__BufferRope___64dis_dirty
;
113 short int ropes__BufferRope__is_dirty(val
* self
);
114 void ropes__BufferRope__is_dirty_61d(val
* self
, short int p0
);
115 extern const int COLOR_ropes__Rope__init
;
116 void ropes__BufferRope__init(val
* self
);
117 extern const int COLOR_ropes__Rope__with_string
;
118 void ropes__BufferRope__with_string(val
* self
, val
* p0
);
119 extern const int COLOR_ropes__RopeNode__parent
;
120 extern const int COLOR_ropes__ConcatNode__left_child_61d
;
121 extern const int COLOR_ropes__RopeNode__parent_61d
;
122 extern const int COLOR_kernel__Object___61d_61d
;
123 void ropes__BufferRope__rotate_right(val
* self
, val
* p0
);
124 void ropes__BufferRope__rotate_left(val
* self
, val
* p0
);
125 extern const int COLOR_ropes__RopeNode__balance_factor
;
126 extern const int COLOR_ropes__BufferRope__balance_node
;
127 void ropes__BufferRope__balance_from_node(val
* self
, val
* p0
);
128 extern const int COLOR_ropes__BufferRope__rotate_left
;
129 extern const int COLOR_ropes__BufferRope__rotate_right
;
130 void ropes__BufferRope__balance_node(val
* self
, val
* p0
);
131 extern const int COLOR_ropes__BufferRope__balance_from_node
;
132 val
* NEW_string__Buffer(const struct type
* type
);
133 extern const struct type type_string__Buffer
;
134 extern const int COLOR_string__Buffer__with_capacity
;
135 void CHECK_NEW_string__Buffer(val
*);
136 extern const int COLOR_abstract_collection__SimpleCollection__add
;
137 extern const int COLOR_ropes__BufferRope__is_dirty
;
138 extern const int COLOR_ropes__BufferRope__is_dirty_61d
;
139 val
* ropes__BufferRope__append(val
* self
, val
* p0
);
140 val
* ropes__BufferRope__append_multi(val
* self
, val
* p0
);
141 extern const int COLOR_ropes__BufferRope__prepend
;
142 val
* ropes__BufferRope__prepend(val
* self
, val
* p0
);
143 val
* ropes__BufferRope__prepend_multi(val
* self
, val
* p0
);
144 extern const struct type type_list__Liststring__String
;
145 extern const int COLOR_abstract_collection__Sequence__shift
;
146 val
* ropes__BufferRope__concat(val
* self
, val
* p0
);
147 val
* NEW_ropes__ImmutableRope(const struct type
* type
);
148 extern const struct type type_ropes__ImmutableRope
;
149 extern const int COLOR_ropes__ImmutableRope__init
;
150 void CHECK_NEW_ropes__ImmutableRope(val
*);
151 extern const int COLOR_ropes__Rope__str_representation_61d
;
152 val
* ropes__BufferRope__freeze(val
* self
);
153 val
* ropes__BufferRope__to_immutable(val
* self
);
154 extern const int COLOR_ropes__BufferRope__subrope
;
155 val
* ropes__BufferRope__subrope(val
* self
, long p0
, long p1
);
156 extern const int COLOR_ropes__BufferRope___42d
;
157 val
* ropes__BufferRope___42d(val
* self
, long p0
);
158 extern const int COLOR_ropes__BufferRope___43d
;
159 val
* ropes__BufferRope___43d(val
* self
, val
* p0
);
160 extern const int COLOR_ropes__BufferRope__multi_concat
;
161 val
* ropes__BufferRope__multi_concat(val
* self
, val
* p0
);
162 val
* ropes__BufferRope__to_s(val
* self
);
163 void ropes__ImmutableRope__init(val
* self
);
164 void ropes__ImmutableRope__with_string(val
* self
, val
* p0
);
165 extern const int COLOR_ropes__ImmutableRope__subrope
;
166 extern const int COLOR_ropes__BufferRope__to_immutable
;
167 val
* ropes__ImmutableRope__subrope(val
* self
, long p0
, long p1
);
168 extern const int COLOR_ropes__ImmutableRope___42d
;
169 val
* ropes__ImmutableRope___42d(val
* self
, long p0
);
170 extern const int COLOR_ropes__ImmutableRope___43d
;
171 val
* ropes__ImmutableRope___43d(val
* self
, val
* p0
);
172 extern const int COLOR_ropes__ImmutableRope__multi_concat
;
173 val
* ropes__ImmutableRope__multi_concat(val
* self
, val
* p0
);
174 extern const int COLOR_ropes__CharRopeView___64dtarget
;
175 val
* ropes__CharRopeView__target(val
* self
);
176 void ropes__CharRopeView__target_61d(val
* self
, val
* p0
);
177 extern const int COLOR_ropes__CharRopeView__target_61d
;
178 void ropes__CharRopeView__init(val
* self
, val
* p0
);
179 extern const int COLOR_ropes__CharRopeView__target
;
180 extern const int COLOR_ropes__Rope__get_node_for_pos
;
181 extern const int COLOR_ropes__TupleLeafNodePos__curr_node
;
182 extern const int COLOR_ropes__TupleLeafNodePos__corrected_pos
;
183 char ropes__CharRopeView___91d_93d(val
* self
, long p0
);
184 char ropes__CharRopeView__first(val
* self
);
185 extern const struct class class_kernel__Char
;
186 extern const int COLOR_abstract_collection__IndexedIterator__index
;
187 long ropes__CharRopeView__index_of(val
* self
, char p0
);
188 val
* ropes__CharRopeView__iterator(val
* self
);
189 char ropes__CharRopeView__last(val
* self
);
190 long ropes__CharRopeView__length(val
* self
);
191 long ropes__CharRopeView__count(val
* self
, char p0
);
192 short int ropes__CharRopeView__has_only(val
* self
, char p0
);
193 short int ropes__CharRopeView__is_empty(val
* self
);
194 extern const int COLOR_array__Collection__to_a
;
195 val
* ropes__CharRopeView__to_a(val
* self
);
196 val
* ropes__CharRopeView__to_s(val
* self
);
197 extern const struct type type_abstract_collection__SequenceReadkernel__Char
;
198 extern const struct class class_kernel__Int
;
199 short int ropes__CharRopeView___61d_61d(val
* self
, val
* p0
);
200 extern const int COLOR_ropes__TupleVisitNode__node_61d
;
201 void ropes__TupleVisitNode__init(val
* self
, val
* p0
);
202 extern const int COLOR_ropes__TupleVisitNode___64dnode
;
203 val
* ropes__TupleVisitNode__node(val
* self
);
204 void ropes__TupleVisitNode__node_61d(val
* self
, val
* p0
);
205 extern const int COLOR_ropes__TupleVisitNode___64dleft_visited
;
206 short int ropes__TupleVisitNode__left_visited(val
* self
);
207 void ropes__TupleVisitNode__left_visited_61d(val
* self
, short int p0
);
208 extern const int COLOR_ropes__TupleVisitNode___64dright_visited
;
209 short int ropes__TupleVisitNode__right_visited(val
* self
);
210 void ropes__TupleVisitNode__right_visited_61d(val
* self
, short int p0
);
211 extern const int COLOR_ropes__RopeIterator___target
;
212 val
* ropes__RopeIterator__target(val
* self
);
213 extern const int COLOR_ropes__RopeIterator___64dpos
;
214 long ropes__RopeIterator__pos(val
* self
);
215 void ropes__RopeIterator__pos_61d(val
* self
, long p0
);
216 void ropes__RopeIterator__init(val
* self
, val
* p0
);
217 void ropes__RopeIterator__with_index(val
* self
, val
* p0
, long p1
);
218 extern const int COLOR_ropes__RopeCharIterator___64dsub_str_iter
;
219 val
* ropes__RopeCharIterator__sub_str_iter(val
* self
);
220 void ropes__RopeCharIterator__sub_str_iter_61d(val
* self
, val
* p0
);
221 extern const int COLOR_ropes__RopeCharIterator___64dabs_pos
;
222 long ropes__RopeCharIterator__abs_pos(val
* self
);
223 void ropes__RopeCharIterator__abs_pos_61d(val
* self
, long p0
);
224 extern const int COLOR_ropes__RopeCharIterator___64dsub_pos
;
225 long ropes__RopeCharIterator__sub_pos(val
* self
);
226 void ropes__RopeCharIterator__sub_pos_61d(val
* self
, long p0
);
227 extern const int COLOR_ropes__RopeCharIterator___64dcurr_substring
;
228 val
* ropes__RopeCharIterator__curr_substring(val
* self
);
229 void ropes__RopeCharIterator__curr_substring_61d(val
* self
, val
* p0
);
230 extern const int COLOR_ropes__RopeCharIterator__sub_str_iter_61d
;
231 extern const int COLOR_ropes__RopeCharIterator__sub_str_iter
;
232 extern const int COLOR_ropes__RopeCharIterator__curr_substring_61d
;
233 void ropes__RopeCharIterator__init(val
* self
, val
* p0
);
234 extern const int COLOR_ropes__RopeCharIterator__curr_substring
;
235 extern const int COLOR_ropes__RopeCharIterator__sub_pos
;
236 char ropes__RopeCharIterator__item(val
* self
);
237 short int ropes__RopeCharIterator__is_ok(val
* self
);
238 extern const int COLOR_ropes__RopeCharIterator__sub_pos_61d
;
239 extern const int COLOR_ropes__RopeCharIterator__abs_pos
;
240 extern const int COLOR_ropes__RopeCharIterator__abs_pos_61d
;
241 void ropes__RopeCharIterator__next(val
* self
);
242 long ropes__RopeCharIterator__index(val
* self
);
243 extern const int COLOR_ropes__DFSRopeLeafIterator___64dvisit_stack
;
244 val
* ropes__DFSRopeLeafIterator__visit_stack(val
* self
);
245 void ropes__DFSRopeLeafIterator__visit_stack_61d(val
* self
, val
* p0
);
246 extern const int COLOR_ropes__DFSRopeLeafIterator___64dcurr_leaf
;
247 val
* ropes__DFSRopeLeafIterator__curr_leaf(val
* self
);
248 void ropes__DFSRopeLeafIterator__curr_leaf_61d(val
* self
, val
* p0
);
249 extern const int COLOR_ropes__RopeIterator__init
;
250 extern const int COLOR_ropes__RopeIterator__target
;
251 extern const int COLOR_ropes__DFSRopeLeafIterator__visit_stack
;
252 extern const int COLOR_ropes__DFSRopeLeafIterator__curr_leaf_61d
;
253 extern const int COLOR_ropes__DFSRopeLeafIterator__next_body
;
254 void ropes__DFSRopeLeafIterator__init(val
* self
, val
* p0
);
255 extern const int COLOR_ropes__RopeIterator__with_index
;
256 extern const int COLOR_ropes__TupleLeafNodePos__visit_stack
;
257 extern const int COLOR_ropes__DFSRopeLeafIterator__visit_stack_61d
;
258 extern const int COLOR_ropes__RopeIterator__pos_61d
;
259 void ropes__DFSRopeLeafIterator__with_index(val
* self
, val
* p0
, long p1
);
260 extern const int COLOR_ropes__DFSRopeLeafIterator__curr_leaf
;
261 short int ropes__DFSRopeLeafIterator__is_ok(val
* self
);
262 void ropes__DFSRopeLeafIterator__next(val
* self
);
263 extern const int COLOR_abstract_collection__Collection__is_empty
;
264 extern const int COLOR_abstract_collection__SequenceRead__last
;
265 extern const int COLOR_ropes__TupleVisitNode__left_visited
;
266 extern const int COLOR_ropes__TupleVisitNode__node
;
267 extern const int COLOR_ropes__TupleVisitNode__right_visited
;
268 extern const int COLOR_abstract_collection__Sequence__pop
;
269 void ropes__DFSRopeLeafIterator__next_body(val
* self
);
270 val
* ropes__DFSRopeLeafIterator__item(val
* self
);
271 extern const int COLOR_ropes__RopeNode___64dparent
;
272 val
* ropes__RopeNode__parent(val
* self
);
273 void ropes__RopeNode__parent_61d(val
* self
, val
* p0
);
274 extern const int COLOR_ropes__RopeNode___64dheight
;
275 long ropes__RopeNode__height(val
* self
);
276 void ropes__RopeNode__height_61d(val
* self
, long p0
);
277 extern const int COLOR_ropes__RopeNode__height
;
278 long ropes__RopeNode__balance_factor(val
* self
);
279 extern const int COLOR_ropes__RopeNode___length
;
280 long ropes__RopeNode__length(val
* self
);
281 void ropes__RopeNode__length_61d(val
* self
, long p0
);
282 void ropes__RopeNode__init(val
* self
);
283 extern const int COLOR_ropes__ConcatNode___left_child
;
284 val
* ropes__ConcatNode__left_child(val
* self
);
285 extern const int COLOR_ropes__ConcatNode___right_child
;
286 val
* ropes__ConcatNode__right_child(val
* self
);
287 void ropes__ConcatNode__left_child_61d(val
* self
, val
* p0
);
288 void ropes__ConcatNode__right_child_61d(val
* self
, val
* p0
);
289 extern const int COLOR_ropes__RopeNode__length_61d
;
290 extern const int COLOR_ropes__RopeNode__height_61d
;
291 void ropes__ConcatNode__update_data(val
* self
);
292 long ropes__ConcatNode__balance_factor(val
* self
);
293 extern const int COLOR_ropes__RopeNode__init
;
294 void ropes__ConcatNode__init(val
* self
);
295 extern const int COLOR_ropes__LeafNode___value
;
296 void ropes__LeafNode__init(val
* self
, val
* p0
);
297 val
* ropes__LeafNode__value(val
* self
);
298 void ropes__LeafNode__value_61d(val
* self
, val
* p0
);
299 extern const int COLOR_ropes__String___61d_61d
;
300 short int ropes__String___61d_61d(val
* self
, val
* p0
);
301 extern const int COLOR_ropes__Buffer___61d_61d
;
302 short int ropes__Buffer___61d_61d(val
* self
, val
* p0
);