Debian Codegraph @

src/gen/lib/ortho/fPQ__c.java

raw symbols SCIP
1 /* ========================================================================
2 * PlantUML : a free UML diagram generator
3 * ========================================================================
4 *
5 * Project Info: http://plantuml.com
6 *
7 * If you like this project or if you find it useful, you can support us at:
8 *
9 * http://plantuml.com/patreon (only 1$ per month!)
10 * http://plantuml.com/paypal
11 *
12 * This file is part of Smetana.
13 * Smetana is a partial translation of Graphviz/Dot sources from C to Java.
14 *
15 * (C) Copyright 2009-2020, Arnaud Roques
16 *
17 * This translation is distributed under the same Licence as the original C program:
18 *
19 *************************************************************************
20 * Copyright (c) 2011 AT&T Intellectual Property
21 * All rights reserved. This program and the accompanying materials
22 * are made available under the terms of the Eclipse Public License v1.0
23 * which accompanies this distribution, and is available at
24 * http://www.eclipse.org/legal/epl-v10.html
25 *
26 * Contributors: See CVS logs. Details at http://www.graphviz.org/
27 *************************************************************************
28 *
29 * THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
30 * LICENSE ("AGREEMENT"). [Eclipse Public License - v 1.0]
31 *
32 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
33 * RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
34 *
35 * You may obtain a copy of the License at
36 *
37 * http://www.eclipse.org/legal/epl-v10.html
38 *
39 * Unless required by applicable law or agreed to in writing, software
40 * distributed under the License is distributed on an "AS IS" BASIS,
41 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42 * See the License for the specific language governing permissions and
43 * limitations under the License.
44 *
45 */
46 package gen.lib.ortho;
47 import static smetana.core.Macro.UNSUPPORTED;
48
49 public class fPQ__c {
50 //1 2digov3edok6d5srhgtlmrycs
51 // extern lt_symlist_t lt_preloaded_symbols[]
52
53
54 //1 baedz5i9est5csw3epz3cv7z
55 // typedef Ppoly_t Ppolyline_t
56
57
58 //1 9k44uhd5foylaeoekf3llonjq
59 // extern Dtmethod_t* Dtset
60
61
62 //1 1ahfywsmzcpcig2oxm7pt9ihj
63 // extern Dtmethod_t* Dtbag
64
65
66 //1 anhghfj3k7dmkudy2n7rvt31v
67 // extern Dtmethod_t* Dtoset
68
69
70 //1 5l6oj1ux946zjwvir94ykejbc
71 // extern Dtmethod_t* Dtobag
72
73
74 //1 2wtf222ak6cui8cfjnw6w377z
75 // extern Dtmethod_t* Dtlist
76
77
78 //1 d1s1s6ibtcsmst88e3057u9r7
79 // extern Dtmethod_t* Dtstack
80
81
82 //1 axa7mflo824p6fspjn1rdk0mt
83 // extern Dtmethod_t* Dtqueue
84
85
86 //1 ega812utobm4xx9oa9w9ayij6
87 // extern Dtmethod_t* Dtdeque
88
89
90 //1 cyfr996ur43045jv1tjbelzmj
91 // extern Dtmethod_t* Dtorder
92
93
94 //1 wlofoiftbjgrrabzb2brkycg
95 // extern Dtmethod_t* Dttree
96
97
98 //1 12bds94t7voj7ulwpcvgf6agr
99 // extern Dtmethod_t* Dthash
100
101
102 //1 9lqknzty480cy7zsubmabkk8h
103 // extern Dtmethod_t _Dttree
104
105
106 //1 bvn6zkbcp8vjdhkccqo1xrkrb
107 // extern Dtmethod_t _Dthash
108
109
110 //1 9lidhtd6nsmmv3e7vjv9e10gw
111 // extern Dtmethod_t _Dtlist
112
113
114 //1 34ujfamjxo7xn89u90oh2k6f8
115 // extern Dtmethod_t _Dtqueue
116
117
118 //1 3jy4aceckzkdv950h89p4wjc8
119 // extern Dtmethod_t _Dtstack
120
121
122 //1 8dfqgf3u1v830qzcjqh9o8ha7
123 // extern Agmemdisc_t AgMemDisc
124
125
126 //1 18k2oh2t6llfsdc5x0wlcnby8
127 // extern Agiddisc_t AgIdDisc
128
129
130 //1 a4r7hi80gdxtsv4hdoqpyiivn
131 // extern Agiodisc_t AgIoDisc
132
133
134 //1 bnzt5syjb7mgeru19114vd6xx
135 // extern Agdisc_t AgDefaultDisc
136
137
138 //1 35y2gbegsdjilegaribes00mg
139 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
140
141
142 //1 c2rygslq6bcuka3awmvy2b3ow
143 // typedef Agsubnode_t Agnoderef_t
144
145
146 //1 xam6yv0dcsx57dtg44igpbzn
147 // typedef Dtlink_t Agedgeref_t
148
149
150 //1 75wd380yhtm1uol93mb8l3kmn
151 // static snode** pq
152
153
154 //1 8m7y12v9uhpfwb9agee4dvvd7
155 // static int PQcnt
156
157
158 //1 37df10if13d1k3ddj140oe9ge
159 // static snode guard
160
161
162 //1 3oj5aj3gc05focs9czbzub5sm
163 // static int PQsize
164
165
166
167
168 //3 6d62kgw3p14u24ayu546j4r82
169 // void PQgen(int sz)
170 public static Object PQgen(Object... arg) {
171 UNSUPPORTED("c01vxogao855zs8fe94tpim9g"); // void
172 UNSUPPORTED("mv0qxfr5hxyhgu3l3m6o47cy"); // PQgen(int sz)
173 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
174 UNSUPPORTED("do3zjq97xzdk5dhii167i60qh"); // if (!pq) {
175 UNSUPPORTED("74u3ayhkzemd24zmbuv7wpym8"); // pq = (snode**)zmalloc((sz+1)*sizeof(snode*));
176 UNSUPPORTED("dezukzubu9nms24lhvphuawxq"); // pq[0] = &guard;
177 UNSUPPORTED("593hemyh9nreh89upeivll5qx"); // PQsize = sz;
178 UNSUPPORTED("7ijd6pszsxnoopppf6xwo8wdl"); // }
179 UNSUPPORTED("akljrpu8bej9lq4rmsktz8u2e"); // PQcnt = 0;
180 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
181
182 throw new UnsupportedOperationException();
183 }
184
185
186
187
188 //3 af70676bgfacdrx355e3fm16w
189 // void PQfree(void)
190 public static Object PQfree(Object... arg) {
191 UNSUPPORTED("c01vxogao855zs8fe94tpim9g"); // void
192 UNSUPPORTED("a722afmxpzwjdmlojj7lqbxaj"); // PQfree(void)
193 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
194 UNSUPPORTED("efn0baufwv42rir223e1awlhs"); // free (pq);
195 UNSUPPORTED("4af6njplv9g18xpb4kh6834b2"); // pq = NULL;
196 UNSUPPORTED("akljrpu8bej9lq4rmsktz8u2e"); // PQcnt = 0;
197 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
198
199 throw new UnsupportedOperationException();
200 }
201
202
203
204
205 //3 9gva9zqwj67hmfsbnnvelzt5i
206 // void PQinit(void)
207 public static Object PQinit(Object... arg) {
208 UNSUPPORTED("c01vxogao855zs8fe94tpim9g"); // void
209 UNSUPPORTED("3p0cdanvp4f13d8omi42lvjl1"); // PQinit(void)
210 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
211 UNSUPPORTED("akljrpu8bej9lq4rmsktz8u2e"); // PQcnt = 0;
212 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
213
214 throw new UnsupportedOperationException();
215 }
216
217
218
219
220 //3 52wib9gann39qwvmctcw6wxdi
221 // void PQcheck (void)
222 public static Object PQcheck(Object... arg) {
223 UNSUPPORTED("c01vxogao855zs8fe94tpim9g"); // void
224 UNSUPPORTED("ais4fu8ea90z9l9gc75rtolae"); // PQcheck (void)
225 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
226 UNSUPPORTED("327a0i7b6rqjqj8wdl0h29mnc"); // int i;
227 UNSUPPORTED("ajjv0cjc9s0osbkjlg35z41k"); // for (i = 1; i <= PQcnt; i++) {
228 UNSUPPORTED("6mg3o7pwh14yf5rgrii3b7la2"); // if ((pq[i])->n_idx != i) {
229 UNSUPPORTED("2kc7vwb5ge1ym5i0vk3t2ku3u"); // assert (0);
230 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
231 UNSUPPORTED("7ijd6pszsxnoopppf6xwo8wdl"); // }
232 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
233
234 throw new UnsupportedOperationException();
235 }
236
237
238
239
240 //3 2lbfs6ynzlunyatr57r41uvz7
241 // void PQupheap(int k)
242 public static Object PQupheap(Object... arg) {
243 UNSUPPORTED("c01vxogao855zs8fe94tpim9g"); // void
244 UNSUPPORTED("5hhoge8azwixhuw1r6f1ae6d"); // PQupheap(int k)
245 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
246 UNSUPPORTED("7e1sq1127wt16hr7o0andcwob"); // snode* x = pq[k];
247 UNSUPPORTED("7bfu0p9xmzkty10xv4n4l5cqs"); // int v = x->n_val;
248 UNSUPPORTED("1j1bbq23z0qzohezignztjo66"); // int next = k/2;
249 UNSUPPORTED("ae5pat4mp4l6k25pvk8saz8c7"); // snode* n;
250 UNSUPPORTED("70492o1szwz9au93c3is2goa"); // while ((n = pq[next])->n_val < v) {
251 UNSUPPORTED("4i53ezzk69bsmpugd2h8bo35"); // pq[k] = n;
252 UNSUPPORTED("iolnc8pg22pbme3zbdim1eqy"); // (n)->n_idx = k;
253 UNSUPPORTED("8fpdpgwovt0k58t5u167v63is"); // k = next;
254 UNSUPPORTED("eqtnhenyor3dwsa6on9crthdd"); // next /= 2;
255 UNSUPPORTED("7ijd6pszsxnoopppf6xwo8wdl"); // }
256 UNSUPPORTED("1lxwoekai0i8v3rg0vrg6ahmx"); // pq[k] = x;
257 UNSUPPORTED("7ss0wudteh17yswf0ihopig7z"); // (x)->n_idx = k;
258 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
259
260 throw new UnsupportedOperationException();
261 }
262
263
264
265
266 //3 dpsy3q4qmuyf70antkm0irwus
267 // int PQ_insert(snode* np)
268 public static Object PQ_insert(Object... arg) {
269 UNSUPPORTED("etrjsq5w49uo9jq5pzifohkqw"); // int
270 UNSUPPORTED("5eeaexrm7pigm7t9d73aqaaht"); // PQ_insert(snode* np)
271 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
272 UNSUPPORTED("7d2tojz8u1bqjo7uhe2jqz8ks"); // if (PQcnt == PQsize) {
273 UNSUPPORTED("1fnwaiyzr5fvurskinr46kklp"); // agerr (AGERR, "Heap overflow\n");
274 UNSUPPORTED("bur99ge8gwr5q0vyjwjyk8z3b"); // return (1);
275 UNSUPPORTED("7ijd6pszsxnoopppf6xwo8wdl"); // }
276 UNSUPPORTED("d8u0aq1g7mc9qslpfsw3o3ezz"); // PQcnt++;
277 UNSUPPORTED("8f54fbv0205j58hpu3uq3i2ow"); // pq[PQcnt] = np;
278 UNSUPPORTED("f4e1yfpgiak6lx72g6gk4nyi0"); // PQupheap (PQcnt);
279 UNSUPPORTED("a7h72yd6f22ezx8o0izfoyyzl"); // PQcheck();
280 UNSUPPORTED("bid671dovx1rdiquw5vm3fttj"); // return 0;
281 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
282
283 throw new UnsupportedOperationException();
284 }
285
286
287
288
289 //3 ah2uksf5mfgu7r25rg6poansh
290 // void PQdownheap (int k)
291 public static Object PQdownheap(Object... arg) {
292 UNSUPPORTED("c01vxogao855zs8fe94tpim9g"); // void
293 UNSUPPORTED("5jo6sukhc9upf5qv4eukh8kop"); // PQdownheap (int k)
294 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
295 UNSUPPORTED("dd3235mkocimg2v70ln8ixz3k"); // snode* x = pq[k];
296 UNSUPPORTED("e0wd4mp2k58ml2bf01e6mtxfc"); // int v = (x)->n_val;
297 UNSUPPORTED("b9pl90rstqz0jhnw3ttda3kx5"); // int lim = PQcnt/2;
298 UNSUPPORTED("917ffzmzxsh6kw3txaqow8dv0"); // snode* n;
299 UNSUPPORTED("zrgst5t0lhf2kxrym9g7gvsn"); // int j;
300 UNSUPPORTED("7bbx1rekibyh3hyxh24lprwwk"); // while (k <= lim) {
301 UNSUPPORTED("disb3eax2r4wgge9im541y9hv"); // j = k+k;
302 UNSUPPORTED("e4w7jx4o3i4gav8ujef2bapbn"); // n = pq[j];
303 UNSUPPORTED("4yles8zr6ozg2g0df2jefc1l2"); // if (j < PQcnt) {
304 UNSUPPORTED("77cupwd0hd3zp8he6wd4tm6nx"); // if ((n)->n_val < (pq[j+1])->n_val) {
305 UNSUPPORTED("1jeqo15tfc6vbefwf85bniwfn"); // j++;
306 UNSUPPORTED("1sglut5nbxcoto9tvzxs3eixh"); // n = pq[j];
307 UNSUPPORTED("dquo3qofk56ds5xl95lhvcthf"); // }
308 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
309 UNSUPPORTED("3hshbuqs95898wh95e2fdh5uz"); // if (v >= (n)->n_val) break;
310 UNSUPPORTED("4i53ezzk69bsmpugd2h8bo35"); // pq[k] = n;
311 UNSUPPORTED("iolnc8pg22pbme3zbdim1eqy"); // (n)->n_idx = k;
312 UNSUPPORTED("8lpwfkimmel90007dlp5eqpbh"); // k = j;
313 UNSUPPORTED("7ijd6pszsxnoopppf6xwo8wdl"); // }
314 UNSUPPORTED("1lxwoekai0i8v3rg0vrg6ahmx"); // pq[k] = x;
315 UNSUPPORTED("7ss0wudteh17yswf0ihopig7z"); // (x)->n_idx = k;
316 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
317
318 throw new UnsupportedOperationException();
319 }
320
321
322
323
324 //3 asdsi15xhxgfyxlqv3bbx7vzv
325 // snode* PQremove (void)
326 public static Object PQremove(Object... arg) {
327 UNSUPPORTED("7qyamsdkopruu23xaccl0bcd2"); // snode*
328 UNSUPPORTED("7j2q3l5jxp3w7ags9kr29frzn"); // PQremove (void)
329 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
330 UNSUPPORTED("5cu5gkv7lbctrvkomvhsw0j1o"); // snode* n;
331 UNSUPPORTED("6078p2rnfog3yn8o3qzs373e2"); // if (PQcnt) {
332 UNSUPPORTED("6a46qhtz2fbsmmd370t7fv44f"); // n = pq[1];
333 UNSUPPORTED("8s70ivnxixrmkvd1lnojuxkfn"); // pq[1] = pq[PQcnt];
334 UNSUPPORTED("7o53ly4ejd7hkmf5tx564eb0x"); // PQcnt--;
335 UNSUPPORTED("4e6w4ct22nty5htys3c0346u1"); // if (PQcnt) PQdownheap (1);
336 UNSUPPORTED("26oeamvax1w8xlf1fp3w3uwbz"); // PQcheck();
337 UNSUPPORTED("69hc24ic55i66g8tf2ne42327"); // return n;
338 UNSUPPORTED("7ijd6pszsxnoopppf6xwo8wdl"); // }
339 UNSUPPORTED("7lrkjjj5lce2uf86c1y9o9yoa"); // else return 0;
340 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
341
342 throw new UnsupportedOperationException();
343 }
344
345
346
347
348 //3 6dvks137inq1ybpgc3p9il60e
349 // void PQupdate (snode* n, int d)
350 public static Object PQupdate(Object... arg) {
351 UNSUPPORTED("c01vxogao855zs8fe94tpim9g"); // void
352 UNSUPPORTED("b1fi3xtkc0mzuq3pimbrumdj3"); // PQupdate (snode* n, int d)
353 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
354 UNSUPPORTED("byrcaa9kitj1mfe0we79iao5b"); // (n)->n_val = d;
355 UNSUPPORTED("az1v3dey64e8mmt571cqcmw5b"); // PQupheap (n->n_idx);
356 UNSUPPORTED("a7h72yd6f22ezx8o0izfoyyzl"); // PQcheck();
357 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
358
359 throw new UnsupportedOperationException();
360 }
361
362
363
364
365 //3 9u2i85oe7eva5iz0ousp6k9ze
366 // void PQprint (void)
367 public static Object PQprint(Object... arg) {
368 UNSUPPORTED("c01vxogao855zs8fe94tpim9g"); // void
369 UNSUPPORTED("837kozmovwrdb83nqf648v9hy"); // PQprint (void)
370 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
371 UNSUPPORTED("29u9nk1nrupcw2j8c7qe5glz7"); // int i;
372 UNSUPPORTED("ae5pat4mp4l6k25pvk8saz8c7"); // snode* n;
373 UNSUPPORTED("f3w7y9hew7fq41kdfxhc1bni7"); // fprintf (stderr, "Q: ");
374 UNSUPPORTED("ajjv0cjc9s0osbkjlg35z41k"); // for (i = 1; i <= PQcnt; i++) {
375 UNSUPPORTED("8ma2z0vb3r4euoklbfwtvqixt"); // n = pq[i];
376 UNSUPPORTED("5vx4bf24j9k0k7d5db0nzqqho"); // fprintf (stderr, "%d(%d:%d) ",
377 UNSUPPORTED("3cv4xg03w7tifmwxdgb02cs87"); // n->index, (n)->n_idx, (n)->n_val);
378 UNSUPPORTED("7ijd6pszsxnoopppf6xwo8wdl"); // }
379 UNSUPPORTED("axonnz64pfb53bfq61adrgxoo"); // fprintf (stderr, "\n");
380 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
381
382 throw new UnsupportedOperationException();
383 }
384
385
386 }