Debian Codegraph @

src/gen/lib/dotgen/aspect__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.agget;
48 import static smetana.core.JUtilsDebug.ENTERING;
49 import static smetana.core.JUtilsDebug.LEAVING;
50 import static smetana.core.Macro.N;
51 import static smetana.core.Macro.UNSUPPORTED;
52 import h.ST_Agraph_s;
53 import h.ST_aspect_t;
54 import h.ST_pointf;
55 import smetana.core.CString;
56
57 public class aspect__c {
58 //1 2digov3edok6d5srhgtlmrycs
59 // extern lt_symlist_t lt_preloaded_symbols[]
60
61
62 //1 baedz5i9est5csw3epz3cv7z
63 // typedef Ppoly_t Ppolyline_t
64
65
66 //1 9k44uhd5foylaeoekf3llonjq
67 // extern Dtmethod_t* Dtset
68
69
70 //1 1ahfywsmzcpcig2oxm7pt9ihj
71 // extern Dtmethod_t* Dtbag
72
73
74 //1 anhghfj3k7dmkudy2n7rvt31v
75 // extern Dtmethod_t* Dtoset
76
77
78 //1 5l6oj1ux946zjwvir94ykejbc
79 // extern Dtmethod_t* Dtobag
80
81
82 //1 2wtf222ak6cui8cfjnw6w377z
83 // extern Dtmethod_t* Dtlist
84
85
86 //1 d1s1s6ibtcsmst88e3057u9r7
87 // extern Dtmethod_t* Dtstack
88
89
90 //1 axa7mflo824p6fspjn1rdk0mt
91 // extern Dtmethod_t* Dtqueue
92
93
94 //1 ega812utobm4xx9oa9w9ayij6
95 // extern Dtmethod_t* Dtdeque
96
97
98 //1 cyfr996ur43045jv1tjbelzmj
99 // extern Dtmethod_t* Dtorder
100
101
102 //1 wlofoiftbjgrrabzb2brkycg
103 // extern Dtmethod_t* Dttree
104
105
106 //1 12bds94t7voj7ulwpcvgf6agr
107 // extern Dtmethod_t* Dthash
108
109
110 //1 9lqknzty480cy7zsubmabkk8h
111 // extern Dtmethod_t _Dttree
112
113
114 //1 bvn6zkbcp8vjdhkccqo1xrkrb
115 // extern Dtmethod_t _Dthash
116
117
118 //1 9lidhtd6nsmmv3e7vjv9e10gw
119 // extern Dtmethod_t _Dtlist
120
121
122 //1 34ujfamjxo7xn89u90oh2k6f8
123 // extern Dtmethod_t _Dtqueue
124
125
126 //1 3jy4aceckzkdv950h89p4wjc8
127 // extern Dtmethod_t _Dtstack
128
129
130 //1 8dfqgf3u1v830qzcjqh9o8ha7
131 // extern Agmemdisc_t AgMemDisc
132
133
134 //1 18k2oh2t6llfsdc5x0wlcnby8
135 // extern Agiddisc_t AgIdDisc
136
137
138 //1 a4r7hi80gdxtsv4hdoqpyiivn
139 // extern Agiodisc_t AgIoDisc
140
141
142 //1 bnzt5syjb7mgeru19114vd6xx
143 // extern Agdisc_t AgDefaultDisc
144
145
146 //1 35y2gbegsdjilegaribes00mg
147 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
148
149
150 //1 c2rygslq6bcuka3awmvy2b3ow
151 // typedef Agsubnode_t Agnoderef_t
152
153
154 //1 xam6yv0dcsx57dtg44igpbzn
155 // typedef Dtlink_t Agedgeref_t
156
157
158 //1 nye6dsi1twkbddwo9iffca1j
159 // extern char *Version
160
161
162 //1 65mu6k7h7lb7bx14jpiw7iyxr
163 // extern char **Files
164
165
166 //1 2rpjdzsdyrvomf00zcs3u3dyn
167 // extern const char **Lib
168
169
170 //1 6d2f111lntd2rsdt4gswh5909
171 // extern char *CmdName
172
173
174 //1 a0ltq04fpeg83soa05a2fkwb2
175 // extern char *specificFlags
176
177
178 //1 1uv30qeqq2jh6uznlr4dziv0y
179 // extern char *specificItems
180
181
182 //1 7i4hkvngxe3x7lmg5h6b3t9g3
183 // extern char *Gvfilepath
184
185
186 //1 9jp96pa73kseya3w6sulxzok6
187 // extern char *Gvimagepath
188
189
190 //1 40ylumfu7mrvawwf4v2asvtwk
191 // extern unsigned char Verbose
192
193
194 //1 93st8awjy1z0h07n28qycbaka
195 // extern unsigned char Reduce
196
197
198 //1 f2vs67ts992erf8onwfglurzp
199 // extern int MemTest
200
201
202 //1 c6f8whijgjwwagjigmxlwz3gb
203 // extern char *HTTPServerEnVar
204
205
206 //1 cp4hzj7p87m7arw776d3bt7aj
207 // extern char *Output_file_name
208
209
210 //1 a3rqagofsgraie6mx0krzkgsy
211 // extern int graphviz_errors
212
213
214 //1 5up05203r4kxvjn1m4njcgq5x
215 // extern int Nop
216
217
218 //1 umig46cco431x14b3kosde2t
219 // extern double PSinputscale
220
221
222 //1 52bj6v8fqz39khasobljfukk9
223 // extern int Syntax_errors
224
225
226 //1 9ekf2ina8fsjj6y6i0an6somj
227 // extern int Show_cnt
228
229
230 //1 38di5qi3nkxkq65onyvconk3r
231 // extern char** Show_boxes
232
233
234 //1 6ri6iu712m8mpc7t2670etpcw
235 // extern int CL_type
236
237
238 //1 bomxiw3gy0cgd1ydqtek7fpxr
239 // extern unsigned char Concentrate
240
241
242 //1 cqy3gqgcq8empdrbnrhn84058
243 // extern double Epsilon
244
245
246 //1 64slegfoouqeg0rmbyjrm8wgr
247 // extern int MaxIter
248
249
250 //1 88wdinpnmfs4mab4aw62yb0bg
251 // extern int Ndim
252
253
254 //1 8bbad3ogcelqnnvo5br5s05gq
255 // extern int State
256
257
258 //1 17rnd8q45zclfn68qqst2vxxn
259 // extern int EdgeLabelsDone
260
261
262 //1 ymx1z4s8cznjifl2d9f9m8jr
263 // extern double Initial_dist
264
265
266 //1 a33bgl0c3uqb3trx419qulj1x
267 // extern double Damping
268
269
270 //1 d9lvrpjg1r0ojv40pod1xwk8n
271 // extern int Y_invert
272
273
274 //1 71efkfs77q5tq9ex6y0f4kanh
275 // extern int GvExitOnUsage
276
277
278 //1 4xy2dkdkv0acs2ue9eca8hh2e
279 // 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
280
281
282 //1 9js5gxgzr74eakgtfhnbws3t9
283 // 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
284
285
286 //1 anqllp9sj7wo45w6bm11j8trn
287 // 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
288
289
290 //1 bh0z9puipqw7gymjd5h5b8s6i
291 // extern struct fdpParms_s* fdp_parms
292
293
294
295
296 //3 ciez0pfggxdljedzsbklq49f0
297 // static inline point pointof(int x, int y)
298 public static Object pointof(Object... arg) {
299 UNSUPPORTED("8e4tj258yvfq5uhsdpk37n5eq"); // static inline point pointof(int x, int y)
300 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
301 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
302 UNSUPPORTED("12jimkrzqxavaie0cpapbx18c"); // r.x = x;
303 UNSUPPORTED("7ivmviysahgsc5nn9gtp7q2if"); // r.y = y;
304 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
305 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
306
307 throw new UnsupportedOperationException();
308 }
309
310
311
312
313 //3 c1s4k85p1cdfn176o3uryeros
314 // static inline pointf pointfof(double x, double y)
315 public static ST_pointf pointfof(double x, double y) {
316 // WARNING!! STRUCT
317 return pointfof_w_(x, y).copy();
318 }
319 private static ST_pointf pointfof_w_(double x, double y) {
320 ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof");
321 try {
322 final ST_pointf r = new ST_pointf();
323 r.setDouble("x", x);
324 r.setDouble("y", y);
325 return r;
326 } finally {
327 LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof");
328 }
329 }
330
331
332
333
334 //3 7cufnfitrh935ew093mw0i4b7
335 // static inline box boxof(int llx, int lly, int urx, int ury)
336 public static Object boxof(Object... arg) {
337 UNSUPPORTED("3lzesfdd337h31jrlib1czocm"); // static inline box boxof(int llx, int lly, int urx, int ury)
338 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
339 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
340 UNSUPPORTED("cylhjlutoc0sc0uy7g98m9fb8"); // b.LL.x = llx, b.LL.y = lly;
341 UNSUPPORTED("242of6revxzx8hpe7yerrchz6"); // b.UR.x = urx, b.UR.y = ury;
342 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
343 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
344
345 throw new UnsupportedOperationException();
346 }
347
348
349
350
351
352
353
354
355 //3 1n5xl70wxuabyf97mclvilsm6
356 // static inline point add_point(point p, point q)
357 public static Object add_point(Object... arg) {
358 UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); // static inline point add_point(point p, point q)
359 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
360 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
361 UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); // r.x = p.x + q.x;
362 UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); // r.y = p.y + q.y;
363 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
364 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
365
366 throw new UnsupportedOperationException();
367 }
368
369
370
371
372 //3 arrsbik9b5tnfcbzsm8gr2chx
373 // static inline pointf add_pointf(pointf p, pointf q)
374 public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) {
375 // WARNING!! STRUCT
376 return add_pointf_w_(p.copy(), q.copy()).copy();
377 }
378 private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) {
379 ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
380 try {
381 final ST_pointf r = new ST_pointf();
382 r.setDouble("x", p.x + q.x);
383 r.setDouble("y", p.y + q.y);
384 return r;
385 } finally {
386 LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
387 }
388 }
389
390
391
392
393 //3 ai2dprak5y6obdsflguh5qbd7
394 // static inline point sub_point(point p, point q)
395 public static Object sub_point(Object... arg) {
396 UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); // static inline point sub_point(point p, point q)
397 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
398 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
399 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
400 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
401 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
402 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
403
404 throw new UnsupportedOperationException();
405 }
406
407
408
409
410 //3 16f6pyogcv3j7n2p0n8giqqgh
411 // static inline pointf sub_pointf(pointf p, pointf q)
412 public static Object sub_pointf(Object... arg) {
413 UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); // static inline pointf sub_pointf(pointf p, pointf q)
414 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
415 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
416 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
417 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
418 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
419 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
420
421 throw new UnsupportedOperationException();
422 }
423
424
425
426
427 //3 9k50jgrhc4f9824vf8ony74rw
428 // static inline point mid_point(point p, point q)
429 public static Object mid_point(Object... arg) {
430 UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); // static inline point mid_point(point p, point q)
431 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
432 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
433 UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); // r.x = (p.x + q.x) / 2;
434 UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); // r.y = (p.y + q.y) / 2;
435 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
436 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
437
438 throw new UnsupportedOperationException();
439 }
440
441
442
443
444 //3 59c4f7im0ftyowhnzzq2v9o1x
445 // static inline pointf mid_pointf(pointf p, pointf q)
446 public static Object mid_pointf(Object... arg) {
447 UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); // static inline pointf mid_pointf(pointf p, pointf q)
448 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
449 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
450 UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); // r.x = (p.x + q.x) / 2.;
451 UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); // r.y = (p.y + q.y) / 2.;
452 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
453 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
454
455 throw new UnsupportedOperationException();
456 }
457
458
459
460
461 //3 5r18p38gisvcx3zsvbb9saixx
462 // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
463 public static Object interpolate_pointf(Object... arg) {
464 UNSUPPORTED("894yimn33kmtm454llwdaotu8"); // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
465 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
466 UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); // pointf r;
467 UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); // r.x = p.x + t * (q.x - p.x);
468 UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); // r.y = p.y + t * (q.y - p.y);
469 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
470 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
471
472 throw new UnsupportedOperationException();
473 }
474
475
476
477
478 //3 bxzrv2ghq04qk5cbyy68s4mol
479 // static inline point exch_xy(point p)
480 public static Object exch_xy(Object... arg) {
481 UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); // static inline point exch_xy(point p)
482 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
483 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
484 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
485 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
486 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
487 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
488
489 throw new UnsupportedOperationException();
490 }
491
492
493
494
495 //3 9lt3e03tac6h6sydljrcws8fd
496 // static inline pointf exch_xyf(pointf p)
497 public static Object exch_xyf(Object... arg) {
498 UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); // static inline pointf exch_xyf(pointf p)
499 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
500 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
501 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
502 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
503 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
504 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
505
506 throw new UnsupportedOperationException();
507 }
508
509
510
511
512 //3 8l9qhieokthntzdorlu5zn29b
513 // static inline box box_bb(box b0, box b1)
514 public static Object box_bb(Object... arg) {
515 UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); // static inline box box_bb(box b0, box b1)
516 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
517 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
518 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
519 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
520 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
521 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
522 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
523 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
524
525 throw new UnsupportedOperationException();
526 }
527
528
529
530
531 //3 clws9h3bbjm0lw3hexf8nl4c4
532 // static inline boxf boxf_bb(boxf b0, boxf b1)
533 public static Object boxf_bb(Object... arg) {
534 UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); // static inline boxf boxf_bb(boxf b0, boxf b1)
535 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
536 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf 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 bit6ycxo1iqd2al92y8gkzlvb
551 // static inline box box_intersect(box b0, box b1)
552 public static Object box_intersect(Object... arg) {
553 UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
554 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
555 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
556 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
557 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
558 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
559 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(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 8gfybie7k6pgb3o1a6llgpwng
570 // static inline boxf boxf_intersect(boxf b0, boxf b1)
571 public static Object boxf_intersect(Object... arg) {
572 UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); // static inline boxf boxf_intersect(boxf b0, boxf b1)
573 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
574 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf 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 7z8j2quq65govaaejrz7b4cvb
589 // static inline int box_overlap(box b0, box b1)
590 public static Object box_overlap(Object... arg) {
591 UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); // static inline int box_overlap(box b0, box b1)
592 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
593 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
594 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
595
596 throw new UnsupportedOperationException();
597 }
598
599
600
601
602 //3 4z0suuut2acsay5m8mg9dqjdu
603 // static inline int boxf_overlap(boxf b0, boxf b1)
604 public static Object boxf_overlap(Object... arg) {
605 UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); // static inline int boxf_overlap(boxf b0, boxf b1)
606 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
607 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
608 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
609
610 throw new UnsupportedOperationException();
611 }
612
613
614
615
616 //3 dd34swz5rmdgu3a2np2a4h1dy
617 // static inline int box_contains(box b0, box b1)
618 public static Object box_contains(Object... arg) {
619 UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); // static inline int box_contains(box b0, box b1)
620 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
621 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
622 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
623
624 throw new UnsupportedOperationException();
625 }
626
627
628
629
630 //3 8laj1bspbu2i1cjd9upr7xt32
631 // static inline int boxf_contains(boxf b0, boxf b1)
632 public static Object boxf_contains(Object... arg) {
633 UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); // static inline int boxf_contains(boxf b0, boxf b1)
634 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
635 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
636 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
637
638 throw new UnsupportedOperationException();
639 }
640
641
642
643
644 //3 4wf5swkz24xx51ja2dynbycu1
645 // static inline pointf perp (pointf p)
646 public static Object perp(Object... arg) {
647 UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); // static inline pointf perp (pointf p)
648 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
649 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
650 UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); // r.x = -p.y;
651 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
652 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
653 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
654
655 throw new UnsupportedOperationException();
656 }
657
658
659
660
661 //3 6dtlpzv4mvgzb9o0b252yweuv
662 // static inline pointf scale (double c, pointf p)
663 public static Object scale(Object... arg) {
664 UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); // static inline pointf scale (double c, pointf p)
665 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
666 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
667 UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); // r.x = c * p.x;
668 UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); // r.y = c * p.y;
669 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
670 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
671
672 throw new UnsupportedOperationException();
673 }
674
675
676 //1 buo6aw1j4uziggaugy984eotj
677 // static nodeGroup_t *nodeGroups
678
679
680 //1 8pcclsxg8w461gulo0pvihkjp
681 // static int nNodeGroups = 0
682
683
684
685
686 //3 e1ii1fk8ce43zhjwticczdewi
687 // static void computeNodeGroups(graph_t * g)
688 public static Object computeNodeGroups(Object... arg) {
689 UNSUPPORTED("85tw6ni78b2fdpbmcvfkfjj2g"); // static void computeNodeGroups(graph_t * g)
690 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
691 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
692 UNSUPPORTED("41zdayra08bo7qofh0t0g44tj"); // nodeGroups = (nodeGroup_t*)gmalloc((agnnodes(g))*sizeof(nodeGroup_t));
693 UNSUPPORTED("751hgbeopd6kx0brs46ydl3nk"); // nNodeGroups = 0;
694 UNSUPPORTED("bhhgxkf7jt2bkoqqybblectmc"); // /* initialize node ids. Id of a node is used as an index to the group. */
695 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
696 UNSUPPORTED("c29pxxzew8wpbooylabmstb6k"); // ND_id(n) = -1;
697 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
698 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
699 UNSUPPORTED("856fgjw3c9mfzqbqcelccqz6i"); // if (ND_UF_size(n) == 0) { /* no same ranking constraint */
700 UNSUPPORTED("995nygsph6blhs7u3roc320vt"); // nodeGroups[nNodeGroups].nodes = (node_t **)zmalloc(sizeof(node_t *));
701 UNSUPPORTED("yecg6kqqsu0dce5l7yl9nz0v"); // nodeGroups[nNodeGroups].nodes[0] = n;
702 UNSUPPORTED("48boktg0q0ftjks7g2ugmcgr0"); // nodeGroups[nNodeGroups].nNodes = 1;
703 UNSUPPORTED("asru03zwy8elrmkb54ceapyf5"); // nodeGroups[nNodeGroups].width = ND_width(n);
704 UNSUPPORTED("63tq5olg8fmmqnngdsd2m0p7y"); // nodeGroups[nNodeGroups].height = ND_height(n);
705 UNSUPPORTED("2jtn1zrlba2gjw9o8ijqfjd8l"); // ND_id(n) = nNodeGroups;
706 UNSUPPORTED("26stq7kxzhcw4bdbet988ue9u"); // nNodeGroups++;
707 UNSUPPORTED("ek3ylp6qgnzrlvktaorzarkl6"); // } else /* group same ranked nodes */
708 UNSUPPORTED("98gvqspn5y1bfyr14rwoaqk67"); // {
709 UNSUPPORTED("2xfdbwqwkydzc27ndexkdqpk3"); // node_t *l = UF_find(n);
710 UNSUPPORTED("9k1apjnlyvc0imkojboqq56t"); // if (ND_id(l) > -1) /* leader is already grouped */
711 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
712 UNSUPPORTED("1dxpo17pe23wsyc88ervx5x7n"); // int index = ND_id(l);
713 UNSUPPORTED("a3rj9avq06zyyeiex95z1m5qs"); // nodeGroups[index].nodes[nodeGroups[index].nNodes++] = n;
714 UNSUPPORTED("4qloaqbsyg2krphzbyu8l502n"); // nodeGroups[index].width += ND_width(n);
715 UNSUPPORTED("7oxuv0m39o7l9yf15yjhvw804"); // nodeGroups[index].height =
716 UNSUPPORTED("f301cq3rurukx2hdrzu2rvioq"); // (nodeGroups[index].height <
717 UNSUPPORTED("8oi4o7ku7aqcurrfujz4p5qkb"); // ND_height(n)) ? ND_height(n) : nodeGroups[index].
718 UNSUPPORTED("bkhrhsn74c58qx4h0val1pmjp"); // height;
719 UNSUPPORTED("7me4qfeob3i8uvnfzwktfincy"); // ND_id(n) = index;
720 UNSUPPORTED("d6w1jxu5j3ja7tpl4hcag7fv0"); // } else /* create a new group */
721 UNSUPPORTED("6dbei3uox5ql5a1vaaguh0xzp"); // {
722 UNSUPPORTED("2l80so4pkfhpik5o2c4xb7cff"); // nodeGroups[nNodeGroups].nodes =
723 UNSUPPORTED("3ey9wbuwiu5f6tykjlpo26lhj"); // (node_t **)zmalloc((ND_UF_size(l))*sizeof(node_t *));
724 UNSUPPORTED("53ell10epajj2omj9xiynycta"); // if (l == n) /* node n is the leader */
725 UNSUPPORTED("3lflizih274xjqgv1g0wjdgeq"); // {
726 UNSUPPORTED("7m6pmc4ajzo9gva5pgvtljwf3"); // nodeGroups[nNodeGroups].nodes[0] = l;
727 UNSUPPORTED("1n4ihvxa7g9rlwmex1up2728t"); // nodeGroups[nNodeGroups].nNodes = 1;
728 UNSUPPORTED("a8p3badahan60lefgn5iq9a8c"); // nodeGroups[nNodeGroups].width = ND_width(l);
729 UNSUPPORTED("dcwvaft8b2juhy42freidgc8m"); // nodeGroups[nNodeGroups].height = ND_height(l);
730 UNSUPPORTED("a47jqpic91ky93e1ohxv590l5"); // } else {
731 UNSUPPORTED("7m6pmc4ajzo9gva5pgvtljwf3"); // nodeGroups[nNodeGroups].nodes[0] = l;
732 UNSUPPORTED("2aqign2uu1g30cyam63ohxptd"); // nodeGroups[nNodeGroups].nodes[1] = n;
733 UNSUPPORTED("el4pqstmtl01oio7cmzrq6qtb"); // nodeGroups[nNodeGroups].nNodes = 2;
734 UNSUPPORTED("c1rjyfjlfo2jj62bcy025ukg1"); // nodeGroups[nNodeGroups].width =
735 UNSUPPORTED("a2sytyotqqfithwfaykqmsycp"); // ND_width(l) + ND_width(n);
736 UNSUPPORTED("eiifp86c59tpvht7teuygr2hw"); // nodeGroups[nNodeGroups].height =
737 UNSUPPORTED("7zt5ahh08kx3u1cw8m39031bh"); // (ND_height(l) <
738 UNSUPPORTED("3s43dn8agepaf1zik284rw4iw"); // ND_height(n)) ? ND_height(n) : ND_height(l);
739 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
740 UNSUPPORTED("1z3t7m0t6n4kv8tcm579ais2e"); // ND_id(l) = nNodeGroups;
741 UNSUPPORTED("1r38ircnao62y8uafy4au9p8c"); // ND_id(n) = nNodeGroups;
742 UNSUPPORTED("7yf3wfxeea0vbj0tkmh1sv74w"); // nNodeGroups++;
743 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
744 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
745 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
746 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
747
748 throw new UnsupportedOperationException();
749 }
750
751
752
753
754 //3 5vqsnuao6a6zpx51lrbvsra7t
755 // int countDummyNodes(graph_t * g)
756 public static Object countDummyNodes(Object... arg) {
757 UNSUPPORTED("51gqqbcx9xe38hsqk7vtw2h74"); // int countDummyNodes(graph_t * g)
758 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
759 UNSUPPORTED("551funk1bxiemly3silcqtngw"); // int count = 0;
760 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
761 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
762 UNSUPPORTED("33mzsqu0xadl81jos28k8lc70"); // /* Count dummy nodes */
763 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
764 UNSUPPORTED("e20lm4qtccvgsfq5fzjv6sjyl"); // for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
765 UNSUPPORTED("bzrm12ll46b0ey13f7049ny17"); // /* flat edges do not have dummy nodes */
766 UNSUPPORTED("cyx78ekjs6rwln3461fbzwf7o"); // if (ND_rank(aghead(e)) != ND_rank(agtail(e)))
767 UNSUPPORTED("cb5zuqyn7ijkx5rk10yc6tfrv"); // count += abs(ND_rank(aghead(e)) - ND_rank(agtail(e))) - 1;
768 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
769 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
770 UNSUPPORTED("7rr0cazy4menu64k2rf61h98y"); // return count;
771 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
772
773 throw new UnsupportedOperationException();
774 }
775
776
777 //1 by0sucsgzrupx1vrq0sc82zrb
778 // static layerWidthInfo_t *layerWidthInfo = NULL
779
780
781 //1 2g8u71llxsq207y4p1j8kefuc
782 // static int *sortedLayerIndex
783
784
785 //1 28et5dpanlo1pz361e1ey0l13
786 // static int nLayers = 0
787
788
789
790
791 //3 ecn38irnr39x1ci0qrksvt2vb
792 // static void computeLayerWidths(graph_t * g)
793 public static Object computeLayerWidths(Object... arg) {
794 UNSUPPORTED("f0yxrj5hl2h30nj0ykado8683"); // static void computeLayerWidths(graph_t * g)
795 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
796 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
797 UNSUPPORTED("aigogf44ojtcesuy4xs7inqbn"); // node_t *v;
798 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
799 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
800 UNSUPPORTED("8o5u7blacrv03sbkd57tsy3ff"); // nLayers = 0;
801 UNSUPPORTED("dojzfz9p7nqclvdb5tee3yl8g"); // /* free previously allocated memory */
802 UNSUPPORTED("74k79fcsj62zr7jlyzubwv7ld"); // if (layerWidthInfo) {
803 UNSUPPORTED("7c1hsgkci660fl7ovcywsfy7h"); // for (i = 0; i < nNodeGroups; i++) {
804 UNSUPPORTED("4fm2a017gr8w7plpnzbbgdte6"); // if (layerWidthInfo[i].nodeGroupsInLayer) {
805 UNSUPPORTED("1p0hpvyuh05m9zj7iv2byacuu"); // int j;
806 UNSUPPORTED("torjjxsqraaddaop50hfluyq"); // for (j = 0; j < layerWidthInfo[i].nNodeGroupsInLayer; j++) {
807 UNSUPPORTED("5rh2ziady9vvl3275k6sxuawd"); // //if (layerWidthInfo[i].nodeGroupsInLayer[j])
808 UNSUPPORTED("qfkvchcmb0h3vrvsnu17fj29"); // //free(layerWidthInfo[i].nodeGroupsInLayer[j]);
809 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
810 UNSUPPORTED("9jguo0kg597gyce5y5nj8kf6h"); // free(layerWidthInfo[i].nodeGroupsInLayer);
811 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
812 UNSUPPORTED("4vnpv79q6n6p1kg9ndbsmzfds"); // if (layerWidthInfo[i].removed)
813 UNSUPPORTED("2ypdtktf36wfecowcdjfjxbfn"); // free(layerWidthInfo[i].removed);
814 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
815 UNSUPPORTED("aw89cecwa5xnmsohanlvbst8f"); // free(layerWidthInfo);
816 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
817 UNSUPPORTED("5xa04vocq8qrzxrvg4if75lnp"); // /* allocate memory
818 UNSUPPORTED("ge7jqooagslmrp81viou5iok"); // * the number of layers can go up to the number of node groups
819 UNSUPPORTED("795vpnc8yojryr8b46aidsu69"); // */
820 UNSUPPORTED("2e016wvwaqoa74u0xllotojs0"); // layerWidthInfo = (layerWidthInfo_t*)zmalloc((nNodeGroups)*sizeof(layerWidthInfo_t));
821 UNSUPPORTED("7vfjpab2mkl8qvm3ag5psj6hf"); // for (i = 0; i < nNodeGroups; i++) {
822 UNSUPPORTED("1ha5uzjeh0q6s99y9ngi159c"); // layerWidthInfo[i].nodeGroupsInLayer =
823 UNSUPPORTED("1bj8nm95udr98gzajp4k7nmuu"); // (nodeGroup_t **)zmalloc((nNodeGroups)*sizeof(nodeGroup_t *));
824 UNSUPPORTED("6loyginnjye85c38h5sul660e"); // layerWidthInfo[i].removed = (int*)zmalloc((nNodeGroups)*sizeof(int));
825 UNSUPPORTED("a16qoyl314d7d9chwymtn019s"); // layerWidthInfo[i].layerNumber = i;
826 UNSUPPORTED("cg2cd89vdfegcllk4lqfvn5h2"); // layerWidthInfo[i].nNodeGroupsInLayer = 0;
827 UNSUPPORTED("5qbgpr6w09rjfbzyrmcge4tt2"); // layerWidthInfo[i].nDummyNodes = 0;
828 UNSUPPORTED("6cn4a2kaj95meb5bwxgi6t0qr"); // layerWidthInfo[i].width = 0.0;
829 UNSUPPORTED("nklu8lmzpq6zswxqna7hbf2"); // layerWidthInfo[i].height = 0.0;
830 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
831 UNSUPPORTED("68bkdm53hpxme9qp9j1zxh4if"); // /* Count dummy nodes in the layer */
832 UNSUPPORTED("16hw9gw0dz2w7mrtba0eoqrdi"); // for (n = agfstnode(g); n; n = agnxtnode(g, n))
833 UNSUPPORTED("e20lm4qtccvgsfq5fzjv6sjyl"); // for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
834 UNSUPPORTED("bgir6fgzucxltcpf123wxwa16"); // int k;
835 UNSUPPORTED("9l0n1phb69gtf3xurnpundse6"); // /* FIX: This loop maybe unnecessary, but removing it and using
836 UNSUPPORTED("7qmve7ja4rala0jzz6b2bf7ee"); // * the commented codes next, gives a segmentation fault. I
837 UNSUPPORTED("6tsb25jdjgeyd8kt16ms1k9qc"); // * forgot the reason why.
838 UNSUPPORTED("29edlge3wqyp1gs0vymtr5700"); // */
839 UNSUPPORTED("40f532kzdw6xhs33zio76rmo2"); // for (k = ND_rank(agtail(e)) + 1; k < ND_rank(aghead(e)); k++) {
840 UNSUPPORTED("chgb216iqv20trqdzrg86mdmx"); // layerWidthInfo[k].nDummyNodes++;
841 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
842 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
843 UNSUPPORTED("69qgvs0kkl50uqq9a8psjvv9h"); // /* gather the layer information */
844 UNSUPPORTED("7vfjpab2mkl8qvm3ag5psj6hf"); // for (i = 0; i < nNodeGroups; i++) {
845 UNSUPPORTED("dh83pjg3c5msf1h1kf0axqdsx"); // v = nodeGroups[i].nodes[0];
846 UNSUPPORTED("9bi1i3v5pz27x2f1y1abwhdrm"); // if (ND_rank(v) + 1 > nLayers) /* update the number of layers */
847 UNSUPPORTED("ezub0uc17r32oo1qlkf2gdjds"); // nLayers = ND_rank(v) + 1;
848 UNSUPPORTED("aksirw784lry2qxk8yppa0p4e"); // layerWidthInfo[ND_rank(v)].width +=
849 UNSUPPORTED("3szfevpiz60jx1spm5qxs6dd"); // nodeGroups[i].width * 72 + (layerWidthInfo[ND_rank(v)].width >
850 UNSUPPORTED("amrnb3ao1kyyugopgztdru2yy"); // 0) * GD_nodesep(g);
851 UNSUPPORTED("9jz8yn32phtkki2y93ymg6cmh"); // if (layerWidthInfo[ND_rank(v)].height < nodeGroups[i].height * 72)
852 UNSUPPORTED("41gme6wvrco68e7sq80ey8oal"); // layerWidthInfo[ND_rank(v)].height = nodeGroups[i].height * 72;
853 UNSUPPORTED("eglala2xwc9bmolhriirfo56e"); // layerWidthInfo[ND_rank(v)].
854 UNSUPPORTED("arh0xb14ftp0yfs8ejxzmhjzk"); // nodeGroupsInLayer[layerWidthInfo[ND_rank(v)].
855 UNSUPPORTED("mdsrd2ju7gexbgpwyclxucy0"); // nNodeGroupsInLayer] = &nodeGroups[i];
856 UNSUPPORTED("8dv04kyx67hibudzpw8i562vh"); // layerWidthInfo[ND_rank(v)].nNodeGroupsInLayer++;
857 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
858 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
859
860 throw new UnsupportedOperationException();
861 }
862
863
864
865
866 //3 62on7vg7kkyolc539do3mec4h
867 // static int compFunction(const void *a, const void *b)
868 public static Object compFunction(Object... arg) {
869 UNSUPPORTED("4ocl61j8fqxzk98dh43ldqo7n"); // static int compFunction(const void *a, const void *b)
870 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
871 UNSUPPORTED("i2zwxk0ezuvec7grppkqqj67"); // int *ind1 = (int *) a;
872 UNSUPPORTED("2obagarn6xlc7uq4q8fg8pw05"); // int *ind2 = (int *) b;
873 UNSUPPORTED("cy4oapfo680baj6mqy6v64o0d"); // return (layerWidthInfo[*ind2].width >
874 UNSUPPORTED("44d4z7bklr6jymot3f82e2qk"); // layerWidthInfo[*ind1].width) - (layerWidthInfo[*ind2].width <
875 UNSUPPORTED("dol0wgt1zxwmpxius6rn6lf36"); // layerWidthInfo[*ind1].width);
876 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
877
878 throw new UnsupportedOperationException();
879 }
880
881
882
883
884 //3 ehhhz69emnjuunlpp23vqc6px
885 // static void sortLayers(graph_t * g)
886 public static Object sortLayers(Object... arg) {
887 UNSUPPORTED("30da20fhd5pcu6ofmw4vzj6xt"); // static void sortLayers(graph_t * g)
888 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
889 UNSUPPORTED("1djuhyco70xz45va6y1yesa70"); // qsort(sortedLayerIndex, agnnodes(g), sizeof(int), compFunction);
890 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
891
892 throw new UnsupportedOperationException();
893 }
894
895
896
897
898 //3 6evdukaqstizjshbr4oanxa73
899 // static int getOutDegree(nodeGroup_t * ng)
900 public static Object getOutDegree(Object... arg) {
901 UNSUPPORTED("2h5zq3e2klttmcfrs4pg0cst6"); // static int getOutDegree(nodeGroup_t * ng)
902 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
903 UNSUPPORTED("b5a93beg34iiqtnufv9wanh2r"); // int i, cnt = 0;
904 UNSUPPORTED("7ur993neb8tctm0gbe60vhpva"); // for (i = 0; i < ng->nNodes; i++) {
905 UNSUPPORTED("3ubjqvl7psu25r3c10ddw54v5"); // node_t *n = ng->nodes[i];
906 UNSUPPORTED("ak952thd788dbr90m2fvaklyu"); // edge_t *e;
907 UNSUPPORTED("2z8g63ud3byunrtnllsx573mk"); // graph_t *g = agraphof(n);
908 UNSUPPORTED("dar3s057kgujhrxf7no64ofdb"); // /* count outdegree. This loop might be unnecessary. */
909 UNSUPPORTED("e20lm4qtccvgsfq5fzjv6sjyl"); // for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
910 UNSUPPORTED("7hl03wjg5yryhvbe4ar0i0b8g"); // cnt++;
911 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
912 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
913 UNSUPPORTED("3zkt5kbq3sockq663o3s3ync7"); // return cnt;
914 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
915
916 throw new UnsupportedOperationException();
917 }
918
919
920
921
922 //3 advd4q4a55y9bkee9lm2jlb0b
923 // static int compFunction2(const void *a, const void *b)
924 public static Object compFunction2(Object... arg) {
925 UNSUPPORTED("3ozmsdf5a2dqxtwspwzu5w8yl"); // static int compFunction2(const void *a, const void *b)
926 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
927 UNSUPPORTED("751goeklcv2nazn2zynh989rh"); // nodeGroup_t **ind1 = (nodeGroup_t **) a, **ind2 = (nodeGroup_t **) b;
928 UNSUPPORTED("d5t70ah6319tmfn70ddvkq7wr"); // int cnt1 = getOutDegree(*ind1);
929 UNSUPPORTED("8wbvk61eveeuzv86g34s2xbd4"); // int cnt2 = getOutDegree(*ind2);
930 UNSUPPORTED("54loo8ag5vsb7zdxx83v3wegy"); // return (cnt2 < cnt1) - (cnt2 > cnt1);
931 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
932
933 throw new UnsupportedOperationException();
934 }
935
936
937
938
939 //3 aumg85jl3ptocfpw3ix2pech9
940 // static void reduceMaxWidth2(graph_t * g)
941 public static Object reduceMaxWidth2(Object... arg) {
942 UNSUPPORTED("6kkeddpljjg8jce0vm3z2zxdy"); // static void reduceMaxWidth2(graph_t * g)
943 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
944 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
945 UNSUPPORTED("809hvj8mnkno5tj5jlitlzwba"); // int maxLayerIndex;
946 UNSUPPORTED("7krkyrq7vtxesiaw3i63dji4m"); // double nextMaxWidth;
947 UNSUPPORTED("c9w9u59u9ncaoyp4lxxvw7ys3"); // double w = 0;
948 UNSUPPORTED("9x23dbda4cbxrfoy5h5q89sef"); // double targetWidth;
949 UNSUPPORTED("3d8p59v1x246rys9xsoqpko98"); // int fst;
950 UNSUPPORTED("4zuos9b188cv83meg3dw0orp3"); // nodeGroup_t *fstNdGrp;
951 UNSUPPORTED("beehmu1l85sgql2h4wysgoce4"); // int ndem;
952 UNSUPPORTED("884zwztabkph7x61nviw8sjef"); // int p, q;
953 UNSUPPORTED("8t1tccvz58ueg1sf9fyado1vu"); // int limit;
954 UNSUPPORTED("di25ovytf5y19mju57f42pogp"); // int rem;
955 UNSUPPORTED("dcmflthwszqqq5jsozmt9oyfi"); // int rem2;
956 UNSUPPORTED("81h1x4spv5vyw9fipnyfpgcmm"); // /* Find the widest layer. it must have at least 2 nodes. */
957 UNSUPPORTED("5ad5whcn26kk2tafa6g5hmjgm"); // for (i = 0; i < nLayers; i++) {
958 UNSUPPORTED("367ttm0jqivj6ascugpsq2ihs"); // if (layerWidthInfo[sortedLayerIndex[i]].nNodeGroupsInLayer <= 1)
959 UNSUPPORTED("6hqli9m8yickz1ox1qfgtdbnd"); // continue;
960 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
961 UNSUPPORTED("1qngg4wjsrt1uwmffwse8e1fm"); // maxLayerIndex = sortedLayerIndex[i];
962 UNSUPPORTED("mrjkzaja4hn0djdm4njyzwgn"); // /* get the width of the next widest layer */
963 UNSUPPORTED("bekefegm5r42jf82uhdsw60k2"); // nextMaxWidth =
964 UNSUPPORTED("1s96rlqp02to8be86ahpks4qp"); // (nLayers >
965 UNSUPPORTED("4qkxf4ozs5338fev3ejswyucm"); // i + 1) ? layerWidthInfo[sortedLayerIndex[i +
966 UNSUPPORTED("90jb1nqwt32r76t90h3kukxls"); // 1]].width : 0;
967 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
968 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
969 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
970 UNSUPPORTED("atqfhmyhmoiwees87nqlh9bs2"); // if (i == nLayers)
971 UNSUPPORTED("4wofltgoxyf0kq1ucrvv2sbq9"); // return; /* reduction of layerwidth is not possible. */
972 UNSUPPORTED("5nqb1rqm56ozkw6w0ysotyy06"); // /* sort the node groups in maxLayerIndex layer by height and
973 UNSUPPORTED("e9gqf91z12tzdilu3jefz85op"); // * then width, nonincreasing
974 UNSUPPORTED("795vpnc8yojryr8b46aidsu69"); // */
975 UNSUPPORTED("3tbh2oua8twhyt14bkhup0v5n"); // qsort(layerWidthInfo[maxLayerIndex].nodeGroupsInLayer,
976 UNSUPPORTED("80ucuxmaxd96o7ozxxno7y18c"); // layerWidthInfo[maxLayerIndex].nNodeGroupsInLayer,
977 UNSUPPORTED("f0wxqmd02xh4xxnox7semmqup"); // sizeof(nodeGroup_t *), compFunction2);
978 UNSUPPORTED("bukry94lbr7k56elmyf5nyna1"); // if (nextMaxWidth <= layerWidthInfo[maxLayerIndex].width / 4
979 UNSUPPORTED("1dy07qz8nxz4ovvsonpv95h8x"); // || nextMaxWidth >= layerWidthInfo[maxLayerIndex].width * 3 / 4)
980 UNSUPPORTED("4xw4q9anml67xuotpbea3yy1x"); // nextMaxWidth = layerWidthInfo[maxLayerIndex].width / 2;
981 UNSUPPORTED("4vcsswlnmvhk990gonx0dbl53"); // targetWidth = nextMaxWidth; /* layerWidthInfo[maxLayerIndex].width/2; */
982 UNSUPPORTED("8xl0athl77hag9patwu9qhehu"); // /* now partition the current layer into two or more
983 UNSUPPORTED("c49o3kf9bot8xo1pu9vb9qcsy"); // * layers (determined by the ranking algorithm)
984 UNSUPPORTED("795vpnc8yojryr8b46aidsu69"); // */
985 UNSUPPORTED("3ku48i8nky2n7oji9472v747k"); // fst = 0;
986 UNSUPPORTED("cspv6bcy4ird3pgtk05x2v9x6"); // ndem = 0;
987 UNSUPPORTED("1b8yssh8ruoe077cgcki6zdrt"); // limit = layerWidthInfo[maxLayerIndex].nNodeGroupsInLayer;
988 UNSUPPORTED("2rbxfdjhm2zringpkeerct448"); // rem = 0;
989 UNSUPPORTED("apzuij26xnj5ma4m18z4ai50w"); // rem2 = 0;
990 UNSUPPORTED("dap1pwebtq8maf5s2545nbrp1"); // /* initialize w, the width of the widest layer after partitioning */
991 UNSUPPORTED("7l2ucqsu9ruv5iie2klh90ahd"); // w = 0;
992 UNSUPPORTED("a7g80jjjbl6srwowqdzxcoqs0"); // for (i = 0; i < limit + rem; i++) {
993 UNSUPPORTED("1ahjq48zq780a0cwvpseutdkn"); // if (layerWidthInfo[maxLayerIndex].removed[i]) {
994 UNSUPPORTED("48so496p8g7nm344prgfhv3r5"); // rem++;
995 UNSUPPORTED("6hqli9m8yickz1ox1qfgtdbnd"); // continue;
996 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
997 UNSUPPORTED("cg4gj8hzn83y6snfckfbmfo6e"); // if ((w +
998 UNSUPPORTED("dv06i6wtz2bw1qsahmuqs98hl"); // layerWidthInfo[maxLayerIndex].nodeGroupsInLayer[i]->width *
999 UNSUPPORTED("pf67y1fh8hdiylyu2431xmxa"); // 72 + (w > 0) * GD_nodesep(g) <= targetWidth)
1000 UNSUPPORTED("bq1bstz8voswqa4fjibespqab"); // || !fst) {
1001 UNSUPPORTED("5qq0d479u9d6d2ye5xl80ax0d"); // w += (layerWidthInfo[maxLayerIndex].nodeGroupsInLayer[i])->
1002 UNSUPPORTED("bq93mxk1jp4ou77b72s93zr85"); // width * 72 + (w > 0) * GD_nodesep(g);
1003 UNSUPPORTED("366y982g736adlsryzw0c3oek"); // if (!fst) {
1004 UNSUPPORTED("9plnm3zvs0636dt0kmoha46l"); // fstNdGrp =
1005 UNSUPPORTED("5xiakyfs1gp0y9aasprrrk5mn"); // layerWidthInfo[maxLayerIndex].nodeGroupsInLayer[i];
1006 UNSUPPORTED("bf0q1igp1253yxfg3f1tfel24"); // fst = 1;
1007 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1008 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
1009 UNSUPPORTED("3wwlt6ahhurc0ijlwm0bxslur"); // nodeGroup_t *ng =
1010 UNSUPPORTED("43fttvx26kc9s70wgpnm3ws2q"); // layerWidthInfo[maxLayerIndex].nodeGroupsInLayer[i];
1011 UNSUPPORTED("kq0gpmkxpiwbektqvym913vy"); // for (p = 0; p < fstNdGrp->nNodes; p++)
1012 UNSUPPORTED("7chqat1hgor0xzck89881kmmz"); // for (q = 0; q < ng->nNodes; q++) {
1013 UNSUPPORTED("3egbmst2r8790sta0upbaq3kj"); // //printf("Trying to add virtual edge: %s -> %s\n",
1014 UNSUPPORTED("dwbnct46v3we663g5l2tmptui"); // // agnameof(fstNdGrp->nodes[p]), agnameof(ng->nodes[q]));
1015 UNSUPPORTED("cuqv9sy98rmhdbjpzeex3rg4v"); // /* The following code is for deletion of long virtual edges.
1016 UNSUPPORTED("1r2z18tbg612ek9sfb489a6xc"); // * It's no longer used.
1017 UNSUPPORTED("e37um01phgd5qy4hrex7cu8bi"); // */
1018 UNSUPPORTED("58a2mmk9lsz9t5yzb8b9f8bkp"); // /* add a new virtual edge */
1019 UNSUPPORTED("6ljuxngn9wk3ftcodzf054yeu"); // edge_t *newVEdge =
1020 UNSUPPORTED("844w3zq8p902r572neb30unb6"); // virtual_edge(fstNdGrp->nodes[p], ng->nodes[q],
1021 UNSUPPORTED("b955fhzlbikknivthxtzpnugj"); // NULL);
1022 UNSUPPORTED("qt1p5nrwd57te4eh2ohjmmta"); // ED_edge_type(newVEdge) = 1;
1023 UNSUPPORTED("dsgv48crsux69djskyfkvpq8a"); // ndem++; /* increase number of node demotions */
1024 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
1025 UNSUPPORTED("7vqv39l80iv7x6hfdcecytlgy"); // /* the following code updates the layer width information. The
1026 UNSUPPORTED("7j2qzieax8k3ao9i9so65vkc1"); // * update is not useful in the current version of the heuristic.
1027 UNSUPPORTED("20m1lc1moer8x00tx9ceto0iw"); // */
1028 UNSUPPORTED("8vij5gjt5kh41fekao3vc79ck"); // layerWidthInfo[maxLayerIndex].removed[i] = 1;
1029 UNSUPPORTED("czzy9dbc0rmsq8m3o0g5tuamg"); // rem2++;
1030 UNSUPPORTED("96jz56riot2d1ri2fufximy6f"); // layerWidthInfo[maxLayerIndex].nNodeGroupsInLayer--;
1031 UNSUPPORTED("ahih3boi0hmv6cjfgurjbltxl"); // /* SHOULD BE INCREASED BY THE SUM OF INDEG OF ALL NODES IN GROUP */
1032 UNSUPPORTED("7wh7bhbziqs0nzma76j37hbiz"); // layerWidthInfo[maxLayerIndex].nDummyNodes++;
1033 UNSUPPORTED("4zs60km4pkprzvbgtwsdhp5ad"); // layerWidthInfo[maxLayerIndex].width -=
1034 UNSUPPORTED("atkdij9n6sv7amu7j5iiofmpb"); // (ng->width * 72 + GD_nodesep(g));
1035 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1036 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1037 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1038
1039 throw new UnsupportedOperationException();
1040 }
1041
1042
1043
1044
1045 //3 9m17vsomqcrp49v7i892k9wdz
1046 // static void applyPacking2(graph_t * g)
1047 public static Object applyPacking2(Object... arg) {
1048 UNSUPPORTED("a65t347rhgkl70wordiofv3b"); // static void applyPacking2(graph_t * g)
1049 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1050 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
1051 UNSUPPORTED("5z9j46ysd1pb5bnq6c90enmrq"); // sortedLayerIndex = (int*)zmalloc((agnnodes(g))*sizeof(int));
1052 UNSUPPORTED("9bb75wlkcadi5zu3bgx60fel0"); // for (i = 0; i < agnnodes(g); i++) {
1053 UNSUPPORTED("e9lhr9mahq6qolp5r06dl6rfy"); // sortedLayerIndex[i] = i;
1054 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1055 UNSUPPORTED("ekdavoqh7w4imu35z1hk4cr27"); // computeLayerWidths(g);
1056 UNSUPPORTED("6541sj456n87xc6ssjlvin6lv"); // sortLayers(g);
1057 UNSUPPORTED("22r0c4vewes195tok6uvfzjjk"); // reduceMaxWidth2(g);
1058 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1059
1060 throw new UnsupportedOperationException();
1061 }
1062
1063
1064
1065
1066 //3 b9x4re3dvjn32qyn2twehamcd
1067 // void initEdgeTypes(graph_t * g)
1068 public static Object initEdgeTypes(Object... arg) {
1069 UNSUPPORTED("2syp4meyieisq746m5m1ff921"); // void initEdgeTypes(graph_t * g)
1070 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1071 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
1072 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
1073 UNSUPPORTED("7k5t9s9q7nhmwr9qz8jg12ams"); // int lc;
1074 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1075 UNSUPPORTED("z39vglndoyxj54j2z9v64r6q"); // for (lc = 0; lc < ND_in(n).size; lc++) {
1076 UNSUPPORTED("agilsevb8bk3ymoczc2ptb24y"); // e = ND_in(n).list[lc];
1077 UNSUPPORTED("21bvtwcu90i27r8cbu2ngifk"); // ED_edge_type(e) = 0;
1078 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1079 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1080 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1081
1082 throw new UnsupportedOperationException();
1083 }
1084
1085
1086
1087
1088 //3 9b4z7q5fnvgvi1cs36mimkrqs
1089 // static double computeCombiAR(graph_t * g)
1090 public static Object computeCombiAR(Object... arg) {
1091 UNSUPPORTED("8y99bebjn0nlslisg0u06o7ef"); // static double computeCombiAR(graph_t * g)
1092 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1093 UNSUPPORTED("gmffj6qikpm7gyjl7ppj2avw"); // int i, maxLayerIndex;
1094 UNSUPPORTED("bkqjq8sflq6i69h1q5wtrqdyz"); // double maxW = 0;
1095 UNSUPPORTED("d2sh953raugyt16qa6wimemaq"); // double maxH;
1096 UNSUPPORTED("3dg5tppzkfs857vo6ykmcnnah"); // double ratio;
1097 UNSUPPORTED("ekdavoqh7w4imu35z1hk4cr27"); // computeLayerWidths(g);
1098 UNSUPPORTED("btqcp1jn7vzx1obrdwlpao8ei"); // maxH = (nLayers - 1) * GD_ranksep(g);
1099 UNSUPPORTED("5ad5whcn26kk2tafa6g5hmjgm"); // for (i = 0; i < nLayers; i++) {
1100 UNSUPPORTED("6nkzs7fajji0961pjb259v0fk"); // if (maxW <
1101 UNSUPPORTED("5k2g68qxz0ue7tb2a4pdbhu2j"); // layerWidthInfo[i].width +
1102 UNSUPPORTED("eoi6tblklq5p0ap1ck08iiqj8"); // layerWidthInfo[i].nDummyNodes * GD_nodesep(g)) {
1103 UNSUPPORTED("93grfh5yi1ydy8iyt353uh909"); // maxW =
1104 UNSUPPORTED("279i4wi2e4voircoomc1ry8ua"); // layerWidthInfo[i].width +
1105 UNSUPPORTED("6xb1rhy6cdjxo2vbpz8nhuvxe"); // layerWidthInfo[i].nDummyNodes * GD_nodesep(g);
1106 UNSUPPORTED("92zn37cakfkafc7ginje53mb6"); // maxLayerIndex = i;
1107 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1108 UNSUPPORTED("cn95qhc4xh1ri1c41fnpwce48"); // maxH += layerWidthInfo[i].height;
1109 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1110 UNSUPPORTED("9p670kmiu3qqp1vgbn22mq4w9"); // ratio = maxW / maxH;
1111 UNSUPPORTED("beyrasxgt5kbbdyzy9nvsaf3i"); // return ratio;
1112 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1113
1114 throw new UnsupportedOperationException();
1115 }
1116
1117
1118
1119
1120 //3 w58r6lvyglcqidl4qnxr3cm5
1121 // static void zapLayers(graph_t * g)
1122 public static Object zapLayers(Object... arg) {
1123 UNSUPPORTED("dsto0e5yga5gs3tgtzp4pbffj"); // static void zapLayers(graph_t * g)
1124 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1125 UNSUPPORTED("dzpsknrwv8qkqq20hjnjpjn68"); // int i, j;
1126 UNSUPPORTED("7cl1kmap8x457uux62gb4277b"); // int start = 0;
1127 UNSUPPORTED("551funk1bxiemly3silcqtngw"); // int count = 0;
1128 UNSUPPORTED("90et4gwa94l7wrduohmumf7q6"); // /* the layers are sorted by the layer number. now zap the empty layers */
1129 UNSUPPORTED("5ad5whcn26kk2tafa6g5hmjgm"); // for (i = 0; i < nLayers; i++) {
1130 UNSUPPORTED("8oo7ghtfr3xrf5gukymtnn4jk"); // if (layerWidthInfo[i].nNodeGroupsInLayer == 0) {
1131 UNSUPPORTED("dgv3r9g8m1rprnlfpxqhfe1z9"); // if (count == 0)
1132 UNSUPPORTED("2ksocundgfwgz5agi901h1ng6"); // start = layerWidthInfo[i].layerNumber;
1133 UNSUPPORTED("fn6rrzmrb2yold6j6aofg94n"); // count++;
1134 UNSUPPORTED("ern96acbmw0trnet16xgt1chp"); // } else if (count && layerWidthInfo[i].layerNumber > start) {
1135 UNSUPPORTED("4f4sjt4zqxe5b75pgq7zd079z"); // for (j = 0; j < layerWidthInfo[i].nNodeGroupsInLayer; j++) {
1136 UNSUPPORTED("euaoxl3q399fzxn78jpuxbz0m"); // int q;
1137 UNSUPPORTED("4y0bw1xrvij26xm6lflig8hph"); // nodeGroup_t *ng = layerWidthInfo[i].nodeGroupsInLayer[j];
1138 UNSUPPORTED("7chqat1hgor0xzck89881kmmz"); // for (q = 0; q < ng->nNodes; q++) {
1139 UNSUPPORTED("ez35ky0s0p5r57be9io2lrr10"); // node_t *nd = ng->nodes[q];
1140 UNSUPPORTED("bcfxc7h41rzopvk27c7kreog"); // ND_rank(nd) -= count;
1141 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
1142 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1143 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1144 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1145 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1146
1147 throw new UnsupportedOperationException();
1148 }
1149
1150
1151
1152
1153 //3 25p8yyx732fa1dwxany5vkmqv
1154 // void rank3(graph_t * g, aspect_t * asp)
1155 public static Object rank3(Object... arg) {
1156 UNSUPPORTED("ey9g3c61eb7j5dnz3gbhvflt3"); // void rank3(graph_t * g, aspect_t * asp)
1157 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1158 UNSUPPORTED("2jcii9cclu1dijzqekzc175pe"); // Agnode_t *n;
1159 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
1160 UNSUPPORTED("752slid56zrpl98vchhyeqpj"); // int iterations = asp->nextIter;
1161 UNSUPPORTED("6wfeyz2bw1fm15jb5qg3a79a2"); // double lastAR = MAXDOUBLE;
1162 UNSUPPORTED("5bvy7rsy7sf1krbn35gmd888x"); // computeNodeGroups(g); /* groups of UF DS nodes */
1163 UNSUPPORTED("cn5dqgh2amp70r1jzq8d7v75x"); // for (i = 0; (i < iterations) || (iterations == -1); i++) {
1164 UNSUPPORTED("42uwgh3dkewf6zkd83xt1wzjd"); // /* initialize all ranks to be 0 */
1165 UNSUPPORTED("attp4bsjqe99xnhi7lr7pszar"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1166 UNSUPPORTED("f429zn3r84ceckfatzshenxzo"); // ND_rank(n) = 0;
1167 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1168 UNSUPPORTED("d7qgdx3iixit5pdzj1yfw5vc8"); // /* need to compute ranking first--- by Network flow */
1169 UNSUPPORTED("1um989w8mqkye2u0q3wbc8dgb"); // rank1(g);
1170 UNSUPPORTED("cou59yxqf69o7kpjwdkc0vdth"); // asp->combiAR = computeCombiAR(g);
1171 UNSUPPORTED("a0xpyoq74njvdwc9lcvgyfc0p"); // if (Verbose)
1172 UNSUPPORTED("5ndbkluuhatxcz2bwngcywbhc"); // fprintf(stderr, "combiAR = %lf\n", asp->combiAR);
1173 UNSUPPORTED("53w2avskexaf6hjssoeplgz0o"); // /* Uncomment the following codes, for working with narrow graphs */
1174 UNSUPPORTED("am6dg6wfejg71244n1zzvaed6"); // /* Success or if no improvement */
1175 UNSUPPORTED("7qroolj8ezwbbkwrss9k1q5mc"); // if ((asp->combiAR <= asp->targetAR) || ((iterations == -1) && (lastAR <= asp->combiAR))) {
1176 UNSUPPORTED("11dozd7gvruvmd3x164caqmgz"); // asp->prevIterations = asp->curIterations;
1177 UNSUPPORTED("bm7zpotfxeku2ydqqsd6twzm6"); // asp->curIterations = i;
1178 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1179 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1180 UNSUPPORTED("7r2hn8bkthpfcf03lu4vnje0f"); // lastAR = asp->combiAR;
1181 UNSUPPORTED("9tsz1ho0itczonzjb308rql0m"); // /* Apply the FFDH algorithm to reduce the aspect ratio; */
1182 UNSUPPORTED("7jlj2ab1tf2kzdmzf0f14epg4"); // applyPacking2(g);
1183 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1184 UNSUPPORTED("9zv64kjrcw7u09t5lm2qsg4fw"); // /* do network flow once again... incorporating the added edges */
1185 UNSUPPORTED("393qo3g8b50gvp5o0tpqh29v1"); // rank1(g);
1186 UNSUPPORTED("ekdavoqh7w4imu35z1hk4cr27"); // computeLayerWidths(g);
1187 UNSUPPORTED("b1ukbsj4nhxbvn64fx7zbx7sn"); // zapLayers(g);
1188 UNSUPPORTED("3b5copquo4t13fbkmtbbkvo8j"); // asp->combiAR = computeCombiAR(g);
1189 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1190
1191 throw new UnsupportedOperationException();
1192 }
1193
1194
1195
1196
1197 //3 7bn6xhopjjdriiwvcpg9wqy1y
1198 // void init_UF_size(graph_t * g)
1199 public static Object init_UF_size(Object... arg) {
1200 UNSUPPORTED("cqp1rfchvfwon31gknapperjh"); // void init_UF_size(graph_t * g)
1201 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1202 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
1203 UNSUPPORTED("16hw9gw0dz2w7mrtba0eoqrdi"); // for (n = agfstnode(g); n; n = agnxtnode(g, n))
1204 UNSUPPORTED("2jzig41vokvwcy6z0o5dgo7sb"); // ND_UF_size(n) = 0;
1205 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1206
1207 throw new UnsupportedOperationException();
1208 }
1209
1210
1211
1212
1213 //3 5srsfxqlego6qiyj5mm8m4ql2
1214 // aspect_t* setAspect (Agraph_t * g, aspect_t* adata)
1215 public static ST_aspect_t setAspect(ST_Agraph_s g, ST_aspect_t adata) {
1216 ENTERING("5srsfxqlego6qiyj5mm8m4ql2","setAspect");
1217 try {
1218 double rv;
1219 CString p;
1220 int r, passes = 5;
1221 p = agget (g, new CString("aspect"));
1222 if (N(p) || UNSUPPORTED("(r = sscanf (p, %lf,%d, &rv, &passes)) <= 0)")==null) {
1223 adata.setInt("nextIter", 0);
1224 adata.setInt("badGraph", 0);
1225 return null;
1226 }
1227 UNSUPPORTED("bq1l9wqiw8bcls8ptb8o9rhqi"); // agerr (AGWARN, "the aspect attribute has been disabled due to implementation flaws - attribute ignored.\n");
1228 UNSUPPORTED("1hvtnh8r9fb47ewad86tcf0n0"); // adata->nextIter = 0;
1229 UNSUPPORTED("xx058mix2zyckbi0esnoc56v"); // adata->badGraph = 0;
1230 UNSUPPORTED("o68dp934ebg4cplebgc5hv4v"); // return NULL;
1231 UNSUPPORTED("ikxv7u2qba6riujs2unqsitx"); // if (rv < 1.0) rv = 1.0;
1232 UNSUPPORTED("acmmvkcaf8bc8wb6kdx9s2d3a"); // else if (rv > 20.0) rv = 20.0;
1233 UNSUPPORTED("18wyf3ih8fg4x4s3c006nx8zx"); // adata->targetAR = rv;
1234 UNSUPPORTED("2875r01nyy2cpm1c439zwu6tf"); // adata->nextIter = -1;
1235 UNSUPPORTED("9ssjc7jsfl2jgw01gwnr3ftal"); // adata->nPasses = passes;
1236 UNSUPPORTED("xx058mix2zyckbi0esnoc56v"); // adata->badGraph = 0;
1237 UNSUPPORTED("620q0efwdrg8vw3ggwpmxqiwv"); // if (Verbose)
1238 UNSUPPORTED("a7heh0decro63skjh8xq4buo7"); // fprintf(stderr, "Target AR = %g\n", adata->targetAR);
1239 UNSUPPORTED("b1cn763x4de1h91cdv3d4o3lb"); // return adata;
1240 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1241
1242 throw new UnsupportedOperationException();
1243 } finally {
1244 LEAVING("5srsfxqlego6qiyj5mm8m4ql2","setAspect");
1245 }
1246 }
1247
1248
1249 }