Debian Codegraph @

src/gen/lib/circogen/circpos__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.circogen;
47 import static smetana.core.JUtilsDebug.ENTERING;
48 import static smetana.core.JUtilsDebug.LEAVING;
49 import static smetana.core.Macro.UNSUPPORTED;
50 import h.ST_pointf;
51
52 public class circpos__c {
53 //1 2digov3edok6d5srhgtlmrycs
54 // extern lt_symlist_t lt_preloaded_symbols[]
55
56
57 //1 baedz5i9est5csw3epz3cv7z
58 // typedef Ppoly_t Ppolyline_t
59
60
61 //1 9k44uhd5foylaeoekf3llonjq
62 // extern Dtmethod_t* Dtset
63
64
65 //1 1ahfywsmzcpcig2oxm7pt9ihj
66 // extern Dtmethod_t* Dtbag
67
68
69 //1 anhghfj3k7dmkudy2n7rvt31v
70 // extern Dtmethod_t* Dtoset
71
72
73 //1 5l6oj1ux946zjwvir94ykejbc
74 // extern Dtmethod_t* Dtobag
75
76
77 //1 2wtf222ak6cui8cfjnw6w377z
78 // extern Dtmethod_t* Dtlist
79
80
81 //1 d1s1s6ibtcsmst88e3057u9r7
82 // extern Dtmethod_t* Dtstack
83
84
85 //1 axa7mflo824p6fspjn1rdk0mt
86 // extern Dtmethod_t* Dtqueue
87
88
89 //1 ega812utobm4xx9oa9w9ayij6
90 // extern Dtmethod_t* Dtdeque
91
92
93 //1 cyfr996ur43045jv1tjbelzmj
94 // extern Dtmethod_t* Dtorder
95
96
97 //1 wlofoiftbjgrrabzb2brkycg
98 // extern Dtmethod_t* Dttree
99
100
101 //1 12bds94t7voj7ulwpcvgf6agr
102 // extern Dtmethod_t* Dthash
103
104
105 //1 9lqknzty480cy7zsubmabkk8h
106 // extern Dtmethod_t _Dttree
107
108
109 //1 bvn6zkbcp8vjdhkccqo1xrkrb
110 // extern Dtmethod_t _Dthash
111
112
113 //1 9lidhtd6nsmmv3e7vjv9e10gw
114 // extern Dtmethod_t _Dtlist
115
116
117 //1 34ujfamjxo7xn89u90oh2k6f8
118 // extern Dtmethod_t _Dtqueue
119
120
121 //1 3jy4aceckzkdv950h89p4wjc8
122 // extern Dtmethod_t _Dtstack
123
124
125 //1 8dfqgf3u1v830qzcjqh9o8ha7
126 // extern Agmemdisc_t AgMemDisc
127
128
129 //1 18k2oh2t6llfsdc5x0wlcnby8
130 // extern Agiddisc_t AgIdDisc
131
132
133 //1 a4r7hi80gdxtsv4hdoqpyiivn
134 // extern Agiodisc_t AgIoDisc
135
136
137 //1 bnzt5syjb7mgeru19114vd6xx
138 // extern Agdisc_t AgDefaultDisc
139
140
141 //1 35y2gbegsdjilegaribes00mg
142 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
143
144
145 //1 c2rygslq6bcuka3awmvy2b3ow
146 // typedef Agsubnode_t Agnoderef_t
147
148
149 //1 xam6yv0dcsx57dtg44igpbzn
150 // typedef Dtlink_t Agedgeref_t
151
152
153 //1 nye6dsi1twkbddwo9iffca1j
154 // extern char *Version
155
156
157 //1 65mu6k7h7lb7bx14jpiw7iyxr
158 // extern char **Files
159
160
161 //1 2rpjdzsdyrvomf00zcs3u3dyn
162 // extern const char **Lib
163
164
165 //1 6d2f111lntd2rsdt4gswh5909
166 // extern char *CmdName
167
168
169 //1 a0ltq04fpeg83soa05a2fkwb2
170 // extern char *specificFlags
171
172
173 //1 1uv30qeqq2jh6uznlr4dziv0y
174 // extern char *specificItems
175
176
177 //1 7i4hkvngxe3x7lmg5h6b3t9g3
178 // extern char *Gvfilepath
179
180
181 //1 9jp96pa73kseya3w6sulxzok6
182 // extern char *Gvimagepath
183
184
185 //1 40ylumfu7mrvawwf4v2asvtwk
186 // extern unsigned char Verbose
187
188
189 //1 93st8awjy1z0h07n28qycbaka
190 // extern unsigned char Reduce
191
192
193 //1 f2vs67ts992erf8onwfglurzp
194 // extern int MemTest
195
196
197 //1 c6f8whijgjwwagjigmxlwz3gb
198 // extern char *HTTPServerEnVar
199
200
201 //1 cp4hzj7p87m7arw776d3bt7aj
202 // extern char *Output_file_name
203
204
205 //1 a3rqagofsgraie6mx0krzkgsy
206 // extern int graphviz_errors
207
208
209 //1 5up05203r4kxvjn1m4njcgq5x
210 // extern int Nop
211
212
213 //1 umig46cco431x14b3kosde2t
214 // extern double PSinputscale
215
216
217 //1 52bj6v8fqz39khasobljfukk9
218 // extern int Syntax_errors
219
220
221 //1 9ekf2ina8fsjj6y6i0an6somj
222 // extern int Show_cnt
223
224
225 //1 38di5qi3nkxkq65onyvconk3r
226 // extern char** Show_boxes
227
228
229 //1 6ri6iu712m8mpc7t2670etpcw
230 // extern int CL_type
231
232
233 //1 bomxiw3gy0cgd1ydqtek7fpxr
234 // extern unsigned char Concentrate
235
236
237 //1 cqy3gqgcq8empdrbnrhn84058
238 // extern double Epsilon
239
240
241 //1 64slegfoouqeg0rmbyjrm8wgr
242 // extern int MaxIter
243
244
245 //1 88wdinpnmfs4mab4aw62yb0bg
246 // extern int Ndim
247
248
249 //1 8bbad3ogcelqnnvo5br5s05gq
250 // extern int State
251
252
253 //1 17rnd8q45zclfn68qqst2vxxn
254 // extern int EdgeLabelsDone
255
256
257 //1 ymx1z4s8cznjifl2d9f9m8jr
258 // extern double Initial_dist
259
260
261 //1 a33bgl0c3uqb3trx419qulj1x
262 // extern double Damping
263
264
265 //1 d9lvrpjg1r0ojv40pod1xwk8n
266 // extern int Y_invert
267
268
269 //1 71efkfs77q5tq9ex6y0f4kanh
270 // extern int GvExitOnUsage
271
272
273 //1 4xy2dkdkv0acs2ue9eca8hh2e
274 // 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
275
276
277 //1 9js5gxgzr74eakgtfhnbws3t9
278 // 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
279
280
281 //1 anqllp9sj7wo45w6bm11j8trn
282 // 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
283
284
285 //1 bh0z9puipqw7gymjd5h5b8s6i
286 // extern struct fdpParms_s* fdp_parms
287
288
289
290
291 //3 ciez0pfggxdljedzsbklq49f0
292 // static inline point pointof(int x, int y)
293 public static Object pointof(Object... arg) {
294 UNSUPPORTED("8e4tj258yvfq5uhsdpk37n5eq"); // static inline point pointof(int x, int y)
295 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
296 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
297 UNSUPPORTED("12jimkrzqxavaie0cpapbx18c"); // r.x = x;
298 UNSUPPORTED("7ivmviysahgsc5nn9gtp7q2if"); // r.y = y;
299 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
300 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
301
302 throw new UnsupportedOperationException();
303 }
304
305
306
307
308 //3 c1s4k85p1cdfn176o3uryeros
309 // static inline pointf pointfof(double x, double y)
310 public static ST_pointf pointfof(double x, double y) {
311 // WARNING!! STRUCT
312 return pointfof_w_(x, y).copy();
313 }
314 private static ST_pointf pointfof_w_(double x, double y) {
315 ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof");
316 try {
317 final ST_pointf r = new ST_pointf();
318 r.setDouble("x", x);
319 r.setDouble("y", y);
320 return r;
321 } finally {
322 LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof");
323 }
324 }
325
326
327
328
329 //3 7cufnfitrh935ew093mw0i4b7
330 // static inline box boxof(int llx, int lly, int urx, int ury)
331 public static Object boxof(Object... arg) {
332 UNSUPPORTED("3lzesfdd337h31jrlib1czocm"); // static inline box boxof(int llx, int lly, int urx, int ury)
333 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
334 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
335 UNSUPPORTED("cylhjlutoc0sc0uy7g98m9fb8"); // b.LL.x = llx, b.LL.y = lly;
336 UNSUPPORTED("242of6revxzx8hpe7yerrchz6"); // b.UR.x = urx, b.UR.y = ury;
337 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
338 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
339
340 throw new UnsupportedOperationException();
341 }
342
343
344
345
346
347
348
349 //3 1n5xl70wxuabyf97mclvilsm6
350 // static inline point add_point(point p, point q)
351 public static Object add_point(Object... arg) {
352 UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); // static inline point add_point(point p, point q)
353 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
354 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
355 UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); // r.x = p.x + q.x;
356 UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); // r.y = p.y + q.y;
357 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
358 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
359
360 throw new UnsupportedOperationException();
361 }
362
363
364
365
366 //3 arrsbik9b5tnfcbzsm8gr2chx
367 // static inline pointf add_pointf(pointf p, pointf q)
368 public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) {
369 // WARNING!! STRUCT
370 return add_pointf_w_(p.copy(), q.copy()).copy();
371 }
372 private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) {
373 ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
374 try {
375 final ST_pointf r = new ST_pointf();
376 r.setDouble("x", p.x + q.x);
377 r.setDouble("y", p.y + q.y);
378 return r;
379 } finally {
380 LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
381 }
382 }
383
384
385
386
387 //3 ai2dprak5y6obdsflguh5qbd7
388 // static inline point sub_point(point p, point q)
389 public static Object sub_point(Object... arg) {
390 UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); // static inline point sub_point(point p, point q)
391 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
392 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
393 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
394 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
395 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
396 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
397
398 throw new UnsupportedOperationException();
399 }
400
401
402
403
404 //3 16f6pyogcv3j7n2p0n8giqqgh
405 // static inline pointf sub_pointf(pointf p, pointf q)
406 public static Object sub_pointf(Object... arg) {
407 UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); // static inline pointf sub_pointf(pointf p, pointf q)
408 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
409 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
410 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
411 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
412 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
413 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
414
415 throw new UnsupportedOperationException();
416 }
417
418
419
420
421 //3 9k50jgrhc4f9824vf8ony74rw
422 // static inline point mid_point(point p, point q)
423 public static Object mid_point(Object... arg) {
424 UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); // static inline point mid_point(point p, point q)
425 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
426 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
427 UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); // r.x = (p.x + q.x) / 2;
428 UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); // r.y = (p.y + q.y) / 2;
429 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
430 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
431
432 throw new UnsupportedOperationException();
433 }
434
435
436
437
438 //3 59c4f7im0ftyowhnzzq2v9o1x
439 // static inline pointf mid_pointf(pointf p, pointf q)
440 public static Object mid_pointf(Object... arg) {
441 UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); // static inline pointf mid_pointf(pointf p, pointf q)
442 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
443 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
444 UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); // r.x = (p.x + q.x) / 2.;
445 UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); // r.y = (p.y + q.y) / 2.;
446 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
447 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
448
449 throw new UnsupportedOperationException();
450 }
451
452
453
454
455 //3 5r18p38gisvcx3zsvbb9saixx
456 // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
457 public static Object interpolate_pointf(Object... arg) {
458 UNSUPPORTED("894yimn33kmtm454llwdaotu8"); // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
459 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
460 UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); // pointf r;
461 UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); // r.x = p.x + t * (q.x - p.x);
462 UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); // r.y = p.y + t * (q.y - p.y);
463 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
464 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
465
466 throw new UnsupportedOperationException();
467 }
468
469
470
471
472 //3 bxzrv2ghq04qk5cbyy68s4mol
473 // static inline point exch_xy(point p)
474 public static Object exch_xy(Object... arg) {
475 UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); // static inline point exch_xy(point p)
476 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
477 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
478 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
479 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
480 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
481 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
482
483 throw new UnsupportedOperationException();
484 }
485
486
487
488
489 //3 9lt3e03tac6h6sydljrcws8fd
490 // static inline pointf exch_xyf(pointf p)
491 public static Object exch_xyf(Object... arg) {
492 UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); // static inline pointf exch_xyf(pointf p)
493 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
494 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
495 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
496 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
497 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
498 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
499
500 throw new UnsupportedOperationException();
501 }
502
503
504
505
506 //3 8l9qhieokthntzdorlu5zn29b
507 // static inline box box_bb(box b0, box b1)
508 public static Object box_bb(Object... arg) {
509 UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); // static inline box box_bb(box b0, box b1)
510 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
511 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
512 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
513 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
514 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
515 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
516 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
517 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
518
519 throw new UnsupportedOperationException();
520 }
521
522
523
524
525 //3 clws9h3bbjm0lw3hexf8nl4c4
526 // static inline boxf boxf_bb(boxf b0, boxf b1)
527 public static Object boxf_bb(Object... arg) {
528 UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); // static inline boxf boxf_bb(boxf b0, boxf b1)
529 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
530 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
531 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
532 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
533 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
534 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
535 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
536 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
537
538 throw new UnsupportedOperationException();
539 }
540
541
542
543
544 //3 bit6ycxo1iqd2al92y8gkzlvb
545 // static inline box box_intersect(box b0, box b1)
546 public static Object box_intersect(Object... arg) {
547 UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
548 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
549 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
550 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
551 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
552 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
553 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
554 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
555 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
556
557 throw new UnsupportedOperationException();
558 }
559
560
561
562
563 //3 8gfybie7k6pgb3o1a6llgpwng
564 // static inline boxf boxf_intersect(boxf b0, boxf b1)
565 public static Object boxf_intersect(Object... arg) {
566 UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); // static inline boxf boxf_intersect(boxf b0, boxf b1)
567 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
568 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
569 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
570 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
571 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
572 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
573 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
574 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
575
576 throw new UnsupportedOperationException();
577 }
578
579
580
581
582 //3 7z8j2quq65govaaejrz7b4cvb
583 // static inline int box_overlap(box b0, box b1)
584 public static Object box_overlap(Object... arg) {
585 UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); // static inline int box_overlap(box b0, box b1)
586 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
587 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
588 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
589
590 throw new UnsupportedOperationException();
591 }
592
593
594
595
596 //3 4z0suuut2acsay5m8mg9dqjdu
597 // static inline int boxf_overlap(boxf b0, boxf b1)
598 public static Object boxf_overlap(Object... arg) {
599 UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); // static inline int boxf_overlap(boxf b0, boxf b1)
600 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
601 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
602 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
603
604 throw new UnsupportedOperationException();
605 }
606
607
608
609
610 //3 dd34swz5rmdgu3a2np2a4h1dy
611 // static inline int box_contains(box b0, box b1)
612 public static Object box_contains(Object... arg) {
613 UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); // static inline int box_contains(box b0, box b1)
614 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
615 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
616 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
617
618 throw new UnsupportedOperationException();
619 }
620
621
622
623
624 //3 8laj1bspbu2i1cjd9upr7xt32
625 // static inline int boxf_contains(boxf b0, boxf b1)
626 public static Object boxf_contains(Object... arg) {
627 UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); // static inline int boxf_contains(boxf b0, boxf b1)
628 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
629 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
630 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
631
632 throw new UnsupportedOperationException();
633 }
634
635
636
637
638 //3 4wf5swkz24xx51ja2dynbycu1
639 // static inline pointf perp (pointf p)
640 public static Object perp(Object... arg) {
641 UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); // static inline pointf perp (pointf p)
642 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
643 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
644 UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); // r.x = -p.y;
645 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
646 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
647 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
648
649 throw new UnsupportedOperationException();
650 }
651
652
653
654
655 //3 6dtlpzv4mvgzb9o0b252yweuv
656 // static inline pointf scale (double c, pointf p)
657 public static Object scale(Object... arg) {
658 UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); // static inline pointf scale (double c, pointf p)
659 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
660 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
661 UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); // r.x = c * p.x;
662 UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); // r.y = c * p.y;
663 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
664 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
665
666 throw new UnsupportedOperationException();
667 }
668
669
670
671
672 //3 cmpzgqstlf9awa8ui3b11frt
673 // static double getRotation(block_t * sn, Agraph_t * g, double x, double y, double theta)
674 public static Object getRotation(Object... arg) {
675 UNSUPPORTED("lt6cippjix5bbvyhkcpl8g7g"); // static double
676 UNSUPPORTED("ehfx7xgiq9xn598nzs9ob1vqi"); // getRotation(block_t * sn, Agraph_t * g, double x, double y, double theta)
677 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
678 UNSUPPORTED("8ut1w6qb3edbl3hod5x18e2np"); // double mindist2;
679 UNSUPPORTED("c3tourf5k7groqyh71yjd5xec"); // Agraph_t *subg;
680 UNSUPPORTED("egtkt6veeq1obtp8hbipv6zon"); // /* Agedge_t* e; */
681 UNSUPPORTED("7rg8w1sc9llk8kb9rh887zduv"); // Agnode_t *n, *closest_node, *neighbor;
682 UNSUPPORTED("e1slwj7xzo1j4uaft8p1ctzy9"); // nodelist_t *list;
683 UNSUPPORTED("q9993yde5bqm2h0x8p5xgb2i"); // double len2, newX, newY;
684 UNSUPPORTED("e64oflkl2z9gx00h2zb17dt3r"); // int count;
685 UNSUPPORTED("3upuwem5kn6f9b3audmgcehul"); // subg = sn->sub_graph;
686 UNSUPPORTED("ek0r6cxzyv5ro7byggfuuddz7"); // list = sn->circle_list;
687 UNSUPPORTED("ep1jr1n7qskeuwa1gkr496u3n"); // if (sn->parent_pos >= 0) {
688 UNSUPPORTED("3mx4t7u3i2vxwqc19wkhvtmwb"); // theta += M_PI - sn->parent_pos;
689 UNSUPPORTED("1jbpmsvfitefuxb4jyp6k1vgb"); // if (theta < 0)
690 UNSUPPORTED("bhxmsrgs0qu2rni1bt9331brp"); // theta += 2 * M_PI;
691 UNSUPPORTED("d3ynhdpzzr674aqqwfmf0asp"); // return theta;
692 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
693 UNSUPPORTED("addsn42febvq5fyfi20wz7f9m"); // count = sizeNodelist(list);
694 UNSUPPORTED("6bjurf9k81q5hn7xavxrgthoi"); // if (count == 2) {
695 UNSUPPORTED("4u3h25c7y4bqrl34zj8c2s19i"); // return (theta - M_PI / 2.0);
696 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
697 UNSUPPORTED("ds5icqf0zn1hzeo64qpp89ni7"); // /* Find node in block connected to block's parent */
698 UNSUPPORTED("4p0l2zbyxkjyv4vnyoc1lj8sc"); // neighbor = ((sn)->child);
699 UNSUPPORTED("d1891z4wlxsylmbz0r6ruevst"); // newX = ND_pos(neighbor)[0] + x;
700 UNSUPPORTED("bck3af1j77nrs3hvtwhi6mlkv"); // newY = ND_pos(neighbor)[1] + y;
701 UNSUPPORTED("ebh5hoiqk7yz0ztscg8hnxbo7"); // mindist2 = LEN2(newX, newY); /* save sqrts by using sqr of dist to find min */
702 UNSUPPORTED("2qjkfcus0tlgqcapg2tkwnpng"); // closest_node = neighbor;
703 UNSUPPORTED("6ewipai3bqonhmh4h826lvwyi"); // for (n = agfstnode(subg); n; n = agnxtnode(subg, n)) {
704 UNSUPPORTED("71ky04w3ye5z6znqu7n71vl0v"); // if (n == neighbor)
705 UNSUPPORTED("6hqli9m8yickz1ox1qfgtdbnd"); // continue;
706 UNSUPPORTED("1mwv5wk5wak4p4jrtylf6pca4"); // newX = ND_pos(n)[0] + x;
707 UNSUPPORTED("1456cp7oqq1bug1q4fhzsqhgg"); // newY = ND_pos(n)[1] + y;
708 UNSUPPORTED("apnl2pxadxv9i0xc2ykubdrho"); // len2 = LEN2(newX, newY);
709 UNSUPPORTED("9ycebbjahmt9g4g87v7409dcv"); // if (len2 < mindist2) {
710 UNSUPPORTED("4ep8vufoq8au3w7qibolk95mn"); // mindist2 = len2;
711 UNSUPPORTED("4tzwzg7wxbgffsxb7lnrbfxrg"); // closest_node = n;
712 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
713 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
714 UNSUPPORTED("e6cndx8m1cxstvpu8i8lsq64m"); // /* if((neighbor != closest_node) && !ISPARENT(neighbor)) { */
715 UNSUPPORTED("4ce2cpltl3g9gelwnak2hybsb"); // if (neighbor != closest_node) {
716 UNSUPPORTED("bjieu83v9ahhyxd1buoprxtcz"); // double rho = sn->rad0;
717 UNSUPPORTED("79u7d4lrnqw8upa324kmc6ebc"); // double r = sn->radius - rho;
718 UNSUPPORTED("1t2r0x7jllycm17vx91vz9f6p"); // double n_x = ND_pos(neighbor)[0];
719 UNSUPPORTED("d5b57fo06ypzhhu6h5pf3a4s7"); // if ((((sn)->flags)&(1 << 0)) && (-r < n_x)) {
720 UNSUPPORTED("29wv3jfqbk7lqmos79ml5hcww"); // double R = LEN(x, y);
721 UNSUPPORTED("7qr92iktscz1c93a1hh5ifx50"); // double n_y = ND_pos(neighbor)[1];
722 UNSUPPORTED("d9r83dnsjcdjmrc1aozjg691m"); // double phi = atan2(n_y, n_x + r);
723 UNSUPPORTED("3to3yvt3nms5fsewdv9vyivmp"); // double l = r - rho / (cos(phi));
724 UNSUPPORTED("6pe515ww8zls6t9zcvlh6ipjf"); // theta += M_PI / 2.0 - phi - asin((l / R) * (cos(phi)));
725 UNSUPPORTED("9elbnqbhc8v2ox6bzgxk1gxfp"); // } else { /* Origin still at center of this block */
726 UNSUPPORTED("78w1zetbzjtive7xf4lki9jq1"); // double phi = atan2(ND_pos(neighbor)[1], ND_pos(neighbor)[0]);
727 UNSUPPORTED("609cgj27e69s8dmo8glg3ajzs"); // theta += M_PI - phi - (((cdata*)(ND_alg(neighbor)))->u.f.psi);
728 UNSUPPORTED("9q8038i79c1g9pk2o23hl7nqi"); // if (theta > 2 * M_PI)
729 UNSUPPORTED("59nb5ql4n0d2osxi8brq9b9dj"); // theta -= 2 * M_PI;
730 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
731 UNSUPPORTED("2lkbqgh2h6urnppaik3zo7ywi"); // } else
732 UNSUPPORTED("7b399a6b9nnep504azdykuqob"); // theta = 0;
733 UNSUPPORTED("3t6rhlr39eef1gr8tqabhir2d"); // return theta;
734 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
735
736 throw new UnsupportedOperationException();
737 }
738
739
740
741
742 //3 gs9ma7p0wh81t6pgpfsi1mu6
743 // static void applyDelta(block_t * sn, double x, double y, double rotate)
744 public static Object applyDelta(Object... arg) {
745 UNSUPPORTED("4gp3cxkdringd7h6oo0dg4g4v"); // static void applyDelta(block_t * sn, double x, double y, double rotate)
746 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
747 UNSUPPORTED("dnimuukbrqydy7hshg1fgcjip"); // block_t *child;
748 UNSUPPORTED("c3tourf5k7groqyh71yjd5xec"); // Agraph_t *subg;
749 UNSUPPORTED("2jcii9cclu1dijzqekzc175pe"); // Agnode_t *n;
750 UNSUPPORTED("3upuwem5kn6f9b3audmgcehul"); // subg = sn->sub_graph;
751 UNSUPPORTED("6ewipai3bqonhmh4h826lvwyi"); // for (n = agfstnode(subg); n; n = agnxtnode(subg, n)) {
752 UNSUPPORTED("c7nledx3js6xh39qgrc3j4j18"); // double X, Y;
753 UNSUPPORTED("2m9mua77b7vokkrlp2age37c1"); // if (rotate != 0) {
754 UNSUPPORTED("dnhg8ifhp8l8ttdzgvfjethmc"); // double tmpX, tmpY;
755 UNSUPPORTED("1li4s29cv6mlwnsy1hfdo298h"); // double cosR, sinR;
756 UNSUPPORTED("2hxaiccs9coowwxkb6lhhn4kb"); // tmpX = ND_pos(n)[0];
757 UNSUPPORTED("5sbylnb9ov5k0hsv902247jj4"); // tmpY = ND_pos(n)[1];
758 UNSUPPORTED("bbflbxuecw2twvqqkmo71b4oo"); // cosR = cos(rotate);
759 UNSUPPORTED("9p9h1xtk984siasj5wglqc78w"); // sinR = sin(rotate);
760 UNSUPPORTED("1j77mc8cp1tw63rxfp8wi7yfa"); // X = tmpX * cosR - tmpY * sinR;
761 UNSUPPORTED("eo679za5hyr3fod5d1tyrmktf"); // Y = tmpX * sinR + tmpY * cosR;
762 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
763 UNSUPPORTED("5rgfb3sb3s9da7ukh7w8460yu"); // X = ND_pos(n)[0];
764 UNSUPPORTED("7hhsgdhs0xss97a35uycoc77h"); // Y = ND_pos(n)[1];
765 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
766 UNSUPPORTED("2ibts74izihvl7plps72sd77z"); // /* translate */
767 UNSUPPORTED("7ufxtczkukt6jq6dwezehykdu"); // ND_pos(n)[0] = X + x;
768 UNSUPPORTED("5j8ptjhth0fmqnlfgcp07j0kp"); // ND_pos(n)[1] = Y + y;
769 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
770 UNSUPPORTED("5q8iyg8qadpdv4xsyt8pbaafd"); // for (child = sn->children.first; child; child = child->next)
771 UNSUPPORTED("6tfiliuoxmw3nwxjmqspkhrmw"); // applyDelta(child, x, y, rotate);
772 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
773
774 throw new UnsupportedOperationException();
775 }
776
777
778
779
780 //3 dkl7hvx97dgz0mz1n3waj9wxy
781 // static double getInfo (posinfo_t* pi, posstate * stp, double min_dist)
782 public static Object getInfo(Object... arg) {
783 UNSUPPORTED("lt6cippjix5bbvyhkcpl8g7g"); // static double
784 UNSUPPORTED("840ltlj3x7buqo1tz0ufzb0q1"); // getInfo (posinfo_t* pi, posstate * stp, double min_dist)
785 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
786 UNSUPPORTED("dnimuukbrqydy7hshg1fgcjip"); // block_t *child;
787 UNSUPPORTED("5vgu39qaeyddsky8nzh69a1cs"); // double maxRadius = 0; /* Max. radius of children */
788 UNSUPPORTED("a8pqaixk20tomle987jcvpjgr"); // double diameter = 0; /* sum of child diameters */
789 UNSUPPORTED("a4pd76gzm03ukmko7rpk50rxz"); // int childCount = 0;
790 UNSUPPORTED("5jz1jehvl3s4wz5ghc6zrake1"); // for (child = stp->cp; child; child = child->next) {
791 UNSUPPORTED("61fqoj6svhfxxjz8q16q08wol"); // if ((((child)->child)? (((cdata*)(ND_alg(((child)->child))))->parent) : 0) == pi->n) {
792 UNSUPPORTED("17lb6oohjc36ieu38qsv0lska"); // childCount++;
793 UNSUPPORTED("1j7z4ghl8sdcb5gj02suro8ru"); // if (maxRadius < child->radius) {
794 UNSUPPORTED("dcj0ypnuwkf4wldd9j0wzynze"); // maxRadius = child->radius;
795 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
796 UNSUPPORTED("5cb305yot8ml7rimh6zfg9fe2"); // diameter += 2 * child->radius + min_dist;
797 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
798 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
799 UNSUPPORTED("76l6vcvzq0ezifuroltqyaajc"); // pi->diameter = diameter;
800 UNSUPPORTED("8ln0onaw2pyj3ubj0v4dn5bks"); // pi->childCount = childCount;
801 UNSUPPORTED("66i09znv8qgbsd8lktrlnhlht"); // pi->minRadius = stp->radius + min_dist + maxRadius;
802 UNSUPPORTED("b30825a9409z4f6wp159mgquy"); // pi->maxRadius = maxRadius;
803 UNSUPPORTED("aruhcgr64df62b73mgxm10bjv"); // return maxRadius;
804 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
805
806 throw new UnsupportedOperationException();
807 }
808
809
810
811
812 //3 1n9ypbho9o6l5h94s3xw065pc
813 // static void setInfo (posinfo_t* p0, posinfo_t* p1, double delta)
814 public static Object setInfo(Object... arg) {
815 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
816 UNSUPPORTED("5pammq1crwk6lp3uxho5gb8wo"); // setInfo (posinfo_t* p0, posinfo_t* p1, double delta)
817 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
818 UNSUPPORTED("73hafrp1gwi626l02wei36tg2"); // double t = (p0->diameter*p1->minRadius) + (p1->diameter*p0->minRadius);
819 UNSUPPORTED("4kmowfkoj6kbw5buu9vl93z4j"); // t /= 2*delta*p0->minRadius*p1->minRadius;
820 UNSUPPORTED("l8bh6n5jn0o9gdujjrj6uv4d"); // if (t < 1)
821 UNSUPPORTED("2t7ets0lvfbfx07z5w658psx6"); // t = 1;
822 UNSUPPORTED("2uk6hulg3s481xzedfv74gvjv"); // if (t > p0->scale)
823 UNSUPPORTED("5xsoxjokv9bzcry8ueg81tgfi"); // p0->scale = t;
824 UNSUPPORTED("aasj9alkqxjb213qiijqolzdi"); // if (t > p1->scale)
825 UNSUPPORTED("2dnhdfxe24p2769g5nzx8e114"); // p1->scale = t;
826 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
827
828 throw new UnsupportedOperationException();
829 }
830
831
832
833
834 //3 3hwx5f8xljw9aw6ahmlxzwd5
835 // static void positionChildren (Agraph_t* g, posinfo_t* pi, posstate * stp, int length, double min_dist)
836 public static Object positionChildren(Object... arg) {
837 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
838 UNSUPPORTED("1i00gkii027wmdfk5vmixheyv"); // positionChildren (Agraph_t* g, posinfo_t* pi, posstate * stp, int length, double min_dist)
839 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
840 UNSUPPORTED("dnimuukbrqydy7hshg1fgcjip"); // block_t *child;
841 UNSUPPORTED("2h28ngm52bopvhkktsqrsjuft"); // double childAngle, childRadius, incidentAngle;
842 UNSUPPORTED("6vkkhyp5yqx03cxcvjgzreyvg"); // double mindistAngle, rotateAngle, midAngle;
843 UNSUPPORTED("czazrrlmm4rvdzz6txkva79cj"); // int midChild, cnt = 0;
844 UNSUPPORTED("4rvlw7dclng4zb33jxph77mm3"); // double snRadius = stp->subtreeR; /* max subtree radius */
845 UNSUPPORTED("9zpk9ku3vjqfnb0uc5io2w4d0"); // double firstAngle = stp->firstAngle;
846 UNSUPPORTED("9ckqittdyp855n6lrgajg89lo"); // double lastAngle = stp->lastAngle;
847 UNSUPPORTED("5fhwtiypa1ch4e6i1bqst7bnk"); // double d, deltaX, deltaY;
848 UNSUPPORTED("17ihywepb60o3clfx7kh1juae"); // childRadius = pi->scale * pi->minRadius;
849 UNSUPPORTED("3bgnzdbzgpt26xgjqlxo3zrw4"); // if (length == 1) {
850 UNSUPPORTED("1bmsz9xxns8k870t2xt3pk3lv"); // childAngle = 0;
851 UNSUPPORTED("bcdjefa6xvlkdm5fwvxpwfq74"); // d = pi->diameter/(2*M_PI);
852 UNSUPPORTED("4s560bphn0f8s4ap4kdv75sf7"); // childRadius = MAX(childRadius, d);
853 UNSUPPORTED("7cz14k84zv34v3u19m7zbd07n"); // d = 2*M_PI*childRadius - pi->diameter;
854 UNSUPPORTED("cts1w4s3ihwu230dhm01amlgz"); // if (d > 0)
855 UNSUPPORTED("6pty4l2yj4aihv0e7tio7zm8z"); // min_dist += d/pi->childCount;
856 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
857 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
858 UNSUPPORTED("47pymrkdiujlqzk1n6kf5cqqi"); // childAngle = pi->theta - pi->diameter/(2 * childRadius);
859 UNSUPPORTED("5jb40zn7lo9j5bftqp4efb4xe"); // if ((childRadius + pi->maxRadius) > snRadius)
860 UNSUPPORTED("4o3mkhn9l2d1zweohu5gak0lq"); // snRadius = childRadius + pi->maxRadius;
861 UNSUPPORTED("albxxl7eiza84jfbelnz7np50"); // mindistAngle = min_dist / childRadius;
862 UNSUPPORTED("l5aya5nm5hnerh8jjksx3lqz"); // midChild = (pi->childCount + 1) / 2;
863 UNSUPPORTED("5jz1jehvl3s4wz5ghc6zrake1"); // for (child = stp->cp; child; child = child->next) {
864 UNSUPPORTED("5y748gqz7osqt1a345ioimm0e"); // if ((((child)->child)? (((cdata*)(ND_alg(((child)->child))))->parent) : 0) != pi->n)
865 UNSUPPORTED("6hqli9m8yickz1ox1qfgtdbnd"); // continue;
866 UNSUPPORTED("77uduyi6k655bzus5bii32rj"); // if (sizeNodelist(child->circle_list) <= 0)
867 UNSUPPORTED("6hqli9m8yickz1ox1qfgtdbnd"); // continue;
868 UNSUPPORTED("9npzenhjwahb1tub0weflymow"); // incidentAngle = child->radius / childRadius;
869 UNSUPPORTED("c69jvmzrevph74caisfpf79mn"); // if (length == 1) {
870 UNSUPPORTED("btx47bd050say49ybxbfxxrx8"); // if (childAngle != 0) {
871 UNSUPPORTED("11n2y6kkv4rca0be56oa4yuwy"); // if (pi->childCount == 2)
872 UNSUPPORTED("a9ogeli9lgxver8dtpvq26r1s"); // childAngle = M_PI;
873 UNSUPPORTED("7e1uy5mzei37p66t8jp01r3mk"); // else
874 UNSUPPORTED("e3rf09rej790utv5odsi7sirm"); // childAngle += incidentAngle;
875 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
876 UNSUPPORTED("bnmngdaagaced9g37k4iectpn"); // if (firstAngle < 0)
877 UNSUPPORTED("bsx8hf00tkq0m0i9os2gv7hne"); // firstAngle = childAngle;
878 UNSUPPORTED("8llapzv34igunous8dfu6ic8p"); // lastAngle = childAngle;
879 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
880 UNSUPPORTED("26covu77lvuzprfh5pc35c6m7"); // if (pi->childCount == 1) {
881 UNSUPPORTED("ds80vzgun3b3octlz0lofd9qz"); // childAngle = pi->theta;
882 UNSUPPORTED("175pyfe8j8mbhdwvrbx3gmew9"); // } else {
883 UNSUPPORTED("2qps72ppptkpmaonwjx89t8ti"); // childAngle += incidentAngle + mindistAngle / 2;
884 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
885 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
886 UNSUPPORTED("4xx1ubdla04bj1c1nkji47ycn"); // deltaX = childRadius * cos(childAngle);
887 UNSUPPORTED("4q41infzh177ycry5n376xyo"); // deltaY = childRadius * sin(childAngle);
888 UNSUPPORTED("59lpvl8d38879wlvcrxj3i3ok"); // /* first apply the delta to the immediate child and see if we need
889 UNSUPPORTED("cbr9evjzrxqa89gdj6lugvuut"); // * to rotate it for better edge link
890 UNSUPPORTED("ae0iqjg4062ccpw6kxq0jktan"); // * should return the theta value if there was a rotation else zero
891 UNSUPPORTED("62wb43w2xc6ex6hootjubbx22"); // */
892 UNSUPPORTED("d3t3vti6mue4xaw6rg9dwck94"); // rotateAngle = getRotation(child, g, deltaX, deltaY, childAngle);
893 UNSUPPORTED("a79u8uaekxm40c65ezudsd5u6"); // applyDelta(child, deltaX, deltaY, rotateAngle);
894 UNSUPPORTED("c69jvmzrevph74caisfpf79mn"); // if (length == 1) {
895 UNSUPPORTED("aw0pdp4pepihfz8q083ilj9cy"); // childAngle += incidentAngle + mindistAngle;
896 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
897 UNSUPPORTED("cb8bk29jo8zc6bh1xx9p06lnc"); // childAngle += incidentAngle + mindistAngle / 2;
898 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
899 UNSUPPORTED("1szm63athnlkprt3pv29pjc6z"); // cnt++;
900 UNSUPPORTED("962p120sk6jb00rm75uryy0nv"); // if (cnt == midChild)
901 UNSUPPORTED("9kvtjmj7u050tx0m6yiax5wvz"); // midAngle = childAngle;
902 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
903 UNSUPPORTED("4e8ao1xf7cnvtb07wtsyvxvbx"); // if ((length > 1) && (pi->n == stp->neighbor)) {
904 UNSUPPORTED("5hpo1zarnam66vyjyrst5vfut"); // (((cdata*)(ND_alg(pi->n)))->u.f.psi) = midAngle;
905 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
906 UNSUPPORTED("70x4gfo9wip2xi3nkekxl3pd9"); // stp->subtreeR = snRadius;
907 UNSUPPORTED("26dtlxr2hlpcs2smx34sg8u84"); // stp->firstAngle = firstAngle;
908 UNSUPPORTED("e1bjfx85nmchm67a1wftqkeqt"); // stp->lastAngle = lastAngle;
909 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
910
911 throw new UnsupportedOperationException();
912 }
913
914
915
916
917 //3 183knc853hg2lewtrjxjwbad
918 // static double position(Agraph_t * g, int childCount, int length, nodelist_t * path, block_t * sn, double min_dist)
919 public static Object position(Object... arg) {
920 UNSUPPORTED("lt6cippjix5bbvyhkcpl8g7g"); // static double
921 UNSUPPORTED("22vnfrl02muhf1spl5hz0w23t"); // position(Agraph_t * g, int childCount, int length, nodelist_t * path,
922 UNSUPPORTED("c1t6ifcshh5aolq58u6d8zzpj"); // block_t * sn, double min_dist)
923 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
924 UNSUPPORTED("7rutwn578nyaydek3ukuywh1x"); // nodelistitem_t *item;
925 UNSUPPORTED("2jcii9cclu1dijzqekzc175pe"); // Agnode_t *n;
926 UNSUPPORTED("6ucakys2cw7jiv28161pyriv1"); // posstate state;
927 UNSUPPORTED("8k85245qpent3wzgi4bryorr3"); // int i, counter = 0;
928 UNSUPPORTED("a695nieoct28fopsesdpcnge"); // double maxRadius = 0.0;
929 UNSUPPORTED("92mb8jdyxj5379bf15u10ncne"); // double angle;
930 UNSUPPORTED("39lrh4yp65e7bz2yxmw4eykrf"); // double theta = 0.0;
931 UNSUPPORTED("23og2wsnt900of8nebhax9oyf"); // posinfo_t* parents = (posinfo_t*)zmalloc((childCount)*sizeof(posinfo_t));
932 UNSUPPORTED("bzqraac2wnk8t66hw56y468nc"); // int num_parents = 0;
933 UNSUPPORTED("z72pagx4ayrk2yqmotbjuefr"); // posinfo_t* next;
934 UNSUPPORTED("eeemcjy0m28y6uo1k67ow85aw"); // posinfo_t* curr;
935 UNSUPPORTED("c9q6ir4wu73b7lv68ilvxy3x7"); // double delta;
936 UNSUPPORTED("6yffdiw932i5rt81vhl78p4my"); // state.cp = sn->children.first;
937 UNSUPPORTED("2i8rbg0cq017n4ujwzb6ehb70"); // state.subtreeR = sn->radius;
938 UNSUPPORTED("3zq6dyqtdab8t8om06kbqxsf7"); // state.radius = sn->radius;
939 UNSUPPORTED("2oqyqn73k762frqgxysfgwdvx"); // state.neighbor = ((sn)->child);
940 UNSUPPORTED("5v4yfu1mewcqtr1iitiv2k5zs"); // state.nodeAngle = 2 * M_PI / length;
941 UNSUPPORTED("6f204wxzonpgn67h24efbeg87"); // state.firstAngle = -1;
942 UNSUPPORTED("dua53rud195i1fza5gx41y8wl"); // state.lastAngle = -1;
943 UNSUPPORTED("5dgjj6y6q8lzpoow2gga1vw08"); // for (item = path->first; item; item = item->next) {
944 UNSUPPORTED("efcirwqi1qo67gxv4hcey7ume"); // n = item->curr;
945 UNSUPPORTED("94qpgyg00z0hr00d8pd3z1ayb"); // theta = counter * state.nodeAngle;
946 UNSUPPORTED("3a9goefb48roao7azhg25lwv4"); // counter++;
947 UNSUPPORTED("6zg1ud5tzcw5bdxchosqyeiqs"); // if (((((cdata*)(ND_alg(n)))->flags)&(1 << 3))) {
948 UNSUPPORTED("2d3h31rypli1to22ks3625yb3"); // parents[num_parents].n = n;
949 UNSUPPORTED("3w4m6651a3two5vpclinusgxz"); // parents[num_parents].theta = theta;
950 UNSUPPORTED("a969k09an1c03o3fchyxzdknw"); // maxRadius = getInfo (parents+num_parents, &state, min_dist);
951 UNSUPPORTED("nfniu0ma9kcpj4iftil7vxzo"); // num_parents++;
952 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
953 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
954 UNSUPPORTED("19ff6lx469ojx0kd8qng7xnm2"); // if (num_parents == 1)
955 UNSUPPORTED("ebbpim2wuh8zmq8eb2hy0rwa4"); // parents->scale = 1.0;
956 UNSUPPORTED("7nq76o6ilylvrnthd9saci3dm"); // else if (num_parents == 2) {
957 UNSUPPORTED("97x4yhfbu7p7ax1wjgypyzvs2"); // curr = parents;
958 UNSUPPORTED("cxlahkp8nrxsqxjo1h4m6luwj"); // next = parents+1;
959 UNSUPPORTED("318uuok3kzhklbp2qy5oz5isd"); // delta = next->theta - curr->theta;
960 UNSUPPORTED("dl7kx2da6bpzv7t95mctx0k4b"); // if (delta > M_PI)
961 UNSUPPORTED("8w966007ytd8humlh8ld5n3y"); // delta = 2*M_PI - delta;
962 UNSUPPORTED("42eevkdrj77smcpbkbycptbr9"); // setInfo (curr, next, delta);
963 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
964 UNSUPPORTED("1nyzbeonram6636b1w955bypn"); // else {
965 UNSUPPORTED("97x4yhfbu7p7ax1wjgypyzvs2"); // curr = parents;
966 UNSUPPORTED("5pdqtasaquwj0buhiaa5kl3lu"); // for (i = 0; i < num_parents; i++) {
967 UNSUPPORTED("o2ar05chdjxtjoiic51moxxo"); // if (i+1 == num_parents) {
968 UNSUPPORTED("9wiicb729io2751z1cqj3za3w"); // next = parents;
969 UNSUPPORTED("8w39fyrm0xi8av27kkb2ox9iq"); // delta = next->theta - curr->theta + 2*M_PI;
970 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
971 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
972 UNSUPPORTED("2wgrvn9lpnb1glq51snvhrlpn"); // next = curr+1;
973 UNSUPPORTED("6rnd98sxn37mywfmwpgmz5jys"); // delta = next->theta - curr->theta;
974 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
975 UNSUPPORTED("3wodlygye92vfolc4yek541q5"); // setInfo (curr, next, delta);
976 UNSUPPORTED("f09krbnpkp0dj7clpnfofxhs3"); // curr++;
977 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
978 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
979 UNSUPPORTED("6s78kskfp8mah4jsgthr07vz5"); // for (i = 0; i < num_parents; i++) {
980 UNSUPPORTED("3qghhc5maci1337vzb8zb1d23"); // positionChildren (g, parents + i, &state, length, min_dist);
981 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
982 UNSUPPORTED("2zf1tuimr6i6xmj6st44n1y6d"); // free (parents);
983 UNSUPPORTED("6ehx9nw398bee4byzgr4hyvrj"); // /* If block has only 1 child, to save space, we coalesce it with the
984 UNSUPPORTED("158fhk9tz4932mk3kgob0majr"); // * child. Instead of having final radius sn->radius + max child radius,
985 UNSUPPORTED("st1dl3d0qufd92ksixbfqrs8"); // * we have half that. However, the origin of the block is no longer in
986 UNSUPPORTED("82bqem29c6dlp0g32cggclhpj"); // * the center of the block, so we cannot do a simple rotation to get
987 UNSUPPORTED("aq0f42fl4631zdfwv7noubqpf"); // * the neighbor node next to the parent block in getRotate.
988 UNSUPPORTED("795vpnc8yojryr8b46aidsu69"); // */
989 UNSUPPORTED("bbfns218ckyof9zhxovat1856"); // if (childCount == 1) {
990 UNSUPPORTED("9totzf6n9ceszh8mm3tllioma"); // applyDelta(sn, -(maxRadius + min_dist / 2), 0, 0);
991 UNSUPPORTED("7xw3jatz27ecvuvr8ndmzpri2"); // sn->radius += min_dist / 2 + maxRadius;
992 UNSUPPORTED("djn1r9ekdaplctm3dmv4s86hq"); // (((sn)->flags) |= (1 << 0));
993 UNSUPPORTED("2lkbqgh2h6urnppaik3zo7ywi"); // } else
994 UNSUPPORTED("2z11j34mh7ho6yeonjtcuftyk"); // sn->radius = state.subtreeR;
995 UNSUPPORTED("2634lkpplyldiomou50vs8ne8"); // angle = (state.firstAngle + state.lastAngle) / 2.0 - M_PI;
996 UNSUPPORTED("62ygf2gmqakbkjtv70bqh5q3i"); // return angle;
997 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
998
999 throw new UnsupportedOperationException();
1000 }
1001
1002
1003
1004
1005 //3 a87t2i8cdtwy70eh2fop0pu68
1006 // static void doBlock(Agraph_t * g, block_t * sn, double min_dist)
1007 public static Object doBlock(Object... arg) {
1008 UNSUPPORTED("5nry31kqija8llhs67tppjguq"); // static void doBlock(Agraph_t * g, block_t * sn, double min_dist)
1009 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1010 UNSUPPORTED("dnimuukbrqydy7hshg1fgcjip"); // block_t *child;
1011 UNSUPPORTED("d7uu3k4m5ty17ck42vok0b2qd"); // nodelist_t *longest_path;
1012 UNSUPPORTED("akedsyjeha5i5pifvmpx754fx"); // int childCount, length;
1013 UNSUPPORTED("csnfgux07j8xroe4dfr5ydmww"); // double centerAngle = M_PI;
1014 UNSUPPORTED("5czwx5ja6vchkqqf3nj1dbplo"); // /* layout child subtrees */
1015 UNSUPPORTED("6fmp43rz8qxcnka1ixy8ofy4o"); // childCount = 0;
1016 UNSUPPORTED("2ucdzk00biyj5tphlncfr7de8"); // for (child = sn->children.first; child; child = child->next) {
1017 UNSUPPORTED("cqqmq5uo5abmk8d0omydy8qfe"); // doBlock(g, child, min_dist);
1018 UNSUPPORTED("ckf9u9keyanpnzokxxvtxisu8"); // childCount++;
1019 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1020 UNSUPPORTED("f5dfmshylzxahkpt6bypg8gdf"); // /* layout this block */
1021 UNSUPPORTED("96pbgoge9aguwe0pojeb6478b"); // longest_path = layout_block(g, sn, min_dist);
1022 UNSUPPORTED("9j0wpzijxf3wv4nwyk56labpn"); // sn->circle_list = longest_path;
1023 UNSUPPORTED("2px8ljbfc4yhbhbv2i3n5kjvc"); // length = sizeNodelist(longest_path); /* path contains everything in block */
1024 UNSUPPORTED("epc8pxjomwsgtpc3cie7d8jp9"); // /* attach children */
1025 UNSUPPORTED("4abtrzavmj7jx497pijua7lit"); // if (childCount > 0)
1026 UNSUPPORTED("3px8jprdntkfoay5evmj3utqc"); // centerAngle =
1027 UNSUPPORTED("byo5mpsyssgtbxmb1x5yu3hcy"); // position(g, childCount, length, longest_path, sn, min_dist);
1028 UNSUPPORTED("16uagx1awpuxh25qk8lwdiewh"); // if ((length == 1) && ((((sn)->child)? (((cdata*)(ND_alg(((sn)->child))))->parent) : 0))) {
1029 UNSUPPORTED("9nmeqvmukyg4yokpki9xdf3vj"); // sn->parent_pos = centerAngle;
1030 UNSUPPORTED("d8izngkerf5zyrx3iwt0zqq3f"); // if (sn->parent_pos < 0)
1031 UNSUPPORTED("7ex0u65w20yvu6ejq0eph4w2j"); // sn->parent_pos += 2 * M_PI;
1032 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1033 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1034
1035 throw new UnsupportedOperationException();
1036 }
1037
1038
1039
1040
1041 //3 chxnkeyek1c0y3nf5nzcr860m
1042 // void circPos(Agraph_t * g, block_t * sn, circ_state * state)
1043 public static Object circPos(Object... arg) {
1044 UNSUPPORTED("7kmetdiv7luwpajiej493xalo"); // void circPos(Agraph_t * g, block_t * sn, circ_state * state)
1045 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1046 UNSUPPORTED("e4qh6uup89pjepp99d1dehhh"); // doBlock(g, sn, state->min_dist);
1047 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1048
1049 throw new UnsupportedOperationException();
1050 }
1051
1052
1053 }