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