Debian Codegraph @

src/gen/lib/common/utils__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.common;
47 import static gen.lib.cgraph.attr__c.agget;
48 import static gen.lib.cgraph.attr__c.agxget;
49 import static gen.lib.cgraph.edge__c.aghead;
50 import static gen.lib.cgraph.edge__c.agtail;
51 import static gen.lib.cgraph.obj__c.agraphof;
52 import static gen.lib.cgraph.refstr__c.aghtmlstr;
53 import static gen.lib.common.labels__c.make_label;
54 import static gen.lib.common.shapes__c.bind_shape;
55 import static gen.lib.common.shapes__c.shapeOf;
56 import static smetana.core.JUtils.EQ;
57 import static smetana.core.JUtils.LOG2;
58 import static smetana.core.JUtils.NEQ;
59 import static smetana.core.JUtils.atoi;
60 import static smetana.core.JUtils.enumAsInt;
61 import static smetana.core.JUtils.isdigit;
62 import static smetana.core.JUtils.strchr;
63 import static smetana.core.JUtils.strcmp;
64 import static smetana.core.JUtils.strtod;
65 import static smetana.core.JUtils.strtol;
66 import static smetana.core.JUtils.tolower;
67 import static smetana.core.JUtilsDebug.ENTERING;
68 import static smetana.core.JUtilsDebug.LEAVING;
69 import static smetana.core.Macro.DIST2;
70 import static smetana.core.Macro.ED_head_label;
71 import static smetana.core.Macro.ED_head_port;
72 import static smetana.core.Macro.ED_label;
73 import static smetana.core.Macro.ED_label_ontop;
74 import static smetana.core.Macro.ED_tail_label;
75 import static smetana.core.Macro.ED_tail_port;
76 import static smetana.core.Macro.GD_bb;
77 import static smetana.core.Macro.GD_flags;
78 import static smetana.core.Macro.GD_flip;
79 import static smetana.core.Macro.GD_has_labels;
80 import static smetana.core.Macro.N;
81 import static smetana.core.Macro.ND_UF_parent;
82 import static smetana.core.Macro.ND_UF_size;
83 import static smetana.core.Macro.ND_height;
84 import static smetana.core.Macro.ND_ht;
85 import static smetana.core.Macro.ND_id;
86 import static smetana.core.Macro.ND_label;
87 import static smetana.core.Macro.ND_lw;
88 import static smetana.core.Macro.ND_ranktype;
89 import static smetana.core.Macro.ND_rw;
90 import static smetana.core.Macro.ND_shape;
91 import static smetana.core.Macro.ND_showboxes;
92 import static smetana.core.Macro.ND_width;
93 import static smetana.core.Macro.UNSUPPORTED;
94 import static smetana.core.Macro.fabs;
95 import h.ST_Agedge_s;
96 import h.ST_Agnode_s;
97 import h.ST_Agraph_s;
98 import h.ST_Agsym_s;
99 import h.ST_bezier;
100 import h.ST_boxf;
101 import h.ST_fontinfo;
102 import h.ST_nodequeue;
103 import h.ST_pointf;
104 import h.ST_port;
105 import h.ST_splines;
106 import h.ST_textlabel_t;
107 import h.shape_kind;
108 import smetana.core.CFunction;
109 import smetana.core.CString;
110 import smetana.core.Memory;
111 import smetana.core.Z;
112 import smetana.core.__ptr__;
113
114 public class utils__c {
115 //1 2digov3edok6d5srhgtlmrycs
116 // extern lt_symlist_t lt_preloaded_symbols[]
117
118
119 //1 baedz5i9est5csw3epz3cv7z
120 // typedef Ppoly_t Ppolyline_t
121
122
123 //1 9k44uhd5foylaeoekf3llonjq
124 // extern Dtmethod_t* Dtset
125
126
127 //1 1ahfywsmzcpcig2oxm7pt9ihj
128 // extern Dtmethod_t* Dtbag
129
130
131 //1 anhghfj3k7dmkudy2n7rvt31v
132 // extern Dtmethod_t* Dtoset
133
134
135 //1 5l6oj1ux946zjwvir94ykejbc
136 // extern Dtmethod_t* Dtobag
137
138
139 //1 2wtf222ak6cui8cfjnw6w377z
140 // extern Dtmethod_t* Dtlist
141
142
143 //1 d1s1s6ibtcsmst88e3057u9r7
144 // extern Dtmethod_t* Dtstack
145
146
147 //1 axa7mflo824p6fspjn1rdk0mt
148 // extern Dtmethod_t* Dtqueue
149
150
151 //1 ega812utobm4xx9oa9w9ayij6
152 // extern Dtmethod_t* Dtdeque
153
154
155 //1 cyfr996ur43045jv1tjbelzmj
156 // extern Dtmethod_t* Dtorder
157
158
159 //1 wlofoiftbjgrrabzb2brkycg
160 // extern Dtmethod_t* Dttree
161
162
163 //1 12bds94t7voj7ulwpcvgf6agr
164 // extern Dtmethod_t* Dthash
165
166
167 //1 9lqknzty480cy7zsubmabkk8h
168 // extern Dtmethod_t _Dttree
169
170
171 //1 bvn6zkbcp8vjdhkccqo1xrkrb
172 // extern Dtmethod_t _Dthash
173
174
175 //1 9lidhtd6nsmmv3e7vjv9e10gw
176 // extern Dtmethod_t _Dtlist
177
178
179 //1 34ujfamjxo7xn89u90oh2k6f8
180 // extern Dtmethod_t _Dtqueue
181
182
183 //1 3jy4aceckzkdv950h89p4wjc8
184 // extern Dtmethod_t _Dtstack
185
186
187 //1 8dfqgf3u1v830qzcjqh9o8ha7
188 // extern Agmemdisc_t AgMemDisc
189
190
191 //1 18k2oh2t6llfsdc5x0wlcnby8
192 // extern Agiddisc_t AgIdDisc
193
194
195 //1 a4r7hi80gdxtsv4hdoqpyiivn
196 // extern Agiodisc_t AgIoDisc
197
198
199 //1 bnzt5syjb7mgeru19114vd6xx
200 // extern Agdisc_t AgDefaultDisc
201
202
203 //1 35y2gbegsdjilegaribes00mg
204 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
205
206
207 //1 c2rygslq6bcuka3awmvy2b3ow
208 // typedef Agsubnode_t Agnoderef_t
209
210
211 //1 xam6yv0dcsx57dtg44igpbzn
212 // typedef Dtlink_t Agedgeref_t
213
214
215 //1 nye6dsi1twkbddwo9iffca1j
216 // extern char *Version
217
218
219 //1 65mu6k7h7lb7bx14jpiw7iyxr
220 // extern char **Files
221
222
223 //1 2rpjdzsdyrvomf00zcs3u3dyn
224 // extern const char **Lib
225
226
227 //1 6d2f111lntd2rsdt4gswh5909
228 // extern char *CmdName
229
230
231 //1 a0ltq04fpeg83soa05a2fkwb2
232 // extern char *specificFlags
233
234
235 //1 1uv30qeqq2jh6uznlr4dziv0y
236 // extern char *specificItems
237
238
239 //1 7i4hkvngxe3x7lmg5h6b3t9g3
240 // extern char *Gvfilepath
241
242
243 //1 9jp96pa73kseya3w6sulxzok6
244 // extern char *Gvimagepath
245
246
247 //1 40ylumfu7mrvawwf4v2asvtwk
248 // extern unsigned char Verbose
249
250
251 //1 93st8awjy1z0h07n28qycbaka
252 // extern unsigned char Reduce
253
254
255 //1 f2vs67ts992erf8onwfglurzp
256 // extern int MemTest
257
258
259 //1 c6f8whijgjwwagjigmxlwz3gb
260 // extern char *HTTPServerEnVar
261
262
263 //1 cp4hzj7p87m7arw776d3bt7aj
264 // extern char *Output_file_name
265
266
267 //1 a3rqagofsgraie6mx0krzkgsy
268 // extern int graphviz_errors
269
270
271 //1 5up05203r4kxvjn1m4njcgq5x
272 // extern int Nop
273
274
275 //1 umig46cco431x14b3kosde2t
276 // extern double PSinputscale
277
278
279 //1 52bj6v8fqz39khasobljfukk9
280 // extern int Syntax_errors
281
282
283 //1 9ekf2ina8fsjj6y6i0an6somj
284 // extern int Show_cnt
285
286
287 //1 38di5qi3nkxkq65onyvconk3r
288 // extern char** Show_boxes
289
290
291 //1 6ri6iu712m8mpc7t2670etpcw
292 // extern int CL_type
293
294
295 //1 bomxiw3gy0cgd1ydqtek7fpxr
296 // extern unsigned char Concentrate
297
298
299 //1 cqy3gqgcq8empdrbnrhn84058
300 // extern double Epsilon
301
302
303 //1 64slegfoouqeg0rmbyjrm8wgr
304 // extern int MaxIter
305
306
307 //1 88wdinpnmfs4mab4aw62yb0bg
308 // extern int Ndim
309
310
311 //1 8bbad3ogcelqnnvo5br5s05gq
312 // extern int State
313
314
315 //1 17rnd8q45zclfn68qqst2vxxn
316 // extern int EdgeLabelsDone
317
318
319 //1 ymx1z4s8cznjifl2d9f9m8jr
320 // extern double Initial_dist
321
322
323 //1 a33bgl0c3uqb3trx419qulj1x
324 // extern double Damping
325
326
327 //1 d9lvrpjg1r0ojv40pod1xwk8n
328 // extern int Y_invert
329
330
331 //1 71efkfs77q5tq9ex6y0f4kanh
332 // extern int GvExitOnUsage
333
334
335 //1 4xy2dkdkv0acs2ue9eca8hh2e
336 // 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
337
338
339 //1 9js5gxgzr74eakgtfhnbws3t9
340 // 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
341
342
343 //1 anqllp9sj7wo45w6bm11j8trn
344 // 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
345
346
347 //1 bh0z9puipqw7gymjd5h5b8s6i
348 // extern struct fdpParms_s* fdp_parms
349
350
351
352
353 //3 ciez0pfggxdljedzsbklq49f0
354 // static inline point pointof(int x, int y)
355 public static Object pointof(Object... arg) {
356 UNSUPPORTED("8e4tj258yvfq5uhsdpk37n5eq"); // static inline point pointof(int x, int y)
357 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
358 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
359 UNSUPPORTED("12jimkrzqxavaie0cpapbx18c"); // r.x = x;
360 UNSUPPORTED("7ivmviysahgsc5nn9gtp7q2if"); // r.y = y;
361 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
362 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
363
364 throw new UnsupportedOperationException();
365 }
366
367
368
369
370 //3 c1s4k85p1cdfn176o3uryeros
371 // static inline pointf pointfof(double x, double y)
372 public static ST_pointf pointfof(double x, double y) {
373 // WARNING!! STRUCT
374 return pointfof_w_(x, y).copy();
375 }
376 private static ST_pointf pointfof_w_(double x, double y) {
377 ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof");
378 try {
379 final ST_pointf r = new ST_pointf();
380 r.setDouble("x", x);
381 r.setDouble("y", y);
382 return r;
383 } finally {
384 LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof");
385 }
386 }
387
388
389
390
391 //3 7cufnfitrh935ew093mw0i4b7
392 // static inline box boxof(int llx, int lly, int urx, int ury)
393 public static Object boxof(Object... arg) {
394 UNSUPPORTED("3lzesfdd337h31jrlib1czocm"); // static inline box boxof(int llx, int lly, int urx, int ury)
395 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
396 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
397 UNSUPPORTED("cylhjlutoc0sc0uy7g98m9fb8"); // b.LL.x = llx, b.LL.y = lly;
398 UNSUPPORTED("242of6revxzx8hpe7yerrchz6"); // b.UR.x = urx, b.UR.y = ury;
399 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
400 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
401
402 throw new UnsupportedOperationException();
403 }
404
405
406
407
408
409
410
411
412 //3 1n5xl70wxuabyf97mclvilsm6
413 // static inline point add_point(point p, point q)
414 public static Object add_point(Object... arg) {
415 UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); // static inline point add_point(point p, point q)
416 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
417 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
418 UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); // r.x = p.x + q.x;
419 UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); // r.y = p.y + q.y;
420 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
421 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
422
423 throw new UnsupportedOperationException();
424 }
425
426
427
428
429 //3 arrsbik9b5tnfcbzsm8gr2chx
430 // static inline pointf add_pointf(pointf p, pointf q)
431 public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) {
432 // WARNING!! STRUCT
433 return add_pointf_w_(p.copy(), q.copy()).copy();
434 }
435 private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) {
436 ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
437 try {
438 final ST_pointf r = new ST_pointf();
439 r.setDouble("x", p.x + q.x);
440 r.setDouble("y", p.y + q.y);
441 return r;
442 } finally {
443 LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
444 }
445 }
446
447
448
449
450 //3 ai2dprak5y6obdsflguh5qbd7
451 // static inline point sub_point(point p, point q)
452 public static Object sub_point(Object... arg) {
453 UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); // static inline point sub_point(point p, point q)
454 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
455 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
456 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
457 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
458 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
459 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
460
461 throw new UnsupportedOperationException();
462 }
463
464
465
466
467 //3 16f6pyogcv3j7n2p0n8giqqgh
468 // static inline pointf sub_pointf(pointf p, pointf q)
469 public static Object sub_pointf(Object... arg) {
470 UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); // static inline pointf sub_pointf(pointf p, pointf q)
471 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
472 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
473 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
474 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
475 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
476 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
477
478 throw new UnsupportedOperationException();
479 }
480
481
482
483
484 //3 9k50jgrhc4f9824vf8ony74rw
485 // static inline point mid_point(point p, point q)
486 public static Object mid_point(Object... arg) {
487 UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); // static inline point mid_point(point p, point q)
488 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
489 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
490 UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); // r.x = (p.x + q.x) / 2;
491 UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); // r.y = (p.y + q.y) / 2;
492 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
493 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
494
495 throw new UnsupportedOperationException();
496 }
497
498
499
500
501 //3 59c4f7im0ftyowhnzzq2v9o1x
502 // static inline pointf mid_pointf(pointf p, pointf q)
503 public static Object mid_pointf(Object... arg) {
504 UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); // static inline pointf mid_pointf(pointf p, pointf q)
505 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
506 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
507 UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); // r.x = (p.x + q.x) / 2.;
508 UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); // r.y = (p.y + q.y) / 2.;
509 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
510 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
511
512 throw new UnsupportedOperationException();
513 }
514
515
516
517
518 //3 5r18p38gisvcx3zsvbb9saixx
519 // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
520 public static Object interpolate_pointf(Object... arg) {
521 UNSUPPORTED("894yimn33kmtm454llwdaotu8"); // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
522 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
523 UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); // pointf r;
524 UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); // r.x = p.x + t * (q.x - p.x);
525 UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); // r.y = p.y + t * (q.y - p.y);
526 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
527 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
528
529 throw new UnsupportedOperationException();
530 }
531
532
533
534
535 //3 bxzrv2ghq04qk5cbyy68s4mol
536 // static inline point exch_xy(point p)
537 public static Object exch_xy(Object... arg) {
538 UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); // static inline point exch_xy(point p)
539 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
540 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
541 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
542 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
543 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
544 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
545
546 throw new UnsupportedOperationException();
547 }
548
549
550
551
552 //3 9lt3e03tac6h6sydljrcws8fd
553 // static inline pointf exch_xyf(pointf p)
554 public static Object exch_xyf(Object... arg) {
555 UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); // static inline pointf exch_xyf(pointf p)
556 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
557 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
558 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
559 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
560 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
561 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
562
563 throw new UnsupportedOperationException();
564 }
565
566
567
568
569 //3 8l9qhieokthntzdorlu5zn29b
570 // static inline box box_bb(box b0, box b1)
571 public static Object box_bb(Object... arg) {
572 UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); // static inline box box_bb(box b0, box b1)
573 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
574 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
575 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
576 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
577 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
578 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(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 clws9h3bbjm0lw3hexf8nl4c4
589 // static inline boxf boxf_bb(boxf b0, boxf b1)
590 public static Object boxf_bb(Object... arg) {
591 UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); // static inline boxf boxf_bb(boxf b0, boxf b1)
592 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
593 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
594 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
595 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
596 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
597 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
598 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
599 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
600
601 throw new UnsupportedOperationException();
602 }
603
604
605
606
607 //3 bit6ycxo1iqd2al92y8gkzlvb
608 // static inline box box_intersect(box b0, box b1)
609 public static Object box_intersect(Object... arg) {
610 UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
611 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
612 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
613 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
614 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
615 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
616 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
617 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
618 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
619
620 throw new UnsupportedOperationException();
621 }
622
623
624
625
626 //3 8gfybie7k6pgb3o1a6llgpwng
627 // static inline boxf boxf_intersect(boxf b0, boxf b1)
628 public static Object boxf_intersect(Object... arg) {
629 UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); // static inline boxf boxf_intersect(boxf b0, boxf b1)
630 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
631 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
632 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
633 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
634 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
635 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
636 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
637 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
638
639 throw new UnsupportedOperationException();
640 }
641
642
643
644
645 //3 7z8j2quq65govaaejrz7b4cvb
646 // static inline int box_overlap(box b0, box b1)
647 public static Object box_overlap(Object... arg) {
648 UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); // static inline int box_overlap(box b0, box b1)
649 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
650 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
651 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
652
653 throw new UnsupportedOperationException();
654 }
655
656
657
658
659 //3 4z0suuut2acsay5m8mg9dqjdu
660 // static inline int boxf_overlap(boxf b0, boxf b1)
661 public static Object boxf_overlap(Object... arg) {
662 UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); // static inline int boxf_overlap(boxf b0, boxf b1)
663 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
664 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
665 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
666
667 throw new UnsupportedOperationException();
668 }
669
670
671
672
673 //3 dd34swz5rmdgu3a2np2a4h1dy
674 // static inline int box_contains(box b0, box b1)
675 public static Object box_contains(Object... arg) {
676 UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); // static inline int box_contains(box b0, box b1)
677 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
678 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
679 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
680
681 throw new UnsupportedOperationException();
682 }
683
684
685
686
687 //3 8laj1bspbu2i1cjd9upr7xt32
688 // static inline int boxf_contains(boxf b0, boxf b1)
689 public static Object boxf_contains(Object... arg) {
690 UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); // static inline int boxf_contains(boxf b0, boxf b1)
691 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
692 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
693 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
694
695 throw new UnsupportedOperationException();
696 }
697
698
699
700
701 //3 4wf5swkz24xx51ja2dynbycu1
702 // static inline pointf perp (pointf p)
703 public static Object perp(Object... arg) {
704 UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); // static inline pointf perp (pointf p)
705 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
706 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
707 UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); // r.x = -p.y;
708 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
709 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
710 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
711
712 throw new UnsupportedOperationException();
713 }
714
715
716
717
718 //3 6dtlpzv4mvgzb9o0b252yweuv
719 // static inline pointf scale (double c, pointf p)
720 public static Object scale(Object... arg) {
721 UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); // static inline pointf scale (double c, pointf p)
722 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
723 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
724 UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); // r.x = c * p.x;
725 UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); // r.y = c * p.y;
726 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
727 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
728
729 throw new UnsupportedOperationException();
730 }
731
732
733
734
735 //3 c7cptalfn8k75wyfirbnptnav
736 // nodequeue *new_queue(int sz)
737 public static ST_nodequeue new_queue(int sz) {
738 ENTERING("c7cptalfn8k75wyfirbnptnav","new_queue");
739 try {
740 ST_nodequeue q = new ST_nodequeue();
741 if (sz <= 1)
742 sz = 2;
743 final ST_Agnode_s.ArrayOfStar tmp__ = new ST_Agnode_s.ArrayOfStar(sz);
744 q.setPtr("store", tmp__);
745 q.setPtr("tail", tmp__);
746 q.setPtr("head", tmp__);
747 q.setPtr("limit", tmp__.plus(sz));
748 return q;
749 } finally {
750 LEAVING("c7cptalfn8k75wyfirbnptnav","new_queue");
751 }
752 }
753
754
755
756
757 //3 1uj5nmdvwmuklnpd3v5py547f
758 // void free_queue(nodequeue * q)
759 public static void free_queue(ST_nodequeue q) {
760 ENTERING("1uj5nmdvwmuklnpd3v5py547f","free_queue");
761 try {
762 Memory.free(q.store);
763 Memory.free(q);
764 } finally {
765 LEAVING("1uj5nmdvwmuklnpd3v5py547f","free_queue");
766 }
767 }
768
769
770
771
772 //3 20pwd6i141q3o25lfvrdqytot
773 // void enqueue(nodequeue * q, node_t * n)
774 public static void enqueue(ST_nodequeue q, ST_Agnode_s n) {
775 ENTERING("20pwd6i141q3o25lfvrdqytot","enqueue");
776 try {
777 q.tail.plus(0).setPtr(n);
778 q.setPtr("tail", q.tail.plus(1));
779 if (q.tail.comparePointer(q.limit) >= 0)
780 q.setPtr("tail", q.store);
781 } finally {
782 LEAVING("20pwd6i141q3o25lfvrdqytot","enqueue");
783 }
784 }
785
786
787
788
789 //3 b612nmtf16au96ztbs8pike9r
790 // node_t *dequeue(nodequeue * q)
791 public static ST_Agnode_s dequeue(ST_nodequeue q) {
792 ENTERING("b612nmtf16au96ztbs8pike9r","dequeue");
793 try {
794 ST_Agnode_s n;
795 if (EQ(q.head, q.tail))
796 n = null;
797 else {
798 n = (ST_Agnode_s) q.head.get(0);
799 q.setPtr("head", q.head.plus(1));
800 if (q.head.comparePointer(q.limit) >= 0)
801 q.setPtr("head", q.store);
802 }
803 return n;
804 } finally {
805 LEAVING("b612nmtf16au96ztbs8pike9r","dequeue");
806 }
807 }
808
809
810
811
812 //3 6nydxv4f2m7jcfh8ljs0neu0x
813 // int late_int(void *obj, attrsym_t * attr, int def, int low)
814 public static int late_int(__ptr__ obj, ST_Agsym_s attr, int def, int low) {
815 ENTERING("6nydxv4f2m7jcfh8ljs0neu0x","late_int");
816 try {
817 CString p;
818 CString endp[] = new CString[1];
819 int rv;
820 if (attr == null)
821 return def;
822 p = agxget(obj,attr);
823 if (N(p) || p.length()==0)
824 return def;
825 rv = strtol (p, endp, 10);
826 if (EQ(p, endp[0])) return def; /* invalid int format */
827 if (rv < low) return low;
828 else return rv;
829 } finally {
830 LEAVING("6nydxv4f2m7jcfh8ljs0neu0x","late_int");
831 }
832 }
833
834
835
836
837 //3 d68314e4f20r79tt0cnmxugme
838 // double late_double(void *obj, attrsym_t * attr, double def, double low)
839 public static double late_double(__ptr__ obj, ST_Agsym_s attr, double def, double low) {
840 ENTERING("d68314e4f20r79tt0cnmxugme","late_double");
841 try {
842 CString p;
843 CString endp[] = new CString[1];
844 double rv;
845 if (N(attr) || N(obj))
846 return def;
847 p = agxget(obj,attr);
848 if (N(p) || p.charAt(0) == '\0')
849 return def;
850 rv = strtod (p, endp);
851 if (p == endp[0]) return def; /* invalid double format */
852 if (rv < low) return low;
853 else return rv;
854 } finally {
855 LEAVING("d68314e4f20r79tt0cnmxugme","late_double");
856 }
857 }
858
859
860
861
862 //3 70otpdqcum1z6ht6udvuxl7r2
863 // double get_inputscale (graph_t* g)
864 public static Object get_inputscale(Object... arg) {
865 UNSUPPORTED("9ufij3opw003w1a5l59wehdi6"); // double get_inputscale (graph_t* g)
866 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
867 UNSUPPORTED("8ne6p4d5pykwl1d3xk0yg0ipb"); // double d;
868 UNSUPPORTED("c3jy0hsf1pj5mu65gn0341dbk"); // if (PSinputscale > 0) return PSinputscale; /* command line flag prevails */
869 UNSUPPORTED("1l7wr8a4r1ml3ghihovvwsll0"); // d = late_double(g, (agattr(g,AGRAPH,"inputscale",(void *)0)), -1, 0);
870 UNSUPPORTED("464faf5rk766qz197xbucjy1q"); // if (d == 0) return 72;
871 UNSUPPORTED("34ovcwkctb1p5v0nns43aj54s"); // else return d;
872 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
873
874 throw new UnsupportedOperationException();
875 }
876
877
878
879
880 //3 83xm6yc9q5h1bzufhsnv0v2up
881 // char *late_string(void *obj, attrsym_t * attr, char *def)
882 public static CString late_string(__ptr__ obj, ST_Agsym_s attr, CString def) {
883 ENTERING("83xm6yc9q5h1bzufhsnv0v2up","late_string");
884 try {
885 if (N(attr) || N(obj))
886 return def;
887 return agxget(obj, attr);
888 } finally {
889 LEAVING("83xm6yc9q5h1bzufhsnv0v2up","late_string");
890 }
891 }
892
893
894
895
896 //3 8oon4q1mrublaru177xfntqgd
897 // char *late_nnstring(void *obj, attrsym_t * attr, char *def)
898 public static CString late_nnstring(__ptr__ obj, ST_Agsym_s attr, CString def) {
899 ENTERING("8oon4q1mrublaru177xfntqgd","late_nnstring");
900 try {
901 CString rv = late_string(obj, attr, def);
902 if (N(rv) || (rv.charAt(0) == '\0'))
903 rv = def;
904 return rv;
905 } finally {
906 LEAVING("8oon4q1mrublaru177xfntqgd","late_nnstring");
907 }
908 }
909
910
911
912
913 //3 87ifze04q7qzigjj1fb9y9by2
914 // boolean late_bool(void *obj, attrsym_t * attr, int def)
915 public static boolean late_bool(__ptr__ obj, ST_Agsym_s attr, int def) {
916 ENTERING("87ifze04q7qzigjj1fb9y9by2","late_bool");
917 try {
918 if (attr == null)
919 return def!=0;
920 UNSUPPORTED("a0kh1y5n8u59z0xo7mag3zmt6"); // return mapbool(agxget(obj, attr));
921 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
922
923 throw new UnsupportedOperationException();
924 } finally {
925 LEAVING("87ifze04q7qzigjj1fb9y9by2","late_bool");
926 }
927 }
928
929
930
931
932 //3 aeq0acpkhfv3gd5jx8op4jf18
933 // node_t *UF_find(node_t * n)
934 public static ST_Agnode_s UF_find(ST_Agnode_s n) {
935 ENTERING("aeq0acpkhfv3gd5jx8op4jf18","UF_find");
936 try {
937 while (ND_UF_parent(n)!=null && NEQ(ND_UF_parent(n), n)) {
938 if (ND_UF_parent(ND_UF_parent(n))!=null)
939 ND_UF_parent(n, ND_UF_parent(ND_UF_parent(n)));
940 n = ND_UF_parent(n);
941 }
942 return n;
943 } finally {
944 LEAVING("aeq0acpkhfv3gd5jx8op4jf18","UF_find");
945 }
946 }
947
948
949
950
951 //3 9ldxwfr4vvijrvfcvs1hvdzrt
952 // node_t *UF_union(node_t * u, node_t * v)
953 public static ST_Agnode_s UF_union(ST_Agnode_s u, ST_Agnode_s v) {
954 ENTERING("9ldxwfr4vvijrvfcvs1hvdzrt","UF_union");
955 try {
956 if (EQ(u, v))
957 return u;
958 if (ND_UF_parent(u) == null) {
959 ND_UF_parent(u, u);
960 ND_UF_size(u, 1);
961 } else
962 UNSUPPORTED("35c97tyk6tzw1g527j6rp6xoo"); // u = UF_find(u);
963 if (ND_UF_parent(v) == null) {
964 ND_UF_parent(v, v);
965 ND_UF_size(v, 1);
966 } else
967 v = UF_find(v);
968 if (ND_id(u) > ND_id(v)) {
969 UNSUPPORTED("2igr3ntnkm6svji4pbnjlp54e"); // ND_UF_parent(u) = v;
970 UNSUPPORTED("3lht90i6tvxbr10meir8nvcic"); // ND_UF_size(v) += ND_UF_size(u);
971 } else {
972 ND_UF_parent(v, u);
973 ND_UF_size(u, ND_UF_size(u) + ND_UF_size(v));
974 v = u;
975 }
976 return v;
977 } finally {
978 LEAVING("9ldxwfr4vvijrvfcvs1hvdzrt","UF_union");
979 }
980 }
981
982
983
984
985 //3 3j3pbee3o14ctlm51gqul3y1b
986 // void UF_remove(node_t * u, node_t * v)
987 public static Object UF_remove(Object... arg) {
988 UNSUPPORTED("4mdu14gpibvzmm5t9g0h7oaek"); // void UF_remove(node_t * u, node_t * v)
989 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
990 UNSUPPORTED("dnvt20f8swe5kyjjj2g4vpx46"); // assert(ND_UF_size(u) == 1);
991 UNSUPPORTED("crtqvbx6u5amvtj4nhuhui0p0"); // ND_UF_parent(u) = u;
992 UNSUPPORTED("4gdqcsr8w5gtc1qbdht2l23g2"); // ND_UF_size(v) -= ND_UF_size(u);
993 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
994
995 throw new UnsupportedOperationException();
996 }
997
998
999
1000
1001 //3 22k0u1imxyw06k9rizqlfz153
1002 // void UF_singleton(node_t * u)
1003 public static void UF_singleton(ST_Agnode_s u) {
1004 ENTERING("22k0u1imxyw06k9rizqlfz153","UF_singleton");
1005 try {
1006 ND_UF_size(u, 1);
1007 ND_UF_parent(u, null);
1008 ND_ranktype(u, 0);
1009 } finally {
1010 LEAVING("22k0u1imxyw06k9rizqlfz153","UF_singleton");
1011 }
1012 }
1013
1014
1015
1016
1017 //3 e0fn8xuzkdt0q8xoofl6j1txb
1018 // void UF_setname(node_t * u, node_t * v)
1019 public static void UF_setname(ST_Agnode_s u, ST_Agnode_s v) {
1020 ENTERING("e0fn8xuzkdt0q8xoofl6j1txb","UF_setname");
1021 try {
1022 assert(EQ(u, UF_find(u)));
1023 ND_UF_parent(u, v);
1024 ND_UF_size(v, ND_UF_size(v) + ND_UF_size(u));
1025 } finally {
1026 LEAVING("e0fn8xuzkdt0q8xoofl6j1txb","UF_setname");
1027 }
1028 }
1029
1030
1031
1032
1033 //3 31rkmp5c1ie1pfzbkla6b4ag
1034 // pointf coord(node_t * n)
1035 public static Object coord(Object... arg) {
1036 UNSUPPORTED("880b2lkxm37hksgryyrw8qqvj"); // pointf coord(node_t * n)
1037 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1038 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
1039 UNSUPPORTED("evwdz7pwy2u67oqi6hg38wal1"); // r.x = 72 * ND_pos(n)[0];
1040 UNSUPPORTED("1dwnra1p0vsse07037h9fdfgp"); // r.y = 72 * ND_pos(n)[1];
1041 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
1042 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1043
1044 throw new UnsupportedOperationException();
1045 }
1046
1047
1048
1049
1050 //3 6p0ey2c2ujk2o7h221p0b4xon
1051 // pointf Bezier(pointf * V, int degree, double t, pointf * Left, pointf * Right)
1052 public static ST_pointf Bezier(final ST_pointf.Array V, int degree, double t, __ptr__ Left, __ptr__ Right) {
1053 // WARNING!! STRUCT
1054 return Bezier_w_(V, degree, t, Left, Right).copy();
1055 }
1056 private static ST_pointf Bezier_w_(final ST_pointf.Array V, int degree, double t, __ptr__ Left, __ptr__ Right) {
1057 ENTERING("6p0ey2c2ujk2o7h221p0b4xon","Bezier");
1058 try {
1059 int i, j; /* Index variables */
1060 final ST_pointf.Array Vtemp[] = new ST_pointf.Array[] { new ST_pointf.Array( 5+1),
1061 new ST_pointf.Array( 5+1),
1062 new ST_pointf.Array( 5+1),
1063 new ST_pointf.Array( 5+1),
1064 new ST_pointf.Array( 5+1),
1065 new ST_pointf.Array( 5+1) };
1066 /* Copy control points */
1067 for (j = 0; j <= degree; j++) {
1068 Vtemp[0].plus(j).setStruct(V.plus(j).getStruct());
1069 }
1070 /* Triangle computation */
1071 for (i = 1; i <= degree; i++) {
1072 for (j = 0; j <= degree - i; j++) {
1073 Vtemp[i].plus(j).setDouble("x",
1074 (1.0 - t) * Vtemp[i - 1].get(j).x + t * Vtemp[i - 1].get(j + 1).x);
1075 Vtemp[i].plus(j).setDouble("y",
1076 (1.0 - t) * Vtemp[i - 1].get(j).y + t * Vtemp[i - 1].get(j + 1).y);
1077 }
1078 }
1079 if (Left != null)
1080 for (j = 0; j <= degree; j++)
1081 Left.plus(j).setStruct(Vtemp[j].plus(0).getStruct());
1082 if (Right != null)
1083 for (j = 0; j <= degree; j++)
1084 Right.plus(j).setStruct(Vtemp[degree - j].plus(j).getStruct());
1085 return (ST_pointf) (Vtemp[degree].plus(0).getStruct());
1086 } finally {
1087 LEAVING("6p0ey2c2ujk2o7h221p0b4xon","Bezier");
1088 }
1089 }
1090
1091
1092
1093
1094 //3 3ly0ylecb4k9xk5b7ffrlolt9
1095 // char *Fgets(FILE * fp)
1096 public static Object Fgets(Object... arg) {
1097 UNSUPPORTED("4q07n5lkhirby89lrss95tlri"); // char *Fgets(FILE * fp)
1098 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1099 UNSUPPORTED("f2la3gescrvdrwclkw6jqpel5"); // static int bsize = 0;
1100 UNSUPPORTED("8kywmm7f51dmrjngxwvnpsd4o"); // static char *buf;
1101 UNSUPPORTED("ecmuo8avgj1iywuapxmibw016"); // char *lp;
1102 UNSUPPORTED("dwe86466ugstemepdfk8yzphz"); // int len;
1103 UNSUPPORTED("cl8iuel2v9wmaxtyhnvq5trol"); // len = 0;
1104 UNSUPPORTED("53kc41p479auwcycfsbhw8xix"); // do {
1105 UNSUPPORTED("94pefdj9c9wxznl2ybw0eaxlu"); // if (bsize - len < BUFSIZ) {
1106 UNSUPPORTED("3f9vu9nd93ckzyw89aeu7qtpz"); // bsize += BUFSIZ;
1107 UNSUPPORTED("6zqvad9bp7g8thltaf4fgbiqe"); // buf = grealloc(buf, bsize);
1108 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1109 UNSUPPORTED("6javvrure63s3d9t1t1g3jjb3"); // lp = fgets(buf + len, bsize - len, fp);
1110 UNSUPPORTED("5s6nvinfb0elfdlq0b4hvn087"); // if (lp == 0)
1111 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1112 UNSUPPORTED("83wm9z0kqu2eg7994ilmkvhsy"); // len += strlen(lp); /* since lp != NULL, len > 0 */
1113 UNSUPPORTED("cpr2w7m7b9d0k3v79b2ed57cv"); // } while (buf[len - 1] != '\n');
1114 UNSUPPORTED("6qgvu9gyei3rz9oa1j4onpev8"); // if (len > 0)
1115 UNSUPPORTED("60rrsbs3bgak2rhurj1kw71av"); // return buf;
1116 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
1117 UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0;
1118 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1119
1120 throw new UnsupportedOperationException();
1121 }
1122
1123
1124
1125
1126 //3 24n59f0dfjbrcciik6yp7reuz
1127 // static char** mkDirlist (const char* list, int* maxdirlen)
1128 public static Object mkDirlist(Object... arg) {
1129 UNSUPPORTED("52rxugfl5uyz0px71ixefqszi"); // static char** mkDirlist (const char* list, int* maxdirlen)
1130 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1131 UNSUPPORTED("behjm5bjsenezpg3f7cncvteu"); // int cnt = 0;
1132 UNSUPPORTED("8b1p8gk30j7o435ywb280jum2"); // char* s = strdup (list);
1133 UNSUPPORTED("35u91xpv8pyr56o5nch0azwdl"); // char* dir;
1134 UNSUPPORTED("9b5fnnkm94rlgnqwv15ibu46r"); // char** dirs = (void *)0;
1135 UNSUPPORTED("2cb6784tzmjr65il4amoj2f6h"); // int maxlen = 0;
1136 UNSUPPORTED("bnhqg9audjylbv3i0tj26rrcp"); // for (dir = strtok (s, ":"); dir; dir = strtok ((void *)0, ":")) {
1137 UNSUPPORTED("aqf6niag46yhhhj5sccv41hrk"); // dirs = ALLOC (cnt+2,dirs,char*);
1138 UNSUPPORTED("f5047pr5l6jv6zl8latgfspry"); // dirs[cnt++] = dir;
1139 UNSUPPORTED("13d902xfof2syshtj70d02plc"); // maxlen = MAX(maxlen, strlen (dir));
1140 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1141 UNSUPPORTED("3qszpnaufz3i0zkcsuaqfcbap"); // dirs[cnt] = (void *)0;
1142 UNSUPPORTED("a10ctcqm0sjufygu9dh0cc6aa"); // *maxdirlen = maxlen;
1143 UNSUPPORTED("5os9u9oj7fjpbstveie2w0yxq"); // return dirs;
1144 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1145
1146 throw new UnsupportedOperationException();
1147 }
1148
1149
1150
1151
1152 //3 49gli3uq79rprx3u3opdhcx1m
1153 // static char* findPath (char** dirs, int maxdirlen, const char* str)
1154 public static Object findPath(Object... arg) {
1155 UNSUPPORTED("a5bmudkw4k7jkxvyb8gptf73c"); // static char* findPath (char** dirs, int maxdirlen, const char* str)
1156 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1157 UNSUPPORTED("93jals27u5ur9t8vy0noookm0"); // static char *safefilename = (void *)0;
1158 UNSUPPORTED("bpsbmb5c3iu1rp98h1ouv1rgr"); // char** dp;
1159 UNSUPPORTED("81a5ilslogj5wcerq31e8qoh9"); // /* allocate a buffer that we are sure is big enough
1160 UNSUPPORTED("a6c5zuexn89b87yrrru9wgnwg"); // * +1 for null character.
1161 UNSUPPORTED("eaa4q86pe1s8k4qb4tkhw73zl"); // * +1 for directory separator character.
1162 UNSUPPORTED("3vesx4cskuo1q42jvwmoum2xs"); // */
1163 UNSUPPORTED("15klhvefamyul36it624epw39"); // safefilename = realloc(safefilename, (maxdirlen + strlen(str) + 2));
1164 UNSUPPORTED("2zug3hj9q9xtnh9p792zu5xh8"); // for (dp = dirs; *dp; dp++) {
1165 UNSUPPORTED("bhh1cl0s26fu2nevbn685qotj"); // sprintf (safefilename, "%s%s%s", *dp, "/", str);
1166 UNSUPPORTED("c3hxsxu6vm5rsmcvu94zjfhmz"); // if (access (safefilename, R_OK) == 0)
1167 UNSUPPORTED("bvviyr83kx89qfvn2tmv1fj2x"); // return safefilename;
1168 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1169 UNSUPPORTED("bhge6w48v1uv92wmsde2jqqs0"); // return (void *)0;
1170 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1171
1172 throw new UnsupportedOperationException();
1173 }
1174
1175
1176
1177
1178 //static boolean onetime = (!(0));
1179 //static char *pathlist = (void *)0;
1180 //static int maxdirlen;
1181 //static char** dirs;
1182 //3 3xll2b0v9nthwvx9dafq49t8s
1183 // const char *safefile(const char *filename)
1184 public static CString safefile(CString filename) {
1185 ENTERING("3xll2b0v9nthwvx9dafq49t8s","safefile");
1186 try {
1187 return null;
1188 } finally {
1189 LEAVING("3xll2b0v9nthwvx9dafq49t8s","safefile");
1190 }
1191 }
1192
1193
1194
1195
1196 //3 2ihv17oajyaaaycirwsbgz1m7
1197 // int maptoken(char *p, char **name, int *val)
1198 public static int maptoken(CString p, CString name[], int val[]) {
1199 ENTERING("2ihv17oajyaaaycirwsbgz1m7","maptoken");
1200 try {
1201 int i;
1202 CString q;
1203 for (i = 0; (q = name[i]) != null; i++)
1204 if (p!=null && (N(strcmp(p,q))))
1205 break;
1206 return val[i];
1207 } finally {
1208 LEAVING("2ihv17oajyaaaycirwsbgz1m7","maptoken");
1209 }
1210 }
1211
1212
1213
1214
1215 //3 4esyuq2yqdaqoddgfqs24m5m3
1216 // boolean mapBool(char *p, boolean dflt)
1217 public static boolean mapBool(CString p, boolean dflt) {
1218 ENTERING("4esyuq2yqdaqoddgfqs24m5m3","mapBool");
1219 try {
1220 if (N(p) || (p.charAt(0) == '\0'))
1221 return dflt;
1222 if (N(strcasecmp(p, new CString("false"))))
1223 return false;
1224 if (N(strcasecmp(p, new CString("no"))))
1225 return false;
1226 if (N(strcasecmp(p, new CString("true"))))
1227 return (N(0));
1228 if (N(strcasecmp(p, new CString("yes"))))
1229 return (N(0));
1230 if (isdigit(p.charAt(0)))
1231 return atoi(p)!=0;
1232 else
1233 return dflt;
1234 } finally {
1235 LEAVING("4esyuq2yqdaqoddgfqs24m5m3","mapBool");
1236 }
1237 }
1238
1239
1240
1241
1242 //3 ehkvqh6bwf4jw3mj1w5p7a8m8
1243 // boolean mapbool(char *p)
1244 public static boolean mapbool(CString p) {
1245 ENTERING("ehkvqh6bwf4jw3mj1w5p7a8m8","mapbool");
1246 try {
1247 return mapBool (p, false);
1248 } finally {
1249 LEAVING("ehkvqh6bwf4jw3mj1w5p7a8m8","mapbool");
1250 }
1251 }
1252
1253
1254
1255
1256 //3 37hgj44s94wf9bmz16he85pgq
1257 // pointf dotneato_closest(splines * spl, pointf pt)
1258 public static ST_pointf dotneato_closest(ST_splines spl, final ST_pointf pt) {
1259 ENTERING("37hgj44s94wf9bmz16he85pgq","dotneato_closest");
1260 try {
1261 return (ST_pointf) dotneato_closest_ (spl, (ST_pointf) pt.copy()).copy();
1262 } finally {
1263 LEAVING("37hgj44s94wf9bmz16he85pgq","dotneato_closest");
1264 }
1265 }
1266 private static ST_pointf dotneato_closest_(ST_splines spl, final ST_pointf pt) {
1267 int i, j, k, besti, bestj;
1268 double bestdist2, d2, dlow2, dhigh2; /* squares of distances */
1269 double low, high, t;
1270 // final ST_pointf c[] = new ST_pointf[] {new ST_pointf(),new ST_pointf(),new ST_pointf(),new ST_pointf()};
1271 final ST_pointf.Array c = new ST_pointf.Array( 4);
1272 final ST_pointf pt2 = new ST_pointf();
1273 final ST_bezier bz = new ST_bezier();
1274 besti = bestj = -1;
1275 bestdist2 = 1e+38;
1276 for (i = 0; i < spl.size; i++) {
1277 bz.____(spl.list.get(i));
1278 for (j = 0; j < bz.size; j++) {
1279 final ST_pointf b = new ST_pointf();
1280 b.x = bz.list.get(j).x;
1281 b.y = bz.list.get(j).y;
1282 d2 = DIST2(b, pt);
1283 if ((bestj == -1) || (d2 < bestdist2)) {
1284 besti = i;
1285 bestj = j;
1286 bestdist2 = d2;
1287 }
1288 }
1289 }
1290 bz.____(spl.list.get(besti));
1291 /* Pick best Bezier. If bestj is the last point in the B-spline, decrement.
1292 * Then set j to be the first point in the corresponding Bezier by dividing
1293 * then multiplying be 3. Thus, 0,1,2 => 0; 3,4,5 => 3, etc.
1294 */
1295 if (bestj == bz.size-1)
1296 bestj--;
1297 j = 3*(bestj / 3);
1298 for (k = 0; k < 4; k++) {
1299 c.plus(k).setDouble("x", bz.list.get(j + k).x);
1300 c.plus(k).setDouble("y", bz.list.get(j + k).y);
1301 }
1302 low = 0.0;
1303 high = 1.0;
1304 dlow2 = DIST2(c.get(0), pt);
1305 dhigh2 = DIST2(c.get(3), pt);
1306 do {
1307 t = (low + high) / 2.0;
1308 pt2.___(Bezier(c, 3, t, null, null));
1309 if (fabs(dlow2 - dhigh2) < 1.0)
1310 break;
1311 if (fabs(high - low) < .00001)
1312 break;
1313 UNSUPPORTED("6apa9aoby9j8a0eanbfhy5mn2"); // if (dlow2 < dhigh2) {
1314 UNSUPPORTED("6jttyuryfaxa193mme86dqf58"); // high = t;
1315 UNSUPPORTED("6avwplrum9i9qi3g9wl6yvz04"); // dhigh2 = DIST2(pt2, pt);
1316 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
1317 UNSUPPORTED("556vs5i22602clhs1p3htz7vk"); // low = t;
1318 UNSUPPORTED("507tgq81szei2ge3miiak4b1v"); // dlow2 = DIST2(pt2, pt);
1319 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1320 } while (true);
1321 return pt2;
1322 }
1323
1324
1325
1326
1327 //3 8v6t685mjc3ps5m4i5m7kj5r5
1328 // pointf spline_at_y(splines * spl, double y)
1329 public static Object spline_at_y(Object... arg) {
1330 UNSUPPORTED("6z59zacy0w6awy33d9vj3ka38"); // pointf spline_at_y(splines * spl, double y)
1331 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1332 UNSUPPORTED("dzpsknrwv8qkqq20hjnjpjn68"); // int i, j;
1333 UNSUPPORTED("c7xj151i9l4snnjn7ibtdupr2"); // double low, high, d, t;
1334 UNSUPPORTED("10vmrpj8mfz9opwwvwpolaopd"); // pointf c[4], p;
1335 UNSUPPORTED("m46gfclfoxui2qhyykvkqk0a"); // static bezier bz;
1336 UNSUPPORTED("aqjwfeuociuhtcp9z6qs0chn8"); // /* this caching seems to prevent p.x from getting set from bz.list[0].x
1337 UNSUPPORTED("epvvl2xzzwpc4zmue865xosgp"); // - optimizer problem ? */
1338 UNSUPPORTED("b9epibfipw1wsk324v5epkerh"); // for (i = 0; i < spl->size; i++) {
1339 UNSUPPORTED("3ykobnao35x0n6r6go2stj9o5"); // bz = spl->list[i];
1340 UNSUPPORTED("clxoycrurqc4oq0d7v2fp7imo"); // if (BETWEEN(bz.list[bz.size - 1].y, y, bz.list[0].y))
1341 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1342 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1343 UNSUPPORTED("3en4490pkykfcbc2szvzzx27g"); // if (y > bz.list[0].y)
1344 UNSUPPORTED("e1te1nqw2aru9ro9sqdjhhttv"); // p = bz.list[0];
1345 UNSUPPORTED("24izeylrlk4gqqilirqwty8r9"); // else if (y < bz.list[bz.size - 1].y)
1346 UNSUPPORTED("5cxp04l4lo39n1p1wsvav460c"); // p = bz.list[bz.size - 1];
1347 UNSUPPORTED("1nyzbeonram6636b1w955bypn"); // else {
1348 UNSUPPORTED("cj02uw2oxm47gdexf3z5axxlw"); // for (i = 0; i < bz.size; i += 3) {
1349 UNSUPPORTED("djfbmqatbjckruruv8rxs6uav"); // for (j = 0; j < 3; j++) {
1350 UNSUPPORTED("5b9ziw2aes1kmllxgwkfpmr7p"); // if ((bz.list[i + j].y <= y) && (y <= bz.list[i + j + 1].y))
1351 UNSUPPORTED("czyohktf9bkx4udfqhx42f4lu"); // break;
1352 UNSUPPORTED("amh6xmny0k57y6wqy4ms0zyqe"); // if ((bz.list[i + j].y >= y) && (y >= bz.list[i + j + 1].y))
1353 UNSUPPORTED("czyohktf9bkx4udfqhx42f4lu"); // break;
1354 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1355 UNSUPPORTED("9fvhco56e60yr7h2c6ceqf1p5"); // if (j < 3)
1356 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1357 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1358 UNSUPPORTED("eoqh4atx94pamqo1963pcrq50"); // assert(i < bz.size);
1359 UNSUPPORTED("ac0jvph9p2m1i3zdywfxmq4eg"); // for (j = 0; j < 4; j++) {
1360 UNSUPPORTED("ajjpb9st186njpdxscd9bmg80"); // c[j].x = bz.list[i + j].x;
1361 UNSUPPORTED("2lnyqxk5vopusie575n54x590"); // c[j].y = bz.list[i + j].y;
1362 UNSUPPORTED("5n0qrttzwlxb3x8t4ngkjz31j"); // /* make the spline be monotonic in Y, awful but it works for now */
1363 UNSUPPORTED("ath2bi6h6bk6mkwqk00fweao2"); // if ((j > 0) && (c[j].y > c[j - 1].y))
1364 UNSUPPORTED("a6ze9ec2noj595b0aw7s8h7id"); // c[j].y = c[j - 1].y;
1365 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1366 UNSUPPORTED("2zhwm9ypobvcurq5wram1qiil"); // low = 0.0;
1367 UNSUPPORTED("2ee14osydbs80okw31an3ngjg"); // high = 1.0;
1368 UNSUPPORTED("8vxyvy38lzpbd83cu26nejaan"); // do {
1369 UNSUPPORTED("aclx3e6mwmv4x6wtctvdpafcb"); // t = (low + high) / 2.0;
1370 UNSUPPORTED("c609yg89bcwhbtz2sjavo4mo0"); // p = Bezier(c, 3, t, (void *)0, (void *)0);
1371 UNSUPPORTED("7tmwl314qsfq3dcvb5u9uyknb"); // d = p.y - y;
1372 UNSUPPORTED("2b3fbztokpi7ure6eux7qupf8"); // if (ABS(d) <= 1)
1373 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1374 UNSUPPORTED("d8gdi8364l2gqf1f2o8j20nhe"); // if (d < 0)
1375 UNSUPPORTED("ckgl1j6wm8pbqhae0gpdab4qk"); // high = t;
1376 UNSUPPORTED("5c97f6vfxny0zz35l2bu4maox"); // else
1377 UNSUPPORTED("12xca5z3d0sj7sp9cgyqxop4f"); // low = t;
1378 UNSUPPORTED("6agdm6388u3r4v7kc6ho2hxhu"); // } while (1);
1379 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1380 UNSUPPORTED("5jdhcgi82gtmvn690v78zmkpe"); // p.y = y;
1381 UNSUPPORTED("91xduilalb406jjyw2g1i07th"); // return p;
1382 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1383
1384 throw new UnsupportedOperationException();
1385 }
1386
1387
1388
1389
1390 //3 4ws2d4r4z8psnleuxber6j3s6
1391 // pointf neato_closest(splines * spl, pointf p)
1392 public static Object neato_closest(Object... arg) {
1393 UNSUPPORTED("8hg1y8i9xy00n3blyechtqvvh"); // pointf neato_closest(splines * spl, pointf p)
1394 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1395 UNSUPPORTED("cickuxw2k5um9ssxcufe5ny0h"); // /* this is a stub so that we can share a common emit.c between dot and neato */
1396 UNSUPPORTED("b5hsyvf8h7g1m8n1qzbi0hrry"); // return spline_at_y(spl, p.y);
1397 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1398
1399 throw new UnsupportedOperationException();
1400 }
1401
1402
1403 //1 8s6oop1ayag35eusof2rgdb5b
1404 // static int Tflag
1405
1406
1407
1408
1409 //3 ak4q69g3z2si69q7q6mmtp9qi
1410 // void gvToggle(int s)
1411 public static Object gvToggle(Object... arg) {
1412 UNSUPPORTED("46ptgxtzrw0bu7ggbzxrodqnw"); // void gvToggle(int s)
1413 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1414 UNSUPPORTED("dxdyekcrbykzppszumnvmrogc"); // Tflag = !Tflag;
1415 UNSUPPORTED("9zus728u8e05ja3xahcrlzmsr"); // signal(SIGUSR1, gvToggle);
1416 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1417
1418 throw new UnsupportedOperationException();
1419 }
1420
1421
1422
1423
1424 //3 6h6t4myqjvz5d7nv9s4fme7ol
1425 // int test_toggle()
1426 public static Object test_toggle(Object... arg) {
1427 UNSUPPORTED("66b64g196uijyd7jhapf68wvg"); // int test_toggle()
1428 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1429 UNSUPPORTED("7op0qt5n8bs6z3ptnpbps1ikb"); // return Tflag;
1430 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1431
1432 throw new UnsupportedOperationException();
1433 }
1434
1435
1436
1437
1438 //3 cr81drt18h5feqzxyh3jb0u49
1439 // void common_init_node(node_t * n)
1440 public static void common_init_node(ST_Agnode_s n) {
1441 ENTERING("cr81drt18h5feqzxyh3jb0u49","common_init_node");
1442 try {
1443 ST_fontinfo fi = new ST_fontinfo();
1444 CString str;
1445 ND_width(n,
1446 late_double(n, Z.z().N_width, 0.75, 0.01));
1447 ND_height(n,
1448 late_double(n, Z.z().N_height, 0.5, 0.02));
1449 ND_shape(n,
1450 bind_shape(late_nnstring(n, Z.z().N_shape, new CString("ellipse")), n));
1451 str = agxget(n, Z.z().N_label);
1452 fi.setDouble("fontsize", late_double(n, Z.z().N_fontsize, 14.0, 1.0));
1453 fi.setPtr("fontname", late_nnstring(n, Z.z().N_fontname, new CString("Times-Roman")));
1454 fi.setPtr("fontcolor", late_nnstring(n, Z.z().N_fontcolor, new CString("black")));
1455 ND_label(n, make_label(n, str,
1456 ((aghtmlstr(str)!=0 ? (1 << 1) : (0 << 1)) | ( (shapeOf(n) == enumAsInt(shape_kind.class, "SH_RECORD")) ? (2 << 1) : (0 << 1))),
1457 fi.fontsize, fi.fontname, fi.fontcolor));
1458 if (Z.z().N_xlabel!=null && (str = agxget(n, Z.z().N_xlabel))!=null && (str.charAt(0)!='\0')) {
1459 UNSUPPORTED("4ua9vld76wpovsm1celv2ff6e"); // ND_xlabel(n) = make_label((void*)n, str, (aghtmlstr(str) ? (1 << 1) : (0 << 1)),
1460 UNSUPPORTED("b0zm6fkpjlt9jacykbgugjodg"); // fi.fontsize, fi.fontname, fi.fontcolor);
1461 UNSUPPORTED("ail0d4qmxj2aqh2q721inwgqu"); // GD_has_labels(agraphof(n)) |= (1 << 4);
1462 }
1463 ND_showboxes(n, late_int(n, Z.z().N_showboxes, 0, 0));
1464 ND_shape(n).fns.initfn.exe(n);
1465 } finally {
1466 LEAVING("cr81drt18h5feqzxyh3jb0u49","common_init_node");
1467 }
1468 }
1469
1470
1471
1472
1473 //3 d2v8l80y27ue2fag5c0qplah8
1474 // static void initFontEdgeAttr(edge_t * e, struct fontinfo *fi)
1475 public static void initFontEdgeAttr(ST_Agedge_s e, ST_fontinfo fi) {
1476 ENTERING("d2v8l80y27ue2fag5c0qplah8","initFontEdgeAttr");
1477 try {
1478 fi.setDouble("fontsize", late_double(e, Z.z().E_fontsize, 14.0, 1.0));
1479 fi.setPtr("fontname", late_nnstring(e, Z.z().E_fontname, new CString("Times-Roman")));
1480 fi.setPtr("fontcolor", late_nnstring(e, Z.z().E_fontcolor, new CString("black")));
1481 } finally {
1482 LEAVING("d2v8l80y27ue2fag5c0qplah8","initFontEdgeAttr");
1483 }
1484 }
1485
1486
1487
1488
1489 //3 ak3pxrdrq900wymudwnjmbito
1490 // static void initFontLabelEdgeAttr(edge_t * e, struct fontinfo *fi, struct fontinfo *lfi)
1491 public static void initFontLabelEdgeAttr(ST_Agedge_s e, ST_fontinfo fi, ST_fontinfo lfi) {
1492 ENTERING("ak3pxrdrq900wymudwnjmbito","initFontLabelEdgeAttr");
1493 try {
1494 if (N(fi.fontname)) initFontEdgeAttr(e, fi);
1495 lfi.setDouble("fontsize", late_double(e, Z.z().E_labelfontsize, fi.fontsize, 1.0));
1496 lfi.setPtr("fontname", late_nnstring(e, Z.z().E_labelfontname, fi.fontname));
1497 lfi.setPtr("fontcolor", late_nnstring(e, Z.z().E_labelfontcolor, fi.fontcolor));
1498 } finally {
1499 LEAVING("ak3pxrdrq900wymudwnjmbito","initFontLabelEdgeAttr");
1500 }
1501 }
1502
1503
1504
1505
1506 //3 bgnk1zwht9rwx6thmly98iofb
1507 // static boolean noClip(edge_t *e, attrsym_t* sym)
1508 public static boolean noClip(ST_Agedge_s e, ST_Agsym_s sym) {
1509 ENTERING("bgnk1zwht9rwx6thmly98iofb","noClip");
1510 try {
1511 CString str;
1512 boolean rv = false;
1513 if (sym!=null) { /* mapbool isn't a good fit, because we want "" to mean true */
1514 str = agxget(e,sym);
1515 if (str!=null && str.charAt(0)!='\0') rv = !mapbool(str);
1516 else rv = false;
1517 }
1518 return rv;
1519 } finally {
1520 LEAVING("bgnk1zwht9rwx6thmly98iofb","noClip");
1521 }
1522 }
1523
1524
1525
1526
1527 //3 9vnr1bc7p533acazoxbhbfmx3
1528 // static port chkPort (port (*pf)(node_t*, char*, char*), node_t* n, char* s)
1529 public static ST_port chkPort(CFunction pf, ST_Agnode_s n, CString s) {
1530 // WARNING!! STRUCT
1531 return chkPort_w_(pf, n, s).copy();
1532 }
1533 private static ST_port chkPort_w_(CFunction pf, ST_Agnode_s n, CString s) {
1534 ENTERING("9vnr1bc7p533acazoxbhbfmx3","chkPort");
1535 try {
1536 final ST_port pt = new ST_port();
1537 CString cp=null;
1538 if(s!=null)
1539 cp= strchr(s,':');
1540 if (cp!=null) {
1541 UNSUPPORTED("cbuf05ko7kaxq2n9zw35l5v2h"); // *cp = '\0';
1542 UNSUPPORTED("7ofc3q8txvlvus6qwefbnbaxu"); // pt = pf(n, s, cp+1);
1543 UNSUPPORTED("971i954brvgqb35cftazlqhon"); // *cp = ':';
1544 UNSUPPORTED("2o9oidtrr5gspl1dh6vnz7mlz"); // pt.name = cp+1;
1545 }
1546 else
1547 pt.___((ST_port) pf.exe(n, s, null));
1548 pt.name = s;
1549 return pt;
1550 } finally {
1551 LEAVING("9vnr1bc7p533acazoxbhbfmx3","chkPort");
1552 }
1553 }
1554
1555
1556
1557
1558 //3 3aqh64lxwv4da2snfe7fvr45b
1559 // int common_init_edge(edge_t * e)
1560 public static int common_init_edge(ST_Agedge_s e) {
1561 ENTERING("3aqh64lxwv4da2snfe7fvr45b","common_init_edge");
1562 try {
1563 CString str;
1564 int r = 0;
1565 final ST_fontinfo fi = new ST_fontinfo();
1566 final ST_fontinfo lfi = new ST_fontinfo();
1567 ST_Agraph_s sg = agraphof(agtail(e));
1568 fi.setPtr("fontname", null);
1569 lfi.setPtr("fontname", null);
1570 if (Z.z().E_label!=null && (str = agxget(e, Z.z().E_label))!=null && (str.charAt(0)!='\0')) {
1571 r = 1;
1572 initFontEdgeAttr(e, fi);
1573 ED_label(e, make_label(e, str, (aghtmlstr(str)!=0 ? (1 << 1) : (0 << 1)),
1574 fi.fontsize, fi.fontname, fi.fontcolor));
1575 GD_has_labels(sg, GD_has_labels(sg) | (1 << 0));
1576 ED_label_ontop(e,
1577 mapbool(late_string(e, Z.z().E_label_float, new CString("false"))));
1578 }
1579 if (Z.z().E_xlabel!=null && (str = agxget(e, Z.z().E_xlabel))!=null && (str.charAt(0)!='\0')) {
1580 UNSUPPORTED("1j3mhgq7abuh3n19q2jtjddbc"); // if (!fi.fontname)
1581 UNSUPPORTED("bmqo2g5g107quod3h31r8iudr"); // initFontEdgeAttr(e, &fi);
1582 UNSUPPORTED("3s7kg9x748riuy3tm697s6e8t"); // (((Agedgeinfo_t*)(((Agobj_t*)(e))->data))->xlabel) = make_label((void*)e, str, (aghtmlstr(str) ? (1 << 1) : (0 << 1)),
1583 UNSUPPORTED("b0zm6fkpjlt9jacykbgugjodg"); // fi.fontsize, fi.fontname, fi.fontcolor);
1584 UNSUPPORTED("c078bypfszv0nsvp1nc0x28wx"); // (((Agraphinfo_t*)(((Agobj_t*)(sg))->data))->has_labels) |= (1 << 5);
1585 }
1586 /* vladimir */
1587 if (Z.z().E_headlabel!=null && (str = agxget(e, Z.z().E_headlabel))!=null && (str.charAt(0)!='\0')) {
1588 initFontLabelEdgeAttr(e, fi, lfi);
1589 ED_head_label(e, make_label(e, str, (aghtmlstr(str)!=0 ? (1 << 1) : (0 << 1)),
1590 lfi.fontsize, lfi.fontname, lfi.fontcolor));
1591 GD_has_labels(sg, GD_has_labels(sg) | (1 << 1));
1592 }
1593 if (Z.z().E_taillabel!=null && (str = agxget(e, Z.z().E_taillabel))!=null && (str.charAt(0)!='\0')) {
1594 initFontLabelEdgeAttr(e, fi, lfi);
1595 ED_tail_label(e, make_label(e, str, (aghtmlstr(str)!=0 ? (1 << 1) : (0 << 1)),
1596 lfi.fontsize, lfi.fontname, lfi.fontcolor));
1597 GD_has_labels(sg, GD_has_labels(sg) | (1 << 2));
1598 }
1599 /* end vladimir */
1600 /* We still accept ports beginning with colons but this is deprecated
1601 * That is, we allow tailport = ":abc" as well as the preferred
1602 * tailport = "abc".
1603 */
1604 str = agget(e, new CString("tailport"));
1605 /* libgraph always defines tailport/headport; libcgraph doesn't */
1606 if (N(str)) str = new CString("");
1607 if (str!=null && str.charAt(0)!='\0')
1608 UNSUPPORTED("j71lo2acx1ydov0uj7xjjce"); // (((Agnodeinfo_t*)(((Agobj_t*)(((((((Agobj_t*)(e))->tag).objtype) == 3?(e):((e)+1))->node)))->data))->has_port) = (!(0));
1609
1610 ED_tail_port(e, chkPort ((CFunction) ND_shape(agtail(e)).fns.portfn, agtail(e), str));
1611 if (noClip(e, Z.z().E_tailclip))
1612 UNSUPPORTED("cg4z67u0dm6h9nrcx8kkalnlt"); // (((Agedgeinfo_t*)(((Agobj_t*)(e))->data))->tail_port).clip = 0;
1613 str = agget(e, new CString("headport"));
1614 /* libgraph always defines tailport/headport; libcgraph doesn't */
1615 if (N(str)) str = new CString("");
1616 if (str!=null && str.charAt(0)!='\0')
1617 UNSUPPORTED("542y57dbsosmjvsmdnzon2qb5"); // (((Agnodeinfo_t*)(((Agobj_t*)(((((((Agobj_t*)(e))->tag).objtype) == 2?(e):((e)-1))->node)))->data))->has_port) = (!(0));
1618
1619 ED_head_port(e, chkPort((CFunction) ND_shape(aghead(e)).fns.portfn, aghead(e), str));
1620
1621 if (noClip(e, Z.z().E_headclip))
1622 UNSUPPORTED("ayqscz30ekhcje94wh4ib1hcu"); // (((Agedgeinfo_t*)(((Agobj_t*)(e))->data))->head_port).clip = 0;
1623 return r;
1624 } finally {
1625 LEAVING("3aqh64lxwv4da2snfe7fvr45b","common_init_edge");
1626 }
1627 }
1628
1629
1630
1631
1632 //3 3mkqvtbyq9j8ktzil6t7vakg5
1633 // static boxf addLabelBB(boxf bb, textlabel_t * lp, boolean flipxy)
1634 public static ST_boxf addLabelBB(final ST_boxf bb, ST_textlabel_t lp, boolean flipxy) {
1635 // WARNING!! STRUCT
1636 return addLabelBB_w_(bb.copy(), lp, flipxy).copy();
1637 }
1638 private static ST_boxf addLabelBB_w_(final ST_boxf bb, ST_textlabel_t lp, boolean flipxy) {
1639 ENTERING("3mkqvtbyq9j8ktzil6t7vakg5","addLabelBB");
1640 try {
1641 double width, height;
1642 final ST_pointf p = new ST_pointf();
1643 p.___(lp.pos);
1644 double min, max;
1645 if (flipxy) {
1646 height = lp.dimen.x;
1647 width = lp.dimen.y;
1648 }
1649 else {
1650 width = lp.dimen.x;
1651 height = lp.dimen.y;
1652 }
1653 min = p.x - width / 2.;
1654 max = p.x + width / 2.;
1655 if (min < bb.LL.x)
1656 bb.LL.x = min;
1657 if (max > bb.UR.x)
1658 bb.UR.x = max;
1659 min = p.y - height / 2.;
1660 max = p.y + height / 2.;
1661 if (min < bb.LL.y)
1662 bb.LL.y = min;
1663 if (max > bb.UR.y)
1664 bb.UR.y = max;
1665 return bb;
1666 } finally {
1667 LEAVING("3mkqvtbyq9j8ktzil6t7vakg5","addLabelBB");
1668 }
1669 }
1670
1671
1672
1673
1674 //3 abydt85ykexa59r4o9fw9r77o
1675 // boxf polyBB (polygon_t* poly)
1676 public static Object polyBB(Object... arg) {
1677 UNSUPPORTED("eog6k627mwt0j7tauh94xvup8"); // boxf
1678 UNSUPPORTED("a4oqb702qwzmhj4ubv8nvwnut"); // polyBB (polygon_t* poly)
1679 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1680 UNSUPPORTED("9qkiyn1vv2k6crbg8xakskx7r"); // int i, sides = poly->sides;
1681 UNSUPPORTED("wqb7ise36l84z7bv4eo0jk8e"); // int peris = MAX(poly->peripheries,1);
1682 UNSUPPORTED("f32j3p304siaf3gv4nw2fjxyd"); // pointf* verts = poly->vertices + (peris-1)*sides;
1683 UNSUPPORTED("2lzsl1e035wt5epd1h8f4bn8m"); // boxf bb;
1684 UNSUPPORTED("b6nw09v79k31a4rwwrm78jena"); // bb.LL = bb.UR = verts[0];
1685 UNSUPPORTED("c3ab28lpww2nrulbu0e7eei8t"); // for (i = 1; i < sides; i++) {
1686 UNSUPPORTED("docqulnbkxq1u4xzeygy173ha"); // bb.LL.x = MIN(bb.LL.x,verts[i].x);
1687 UNSUPPORTED("162k3p74x02qk563wm0i4f5wy"); // bb.LL.y = MIN(bb.LL.y,verts[i].y);
1688 UNSUPPORTED("2puay77reaetlg69b3esmertj"); // bb.UR.x = MAX(bb.UR.x,verts[i].x);
1689 UNSUPPORTED("f4uggsyc6kisqh04h7ykmypit"); // bb.UR.y = MAX(bb.UR.y,verts[i].y);
1690 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1691 UNSUPPORTED("5v5hh30squmit8o2i5hs25eig"); // return bb;
1692 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1693
1694 throw new UnsupportedOperationException();
1695 }
1696
1697
1698
1699
1700 //3 bz7kjecium6a7xa39qfobwwnc
1701 // void updateBB(graph_t * g, textlabel_t * lp)
1702 public static void updateBB(ST_Agraph_s g, ST_textlabel_t lp) {
1703 ENTERING("bz7kjecium6a7xa39qfobwwnc","updateBB");
1704 try {
1705 GD_bb(g).___(addLabelBB(GD_bb(g), lp, GD_flip(g)!=0));
1706 } finally {
1707 LEAVING("bz7kjecium6a7xa39qfobwwnc","updateBB");
1708 }
1709 }
1710
1711
1712
1713
1714 //3 2dhrilz05n4iopa5go0ir09tq
1715 // void compute_bb(graph_t * g)
1716 public static Object compute_bb(Object... arg) {
1717 UNSUPPORTED("43z8pxvn2vwb16wsrtd6eb4x4"); // void compute_bb(graph_t * g)
1718 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1719 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
1720 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
1721 UNSUPPORTED("84lrde5ocrrgm9zv1ge9e8pwa"); // boxf b, bb;
1722 UNSUPPORTED("bzz7vodjegzgwxp8jzgkq3uti"); // boxf BF;
1723 UNSUPPORTED("5tn3u3gu9sfzv423lmms9ruht"); // pointf ptf, s2;
1724 UNSUPPORTED("dzpsknrwv8qkqq20hjnjpjn68"); // int i, j;
1725 UNSUPPORTED("331ilq8vsdj6hvow2dqcknbw9"); // if ((agnnodes(g) == 0) && (GD_n_cluster(g) ==0)) {
1726 UNSUPPORTED("6v3sw7pm6nazbrivryo4463ge"); // bb.LL = pointfof(0, 0);
1727 UNSUPPORTED("8fv5furomnqnewjrz8lsz5ks5"); // bb.UR = pointfof(0, 0);
1728 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
1729 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1730 UNSUPPORTED("f2nzvg1xnr11v28w2feg923cs"); // bb.LL = pointfof(INT_MAX, INT_MAX);
1731 UNSUPPORTED("7tttoj8cnxfqgnq2aagnnav48"); // bb.UR = pointfof(-INT_MAX, -INT_MAX);
1732 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1733 UNSUPPORTED("bp0gyw9zhjswqzd12yj9rxiao"); // ptf = coord(n);
1734 UNSUPPORTED("9vcwhl1ztgy395x3g3p27b3vp"); // s2.x = ND_xsize(n) / 2.0;
1735 UNSUPPORTED("97s3sp93769x79ow3rretvxt6"); // s2.y = ND_ysize(n) / 2.0;
1736 UNSUPPORTED("ecbpdzff34gb4naalyrxe5vzo"); // b.LL = sub_pointf(ptf, s2);
1737 UNSUPPORTED("52nsauaebr58m4f8afw1zu6mi"); // b.UR = add_pointf(ptf, s2);
1738 UNSUPPORTED("1p5j3as8potjryco1p28zv0ns"); // EXPANDBB(bb,b);
1739 UNSUPPORTED("1nfehzcu9dg4m0zqniggw0myh"); // if (ND_xlabel(n) && ND_xlabel(n)->set) {
1740 UNSUPPORTED("34rij3kl1x5ia5ytk2qaqgw7i"); // bb = addLabelBB(bb, ND_xlabel(n), GD_flip(g));
1741 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1742 UNSUPPORTED("e20lm4qtccvgsfq5fzjv6sjyl"); // for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
1743 UNSUPPORTED("919e52wzxh255quxj0nzwukfl"); // if (ED_spl(e) == 0)
1744 UNSUPPORTED("6hyelvzskqfqa07xtgjtvg2is"); // continue;
1745 UNSUPPORTED("ah9ldbdg46psh3ic9qv1v1w1h"); // for (i = 0; i < ED_spl(e)->size; i++) {
1746 UNSUPPORTED("96deowae58qes8jszwjgwchpi"); // for (j = 0; j < (((Agedgeinfo_t*)AGDATA(e))->spl)->list[i].size; j++) {
1747 UNSUPPORTED("bm6ktup8tdejk1tq38xkq18zx"); // ptf = ED_spl(e)->list[i].list[j];
1748 UNSUPPORTED("8xyn6e9qgao43nsgse8ya790b"); // EXPANDBP(bb,ptf);
1749 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
1750 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1751 UNSUPPORTED("bbijzcnlrgsrkf9c3lvyq1j3w"); // if (ED_label(e) && ED_label(e)->set) {
1752 UNSUPPORTED("2d569ynk5qigji0zshsuvzop9"); // bb = addLabelBB(bb, ED_label(e), GD_flip(g));
1753 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1754 UNSUPPORTED("7l6ztc2uyzzyyw47jkbmwrvpq"); // if (ED_head_label(e) && ED_head_label(e)->set) {
1755 UNSUPPORTED("298664pi1qebzix2j1gdtf6rl"); // bb = addLabelBB(bb, ED_head_label(e), GD_flip(g));
1756 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1757 UNSUPPORTED("bs3i08itd9j5yeohefoglkqh5"); // if (ED_tail_label(e) && ED_tail_label(e)->set) {
1758 UNSUPPORTED("f4hck0g41boxn60os1w41wcok"); // bb = addLabelBB(bb, ED_tail_label(e), GD_flip(g));
1759 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1760 UNSUPPORTED("ceshtn0f3py2v4gcpqi8gemwj"); // if (ED_xlabel(e) && ED_xlabel(e)->set) {
1761 UNSUPPORTED("9ssocbm4ep6gx5dquinuttjh4"); // bb = addLabelBB(bb, ED_xlabel(e), GD_flip(g));
1762 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1763 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1764 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1765 UNSUPPORTED("7naa6f8pevjidfr7m41eli6xj"); // for (i = 1; i <= GD_n_cluster(g); i++) {
1766 UNSUPPORTED("ayvgjv5zau71cgcmznfyselk7"); // B2BF(GD_bb(GD_clust(g)[i]), BF);
1767 UNSUPPORTED("43e6y2c5ngcxuspv36aq0fc8k"); // EXPANDBB(bb,BF);
1768 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1769 UNSUPPORTED("6rirb177r8kbx1j7f9jeot4rl"); // if (GD_label(g) && GD_label(g)->set) {
1770 UNSUPPORTED("8n0mzjgupx6e90manf0a8tmtc"); // bb = addLabelBB(bb, GD_label(g), GD_flip(g));
1771 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1772 UNSUPPORTED("8pjanfm12ixxbeb7k86g3z5p4"); // GD_bb(g) = bb;
1773 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1774
1775 throw new UnsupportedOperationException();
1776 }
1777
1778
1779
1780
1781 //3 1ihcngl4nnl0l3a4lazjawjak
1782 // int is_a_cluster (Agraph_t* g)
1783 public static Object is_a_cluster(Object... arg) {
1784 UNSUPPORTED("c7v1kpsifryrniar3pr9lj2vb"); // int is_a_cluster (Agraph_t* g)
1785 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1786 UNSUPPORTED("ey170unvby4qz57rfy4vs0l9f"); // return ((g == g->root) || (!strncasecmp(agnameof(g), "cluster", 7)));
1787 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1788
1789 throw new UnsupportedOperationException();
1790 }
1791
1792
1793
1794
1795 //3 3eb5x8fxszk05rs03aw3w8bal
1796 // Agsym_t *setAttr(graph_t * g, void *obj, char *name, char *value, Agsym_t * ap)
1797 public static Object setAttr(Object... arg) {
1798 UNSUPPORTED("7hwd7388n90vnhk5ry6nk24pv"); // Agsym_t *setAttr(graph_t * g, void *obj, char *name, char *value,
1799 UNSUPPORTED("4gdje67ttlpied9791ewdlrd0"); // Agsym_t * ap)
1800 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1801 UNSUPPORTED("cofg42y3teruvnmgv4yvovh4w"); // if (ap == (void *)0) {
1802 UNSUPPORTED("6wt2bbghw1qt1af7ak7o9gfgo"); // switch (agobjkind(obj)) {
1803 UNSUPPORTED("9t6es77h0301xk4n035emz6o"); // case AGRAPH:
1804 UNSUPPORTED("84ratfisjulkdxpfwy3c9htyz"); // ap = agattr(g, AGRAPH,name, "");
1805 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1806 UNSUPPORTED("4ih7nalu307xv8wvdpmgy537r"); // case AGNODE:
1807 UNSUPPORTED("71ugdg0a02c8zpt280ynq3cea"); // ap = agattr(g,AGNODE, name, "");
1808 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1809 UNSUPPORTED("5lnuird1e17irkx6ami31gay1"); // case AGEDGE:
1810 UNSUPPORTED("8xoc5xyqthnaqwgkuofzm1lup"); // ap = agattr(g,AGEDGE, name, "");
1811 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1812 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1813 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1814 UNSUPPORTED("brfoeqd4pjsygr0tiki0f7wch"); // agxset(obj, ap, value);
1815 UNSUPPORTED("b8cimfvcp1vea97hyfr4m9nix"); // return ap;
1816 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1817
1818 throw new UnsupportedOperationException();
1819 }
1820
1821
1822
1823
1824 //3 68c4u42h1oec8puw4huxzsram
1825 // static node_t *clustNode(node_t * n, graph_t * cg, agxbuf * xb, graph_t * clg)
1826 public static Object clustNode(Object... arg) {
1827 UNSUPPORTED("expuexpqhy52jx8egr4nmadbq"); // static node_t *clustNode(node_t * n, graph_t * cg, agxbuf * xb,
1828 UNSUPPORTED("83ctmg1k8dzy4himebqtr1m1y"); // graph_t * clg)
1829 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1830 UNSUPPORTED("cn1mqtf5jsxe76q0gt0zfucwm"); // node_t *cn;
1831 UNSUPPORTED("dyafhx3n373qe83tgg0ggtqew"); // static int idx = 0;
1832 UNSUPPORTED("f1winj1vhwrg5thteiqcqi29i"); // char num[100];
1833 UNSUPPORTED("5mmb3522ptm4mcf9evx60ajew"); // agxbput(xb, "__");
1834 UNSUPPORTED("e2g1diasmnmoy22hb3tpytznw"); // sprintf(num, "%d", idx++);
1835 UNSUPPORTED("2k35glrj7msg2hog9ut7u9nr7"); // agxbput(xb, num);
1836 UNSUPPORTED("9jhngs0d5bkz6h4vpq5lnoyga"); // ((((xb)->ptr >= (xb)->eptr) ? agxbmore(xb,1) : 0), (int)(*(xb)->ptr++ = ((unsigned char)':')));
1837 UNSUPPORTED("a5rh1qp81ztiwxfywpk0vcapj"); // agxbput(xb, agnameof(cg));
1838 UNSUPPORTED("67zj9gekg6ygql1z3r0ph931y"); // cn = agnode(agroot(cg), (((((xb)->ptr >= (xb)->eptr) ? agxbmore(xb,1) : 0), (int)(*(xb)->ptr++ = ((unsigned char)'\0'))),(char*)((xb)->ptr = (xb)->buf)), 1);
1839 UNSUPPORTED("1xux6s5s5ce4cl1ihunt2957f"); // agbindrec(cn, "Agnodeinfo_t", sizeof(Agnodeinfo_t), (!(0)));
1840 UNSUPPORTED("8pf78abddkqif7nnus196p6w9"); // (ND_clustnode(cn) = (!(0)));
1841 UNSUPPORTED("952l8hivvgcu9neihd5oejkne"); // agsubnode(cg,cn,1);
1842 UNSUPPORTED("7rpor9cu2a5ytz59ky3yzzf3e"); // //aginsert(cg, cn);
1843 UNSUPPORTED("bnwdscnff1ajygbrinebw5tzy"); // agsubnode(clg,n,1);
1844 UNSUPPORTED("b4oovl1t2xbj981x521u2wqw9"); // //aginsert(clg, n);
1845 UNSUPPORTED("8l8f1yq18trxwvv7v0vnjksyn"); // /* set attributes */
1846 UNSUPPORTED("9xlhovy1a3tm3x50qm5at98wv"); // N_label = setAttr(agraphof(cn), cn, "label", "", N_label);
1847 UNSUPPORTED("ejig5v0kmrb3iq04qsqioadrf"); // N_style = setAttr(agraphof(cn), cn, "style", "invis", N_style);
1848 UNSUPPORTED("3x5fnrqc7r2ikzr4lb8pn0wc5"); // N_shape = setAttr(agraphof(cn), cn, "shape", "box", N_shape);
1849 UNSUPPORTED("a1e5vm1ljhru5haksozb6im5i"); // /* N_width = setAttr (cn->graph, cn, "width", "0.0001", N_width); */
1850 UNSUPPORTED("f03wmos529in1bb9hvup5hhai"); // return cn;
1851 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1852
1853 throw new UnsupportedOperationException();
1854 }
1855
1856
1857
1858
1859 //3 c1dr4tu5yewu3tcstfq3jkcfg
1860 // static int cmpItem(Dt_t * d, void *p1[], void *p2[], Dtdisc_t * disc)
1861 public static Object cmpItem(Object... arg) {
1862 UNSUPPORTED("2l8537eo2smrl3yniwkv96fhy"); // static int cmpItem(Dt_t * d, void *p1[], void *p2[], Dtdisc_t * disc)
1863 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1864 UNSUPPORTED("6z29omss9ay00bqf6xael7t6t"); // (void) d;
1865 UNSUPPORTED("8l8wg6vltx6d7vc9dzqb6n3wi"); // (void) disc;
1866 UNSUPPORTED("5dlkskltbjfd7l3iojdmxbfe7"); // if (p1[0] < p2[0])
1867 UNSUPPORTED("8d9xfgejx5vgd6shva5wk5k06"); // return -1;
1868 UNSUPPORTED("6eiz5nxr8kgzbn75d0p98o9d3"); // else if (p1[0] > p2[0])
1869 UNSUPPORTED("eleqpc2p2r3hvma6tipoy7tr"); // return 1;
1870 UNSUPPORTED("bbxeh2ijuksbga6h6yu50yytg"); // else if (p1[1] < p2[1])
1871 UNSUPPORTED("8d9xfgejx5vgd6shva5wk5k06"); // return -1;
1872 UNSUPPORTED("6abzwq2ia723vgf1rf1i65f5d"); // else if (p1[1] > p2[1])
1873 UNSUPPORTED("eleqpc2p2r3hvma6tipoy7tr"); // return 1;
1874 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
1875 UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0;
1876 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1877
1878 throw new UnsupportedOperationException();
1879 }
1880
1881
1882
1883
1884 //3 bsharuh63hyx8gytgj0drcbxn
1885 // static void *newItem(Dt_t * d, item * objp, Dtdisc_t * disc)
1886 public static Object newItem(Object... arg) {
1887 UNSUPPORTED("akr8nubtu1wjzyw77dyu7l818"); // static void *newItem(Dt_t * d, item * objp, Dtdisc_t * disc)
1888 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1889 UNSUPPORTED("99a4mnjdm29dtq83hvtof51ni"); // item *newp = (item*)zmalloc(sizeof(item));
1890 UNSUPPORTED("8l8wg6vltx6d7vc9dzqb6n3wi"); // (void) disc;
1891 UNSUPPORTED("7o3keent8kekj52p9qb43ethl"); // newp->p[0] = objp->p[0];
1892 UNSUPPORTED("3wxc6pdiqxckjf8y7mwlj0am9"); // newp->p[1] = objp->p[1];
1893 UNSUPPORTED("8gwlx3jj25pxng8pmk9zrtusa"); // newp->t = objp->t;
1894 UNSUPPORTED("9fhk60i1gsni0emh9jwo0y1ts"); // newp->h = objp->h;
1895 UNSUPPORTED("4enxnv484o23jodrkf81rxdg0"); // return newp;
1896 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1897
1898 throw new UnsupportedOperationException();
1899 }
1900
1901
1902
1903
1904 //3 9k3952c7spf98nnxwfwnp246t
1905 // static void freeItem(Dt_t * d, item * obj, Dtdisc_t * disc)
1906 public static Object freeItem(Object... arg) {
1907 UNSUPPORTED("8rxgun8stoo6nah2bndbm87b9"); // static void freeItem(Dt_t * d, item * obj, Dtdisc_t * disc)
1908 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1909 UNSUPPORTED("8are8jqzwfj87yj4tkaohi3tf"); // free(obj);
1910 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1911
1912 throw new UnsupportedOperationException();
1913 }
1914
1915
1916 //1 3q539ycox1bllayps038bsksa
1917 // static Dtdisc_t mapDisc =
1918
1919
1920
1921
1922 //3 cmped1c3ho0jglvwjjj6a228t
1923 // static edge_t *cloneEdge(edge_t * e, node_t * ct, node_t * ch)
1924 public static Object cloneEdge(Object... arg) {
1925 UNSUPPORTED("d4tyhi7zzf9xmns1lnu336v3r"); // static edge_t *cloneEdge(edge_t * e, node_t * ct, node_t * ch)
1926 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1927 UNSUPPORTED("3uzp3aqejf5j0yv2yj4jw5aj"); // graph_t *g = agraphof(ct);
1928 UNSUPPORTED("7k2dgu104ye2c3d50mokkgwhz"); // edge_t *ce = agedge(g, ct, ch,(void *)0,1);
1929 UNSUPPORTED("1927pqk9hk6k5d7t1k9he6aa9"); // agbindrec(ce, "Agedgeinfo_t", sizeof(Agedgeinfo_t), (!(0)));
1930 UNSUPPORTED("a8urs3zuslesi9orp6p4z1i6f"); // agcopyattr(e, ce);
1931 UNSUPPORTED("8yr3irjwjiayt2t3izgwmnj9g"); // return ce;
1932 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1933
1934 throw new UnsupportedOperationException();
1935 }
1936
1937
1938
1939
1940 //3 c5a3lmz7tpara4c6bxtihr7m6
1941 // static void insertEdge(Dt_t * map, void *t, void *h, edge_t * e)
1942 public static Object insertEdge(Object... arg) {
1943 UNSUPPORTED("9k64e2wql9m602qa681rgo7i7"); // static void insertEdge(Dt_t * map, void *t, void *h, edge_t * e)
1944 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1945 UNSUPPORTED("7lw765nir8wljj9gzis4zqedg"); // item dummy;
1946 UNSUPPORTED("8nu1ezwxni2hxz2f9e8v2cbb8"); // dummy.p[0] = t;
1947 UNSUPPORTED("bc8q41s8rexxkeopidu04qewp"); // dummy.p[1] = h;
1948 UNSUPPORTED("4tdxi6d9w3ukmzktg7xfyiq7q"); // dummy.t = agtail(e);
1949 UNSUPPORTED("7382qi1yckci5zkxxyjphhdt1"); // dummy.h = aghead(e);
1950 UNSUPPORTED("bdurkecw4pa63pn37lkh7haq3"); // (*(((Dt_t*)(map))->searchf))((map),(void*)(&dummy),0000001);
1951 UNSUPPORTED("bb527tszlzw34gp1ih1xn1iar"); // dummy.p[0] = h;
1952 UNSUPPORTED("47zbtmrffd896ojei9okz9ed1"); // dummy.p[1] = t;
1953 UNSUPPORTED("9vuag0zig6ymzak8fo6r3sda1"); // dummy.t = aghead(e);
1954 UNSUPPORTED("6kdaphe8fi7139t83macqveyb"); // dummy.h = agtail(e);
1955 UNSUPPORTED("bdurkecw4pa63pn37lkh7haq3"); // (*(((Dt_t*)(map))->searchf))((map),(void*)(&dummy),0000001);
1956 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1957
1958 throw new UnsupportedOperationException();
1959 }
1960
1961
1962
1963
1964 //3 dkpu53gf0kuy7km1pxs1quv6w
1965 // static item *mapEdge(Dt_t * map, edge_t * e)
1966 public static Object mapEdge(Object... arg) {
1967 UNSUPPORTED("8o6iypv3kzhmwkk0ssw2py2yj"); // static item *mapEdge(Dt_t * map, edge_t * e)
1968 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1969 UNSUPPORTED("2mkazi3rdjs334ce8xp82ihtk"); // void *key[2];
1970 UNSUPPORTED("dhcqq0dsnymbpdjw0w7s03fp"); // key[0] = agtail(e);
1971 UNSUPPORTED("djzhgnjk5pxpyo8hhiad0bwfd"); // key[1] = aghead(e);
1972 UNSUPPORTED("42lnw96k38ctgmg8vg0dkcazj"); // return (item *) (*(((Dt_t*)(map))->searchf))((map),(void*)(&key),0001000);
1973 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1974
1975 throw new UnsupportedOperationException();
1976 }
1977
1978
1979
1980
1981 //3 evei1rlt3rpux3ayqs9tyofmw
1982 // static void checkCompound(edge_t * e, graph_t * clg, agxbuf * xb, Dt_t * map, Dt_t* cmap)
1983 public static Object checkCompound(Object... arg) {
1984 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
1985 UNSUPPORTED("y76yzntmrne9d5t1m4t7ott3"); // checkCompound(edge_t * e, graph_t * clg, agxbuf * xb, Dt_t * map, Dt_t* cmap)
1986 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1987 UNSUPPORTED("24xfyvovg3es787o11thrjc92"); // graph_t *tg;
1988 UNSUPPORTED("a3ojwgag8ldublzh73whg427o"); // graph_t *hg;
1989 UNSUPPORTED("cn1mqtf5jsxe76q0gt0zfucwm"); // node_t *cn;
1990 UNSUPPORTED("apkwzmnbl05ohutf7wes9igj2"); // node_t *cn1;
1991 UNSUPPORTED("7jj1xtfi4cbw5y6yhlzh0mli4"); // node_t *t = agtail(e);
1992 UNSUPPORTED("7sdvsuo2rbo6of75bzleek8qf"); // node_t *h = aghead(e);
1993 UNSUPPORTED("2dc0glyu5z80juidpelk52ugz"); // edge_t *ce;
1994 UNSUPPORTED("11hik2e4x4z9iutby72hbrzgx"); // item *ip;
1995 UNSUPPORTED("dvxbl4pteylrj225li1lb6hx2"); // if ((ND_clustnode(h))) return;
1996 UNSUPPORTED("6mxhjii0vool4e7v7ro88ozt"); // tg = (strncmp(agnameof(t),"cluster",7)?(void *)0:findCluster(cmap,agnameof(t)));
1997 UNSUPPORTED("9h0q9kw3f1tenf4puz9oi64l"); // hg = (strncmp(agnameof(h),"cluster",7)?(void *)0:findCluster(cmap,agnameof(h)));
1998 UNSUPPORTED("h9gulavvyc3ipss9cgex8x3k"); // if (!tg && !hg)
1999 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
2000 UNSUPPORTED("60xmxr4vqgqctofdynktmr7o1"); // if (tg == hg) {
2001 UNSUPPORTED("dr3nbzpzpx0aupm54j364opox"); // agerr(AGWARN, "cluster cycle %s -- %s not supported\n", agnameof(t),
2002 UNSUPPORTED("4t2kykme4iu9016m9s14od6yh"); // agnameof(t));
2003 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
2004 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2005 UNSUPPORTED("5hnveujdt658bi20dkn93pkes"); // ip = mapEdge(map, e);
2006 UNSUPPORTED("bct0h7obrwmyxyjpdlga0lo14"); // if (ip) {
2007 UNSUPPORTED("6tq7d69sgwkznt9jdlhl5jzdj"); // cloneEdge(e, ip->t, ip->h);
2008 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
2009 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2010 UNSUPPORTED("85v9wkuzgj377kagk2q32243s"); // if (hg) {
2011 UNSUPPORTED("8esnbcsvq7wtwxyn2ds3qnzxr"); // if (tg) {
2012 UNSUPPORTED("18jmtdvbt3bs4fj4fu02ry30e"); // if (agcontains(hg, tg)) {
2013 UNSUPPORTED("97u64gola1vplk8cvf8wg60bh"); // agerr(AGWARN, "tail cluster %s inside head cluster %s\n",
2014 UNSUPPORTED("369r4tljymt875kkmgpkpyt8l"); // agnameof(tg), agnameof(hg));
2015 UNSUPPORTED("6bj8inpmr5ulm16jmfxsstjtn"); // return;
2016 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
2017 UNSUPPORTED("8o34cjwrgpnrquyxl2o3bb8zk"); // if (agcontains(tg, hg)) {
2018 UNSUPPORTED("9cr5cpb8befiu9fovqfiiljjl"); // agerr(AGWARN, "head cluster %s inside tail cluster %s\n",
2019 UNSUPPORTED("fxxb0u8d3qtcacdofimmuqac"); // agnameof(hg),agnameof(tg));
2020 UNSUPPORTED("6bj8inpmr5ulm16jmfxsstjtn"); // return;
2021 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
2022 UNSUPPORTED("71igoahydbe2dr812u1rb188n"); // cn = clustNode(t, tg, xb, clg);
2023 UNSUPPORTED("9tutq5zmo2t0l31gwnu2vwrup"); // cn1 = clustNode(h, hg, xb, clg);
2024 UNSUPPORTED("3cqe6v0gfzo0dwfrf8ns9l15c"); // ce = cloneEdge(e, cn, cn1);
2025 UNSUPPORTED("puotk7g3k7fy9jnp2axq0qqz"); // insertEdge(map, t, h, ce);
2026 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
2027 UNSUPPORTED("apxu8gru4cebxzthha8fwtfum"); // if (agcontains(hg, t)) {
2028 UNSUPPORTED("ch79b4wihrmywtrraz048h29q"); // agerr(AGWARN, "tail node %s inside head cluster %s\n",
2029 UNSUPPORTED("c0gja8mg2a5tllq0cl44kobvl"); // agnameof(t), agnameof(hg));
2030 UNSUPPORTED("6bj8inpmr5ulm16jmfxsstjtn"); // return;
2031 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
2032 UNSUPPORTED("446wbqmos7b2zyj2ps1r6kuhl"); // cn = clustNode(h, hg, xb, clg);
2033 UNSUPPORTED("bhxc2l94cwt5l1wth28b2o5pp"); // ce = cloneEdge(e, t, cn);
2034 UNSUPPORTED("puotk7g3k7fy9jnp2axq0qqz"); // insertEdge(map, t, h, ce);
2035 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2036 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
2037 UNSUPPORTED("2ps8erulnhdu23ou4uniz2hu6"); // if (agcontains(tg, h)) {
2038 UNSUPPORTED("1cjnfqs77zdcnsm0o72f90ksk"); // agerr(AGWARN, "head node %s inside tail cluster %s\n", agnameof(h),
2039 UNSUPPORTED("67ucv9k4148ltlnjqhl4rz86a"); // agnameof(tg));
2040 UNSUPPORTED("6cprbghvenu9ldc0ez1ifc63q"); // return;
2041 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2042 UNSUPPORTED("2sanft0kxtxdy21i6ukf4c05t"); // cn = clustNode(t, tg, xb, clg);
2043 UNSUPPORTED("5fxyznzitqqrmw44h44veynfw"); // ce = cloneEdge(e, cn, h);
2044 UNSUPPORTED("c7jpyix9gxyo3vaiavoxyh155"); // insertEdge(map, t, h, ce);
2045 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2046 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2047
2048 throw new UnsupportedOperationException();
2049 }
2050
2051
2052
2053
2054 //3 dwutwgt4iv7io73xbnfs967wi
2055 // int processClusterEdges(graph_t * g)
2056 public static Object processClusterEdges(Object... arg) {
2057 UNSUPPORTED("4oyug57mkqcdxkzes2u1byitf"); // int processClusterEdges(graph_t * g)
2058 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2059 UNSUPPORTED("ecz4e03zumggc8tfymqvirexq"); // int rv;
2060 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
2061 UNSUPPORTED("a9ekq0g92dftp5ha575c6yu2u"); // node_t *nxt;
2062 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
2063 UNSUPPORTED("c7d686aym108b09btq8wtbaqb"); // graph_t *clg;
2064 UNSUPPORTED("9gou5otj6s39l2cbyc8i5i5lq"); // agxbuf xb;
2065 UNSUPPORTED("ae7vbw9q2eczpdja7cbbq50pn"); // Dt_t *map;
2066 UNSUPPORTED("6vtk1euczoz6qoydjb6zi2aw7"); // Dt_t *cmap = mkClustMap (g);
2067 UNSUPPORTED("h0or3v13348vfl22jqz895yc"); // unsigned char buf[128];
2068 UNSUPPORTED("ez0qg0y6sdmbdyttclx339epy"); // map = dtopen(&mapDisc, Dtoset);
2069 UNSUPPORTED("cpyda14dogcucergo5ci8essn"); // clg = agsubg(g, "__clusternodes",1);
2070 UNSUPPORTED("7gy5iqkef9rpt221qibtgi0bf"); // agbindrec(clg, "Agraphinfo_t", sizeof(Agraphinfo_t), (!(0)));
2071 UNSUPPORTED("ci65k77x1b3nq6luu69s87oup"); // agxbinit(&xb, 128, buf);
2072 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
2073 UNSUPPORTED("89a8vf7uwx9v2vh8f8epycx86"); // if ((ND_clustnode(n))) continue;
2074 UNSUPPORTED("e20lm4qtccvgsfq5fzjv6sjyl"); // for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
2075 UNSUPPORTED("7recxsc5i7btnkw1u0i1zrcke"); // checkCompound(e, clg, &xb, map, cmap);
2076 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2077 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2078 UNSUPPORTED("1at5m9ctjn3ukv5gqtfswik02"); // agxbfree(&xb);
2079 UNSUPPORTED("b6u4k91yj41tlxefwoh6asd20"); // dtclose(map);
2080 UNSUPPORTED("bdsudu527hktokp1kvhusfmoe"); // rv = agnnodes(clg);
2081 UNSUPPORTED("22i66qr930abhwgxbm0wq87o9"); // for (n = agfstnode(clg); n; n = nxt) {
2082 UNSUPPORTED("f4noczumg69t18r8ssfanvoks"); // nxt = agnxtnode(clg, n);
2083 UNSUPPORTED("d2695chnyayerv0xcynrkg7yd"); // agdelete(g, n);
2084 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2085 UNSUPPORTED("d7dekled5ml4ke75zmk09qqsx"); // agclose(clg);
2086 UNSUPPORTED("dgwcr0xmkos3gxsam25rktyub"); // if (rv)
2087 UNSUPPORTED("6pk8ar1h2wlfngow4ehgw89jz"); // (GD_flags(g) |= 1);
2088 UNSUPPORTED("5gkwwtk0stiam8elj7z38rq47"); // dtclose(cmap);
2089 UNSUPPORTED("v7vqc9l7ge2bfdwnw11z7rzi"); // return rv;
2090 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2091
2092 throw new UnsupportedOperationException();
2093 }
2094
2095
2096
2097
2098 //3 5kmpn0ajfqqlgj5cw9vpfasej
2099 // static node_t *mapN(node_t * n, graph_t * clg)
2100 public static Object mapN(Object... arg) {
2101 UNSUPPORTED("buha873k6dpip6wp1k6884zn8"); // static node_t *mapN(node_t * n, graph_t * clg)
2102 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2103 UNSUPPORTED("8cudi8s29q4uqmilbu8c75v3p"); // node_t *nn;
2104 UNSUPPORTED("8i0d7frxcvvmzhidle0zin9i0"); // char *name;
2105 UNSUPPORTED("3mtc40uaa6dfx8pj5lh3cyn1l"); // graph_t *g = agraphof(n);
2106 UNSUPPORTED("av59ae8c4mws46sf5dumz1k0s"); // Agsym_t *sym;
2107 UNSUPPORTED("bnb5n48z4b233ir0fewnxiecu"); // if (!((ND_clustnode(n))))
2108 UNSUPPORTED("bp96fem54xcxrw16cmnlpell9"); // return n;
2109 UNSUPPORTED("412fabs39sm0oyvvs0n9tys7h"); // agsubnode(clg, n, 1);
2110 UNSUPPORTED("4qyzymwl4mdlxpdvh64mgshjy"); // name = strchr(agnameof(n), ':');
2111 UNSUPPORTED("265kxn69043hh3vmr1ma8pbpg"); // assert(name);
2112 UNSUPPORTED("etbl775rsebn18g7vfu6j5ffu"); // name++;
2113 UNSUPPORTED("4y7kt4c0ur5ptmeorwazg3xbz"); // if ((nn = (agnode(g,name,0))))
2114 UNSUPPORTED("7dxo4qnacudla7r7y8669i5pg"); // return nn;
2115 UNSUPPORTED("75euvmm5puodd8n68kvjjnyub"); // nn = agnode(g, name, 1);
2116 UNSUPPORTED("a510dla8b91um8smr1ik3n40i"); // agbindrec(nn, "Agnodeinfo_t", sizeof(Agnodeinfo_t), (!(0)));
2117 UNSUPPORTED("dhxjy107eberr96dmzpl8canc"); // /* Set all attributes to default */
2118 UNSUPPORTED("606mifyx9hb1bpagnmzxrlk9z"); // for (sym = agnxtattr(g, AGNODE, (void *)0); sym; (sym = agnxtattr(g, AGNODE, sym))) {
2119 UNSUPPORTED("7rxjvkrh1kkw8g1ntegrpmqly"); // if (agxget(nn, sym) != sym->defval)
2120 UNSUPPORTED("bfyji5ohpzlfb4najikk4a9cw"); // agxset(nn, sym, sym->defval);
2121 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2122 UNSUPPORTED("ey1y9gcof82mu9xr88pebu8s3"); // return nn;
2123 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2124
2125 throw new UnsupportedOperationException();
2126 }
2127
2128
2129
2130
2131 //3 789ww738n8t5kluf6zeo8zwsj
2132 // static void undoCompound(edge_t * e, graph_t * clg)
2133 public static Object undoCompound(Object... arg) {
2134 UNSUPPORTED("4gm4tyoex45q7hsr07asvlb3v"); // static void undoCompound(edge_t * e, graph_t * clg)
2135 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2136 UNSUPPORTED("7jj1xtfi4cbw5y6yhlzh0mli4"); // node_t *t = agtail(e);
2137 UNSUPPORTED("7sdvsuo2rbo6of75bzleek8qf"); // node_t *h = aghead(e);
2138 UNSUPPORTED("e43x1qhepqnkibbp8aphz9g47"); // node_t *ntail;
2139 UNSUPPORTED("9cji9jzlewigresgaoc0ejw5f"); // node_t *nhead;
2140 UNSUPPORTED("uleojnk3a2mlkreb46gqu0hr"); // if (!((ND_clustnode(t)) || (ND_clustnode(h))))
2141 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
2142 UNSUPPORTED("55xujazl71m0logk60wzmjvtq"); // ntail = mapN(t, clg);
2143 UNSUPPORTED("7g2iurz37ys33fcir84rjj0w0"); // nhead = mapN(h, clg);
2144 UNSUPPORTED("9bery3hjtmldzatlddlbzc00j"); // cloneEdge(e, ntail, nhead);
2145 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2146
2147 throw new UnsupportedOperationException();
2148 }
2149
2150
2151
2152
2153 //3 6s7x7ut8o7wrwuw5nfdbknslk
2154 // void undoClusterEdges(graph_t * g)
2155 public static Object undoClusterEdges(Object... arg) {
2156 UNSUPPORTED("xsvmylok7lqoljd2ftvt8eki"); // void undoClusterEdges(graph_t * g)
2157 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2158 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
2159 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
2160 UNSUPPORTED("c7d686aym108b09btq8wtbaqb"); // graph_t *clg;
2161 UNSUPPORTED("cpyda14dogcucergo5ci8essn"); // clg = agsubg(g, "__clusternodes",1);
2162 UNSUPPORTED("cxzb8zj9uk5xkq6lyiraqyh5o"); // agbindrec(clg, "Agraphinfo_t", sizeof(Agraphinfo_t), (!(0)));
2163 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
2164 UNSUPPORTED("e20lm4qtccvgsfq5fzjv6sjyl"); // for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
2165 UNSUPPORTED("e133h9i48sw1xkk4miz3q5qw6"); // undoCompound(e, clg);
2166 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2167 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2168 UNSUPPORTED("6fhvmrn719v1oxev0ugv8gead"); // for (n = agfstnode(clg); n; n = agnxtnode(clg, n)) {
2169 UNSUPPORTED("d2695chnyayerv0xcynrkg7yd"); // agdelete(g, n);
2170 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2171 UNSUPPORTED("d7dekled5ml4ke75zmk09qqsx"); // agclose(clg);
2172 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2173
2174 throw new UnsupportedOperationException();
2175 }
2176
2177
2178
2179
2180 //3 6dwase854hhoz11vcuphugbij
2181 // attrsym_t* safe_dcl(graph_t * g, int obj_kind, char *name, char *def)
2182 public static Object safe_dcl(Object... arg) {
2183 UNSUPPORTED("850d7lqcvt2dszn9wl9f6zef0"); // attrsym_t*
2184 UNSUPPORTED("4dafq6zrc7d2eg2y3pxdhhp6k"); // safe_dcl(graph_t * g, int obj_kind, char *name, char *def)
2185 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2186 UNSUPPORTED("1z0y79inqwletzkfgolwkh2mm"); // attrsym_t *a = agattr(g,obj_kind,name, (void *)0);
2187 UNSUPPORTED("53xvsqb1bmjlv8zo5ey6uznyf"); // if (!a) /* attribute does not exist */
2188 UNSUPPORTED("avuy3kulsc2bvd7gtxiznnkl"); // a = agattr(g,obj_kind,name,def);
2189 UNSUPPORTED("3gfohtnqgemf2e1akg4je944a"); // return a;
2190 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2191
2192 throw new UnsupportedOperationException();
2193 }
2194
2195
2196
2197
2198 //3 8vn95uhvbccfyutd9itvpk8vy
2199 // static int comp_entities(const void *e1, const void *e2)
2200 public static Object comp_entities(Object... arg) {
2201 UNSUPPORTED("28uhwy0iibw08ehww04k9s3le"); // static int comp_entities(const void *e1, const void *e2) {
2202 UNSUPPORTED("3c7l2zx25w9zqhkqe16urhizu"); // return strcmp(((struct entities_s *)e1)->name, ((struct entities_s *)e2)->name);
2203 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2204
2205 throw new UnsupportedOperationException();
2206 }
2207
2208
2209
2210
2211 //3 7t94y8iigozdjfx36lfzyak08
2212 // char* scanEntity (char* t, agxbuf* xb)
2213 public static Object scanEntity(Object... arg) {
2214 UNSUPPORTED("bz1schmt8gz4xlf2x79u589jz"); // char* scanEntity (char* t, agxbuf* xb)
2215 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2216 UNSUPPORTED("ecs59z0l3j60cvfc1n8vabb0n"); // char* endp = strchr (t, ';');
2217 UNSUPPORTED("bzu1jieuhoy6jahlnld5cybzk"); // struct entities_s key, *res;
2218 UNSUPPORTED("coa0oz6l6jdsodktc0tdnc2cb"); // int len;
2219 UNSUPPORTED("90hm5x3gtehrl08u4s3bb5h5s"); // char buf[8+1];
2220 UNSUPPORTED("egvn4me3pgt2km0tpawwhhk2t"); // ((((xb)->ptr >= (xb)->eptr) ? agxbmore(xb,1) : 0), (int)(*(xb)->ptr++ = ((unsigned char)'&')));
2221 UNSUPPORTED("981k5uhzqy8u4eweluhu3ajcc"); // if (!endp) return t;
2222 UNSUPPORTED("405o5srxruhaurslvb8fxibcs"); // if (((len = endp-t) > 8) || (len < 2)) return t;
2223 UNSUPPORTED("1m465yt5bfo53jvd170k1s0uf"); // strncpy (buf, t, len);
2224 UNSUPPORTED("3w01p3l63zt07scumxz12foyc"); // buf[len] = '\0';
2225 UNSUPPORTED("22hhi6szy0artz9sx31yn993t"); // key.name = buf;
2226 UNSUPPORTED("1p9rtkc428xvwvxqu9ulqllbq"); // res = bsearch(&key, entities, 252,
2227 UNSUPPORTED("6ucfe24q86v1s0pnugf94k0o1"); // sizeof(entities[0]), comp_entities);
2228 UNSUPPORTED("9degteg0v0woertf357m3p670"); // if (!res) return t;
2229 UNSUPPORTED("62f6a0uh98flc5r4sp8ye5una"); // sprintf (buf, "%d", res->value);
2230 UNSUPPORTED("9kxympmoesjmhxkjfyrue546g"); // ((((xb)->ptr >= (xb)->eptr) ? agxbmore(xb,1) : 0), (int)(*(xb)->ptr++ = ((unsigned char)'#')));
2231 UNSUPPORTED("5q33wkzo42rb2ovinz8n32geq"); // agxbput(xb, buf);
2232 UNSUPPORTED("ylj9ttyordcfgahnlqhhobod"); // ((((xb)->ptr >= (xb)->eptr) ? agxbmore(xb,1) : 0), (int)(*(xb)->ptr++ = ((unsigned char)';')));
2233 UNSUPPORTED("29skqtq6yonorv6xk81t19v7j"); // return (endp+1);
2234 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2235
2236 throw new UnsupportedOperationException();
2237 }
2238
2239
2240
2241
2242 //3 6ol0iqfokq31kpiqngns9cnkm
2243 // static int htmlEntity (char** s)
2244 public static Object htmlEntity(Object... arg) {
2245 UNSUPPORTED("eyp5xkiyummcoc88ul2b6tkeg"); // static int
2246 UNSUPPORTED("61r6m6shucv4zvnmx9obkeu9e"); // htmlEntity (char** s)
2247 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2248 UNSUPPORTED("aexhdud6z2wbwwi73yppp0ynl"); // char *p;
2249 UNSUPPORTED("bzu1jieuhoy6jahlnld5cybzk"); // struct entities_s key, *res;
2250 UNSUPPORTED("22sdohyy8v7963m1iifyxam9d"); // char entity_name_buf[8+1];
2251 UNSUPPORTED("cha3ynahkzif8mjf2aasyan4p"); // unsigned char* str = *(unsigned char**)s;
2252 UNSUPPORTED("6iar0dtf0ozvirclx3rsu5ywk"); // unsigned int byte;
2253 UNSUPPORTED("4q8bcbceil82j5ssfuh8q4fhu"); // int i, n = 0;
2254 UNSUPPORTED("8xwfccpasv03cb2aijwrkxrt8"); // byte = *str;
2255 UNSUPPORTED("f1y8qnn6iohzeg8fx1fsww8wz"); // if (byte == '#') {
2256 UNSUPPORTED("47brdazpxh26941mcbd57m5w"); // byte = *(str + 1);
2257 UNSUPPORTED("8lhwl4wznsahr1vgtzqnvsgqp"); // if (byte == 'x' || byte == 'X') {
2258 UNSUPPORTED("9kdayjiewvd52f72h664pmhy4"); // for (i = 2; i < 8; i++) {
2259 UNSUPPORTED("58bvsjm19jatr5xgbuetim3c"); // byte = *(str + i);
2260 UNSUPPORTED("7ry0uw9esv0a55bciqzqr7dt0"); // if (byte >= 'A' && byte <= 'F')
2261 UNSUPPORTED("efm984116x5zq1dui5ll11r0k"); // byte = byte - 'A' + 10;
2262 UNSUPPORTED("30cf1s08yhe1dm0wfrzai7qj9"); // else if (byte >= 'a' && byte <= 'f')
2263 UNSUPPORTED("dmoz94y1j59da7u2zxu75l949"); // byte = byte - 'a' + 10;
2264 UNSUPPORTED("9sus494ncxh3tbij66aefjaji"); // else if (byte >= '0' && byte <= '9')
2265 UNSUPPORTED("70r2dn1krhunm4u7uw43urh5b"); // byte = byte - '0';
2266 UNSUPPORTED("7e1uy5mzei37p66t8jp01r3mk"); // else
2267 UNSUPPORTED("ctqmerohp1f69mb1v1t20jx33"); // break;
2268 UNSUPPORTED("ai4db41odnnfnokairbrylj2a"); // n = (n * 16) + byte;
2269 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
2270 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2271 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
2272 UNSUPPORTED("bkj5d6ozqtq7ttrkpmp5p719j"); // for (i = 1; i < 8; i++) {
2273 UNSUPPORTED("58bvsjm19jatr5xgbuetim3c"); // byte = *(str + i);
2274 UNSUPPORTED("2rd77g61lvh7l0oq5bxbu866w"); // if (byte >= '0' && byte <= '9')
2275 UNSUPPORTED("c8u6dbnnbecfd71yts7yps8l8"); // n = (n * 10) + (byte - '0');
2276 UNSUPPORTED("7e1uy5mzei37p66t8jp01r3mk"); // else
2277 UNSUPPORTED("czyohktf9bkx4udfqhx42f4lu"); // break;
2278 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
2279 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2280 UNSUPPORTED("5kruz0luqhpkxlt2rqdj7qe9y"); // if (byte == ';') {
2281 UNSUPPORTED("e7p6jds2xupttn34j7k97koje"); // str += i+1;
2282 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2283 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
2284 UNSUPPORTED("902oeel2kkuedgae5ujakzjhy"); // n = 0;
2285 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2286 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2287 UNSUPPORTED("1nyzbeonram6636b1w955bypn"); // else {
2288 UNSUPPORTED("e63mn7kr8jrvjhx7i9grnwgnq"); // key.name = p = entity_name_buf;
2289 UNSUPPORTED("avuwvye3hioreemrm282n46zz"); // for (i = 0; i < 8; i++) {
2290 UNSUPPORTED("ax9o0naqvr50ld6sknp2j1b44"); // byte = *(str + i);
2291 UNSUPPORTED("ddy91zgs9bt560h592o4j4zww"); // if (byte == '\0') break;
2292 UNSUPPORTED("a4ymj4wcljef0f889dm6ypyc6"); // if (byte == ';') {
2293 UNSUPPORTED("9hm2gc1ly30ctjxthh7ce9kr4"); // *p++ = '\0';
2294 UNSUPPORTED("3i427o0072j16pqppnwmfigbx"); // res = bsearch(&key, entities, 252,
2295 UNSUPPORTED("d4pg41mh9zro8muax20xcn7rt"); // sizeof(entities[0]), *comp_entities);
2296 UNSUPPORTED("4b5oorrowb2d761jp0u4kh8n1"); // if (res) {
2297 UNSUPPORTED("xetj9qmi9xudhpu0fa8ucl4h"); // n = res->value;
2298 UNSUPPORTED("99m08trqtau3p70at3g9nkyj6"); // str += i+1;
2299 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
2300 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
2301 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
2302 UNSUPPORTED("d79b803cv2twmevybf99njur6"); // *p++ = byte;
2303 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2304 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2305 UNSUPPORTED("84mp0v655u5xocqmax8egxonv"); // *s = (char*)str;
2306 UNSUPPORTED("69hc24ic55i66g8tf2ne42327"); // return n;
2307 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2308
2309 throw new UnsupportedOperationException();
2310 }
2311
2312
2313
2314
2315 //3 e3fdq03jg6298zgwjnftvhivy
2316 // static unsigned char cvtAndAppend (unsigned char c, agxbuf* xb)
2317 public static Object cvtAndAppend(Object... arg) {
2318 UNSUPPORTED("at0aua2ntxsp0j1h4yidmr4si"); // static unsigned char
2319 UNSUPPORTED("dh6zi66v19z0wdg8u346fccp4"); // cvtAndAppend (unsigned char c, agxbuf* xb)
2320 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2321 UNSUPPORTED("aqjwq3fk7zmi0i48c6b3bdyn1"); // char buf[2];
2322 UNSUPPORTED("yiuh599p05f2mpu2e3pesu2o"); // char* s;
2323 UNSUPPORTED("a4px33i4moqe8ybwatz0g8k6"); // char* p;
2324 UNSUPPORTED("dwe86466ugstemepdfk8yzphz"); // int len;
2325 UNSUPPORTED("5q4ts22itevk0jgej86bk287q"); // buf[0] = c;
2326 UNSUPPORTED("nw02pwbnc00xo3a3qlx6r8r9"); // buf[1] = '\0';
2327 UNSUPPORTED("20haqm26n7i0pwyh3s5hhdatk"); // p = s = latin1ToUTF8 (buf);
2328 UNSUPPORTED("2xuf8h1bzawprd2j4asj2e8ja"); // len = strlen(s);
2329 UNSUPPORTED("3l8ud5i4y8a5dq0mtvlvixp91"); // while (len-- > 1)
2330 UNSUPPORTED("6pe2vbb93li7px1jaorf811ph"); // ((((xb)->ptr >= (xb)->eptr) ? agxbmore(xb,1) : 0), (int)(*(xb)->ptr++ = ((unsigned char)*p++)));
2331 UNSUPPORTED("3rr9o0qklmhj4jn7bft2nr8td"); // c = *p;
2332 UNSUPPORTED("f1430a029xzg8cabffg2k9l6j"); // free (s);
2333 UNSUPPORTED("bskm24m9z4b23box60oxnymv"); // return c;
2334 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2335
2336 throw new UnsupportedOperationException();
2337 }
2338
2339
2340
2341
2342 //3 9yungx7uxqkmzfh2ub6gs9l48
2343 // char* htmlEntityUTF8 (char* s, graph_t* g)
2344 public static CString htmlEntityUTF8(CString s, ST_Agraph_s g) {
2345 ENTERING("9yungx7uxqkmzfh2ub6gs9l48","htmlEntityUTF8");
2346 try {
2347 LOG2("htmlEntityUTF8 "+s);
2348 if (s!=null) return s.duplicate();
2349 UNSUPPORTED("1xtgr84lklglr4gz1i1m3t30"); // char* htmlEntityUTF8 (char* s, graph_t* g)
2350 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2351 UNSUPPORTED("a86rc8dlb4bgtjxjhv43cnmup"); // static graph_t* lastg;
2352 UNSUPPORTED("1gn88eczuyt54egtiulqe7y7h"); // static boolean warned;
2353 UNSUPPORTED("3rzf3h52xn02xrxie111286a0"); // char* ns;
2354 UNSUPPORTED("9gou5otj6s39l2cbyc8i5i5lq"); // agxbuf xb;
2355 UNSUPPORTED("esg3s800dx899v69pkng2kavv"); // unsigned char buf[BUFSIZ];
2356 UNSUPPORTED("10sir32iwi5l2jyfgp65pihto"); // unsigned char c;
2357 UNSUPPORTED("4urrp9tny84a3cm8ycya896x3"); // unsigned int v;
2358 UNSUPPORTED("d5druw9z4e87khtgyeivjngvc"); // int ignored;
2359 UNSUPPORTED("4fymyfhfc3ddededhxw7cs671"); // int uc;
2360 UNSUPPORTED("d6z43cxggqxq7iq4puyluzkfn"); // int ui;
2361 UNSUPPORTED("4pgl4pn1cad2whf242bntmjre"); // (void) ignored;
2362 UNSUPPORTED("t65eqheg8dxzi237a648t66j"); // if (lastg != g) {
2363 UNSUPPORTED("emyoumradju26mhebq2bewtva"); // lastg = g;
2364 UNSUPPORTED("9ys85d2ctjb1a9ra0n11o2a2r"); // warned = 0;
2365 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2366 UNSUPPORTED("3jwm77zyv02ukrvjv9jppejf7"); // agxbinit(&xb, BUFSIZ, buf);
2367 UNSUPPORTED("11zj3p308ttro04hrzowx0vrh"); // while ((c = *(unsigned char*)s++)) {
2368 UNSUPPORTED("3xqp191v0egfea0z3ds5p1mjt"); // if (c < 0xC0)
2369 UNSUPPORTED("4j200801m87vnfrkblygi6ucj"); // /*
2370 UNSUPPORTED("1egwnjpl995mff91kquf9ikvl"); // * Handles properly formed UTF-8 characters between
2371 UNSUPPORTED("8rfd02x8qlye0oo8ro9u9g8ya"); // * 0x01 and 0x7F. Also treats \0 and naked trail
2372 UNSUPPORTED("49xkviec8w4s3zvlq13991yqh"); // * bytes 0x80 to 0xBF as valid characters representing
2373 UNSUPPORTED("bg2026u05g8jo9nm9pr39cknl"); // * themselves.
2374 UNSUPPORTED("20m1lc1moer8x00tx9ceto0iw"); // */
2375 UNSUPPORTED("6g3zbtp7zrl9i7jz1if5yi7rj"); // uc = 0;
2376 UNSUPPORTED("5ks80mtyizjvlnrh1bwebqrx7"); // else if (c < 0xE0)
2377 UNSUPPORTED("2gr59wt9ibszrzwii40dqyd5b"); // uc = 1;
2378 UNSUPPORTED("2su1o4swg92stlgi53k4ydm5u"); // else if (c < 0xF0)
2379 UNSUPPORTED("c0zrulbhqoupyvbwpwapfpc70"); // uc = 2;
2380 UNSUPPORTED("dveaae8p8nhz8gosmtiftudrz"); // else if (c < 0xF8)
2381 UNSUPPORTED("a4c1bzq46y652vgwpxsruptth"); // uc = 3;
2382 UNSUPPORTED("3jir07ymknf0hmb9pv9x4dr3o"); // else {
2383 UNSUPPORTED("ar52jlyh4qqazbcbvntg2wet6"); // uc = -1;
2384 UNSUPPORTED("ame11lb7ylv3rp1nhtuq383du"); // if (!warned) {
2385 UNSUPPORTED("7acv020k6kt3q8tholp3ex0qa"); // agerr(AGWARN, "UTF8 codes > 4 bytes are not currently supported (graph %s) - treated as Latin-1. Perhaps \"-Gcharset=latin1\" is needed?\n", agnameof(g));
2386 UNSUPPORTED("qr4o1w9xvn1ayc52y0f4c8bh"); // warned = 1;
2387 UNSUPPORTED("7g94ubxa48a1yi3mf9v521b7c"); // }
2388 UNSUPPORTED("ejqmh8ox9uoy02anzqhcxcrro"); // c = cvtAndAppend (c, &xb);
2389 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
2390 UNSUPPORTED("8n9ts84r09bm29qdb7v2og087"); // if (uc == 0 && c == '&') {
2391 UNSUPPORTED("3cziqu94ggcy3m9kpbpdefqgk"); // /* replace html entity sequences like: &amp;
2392 UNSUPPORTED("1c1fqb40szvpdlekj4as5qcqq"); // * and: &#123; with their UTF8 equivalents */
2393 UNSUPPORTED("buyl72klnvh12cf4m578joukc"); // v = htmlEntity (&s);
2394 UNSUPPORTED("1fj0k3ba7vy9tjmjnc4d4mujb"); // if (v) {
2395 UNSUPPORTED("aso1t4v0cars70ngqafalmoeq"); // if (v < 0x7F) /* entity needs 1 byte in UTF8 */
2396 UNSUPPORTED("777bke4pyf77uol5s5d6qk0i6"); // c = v;
2397 UNSUPPORTED("4wqu3fuzmckazc7eb1vvoxspn"); // else if (v < 0x07FF) { /* entity needs 2 bytes in UTF8 */
2398 UNSUPPORTED("2b9x6g0k8a00ty06llcyp6cqu"); // ignored = ((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)(v >> 6) | 0xC0)));
2399 UNSUPPORTED("el4sow483b296l5o1hy6oqkzp"); // c = (v & 0x3F) | 0x80;
2400 UNSUPPORTED("dkxvw03k2gg9anv4dbze06axd"); // }
2401 UNSUPPORTED("163d4s8voz31qrt0e4c8ysn9e"); // else { /* entity needs 3 bytes in UTF8 */
2402 UNSUPPORTED("4tpuwv4i0wslspyymoqhdxsvd"); // ignored = ((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)(v >> 12) | 0xE0)));
2403 UNSUPPORTED("8unuta6ydloexb267kdf96wi"); // ignored = ((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)((v >> 6) & 0x3F) | 0x80)));
2404 UNSUPPORTED("el4sow483b296l5o1hy6oqkzp"); // c = (v & 0x3F) | 0x80;
2405 UNSUPPORTED("dkxvw03k2gg9anv4dbze06axd"); // }
2406 UNSUPPORTED("dkxvw03k2gg9anv4dbze06axd"); // }
2407 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
2408 UNSUPPORTED("atwq5cvh75c4mpqr6f8bepwkd"); // else /* copy n byte UTF8 characters */
2409 UNSUPPORTED("75h3d3pcb66cff2xszmbwxny0"); // for (ui = 0; ui < uc; ++ui)
2410 UNSUPPORTED("75m8b2zfuuay6o25xl08y168m"); // if ((*s & 0xC0) == 0x80) {
2411 UNSUPPORTED("2bav6kbg19gemwcsyepjeg52u"); // ignored = ((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)c)));
2412 UNSUPPORTED("5kkh713qn8pc4dhd3omuop8qk"); // c = *(unsigned char*)s++;
2413 UNSUPPORTED("7nxu74undh30brb8laojud3f9"); // }
2414 UNSUPPORTED("69mmu86j5iw8x34fdfo0k59ff"); // else {
2415 UNSUPPORTED("cjh6htddtrrxjuyqzavdlw01o"); // if (!warned) {
2416 UNSUPPORTED("8ljhi9erpokpqsnveckujskly"); // agerr(AGWARN, "Invalid %d-byte UTF8 found in input of graph %s - treated as Latin-1. Perhaps \"-Gcharset=latin1\" is needed?\n", uc + 1, agnameof(g));
2417 UNSUPPORTED("8sgutsruuu83a337z05bvytk0"); // warned = 1;
2418 UNSUPPORTED("3d2mow5zy6q4vrtc38f78ucgh"); // }
2419 UNSUPPORTED("8jh5xw3y1bjy4poswq4h2wk4n"); // c = cvtAndAppend (c, &xb);
2420 UNSUPPORTED("ctqmerohp1f69mb1v1t20jx33"); // break;
2421 UNSUPPORTED("g2y6e9pld3899aejuqyr2x25"); // }
2422 UNSUPPORTED("28mab50dtpxfjz5h216ox1q6w"); // ignored = ((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)c)));
2423 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2424 UNSUPPORTED("3g7d9dp3ny3ggno64pwi7nmkg"); // ns = strdup ((((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)'\0'))),(char*)((&xb)->ptr = (&xb)->buf)));
2425 UNSUPPORTED("1at5m9ctjn3ukv5gqtfswik02"); // agxbfree(&xb);
2426 UNSUPPORTED("98aa6ybsfiu5u7r3j6fsv3snz"); // return ns;
2427 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2428
2429 throw new UnsupportedOperationException();
2430 } finally {
2431 LEAVING("9yungx7uxqkmzfh2ub6gs9l48","htmlEntityUTF8");
2432 }
2433 }
2434
2435
2436
2437
2438 //3 6spvz5rdt5uhtcpz0ypysuf8j
2439 // char* latin1ToUTF8 (char* s)
2440 public static Object latin1ToUTF8(Object... arg) {
2441 UNSUPPORTED("6k189l7y3kfe03zj65a0hi02l"); // char* latin1ToUTF8 (char* s)
2442 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2443 UNSUPPORTED("3rzf3h52xn02xrxie111286a0"); // char* ns;
2444 UNSUPPORTED("9gou5otj6s39l2cbyc8i5i5lq"); // agxbuf xb;
2445 UNSUPPORTED("esg3s800dx899v69pkng2kavv"); // unsigned char buf[BUFSIZ];
2446 UNSUPPORTED("7yeyn4giwkk2r8xfjbwuqwdgq"); // unsigned int v;
2447 UNSUPPORTED("d5druw9z4e87khtgyeivjngvc"); // int ignored;
2448 UNSUPPORTED("4pgl4pn1cad2whf242bntmjre"); // (void) ignored;
2449 UNSUPPORTED("3jwm77zyv02ukrvjv9jppejf7"); // agxbinit(&xb, BUFSIZ, buf);
2450 UNSUPPORTED("4z3yoswxkrk1x38246p01ai17"); // /* Values are either a byte (<= 256) or come from htmlEntity, whose
2451 UNSUPPORTED("7a461v6k1cu23svait528w042"); // * values are all less than 0x07FF, so we need at most 3 bytes.
2452 UNSUPPORTED("795vpnc8yojryr8b46aidsu69"); // */
2453 UNSUPPORTED("8fjxnjq1i6zgxuaaty7wolmz2"); // while ((v = *(unsigned char*)s++)) {
2454 UNSUPPORTED("3tv51fniyuldzqwej04vf24jp"); // if (v == '&') {
2455 UNSUPPORTED("ci2g1lymqorgpcbacxprxut4f"); // v = htmlEntity (&s);
2456 UNSUPPORTED("cdvw86q5dy4dmwr7iig71kx78"); // if (!v) v = '&';
2457 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
2458 UNSUPPORTED("26nwakev47c8vp1v45upgjyp3"); // if (v < 0x7F)
2459 UNSUPPORTED("bcv1n4sa19kis6cblb97g8sgx"); // ignored = ((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)v)));
2460 UNSUPPORTED("e97czqogsdpsth2jrh2kufwur"); // else if (v < 0x07FF) {
2461 UNSUPPORTED("a5h07gnh3tqz7f4mrbknarch7"); // ignored = ((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)(v >> 6) | 0xC0)));
2462 UNSUPPORTED("9a4rvaow9xmxkoagejrjrt84r"); // ignored = ((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)(v & 0x3F) | 0x80)));
2463 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2464 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
2465 UNSUPPORTED("9s2nvoskqz83rf7mkroywr1sr"); // ignored = ((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)(v >> 12) | 0xE0)));
2466 UNSUPPORTED("c3mv09jqjhqt1y3zrjw9ox53o"); // ignored = ((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)((v >> 6) & 0x3F) | 0x80)));
2467 UNSUPPORTED("9a4rvaow9xmxkoagejrjrt84r"); // ignored = ((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)(v & 0x3F) | 0x80)));
2468 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2469 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2470 UNSUPPORTED("3g7d9dp3ny3ggno64pwi7nmkg"); // ns = strdup ((((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)'\0'))),(char*)((&xb)->ptr = (&xb)->buf)));
2471 UNSUPPORTED("1at5m9ctjn3ukv5gqtfswik02"); // agxbfree(&xb);
2472 UNSUPPORTED("98aa6ybsfiu5u7r3j6fsv3snz"); // return ns;
2473 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2474
2475 throw new UnsupportedOperationException();
2476 }
2477
2478
2479
2480
2481 //3 913nrt0i8mr2gg2mz9qxdqh8o
2482 // char* utf8ToLatin1 (char* s)
2483 public static Object utf8ToLatin1(Object... arg) {
2484 UNSUPPORTED("cqm25rponse4rsi686sbn1lo0"); // char*
2485 UNSUPPORTED("8jj111wbaa8z4z3poc1q0t8y5"); // utf8ToLatin1 (char* s)
2486 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2487 UNSUPPORTED("3rzf3h52xn02xrxie111286a0"); // char* ns;
2488 UNSUPPORTED("9gou5otj6s39l2cbyc8i5i5lq"); // agxbuf xb;
2489 UNSUPPORTED("esg3s800dx899v69pkng2kavv"); // unsigned char buf[BUFSIZ];
2490 UNSUPPORTED("10sir32iwi5l2jyfgp65pihto"); // unsigned char c;
2491 UNSUPPORTED("gmcqqf9woz72oix0r5rjuoto"); // unsigned char outc;
2492 UNSUPPORTED("d5druw9z4e87khtgyeivjngvc"); // int ignored;
2493 UNSUPPORTED("4pgl4pn1cad2whf242bntmjre"); // (void) ignored;
2494 UNSUPPORTED("3jwm77zyv02ukrvjv9jppejf7"); // agxbinit(&xb, BUFSIZ, buf);
2495 UNSUPPORTED("11zj3p308ttro04hrzowx0vrh"); // while ((c = *(unsigned char*)s++)) {
2496 UNSUPPORTED("dbsfo5gpcng9982vxr7ikbf0i"); // if (c < 0x7F)
2497 UNSUPPORTED("28mab50dtpxfjz5h216ox1q6w"); // ignored = ((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)c)));
2498 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
2499 UNSUPPORTED("1ppkx26s53neuwlkgoyl230ya"); // outc = (c & 0x03) << 6;
2500 UNSUPPORTED("9d685hmukj0hf94zcu28sy09x"); // c = *(unsigned char*)s++;
2501 UNSUPPORTED("55iewluciyo7pfuwv8aez09pb"); // outc = outc | (c & 0x3F);
2502 UNSUPPORTED("bb5kgu9v5ko417jskeknpttmq"); // ignored = ((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)outc)));
2503 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2504 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2505 UNSUPPORTED("3g7d9dp3ny3ggno64pwi7nmkg"); // ns = strdup ((((((&xb)->ptr >= (&xb)->eptr) ? agxbmore(&xb,1) : 0), (int)(*(&xb)->ptr++ = ((unsigned char)'\0'))),(char*)((&xb)->ptr = (&xb)->buf)));
2506 UNSUPPORTED("1at5m9ctjn3ukv5gqtfswik02"); // agxbfree(&xb);
2507 UNSUPPORTED("98aa6ybsfiu5u7r3j6fsv3snz"); // return ns;
2508 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2509
2510 throw new UnsupportedOperationException();
2511 }
2512
2513
2514
2515
2516 //3 9bvrwdmh7tm5thehp9lgdr6xd
2517 // boolean overlap_node(node_t *n, boxf b)
2518 public static Object overlap_node(Object... arg) {
2519 UNSUPPORTED("adn6r7oz1h6uvg69bvfoypzf2"); // boolean overlap_node(node_t *n, boxf b)
2520 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2521 UNSUPPORTED("91ymmlazxnlu6a10ivd58lrnx"); // inside_t ictxt;
2522 UNSUPPORTED("2bghyit203pd6xw2ihhenzyn8"); // pointf p;
2523 UNSUPPORTED("2n2uez00ytva0jwosdu5d5x7k"); // if (! OVERLAP(b, ND_bb(n)))
2524 UNSUPPORTED("egywkvzo2t847qnathqnanvcj"); // return 0;
2525 UNSUPPORTED("2grr4abi33fuyx3ex5soymquw"); // /* FIXME - need to do something better about CLOSEENOUGH */
2526 UNSUPPORTED("42wj7lxtvc06e9sfoqihjt9xw"); // p = sub_pointf(ND_coord(n), mid_pointf(b.UR, b.LL));
2527 UNSUPPORTED("22mv67l7z7wr03u30xgx36klq"); // ictxt.s.n = n;
2528 UNSUPPORTED("6hiyxv9qcrh42rkfd32ag1cgg"); // ictxt.s.bp = (void *)0;
2529 UNSUPPORTED("1hqspal43fzxoaa3kkrp9xcb"); // return ND_shape(n)->fns->insidefn(&ictxt, p);
2530 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2531
2532 throw new UnsupportedOperationException();
2533 }
2534
2535
2536
2537
2538 //3 1iephta6pfgcjwjxaz7n7hg3h
2539 // boolean overlap_label(textlabel_t *lp, boxf b)
2540 public static Object overlap_label(Object... arg) {
2541 UNSUPPORTED("91umgryo5zqgish79s8i949au"); // boolean overlap_label(textlabel_t *lp, boxf b)
2542 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2543 UNSUPPORTED("ddb68hn23b0v9gldt5ym699jm"); // pointf s;
2544 UNSUPPORTED("2lzsl1e035wt5epd1h8f4bn8m"); // boxf bb;
2545 UNSUPPORTED("b8b14mpt61iyo7ntzox4didg"); // s.x = lp->dimen.x / 2.;
2546 UNSUPPORTED("etn8w0yctba3qwmwjypkjuh0b"); // s.y = lp->dimen.y / 2.;
2547 UNSUPPORTED("5ezm2f39sm5ob27ufs99ubibn"); // bb.LL = sub_pointf(lp->pos, s);
2548 UNSUPPORTED("1o378zsemmdu353iu9zkmnew"); // bb.UR = add_pointf(lp->pos, s);
2549 UNSUPPORTED("50ldl8awv60ft3ojv05xoapv8"); // return OVERLAP(b, bb);
2550 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2551
2552 throw new UnsupportedOperationException();
2553 }
2554
2555
2556
2557
2558 //3 1pi7b3b4i7f0w0nru6z6tl31b
2559 // static boolean overlap_arrow(pointf p, pointf u, double scale, int flag, boxf b)
2560 public static Object overlap_arrow(Object... arg) {
2561 UNSUPPORTED("2hwfhh60l88kcz3nw2gniuiic"); // static boolean overlap_arrow(pointf p, pointf u, double scale, int flag, boxf b)
2562 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2563 UNSUPPORTED("d96dzwqsrlhqx70677lolr70x"); // if (OVERLAP(b, arrow_bb(p, u, scale, flag))) {
2564 UNSUPPORTED("6pyod80f1wnsh68enzsnqykcp"); // /* FIXME - check inside arrow shape */
2565 UNSUPPORTED("3adr32h5e1fehu4g7j2u24asz"); // return (!(0));
2566 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2567 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
2568 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2569
2570 throw new UnsupportedOperationException();
2571 }
2572
2573
2574
2575
2576 //3 7ic0hdq8fpa9fby43hy9p96n
2577 // static boolean overlap_bezier(bezier bz, boxf b)
2578 public static Object overlap_bezier(Object... arg) {
2579 UNSUPPORTED("awzwsadmtjnsr4l5ln0gwca6f"); // static boolean overlap_bezier(bezier bz, boxf b)
2580 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2581 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
2582 UNSUPPORTED("2qhxg8kfts3rqa4n8y1q8tk3r"); // pointf p, u;
2583 UNSUPPORTED("1imabyiof6ysdoof2g58v139w"); // assert(bz.size);
2584 UNSUPPORTED("2cz7hdhlhljnbt4ey99pfq3mj"); // u = bz.list[0];
2585 UNSUPPORTED("9mjgetoviljxmz4j3h18bhwv"); // for (i = 1; i < bz.size; i++) {
2586 UNSUPPORTED("4nhsr51p4z60folp6yedkan7p"); // p = bz.list[i];
2587 UNSUPPORTED("1q7o633q5ykuwzssixlzk97w1"); // if (lineToBox(p, u, b) != -1)
2588 UNSUPPORTED("euj7k5raviuazd8jahwobe0r3"); // return (!(0));
2589 UNSUPPORTED("2zppgvcdlcmvkarerwttpl0cl"); // u = p;
2590 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2591 UNSUPPORTED("c30ht2dw1jfnc98f1lxaoduea"); // /* check arrows */
2592 UNSUPPORTED("dtt0q54ov71fji9i2ae24aeyc"); // if (bz.sflag) {
2593 UNSUPPORTED("6d0os47s8k0liv0ij1c9ifh5h"); // if (overlap_arrow(bz.sp, bz.list[0], 1, bz.sflag, b))
2594 UNSUPPORTED("euj7k5raviuazd8jahwobe0r3"); // return (!(0));
2595 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2596 UNSUPPORTED("4o7tep38o3pxavxbzw15khp2r"); // if (bz.eflag) {
2597 UNSUPPORTED("bxk1lvdajxp9q7k9dzq4jjalp"); // if (overlap_arrow(bz.ep, bz.list[bz.size - 1], 1, bz.eflag, b))
2598 UNSUPPORTED("euj7k5raviuazd8jahwobe0r3"); // return (!(0));
2599 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2600 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
2601 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2602
2603 throw new UnsupportedOperationException();
2604 }
2605
2606
2607
2608
2609 //3 4usdn4gxfza3j6zxmsnoslmsu
2610 // boolean overlap_edge(edge_t *e, boxf b)
2611 public static Object overlap_edge(Object... arg) {
2612 UNSUPPORTED("dfrqxx7kxp0xo56gn56prf49k"); // boolean overlap_edge(edge_t *e, boxf b)
2613 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2614 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
2615 UNSUPPORTED("6tl9mepc2bett364jduh2q4mf"); // splines *spl;
2616 UNSUPPORTED("cqwl7s9yvzr8n5v8svuuv1a1q"); // textlabel_t *lp;
2617 UNSUPPORTED("2c3cg84bl0xam4mk6g5f31jj0"); // spl = ED_spl(e);
2618 UNSUPPORTED("7hvxias4hzevaqzopdofxqtf7"); // if (spl && boxf_overlap(spl->bb, b))
2619 UNSUPPORTED("8u449ocpkq8pw6x28ydsauw7k"); // for (i = 0; i < spl->size; i++)
2620 UNSUPPORTED("2igld6ya1et1v6v507mv6oou4"); // if (overlap_bezier(spl->list[i], b))
2621 UNSUPPORTED("41w3xzxk3po8alpl4v9kz395f"); // return (!(0));
2622 UNSUPPORTED("n9pj1f2ecz41q7q378oisbjt"); // lp = ED_label(e);
2623 UNSUPPORTED("26tbjilm0lmi9lsxtc9qh7qr"); // if (lp && overlap_label(lp, b))
2624 UNSUPPORTED("a3ueikge1f8p4avpat19zoh3a"); // return (!(0));
2625 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
2626 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2627
2628 throw new UnsupportedOperationException();
2629 }
2630
2631
2632
2633
2634 //3 ckavkcnz5rcrqs17lleds1uxu
2635 // int edgeType (char* s, int dflt)
2636 public static int edgeType(CString s, int dflt) {
2637 ENTERING("ckavkcnz5rcrqs17lleds1uxu","edgeType");
2638 try {
2639 UNSUPPORTED("h9kzapvoxea4esxgom157wc0"); // int edgeType (char* s, int dflt)
2640 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2641 UNSUPPORTED("26e08yupzx95a4pzp1af0t6og"); // int et;
2642 UNSUPPORTED("73z43mn6ha09hbnvzynnbkvqg"); // if (!s || (*s == '\0')) return dflt;
2643 UNSUPPORTED("527zd48lq0ay6p16b2whyuafo"); // et = (0 << 1);
2644 UNSUPPORTED("1ctayzw7ya308i4wpppul6b9o"); // switch (*s) {
2645 UNSUPPORTED("acwxya6p4cjrbqeuf7gymcmx2"); // case '0' : /* false */
2646 UNSUPPORTED("18fcibo027r3vczxrvtju3nah"); // et = (1 << 1);
2647 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
2648 UNSUPPORTED("no8amccag0mew2zmsprfyekp"); // case '1' : /* true */
2649 UNSUPPORTED("8to0pat5o6zmyuqjfl01xs9xc"); // case '2' :
2650 UNSUPPORTED("c7icptpasun232whn2nn5gydx"); // case '3' :
2651 UNSUPPORTED("44xov6gwt91mlesh02z3zvxx"); // case '4' :
2652 UNSUPPORTED("4dwlps5sjcl550fvks2ibv2fi"); // case '5' :
2653 UNSUPPORTED("cr0jhqsceb5y1hcmvtjd1ttgu"); // case '6' :
2654 UNSUPPORTED("8jq47j7ezu18niwotmuj92cz3"); // case '7' :
2655 UNSUPPORTED("ami8xk8243o5ku0cyeqxoeiut"); // case '8' :
2656 UNSUPPORTED("3onv8t8a6v1tmfaz8y7hk9lvv"); // case '9' :
2657 UNSUPPORTED("8m599inlx0lbuns9r3iiokwxw"); // et = (5 << 1);
2658 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
2659 UNSUPPORTED("vwxe2prs0tywhf20ycwdwa8o"); // case 'c' :
2660 UNSUPPORTED("e2ux7lqsbmsyyrououuijooiy"); // case 'C' :
2661 UNSUPPORTED("8zxim9f3q8qdl919cv1v3jf8e"); // if (!strcasecmp (s+1, "urved"))
2662 UNSUPPORTED("azc7d85av8k7f1to3mr59m3mz"); // et = (2 << 1);
2663 UNSUPPORTED("b7i0q9ysed6zrjftn8ilgtn0a"); // else if (!strcasecmp (s+1, "ompound"))
2664 UNSUPPORTED("aihlhslp3nd26f10vuyjlnb3q"); // et = (6 << 1);
2665 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
2666 UNSUPPORTED("2ix1d2vw6unhjetclv9vkaw1p"); // case 'f' :
2667 UNSUPPORTED("2chzjgs8kmwelk00c6469lpx2"); // case 'F' :
2668 UNSUPPORTED("42jngi39nkk27q16s1sa7sftl"); // if (!strcasecmp (s+1, "alse"))
2669 UNSUPPORTED("7xut5zuu25vrpn9gt0f3kc5hz"); // et = (1 << 1);
2670 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
2671 UNSUPPORTED("7ozigs1hjxmhvwgapx2in25cy"); // case 'l' :
2672 UNSUPPORTED("c2gttjqnkmx1rnuyjknw7segb"); // case 'L' :
2673 UNSUPPORTED("96lnofxeiqa1g3g7s02b86h6z"); // if (!strcasecmp (s+1, "ine"))
2674 UNSUPPORTED("7xut5zuu25vrpn9gt0f3kc5hz"); // et = (1 << 1);
2675 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
2676 UNSUPPORTED("5o5i90c7m363f5yyxamxuzok6"); // case 'n' :
2677 UNSUPPORTED("3ttrfea54jmrshv2796w3a9h2"); // case 'N' :
2678 UNSUPPORTED("6qibxt06dimtp2r5spwgriorn"); // if (!strcasecmp (s+1, "one")) return et;
2679 UNSUPPORTED("bqi51jfycttyx733ls9qw2c18"); // if (!strcasecmp (s+1, "o")) return (1 << 1);
2680 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
2681 UNSUPPORTED("18t59gw7hrgsezibz7bbm0ng3"); // case 'o' :
2682 UNSUPPORTED("4q6jdsek20d4i9sc5ftmm3mdl"); // case 'O' :
2683 UNSUPPORTED("8scb0vjws7o3davin33k87o2p"); // if (!strcasecmp (s+1, "rtho"))
2684 UNSUPPORTED("48rqxx6odtdnqf676ffe1ll7g"); // et = (4 << 1);
2685 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
2686 UNSUPPORTED("5cc40qlotkkym6enwcv916835"); // case 'p' :
2687 UNSUPPORTED("al1clonjqyw2bo1z0li974ijp"); // case 'P' :
2688 UNSUPPORTED("68l1a5153ouil03qaammm1zty"); // if (!strcasecmp (s+1, "olyline"))
2689 UNSUPPORTED("5ytop08aei3hhllfd12904hh7"); // et = (3 << 1);
2690 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
2691 UNSUPPORTED("20wayzvdomwexzhjzj4wojf4d"); // case 's' :
2692 UNSUPPORTED("boxft69fzv6rof5elda0zs33z"); // case 'S' :
2693 UNSUPPORTED("3qs8m2esm62d50tk701b8m0xz"); // if (!strcasecmp (s+1, "pline"))
2694 UNSUPPORTED("5l4kd6c21h4bjm98grnqqwra6"); // et = (5 << 1);
2695 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
2696 UNSUPPORTED("ce41quxcxpj3oi50zybc75b9r"); // case 't' :
2697 UNSUPPORTED("8drchetff3h6zpsu3m08rqi0q"); // case 'T' :
2698 UNSUPPORTED("7ln0pymv14hb45h3ypy5955nk"); // if (!strcasecmp (s+1, "rue"))
2699 UNSUPPORTED("5l4kd6c21h4bjm98grnqqwra6"); // et = (5 << 1);
2700 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
2701 UNSUPPORTED("3d55ucqxr8xg0otty2j39hkgz"); // case 'y' :
2702 UNSUPPORTED("7oihco3xpq1kek2q2dnrfxmcx"); // case 'Y' :
2703 UNSUPPORTED("679wmbnx0dakltwkxx2svg5ex"); // if (!strcasecmp (s+1, "es"))
2704 UNSUPPORTED("5l4kd6c21h4bjm98grnqqwra6"); // et = (5 << 1);
2705 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
2706 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2707 UNSUPPORTED("ckjgbybnvrshn8g32qqpy0ppd"); // if (!et) {
2708 UNSUPPORTED("79f40sxqwmzmgk4ktfha59mxf"); // agerr(AGWARN, "Unknown \"splines\" value: \"%s\" - ignored\n", s);
2709 UNSUPPORTED("mjiefsvltip3uasxic0uipa9"); // et = dflt;
2710 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2711 UNSUPPORTED("68yadra75shcc0tia9wr9acr4"); // return et;
2712 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2713
2714 throw new UnsupportedOperationException();
2715 } finally {
2716 LEAVING("ckavkcnz5rcrqs17lleds1uxu","edgeType");
2717 }
2718 }
2719
2720
2721
2722
2723 //3 13cpqbf2ztcjdfz4a6v7nv00u
2724 // void setEdgeType (graph_t* g, int dflt)
2725 public static void setEdgeType(ST_Agraph_s g, int dflt) {
2726 ENTERING("13cpqbf2ztcjdfz4a6v7nv00u","setEdgeType");
2727 try {
2728 CString s = agget(g, new CString("splines"));
2729 int et;
2730 if (N(s)) {
2731 et = dflt;
2732 }
2733 else if (s.charAt(0) == '\0') {
2734 et = (0 << 1);
2735 }
2736 else et = edgeType (s, dflt);
2737 GD_flags(g, GD_flags(g) | et);
2738 } finally {
2739 LEAVING("13cpqbf2ztcjdfz4a6v7nv00u","setEdgeType");
2740 }
2741 }
2742
2743
2744
2745
2746 //3 azj18si1ncbqf4nggo3u0iudc
2747 // void get_gradient_points(pointf * A, pointf * G, int n, float angle, int flags)
2748 public static Object get_gradient_points(Object... arg) {
2749 UNSUPPORTED("4l4q9435jsq43snp6e2muhph9"); // void get_gradient_points(pointf * A, pointf * G, int n, float angle, int flags)
2750 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2751 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
2752 UNSUPPORTED("28vm7zytm26lbctmzklz8u6q4"); // double rx, ry;
2753 UNSUPPORTED("7ab1r7u9bshphtezjbwilzdmk"); // pointf min,max,center;
2754 UNSUPPORTED("38fmmbbh3d9td4hgcigqek69h"); // int isRadial = flags & 1;
2755 UNSUPPORTED("6do922drsqikinsq2qnkg7i9s"); // int isRHS = flags & 2;
2756 UNSUPPORTED("cc4iipfhbkh9s7bgnq075nve2"); // if (n == 2) {
2757 UNSUPPORTED("2fbod9hk6xm53a1498zx6wkml"); // rx = A[1].x - A[0].x;
2758 UNSUPPORTED("znji09lgzos7bzfy4sn5z6so"); // ry = A[1].y - A[0].y;
2759 UNSUPPORTED("4rfhu73bo5qnu4zlhm9409rov"); // min.x = A[0].x - rx;
2760 UNSUPPORTED("e7n9ri71momrymdb7nem5dv3i"); // max.x = A[0].x + rx;
2761 UNSUPPORTED("5t50nyboj2kmqnva1b3oy3lej"); // min.y = A[0].y - ry;
2762 UNSUPPORTED("2pccas4c05y6rl29xqoxu9es1"); // max.y = A[0].y + ry;
2763 UNSUPPORTED("5ja432xa5mdtoxr8hjvwurrzk"); // }
2764 UNSUPPORTED("1nyzbeonram6636b1w955bypn"); // else {
2765 UNSUPPORTED("2xg1e592fyexnv8p3cfuhf387"); // min.x = max.x = A[0].x;
2766 UNSUPPORTED("ae0uuyalysg56vdqam5vuysda"); // min.y = max.y = A[0].y;
2767 UNSUPPORTED("11ja3nzvfl5nh4sczk6fecswp"); // for (i = 0; i < n; i++){
2768 UNSUPPORTED("accly2buq5n3okrrptwc1ejg"); // min.x = MIN(A[i].x,min.x);
2769 UNSUPPORTED("5ovf4hu3x4sjij6tz3pru127w"); // min.y = MIN(A[i].y,min.y);
2770 UNSUPPORTED("9rhqopfwckc0sw5yyxaqkkxcd"); // max.x = MAX(A[i].x,max.x);
2771 UNSUPPORTED("7qzfxgzccflltalu1yvmxzmv9"); // max.y = MAX(A[i].y,max.y);
2772 UNSUPPORTED("dquo3qofk56ds5xl95lhvcthf"); // }
2773 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2774 UNSUPPORTED("250db9ylxbfvnh9zwkamxovj9"); // center.x = min.x + (max.x - min.x)/2;
2775 UNSUPPORTED("485zu25v4z1ve1h6ajqnq4b3f"); // center.y = min.y + (max.y - min.y)/2;
2776 UNSUPPORTED("56w11dzx832thi17odfzwz5yl"); // if (isRadial) {
2777 UNSUPPORTED("20xmg9sm748etklimkd6243x5"); // double inner_r, outer_r;
2778 UNSUPPORTED("5mry6u88h53908rs4hu6henpm"); // outer_r = sqrt((center.x - min.x)*(center.x - min.x) +
2779 UNSUPPORTED("9bjr1zixvhgja23zwt2uvkyh4"); // (center.y - min.y)*(center.y - min.y));
2780 UNSUPPORTED("em02v3ahdnobwbukkna301r8e"); // inner_r = outer_r /4.;
2781 UNSUPPORTED("bu17v8cb3igywmv0cbn25hlkg"); // if (isRHS) {
2782 UNSUPPORTED("cfoc49xh4ohe1lpmz0h45p97f"); // G[0].y = center.y;
2783 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2784 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
2785 UNSUPPORTED("20h8j01n1ez8o51xea4v9tr2u"); // G[0].y = -center.y;
2786 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2787 UNSUPPORTED("5pfxs9x6r4mmobo90mjhvy2u2"); // G[0].x = center.x;
2788 UNSUPPORTED("8mq1zl94lnuovvotzai3cjvh7"); // G[1].x = inner_r;
2789 UNSUPPORTED("bbqmfpxsc6hzfuqmzu5hq1ks2"); // G[1].y = outer_r;
2790 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2791 UNSUPPORTED("1nyzbeonram6636b1w955bypn"); // else {
2792 UNSUPPORTED("78bc6w2jovc5xciuazkg4x65m"); // double half_x = max.x - center.x;
2793 UNSUPPORTED("by2s59uka1v65wg0w519d9g5s"); // double half_y = max.y - center.y;
2794 UNSUPPORTED("bgr3ej4c4109djoqphiiccj8j"); // double sina = sin(angle);
2795 UNSUPPORTED("5w9swecikv2aa0cs4z4mft1ew"); // double cosa = cos(angle);
2796 UNSUPPORTED("bu17v8cb3igywmv0cbn25hlkg"); // if (isRHS) {
2797 UNSUPPORTED("4bj7eyt9p2z0zs62et351z8b7"); // G[0].y = center.y - half_y * sina;
2798 UNSUPPORTED("c4p6sses023prnrx3l3pnphpg"); // G[1].y = center.y + half_y * sina;
2799 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2800 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
2801 UNSUPPORTED("awhdug43x0ih3ky3e3ll0lutf"); // G[0].y = -center.y + (max.y - center.y) * sin(angle);
2802 UNSUPPORTED("62xeog3j69hyv8qha3n575e6d"); // G[1].y = -center.y - (center.y - min.y) * sin(angle);
2803 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2804 UNSUPPORTED("expdhhgumrgtud45srwse0d78"); // G[0].x = center.x - half_x * cosa;
2805 UNSUPPORTED("31bwc01mjpx1u8s4htbm6u5ey"); // G[1].x = center.x + half_x * cosa;
2806 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2807 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2808
2809 throw new UnsupportedOperationException();
2810 }
2811
2812
2813
2814
2815 //3 22n1uekxezky6gx3cn22ansew
2816 // int strcasecmp(const char *s1, const char *s2)
2817 public static int strcasecmp(CString s1, CString s2) {
2818 ENTERING("22n1uekxezky6gx3cn22ansew","strcasecmp");
2819 try {
2820 while ((s1.charAt(0) != '\0')
2821 && (tolower(s1.charAt(0)) ==
2822 tolower(s2.charAt(0)))) {
2823 s1=s1.plus(1);
2824 s2=s2.plus(1);
2825 }
2826 return tolower(s1.charAt(0)) - tolower(s2.charAt(0));
2827 } finally {
2828 LEAVING("22n1uekxezky6gx3cn22ansew","strcasecmp");
2829 }
2830 }
2831
2832
2833
2834
2835 //3 6fpqvqq5eso7d44vai4lz77jd
2836 // int strncasecmp(const char *s1, const char *s2, unsigned int n)
2837 public static Object strncasecmp(Object... arg) {
2838 UNSUPPORTED("41sf831iel4ggk6nxgerc7lrz"); // int strncasecmp(const char *s1, const char *s2, unsigned int n)
2839 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2840 UNSUPPORTED("f0os7tzuki1s9mllsml3zu2fd"); // if (n == 0)
2841 UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0;
2842 UNSUPPORTED("18ggb7ihy0resf5qhplc7cqol"); // while ((n-- != 0)
2843 UNSUPPORTED("7tdf84gz2hakxs756j3v0w4iv"); // && (tolower(*(unsigned char *) s1) ==
2844 UNSUPPORTED("co97u0db3a8mz1pp77hkxq0h3"); // tolower(*(unsigned char *) s2))) {
2845 UNSUPPORTED("2jr0cuzm9i39xecgxx0ih0ez4"); // if (n == 0 || *s1 == '\0' || *s2 == '\0')
2846 UNSUPPORTED("6f1138i13x0xz1bf1thxgjgka"); // return 0;
2847 UNSUPPORTED("2hh1h5gydepd3ut3g43bzn51g"); // s1++;
2848 UNSUPPORTED("7x8zh0pm8zj83pbc2d812jz90"); // s2++;
2849 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2850 UNSUPPORTED("1jrt0skm3a5djo3vfej4kwffc"); // return tolower(*(unsigned char *) s1) - tolower(*(unsigned char *) s2);
2851 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2852
2853 throw new UnsupportedOperationException();
2854 }
2855
2856
2857
2858
2859 //3 952xm45ro3rezebjyrjins8hi
2860 // void gv_free_splines(edge_t * e)
2861 public static Object gv_free_splines(Object... arg) {
2862 UNSUPPORTED("20npjsygvjocwl1s38vrpf2nb"); // void gv_free_splines(edge_t * e)
2863 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2864 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
2865 UNSUPPORTED("4pdkymy0wuxj1yn9xqqzp2x4h"); // if (ED_spl(e)) {
2866 UNSUPPORTED("45jnnlrng64otru7xh43mwqbj"); // for (i = 0; i < ED_spl(e)->size; i++)
2867 UNSUPPORTED("aayg4ghew6m2hhtoo2f683101"); // free(ED_spl(e)->list[i].list);
2868 UNSUPPORTED("414vktawl0gg37cwl3atku9jm"); // free(ED_spl(e)->list);
2869 UNSUPPORTED("dg2iniztq3s88wtzc2oelmxcd"); // free(ED_spl(e));
2870 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2871 UNSUPPORTED("1ozc9ue0zbqu2i9gg2i5kfxx6"); // ED_spl(e) = (void *)0;
2872 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2873
2874 throw new UnsupportedOperationException();
2875 }
2876
2877
2878
2879
2880 //3 4tdxbfozyzm9hv9jau5qpr18r
2881 // void gv_cleanup_edge(edge_t * e)
2882 public static Object gv_cleanup_edge(Object... arg) {
2883 UNSUPPORTED("b1scm8t8tgb3dnua8wogcy076"); // void gv_cleanup_edge(edge_t * e)
2884 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2885 UNSUPPORTED("puteitw4ghqbb5aix3nip4fk"); // free (ED_path(e).ps);
2886 UNSUPPORTED("dai9db3cozhpqeenab065cnfo"); // gv_free_splines(e);
2887 UNSUPPORTED("292fa7prffihy9rqhmv5lsc3f"); // free_label(ED_label(e));
2888 UNSUPPORTED("7l4r0amzt9h9sq0i6sirjn529"); // free_label(ED_xlabel(e));
2889 UNSUPPORTED("4uxpgfln4r8sqyb7odq506b46"); // free_label(ED_head_label(e));
2890 UNSUPPORTED("drx4uk8ssgsg67cvkt9t4u4kd"); // free_label(ED_tail_label(e));
2891 UNSUPPORTED("ab9j2jm37m5q6awql0tn2e5qh"); // /*FIX HERE , shallow cleaning may not be enough here */
2892 UNSUPPORTED("dw3siytye4cixcrzqmb5i07qs"); // agdelrec(e, "Agedgeinfo_t");
2893 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2894
2895 throw new UnsupportedOperationException();
2896 }
2897
2898
2899
2900
2901 //3 c7yb1wfh6sfz3dklp3914m81m
2902 // void gv_cleanup_node(node_t * n)
2903 public static Object gv_cleanup_node(Object... arg) {
2904 UNSUPPORTED("d6dkt4wezkpueb74an06bmm1k"); // void gv_cleanup_node(node_t * n)
2905 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2906 UNSUPPORTED("6fltl5u4u22i3870pyofjxwdn"); // if (ND_pos(n)) free(ND_pos(n));
2907 UNSUPPORTED("4wkmsp7365vb7u5fqtm2buotu"); // if (ND_shape(n))
2908 UNSUPPORTED("2ae2cnq7s4f15b6d6fp5i6o26"); // ND_shape(n)->fns->freefn(n);
2909 UNSUPPORTED("dv63sk5dujcwfkf99o6ponzqm"); // free_label(ND_label(n));
2910 UNSUPPORTED("5or6zu6ycx4zage9ggy1o9it4"); // free_label(ND_xlabel(n));
2911 UNSUPPORTED("ab9j2jm37m5q6awql0tn2e5qh"); // /*FIX HERE , shallow cleaning may not be enough here */
2912 UNSUPPORTED("4tuw9fzcb28wodb3z6f4gkx19"); // agdelrec(n, "Agnodeinfo_t");
2913 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2914
2915 throw new UnsupportedOperationException();
2916 }
2917
2918
2919
2920
2921 //3 80q488y0eqojtsm7osnfydmo5
2922 // void gv_nodesize(node_t * n, boolean flip)
2923 public static void gv_nodesize(ST_Agnode_s n, int flip) {
2924 ENTERING("80q488y0eqojtsm7osnfydmo5","gv_nodesize");
2925 try {
2926 double w;
2927 if (flip!=0) {
2928 w = ((ND_height(n))*(double)72);
2929 ND_rw(n, w / 2);
2930 ND_lw(n, w / 2);
2931 ND_ht(n, ((ND_width(n))*(double)72));
2932 }
2933 else {
2934 w = ((ND_width(n))*(double)72);
2935 ND_rw(n, w / 2);
2936 ND_lw(n, w / 2);
2937 ND_ht(n, ((ND_height(n))*(double)72));
2938 }
2939 } finally {
2940 LEAVING("80q488y0eqojtsm7osnfydmo5","gv_nodesize");
2941 }
2942 }
2943
2944
2945
2946
2947 //3 7uxrf3fkz919opkirpd9xtuv
2948 // double drand48(void)
2949 public static Object drand48(Object... arg) {
2950 UNSUPPORTED("6vlwifmfxk6zn6tvonk13jp3i"); // double drand48(void)
2951 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2952 UNSUPPORTED("8ne6p4d5pykwl1d3xk0yg0ipb"); // double d;
2953 UNSUPPORTED("54tfrbdpedydawj9r47qspj9z"); // d = rand();
2954 UNSUPPORTED("1ljgw8hzttj2a3x36s83rr5be"); // d = d / RAND_MAX;
2955 UNSUPPORTED("3r3o80n61nmy2jv0ezi9xg2xp"); // return d;
2956 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2957
2958 throw new UnsupportedOperationException();
2959 }
2960
2961
2962
2963
2964 //3 8lktrcvj65bvhh04y89vecvo2
2965 // static void free_clust (Dt_t* dt, clust_t* clp, Dtdisc_t* disc)
2966 public static Object free_clust(Object... arg) {
2967 UNSUPPORTED("5hvfjwzuuptbbsu4s4tmqioey"); // static void free_clust (Dt_t* dt, clust_t* clp, Dtdisc_t* disc)
2968 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2969 UNSUPPORTED("f496klm2k3ykus5018nsatnwr"); // free (clp);
2970 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2971
2972 throw new UnsupportedOperationException();
2973 }
2974
2975
2976 //1 5kz2qt153vtr25aib7hx2zxma
2977 // static Dtdisc_t strDisc =
2978
2979
2980
2981
2982 //3 eedsifpflx8hq0boycnhkyhwi
2983 // static void fillMap (Agraph_t* g, Dt_t* map)
2984 public static Object fillMap(Object... arg) {
2985 UNSUPPORTED("4bysjhruz2e3wqk783h9g1lup"); // static void fillMap (Agraph_t* g, Dt_t* map)
2986 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2987 UNSUPPORTED("btyorslmplj34yhlb1jx1qpbb"); // Agraph_t* cl;
2988 UNSUPPORTED("53xzwretgdbd0atozc0w6hagb"); // int c;
2989 UNSUPPORTED("yiuh599p05f2mpu2e3pesu2o"); // char* s;
2990 UNSUPPORTED("16mpl6p9b2dpo53253q50m3sb"); // clust_t* ip;
2991 UNSUPPORTED("99d9j6m0161wdv2tu4wbf3ifi"); // for (c = 1; c <= GD_n_cluster(g); c++) {
2992 UNSUPPORTED("2teg6xg4qm17ntpo76fewfpsa"); // cl = GD_clust(g)[c];
2993 UNSUPPORTED("cg72wznei3zdlwj34nrwr1p4d"); // s = agnameof(cl);
2994 UNSUPPORTED("1guobssrhsi4q6tl1y3pj2ggr"); // if ((*(((Dt_t*)(map))->searchf))((map),(void*)(s),0001000)) {
2995 UNSUPPORTED("dhd8f5xt5vuyyr6x2nb5v7n68"); // agerr(AGWARN, "Two clusters named %s - the second will be ignored\n", s);
2996 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2997 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
2998 UNSUPPORTED("1fldfpmb7y3tka24kxydupd92"); // ip = (clust_t*)zmalloc(sizeof(clust_t));
2999 UNSUPPORTED("2fjoz0gazdhoglv425xw1oq02"); // ip->name = s;
3000 UNSUPPORTED("3rtsjkui7fbtpw31kbxrcuq62"); // ip->clp = cl;
3001 UNSUPPORTED("9432myi3rgwzkx4n9bneu0s0k"); // (*(((Dt_t*)(map))->searchf))((map),(void*)(ip),0000001);
3002 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
3003 UNSUPPORTED("alhil57f405k0c1urfqtlldt7"); // fillMap (cl, map);
3004 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
3005 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
3006
3007 throw new UnsupportedOperationException();
3008 }
3009
3010
3011
3012
3013 //3 82wzptlrwslbvgp3xyj03p9ba
3014 // Dt_t* mkClustMap (Agraph_t* g)
3015 public static Object mkClustMap(Object... arg) {
3016 UNSUPPORTED("1q58ugun4bvkmr2ue91rmuq8"); // Dt_t* mkClustMap (Agraph_t* g)
3017 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
3018 UNSUPPORTED("f34gp449n6keyz0bhwdxqsd7m"); // Dt_t* map = dtopen (&strDisc, Dtoset);
3019 UNSUPPORTED("5wsd9dcx8jqzp5baly29hubma"); // fillMap (g, map);
3020 UNSUPPORTED("e0iohuc39sfqukdjj9eddourq"); // return map;
3021 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
3022
3023 throw new UnsupportedOperationException();
3024 }
3025
3026
3027
3028
3029 //3 aohw5khae06vhhp2t4cczvcbv
3030 // Agraph_t* findCluster (Dt_t* map, char* name)
3031 public static Object findCluster(Object... arg) {
3032 UNSUPPORTED("6fo3oeygde19o95996mbrkjdk"); // Agraph_t*
3033 UNSUPPORTED("43my0gnzq82k0lsp86rb9j31r"); // findCluster (Dt_t* map, char* name)
3034 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
3035 UNSUPPORTED("cwq8c9jrtxtalbyxfo1tg66ys"); // clust_t* clp = (*(((Dt_t*)(map))->searchf))((map),(void*)(name),0001000);
3036 UNSUPPORTED("7szzt9uu8wexjhhnks6jhega5"); // if (clp)
3037 UNSUPPORTED("12yrb65kdfz9bwd2j2l8nqc07"); // return clp->clp;
3038 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
3039 UNSUPPORTED("45tfw7tcm68298aro2tdiv8pc"); // return (void *)0;
3040 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
3041
3042 throw new UnsupportedOperationException();
3043 }
3044
3045
3046
3047
3048 //3 7q676xlzj32nbxuf2qlgu9xgc
3049 // Agnodeinfo_t* ninf(Agnode_t* n)
3050 public static Object ninf(Object... arg) {
3051 UNSUPPORTED("e4ol03qir8voknrrta1ulkew3"); // Agnodeinfo_t* ninf(Agnode_t* n) {return (Agnodeinfo_t*)AGDATA(n);}
3052
3053 throw new UnsupportedOperationException();
3054 }
3055
3056
3057
3058
3059 //3 3gguivz30v6fwn9nun51m5652
3060 // Agraphinfo_t* ginf(Agraph_t* g)
3061 public static Object ginf(Object... arg) {
3062 UNSUPPORTED("cjr1gck7jmlygsn7321ppbe2o"); // Agraphinfo_t* ginf(Agraph_t* g) {return (Agraphinfo_t*)AGDATA(g);}
3063
3064 throw new UnsupportedOperationException();
3065 }
3066
3067
3068
3069
3070 //3 5nsm1cj6268trw4hp3gljvk83
3071 // Agedgeinfo_t* einf(Agedge_t* e)
3072 public static Object einf(Object... arg) {
3073 UNSUPPORTED("3zxj8s1l4qy0pf2wpn6vy5ix3"); // Agedgeinfo_t* einf(Agedge_t* e) {return (Agedgeinfo_t*)AGDATA(e);}
3074
3075 throw new UnsupportedOperationException();
3076 }
3077
3078
3079 }