Debian Codegraph @

src/gen/lib/dotgen/decomp__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.dotgen;
47 import static gen.lib.cgraph.edge__c.aghead;
48 import static gen.lib.cgraph.edge__c.agtail;
49 import static gen.lib.cgraph.node__c.agfstnode;
50 import static gen.lib.cgraph.node__c.agnxtnode;
51 import static gen.lib.common.utils__c.UF_find;
52 import static smetana.core.JUtils.EQ;
53 import static smetana.core.JUtilsDebug.ENTERING;
54 import static smetana.core.JUtilsDebug.LEAVING;
55 import static smetana.core.Macro.GD_comp;
56 import static smetana.core.Macro.GD_n_nodes;
57 import static smetana.core.Macro.GD_nlist;
58 import static smetana.core.Macro.GD_rankleader;
59 import static smetana.core.Macro.ND_clust;
60 import static smetana.core.Macro.ND_flat_in;
61 import static smetana.core.Macro.ND_flat_out;
62 import static smetana.core.Macro.ND_in;
63 import static smetana.core.Macro.ND_mark;
64 import static smetana.core.Macro.ND_next;
65 import static smetana.core.Macro.ND_out;
66 import static smetana.core.Macro.ND_prev;
67 import static smetana.core.Macro.ND_rank;
68 import static smetana.core.Macro.UNSUPPORTED;
69 import h.ST_Agedge_s;
70 import h.ST_Agnode_s;
71 import h.ST_Agraph_s;
72 import h.ST_elist;
73 import h.ST_pointf;
74 import smetana.core.Z;
75
76 public class decomp__c {
77 //1 2digov3edok6d5srhgtlmrycs
78 // extern lt_symlist_t lt_preloaded_symbols[]
79
80
81 //1 baedz5i9est5csw3epz3cv7z
82 // typedef Ppoly_t Ppolyline_t
83
84
85 //1 9k44uhd5foylaeoekf3llonjq
86 // extern Dtmethod_t* Dtset
87
88
89 //1 1ahfywsmzcpcig2oxm7pt9ihj
90 // extern Dtmethod_t* Dtbag
91
92
93 //1 anhghfj3k7dmkudy2n7rvt31v
94 // extern Dtmethod_t* Dtoset
95
96
97 //1 5l6oj1ux946zjwvir94ykejbc
98 // extern Dtmethod_t* Dtobag
99
100
101 //1 2wtf222ak6cui8cfjnw6w377z
102 // extern Dtmethod_t* Dtlist
103
104
105 //1 d1s1s6ibtcsmst88e3057u9r7
106 // extern Dtmethod_t* Dtstack
107
108
109 //1 axa7mflo824p6fspjn1rdk0mt
110 // extern Dtmethod_t* Dtqueue
111
112
113 //1 ega812utobm4xx9oa9w9ayij6
114 // extern Dtmethod_t* Dtdeque
115
116
117 //1 cyfr996ur43045jv1tjbelzmj
118 // extern Dtmethod_t* Dtorder
119
120
121 //1 wlofoiftbjgrrabzb2brkycg
122 // extern Dtmethod_t* Dttree
123
124
125 //1 12bds94t7voj7ulwpcvgf6agr
126 // extern Dtmethod_t* Dthash
127
128
129 //1 9lqknzty480cy7zsubmabkk8h
130 // extern Dtmethod_t _Dttree
131
132
133 //1 bvn6zkbcp8vjdhkccqo1xrkrb
134 // extern Dtmethod_t _Dthash
135
136
137 //1 9lidhtd6nsmmv3e7vjv9e10gw
138 // extern Dtmethod_t _Dtlist
139
140
141 //1 34ujfamjxo7xn89u90oh2k6f8
142 // extern Dtmethod_t _Dtqueue
143
144
145 //1 3jy4aceckzkdv950h89p4wjc8
146 // extern Dtmethod_t _Dtstack
147
148
149 //1 8dfqgf3u1v830qzcjqh9o8ha7
150 // extern Agmemdisc_t AgMemDisc
151
152
153 //1 18k2oh2t6llfsdc5x0wlcnby8
154 // extern Agiddisc_t AgIdDisc
155
156
157 //1 a4r7hi80gdxtsv4hdoqpyiivn
158 // extern Agiodisc_t AgIoDisc
159
160
161 //1 bnzt5syjb7mgeru19114vd6xx
162 // extern Agdisc_t AgDefaultDisc
163
164
165 //1 35y2gbegsdjilegaribes00mg
166 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
167
168
169 //1 c2rygslq6bcuka3awmvy2b3ow
170 // typedef Agsubnode_t Agnoderef_t
171
172
173 //1 xam6yv0dcsx57dtg44igpbzn
174 // typedef Dtlink_t Agedgeref_t
175
176
177 //1 nye6dsi1twkbddwo9iffca1j
178 // extern char *Version
179
180
181 //1 65mu6k7h7lb7bx14jpiw7iyxr
182 // extern char **Files
183
184
185 //1 2rpjdzsdyrvomf00zcs3u3dyn
186 // extern const char **Lib
187
188
189 //1 6d2f111lntd2rsdt4gswh5909
190 // extern char *CmdName
191
192
193 //1 a0ltq04fpeg83soa05a2fkwb2
194 // extern char *specificFlags
195
196
197 //1 1uv30qeqq2jh6uznlr4dziv0y
198 // extern char *specificItems
199
200
201 //1 7i4hkvngxe3x7lmg5h6b3t9g3
202 // extern char *Gvfilepath
203
204
205 //1 9jp96pa73kseya3w6sulxzok6
206 // extern char *Gvimagepath
207
208
209 //1 40ylumfu7mrvawwf4v2asvtwk
210 // extern unsigned char Verbose
211
212
213 //1 93st8awjy1z0h07n28qycbaka
214 // extern unsigned char Reduce
215
216
217 //1 f2vs67ts992erf8onwfglurzp
218 // extern int MemTest
219
220
221 //1 c6f8whijgjwwagjigmxlwz3gb
222 // extern char *HTTPServerEnVar
223
224
225 //1 cp4hzj7p87m7arw776d3bt7aj
226 // extern char *Output_file_name
227
228
229 //1 a3rqagofsgraie6mx0krzkgsy
230 // extern int graphviz_errors
231
232
233 //1 5up05203r4kxvjn1m4njcgq5x
234 // extern int Nop
235
236
237 //1 umig46cco431x14b3kosde2t
238 // extern double PSinputscale
239
240
241 //1 52bj6v8fqz39khasobljfukk9
242 // extern int Syntax_errors
243
244
245 //1 9ekf2ina8fsjj6y6i0an6somj
246 // extern int Show_cnt
247
248
249 //1 38di5qi3nkxkq65onyvconk3r
250 // extern char** Show_boxes
251
252
253 //1 6ri6iu712m8mpc7t2670etpcw
254 // extern int CL_type
255
256
257 //1 bomxiw3gy0cgd1ydqtek7fpxr
258 // extern unsigned char Concentrate
259
260
261 //1 cqy3gqgcq8empdrbnrhn84058
262 // extern double Epsilon
263
264
265 //1 64slegfoouqeg0rmbyjrm8wgr
266 // extern int MaxIter
267
268
269 //1 88wdinpnmfs4mab4aw62yb0bg
270 // extern int Ndim
271
272
273 //1 8bbad3ogcelqnnvo5br5s05gq
274 // extern int State
275
276
277 //1 17rnd8q45zclfn68qqst2vxxn
278 // extern int EdgeLabelsDone
279
280
281 //1 ymx1z4s8cznjifl2d9f9m8jr
282 // extern double Initial_dist
283
284
285 //1 a33bgl0c3uqb3trx419qulj1x
286 // extern double Damping
287
288
289 //1 d9lvrpjg1r0ojv40pod1xwk8n
290 // extern int Y_invert
291
292
293 //1 71efkfs77q5tq9ex6y0f4kanh
294 // extern int GvExitOnUsage
295
296
297 //1 4xy2dkdkv0acs2ue9eca8hh2e
298 // extern Agsym_t *G_activepencolor, *G_activefillcolor, *G_selectedpencolor, *G_selectedfillcolor, *G_visitedpencolor, *G_visitedfillcolor, *G_deletedpencolor, *G_deletedfillcolor, *G_ordering, *G_peripheries, *G_penwidth, *G_gradientangle, *G_margin
299
300
301 //1 9js5gxgzr74eakgtfhnbws3t9
302 // extern Agsym_t *N_height, *N_width, *N_shape, *N_color, *N_fillcolor, *N_activepencolor, *N_activefillcolor, *N_selectedpencolor, *N_selectedfillcolor, *N_visitedpencolor, *N_visitedfillcolor, *N_deletedpencolor, *N_deletedfillcolor, *N_fontsize, *N_fontname, *N_fontcolor, *N_margin, *N_label, *N_xlabel, *N_nojustify, *N_style, *N_showboxes, *N_sides, *N_peripheries, *N_ordering, *N_orientation, *N_skew, *N_distortion, *N_fixed, *N_imagescale, *N_layer, *N_group, *N_comment, *N_vertices, *N_z, *N_penwidth, *N_gradientangle
303
304
305 //1 anqllp9sj7wo45w6bm11j8trn
306 // extern Agsym_t *E_weight, *E_minlen, *E_color, *E_fillcolor, *E_activepencolor, *E_activefillcolor, *E_selectedpencolor, *E_selectedfillcolor, *E_visitedpencolor, *E_visitedfillcolor, *E_deletedpencolor, *E_deletedfillcolor, *E_fontsize, *E_fontname, *E_fontcolor, *E_label, *E_xlabel, *E_dir, *E_style, *E_decorate, *E_showboxes, *E_arrowsz, *E_constr, *E_layer, *E_comment, *E_label_float, *E_samehead, *E_sametail, *E_arrowhead, *E_arrowtail, *E_headlabel, *E_taillabel, *E_labelfontsize, *E_labelfontname, *E_labelfontcolor, *E_labeldistance, *E_labelangle, *E_tailclip, *E_headclip, *E_penwidth
307
308
309 //1 bh0z9puipqw7gymjd5h5b8s6i
310 // extern struct fdpParms_s* fdp_parms
311
312
313
314
315 //3 ciez0pfggxdljedzsbklq49f0
316 // static inline point pointof(int x, int y)
317 public static Object pointof(Object... arg) {
318 UNSUPPORTED("8e4tj258yvfq5uhsdpk37n5eq"); // static inline point pointof(int x, int y)
319 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
320 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
321 UNSUPPORTED("12jimkrzqxavaie0cpapbx18c"); // r.x = x;
322 UNSUPPORTED("7ivmviysahgsc5nn9gtp7q2if"); // r.y = y;
323 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
324 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
325
326 throw new UnsupportedOperationException();
327 }
328
329
330
331
332 //3 c1s4k85p1cdfn176o3uryeros
333 // static inline pointf pointfof(double x, double y)
334 public static ST_pointf pointfof(double x, double y) {
335 // WARNING!! STRUCT
336 return pointfof_w_(x, y).copy();
337 }
338 private static ST_pointf pointfof_w_(double x, double y) {
339 ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof");
340 try {
341 final ST_pointf r = new ST_pointf();
342 r.setDouble("x", x);
343 r.setDouble("y", y);
344 return r;
345 } finally {
346 LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof");
347 }
348 }
349
350
351
352
353 //3 7cufnfitrh935ew093mw0i4b7
354 // static inline box boxof(int llx, int lly, int urx, int ury)
355 public static Object boxof(Object... arg) {
356 UNSUPPORTED("3lzesfdd337h31jrlib1czocm"); // static inline box boxof(int llx, int lly, int urx, int ury)
357 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
358 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
359 UNSUPPORTED("cylhjlutoc0sc0uy7g98m9fb8"); // b.LL.x = llx, b.LL.y = lly;
360 UNSUPPORTED("242of6revxzx8hpe7yerrchz6"); // b.UR.x = urx, b.UR.y = ury;
361 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
362 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
363
364 throw new UnsupportedOperationException();
365 }
366
367
368
369
370
371
372
373
374 //3 1n5xl70wxuabyf97mclvilsm6
375 // static inline point add_point(point p, point q)
376 public static Object add_point(Object... arg) {
377 UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); // static inline point add_point(point p, point q)
378 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
379 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
380 UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); // r.x = p.x + q.x;
381 UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); // r.y = p.y + q.y;
382 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
383 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
384
385 throw new UnsupportedOperationException();
386 }
387
388
389
390
391 //3 arrsbik9b5tnfcbzsm8gr2chx
392 // static inline pointf add_pointf(pointf p, pointf q)
393 public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) {
394 // WARNING!! STRUCT
395 return add_pointf_w_(p.copy(), q.copy()).copy();
396 }
397 private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) {
398 ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
399 try {
400 final ST_pointf r = new ST_pointf();
401 r.setDouble("x", p.x + q.x);
402 r.setDouble("y", p.y + q.y);
403 return r;
404 } finally {
405 LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
406 }
407 }
408
409
410
411
412 //3 ai2dprak5y6obdsflguh5qbd7
413 // static inline point sub_point(point p, point q)
414 public static Object sub_point(Object... arg) {
415 UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); // static inline point sub_point(point p, point q)
416 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
417 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
418 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
419 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
420 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
421 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
422
423 throw new UnsupportedOperationException();
424 }
425
426
427
428
429 //3 16f6pyogcv3j7n2p0n8giqqgh
430 // static inline pointf sub_pointf(pointf p, pointf q)
431 public static Object sub_pointf(Object... arg) {
432 UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); // static inline pointf sub_pointf(pointf p, pointf q)
433 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
434 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
435 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
436 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
437 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
438 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
439
440 throw new UnsupportedOperationException();
441 }
442
443
444
445
446 //3 9k50jgrhc4f9824vf8ony74rw
447 // static inline point mid_point(point p, point q)
448 public static Object mid_point(Object... arg) {
449 UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); // static inline point mid_point(point p, point q)
450 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
451 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
452 UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); // r.x = (p.x + q.x) / 2;
453 UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); // r.y = (p.y + q.y) / 2;
454 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
455 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
456
457 throw new UnsupportedOperationException();
458 }
459
460
461
462
463 //3 59c4f7im0ftyowhnzzq2v9o1x
464 // static inline pointf mid_pointf(pointf p, pointf q)
465 public static Object mid_pointf(Object... arg) {
466 UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); // static inline pointf mid_pointf(pointf p, pointf q)
467 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
468 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
469 UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); // r.x = (p.x + q.x) / 2.;
470 UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); // r.y = (p.y + q.y) / 2.;
471 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
472 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
473
474 throw new UnsupportedOperationException();
475 }
476
477
478
479
480 //3 5r18p38gisvcx3zsvbb9saixx
481 // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
482 public static Object interpolate_pointf(Object... arg) {
483 UNSUPPORTED("894yimn33kmtm454llwdaotu8"); // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
484 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
485 UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); // pointf r;
486 UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); // r.x = p.x + t * (q.x - p.x);
487 UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); // r.y = p.y + t * (q.y - p.y);
488 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
489 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
490
491 throw new UnsupportedOperationException();
492 }
493
494
495
496
497 //3 bxzrv2ghq04qk5cbyy68s4mol
498 // static inline point exch_xy(point p)
499 public static Object exch_xy(Object... arg) {
500 UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); // static inline point exch_xy(point p)
501 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
502 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
503 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
504 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
505 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
506 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
507
508 throw new UnsupportedOperationException();
509 }
510
511
512
513
514 //3 9lt3e03tac6h6sydljrcws8fd
515 // static inline pointf exch_xyf(pointf p)
516 public static Object exch_xyf(Object... arg) {
517 UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); // static inline pointf exch_xyf(pointf p)
518 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
519 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
520 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
521 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
522 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
523 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
524
525 throw new UnsupportedOperationException();
526 }
527
528
529
530
531 //3 8l9qhieokthntzdorlu5zn29b
532 // static inline box box_bb(box b0, box b1)
533 public static Object box_bb(Object... arg) {
534 UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); // static inline box box_bb(box b0, box b1)
535 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
536 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
537 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
538 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
539 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
540 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
541 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
542 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
543
544 throw new UnsupportedOperationException();
545 }
546
547
548
549
550 //3 clws9h3bbjm0lw3hexf8nl4c4
551 // static inline boxf boxf_bb(boxf b0, boxf b1)
552 public static Object boxf_bb(Object... arg) {
553 UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); // static inline boxf boxf_bb(boxf b0, boxf b1)
554 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
555 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
556 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
557 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
558 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
559 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
560 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
561 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
562
563 throw new UnsupportedOperationException();
564 }
565
566
567
568
569 //3 bit6ycxo1iqd2al92y8gkzlvb
570 // static inline box box_intersect(box b0, box b1)
571 public static Object box_intersect(Object... arg) {
572 UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
573 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
574 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
575 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
576 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
577 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
578 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
579 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
580 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
581
582 throw new UnsupportedOperationException();
583 }
584
585
586
587
588 //3 8gfybie7k6pgb3o1a6llgpwng
589 // static inline boxf boxf_intersect(boxf b0, boxf b1)
590 public static Object boxf_intersect(Object... arg) {
591 UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); // static inline boxf boxf_intersect(boxf b0, boxf b1)
592 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
593 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
594 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
595 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
596 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
597 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
598 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
599 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
600
601 throw new UnsupportedOperationException();
602 }
603
604
605
606
607 //3 7z8j2quq65govaaejrz7b4cvb
608 // static inline int box_overlap(box b0, box b1)
609 public static Object box_overlap(Object... arg) {
610 UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); // static inline int box_overlap(box b0, box b1)
611 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
612 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
613 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
614
615 throw new UnsupportedOperationException();
616 }
617
618
619
620
621 //3 4z0suuut2acsay5m8mg9dqjdu
622 // static inline int boxf_overlap(boxf b0, boxf b1)
623 public static Object boxf_overlap(Object... arg) {
624 UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); // static inline int boxf_overlap(boxf b0, boxf b1)
625 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
626 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
627 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
628
629 throw new UnsupportedOperationException();
630 }
631
632
633
634
635 //3 dd34swz5rmdgu3a2np2a4h1dy
636 // static inline int box_contains(box b0, box b1)
637 public static Object box_contains(Object... arg) {
638 UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); // static inline int box_contains(box b0, box b1)
639 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
640 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
641 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
642
643 throw new UnsupportedOperationException();
644 }
645
646
647
648
649 //3 8laj1bspbu2i1cjd9upr7xt32
650 // static inline int boxf_contains(boxf b0, boxf b1)
651 public static Object boxf_contains(Object... arg) {
652 UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); // static inline int boxf_contains(boxf b0, boxf b1)
653 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
654 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
655 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
656
657 throw new UnsupportedOperationException();
658 }
659
660
661
662
663 //3 4wf5swkz24xx51ja2dynbycu1
664 // static inline pointf perp (pointf p)
665 public static Object perp(Object... arg) {
666 UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); // static inline pointf perp (pointf p)
667 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
668 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
669 UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); // r.x = -p.y;
670 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
671 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
672 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
673
674 throw new UnsupportedOperationException();
675 }
676
677
678
679
680 //3 6dtlpzv4mvgzb9o0b252yweuv
681 // static inline pointf scale (double c, pointf p)
682 public static Object scale(Object... arg) {
683 UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); // static inline pointf scale (double c, pointf p)
684 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
685 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
686 UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); // r.x = c * p.x;
687 UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); // r.y = c * p.y;
688 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
689 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
690
691 throw new UnsupportedOperationException();
692 }
693
694
695 //1 5kbimjtsi4ulxiyk2w1brj6py
696 // static graph_t *G
697 //private static Agraph_s G;
698 //1 ca279jzn1n2k40bv7mz55ccx7
699 // static node_t *Last_node
700 //private static Agnode_s Last_node;
701 //1 5t6dmo5pbc1wdmxtabavdwyb2
702 // static char Cmark
703 //private static char Cmark;
704
705
706 //3 7ggrwt0f912kp1marrxdjq155
707 // static void begin_component(void)
708 public static void begin_component() {
709 ENTERING("7ggrwt0f912kp1marrxdjq155","begin_component");
710 try {
711 Z.z().Last_node_decomp = null;
712 GD_nlist(Z.z().G_decomp, null);
713 } finally {
714 LEAVING("7ggrwt0f912kp1marrxdjq155","begin_component");
715 }
716 }
717
718
719
720
721 //3 7icc6b2pvnj6te1yndbel47gg
722 // static void add_to_component(node_t * n)
723 public static void add_to_component(ST_Agnode_s n) {
724 ENTERING("7icc6b2pvnj6te1yndbel47gg","add_to_component");
725 try {
726 GD_n_nodes(Z.z().G_decomp, 1+GD_n_nodes(Z.z().G_decomp));
727 ND_mark(n, Z.z().Cmark);
728 if (Z.z().Last_node_decomp!=null) {
729 ND_prev(n, Z.z().Last_node_decomp);
730 ND_next(Z.z().Last_node_decomp, n);
731 } else {
732 ND_prev(n, null);
733 GD_nlist(Z.z().G_decomp, n);
734 }
735 Z.z().Last_node_decomp = n;
736 ND_next(n, null);
737 } finally {
738 LEAVING("7icc6b2pvnj6te1yndbel47gg","add_to_component");
739 }
740 }
741
742
743
744
745 //3 5o8hxpr6ppi15pinuy79m7u04
746 // static void end_component(void)
747 public static void end_component() {
748 ENTERING("5o8hxpr6ppi15pinuy79m7u04","end_component");
749 try {
750 int i;
751 i = GD_comp(Z.z().G_decomp).size;
752 GD_comp(Z.z().G_decomp).size = 1+GD_comp(Z.z().G_decomp).size;
753 GD_comp(Z.z().G_decomp).reallocEmpty(GD_comp(Z.z().G_decomp).size);
754 GD_comp(Z.z().G_decomp).setInList(i ,GD_nlist(Z.z().G_decomp));
755 } finally {
756 LEAVING("5o8hxpr6ppi15pinuy79m7u04","end_component");
757 }
758 }
759
760
761
762
763 //3 c5u5lnfbu0pmlk6vsvyrdj8ep
764 // static void search_component(graph_t * g, node_t * n)
765 public static void search_component(ST_Agraph_s g, ST_Agnode_s n) {
766 ENTERING("c5u5lnfbu0pmlk6vsvyrdj8ep","search_component");
767 try {
768 int c, i;
769 final ST_elist vec[] = new ST_elist[] {new ST_elist(),new ST_elist(),new ST_elist(),new ST_elist()};
770 ST_Agnode_s other;
771 ST_Agedge_s e;
772 add_to_component(n);
773 vec[0].setStruct(ND_out(n));
774 vec[1].setStruct(ND_in(n));
775 vec[2].setStruct(ND_flat_out(n));
776 vec[3].setStruct(ND_flat_in(n));
777 for (c = 0; c <= 3; c++) {
778 if (vec[c].listNotNull())
779 for (i = 0; (e = (ST_Agedge_s) vec[c].getFromList(i))!=null; i++) {
780 if (EQ(other = aghead(e), n))
781 other = agtail(e);
782 if ((ND_mark(other) != Z.z().Cmark) && (EQ(other, UF_find(other))))
783 search_component(g, other);
784 }
785 }
786 } finally {
787 LEAVING("c5u5lnfbu0pmlk6vsvyrdj8ep","search_component");
788 }
789 }
790
791
792
793
794 //3 2t7r964kqtl5qrl7i57i22tqy
795 // void decompose(graph_t * g, int pass)
796 public static void decompose(ST_Agraph_s g, int pass) {
797 ENTERING("2t7r964kqtl5qrl7i57i22tqy","decompose");
798 try {
799 ST_Agraph_s subg;
800 ST_Agnode_s n, v;
801 Z.z().G_decomp = g;
802 if (++Z.z().Cmark == 0)
803 Z.z().Cmark = 1;
804 GD_n_nodes(g, 0);
805 GD_comp(g).size = 0;
806 for (n = agfstnode(g); n!=null; n = agnxtnode(g, n)) {
807 v = n;
808 if ((pass > 0) && (subg = ND_clust(v))!=null)
809 v = (ST_Agnode_s) GD_rankleader(subg).plus(ND_rank(v)).getPtr();
810 else if (v != UF_find(v))
811 continue;
812 if (ND_mark(v) != Z.z().Cmark) {
813 begin_component();
814 search_component(g, v);
815 end_component();
816 }
817 }
818 } finally {
819 LEAVING("2t7r964kqtl5qrl7i57i22tqy","decompose");
820 }
821 }
822
823
824 }