Debian Codegraph @

src/gen/lib/common/input__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.agattr;
48 import static gen.lib.cgraph.attr__c.agget;
49 import static gen.lib.cgraph.obj__c.agroot;
50 import static gen.lib.cgraph.refstr__c.aghtmlstr;
51 import static gen.lib.common.emit__c.init_xdot;
52 import static gen.lib.common.labels__c.make_label;
53 import static gen.lib.common.labels__c.strdup_and_subst_obj;
54 import static gen.lib.common.utils__c.late_double;
55 import static gen.lib.common.utils__c.late_int;
56 import static gen.lib.common.utils__c.late_nnstring;
57 import static gen.lib.common.utils__c.late_string;
58 import static gen.lib.common.utils__c.mapbool;
59 import static gen.lib.common.utils__c.maptoken;
60 import static smetana.core.JUtils.EQ;
61 import static smetana.core.JUtils.NEQ;
62 import static smetana.core.JUtils.atof;
63 import static smetana.core.JUtils.atoi;
64 import static smetana.core.JUtils.enumAsInt;
65 import static smetana.core.JUtils.getenv;
66 import static smetana.core.JUtils.strstr;
67 import static smetana.core.JUtilsDebug.ENTERING;
68 import static smetana.core.JUtilsDebug.LEAVING;
69 import static smetana.core.Macro.AGEDGE;
70 import static smetana.core.Macro.AGNODE;
71 import static smetana.core.Macro.AGRAPH;
72 import static smetana.core.Macro.GD_border;
73 import static smetana.core.Macro.GD_charset;
74 import static smetana.core.Macro.GD_drawing;
75 import static smetana.core.Macro.GD_exact_ranksep;
76 import static smetana.core.Macro.GD_flip;
77 import static smetana.core.Macro.GD_fontnames;
78 import static smetana.core.Macro.GD_has_labels;
79 import static smetana.core.Macro.GD_label;
80 import static smetana.core.Macro.GD_label_pos;
81 import static smetana.core.Macro.GD_nodesep;
82 import static smetana.core.Macro.GD_rankdir2;
83 import static smetana.core.Macro.GD_ranksep;
84 import static smetana.core.Macro.GD_showboxes;
85 import static smetana.core.Macro.N;
86 import static smetana.core.Macro.ROUND;
87 import static smetana.core.Macro.UNSUPPORTED;
88 import h.ST_Agraph_s;
89 import h.ST_layout_t;
90 import h.ST_pointf;
91 import h.fontname_kind;
92 import smetana.core.CString;
93 import smetana.core.Z;
94
95 public class input__c {
96 //1 2digov3edok6d5srhgtlmrycs
97 // extern lt_symlist_t lt_preloaded_symbols[]
98
99
100 //1 baedz5i9est5csw3epz3cv7z
101 // typedef Ppoly_t Ppolyline_t
102
103
104 //1 9k44uhd5foylaeoekf3llonjq
105 // extern Dtmethod_t* Dtset
106
107
108 //1 1ahfywsmzcpcig2oxm7pt9ihj
109 // extern Dtmethod_t* Dtbag
110
111
112 //1 anhghfj3k7dmkudy2n7rvt31v
113 // extern Dtmethod_t* Dtoset
114
115
116 //1 5l6oj1ux946zjwvir94ykejbc
117 // extern Dtmethod_t* Dtobag
118
119
120 //1 2wtf222ak6cui8cfjnw6w377z
121 // extern Dtmethod_t* Dtlist
122
123
124 //1 d1s1s6ibtcsmst88e3057u9r7
125 // extern Dtmethod_t* Dtstack
126
127
128 //1 axa7mflo824p6fspjn1rdk0mt
129 // extern Dtmethod_t* Dtqueue
130
131
132 //1 ega812utobm4xx9oa9w9ayij6
133 // extern Dtmethod_t* Dtdeque
134
135
136 //1 cyfr996ur43045jv1tjbelzmj
137 // extern Dtmethod_t* Dtorder
138
139
140 //1 wlofoiftbjgrrabzb2brkycg
141 // extern Dtmethod_t* Dttree
142
143
144 //1 12bds94t7voj7ulwpcvgf6agr
145 // extern Dtmethod_t* Dthash
146
147
148 //1 9lqknzty480cy7zsubmabkk8h
149 // extern Dtmethod_t _Dttree
150
151
152 //1 bvn6zkbcp8vjdhkccqo1xrkrb
153 // extern Dtmethod_t _Dthash
154
155
156 //1 9lidhtd6nsmmv3e7vjv9e10gw
157 // extern Dtmethod_t _Dtlist
158
159
160 //1 34ujfamjxo7xn89u90oh2k6f8
161 // extern Dtmethod_t _Dtqueue
162
163
164 //1 3jy4aceckzkdv950h89p4wjc8
165 // extern Dtmethod_t _Dtstack
166
167
168 //1 8dfqgf3u1v830qzcjqh9o8ha7
169 // extern Agmemdisc_t AgMemDisc
170
171
172 //1 18k2oh2t6llfsdc5x0wlcnby8
173 // extern Agiddisc_t AgIdDisc
174
175
176 //1 a4r7hi80gdxtsv4hdoqpyiivn
177 // extern Agiodisc_t AgIoDisc
178
179
180 //1 bnzt5syjb7mgeru19114vd6xx
181 // extern Agdisc_t AgDefaultDisc
182
183
184 //1 35y2gbegsdjilegaribes00mg
185 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
186
187
188 //1 c2rygslq6bcuka3awmvy2b3ow
189 // typedef Agsubnode_t Agnoderef_t
190
191
192 //1 xam6yv0dcsx57dtg44igpbzn
193 // typedef Dtlink_t Agedgeref_t
194
195
196 //1 nye6dsi1twkbddwo9iffca1j
197 // extern char *Version
198
199
200 //1 65mu6k7h7lb7bx14jpiw7iyxr
201 // extern char **Files
202
203
204 //1 2rpjdzsdyrvomf00zcs3u3dyn
205 // extern const char **Lib
206
207
208 //1 6d2f111lntd2rsdt4gswh5909
209 // extern char *CmdName
210
211
212 //1 a0ltq04fpeg83soa05a2fkwb2
213 // extern char *specificFlags
214
215
216 //1 1uv30qeqq2jh6uznlr4dziv0y
217 // extern char *specificItems
218
219
220 //1 7i4hkvngxe3x7lmg5h6b3t9g3
221 // extern char *Gvfilepath
222
223
224 //1 9jp96pa73kseya3w6sulxzok6
225 // extern char *Gvimagepath
226
227
228 //1 40ylumfu7mrvawwf4v2asvtwk
229 // extern unsigned char Verbose
230
231
232 //1 93st8awjy1z0h07n28qycbaka
233 // extern unsigned char Reduce
234
235
236 //1 f2vs67ts992erf8onwfglurzp
237 // extern int MemTest
238
239
240 //1 c6f8whijgjwwagjigmxlwz3gb
241 // extern char *HTTPServerEnVar
242
243
244 //1 cp4hzj7p87m7arw776d3bt7aj
245 // extern char *Output_file_name
246
247
248 //1 a3rqagofsgraie6mx0krzkgsy
249 // extern int graphviz_errors
250
251
252 //1 5up05203r4kxvjn1m4njcgq5x
253 // extern int Nop
254
255
256 //1 umig46cco431x14b3kosde2t
257 // extern double PSinputscale
258
259
260 //1 52bj6v8fqz39khasobljfukk9
261 // extern int Syntax_errors
262
263
264 //1 9ekf2ina8fsjj6y6i0an6somj
265 // extern int Show_cnt
266
267
268 //1 38di5qi3nkxkq65onyvconk3r
269 // extern char** Show_boxes
270
271
272 //1 6ri6iu712m8mpc7t2670etpcw
273 // extern int CL_type
274
275
276 //1 bomxiw3gy0cgd1ydqtek7fpxr
277 // extern unsigned char Concentrate
278
279
280 //1 cqy3gqgcq8empdrbnrhn84058
281 // extern double Epsilon
282
283
284 //1 64slegfoouqeg0rmbyjrm8wgr
285 // extern int MaxIter
286
287
288 //1 88wdinpnmfs4mab4aw62yb0bg
289 // extern int Ndim
290
291
292 //1 8bbad3ogcelqnnvo5br5s05gq
293 // extern int State
294
295
296 //1 17rnd8q45zclfn68qqst2vxxn
297 // extern int EdgeLabelsDone
298
299
300 //1 ymx1z4s8cznjifl2d9f9m8jr
301 // extern double Initial_dist
302
303
304 //1 a33bgl0c3uqb3trx419qulj1x
305 // extern double Damping
306
307
308 //1 d9lvrpjg1r0ojv40pod1xwk8n
309 // extern int Y_invert
310
311
312 //1 71efkfs77q5tq9ex6y0f4kanh
313 // extern int GvExitOnUsage
314
315
316 //1 4xy2dkdkv0acs2ue9eca8hh2e
317 // 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
318
319
320 //1 9js5gxgzr74eakgtfhnbws3t9
321 // 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
322
323
324 //1 anqllp9sj7wo45w6bm11j8trn
325 // 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
326
327
328 //1 bh0z9puipqw7gymjd5h5b8s6i
329 // extern struct fdpParms_s* fdp_parms
330
331
332
333
334 //3 ciez0pfggxdljedzsbklq49f0
335 // static inline point pointof(int x, int y)
336 public static Object pointof(Object... arg) {
337 UNSUPPORTED("8e4tj258yvfq5uhsdpk37n5eq"); // static inline point pointof(int x, int y)
338 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
339 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
340 UNSUPPORTED("12jimkrzqxavaie0cpapbx18c"); // r.x = x;
341 UNSUPPORTED("7ivmviysahgsc5nn9gtp7q2if"); // r.y = y;
342 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
343 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
344
345 throw new UnsupportedOperationException();
346 }
347
348
349
350
351 //3 c1s4k85p1cdfn176o3uryeros
352 // static inline pointf pointfof(double x, double y)
353 public static ST_pointf pointfof(double x, double y) {
354 // WARNING!! STRUCT
355 return pointfof_w_(x, y).copy();
356 }
357 private static ST_pointf pointfof_w_(double x, double y) {
358 ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof");
359 try {
360 final ST_pointf r = new ST_pointf();
361 r.setDouble("x", x);
362 r.setDouble("y", y);
363 return r;
364 } finally {
365 LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof");
366 }
367 }
368
369
370
371
372 //3 7cufnfitrh935ew093mw0i4b7
373 // static inline box boxof(int llx, int lly, int urx, int ury)
374 public static Object boxof(Object... arg) {
375 UNSUPPORTED("3lzesfdd337h31jrlib1czocm"); // static inline box boxof(int llx, int lly, int urx, int ury)
376 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
377 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
378 UNSUPPORTED("cylhjlutoc0sc0uy7g98m9fb8"); // b.LL.x = llx, b.LL.y = lly;
379 UNSUPPORTED("242of6revxzx8hpe7yerrchz6"); // b.UR.x = urx, b.UR.y = ury;
380 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
381 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
382
383 throw new UnsupportedOperationException();
384 }
385
386
387
388
389
390
391
392
393 //3 1n5xl70wxuabyf97mclvilsm6
394 // static inline point add_point(point p, point q)
395 public static Object add_point(Object... arg) {
396 UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); // static inline point add_point(point p, point q)
397 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
398 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
399 UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); // r.x = p.x + q.x;
400 UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); // r.y = p.y + q.y;
401 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
402 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
403
404 throw new UnsupportedOperationException();
405 }
406
407
408
409
410 //3 arrsbik9b5tnfcbzsm8gr2chx
411 // static inline pointf add_pointf(pointf p, pointf q)
412 public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) {
413 // WARNING!! STRUCT
414 return add_pointf_w_(p.copy(), q.copy()).copy();
415 }
416 private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) {
417 ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
418 try {
419 final ST_pointf r = new ST_pointf();
420 r.setDouble("x", p.x + q.x);
421 r.setDouble("y", p.y + q.y);
422 return r;
423 } finally {
424 LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
425 }
426 }
427
428
429
430
431 //3 ai2dprak5y6obdsflguh5qbd7
432 // static inline point sub_point(point p, point q)
433 public static Object sub_point(Object... arg) {
434 UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); // static inline point sub_point(point p, point q)
435 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
436 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
437 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
438 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
439 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
440 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
441
442 throw new UnsupportedOperationException();
443 }
444
445
446
447
448 //3 16f6pyogcv3j7n2p0n8giqqgh
449 // static inline pointf sub_pointf(pointf p, pointf q)
450 public static Object sub_pointf(Object... arg) {
451 UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); // static inline pointf sub_pointf(pointf p, pointf q)
452 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
453 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
454 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
455 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
456 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
457 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
458
459 throw new UnsupportedOperationException();
460 }
461
462
463
464
465 //3 9k50jgrhc4f9824vf8ony74rw
466 // static inline point mid_point(point p, point q)
467 public static Object mid_point(Object... arg) {
468 UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); // static inline point mid_point(point p, point q)
469 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
470 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
471 UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); // r.x = (p.x + q.x) / 2;
472 UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); // r.y = (p.y + q.y) / 2;
473 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
474 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
475
476 throw new UnsupportedOperationException();
477 }
478
479
480
481
482 //3 59c4f7im0ftyowhnzzq2v9o1x
483 // static inline pointf mid_pointf(pointf p, pointf q)
484 public static Object mid_pointf(Object... arg) {
485 UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); // static inline pointf mid_pointf(pointf p, pointf q)
486 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
487 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
488 UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); // r.x = (p.x + q.x) / 2.;
489 UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); // r.y = (p.y + q.y) / 2.;
490 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
491 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
492
493 throw new UnsupportedOperationException();
494 }
495
496
497
498
499 //3 5r18p38gisvcx3zsvbb9saixx
500 // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
501 public static Object interpolate_pointf(Object... arg) {
502 UNSUPPORTED("894yimn33kmtm454llwdaotu8"); // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
503 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
504 UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); // pointf r;
505 UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); // r.x = p.x + t * (q.x - p.x);
506 UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); // r.y = p.y + t * (q.y - p.y);
507 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
508 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
509
510 throw new UnsupportedOperationException();
511 }
512
513
514
515
516 //3 bxzrv2ghq04qk5cbyy68s4mol
517 // static inline point exch_xy(point p)
518 public static Object exch_xy(Object... arg) {
519 UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); // static inline point exch_xy(point p)
520 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
521 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
522 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
523 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
524 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
525 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
526
527 throw new UnsupportedOperationException();
528 }
529
530
531
532
533 //3 9lt3e03tac6h6sydljrcws8fd
534 // static inline pointf exch_xyf(pointf p)
535 public static Object exch_xyf(Object... arg) {
536 UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); // static inline pointf exch_xyf(pointf p)
537 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
538 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
539 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
540 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
541 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
542 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
543
544 throw new UnsupportedOperationException();
545 }
546
547
548
549
550 //3 8l9qhieokthntzdorlu5zn29b
551 // static inline box box_bb(box b0, box b1)
552 public static Object box_bb(Object... arg) {
553 UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); // static inline box box_bb(box b0, box b1)
554 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
555 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
556 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
557 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
558 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
559 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
560 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
561 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
562
563 throw new UnsupportedOperationException();
564 }
565
566
567
568
569 //3 clws9h3bbjm0lw3hexf8nl4c4
570 // static inline boxf boxf_bb(boxf b0, boxf b1)
571 public static Object boxf_bb(Object... arg) {
572 UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); // static inline boxf boxf_bb(boxf b0, boxf b1)
573 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
574 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf 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 bit6ycxo1iqd2al92y8gkzlvb
589 // static inline box box_intersect(box b0, box b1)
590 public static Object box_intersect(Object... arg) {
591 UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
592 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
593 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
594 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
595 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
596 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
597 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
598 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
599 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
600
601 throw new UnsupportedOperationException();
602 }
603
604
605
606
607 //3 8gfybie7k6pgb3o1a6llgpwng
608 // static inline boxf boxf_intersect(boxf b0, boxf b1)
609 public static Object boxf_intersect(Object... arg) {
610 UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); // static inline boxf boxf_intersect(boxf b0, boxf b1)
611 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
612 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf 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 7z8j2quq65govaaejrz7b4cvb
627 // static inline int box_overlap(box b0, box b1)
628 public static Object box_overlap(Object... arg) {
629 UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); // static inline int box_overlap(box b0, box b1)
630 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
631 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
632 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
633
634 throw new UnsupportedOperationException();
635 }
636
637
638
639
640 //3 4z0suuut2acsay5m8mg9dqjdu
641 // static inline int boxf_overlap(boxf b0, boxf b1)
642 public static Object boxf_overlap(Object... arg) {
643 UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); // static inline int boxf_overlap(boxf b0, boxf b1)
644 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
645 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
646 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
647
648 throw new UnsupportedOperationException();
649 }
650
651
652
653
654 //3 dd34swz5rmdgu3a2np2a4h1dy
655 // static inline int box_contains(box b0, box b1)
656 public static Object box_contains(Object... arg) {
657 UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); // static inline int box_contains(box b0, box b1)
658 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
659 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
660 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
661
662 throw new UnsupportedOperationException();
663 }
664
665
666
667
668 //3 8laj1bspbu2i1cjd9upr7xt32
669 // static inline int boxf_contains(boxf b0, boxf b1)
670 public static Object boxf_contains(Object... arg) {
671 UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); // static inline int boxf_contains(boxf b0, boxf b1)
672 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
673 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
674 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
675
676 throw new UnsupportedOperationException();
677 }
678
679
680
681
682 //3 4wf5swkz24xx51ja2dynbycu1
683 // static inline pointf perp (pointf p)
684 public static Object perp(Object... arg) {
685 UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); // static inline pointf perp (pointf p)
686 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
687 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
688 UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); // r.x = -p.y;
689 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
690 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
691 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
692
693 throw new UnsupportedOperationException();
694 }
695
696
697
698
699 //3 6dtlpzv4mvgzb9o0b252yweuv
700 // static inline pointf scale (double c, pointf p)
701 public static Object scale(Object... arg) {
702 UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); // static inline pointf scale (double c, pointf p)
703 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
704 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
705 UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); // r.x = c * p.x;
706 UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); // r.y = c * p.y;
707 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
708 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
709
710 throw new UnsupportedOperationException();
711 }
712
713
714 //1 1fi3wib3hc7ibek0vfrpx9k3i
715 // static char *usageFmt =
716
717
718 //1 cpzagrot2j4620xbm08g3qbaz
719 // static char *genericItems =
720
721
722 //1 ej8f5pc6itbjzywbvv9r7pgog
723 // static char *neatoFlags =
724
725
726 //1 6zygu4f39vz4q5m4oiz64om5v
727 // static char *neatoItems =
728
729
730 //1 a5i7jzdqfacw4bequdriv6cb9
731 // static char *fdpFlags =
732
733
734 //1 9hrf5y45qp9kii44glcd4nx6e
735 // static char *fdpItems =
736
737
738 //1 bw7swzrd97c859k69vhbo6xui
739 // static char *memtestFlags =
740
741
742 //1 dlf2hcbhlyk0xi7y4hhyxdjlg
743 // static char *memtestItems =
744
745
746 //1 bfkjkg4j8ncjq3fbcfon7ce1a
747 // static char *configFlags =
748
749
750 //1 cwsgle0ax1dh0i4rb6c4n90s8
751 // static char *configItems =
752
753
754
755
756 //3 18dk9rr2jwvw2k0pwd01u1rp
757 // int dotneato_usage(int exval)
758 public static Object dotneato_usage(Object... arg) {
759 UNSUPPORTED("cjfxortgnqo3ho8cb4mse3bjk"); // int dotneato_usage(int exval)
760 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
761 UNSUPPORTED("9qo38fqtykhj9o5wf9n2mmvf9"); // FILE *outs;
762 UNSUPPORTED("6p2t5f6k16pthcnlxnvr8fxp2"); // if (exval > 0)
763 UNSUPPORTED("ajsyw6vt4yc7jws9my3dfqw55"); // outs = stderr;
764 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
765 UNSUPPORTED("9ymsocy1jyvql8lvl7z9v3x1d"); // outs = stdout;
766 UNSUPPORTED("eo2ztyy17mz06ptqvcj5azpza"); // fprintf(outs, usageFmt, CmdName);
767 UNSUPPORTED("1nhpls9sffy8jo9sa7638u515"); // fputs(neatoFlags, outs);
768 UNSUPPORTED("578fe6racfp402cmjp3xuomor"); // fputs(fdpFlags, outs);
769 UNSUPPORTED("a3xdyyuyrv70igk8e8z4415gn"); // fputs(memtestFlags, outs);
770 UNSUPPORTED("59cqs6545cogaa8zbv9x1fep0"); // fputs(configFlags, outs);
771 UNSUPPORTED("9qmx2r5uawon9q2snigjcita"); // fputs(genericItems, outs);
772 UNSUPPORTED("18sodiqes6jpcc8fj1vlkj6bd"); // fputs(neatoItems, outs);
773 UNSUPPORTED("boxkj32094gcugdk6u9p1hppc"); // fputs(fdpItems, outs);
774 UNSUPPORTED("4yygtzneqsdphtbnhfta2lge0"); // fputs(memtestItems, outs);
775 UNSUPPORTED("8ywutcqn5x3zpugo58b72ualq"); // fputs(configItems, outs);
776 UNSUPPORTED("3rabv7gfkqu0ag8x2rjiyrjbr"); // if (GvExitOnUsage && (exval >= 0))
777 UNSUPPORTED("1swto2i8s568mypddkno5wez1"); // exit(exval);
778 UNSUPPORTED("3jphahsl7jw3c1c1u71vs8dj3"); // return (exval+1);
779 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
780
781 throw new UnsupportedOperationException();
782 }
783
784
785
786
787 //3 9s68av3h3ph5gjla9e2d3220t
788 // static char *getFlagOpt(int argc, char **argv, int *idx)
789 public static Object getFlagOpt(Object... arg) {
790 UNSUPPORTED("7i2co2mk6i4v2e5zed6cohfi0"); // static char *getFlagOpt(int argc, char **argv, int *idx)
791 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
792 UNSUPPORTED("c0vo8zzyjurgsxynujp3wbwn3"); // int i = *idx;
793 UNSUPPORTED("9ldayvulqiau72gm4iigedbe"); // char *arg = argv[i];
794 UNSUPPORTED("1ii197c2ypmbtq6b4c6xrmqre"); // if (arg[2])
795 UNSUPPORTED("85bk7kest90gpgv6qhqqam6od"); // return arg + 2;
796 UNSUPPORTED("62vtkmbmceearvwa1gge24udl"); // if (i < argc - 1) {
797 UNSUPPORTED("chd2f5z6rt19lbaye25ej7q6j"); // i++;
798 UNSUPPORTED("dbe1l1xge33op9cemtc13bsld"); // arg = argv[i];
799 UNSUPPORTED("e7t6j4nall86kdxxvxopr6hl7"); // if (*arg && (*arg != '-')) {
800 UNSUPPORTED("a1qi3k2o6tudikh6zg6qxb32v"); // *idx = i;
801 UNSUPPORTED("aegbvj6xoqbt16mud86st36ex"); // return arg;
802 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
803 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
804 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
805 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
806
807 throw new UnsupportedOperationException();
808 }
809
810
811
812
813 //3 2dx6lb6fkeqxispmv7w0bgsat
814 // static char* dotneato_basename (char* path)
815 public static Object dotneato_basename(Object... arg) {
816 UNSUPPORTED("58z62a4pwz8fb1fqzgemmk2v"); // static char* dotneato_basename (char* path)
817 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
818 UNSUPPORTED("60anbhq8j280g1jvxqcu76t4v"); // char* ret;
819 UNSUPPORTED("cmcyg2bmd7exlb7oegpilnua8"); // char* s = path;
820 UNSUPPORTED("7oz55r1w75doc5wm9wdr5ud7c"); // if (*s == '\0') return path; /* empty string */
821 UNSUPPORTED("48at50ffoqbw40aae7qlp0vus"); // while (*s) s++; s--;
822 UNSUPPORTED("tbim4ak38lvnw1gb72gj4hnh"); // /* skip over trailing slashes, nulling out as we go */
823 UNSUPPORTED("clj6wpwuuq0wl5g7f67hqvvfc"); // while ((s > path) && ((*s == '/') || (*s == '\\')))
824 UNSUPPORTED("f59muao0hgreza561qmmnlzum"); // *s-- = '\0';
825 UNSUPPORTED("18c1lv0flxz0ts64xlwuviv33"); // if (s == path) ret = path;
826 UNSUPPORTED("1nyzbeonram6636b1w955bypn"); // else {
827 UNSUPPORTED("4x9t5rl1kdp5nac9tewdf9x2n"); // while ((s > path) && ((*s != '/') && (*s != '\\'))) s--;
828 UNSUPPORTED("953u2wmr3tzfpiq8m06fdvhn5"); // if ((*s == '/') || (*s == '\\')) ret = s+1;
829 UNSUPPORTED("5dwayhic40dcurqedqxv1q7mj"); // else ret = path;
830 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
831 UNSUPPORTED("f3b7mj138albdr4lodyomke0z"); // return ret;
832 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
833
834 throw new UnsupportedOperationException();
835 }
836
837
838
839
840 //3 ez0qfar6yuf01ivvqrnev06fv
841 // static void use_library(GVC_t *gvc, const char *name)
842 public static Object use_library(Object... arg) {
843 UNSUPPORTED("cjicty7s03euuxnpum74nrt6f"); // static void use_library(GVC_t *gvc, const char *name)
844 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
845 UNSUPPORTED("8h89r8rhn7udjmeo8y259899y"); // static int cnt = 0;
846 UNSUPPORTED("30nxp5k7c6mdth5ymcpz1oxob"); // if (name) {
847 UNSUPPORTED("dwg0l3nktjnwky7m5lipngiot"); // Lib = ALLOC(cnt + 2, Lib, const char *);
848 UNSUPPORTED("axgfffz8lebk44oe1y1djiu6p"); // Lib[cnt++] = name;
849 UNSUPPORTED("3c388gk5lojcaen61m94i3x0w"); // Lib[cnt] = NULL;
850 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
851 UNSUPPORTED("comriuhmiu8kq7sayutlxoqbq"); // gvc->common.lib = Lib;
852 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
853
854 throw new UnsupportedOperationException();
855 }
856
857
858
859
860 //3 dlfidqx2agrk43ikmxgzw9kgp
861 // static void global_def(agxbuf* xb, char *dcl, int kind, attrsym_t * ((*dclfun) (Agraph_t *, int kind, char *, char *)) )
862 public static Object global_def(Object... arg) {
863 UNSUPPORTED("zydu58d3g8obsevu9l8zo05i"); // static void global_def(agxbuf* xb, char *dcl, int kind,
864 UNSUPPORTED("zj9p9fdfpp3hwme7atl3cug3"); // attrsym_t * ((*dclfun) (Agraph_t *, int kind, char *, char *)) )
865 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
866 UNSUPPORTED("aexhdud6z2wbwwi73yppp0ynl"); // char *p;
867 UNSUPPORTED("c6ykztqlvb01grrqat3q7f8hg"); // char *rhs = "true";
868 UNSUPPORTED("7c3pfnvbbbnijw9cg9xkyyatm"); // attrsym_t *sym;
869 UNSUPPORTED("1qmhad0yyiddc207b8z5rm70x"); // if ((p = strchr(dcl, '='))) {
870 UNSUPPORTED("5s96z976xk7iglr5vvuad1dsb"); // agxbput_n (xb, dcl, p-dcl);
871 UNSUPPORTED("dbw9pn8xmpdqi11uffv4r6gxq"); // rhs = p+1;
872 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
873 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
874 UNSUPPORTED("dv0ywo1nopy8xc9d9kfbn0hgz"); // agxbput (xb, dcl);
875 UNSUPPORTED("dhedzhv3dnzrq7ytgiqff11ku"); // sym = dclfun(NULL, kind, (((((xb)->ptr >= (xb)->eptr) ? agxbmore(xb,1) : 0), (int)(*(xb)->ptr++ = ((unsigned char)'\0'))),(char*)((xb)->ptr = (xb)->buf)), rhs);
876 UNSUPPORTED("6o4s3a3c3rae5ltba8nvab5px"); // sym->fixed = 1;
877 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
878
879 throw new UnsupportedOperationException();
880 }
881
882
883
884
885 //3 5qvhl3c476hpwnik5r2ee5pin
886 // static int gvg_init(GVC_t *gvc, graph_t *g, char *fn, int gidx)
887 public static Object gvg_init(Object... arg) {
888 UNSUPPORTED("69zdfufo90wdjvfvsw59lz5n3"); // static int gvg_init(GVC_t *gvc, graph_t *g, char *fn, int gidx)
889 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
890 UNSUPPORTED("c55ofvf49idlhjsnnxfqjpi9s"); // GVG_t *gvg;
891 UNSUPPORTED("1nqr81udw639pz7enx2hfhtn5"); // gvg = zmalloc(sizeof(GVG_t));
892 UNSUPPORTED("wpylwsmjyiuxs9f8x3srqmfs"); // if (!gvc->gvgs)
893 UNSUPPORTED("9y22l2dxq6artoaqqeeczdq1x"); // gvc->gvgs = gvg;
894 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
895 UNSUPPORTED("2nndq73tw0aaltr2i1ajvsspn"); // gvc->gvg->next = gvg;
896 UNSUPPORTED("e9w6optlcophkwjmfin7kyi1i"); // gvc->gvg = gvg;
897 UNSUPPORTED("eish9dbcdxs6v4dh4sgg6uzjj"); // gvg->gvc = gvc;
898 UNSUPPORTED("27sxrps4axrp5fbl0qnenmif3"); // gvg->g = g;
899 UNSUPPORTED("5q4sypoeu8fbwv3a2p6qsnq73"); // gvg->input_filename = fn;
900 UNSUPPORTED("1wh5jhwi3fb70nrl37aoz6lhj"); // gvg->graph_index = gidx;
901 UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0;
902 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
903
904 throw new UnsupportedOperationException();
905 }
906
907
908 //1 6k1gxkaeteh3v4108asx0nu9q
909 // static graph_t *P_graph
910
911
912
913
914 //3 2zkpt5r5hmvqy31vbxai8aoww
915 // graph_t *gvPluginsGraph(GVC_t *gvc)
916 public static Object gvPluginsGraph(Object... arg) {
917 UNSUPPORTED("aq8xsrhhkbt250zdmff189jej"); // graph_t *gvPluginsGraph(GVC_t *gvc)
918 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
919 UNSUPPORTED("eoghsuji192if07hz2zmt1geg"); // gvg_init(gvc, P_graph, "<internal>", 0);
920 UNSUPPORTED("5qryvsjfdmb52s891tbejpwi3"); // return P_graph;
921 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
922
923 throw new UnsupportedOperationException();
924 }
925
926
927
928
929 //3 a4vyp310q1ezn1wiiqbhjazfi
930 // int dotneato_args_initialize(GVC_t * gvc, int argc, char **argv)
931 public static Object dotneato_args_initialize(Object... arg) {
932 UNSUPPORTED("3an9kpb8l897hglulndwlyhmk"); // int dotneato_args_initialize(GVC_t * gvc, int argc, char **argv)
933 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
934 UNSUPPORTED("exs7yxl18noutslfdhd65grcd"); // char c, *rest, *layout;
935 UNSUPPORTED("d28hrwkttitp7p3zkyur6josm"); // const char *val;
936 UNSUPPORTED("e4nq5nxc3t4f7sn9hms693ro5"); // int i, v, nfiles;
937 UNSUPPORTED("h0or3v13348vfl22jqz895yc"); // unsigned char buf[128];
938 UNSUPPORTED("9gou5otj6s39l2cbyc8i5i5lq"); // agxbuf xb;
939 UNSUPPORTED("djkz3f3ke85c3ihtck61wzehd"); // int Kflag = 0;
940 UNSUPPORTED("e36z5l2h47e3sm6az444bpmte"); // /* establish if we are running in a CGI environment */
941 UNSUPPORTED("39kpbo7t3xw42psbqxwyosbtg"); // HTTPServerEnVar = getenv("SERVER_NAME");
942 UNSUPPORTED("bjgrdu955j26h6boths39zysy"); // /* establish Gvfilepath, if any */
943 UNSUPPORTED("9u1u08bh9yk3m8qjesa9h35o3"); // Gvfilepath = getenv("GV_FILE_PATH");
944 UNSUPPORTED("byzhjcmd87bu2q2ifs8d2zqmx"); // gvc->common.cmdname = dotneato_basename(argv[0]);
945 UNSUPPORTED("6t7yoiijwsc45jhh2ycc1zvqn"); // if (gvc->common.verbose) {
946 UNSUPPORTED("5jlgk53d79be5z8yrpqk31i41"); // fprintf(stderr, "%s - %s version %s (%s)\n",
947 UNSUPPORTED("a3fdnva5eaynygwl01w4i14vu"); // gvc->common.cmdname, gvc->common.info[0],
948 UNSUPPORTED("4cr6o6cpwligpzuiy9go86dtk"); // gvc->common.info[1], gvc->common.info[2]);
949 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
950 UNSUPPORTED("ebjtmwuwx6vwhxaswhb2j4mfm"); // /* configure for available plugins */
951 UNSUPPORTED("7y1a5ferpdpuzp8lj2nreef7e"); // /* needs to know if "dot -c" is set (gvc->common.config) */
952 UNSUPPORTED("1915n665xv0fno6lfzaikw5ml"); // /* must happen before trying to select any plugins */
953 UNSUPPORTED("b2umkw2rzz1ig1cngfiht4fmx"); // if (gvc->common.config) {
954 UNSUPPORTED("d3di2hukfdei22j9nlhb4lr4i"); // gvconfig(gvc, gvc->common.config);
955 UNSUPPORTED("ew35v5jfro4z9mn5cwzl5e0ha"); // exit (0);
956 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
957 UNSUPPORTED("9gg8gbp3jei0upfnr0b5i6fur"); // /* feed the globals */
958 UNSUPPORTED("36hh3435f786qyybpu0o87zjv"); // Verbose = gvc->common.verbose;
959 UNSUPPORTED("es2j9l0phjktwgdz1y2435lnm"); // CmdName = gvc->common.cmdname;
960 UNSUPPORTED("dhvbz69j0rmligcrm9974041x"); // nfiles = 0;
961 UNSUPPORTED("d1jh4myxvrwmm9xcl79yh24g1"); // for (i = 1; i < argc; i++)
962 UNSUPPORTED("32x1kvhg66oubz0hakj6dvxg1"); // if (argv[i] && argv[i][0] != '-')
963 UNSUPPORTED("5pk2vvpyoy1qbkfwm0d3cqpip"); // nfiles++;
964 UNSUPPORTED("d4gb5xxnp2a9dqmzsisy3d2x5"); // gvc->input_filenames = (char **)zmalloc((nfiles + 1)*sizeof(char *));
965 UNSUPPORTED("dhvbz69j0rmligcrm9974041x"); // nfiles = 0;
966 UNSUPPORTED("ci65k77x1b3nq6luu69s87oup"); // agxbinit(&xb, 128, buf);
967 UNSUPPORTED("9fp588sbdt939tsh4lldsi78p"); // for (i = 1; i < argc; i++) {
968 UNSUPPORTED("71ydjmz8tdkhga4y130hpfzd7"); // if (argv[i] && argv[i][0] == '-') {
969 UNSUPPORTED("a2i31gh8f8d1uzwvazthtdjhl"); // rest = &(argv[i][2]);
970 UNSUPPORTED("akiijvdhiis6rte3uan48lkio"); // switch (c = argv[i][1]) {
971 UNSUPPORTED("cnw3cn0y6fyfmhrj9i6zrj7yt"); // case 'G':
972 UNSUPPORTED("cyapeoqsbt759mwufn37a0j3w"); // if (*rest)
973 UNSUPPORTED("37iemzdcou8tf7mb850gmys6k"); // global_def(&xb, rest, AGRAPH, agattr);
974 UNSUPPORTED("d28blrbmwwqp80cyksuz7dwx9"); // else {
975 UNSUPPORTED("d10434bczuxvbju6r580xu4i3"); // fprintf(stderr, "Missing argument for -G flag\n");
976 UNSUPPORTED("3j6l9hq73a342kljq6expow6m"); // return (dotneato_usage(1));
977 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
978 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
979 UNSUPPORTED("3za1kdrr0abcgx59eek9sst25"); // case 'N':
980 UNSUPPORTED("cyapeoqsbt759mwufn37a0j3w"); // if (*rest)
981 UNSUPPORTED("22su7vu663f22bni5gx0jkxq9"); // global_def(&xb, rest, AGNODE,agattr);
982 UNSUPPORTED("d28blrbmwwqp80cyksuz7dwx9"); // else {
983 UNSUPPORTED("14g4xc09ropngbhfr31tffeii"); // fprintf(stderr, "Missing argument for -N flag\n");
984 UNSUPPORTED("3j6l9hq73a342kljq6expow6m"); // return (dotneato_usage(1));
985 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
986 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
987 UNSUPPORTED("30903uov1ouylqet6qkn3k0rw"); // case 'E':
988 UNSUPPORTED("cyapeoqsbt759mwufn37a0j3w"); // if (*rest)
989 UNSUPPORTED("b73i9nd8mv1m5tjqoqs0xawyw"); // global_def(&xb, rest, AGEDGE,agattr);
990 UNSUPPORTED("d28blrbmwwqp80cyksuz7dwx9"); // else {
991 UNSUPPORTED("6utrckluwkoaluhpksl5aa52s"); // fprintf(stderr, "Missing argument for -E flag\n");
992 UNSUPPORTED("3j6l9hq73a342kljq6expow6m"); // return (dotneato_usage(1));
993 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
994 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
995 UNSUPPORTED("1ve8bjgk9dfpf0eremg7h6xzz"); // case 'T':
996 UNSUPPORTED("8xdr8a6r0v0ddt027euqcwvue"); // val = getFlagOpt(argc, argv, &i);
997 UNSUPPORTED("3w8hn108291bjaa11z3v4j97d"); // if (!val) {
998 UNSUPPORTED("cd45xgksaxjl5u63gikj5qcyu"); // fprintf(stderr, "Missing argument for -T flag\n");
999 UNSUPPORTED("3j6l9hq73a342kljq6expow6m"); // return (dotneato_usage(1));
1000 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
1001 UNSUPPORTED("72i7z40rqqngolv7pgnr45kl3"); // v = gvjobs_output_langname(gvc, val);
1002 UNSUPPORTED("9cs6zbfun0bg9dhunbu1dwnox"); // if (!v) {
1003 UNSUPPORTED("7ohbl1a39cg7xkg3hactpw7w3"); // fprintf(stderr, "Format: \"%s\" not recognized. Use one of:%s\n",
1004 UNSUPPORTED("f2p3vxh49izcvsl9jvtkf6q3o"); // val, gvplugin_list(gvc, API_device, val));
1005 UNSUPPORTED("910dtu59610pevhvj5yhrqcm4"); // if (GvExitOnUsage) exit(1);
1006 UNSUPPORTED("7uqiarbyt9mx4hwdla4nbhj8p"); // return(2);
1007 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
1008 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1009 UNSUPPORTED("8e0kz1b9axy6hx29fg32k1asu"); // case 'K':
1010 UNSUPPORTED("8xdr8a6r0v0ddt027euqcwvue"); // val = getFlagOpt(argc, argv, &i);
1011 UNSUPPORTED("3w8hn108291bjaa11z3v4j97d"); // if (!val) {
1012 UNSUPPORTED("4387cb0sfakxesew55rctdheb"); // fprintf(stderr, "Missing argument for -K flag\n");
1013 UNSUPPORTED("2ns70sizijh2h7z83rt81fqfk"); // return (dotneato_usage(1));
1014 UNSUPPORTED("7nxu74undh30brb8laojud3f9"); // }
1015 UNSUPPORTED("13d5md8v926ivibrbmgaktksx"); // v = gvlayout_select(gvc, val);
1016 UNSUPPORTED("4pu52xhc37cufgh16nc8pjoa2"); // if (v == 999) {
1017 UNSUPPORTED("8uoslbuyiw8828cnsd28ys8oh"); // fprintf(stderr, "There is no layout engine support for \"%s\"\n", val);
1018 UNSUPPORTED("em4qxiev3phf1bnbh6vx4zjp9"); // if ((*(val)==*("dot")&&!strcmp(val,"dot"))) {
1019 UNSUPPORTED("e46yvd7c19nfgratz9j0sg9d0"); // fprintf(stderr, "Perhaps \"dot -c\" needs to be run (with installer's privileges) to register the plugins?\n");
1020 UNSUPPORTED("3e08x1y395304nd0y3uwffvim"); // }
1021 UNSUPPORTED("cphaexi33y32dnefwtu3jsom4"); // else {
1022 UNSUPPORTED("d3cg95zim5q97685u5v0sxrhv"); // fprintf(stderr, "Use one of:%s\n",
1023 UNSUPPORTED("7ced84fhzz8sv21ptj4yf5b3p"); // gvplugin_list(gvc, API_layout, val));
1024 UNSUPPORTED("dkxvw03k2gg9anv4dbze06axd"); // }
1025 UNSUPPORTED("910dtu59610pevhvj5yhrqcm4"); // if (GvExitOnUsage) exit(1);
1026 UNSUPPORTED("7uqiarbyt9mx4hwdla4nbhj8p"); // return(2);
1027 UNSUPPORTED("7nxu74undh30brb8laojud3f9"); // }
1028 UNSUPPORTED("8c0wmxuda35p1as4i2fh9yoti"); // Kflag = 1;
1029 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1030 UNSUPPORTED("5gsxsxc1w5fdmgnphelmjuqql"); // case 'P':
1031 UNSUPPORTED("91ohbqvqagns01k8geznhjm7k"); // P_graph = gvplugin_graph(gvc);
1032 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1033 UNSUPPORTED("cxe7ytf67rip7dewog9rnbqqq"); // case 'V':
1034 UNSUPPORTED("61p8yjtqxyg8jhsx9xyqa39my"); // fprintf(stderr, "%s - %s version %s (%s)\n",
1035 UNSUPPORTED("chg3zu0nmmc2hpkc8a0cx08er"); // gvc->common.cmdname, gvc->common.info[0],
1036 UNSUPPORTED("b9v3iookta64ex67ies4j4zva"); // gvc->common.info[1], gvc->common.info[2]);
1037 UNSUPPORTED("2hk3eyce9u1ys3e3ycfmrtq9n"); // if (GvExitOnUsage) exit(0);
1038 UNSUPPORTED("b9uibzxx0tu796r6pqyspuc8u"); // return (1);
1039 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1040 UNSUPPORTED("8et213nsqt44k6e0d06mh32mg"); // case 'l':
1041 UNSUPPORTED("8xdr8a6r0v0ddt027euqcwvue"); // val = getFlagOpt(argc, argv, &i);
1042 UNSUPPORTED("3w8hn108291bjaa11z3v4j97d"); // if (!val) {
1043 UNSUPPORTED("3l9adyncbqlq4cr0dn291j8ms"); // fprintf(stderr, "Missing argument for -l flag\n");
1044 UNSUPPORTED("3j6l9hq73a342kljq6expow6m"); // return (dotneato_usage(1));
1045 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
1046 UNSUPPORTED("a3ei53c2mnxhfpt33rezp6ll1"); // use_library(gvc, val);
1047 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1048 UNSUPPORTED("6t4c4wqag0c9inoine0vc6rzh"); // case 'o':
1049 UNSUPPORTED("8xdr8a6r0v0ddt027euqcwvue"); // val = getFlagOpt(argc, argv, &i);
1050 UNSUPPORTED("cgclbrsy2pcq9nt94cnmi4l1n"); // if (! gvc->common.auto_outfile_names)
1051 UNSUPPORTED("6l1o8s3lihedxdhlhkt8bacw5"); // gvjobs_output_filename(gvc, val);
1052 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1053 UNSUPPORTED("3gzpswryl53n5xaxcbut8piyh"); // case 'q':
1054 UNSUPPORTED("55tn4eqemjloic8o06vd4n3nc"); // if (*rest) {
1055 UNSUPPORTED("5j8v456fg3eazoh4x59s440ph"); // v = atoi(rest);
1056 UNSUPPORTED("ee277mlx9bo22lecmdsnie12n"); // if (v <= 0) {
1057 UNSUPPORTED("3iwc3dzplzj2jkbze5cd6zfh9"); // fprintf(stderr,
1058 UNSUPPORTED("6w3cyan5p5sb01pzz7n8i45h6"); // "Invalid parameter \"%s\" for -q flag - ignored\n",
1059 UNSUPPORTED("77gwizewn0zj87535pi2g735m"); // rest);
1060 UNSUPPORTED("2ndpjzfiv49aqobcgbi5tftoi"); // } else if (v == 1)
1061 UNSUPPORTED("b4xb9n0clcaf5h0njzxmd6t8u"); // agseterr(AGERR);
1062 UNSUPPORTED("9acag2yacl63g8rg6r1alu62x"); // else
1063 UNSUPPORTED("eb2xug8syn6gd6cd1ms784rt0"); // agseterr(AGMAX);
1064 UNSUPPORTED("738mi6h8ef0itznt34ngxe25o"); // } else
1065 UNSUPPORTED("cyu314astki71lyhi8jonkon1"); // agseterr(AGERR);
1066 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1067 UNSUPPORTED("9laca56e8dr2klwt5asm5s92v"); // case 's':
1068 UNSUPPORTED("55tn4eqemjloic8o06vd4n3nc"); // if (*rest) {
1069 UNSUPPORTED("7p5xijseyywlgq947on87fbfy"); // PSinputscale = atof(rest);
1070 UNSUPPORTED("te6xrfczv0b2rmmfw7n419bj"); // if (PSinputscale < 0) {
1071 UNSUPPORTED("3iwc3dzplzj2jkbze5cd6zfh9"); // fprintf(stderr,
1072 UNSUPPORTED("298zr2x6bn7osz168zt1qsgbn"); // "Invalid parameter \"%s\" for -s flag\n",
1073 UNSUPPORTED("77gwizewn0zj87535pi2g735m"); // rest);
1074 UNSUPPORTED("788fqd2nm2s7cyhjye34lwaho"); // return (dotneato_usage(1));
1075 UNSUPPORTED("dkxvw03k2gg9anv4dbze06axd"); // }
1076 UNSUPPORTED("e99bugzc8p62vi8asjsx3jnat"); // else if (PSinputscale == 0)
1077 UNSUPPORTED("ca5magegib4z3wn2wbj91xdz5"); // PSinputscale = 72;
1078 UNSUPPORTED("738mi6h8ef0itznt34ngxe25o"); // } else
1079 UNSUPPORTED("cdz7sxlinpy8lsv4kjrrzvmlb"); // PSinputscale = 72;
1080 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1081 UNSUPPORTED("551eo7ey20lfrotadzc8xx636"); // case 'x':
1082 UNSUPPORTED("ciou2ugu3ekwr7d8dtcmo8bqd"); // Reduce = NOT(0);
1083 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1084 UNSUPPORTED("6hwwmvxwrrrsv7qs0y53et76n"); // case 'y':
1085 UNSUPPORTED("71s7bg2w58aqtjmpwed4525kz"); // Y_invert = NOT(0);
1086 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1087 UNSUPPORTED("eqbveikc3czxh4drpev1uzhla"); // case '?':
1088 UNSUPPORTED("5tdq5fsx232bmgvcnkjmwox6c"); // return (dotneato_usage(0));
1089 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
1090 UNSUPPORTED("bt2g0yhsy3c7keqyftf3c98ut"); // default:
1091 UNSUPPORTED("ex8ddsq0de4n302ieh93s4nrw"); // agerr(AGERR, "%s: option -%c unrecognized\n\n", gvc->common.cmdname,
1092 UNSUPPORTED("4fgwtijdvmyysu4tcsnigf36q"); // c);
1093 UNSUPPORTED("5mxnk6d8u3qj69z7yzqkphjgw"); // return (dotneato_usage(1));
1094 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1095 UNSUPPORTED("ezl09f02n0cfigsaeyqsejcm0"); // } else if (argv[i])
1096 UNSUPPORTED("ez69zldbihwem8y9yr9rmi9gt"); // gvc->input_filenames[nfiles++] = argv[i];
1097 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1098 UNSUPPORTED("9ocnzhe59r19odwgtedwnydm"); // agxbfree (&xb);
1099 UNSUPPORTED("56kll2bx8jbmqba2kk0pxvefe"); // /* if no -K, use cmd name to set layout type */
1100 UNSUPPORTED("dy5okspyylmag8l3ke6of2fps"); // if (!Kflag) {
1101 UNSUPPORTED("18vaoqlkvxjkxccqkm1cxljuo"); // layout = gvc->common.cmdname;
1102 UNSUPPORTED("bshj1mtaoepm94oi9afocf8ou"); // if ((*(layout)==*("dot_static")&&!strcmp(layout,"dot_static"))
1103 UNSUPPORTED("64dtzt25t15e7uoo50r0rsefx"); // || (*(layout)==*("dot_builtins")&&!strcmp(layout,"dot_builtins"))
1104 UNSUPPORTED("klg5jjw0m71w4m5shlxzhfjy"); // || (*(layout)==*("lt-dot")&&!strcmp(layout,"lt-dot"))
1105 UNSUPPORTED("42tigt1aywc44r9j37x5jq0ib"); // || (*(layout)==*("lt-dot_builtins")&&!strcmp(layout,"lt-dot_builtins"))
1106 UNSUPPORTED("56pxlfwd1wodkyuswmf36lmwr"); // || (*(layout)==*("")&&!strcmp(layout,"")) /* when run as a process from Gvedit on Windows */
1107 UNSUPPORTED("awdmf39ch8hkgicc7jwv9s67r"); // )
1108 UNSUPPORTED("80rf3qgk59flt06kvnzepp9kt"); // layout = "dot";
1109 UNSUPPORTED("e3pxmvk611turzkqpddzqql3e"); // i = gvlayout_select(gvc, layout);
1110 UNSUPPORTED("cbslslfvt4zqfxukzdqeu902c"); // if (i == 999) {
1111 UNSUPPORTED("2h041d156jcuzdn0h3t1kxz6b"); // fprintf(stderr, "There is no layout engine support for \"%s\"\n", layout);
1112 UNSUPPORTED("6xr0y24n28bl6fmb7hwi2d6yh"); // if ((*(layout)==*("dot")&&!strcmp(layout,"dot")))
1113 UNSUPPORTED("a9b0u4vno2ovyayhgdz2qi2l0"); // fprintf(stderr, "Perhaps \"dot -c\" needs to be run (with installer's privileges) to register the plugins?\n");
1114 UNSUPPORTED("f3qa0cv737ikcre1vpqlkukio"); // else
1115 UNSUPPORTED("3oqrxaejbit2ag4yv1f8std7v"); // fprintf(stderr, "Use one of:%s\n", gvplugin_list(gvc, API_layout, ""));
1116 UNSUPPORTED("cziimyez7l7opmyxtz7i258x"); // if (GvExitOnUsage) exit(1);
1117 UNSUPPORTED("8u2416o82oso1w72bexmapn9v"); // return(2);
1118 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1119 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1120 UNSUPPORTED("e8n0c84rizzjhmsff49m2fynz"); // /* if no -Txxx, then set default format */
1121 UNSUPPORTED("5atdq1nn8pklea2e61l8ekie"); // if (!gvc->jobs || !gvc->jobs->output_langname) {
1122 UNSUPPORTED("ejs6fyeynpj73y8zhc2xjcvrc"); // v = gvjobs_output_langname(gvc, "dot");
1123 UNSUPPORTED("6lpp7llfms4w364wz03qdlrnl"); // if (!v) {
1124 UNSUPPORTED("5di5qeuntrt4eii2azt25l076"); // // assert(v); /* "dot" should always be available as an output format */
1125 UNSUPPORTED("18zn34qcs4vsdhhh831gn9vc9"); // fprintf(stderr,
1126 UNSUPPORTED("5rhyltg4walgso272exe4gdqz"); // "Unable to find even the default \"-Tdot\" renderer. Has the config\nfile been generated by running \"dot -c\" with installer's priviledges?\n");
1127 UNSUPPORTED("3r5dyo5vxrzten0rhlmlmhe8v"); // return(2);
1128 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1129 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1130 UNSUPPORTED("1i3ejmrslphirq6u7onu2i3cr"); // /* set persistent attributes here (if not already set from command line options) */
1131 UNSUPPORTED("et68lvyh6row6cmvnxmw4nuvj"); // if (!agattr(NULL, AGNODE, "label", 0))
1132 UNSUPPORTED("74v5uwoisv6m2lnnjv33219om"); // agattr(NULL, AGNODE, "label", "\\N");
1133 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
1134 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1135
1136 throw new UnsupportedOperationException();
1137 }
1138
1139
1140
1141
1142 //3 72no6ayfvjinlnupyn5jlmayg
1143 // static boolean getdoubles2ptf(graph_t * g, char *name, pointf * result)
1144 public static boolean getdoubles2ptf(ST_Agraph_s g, CString name, ST_pointf result) {
1145 ENTERING("72no6ayfvjinlnupyn5jlmayg","getdoubles2ptf");
1146 try {
1147 CString p;
1148 int i;
1149 double xf, yf;
1150 char c = '\0';
1151 boolean rv = false;
1152 if ((p = agget(g, name))!=null) {
1153 UNSUPPORTED("21b2kes0vrizyai71yj9e2os3"); // i = sscanf(p, "%lf,%lf%c", &xf, &yf, &c);
1154 UNSUPPORTED("9wua6uiybfvqd70huuo0yatcf"); // if ((i > 1) && (xf > 0) && (yf > 0)) {
1155 UNSUPPORTED("8z2huopqt4m1rvfcd7vqatka4"); // result->x = ((((xf)*72>=0)?(int)((xf)*72 + .5):(int)((xf)*72 - .5)));
1156 UNSUPPORTED("cil4j0n3iq35gr2pfewi2qawz"); // result->y = ((((yf)*72>=0)?(int)((yf)*72 + .5):(int)((yf)*72 - .5)));
1157 UNSUPPORTED("9qnr8qmbz7pf3mmpebux0p08m"); // if (c == '!')
1158 UNSUPPORTED("dqyb6drzg8ig5ecb31fq5c1d4"); // rv = (!(0));
1159 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1160 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
1161 UNSUPPORTED("8wtaqjit9awt7xd08vuifknry"); // c = '\0';
1162 UNSUPPORTED("705372l4htjtcvnq97l7i54g8"); // i = sscanf(p, "%lf%c", &xf, &c);
1163 UNSUPPORTED("4n9k1twwfmxyet8tokr7xnktj"); // if ((i > 0) && (xf > 0)) {
1164 UNSUPPORTED("8ui53rmpq7ao1p4yin0xqzszj"); // result->y = result->x = ((((xf)*72>=0)?(int)((xf)*72 + .5):(int)((xf)*72 - .5)));
1165 UNSUPPORTED("1rflva1x66uhyqxr5zbpcsgnh"); // if (c == '!') rv = (!(0));
1166 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1167 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1168 }
1169 return rv;
1170 } finally {
1171 LEAVING("72no6ayfvjinlnupyn5jlmayg","getdoubles2ptf");
1172 }
1173 }
1174
1175
1176
1177
1178 //3 1xg46gdvtsko1yrtm6mg4tsxy
1179 // void getdouble(graph_t * g, char *name, double *result)
1180 public static Object getdouble(Object... arg) {
1181 UNSUPPORTED("5gfb0pnjet6us7l51d48x25aq"); // void getdouble(graph_t * g, char *name, double *result)
1182 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1183 UNSUPPORTED("aexhdud6z2wbwwi73yppp0ynl"); // char *p;
1184 UNSUPPORTED("jnku6gn089m43hq5hndzrxzn"); // double f;
1185 UNSUPPORTED("bifb8kht3vkytb74qbof9vpob"); // if ((p = agget(g, name))) {
1186 UNSUPPORTED("4r30fz6hpqhfj44lip5cndh1m"); // if (sscanf(p, "%lf", &f) >= 1)
1187 UNSUPPORTED("jepdvpsjq4757gzwaplghh4j"); // *result = f;
1188 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1189 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1190
1191 throw new UnsupportedOperationException();
1192 }
1193
1194
1195
1196
1197 //3 7c1tanyo6vwej9cqo0rkiv6sv
1198 // graph_t *gvNextInputGraph(GVC_t *gvc)
1199 public static Object gvNextInputGraph(Object... arg) {
1200 UNSUPPORTED("a6jdteesa5ifdtthxxsohrlh2"); // graph_t *gvNextInputGraph(GVC_t *gvc)
1201 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1202 UNSUPPORTED("ccvkc7reh332l10k91bjvksnm"); // graph_t *g = NULL;
1203 UNSUPPORTED("5dpauyujvamkm0ay3pfh999y3"); // static char *fn;
1204 UNSUPPORTED("46orciiuryyogkvndndbawo06"); // static FILE *fp;
1205 UNSUPPORTED("82yfc13etao3sz5hqypnt56oq"); // static FILE *oldfp;
1206 UNSUPPORTED("1c51f3lle32l3xcfnkzig5ett"); // static int fidx, gidx;
1207 UNSUPPORTED("6i509d0s1nqxjr873r5dz7gv5"); // while (!g) {
1208 UNSUPPORTED("56tws2uz7mqhxwswpbpf94b5c"); // if (!fp) {
1209 UNSUPPORTED("6d4ms2m7wzcyf2eofwsoz7jzu"); // if (!(fn = gvc->input_filenames[0])) {
1210 UNSUPPORTED("eec7y1e55sjjkrx06jmtoyrz1"); // if (fidx++ == 0)
1211 UNSUPPORTED("sln8j5e1981v4p6fvxyy4jjq"); // fp = stdin;
1212 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1213 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
1214 UNSUPPORTED("btttznywgnyh5niqc16ebuucw"); // while ((fn = gvc->input_filenames[fidx++]) && !(fp = fopen(fn, "r"))) {
1215 UNSUPPORTED("4futxtc5kgl4i6bw6j1xhws4s"); // agerr(AGERR, "%s: can't open %s\n", gvc->common.cmdname, fn);
1216 UNSUPPORTED("o7u2b38bnefhf1l58zkel4i3"); // graphviz_errors++;
1217 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
1218 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1219 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1220 UNSUPPORTED("74qpksqxqa1hxoxfw5ugamyww"); // if (fp == NULL)
1221 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1222 UNSUPPORTED("2euu5u83dzpauthvjfy4vlcxg"); // if (oldfp != fp) {
1223 UNSUPPORTED("cdwz1axrp68a13bwv1la3a736"); // agsetfile(fn ? fn : "<stdin>");
1224 UNSUPPORTED("36hhlg0nbd0exjvtbe0fc5gj6"); // oldfp = fp;
1225 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1226 UNSUPPORTED("b1s6sspge1n2c2b0yukawa8jw"); // g = agread(fp,((Agdisc_t*)0));
1227 UNSUPPORTED("wx1q1tyb5r9oziojtpc4vd1n"); // if (g) {
1228 UNSUPPORTED("8r806yndx1ticudcknc3r1sp2"); // gvg_init(gvc, g, fn, gidx++);
1229 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1230 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1231 UNSUPPORTED("7oaqgqiffegej6sz73ow4cwtw"); // if (fp != stdin)
1232 UNSUPPORTED("caiflnlhuyqft76qr8gx91bf3"); // fclose (fp);
1233 UNSUPPORTED("7y7knbs9950t3udidyrln8lmp"); // fp = NULL;
1234 UNSUPPORTED("ecnsdkjxzhqh68kkz6fpbez04"); // gidx = 0;
1235 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1236 UNSUPPORTED("2syri7q5tc0jyvwq8ecyfo3vr"); // return g;
1237 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1238
1239 throw new UnsupportedOperationException();
1240 }
1241
1242
1243
1244
1245 //3 9t08dr2ks9qz1pyfz99awla6x
1246 // static int findCharset (graph_t * g)
1247 public static int findCharset(ST_Agraph_s g) {
1248 ENTERING("9t08dr2ks9qz1pyfz99awla6x","findCharset");
1249 try {
1250 return 0;
1251 } finally {
1252 LEAVING("9t08dr2ks9qz1pyfz99awla6x","findCharset");
1253 }
1254 }
1255
1256
1257
1258
1259 //3 3bnmjpvynh1j9oh2p2vi0vh2m
1260 // static void setRatio(graph_t * g)
1261 public static void setRatio(ST_Agraph_s g) {
1262 ENTERING("3bnmjpvynh1j9oh2p2vi0vh2m","setRatio");
1263 try {
1264 CString p;
1265 char c;
1266 double ratio;
1267 if ((p = agget(g, new CString("ratio")))!=null && ((c = p.charAt(0))!='\0')) {
1268 UNSUPPORTED("7rk995hpmaqbbasmi40mqg0yw"); // switch (c) {
1269 UNSUPPORTED("2v5u3irq50r1n2ccuna0y09lk"); // case 'a':
1270 UNSUPPORTED("3jv8xrrloj92axkpkgolzwgo6"); // if ((*(p)==*("auto")&&!strcmp(p,"auto")))
1271 UNSUPPORTED("8bdbsrt9sk4hnj3wm6z100qm"); // (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->drawing)->ratio_kind = R_AUTO;
1272 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1273 UNSUPPORTED("f3lyz2cejs6yn5fyckhn7ba1"); // case 'c':
1274 UNSUPPORTED("1v3jyjziibgnha1glbymorwg1"); // if ((*(p)==*("compress")&&!strcmp(p,"compress")))
1275 UNSUPPORTED("coprfqf41n6byzz3nfneke6a"); // (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->drawing)->ratio_kind = R_COMPRESS;
1276 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1277 UNSUPPORTED("2fzjr952o6hmcz3ad5arl2n8d"); // case 'e':
1278 UNSUPPORTED("5s06nikh994hgncpwni2p4rwq"); // if ((*(p)==*("expand")&&!strcmp(p,"expand")))
1279 UNSUPPORTED("eanijnkdjj1f6q7su4gmmijpj"); // (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->drawing)->ratio_kind = R_EXPAND;
1280 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1281 UNSUPPORTED("8jntw084f69528np3kisw5ioc"); // case 'f':
1282 UNSUPPORTED("105p0jwfnsptmrweig5mhpkn9"); // if ((*(p)==*("fill")&&!strcmp(p,"fill")))
1283 UNSUPPORTED("eknfh3axjhorf2rfb914hdgbd"); // (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->drawing)->ratio_kind = R_FILL;
1284 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1285 UNSUPPORTED("1drv0xz8hp34qnf72b4jpprg2"); // default:
1286 UNSUPPORTED("e4fr8djxwn615yr0rj46vtdbd"); // ratio = atof(p);
1287 UNSUPPORTED("43a0ik2dkpg3y58orisgkn32q"); // if (ratio > 0.0) {
1288 UNSUPPORTED("azv56xi8njootl2n9l5bm1udc"); // (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->drawing)->ratio_kind = R_VALUE;
1289 UNSUPPORTED("ch5o67mezsw0v6iwxylb98myn"); // (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->drawing)->ratio = ratio;
1290 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1291 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1292 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1293 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1294 }
1295 } finally {
1296 LEAVING("3bnmjpvynh1j9oh2p2vi0vh2m","setRatio");
1297 }
1298 }
1299
1300
1301
1302
1303 static CString rankname[] = new CString[] { new CString("local"), new CString("global"), new CString("none"), null };
1304 static int rankcode[] = { 100, 101, 102, 100 };
1305 static CString fontnamenames[] = new CString[] {new CString("gd"),new CString("ps"),new CString("svg"), null};
1306 static int fontnamecodes[] = {enumAsInt(fontname_kind.class, "NATIVEFONTS"),enumAsInt(fontname_kind.class, "PSFONTS"),
1307 enumAsInt(fontname_kind.class, "SVGFONTS"),-1};
1308 //3 8gzdr3oil2d0e2o7m84wsszfg
1309 //void graph_init(graph_t * g, boolean use_rankdir)
1310 public static void graph_init(ST_Agraph_s g, boolean use_rankdir) {
1311 ENTERING("8gzdr3oil2d0e2o7m84wsszfg","graph_init");
1312 try {
1313 CString p;
1314 double xf;
1315 int rankdir;
1316 GD_drawing(g, new ST_layout_t());
1317 /* set this up fairly early in case any string sizes are needed */
1318 if ((p = agget(g, new CString("fontpath")))!=null || (p = getenv(new CString("DOTFONTPATH")))!=null) {
1319 UNSUPPORTED("81bz3jcukzyotxiqgrlhn9cbq"); // /* overide GDFONTPATH in local environment if dot
1320 UNSUPPORTED("6jgl7atk1m9yeam4auh127azw"); // * wants its own */
1321 UNSUPPORTED("dyk0vc64gdzy1uwvsc2jqnjdw"); // static char *buf = 0;
1322 UNSUPPORTED("8dywgree8jdjmj2ll2whbekhe"); // buf = grealloc(buf, strlen("GDFONTPATH=") + strlen(p) + 1);
1323 UNSUPPORTED("d9ej6bo2s49vpstu3pql6tkrx"); // strcpy(buf, "GDFONTPATH=");
1324 UNSUPPORTED("1s2jcd2h3eok7j6pclv20gyi2"); // strcat(buf, p);
1325 UNSUPPORTED("abkxekvux4nramryfw2e8vcru"); // putenv(buf);
1326 }
1327 GD_charset(g, findCharset (g));
1328 /*if (!HTTPServerEnVar) {
1329 Gvimagepath = agget (g, "imagepath");
1330 if (!Gvimagepath)
1331 Gvimagepath = Gvfilepath;
1332 }*/
1333 GD_drawing(g).setDouble("quantum",
1334 late_double(g, (agattr(g,AGRAPH,new CString("quantum"),null)), 0.0, 0.0));
1335 /* setting rankdir=LR is only defined in dot,
1336 * but having it set causes shape code and others to use it.
1337 * The result is confused output, so we turn it off unless requested.
1338 * This effective rankdir is stored in the bottom 2 bits of g->u.rankdir.
1339 * Sometimes, the code really needs the graph's rankdir, e.g., neato -n
1340 * with record shapes, so we store the real rankdir in the next 2 bits.
1341 */
1342 rankdir = 0;
1343 if ((p = agget(g, new CString("rankdir")))!=null) {
1344 UNSUPPORTED("sp7zcza7w0dn7t66aj8rf4wn"); // if ((*(p)==*("LR")&&!strcmp(p,"LR")))
1345 UNSUPPORTED("bjd2vk1jssqehllmgnqv601qd"); // rankdir = 1;
1346 UNSUPPORTED("ry8itlrmblmuegdwk1iu1t0x"); // else if ((*(p)==*("BT")&&!strcmp(p,"BT")))
1347 UNSUPPORTED("5hno0xn18yt443qg815w3c2s2"); // rankdir = 2;
1348 UNSUPPORTED("aal39mi047mhafrsrxoutcffk"); // else if ((*(p)==*("RL")&&!strcmp(p,"RL")))
1349 UNSUPPORTED("7vlda224wrgcdhr0ts3mndh5q"); // rankdir = 3;
1350 }
1351 if (use_rankdir)
1352 GD_rankdir2(g, (rankdir << 2) | rankdir);
1353 else
1354 GD_rankdir2(g, (rankdir << 2));
1355 xf = late_double(g, (agattr(g,AGRAPH,new CString("nodesep"),null)),
1356 0.25, 0.02);
1357 GD_nodesep(g, (ROUND((xf)*72)));
1358 p = late_string(g, (agattr(g,AGRAPH,new CString("ranksep"),null)), null);
1359 if (p!=null) {
1360 UNSUPPORTED("c3p25g4289dxlei062z4eflss"); // if (sscanf(p, "%lf", &xf) == 0)
1361 UNSUPPORTED("570vljex12zx5dkwi7mqa9knw"); // xf = 0.5;
1362 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
1363 UNSUPPORTED("p882lodfwy5v48rwbxvg5s9i"); // if (xf < 0.02)
1364 UNSUPPORTED("dhhbmqv6n01j1eeyy7fpus1xw"); // xf = 0.02;
1365 if (strstr(p, new CString("equally"))!=null)
1366 GD_exact_ranksep(g, 1);
1367 } else
1368 xf = 0.5;
1369 GD_ranksep(g, (ROUND((xf)*72)));
1370 GD_showboxes(g, late_int(g, (agattr(g,AGRAPH,new CString("showboxes"),null)), 0, 0));
1371 p = late_string(g, (agattr(g,AGRAPH,new CString("fontnames"),null)), null);
1372 GD_fontnames(g, maptoken(p, fontnamenames, fontnamecodes));
1373 setRatio(g);
1374 GD_drawing(g).filled =
1375 getdoubles2ptf(g, new CString("size"), (ST_pointf) GD_drawing(g).size);
1376 getdoubles2ptf(g, new CString("page"), (ST_pointf) GD_drawing(g).page);
1377 GD_drawing(g).centered = mapbool(agget(g, new CString("center")));
1378 if ((p = agget(g, new CString("rotate")))!=null)
1379 GD_drawing(g).landscape= (atoi(p) == 90);
1380 else if ((p = agget(g, new CString("orientation")))!=null)
1381 GD_drawing(g).landscape= ((p.charAt(0) == 'l') || (p.charAt(0) == 'L'));
1382 else if ((p = agget(g, new CString("landscape")))!=null)
1383 GD_drawing(g).landscape= mapbool(p);
1384 p = agget(g, new CString("clusterrank"));
1385 Z.z().CL_type = maptoken(p, rankname, rankcode);
1386 p = agget(g, new CString("concentrate"));
1387 Z.z().Concentrate = mapbool(p);
1388 Z.z().State = 0;
1389 Z.z().EdgeLabelsDone = 0;
1390 GD_drawing(g).setDouble("dpi", 0.0);
1391 if (((p = agget(g, new CString("dpi")))!=null && p.charAt(0)!='\0')
1392 || ((p = agget(g, new CString("resolution")))!=null && p.charAt(0)!='\0'))
1393 GD_drawing(g).setDouble("dpi", atof(p));
1394 do_graph_label(g);
1395 Z.z().Initial_dist = (1.0e+37);
1396 Z.z().G_ordering = (agattr(g,AGRAPH,new CString("ordering"),null));
1397 Z.z().G_gradientangle = (agattr(g,AGRAPH,new CString("gradientangle"),null));
1398 Z.z().G_margin = (agattr(g,AGRAPH,new CString("margin"),null));
1399 /* initialize nodes */
1400 Z.z().N_height = (agattr(g,AGNODE,new CString("height"),null));
1401 Z.z().N_width = (agattr(g,AGNODE,new CString("width"),null));
1402 Z.z().N_shape = (agattr(g,AGNODE,new CString("shape"),null));
1403 Z.z().N_color = (agattr(g,AGNODE,new CString("color"),null));
1404 Z.z().N_fillcolor = (agattr(g,AGNODE,new CString("fillcolor"),null));
1405 Z.z().N_style = (agattr(g,AGNODE,new CString("style"),null));
1406 Z.z().N_fontsize = (agattr(g,AGNODE,new CString("fontsize"),null));
1407 Z.z().N_fontname = (agattr(g,AGNODE,new CString("fontname"),null));
1408 Z.z().N_fontcolor = (agattr(g,AGNODE,new CString("fontcolor"),null));
1409 Z.z().N_label = (agattr(g,AGNODE,new CString("label"),null));
1410 if (N(Z.z().N_label))
1411 Z.z().N_label = agattr(g, AGNODE, new CString("label"), new CString("\\N"));
1412 Z.z().N_xlabel = (agattr(g,AGNODE,new CString("xlabel"),null));
1413 Z.z().N_showboxes = (agattr(g,AGNODE,new CString("showboxes"),null));
1414 Z.z().N_penwidth = (agattr(g,AGNODE,new CString("penwidth"),null));
1415 Z.z().N_ordering = (agattr(g,AGNODE,new CString("ordering"),null));
1416 Z.z().N_margin = (agattr(g,AGNODE,new CString("margin"),null));
1417 /* attribs for polygon shapes */
1418 Z.z().N_sides = (agattr(g,AGNODE,new CString("sides"),null));
1419 Z.z().N_peripheries = (agattr(g,AGNODE,new CString("peripheries"),null));
1420 Z.z().N_skew = (agattr(g,AGNODE,new CString("skew"),null));
1421 Z.z().N_orientation = (agattr(g,AGNODE,new CString("orientation"),null));
1422 Z.z().N_distortion = (agattr(g,AGNODE,new CString("distortion"),null));
1423 Z.z().N_fixed = (agattr(g,AGNODE,new CString("fixedsize"),null));
1424 Z.z().N_imagescale = (agattr(g,AGNODE,new CString("imagescale"),null));
1425 Z.z().N_nojustify = (agattr(g,AGNODE,new CString("nojustify"),null));
1426 Z.z().N_layer = (agattr(g,AGNODE,new CString("layer"),null));
1427 Z.z().N_group = (agattr(g,AGNODE,new CString("group"),null));
1428 Z.z().N_comment = (agattr(g,AGNODE,new CString("comment"),null));
1429 Z.z().N_vertices = (agattr(g,AGNODE,new CString("vertices"),null));
1430 Z.z().N_z = (agattr(g,AGNODE,new CString("z"),null));
1431 Z.z().N_gradientangle = (agattr(g,AGNODE,new CString("gradientangle"),null));
1432 /* initialize edges */
1433 Z.z().E_weight = (agattr(g,AGEDGE,new CString("weight"),null));
1434 Z.z().E_color = (agattr(g,AGEDGE,new CString("color"),null));
1435 Z.z().E_fillcolor = (agattr(g,AGEDGE,new CString("fillcolor"),null));
1436 Z.z().E_fontsize = (agattr(g,AGEDGE,new CString("fontsize"),null));
1437 Z.z().E_fontname = (agattr(g,AGEDGE,new CString("fontname"),null));
1438 Z.z().E_fontcolor = (agattr(g,AGEDGE,new CString("fontcolor"),null));
1439 Z.z().E_label = (agattr(g,AGEDGE,new CString("label"),null));
1440 Z.z().E_xlabel = (agattr(g,AGEDGE,new CString("xlabel"),null));
1441 Z.z().E_label_float = (agattr(g,AGEDGE,new CString("labelfloat"),null));
1442 /* vladimir */
1443 Z.z().E_dir = (agattr(g,AGEDGE,new CString("dir"),null));
1444 Z.z().E_arrowhead = (agattr(g,AGEDGE,new CString("arrowhead"),null));
1445 Z.z().E_arrowtail = (agattr(g,AGEDGE,new CString("arrowtail"),null));
1446 Z.z().E_headlabel = (agattr(g,AGEDGE,new CString("headlabel"),null));
1447 Z.z().E_taillabel = (agattr(g,AGEDGE,new CString("taillabel"),null));
1448 Z.z().E_labelfontsize = (agattr(g,AGEDGE,new CString("labelfontsize"),null));
1449 Z.z().E_labelfontname = (agattr(g,AGEDGE,new CString("labelfontname"),null));
1450 Z.z().E_labelfontcolor = (agattr(g,AGEDGE,new CString("labelfontcolor"),null));
1451 Z.z().E_labeldistance = (agattr(g,AGEDGE,new CString("labeldistance"),null));
1452 Z.z().E_labelangle = (agattr(g,AGEDGE,new CString("labelangle"),null));
1453 /* end vladimir */
1454 Z.z().E_minlen = (agattr(g,AGEDGE,new CString("minlen"),null));
1455 Z.z().E_showboxes = (agattr(g,AGEDGE,new CString("showboxes"),null));
1456 Z.z().E_style = (agattr(g,AGEDGE,new CString("style"),null));
1457 Z.z().E_decorate = (agattr(g,AGEDGE,new CString("decorate"),null));
1458 Z.z().E_arrowsz = (agattr(g,AGEDGE,new CString("arrowsize"),null));
1459 Z.z().E_constr = (agattr(g,AGEDGE,new CString("constraint"),null));
1460 Z.z().E_layer = (agattr(g,AGEDGE,new CString("layer"),null));
1461 Z.z().E_comment = (agattr(g,AGEDGE,new CString("comment"),null));
1462 Z.z().E_tailclip = (agattr(g,AGEDGE,new CString("tailclip"),null));
1463 Z.z().E_headclip = (agattr(g,AGEDGE,new CString("headclip"),null));
1464 Z.z().E_penwidth = (agattr(g,AGEDGE,new CString("penwidth"),null));
1465 /* background */
1466 GD_drawing(g).setPtr("xdots", init_xdot (g));
1467 /* initialize id, if any */
1468 if ((p = agget(g, new CString("id")))!=null && p.charAt(0)!='\0')
1469 GD_drawing(g).setPtr("id", strdup_and_subst_obj(p, g));
1470 } finally {
1471 LEAVING("8gzdr3oil2d0e2o7m84wsszfg","graph_init");
1472 }
1473 }
1474
1475
1476
1477
1478 //3 46ypwxxdurpwoq7ee0nagnyuw
1479 // void graph_cleanup(graph_t *g)
1480 public static Object graph_cleanup(Object... arg) {
1481 UNSUPPORTED("30nwbe5cpmxhh80h8xa9akr9z"); // void graph_cleanup(graph_t *g)
1482 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1483 UNSUPPORTED("dnom8brm7mdyz49mlyew1yfx4"); // if (GD_drawing(g) && GD_drawing(g)->xdots)
1484 UNSUPPORTED("cbn0kehrijve4p68esddyi4cm"); // freeXDot ((xdot*)GD_drawing(g)->xdots);
1485 UNSUPPORTED("4wfyhel6dchugc6m03gzcaqqx"); // if (GD_drawing(g) && GD_drawing(g)->id)
1486 UNSUPPORTED("3uhbrv39ml1lee2b5i24tnmp2"); // free (GD_drawing(g)->id);
1487 UNSUPPORTED("vcg73wzydblsuguqzall9cv4"); // free(GD_drawing(g));
1488 UNSUPPORTED("1ia1a125sivdblphtrgblo6nr"); // GD_drawing(g) = NULL;
1489 UNSUPPORTED("amdwcc4txs1rjdj436t6qt2k4"); // free_label(GD_label(g));
1490 UNSUPPORTED("8jf0pz51pmyvkml9d1jqhncju"); // //FIX HERE , STILL SHALLOW
1491 UNSUPPORTED("32tijapsyiumwfmjqrf8j6d41"); // //memset(&(g->u), 0, sizeof(Agraphinfo_t));
1492 UNSUPPORTED("7e4eo7ldxaf48s2v3paft8j2c"); // agclean(g, AGRAPH,"Agraphinfo_t");
1493 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1494
1495 throw new UnsupportedOperationException();
1496 }
1497
1498
1499
1500
1501 //3 7rzv30lub416sffko0du3o6sx
1502 // char* charsetToStr (int c)
1503 public static Object charsetToStr(Object... arg) {
1504 UNSUPPORTED("cqm25rponse4rsi686sbn1lo0"); // char*
1505 UNSUPPORTED("b1ttom615vlztws5drinv8k4i"); // charsetToStr (int c)
1506 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1507 UNSUPPORTED("cypok90bpbt6z74ak3nu63g1m"); // char* s;
1508 UNSUPPORTED("239qe3atroys6jen2eufic7ex"); // switch (c) {
1509 UNSUPPORTED("1nhgtydm95uz0oftevo3oly8e"); // case 0 :
1510 UNSUPPORTED("2nidjssyf3n7w7cygka1k20t7"); // s = "UTF-8";
1511 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
1512 UNSUPPORTED("6152devym3begeqtwle6okwtn"); // case 1 :
1513 UNSUPPORTED("ct1k13idag6941hvbi9y2bzt3"); // s = "ISO-8859-1";
1514 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
1515 UNSUPPORTED("brmutjgcyjq57ggmjk11na8lu"); // case 2 :
1516 UNSUPPORTED("5irze7y061rfoysvsbc01net8"); // s = "BIG-5";
1517 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
1518 UNSUPPORTED("cjimoqzt0qz3wos8m9h7g3hmh"); // default :
1519 UNSUPPORTED("816pcwbgdg9rau7jfcj6xpoel"); // agerr(AGERR, "Unsupported charset value %d\n", c);
1520 UNSUPPORTED("2nidjssyf3n7w7cygka1k20t7"); // s = "UTF-8";
1521 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
1522 UNSUPPORTED("67k63k77j3kjabivb0i8hxrwd"); // }
1523 UNSUPPORTED("dyq366cow9q7c8bh5jns3dlqo"); // return s;
1524 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1525
1526 throw new UnsupportedOperationException();
1527 }
1528
1529
1530
1531
1532 //3 5vks1zdadu5vjinaivs0j2bkb
1533 // void do_graph_label(graph_t * sg)
1534 public static void do_graph_label(ST_Agraph_s sg) {
1535 ENTERING("5vks1zdadu5vjinaivs0j2bkb","do_graph_label");
1536 try {
1537 CString str, pos, just;
1538 int pos_ix;
1539 /* it would be nice to allow multiple graph labels in the future */
1540 if ((str = agget(sg, new CString("label")))!=null && (str.charAt(0) != '\0')) {
1541 char pos_flag=0;
1542 final ST_pointf dimen = new ST_pointf();
1543 GD_has_labels(sg.root, GD_has_labels(sg.root) | (1 << 3));
1544 GD_label(sg, make_label(sg, str, (aghtmlstr(str)!=0 ? (1 << 1) : (0 << 1)),
1545 late_double(sg, (agattr(sg,AGRAPH,new CString("fontsize"),null)),
1546 14.0, 1.0),
1547 late_nnstring(sg, (agattr(sg,AGRAPH,new CString("fontname"),null)),
1548 new CString("Times-Roman")),
1549 late_nnstring(sg, (agattr(sg,AGRAPH,new CString("fontcolor"),null)),
1550 new CString("black"))));
1551 /* set label position */
1552 pos = agget(sg, new CString("labelloc"));
1553 if (NEQ(sg, agroot(sg))) {
1554 if (pos!=null && (pos.charAt(0) == 'b'))
1555 pos_flag = 0;
1556 else
1557 pos_flag = 1;
1558 } else {
1559 UNSUPPORTED("601b6yrqr391vnfpa74d7fec7"); // if (pos && (pos[0] == 't'))
1560 UNSUPPORTED("bxai2kktsidvda3696ctyk63c"); // pos_flag = 1;
1561 UNSUPPORTED("5c97f6vfxny0zz35l2bu4maox"); // else
1562 UNSUPPORTED("6m5sy5ew8izdy8i10zb5o2dvu"); // pos_flag = 0;
1563 }
1564 just = agget(sg, new CString("labeljust"));
1565 if (just!=null) {
1566 UNSUPPORTED("3gxohpfqzahytaf7f9apn58az"); // if (just[0] == 'l')
1567 UNSUPPORTED("ch7sydr4cg29o8ky9fbk5vnlg"); // pos_flag |= 2;
1568 UNSUPPORTED("336to8kpmovx00pexhhenz74b"); // else if (just[0] == 'r')
1569 UNSUPPORTED("evu9w6pw3kkh7z8w7t4rx4qxc"); // pos_flag |= 4;
1570 }
1571 GD_label_pos(sg, pos_flag);
1572 if (EQ(sg, agroot(sg)))
1573 return;
1574 /* Set border information for cluster labels to allow space
1575 */
1576 dimen.___(GD_label(sg).dimen);
1577 dimen.setDouble("x", dimen.x + 4*4);
1578 dimen.setDouble("y", dimen.y + 2*4);
1579 if (N(GD_flip(agroot(sg)))) {
1580 if ((GD_label_pos(sg) & 1)!=0)
1581 pos_ix = 2;
1582 else
1583 pos_ix = 0;
1584 GD_border(sg)[pos_ix].___(dimen);
1585 } else {
1586 /* when rotated, the labels will be restored to TOP or BOTTOM */
1587 UNSUPPORTED("cabz6xbjdvz5vmjulzrhlxh48"); // if ((((Agraphinfo_t*)(((Agobj_t*)(sg))->data))->label_pos) & 1)
1588 UNSUPPORTED("dx7v6663o9o0x1j5r8z4wumxb"); // pos_ix = 1;
1589 UNSUPPORTED("5c97f6vfxny0zz35l2bu4maox"); // else
1590 UNSUPPORTED("97dtv6k7yw1qvfzgs65cj2v0l"); // pos_ix = 3;
1591 UNSUPPORTED("21iuie8b11x65je8vampstgt6"); // (((Agraphinfo_t*)(((Agobj_t*)(sg))->data))->border)[pos_ix].x = dimen.y;
1592 UNSUPPORTED("8cawl3kik853hkvgm39y34urs"); // (((Agraphinfo_t*)(((Agobj_t*)(sg))->data))->border)[pos_ix].y = dimen.x;
1593 }
1594 }
1595 } finally {
1596 LEAVING("5vks1zdadu5vjinaivs0j2bkb","do_graph_label");
1597 }
1598 }
1599
1600
1601 }