Debian Codegraph @

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