Debian Codegraph @

src/gen/lib/dotgen/dotinit__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.agattr;
48 import static gen.lib.cgraph.attr__c.agget;
49 import static gen.lib.cgraph.edge__c.agfstout;
50 import static gen.lib.cgraph.edge__c.aghead;
51 import static gen.lib.cgraph.edge__c.agnxtout;
52 import static gen.lib.cgraph.edge__c.agtail;
53 import static gen.lib.cgraph.graph__c.agnnodes;
54 import static gen.lib.cgraph.node__c.agfstnode;
55 import static gen.lib.cgraph.node__c.agnxtnode;
56 import static gen.lib.cgraph.obj__c.agraphof;
57 import static gen.lib.cgraph.obj__c.agroot;
58 import static gen.lib.cgraph.rec__c.agbindrec;
59 import static gen.lib.cgraph.subg__c.agfstsubg;
60 import static gen.lib.cgraph.subg__c.agnxtsubg;
61 import static gen.lib.common.postproc__c.dotneato_postprocess;
62 import static gen.lib.common.utils__c.common_init_edge;
63 import static gen.lib.common.utils__c.common_init_node;
64 import static gen.lib.common.utils__c.gv_nodesize;
65 import static gen.lib.common.utils__c.late_int;
66 import static gen.lib.common.utils__c.late_string;
67 import static gen.lib.common.utils__c.mapbool;
68 import static gen.lib.common.utils__c.setEdgeType;
69 import static gen.lib.dotgen.aspect__c.setAspect;
70 import static gen.lib.dotgen.class1__c.nonconstraint_edge;
71 import static gen.lib.dotgen.compound__c.dot_compoundEdges;
72 import static gen.lib.dotgen.dotsplines__c.dot_splines;
73 import static gen.lib.dotgen.mincross__c.dot_mincross;
74 import static gen.lib.dotgen.position__c.dot_position;
75 import static gen.lib.dotgen.rank__c.dot_rank;
76 import static gen.lib.dotgen.sameport__c.dot_sameports;
77 import static gen.lib.pack.pack__c.getPack;
78 import static gen.lib.pack.pack__c.getPackInfo;
79 import static gen.lib.pack.pack__c.getPackModeInfo;
80 import static smetana.core.JUtils.EQ;
81 import static smetana.core.JUtils.NEQ;
82 import static smetana.core.JUtils.enumAsInt;
83 import static smetana.core.JUtils.sizeof;
84 import static smetana.core.JUtilsDebug.ENTERING;
85 import static smetana.core.JUtilsDebug.LEAVING;
86 import static smetana.core.Macro.AGRAPH;
87 import static smetana.core.Macro.ED_count;
88 import static smetana.core.Macro.ED_minlen;
89 import static smetana.core.Macro.ED_showboxes;
90 import static smetana.core.Macro.ED_weight;
91 import static smetana.core.Macro.ED_xpenalty;
92 import static smetana.core.Macro.GD_dotroot;
93 import static smetana.core.Macro.GD_flags;
94 import static smetana.core.Macro.GD_flip;
95 import static smetana.core.Macro.N;
96 import static smetana.core.Macro.ND_UF_size;
97 import static smetana.core.Macro.ND_flat_in;
98 import static smetana.core.Macro.ND_flat_out;
99 import static smetana.core.Macro.ND_in;
100 import static smetana.core.Macro.ND_other;
101 import static smetana.core.Macro.ND_out;
102 import static smetana.core.Macro.UNSUPPORTED;
103 import static smetana.core.Macro.alloc_elist;
104 import h.ST_Agedge_s;
105 import h.ST_Agedgeinfo_t;
106 import h.ST_Agnode_s;
107 import h.ST_Agnodeinfo_t;
108 import h.ST_Agraph_s;
109 import h.ST_Agraphinfo_t;
110 import h.ST_aspect_t;
111 import h.ST_pack_info;
112 import h.ST_pointf;
113 import h.pack_mode;
114 import smetana.core.CString;
115 import smetana.core.Z;
116 import smetana.core.__ptr__;
117
118 public class dotinit__c {
119 //1 2digov3edok6d5srhgtlmrycs
120 // extern lt_symlist_t lt_preloaded_symbols[]
121
122
123 //1 baedz5i9est5csw3epz3cv7z
124 // typedef Ppoly_t Ppolyline_t
125
126
127 //1 9k44uhd5foylaeoekf3llonjq
128 // extern Dtmethod_t* Dtset
129
130
131 //1 1ahfywsmzcpcig2oxm7pt9ihj
132 // extern Dtmethod_t* Dtbag
133
134
135 //1 anhghfj3k7dmkudy2n7rvt31v
136 // extern Dtmethod_t* Dtoset
137
138
139 //1 5l6oj1ux946zjwvir94ykejbc
140 // extern Dtmethod_t* Dtobag
141
142
143 //1 2wtf222ak6cui8cfjnw6w377z
144 // extern Dtmethod_t* Dtlist
145
146
147 //1 d1s1s6ibtcsmst88e3057u9r7
148 // extern Dtmethod_t* Dtstack
149
150
151 //1 axa7mflo824p6fspjn1rdk0mt
152 // extern Dtmethod_t* Dtqueue
153
154
155 //1 ega812utobm4xx9oa9w9ayij6
156 // extern Dtmethod_t* Dtdeque
157
158
159 //1 cyfr996ur43045jv1tjbelzmj
160 // extern Dtmethod_t* Dtorder
161
162
163 //1 wlofoiftbjgrrabzb2brkycg
164 // extern Dtmethod_t* Dttree
165
166
167 //1 12bds94t7voj7ulwpcvgf6agr
168 // extern Dtmethod_t* Dthash
169
170
171 //1 9lqknzty480cy7zsubmabkk8h
172 // extern Dtmethod_t _Dttree
173
174
175 //1 bvn6zkbcp8vjdhkccqo1xrkrb
176 // extern Dtmethod_t _Dthash
177
178
179 //1 9lidhtd6nsmmv3e7vjv9e10gw
180 // extern Dtmethod_t _Dtlist
181
182
183 //1 34ujfamjxo7xn89u90oh2k6f8
184 // extern Dtmethod_t _Dtqueue
185
186
187 //1 3jy4aceckzkdv950h89p4wjc8
188 // extern Dtmethod_t _Dtstack
189
190
191 //1 8dfqgf3u1v830qzcjqh9o8ha7
192 // extern Agmemdisc_t AgMemDisc
193
194
195 //1 18k2oh2t6llfsdc5x0wlcnby8
196 // extern Agiddisc_t AgIdDisc
197
198
199 //1 a4r7hi80gdxtsv4hdoqpyiivn
200 // extern Agiodisc_t AgIoDisc
201
202
203 //1 bnzt5syjb7mgeru19114vd6xx
204 // extern Agdisc_t AgDefaultDisc
205
206
207 //1 35y2gbegsdjilegaribes00mg
208 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
209
210
211 //1 c2rygslq6bcuka3awmvy2b3ow
212 // typedef Agsubnode_t Agnoderef_t
213
214
215 //1 xam6yv0dcsx57dtg44igpbzn
216 // typedef Dtlink_t Agedgeref_t
217
218
219 //1 nye6dsi1twkbddwo9iffca1j
220 // extern char *Version
221
222
223 //1 65mu6k7h7lb7bx14jpiw7iyxr
224 // extern char **Files
225
226
227 //1 2rpjdzsdyrvomf00zcs3u3dyn
228 // extern const char **Lib
229
230
231 //1 6d2f111lntd2rsdt4gswh5909
232 // extern char *CmdName
233
234
235 //1 a0ltq04fpeg83soa05a2fkwb2
236 // extern char *specificFlags
237
238
239 //1 1uv30qeqq2jh6uznlr4dziv0y
240 // extern char *specificItems
241
242
243 //1 7i4hkvngxe3x7lmg5h6b3t9g3
244 // extern char *Gvfilepath
245
246
247 //1 9jp96pa73kseya3w6sulxzok6
248 // extern char *Gvimagepath
249
250
251 //1 40ylumfu7mrvawwf4v2asvtwk
252 // extern unsigned char Verbose
253
254
255 //1 93st8awjy1z0h07n28qycbaka
256 // extern unsigned char Reduce
257
258
259 //1 f2vs67ts992erf8onwfglurzp
260 // extern int MemTest
261
262
263 //1 c6f8whijgjwwagjigmxlwz3gb
264 // extern char *HTTPServerEnVar
265
266
267 //1 cp4hzj7p87m7arw776d3bt7aj
268 // extern char *Output_file_name
269
270
271 //1 a3rqagofsgraie6mx0krzkgsy
272 // extern int graphviz_errors
273
274
275 //1 5up05203r4kxvjn1m4njcgq5x
276 // extern int Nop
277
278
279 //1 umig46cco431x14b3kosde2t
280 // extern double PSinputscale
281
282
283 //1 52bj6v8fqz39khasobljfukk9
284 // extern int Syntax_errors
285
286
287 //1 9ekf2ina8fsjj6y6i0an6somj
288 // extern int Show_cnt
289
290
291 //1 38di5qi3nkxkq65onyvconk3r
292 // extern char** Show_boxes
293
294
295 //1 6ri6iu712m8mpc7t2670etpcw
296 // extern int CL_type
297
298
299 //1 bomxiw3gy0cgd1ydqtek7fpxr
300 // extern unsigned char Concentrate
301
302
303 //1 cqy3gqgcq8empdrbnrhn84058
304 // extern double Epsilon
305
306
307 //1 64slegfoouqeg0rmbyjrm8wgr
308 // extern int MaxIter
309
310
311 //1 88wdinpnmfs4mab4aw62yb0bg
312 // extern int Ndim
313
314
315 //1 8bbad3ogcelqnnvo5br5s05gq
316 // extern int State
317
318
319 //1 17rnd8q45zclfn68qqst2vxxn
320 // extern int EdgeLabelsDone
321
322
323 //1 ymx1z4s8cznjifl2d9f9m8jr
324 // extern double Initial_dist
325
326
327 //1 a33bgl0c3uqb3trx419qulj1x
328 // extern double Damping
329
330
331 //1 d9lvrpjg1r0ojv40pod1xwk8n
332 // extern int Y_invert
333
334
335 //1 71efkfs77q5tq9ex6y0f4kanh
336 // extern int GvExitOnUsage
337
338
339 //1 4xy2dkdkv0acs2ue9eca8hh2e
340 // 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
341
342
343 //1 9js5gxgzr74eakgtfhnbws3t9
344 // 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
345
346
347 //1 anqllp9sj7wo45w6bm11j8trn
348 // 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
349
350
351 //1 bh0z9puipqw7gymjd5h5b8s6i
352 // extern struct fdpParms_s* fdp_parms
353
354
355
356
357 //3 ciez0pfggxdljedzsbklq49f0
358 // static inline point pointof(int x, int y)
359 public static Object pointof(Object... arg) {
360 UNSUPPORTED("8e4tj258yvfq5uhsdpk37n5eq"); // static inline point pointof(int x, int y)
361 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
362 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
363 UNSUPPORTED("12jimkrzqxavaie0cpapbx18c"); // r.x = x;
364 UNSUPPORTED("7ivmviysahgsc5nn9gtp7q2if"); // r.y = y;
365 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
366 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
367
368 throw new UnsupportedOperationException();
369 }
370
371
372
373
374 //3 c1s4k85p1cdfn176o3uryeros
375 // static inline pointf pointfof(double x, double y)
376 public static ST_pointf pointfof(double x, double y) {
377 // WARNING!! STRUCT
378 return pointfof_w_(x, y).copy();
379 }
380 private static ST_pointf pointfof_w_(double x, double y) {
381 ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof");
382 try {
383 final ST_pointf r = new ST_pointf();
384 r.setDouble("x", x);
385 r.setDouble("y", y);
386 return r;
387 } finally {
388 LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof");
389 }
390 }
391
392
393
394
395 //3 7cufnfitrh935ew093mw0i4b7
396 // static inline box boxof(int llx, int lly, int urx, int ury)
397 public static Object boxof(Object... arg) {
398 UNSUPPORTED("3lzesfdd337h31jrlib1czocm"); // static inline box boxof(int llx, int lly, int urx, int ury)
399 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
400 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
401 UNSUPPORTED("cylhjlutoc0sc0uy7g98m9fb8"); // b.LL.x = llx, b.LL.y = lly;
402 UNSUPPORTED("242of6revxzx8hpe7yerrchz6"); // b.UR.x = urx, b.UR.y = ury;
403 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
404 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
405
406 throw new UnsupportedOperationException();
407 }
408
409
410
411
412
413
414
415
416 //3 1n5xl70wxuabyf97mclvilsm6
417 // static inline point add_point(point p, point q)
418 public static Object add_point(Object... arg) {
419 UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); // static inline point add_point(point p, point q)
420 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
421 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
422 UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); // r.x = p.x + q.x;
423 UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); // r.y = p.y + q.y;
424 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
425 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
426
427 throw new UnsupportedOperationException();
428 }
429
430
431
432
433 //3 arrsbik9b5tnfcbzsm8gr2chx
434 // static inline pointf add_pointf(pointf p, pointf q)
435 public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) {
436 // WARNING!! STRUCT
437 return add_pointf_w_(p.copy(), q.copy()).copy();
438 }
439 private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) {
440 ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
441 try {
442 final ST_pointf r = new ST_pointf();
443 r.setDouble("x", p.x + q.x);
444 r.setDouble("y", p.y + q.y);
445 return r;
446 } finally {
447 LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
448 }
449 }
450
451
452
453
454 //3 ai2dprak5y6obdsflguh5qbd7
455 // static inline point sub_point(point p, point q)
456 public static Object sub_point(Object... arg) {
457 UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); // static inline point sub_point(point p, point q)
458 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
459 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
460 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
461 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
462 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
463 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
464
465 throw new UnsupportedOperationException();
466 }
467
468
469
470
471 //3 16f6pyogcv3j7n2p0n8giqqgh
472 // static inline pointf sub_pointf(pointf p, pointf q)
473 public static Object sub_pointf(Object... arg) {
474 UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); // static inline pointf sub_pointf(pointf p, pointf q)
475 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
476 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
477 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
478 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
479 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
480 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
481
482 throw new UnsupportedOperationException();
483 }
484
485
486
487
488 //3 9k50jgrhc4f9824vf8ony74rw
489 // static inline point mid_point(point p, point q)
490 public static Object mid_point(Object... arg) {
491 UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); // static inline point mid_point(point p, point q)
492 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
493 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
494 UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); // r.x = (p.x + q.x) / 2;
495 UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); // r.y = (p.y + q.y) / 2;
496 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
497 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
498
499 throw new UnsupportedOperationException();
500 }
501
502
503
504
505 //3 59c4f7im0ftyowhnzzq2v9o1x
506 // static inline pointf mid_pointf(pointf p, pointf q)
507 public static Object mid_pointf(Object... arg) {
508 UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); // static inline pointf mid_pointf(pointf p, pointf q)
509 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
510 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
511 UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); // r.x = (p.x + q.x) / 2.;
512 UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); // r.y = (p.y + q.y) / 2.;
513 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
514 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
515
516 throw new UnsupportedOperationException();
517 }
518
519
520
521
522 //3 5r18p38gisvcx3zsvbb9saixx
523 // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
524 public static Object interpolate_pointf(Object... arg) {
525 UNSUPPORTED("894yimn33kmtm454llwdaotu8"); // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
526 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
527 UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); // pointf r;
528 UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); // r.x = p.x + t * (q.x - p.x);
529 UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); // r.y = p.y + t * (q.y - p.y);
530 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
531 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
532
533 throw new UnsupportedOperationException();
534 }
535
536
537
538
539 //3 bxzrv2ghq04qk5cbyy68s4mol
540 // static inline point exch_xy(point p)
541 public static Object exch_xy(Object... arg) {
542 UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); // static inline point exch_xy(point p)
543 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
544 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
545 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
546 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
547 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
548 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
549
550 throw new UnsupportedOperationException();
551 }
552
553
554
555
556 //3 9lt3e03tac6h6sydljrcws8fd
557 // static inline pointf exch_xyf(pointf p)
558 public static Object exch_xyf(Object... arg) {
559 UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); // static inline pointf exch_xyf(pointf p)
560 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
561 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
562 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
563 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
564 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
565 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
566
567 throw new UnsupportedOperationException();
568 }
569
570
571
572
573 //3 8l9qhieokthntzdorlu5zn29b
574 // static inline box box_bb(box b0, box b1)
575 public static Object box_bb(Object... arg) {
576 UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); // static inline box box_bb(box b0, box b1)
577 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
578 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
579 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
580 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
581 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
582 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
583 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
584 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
585
586 throw new UnsupportedOperationException();
587 }
588
589
590
591
592 //3 clws9h3bbjm0lw3hexf8nl4c4
593 // static inline boxf boxf_bb(boxf b0, boxf b1)
594 public static Object boxf_bb(Object... arg) {
595 UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); // static inline boxf boxf_bb(boxf b0, boxf b1)
596 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
597 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
598 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
599 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
600 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
601 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
602 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
603 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
604
605 throw new UnsupportedOperationException();
606 }
607
608
609
610
611 //3 bit6ycxo1iqd2al92y8gkzlvb
612 // static inline box box_intersect(box b0, box b1)
613 public static Object box_intersect(Object... arg) {
614 UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
615 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
616 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
617 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
618 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
619 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
620 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
621 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
622 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
623
624 throw new UnsupportedOperationException();
625 }
626
627
628
629
630 //3 8gfybie7k6pgb3o1a6llgpwng
631 // static inline boxf boxf_intersect(boxf b0, boxf b1)
632 public static Object boxf_intersect(Object... arg) {
633 UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); // static inline boxf boxf_intersect(boxf b0, boxf b1)
634 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
635 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
636 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
637 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
638 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
639 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
640 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
641 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
642
643 throw new UnsupportedOperationException();
644 }
645
646
647
648
649 //3 7z8j2quq65govaaejrz7b4cvb
650 // static inline int box_overlap(box b0, box b1)
651 public static Object box_overlap(Object... arg) {
652 UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); // static inline int box_overlap(box b0, box b1)
653 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
654 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
655 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
656
657 throw new UnsupportedOperationException();
658 }
659
660
661
662
663 //3 4z0suuut2acsay5m8mg9dqjdu
664 // static inline int boxf_overlap(boxf b0, boxf b1)
665 public static Object boxf_overlap(Object... arg) {
666 UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); // static inline int boxf_overlap(boxf b0, boxf b1)
667 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
668 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
669 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
670
671 throw new UnsupportedOperationException();
672 }
673
674
675
676
677 //3 dd34swz5rmdgu3a2np2a4h1dy
678 // static inline int box_contains(box b0, box b1)
679 public static Object box_contains(Object... arg) {
680 UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); // static inline int box_contains(box b0, box b1)
681 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
682 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
683 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
684
685 throw new UnsupportedOperationException();
686 }
687
688
689
690
691 //3 8laj1bspbu2i1cjd9upr7xt32
692 // static inline int boxf_contains(boxf b0, boxf b1)
693 public static Object boxf_contains(Object... arg) {
694 UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); // static inline int boxf_contains(boxf b0, boxf b1)
695 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
696 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
697 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
698
699 throw new UnsupportedOperationException();
700 }
701
702
703
704
705 //3 4wf5swkz24xx51ja2dynbycu1
706 // static inline pointf perp (pointf p)
707 public static Object perp(Object... arg) {
708 UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); // static inline pointf perp (pointf p)
709 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
710 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
711 UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); // r.x = -p.y;
712 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
713 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
714 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
715
716 throw new UnsupportedOperationException();
717 }
718
719
720
721
722 //3 6dtlpzv4mvgzb9o0b252yweuv
723 // static inline pointf scale (double c, pointf p)
724 public static Object scale(Object... arg) {
725 UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); // static inline pointf scale (double c, pointf p)
726 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
727 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
728 UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); // r.x = c * p.x;
729 UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); // r.y = c * p.y;
730 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
731 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
732
733 throw new UnsupportedOperationException();
734 }
735
736
737 //1 exy2l03ceq9zw4vf01bbd4d3o
738 // typedef unsigned int packval_t
739
740
741
742
743 //3 cmr94z4p2bdeiply1d4wrqwes
744 // static void dot_init_subg(graph_t * g, graph_t* droot)
745 public static void dot_init_subg(ST_Agraph_s g, ST_Agraph_s droot) {
746 ENTERING("cmr94z4p2bdeiply1d4wrqwes","dot_init_subg");
747 try {
748 ST_Agraph_s subg;
749 if (NEQ(g, agroot(g)))
750 agbindrec(g, new CString("Agraphinfo_t"), sizeof(ST_Agraphinfo_t.class), (N(0)));
751 if (EQ(g, droot))
752 GD_dotroot(agroot(g), droot);
753 for (subg = agfstsubg(g); subg!=null; subg = agnxtsubg(subg)) {
754 dot_init_subg(subg, droot);
755 }
756 } finally {
757 LEAVING("cmr94z4p2bdeiply1d4wrqwes","dot_init_subg");
758 }
759 }
760
761
762
763
764 //3 3hk92jbrfjmn6no3svn9jvje9
765 // static void dot_init_node(node_t * n)
766 public static void dot_init_node(ST_Agnode_s n) {
767 ENTERING("3hk92jbrfjmn6no3svn9jvje9","dot_init_node");
768 try {
769 agbindrec(n, new CString("Agnodeinfo_t"), sizeof(ST_Agnodeinfo_t.class), (N(0))); //graph custom data
770 common_init_node(n);
771 gv_nodesize(n, GD_flip(agraphof(n)));
772 alloc_elist(4, ND_in(n));
773 alloc_elist(4, ND_out(n));
774 alloc_elist(2, ND_flat_in(n));
775 alloc_elist(2, ND_flat_out(n));
776 alloc_elist(2, ND_other(n));
777 ND_UF_size(n, 1);
778 } finally {
779 LEAVING("3hk92jbrfjmn6no3svn9jvje9","dot_init_node");
780 }
781 }
782
783
784
785
786 //3 zbvhnhd78bppq8wb872847bj
787 // static void dot_init_edge(edge_t * e)
788 public static void dot_init_edge(ST_Agedge_s e) {
789 ENTERING("zbvhnhd78bppq8wb872847bj","dot_init_edge");
790 try {
791 CString tailgroup, headgroup;
792 agbindrec(e, new CString("Agedgeinfo_t"), sizeof(ST_Agedgeinfo_t.class), (N(0))); //graph custom data
793 common_init_edge(e);
794 ED_weight(e, late_int(e, Z.z().E_weight, 1, 0));
795 tailgroup = late_string(agtail(e), Z.z().N_group, new CString(""));
796 headgroup = late_string(aghead(e), Z.z().N_group, new CString(""));
797 ED_count(e, 1);
798 ED_xpenalty(e, 1);
799 if (tailgroup.charAt(0)!='\0' && (tailgroup.isSame(headgroup))) {
800 UNSUPPORTED("atjraranegsdjegclykesn5gx"); // (((Agedgeinfo_t*)(((Agobj_t*)(e))->data))->xpenalty) = 1000;
801 UNSUPPORTED("5y0yunmvmngg67c9exlbn6jbk"); // (((Agedgeinfo_t*)(((Agobj_t*)(e))->data))->weight) *= 100;
802 }
803 if (nonconstraint_edge(e)) {
804 UNSUPPORTED("54niz21n2omf1i9v67brdid9w"); // (((Agedgeinfo_t*)(((Agobj_t*)(e))->data))->xpenalty) = 0;
805 UNSUPPORTED("2v5u5jdguhhn7vjihniotrml0"); // (((Agedgeinfo_t*)(((Agobj_t*)(e))->data))->weight) = 0;
806 }
807 ED_showboxes(e, late_int(e, Z.z().E_showboxes, 0, 0));
808 ED_minlen(e, late_int(e, Z.z().E_minlen, 1, 0));
809 } finally {
810 LEAVING("zbvhnhd78bppq8wb872847bj","dot_init_edge");
811 }
812 }
813
814
815
816
817 //3 2ylyhz7macit0ts1hap2tg3wy
818 // void dot_init_node_edge(graph_t * g)
819 public static void dot_init_node_edge(ST_Agraph_s g) {
820 ENTERING("2ylyhz7macit0ts1hap2tg3wy","dot_init_node_edge");
821 try {
822 ST_Agnode_s n;
823 ST_Agedge_s e;
824 for (n = agfstnode(g); n!=null; n = agnxtnode(g, n))
825 dot_init_node(n);
826 for (n = agfstnode(g); n!=null; n = agnxtnode(g, n)) {
827 for (e = agfstout(g, n); e!=null; e = agnxtout(g, e))
828 dot_init_edge(e);
829 }
830 } finally {
831 LEAVING("2ylyhz7macit0ts1hap2tg3wy","dot_init_node_edge");
832 }
833 }
834
835
836
837
838 //3 5z1h7gr0tgapjvuc2z9st9xjr
839 // static void dot_cleanup_node(node_t * n)
840 public static Object dot_cleanup_node(Object... arg) {
841 UNSUPPORTED("59dl3yc4jbcy2pb7j1njhlybi"); // static void
842 UNSUPPORTED("3wd33alc21mdt92sw3x9gl65j"); // dot_cleanup_node(node_t * n)
843 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
844 UNSUPPORTED("bft238x0kn16j4rew2s49lf8p"); // free_list(ND_in(n));
845 UNSUPPORTED("9k0f5njfz83ho3jgj8a6l97ia"); // free_list(ND_out(n));
846 UNSUPPORTED("9hf5u4ow9x2bxsh5roh3klohe"); // free_list(ND_flat_out(n));
847 UNSUPPORTED("d5cejyb0j1nhixps76lgii0fr"); // free_list(ND_flat_in(n));
848 UNSUPPORTED("er7qgmylfnw39xn97jixe3cqp"); // free_list(ND_other(n));
849 UNSUPPORTED("dv63sk5dujcwfkf99o6ponzqm"); // free_label(ND_label(n));
850 UNSUPPORTED("5or6zu6ycx4zage9ggy1o9it4"); // free_label(ND_xlabel(n));
851 UNSUPPORTED("4wkmsp7365vb7u5fqtm2buotu"); // if (ND_shape(n))
852 UNSUPPORTED("2yujce4phniaiwg4fq8up6xu7"); // ND_shape(n)->fns->freefn(n);
853 UNSUPPORTED("4zk1aro1ispxkab9ee4dd0tf"); // agdelrec(n, "Agnodeinfo_t");
854 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
855
856 throw new UnsupportedOperationException();
857 }
858
859
860
861
862 //3 5x42drpgjuyzb9oapi7osqxb6
863 // static void free_virtual_edge_list(node_t * n)
864 public static Object free_virtual_edge_list(Object... arg) {
865 UNSUPPORTED("2kwoaiz0pcpatrbztzebypz24"); // static void free_virtual_edge_list(node_t * n)
866 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
867 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
868 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
869 UNSUPPORTED("4johvk6fhfn8nimnwv1bayucm"); // for (i = ND_in(n).size - 1; i >= 0; i--) {
870 UNSUPPORTED("dkwp8r3x5yxwt373copif99qc"); // e = ND_in(n).list[i];
871 UNSUPPORTED("d0cytt2j3orasq0977h5sdypp"); // delete_fast_edge(e);
872 UNSUPPORTED("3ersod3eshpdnzwy1yb73olpy"); // free(e->base.data);
873 UNSUPPORTED("7eb6ytlppce1o1ihl2yf1mb6w"); // free(e);
874 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
875 UNSUPPORTED("dyyfpe9giifeythxw1ecgc9gw"); // for (i = ND_out(n).size - 1; i >= 0; i--) {
876 UNSUPPORTED("d0wu190s7vunqmaadd9r01j7m"); // e = ND_out(n).list[i];
877 UNSUPPORTED("d0cytt2j3orasq0977h5sdypp"); // delete_fast_edge(e);
878 UNSUPPORTED("3ersod3eshpdnzwy1yb73olpy"); // free(e->base.data);
879 UNSUPPORTED("7eb6ytlppce1o1ihl2yf1mb6w"); // free(e);
880 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
881 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
882
883 throw new UnsupportedOperationException();
884 }
885
886
887
888
889 //3 bzy6cpyjjzfeesjlq49c5sfmo
890 // static void free_virtual_node_list(node_t * vn)
891 public static Object free_virtual_node_list(Object... arg) {
892 UNSUPPORTED("b8mii2q777xhhq7ugpswc15so"); // static void free_virtual_node_list(node_t * vn)
893 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
894 UNSUPPORTED("3lk7715piw6ktz28izcuw3l10"); // node_t *next_vn;
895 UNSUPPORTED("cs50uo5tdqm5ri532weezud0q"); // while (vn) {
896 UNSUPPORTED("1zc0twfsq0pvs72obqpqn3jt7"); // next_vn = ND_next(vn);
897 UNSUPPORTED("6v1txca0lc0m7vffh6cxe7s0v"); // free_virtual_edge_list(vn);
898 UNSUPPORTED("ar8qtrvshtnclyd1lwsud1fe1"); // if (ND_node_type(vn) == 1) {
899 UNSUPPORTED("52z735rh4jv9he0idjly61jel"); // free_list(ND_out(vn));
900 UNSUPPORTED("2cx91nqjcw6sdd1j219nb29ty"); // free_list(ND_in(vn));
901 UNSUPPORTED("f2pq0qi224q8wspagt6qwoxdp"); // free(vn->base.data);
902 UNSUPPORTED("3lo6egckclz8tk579663nqark"); // free(vn);
903 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
904 UNSUPPORTED("1jra8cgf1nhojwmj7gyucvoni"); // vn = next_vn;
905 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
906 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
907
908 throw new UnsupportedOperationException();
909 }
910
911
912
913
914 //3 colq6urkwrm9hh0zggl873dla
915 // static void dot_cleanup_graph(graph_t * g)
916 public static Object dot_cleanup_graph(Object... arg) {
917 UNSUPPORTED("59dl3yc4jbcy2pb7j1njhlybi"); // static void
918 UNSUPPORTED("84r7i6e9lays55x1yan1d0nlp"); // dot_cleanup_graph(graph_t * g)
919 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
920 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
921 UNSUPPORTED("8uujemixuhlf040icq3zsh7j8"); // graph_t *subg;
922 UNSUPPORTED("92vjk6rjnnnji7bcczz51lwfx"); // for (subg = agfstsubg(g); subg; subg = agnxtsubg(subg)) {
923 UNSUPPORTED("ykczo4avgse9arffpd1plmme"); // dot_cleanup_graph(subg);
924 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
925 UNSUPPORTED("12nbb17pw6fg2wwg5c7i800xv"); // if (GD_clust(g)) free (GD_clust(g));
926 UNSUPPORTED("cw69q4tfzxmrd72fi1vz2be1g"); // if (GD_rankleader(g)) free (GD_rankleader(g));
927 UNSUPPORTED("cnrd9322z9c4eqvr450ughbzh"); // free_list(GD_comp(g));
928 UNSUPPORTED("djox731ykith2qz2trtp7zgzf"); // if (GD_rank(g)) {
929 UNSUPPORTED("1vkvarx8mfy1iq12oyq5rtzpa"); // for (i = GD_minrank(g); i <= GD_maxrank(g); i++)
930 UNSUPPORTED("32lqmila03wshgx9x3686apbo"); // free(GD_rank(g)[i].av);
931 UNSUPPORTED("dnv6plmiyr74l3u1aqc16qmiz"); // if (GD_minrank(g) == -1)
932 UNSUPPORTED("b0hpil9jwq1zov1klvpd6vbnf"); // free(GD_rank(g)-1);
933 UNSUPPORTED("9352ql3e58qs4fzapgjfrms2s"); // else
934 UNSUPPORTED("eqir7eaetsm1anqchd3kb8q8t"); // free(GD_rank(g));
935 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
936 UNSUPPORTED("58o9b8zmlqcq96deeorllidce"); // if (g != agroot(g))
937 UNSUPPORTED("f5hqyohefj8o12bvcv17xpswc"); // agdelrec(g,"Agraphinfo_t");
938 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
939
940 throw new UnsupportedOperationException();
941 }
942
943
944
945
946 //3 2uv40x0vx6nmbvld01reukyly
947 // void dot_cleanup(graph_t * g)
948 public static Object dot_cleanup(Object... arg) {
949 UNSUPPORTED("a2tqiktifcbodk46i6x0ux9j1"); // void dot_cleanup(graph_t * g)
950 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
951 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
952 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
953 UNSUPPORTED("v8twirr9ihzxnb06d6x6nxrd"); // free_virtual_node_list(GD_nlist(g));
954 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
955 UNSUPPORTED("e20lm4qtccvgsfq5fzjv6sjyl"); // for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
956 UNSUPPORTED("5otoqd7o1zz8ni50urywr7yjy"); // gv_cleanup_edge(e);
957 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
958 UNSUPPORTED("yis08tp9td0x00hxoxqopt6b"); // dot_cleanup_node(n);
959 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
960 UNSUPPORTED("2w88m44roqcqg67kuhg5k4agu"); // dot_cleanup_graph(g);
961 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
962
963 throw new UnsupportedOperationException();
964 }
965
966
967
968
969 //3 4jt1p8taqjuk4atqpwbxkru3g
970 // static void remove_from_rank (Agraph_t * g, Agnode_t* n)
971 public static Object remove_from_rank(Object... arg) {
972 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
973 UNSUPPORTED("9axg5z61bd5rkf0cbubkto6eb"); // remove_from_rank (Agraph_t * g, Agnode_t* n)
974 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
975 UNSUPPORTED("5v9scbkty9fkcyo8yw7jmkokj"); // Agnode_t* v = NULL;
976 UNSUPPORTED("86gmm9qxyhkzst815hr54r1sp"); // int j, rk = ND_rank(n);
977 UNSUPPORTED("7bstlpzg93apc08cfgp386p7m"); // for (j = 0; j < GD_rank(g)[rk].n; j++) {
978 UNSUPPORTED("5oq2646mpw8p4gen80z8g8baz"); // v = GD_rank(g)[rk].v[j];
979 UNSUPPORTED("aby82dr89m0xbcj8mya7f9fvx"); // if (v == n) {
980 UNSUPPORTED("5494ozi7uqin7n7xlbkqrsahd"); // for (j++; j < GD_rank(g)[rk].n; j++) {
981 UNSUPPORTED("a4l7560unq1yw14pck0v0yo6x"); // GD_rank(g)[rk].v[j-1] = GD_rank(g)[rk].v[j];
982 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
983 UNSUPPORTED("8pdkxsqmvoce243jar5hwxl3u"); // GD_rank(g)[rk].n--;
984 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
985 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
986 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
987 UNSUPPORTED("cytanc5i1hmu0ag0vz4awfpi"); // assert (v == n); /* if found */
988 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
989
990 throw new UnsupportedOperationException();
991 }
992
993
994
995
996 //3 xgvyh3kinj6cbnknb5oo9qfr
997 // static void removeFill (Agraph_t * g)
998 public static Object removeFill(Object... arg) {
999 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
1000 UNSUPPORTED("8asq16rjvm285smlce6dul5nq"); // removeFill (Agraph_t * g)
1001 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1002 UNSUPPORTED("ci2zh69w6nhi0q816i1ixuy9k"); // Agnode_t* n;
1003 UNSUPPORTED("167at4ws3rrdv3znbvpsnb83o"); // Agnode_t* nxt;
1004 UNSUPPORTED("22j86kdb5hbziiedfsspj3ipn"); // Agraph_t* sg = agsubg (g, "_new_rank", 0);
1005 UNSUPPORTED("1pjx7ke9o4h5tgq0cs9jfui7j"); // if (!sg) return;
1006 UNSUPPORTED("5sms8ok354044bziyaq1kfv93"); // for (n = agfstnode(sg); n; n = nxt) {
1007 UNSUPPORTED("18crodqmo1f1apt7bwq0mv72m"); // nxt = agnxtnode(sg, n);
1008 UNSUPPORTED("227ays2g6u04e210i8wp3jntu"); // delete_fast_node (g, n);
1009 UNSUPPORTED("2tp9t78wzq032fbm3msk2gpfx"); // remove_from_rank (g, n);
1010 UNSUPPORTED("cyyixtb6lqfain86edffcd92b"); // dot_cleanup_node (n);
1011 UNSUPPORTED("3xjgsp211uvaug1aa3mvpdlnc"); // agdelnode(g, n);
1012 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1013 UNSUPPORTED("9ar3yxaq5s0lagg5bw59suv8u"); // agdelsubg (g, sg);
1014 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1015
1016 throw new UnsupportedOperationException();
1017 }
1018
1019
1020
1021
1022 //3 63o8ieaetc5apjocrd74fobt0
1023 // static void attach_phase_attrs (Agraph_t * g, int maxphase)
1024 public static Object attach_phase_attrs(Object... arg) {
1025 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
1026 UNSUPPORTED("adogsvx2s8kkwixbfl53zj175"); // attach_phase_attrs (Agraph_t * g, int maxphase)
1027 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1028 UNSUPPORTED("28snkvv05tay2b94o220j0rkx"); // Agsym_t* rk = agattr(g,AGNODE,"rank","");
1029 UNSUPPORTED("2mf6hpet62ccb0nfggxptz459"); // Agsym_t* order = agattr(g,AGNODE,"order","");
1030 UNSUPPORTED("ci2zh69w6nhi0q816i1ixuy9k"); // Agnode_t* n;
1031 UNSUPPORTED("cf8w5z35zxww7q6yjin9lc9op"); // char buf[BUFSIZ];
1032 UNSUPPORTED("7wq24g054kmx3aw25vk5ksj4"); // for (n = agfstnode(g); n; n = agnxtnode(g,n)) {
1033 UNSUPPORTED("16p5t5iyomfedg6du3xoszhzq"); // if (maxphase >= 1) {
1034 UNSUPPORTED("bwgz5xhm64nl5wtnj9vfs1rx7"); // sprintf(buf, "%d", ND_rank(n));
1035 UNSUPPORTED("42xwkqdgcponmubqyxg876oo6"); // agxset(n,rk,buf);
1036 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1037 UNSUPPORTED("93x84236b3xx5glpnx5xseeg0"); // if (maxphase >= 2) {
1038 UNSUPPORTED("dt1ra0nrgwwdbm8fmxvgcz16x"); // sprintf(buf, "%d", ND_order(n));
1039 UNSUPPORTED("5e6vrutroh3qimffd0rioyhnz"); // agxset(n,order,buf);
1040 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1041 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1042 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1043
1044 throw new UnsupportedOperationException();
1045 }
1046
1047
1048
1049
1050 //3 7t18nggek2s9vvb5opwqa8rwr
1051 // static void dotLayout(Agraph_t * g)
1052 public static void dotLayout(ST_Agraph_s g) {
1053 ENTERING("7t18nggek2s9vvb5opwqa8rwr","dotLayout");
1054 try {
1055 ST_aspect_t aspect = new ST_aspect_t();
1056 ST_aspect_t asp;
1057 int maxphase = late_int(g, (agattr(g,AGRAPH,new CString("phase"),null)), -1, 1);
1058 setEdgeType (g, (5 << 1));
1059 asp = setAspect (g, aspect);
1060 dot_init_subg(g,g);
1061 dot_init_node_edge(g);
1062 do {
1063 dot_rank(g, asp);
1064 if (maxphase == 1) {
1065 attach_phase_attrs (g, 1);
1066 return;
1067 }
1068 if (aspect.badGraph!=0) {
1069 UNSUPPORTED("1yu5j8tk43i6jlmu8wk9jks15"); // agerr(AGWARN, "dot does not support the aspect attribute for disconnected graphs or graphs with clusters\n");
1070 UNSUPPORTED("5uwp9z6jkv5uc30iyfszyg6dw"); // asp = NULL;
1071 UNSUPPORTED("28kbszyxsjoj03gb134ov4hag"); // aspect.nextIter = 0;
1072 }
1073 dot_mincross(g, (asp != null));
1074 if (maxphase == 2) {
1075 attach_phase_attrs (g, 2);
1076 return;
1077 }
1078 dot_position(g, asp);
1079 if (maxphase == 3) {
1080 attach_phase_attrs (g, 2); /* positions will be attached on output */
1081 return;
1082 }
1083 aspect.setInt("nPasses", aspect.nPasses -1);
1084 } while (aspect.nextIter!=0 && aspect.nPasses!=0);
1085 if ((GD_flags(g) & (1 << 4))!=0)
1086 removeFill (g);
1087 dot_sameports(g);
1088 dot_splines(g);
1089 if (mapbool(agget(g, new CString("compound"))))
1090 dot_compoundEdges(g);
1091 } finally {
1092 LEAVING("7t18nggek2s9vvb5opwqa8rwr","dotLayout");
1093 }
1094 }
1095
1096
1097
1098
1099 //3 j18uqz16uc5895o8w92sc8us
1100 // static void initSubg (Agraph_t* sg, Agraph_t* g)
1101 public static Object initSubg(Object... arg) {
1102 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
1103 UNSUPPORTED("dxv1kymai2xe3m4wblwapgffu"); // initSubg (Agraph_t* sg, Agraph_t* g)
1104 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1105 UNSUPPORTED("3oolj8gqkndhoy95ebyjmjt0w"); // agbindrec(sg, "Agraphinfo_t", sizeof(Agraphinfo_t), NOT(0));
1106 UNSUPPORTED("2um641xaifqq107czm0htblc3"); // GD_drawing(sg) = (layout_t*)zmalloc(sizeof(layout_t));
1107 UNSUPPORTED("bfocldqmll6ddnmq3h3ci6njt"); // GD_drawing(sg)->quantum = GD_drawing(g)->quantum;
1108 UNSUPPORTED("7cnwfvm4lswn7kvucss74krd3"); // GD_drawing(sg)->dpi = GD_drawing(g)->dpi;
1109 UNSUPPORTED("7kbbs52ycpyuytqi61m5vme4c"); // GD_gvc(sg) = GD_gvc (g);
1110 UNSUPPORTED("8flpf5avt4eg89sc16bgp9v13"); // GD_charset(sg) = GD_charset (g);
1111 UNSUPPORTED("d9o7bxs9hl0r5ma0lt9oejmqv"); // GD_rankdir2(sg) = GD_rankdir2 (g);
1112 UNSUPPORTED("74762qecxnstp743fwt31hk0p"); // GD_nodesep(sg) = GD_nodesep(g);
1113 UNSUPPORTED("b29jhl6zjh8f8jqfb6okoixby"); // GD_ranksep(sg) = GD_ranksep(g);
1114 UNSUPPORTED("bctcse1zj9vx2p0in9p4jhso3"); // GD_fontnames(sg) = GD_fontnames(g);
1115 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1116
1117 throw new UnsupportedOperationException();
1118 }
1119
1120
1121
1122
1123 //3 9pe0e6i01ks2zju1xjzgg39v1
1124 // static void attachPos (Agraph_t* g)
1125 public static Object attachPos(Object... arg) {
1126 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
1127 UNSUPPORTED("d606brtp0hf4k8bamafqhu08b"); // attachPos (Agraph_t* g)
1128 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1129 UNSUPPORTED("8fmu9hadea4uw8fwzoexoxab"); // node_t* np;
1130 UNSUPPORTED("5cl2cj5wj7w1zr7qjww0s4cdf"); // double* ps = (double*)zmalloc((2*agnnodes(g))*sizeof(double));
1131 UNSUPPORTED("73rfwkv8ws65l7qgnz7jw27gf"); // for (np = agfstnode(g); np; np = agnxtnode(g, np)) {
1132 UNSUPPORTED("7tbl6es7oks3vntqoetg24xa4"); // ND_pos(np) = ps;
1133 UNSUPPORTED("9qwq8ll4gb28hun94xos9i4ud"); // ps[0] = ((ND_coord(np).x)/(double)72);
1134 UNSUPPORTED("5z9ztec30pze3mzecneza61qq"); // ps[1] = ((ND_coord(np).y)/(double)72);
1135 UNSUPPORTED("aeuy5zibx9et1ncwcqwlr3s3m"); // ps += 2;
1136 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1137 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1138
1139 throw new UnsupportedOperationException();
1140 }
1141
1142
1143
1144
1145 //3 eufhyu2dccn1mleg8a43s9k2h
1146 // static void resetCoord (Agraph_t* g)
1147 public static Object resetCoord(Object... arg) {
1148 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
1149 UNSUPPORTED("caofcucw710wwaiwfz4650zsz"); // resetCoord (Agraph_t* g)
1150 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1151 UNSUPPORTED("7ds7ppzwt5kjihc3hp8q0ncyl"); // node_t* np = agfstnode(g);
1152 UNSUPPORTED("5s8nx20pwknmsow15z16muyab"); // double* sp = ND_pos(np);
1153 UNSUPPORTED("5u1fte9td0znzxeayi62ozq8a"); // double* ps = sp;
1154 UNSUPPORTED("73rfwkv8ws65l7qgnz7jw27gf"); // for (np = agfstnode(g); np; np = agnxtnode(g, np)) {
1155 UNSUPPORTED("8p3hwwbq7seyn0wpf7llgw1xd"); // ND_pos(np) = 0;
1156 UNSUPPORTED("a33fx4q39yal0dnv915x71zia"); // ND_coord(np).x = ((ps[0])*(double)72);
1157 UNSUPPORTED("avms8890ml5c9jclp66fpto3x"); // ND_coord(np).y = ((ps[1])*(double)72);
1158 UNSUPPORTED("aeuy5zibx9et1ncwcqwlr3s3m"); // ps += 2;
1159 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1160 UNSUPPORTED("btsriptlygrzlk6ojhvss234j"); // free (sp);
1161 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1162
1163 throw new UnsupportedOperationException();
1164 }
1165
1166
1167
1168
1169 //3 nedairhdof6qkmjjoh4h68zy
1170 // static void doDot (Agraph_t* g)
1171 public static void doDot(ST_Agraph_s g) {
1172 ENTERING("nedairhdof6qkmjjoh4h68zy","doDot");
1173 try {
1174 ST_Agraph_s ccs[];
1175 ST_Agraph_s sg;
1176 int ncc;
1177 int i;
1178 final ST_pack_info pinfo = new ST_pack_info();
1179 int Pack = getPack(g, -1, 8);
1180 int mode = getPackModeInfo (g, enumAsInt(pack_mode.class, "l_undef"), pinfo);
1181 getPackInfo(g, enumAsInt(pack_mode.class, "l_node"), 8, pinfo);
1182 if ((mode == enumAsInt(pack_mode.class, "l_undef")) && (Pack < 0)) {
1183 /* No pack information; use old dot with components
1184 * handled during layout
1185 */
1186 dotLayout(g);
1187 } else {
1188 UNSUPPORTED("952usp51fee2pbidl2frwpq2x"); // /* fill in default values */
1189 UNSUPPORTED("7d8flcn5zht92nop46f168hf9"); // if (mode == l_undef)
1190 UNSUPPORTED("bf04f2a6do2dovxgq57ta3qz5"); // pinfo.mode = l_node;
1191 UNSUPPORTED("7l7lph3yd7o3jelejupsiytnc"); // else if (Pack < 0)
1192 UNSUPPORTED("7odp6lwv29g4nwpfvqt8hkmve"); // Pack = 8;
1193 UNSUPPORTED("au4kpvl0egq3dt8hlmqnad61o"); // pinfo.margin = Pack;
1194 UNSUPPORTED("6o6lvrnsp1zkqdkduwrfetrrm"); // pinfo.fixed = 0;
1195 UNSUPPORTED("7ijhbsssflu2oty986iwhi5u7"); // /* components using clusters */
1196 UNSUPPORTED("axesx20t6oyprzdzjz5cwneq4"); // ccs = cccomps(g, &ncc, 0);
1197 UNSUPPORTED("edukq9g8egufczs6ja3h99k6a"); // if (ncc == 1) {
1198 UNSUPPORTED("aj3wrqm1ouyaocsn56geghko0"); // dotLayout(g);
1199 UNSUPPORTED("2pkescmk4qojc8cqt3wzo8jkp"); // } else if ((((Agraphinfo_t*)(((Agobj_t*)(g))->data))->drawing)->ratio_kind == R_NONE) {
1200 UNSUPPORTED("295yqzsqueggcx71mcuv1zy7t"); // pinfo.doSplines = 1;
1201 UNSUPPORTED("3rfcnwowz3h58n92j7igzwap0"); // for (i = 0; i < ncc; i++) {
1202 UNSUPPORTED("6n1wgj9rnpi5u0c1f6mo7hvdr"); // sg = ccs[i];
1203 UNSUPPORTED("9f5l1z5fur3bn6wlzykztsrr5"); // initSubg (sg, g);
1204 UNSUPPORTED("boery4d5nv4jssiy0y3mf2yf7"); // dotLayout (sg);
1205 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1206 UNSUPPORTED("ahr97rgrh96az7iroebb6p14f"); // attachPos (g);
1207 UNSUPPORTED("1eeqkm1855z53jwep9ukxptxa"); // packSubgraphs(ncc, ccs, g, &pinfo);
1208 UNSUPPORTED("5jevnxwr3ejh3o6i1n3b15oyz"); // resetCoord (g);
1209 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
1210 UNSUPPORTED("3dnz4esjw60s265perisqld8n"); // /* Not sure what semantics should be for non-trivial ratio
1211 UNSUPPORTED("9752lfn24j9vhkz6y8fvyvpop"); // * attribute with multiple components.
1212 UNSUPPORTED("cxv608avcmjij1ltc81ac9zp0"); // * One possibility is to layout nodes, pack, then apply the ratio
1213 UNSUPPORTED("71ykqx29qwldoh9wf4e85xh7u"); // * adjustment. We would then have to re-adjust all positions.
1214 UNSUPPORTED("29edlge3wqyp1gs0vymtr5700"); // */
1215 UNSUPPORTED("aj3wrqm1ouyaocsn56geghko0"); // dotLayout(g);
1216 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1217 UNSUPPORTED("cjjlbx1oxw3twss3vlotij507"); // for (i = 0; i < ncc; i++) {
1218 UNSUPPORTED("dc0uduk2687c8n6qn7y3y0aph"); // free ((((Agraphinfo_t*)(((Agobj_t*)(ccs[i]))->data))->drawing));
1219 UNSUPPORTED("6lefivq8plsiwa47ucvy1ze1a"); // agdelete(g, ccs[i]);
1220 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1221 UNSUPPORTED("5eru5cerydhchm7ojmgdlkv9y"); // free(ccs);
1222 }
1223 } finally {
1224 LEAVING("nedairhdof6qkmjjoh4h68zy","doDot");
1225 }
1226 }
1227
1228
1229
1230
1231 //3 euvc3uoksq3e24augkwebfkcv
1232 // void dot_layout(Agraph_t * g)
1233 public static void dot_layout(ST_Agraph_s g) {
1234 ENTERING("euvc3uoksq3e24augkwebfkcv","dot_layout");
1235 try {
1236 if (agnnodes(g)!=0) doDot (g);
1237 dotneato_postprocess(g);
1238 } finally {
1239 LEAVING("euvc3uoksq3e24augkwebfkcv","dot_layout");
1240 }
1241 }
1242
1243
1244
1245
1246 //3 ca52dadcp7m8x0bqhaw4tvtaw
1247 // Agraph_t * dot_root (void* p)
1248 public static ST_Agraph_s dot_root(__ptr__ p) {
1249 ENTERING("ca52dadcp7m8x0bqhaw4tvtaw","dot_root");
1250 try {
1251 return GD_dotroot(agroot(p));
1252 } finally {
1253 LEAVING("ca52dadcp7m8x0bqhaw4tvtaw","dot_root");
1254 }
1255 }
1256
1257
1258 }