Debian Codegraph @

src/gen/lib/fdpgen/tlayout__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.fdpgen;
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 tlayout__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
350 //3 1n5xl70wxuabyf97mclvilsm6
351 // static inline point add_point(point p, point q)
352 public static Object add_point(Object... arg) {
353 UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); // static inline point add_point(point p, point q)
354 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
355 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
356 UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); // r.x = p.x + q.x;
357 UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); // r.y = p.y + q.y;
358 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
359 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
360
361 throw new UnsupportedOperationException();
362 }
363
364
365
366
367 //3 arrsbik9b5tnfcbzsm8gr2chx
368 // static inline pointf add_pointf(pointf p, pointf q)
369 public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) {
370 // WARNING!! STRUCT
371 return add_pointf_w_(p.copy(), q.copy()).copy();
372 }
373 private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) {
374 ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
375 try {
376 final ST_pointf r = new ST_pointf();
377 r.setDouble("x", p.x + q.x);
378 r.setDouble("y", p.y + q.y);
379 return r;
380 } finally {
381 LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
382 }
383 }
384
385
386
387
388 //3 ai2dprak5y6obdsflguh5qbd7
389 // static inline point sub_point(point p, point q)
390 public static Object sub_point(Object... arg) {
391 UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); // static inline point sub_point(point p, point q)
392 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
393 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
394 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
395 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
396 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
397 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
398
399 throw new UnsupportedOperationException();
400 }
401
402
403
404
405 //3 16f6pyogcv3j7n2p0n8giqqgh
406 // static inline pointf sub_pointf(pointf p, pointf q)
407 public static Object sub_pointf(Object... arg) {
408 UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); // static inline pointf sub_pointf(pointf p, pointf q)
409 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
410 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
411 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
412 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
413 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
414 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
415
416 throw new UnsupportedOperationException();
417 }
418
419
420
421
422 //3 9k50jgrhc4f9824vf8ony74rw
423 // static inline point mid_point(point p, point q)
424 public static Object mid_point(Object... arg) {
425 UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); // static inline point mid_point(point p, point q)
426 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
427 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
428 UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); // r.x = (p.x + q.x) / 2;
429 UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); // r.y = (p.y + q.y) / 2;
430 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
431 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
432
433 throw new UnsupportedOperationException();
434 }
435
436
437
438
439 //3 59c4f7im0ftyowhnzzq2v9o1x
440 // static inline pointf mid_pointf(pointf p, pointf q)
441 public static Object mid_pointf(Object... arg) {
442 UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); // static inline pointf mid_pointf(pointf p, pointf q)
443 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
444 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
445 UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); // r.x = (p.x + q.x) / 2.;
446 UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); // r.y = (p.y + q.y) / 2.;
447 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
448 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
449
450 throw new UnsupportedOperationException();
451 }
452
453
454
455
456 //3 5r18p38gisvcx3zsvbb9saixx
457 // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
458 public static Object interpolate_pointf(Object... arg) {
459 UNSUPPORTED("894yimn33kmtm454llwdaotu8"); // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
460 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
461 UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); // pointf r;
462 UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); // r.x = p.x + t * (q.x - p.x);
463 UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); // r.y = p.y + t * (q.y - p.y);
464 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
465 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
466
467 throw new UnsupportedOperationException();
468 }
469
470
471
472
473 //3 bxzrv2ghq04qk5cbyy68s4mol
474 // static inline point exch_xy(point p)
475 public static Object exch_xy(Object... arg) {
476 UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); // static inline point exch_xy(point p)
477 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
478 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
479 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
480 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
481 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
482 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
483
484 throw new UnsupportedOperationException();
485 }
486
487
488
489
490 //3 9lt3e03tac6h6sydljrcws8fd
491 // static inline pointf exch_xyf(pointf p)
492 public static Object exch_xyf(Object... arg) {
493 UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); // static inline pointf exch_xyf(pointf p)
494 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
495 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
496 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
497 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
498 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
499 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
500
501 throw new UnsupportedOperationException();
502 }
503
504
505
506
507 //3 8l9qhieokthntzdorlu5zn29b
508 // static inline box box_bb(box b0, box b1)
509 public static Object box_bb(Object... arg) {
510 UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); // static inline box box_bb(box b0, box b1)
511 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
512 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
513 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
514 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
515 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
516 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
517 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
518 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
519
520 throw new UnsupportedOperationException();
521 }
522
523
524
525
526 //3 clws9h3bbjm0lw3hexf8nl4c4
527 // static inline boxf boxf_bb(boxf b0, boxf b1)
528 public static Object boxf_bb(Object... arg) {
529 UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); // static inline boxf boxf_bb(boxf b0, boxf b1)
530 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
531 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
532 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
533 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
534 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
535 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
536 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
537 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
538
539 throw new UnsupportedOperationException();
540 }
541
542
543
544
545 //3 bit6ycxo1iqd2al92y8gkzlvb
546 // static inline box box_intersect(box b0, box b1)
547 public static Object box_intersect(Object... arg) {
548 UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
549 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
550 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
551 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
552 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
553 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
554 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
555 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
556 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
557
558 throw new UnsupportedOperationException();
559 }
560
561
562
563
564 //3 8gfybie7k6pgb3o1a6llgpwng
565 // static inline boxf boxf_intersect(boxf b0, boxf b1)
566 public static Object boxf_intersect(Object... arg) {
567 UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); // static inline boxf boxf_intersect(boxf b0, boxf b1)
568 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
569 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
570 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
571 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
572 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
573 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
574 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
575 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
576
577 throw new UnsupportedOperationException();
578 }
579
580
581
582
583 //3 7z8j2quq65govaaejrz7b4cvb
584 // static inline int box_overlap(box b0, box b1)
585 public static Object box_overlap(Object... arg) {
586 UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); // static inline int box_overlap(box b0, box b1)
587 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
588 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
589 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
590
591 throw new UnsupportedOperationException();
592 }
593
594
595
596
597 //3 4z0suuut2acsay5m8mg9dqjdu
598 // static inline int boxf_overlap(boxf b0, boxf b1)
599 public static Object boxf_overlap(Object... arg) {
600 UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); // static inline int boxf_overlap(boxf b0, boxf b1)
601 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
602 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
603 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
604
605 throw new UnsupportedOperationException();
606 }
607
608
609
610
611 //3 dd34swz5rmdgu3a2np2a4h1dy
612 // static inline int box_contains(box b0, box b1)
613 public static Object box_contains(Object... arg) {
614 UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); // static inline int box_contains(box b0, box b1)
615 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
616 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
617 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
618
619 throw new UnsupportedOperationException();
620 }
621
622
623
624
625 //3 8laj1bspbu2i1cjd9upr7xt32
626 // static inline int boxf_contains(boxf b0, boxf b1)
627 public static Object boxf_contains(Object... arg) {
628 UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); // static inline int boxf_contains(boxf b0, boxf b1)
629 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
630 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
631 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
632
633 throw new UnsupportedOperationException();
634 }
635
636
637
638
639 //3 4wf5swkz24xx51ja2dynbycu1
640 // static inline pointf perp (pointf p)
641 public static Object perp(Object... arg) {
642 UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); // static inline pointf perp (pointf p)
643 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
644 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
645 UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); // r.x = -p.y;
646 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
647 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
648 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
649
650 throw new UnsupportedOperationException();
651 }
652
653
654
655
656 //3 6dtlpzv4mvgzb9o0b252yweuv
657 // static inline pointf scale (double c, pointf p)
658 public static Object scale(Object... arg) {
659 UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); // static inline pointf scale (double c, pointf p)
660 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
661 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
662 UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); // r.x = c * p.x;
663 UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); // r.y = c * p.y;
664 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
665 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
666
667 throw new UnsupportedOperationException();
668 }
669
670
671 //1 3re0e5qgyflcireefp7lbqns8
672 // static parms_t parms
673
674
675
676
677 //3 ap3ziys4lgccfv5b9hoqgoh0g
678 // static double cool(double temp, int t)
679 public static Object cool(Object... arg) {
680 UNSUPPORTED("5sgre4bc2ydv6l6svk8ek0txc"); // static double cool(double temp, int t)
681 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
682 UNSUPPORTED("dw9g5rx4w1ndvm14dmyd1mvas"); // return ((parms.T0) * ((parms.maxIters) - t)) / (parms.maxIters);
683 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
684
685 throw new UnsupportedOperationException();
686 }
687
688
689
690
691 //3 1hfj27tv640d0ffqfnm4vb1rz
692 // static void reset_params(void)
693 public static Object reset_params(Object... arg) {
694 UNSUPPORTED("75qf9l8ygyuzzh8vd1n83vj0z"); // static void reset_params(void)
695 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
696 UNSUPPORTED("c8a8jp11ftz446uf6uszgoze8"); // (parms.T0) = -1.0;
697 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
698
699 throw new UnsupportedOperationException();
700 }
701
702
703
704
705 //3 3nh9css07393fmibnbovph2hs
706 // static int init_params(graph_t * g, xparams * xpms)
707 public static Object init_params(Object... arg) {
708 UNSUPPORTED("48xs4ljefx0vremqgw3ve2odl"); // static int init_params(graph_t * g, xparams * xpms)
709 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
710 UNSUPPORTED("6c0or74do22mjnqxo3amn9k4o"); // int ret = 0;
711 UNSUPPORTED("crp6otfgw6p0ubcoh1qm3lb05"); // if ((parms.T0) == -1.0) {
712 UNSUPPORTED("yl9q627kjvgs8jal076bp3sd"); // int nnodes = agnnodes(g);
713 UNSUPPORTED("5s1s7y81lrpy2vnfgv10ur6ri"); // (parms.T0) = (parms.Tfact) * (parms.K) * sqrt(nnodes) / 5;
714 UNSUPPORTED("6bhqrgwycmijdx6y0w0h24lje"); // ret = 1;
715 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
716 UNSUPPORTED("bea2sjliujeywzkofbu5g6wrm"); // xpms->T0 = cool((parms.T0), (parms.pass1));
717 UNSUPPORTED("15szw8lxycu1ph1797eh963av"); // xpms->K = (parms.K);
718 UNSUPPORTED("bb08968msejsgq6ax6cukmdqq"); // xpms->C = (parms.C);
719 UNSUPPORTED("ajd01g9u5dg1lmf1dc37lh7n5"); // xpms->numIters = (parms.maxIters) - (parms.pass1);
720 UNSUPPORTED("7c02dgjlmmmvkkyv8re4trtae"); // if ((parms.numIters) >= 0) {
721 UNSUPPORTED("b7eb7h431oevllb0el5ljwhf5"); // if ((parms.numIters) <= (parms.pass1)) {
722 UNSUPPORTED("1k1km56qkkjfno0nynnso12qb"); // (parms.loopcnt) = (parms.numIters);
723 UNSUPPORTED("7orupvg2v93yn9ayi6934agib"); // xpms->loopcnt = 0;
724 UNSUPPORTED("clivi4vn6ilbnz8nzb0yczlkz"); // } else if ((parms.numIters) <= (parms.maxIters)) {
725 UNSUPPORTED("195qeklys8cc9ohbnb5jijys"); // (parms.loopcnt) = (parms.pass1);
726 UNSUPPORTED("4gno9zp0ukr0oiqr36ju16pr2"); // xpms->loopcnt = (parms.numIters) - (parms.pass1);
727 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
728 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
729 UNSUPPORTED("d2ke7mqdgmzme2foml7d52wyi"); // (parms.loopcnt) = (parms.pass1);
730 UNSUPPORTED("72avjgv71z4fub3c90yugg1be"); // xpms->loopcnt = xpms->numIters;
731 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
732 UNSUPPORTED("f3b7mj138albdr4lodyomke0z"); // return ret;
733 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
734
735 throw new UnsupportedOperationException();
736 }
737
738
739
740
741 //3 67nwkqs1o8ak0ust8y6xuptkc
742 // void fdp_initParams(graph_t * g)
743 public static Object fdp_initParams(Object... arg) {
744 UNSUPPORTED("1lc6n2kc85uu13nos0984xf29"); // void fdp_initParams(graph_t * g)
745 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
746 UNSUPPORTED("dhkv7nf2l5so3osfttpwqe9jb"); // (parms.useGrid) = (fdp_parms->useGrid);
747 UNSUPPORTED("7emjshxcasuzcjusb8bbxzdf7"); // (parms.useNew) = (fdp_parms->useNew);
748 UNSUPPORTED("4mrcfc63ungaf44a4vj2uro2c"); // (parms.numIters) = (fdp_parms->numIters);
749 UNSUPPORTED("1nx5n5st3t3nnx7yqzo6ozup6"); // (parms.unscaled) = (fdp_parms->unscaled);
750 UNSUPPORTED("j5zv0n6wl3u586ysr1qqerue"); // (parms.Cell) = 0.0;
751 UNSUPPORTED("dprq8f5x3ovtoay3nlztqt4pw"); // (parms.C) = (fdp_parms->C);
752 UNSUPPORTED("5decfbdk7yhmkg3xgrg7f71sk"); // (parms.Tfact) = (fdp_parms->Tfact);
753 UNSUPPORTED("36qd34h5uzomu0sxgh57rwyb1"); // (parms.maxIters) = late_int(g, agattr(g,AGRAPH, "maxiter", NULL), 600, 0);
754 UNSUPPORTED("1ekk36jjcc8amkk8t0kk5xzqw"); // (fdp_parms->K) = (parms.K) = late_double(g, agattr(g,AGRAPH, "K", NULL), 0.3, 0.0);
755 UNSUPPORTED("5w12po5gw20qkeg6lm9wuqf8b"); // if ((fdp_parms->T0) == -1.0) {
756 UNSUPPORTED("5ei2wdbmgw6tsc1knlgsi5est"); // (parms.T0) = late_double(g, agattr(g,AGRAPH, "T0", NULL), -1.0, 0.0);
757 UNSUPPORTED("2lkbqgh2h6urnppaik3zo7ywi"); // } else
758 UNSUPPORTED("ey5pnbvbq4sdlnwyww4ufkgdl"); // (parms.T0) = (fdp_parms->T0);
759 UNSUPPORTED("2dwfvel7mvtxuo89r4qyi9nd1"); // (parms.seed) = 1;
760 UNSUPPORTED("chz814s9ux42fqrmt8jyt4bbo"); // (parms.smode) = setSeed (g, INIT_RANDOM, &(parms.seed));
761 UNSUPPORTED("1ziuxskpjtlf6j1n77u8fazho"); // if ((parms.smode) == INIT_SELF) {
762 UNSUPPORTED("562i07uf5ntbjykofj7kehkl4"); // agerr(AGWARN, "fdp does not support start=self - ignoring\n");
763 UNSUPPORTED("3a789qzz25t3knjgbg1p6pmmc"); // (parms.seed) = INIT_RANDOM;
764 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
765 UNSUPPORTED("73xh7m64drhf1ddu78yp29z9r"); // (parms.pass1) = ((parms.unscaled) * (parms.maxIters)) / 100;
766 UNSUPPORTED("8iuaxpbl74yddrfynyul5uc8i"); // (parms.K2) = (parms.K) * (parms.K);
767 UNSUPPORTED("5mn14gy4taomtxfb9fvba9s6"); // if ((parms.useGrid)) {
768 UNSUPPORTED("8ukoelkh4qqn1mp0ues4sqdax"); // if ((parms.Cell) <= 0.0)
769 UNSUPPORTED("2hn437nbrh7orkpd3flaakc4q"); // (parms.Cell) = 3 * (parms.K);
770 UNSUPPORTED("evqkx9xtnwhnmrs6eak9kct5j"); // (parms.Cell2) = (parms.Cell) * (parms.Cell);
771 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
772 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
773
774 throw new UnsupportedOperationException();
775 }
776
777
778
779
780 //3 1mwp8luigyyz0ugh8bwajvy1p
781 // static void doRep(node_t * p, node_t * q, double xdelta, double ydelta, double dist2)
782 public static Object doRep(Object... arg) {
783 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
784 UNSUPPORTED("ci8iet8xei7zuq6iwdwmnfie2"); // doRep(node_t * p, node_t * q, double xdelta, double ydelta, double dist2)
785 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
786 UNSUPPORTED("7xmrzkoismbw37gye9vc6jbi9"); // double force;
787 UNSUPPORTED("6ri5yxqbfur0r77yjjezxcpf1"); // double dist;
788 UNSUPPORTED("9eyts7dlroeintksamasblz0m"); // while (dist2 == 0.0) {
789 UNSUPPORTED("a1kln2sh5ckxy9qbqw7ur6m89"); // xdelta = 5 - rand() % 10;
790 UNSUPPORTED("5utygemiryo6q9jilsrhyspq1"); // ydelta = 5 - rand() % 10;
791 UNSUPPORTED("9cv1lvbstloqs0iz3qbvzcbmx"); // dist2 = xdelta * xdelta + ydelta * ydelta;
792 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
793 UNSUPPORTED("2n97ejly0ms3mgkyc9mfw25dq"); // if ((parms.useNew)) {
794 UNSUPPORTED("l1nxn0z1e5oz3ibg3ruc80qz"); // dist = sqrt(dist2);
795 UNSUPPORTED("5hk3sr13w9lnqpnp9r7m0lswq"); // force = (parms.K2) / (dist * dist2);
796 UNSUPPORTED("2lkbqgh2h6urnppaik3zo7ywi"); // } else
797 UNSUPPORTED("ew8igrf3420bqug5dgydzcj44"); // force = (parms.K2) / dist2;
798 UNSUPPORTED("ez9csfef9y6to70k15uttsiav"); // if ((!(((dndata*)(ND_alg(p)))->dn) && !ND_clust(p)) && (!(((dndata*)(ND_alg(q)))->dn) && !ND_clust(q)))
799 UNSUPPORTED("dakbbyvagw597rpiubgw87lde"); // force *= 10.0;
800 UNSUPPORTED("evkb6fsw3t47cwgrg7xefbqgt"); // (((dndata*)(ND_alg(q)))->disp)[0] += xdelta * force;
801 UNSUPPORTED("47honvuz7ve5pvt9lba48wv53"); // (((dndata*)(ND_alg(q)))->disp)[1] += ydelta * force;
802 UNSUPPORTED("adgrqasjyy2ekyp2z2g84w46v"); // (((dndata*)(ND_alg(p)))->disp)[0] -= xdelta * force;
803 UNSUPPORTED("4ynq3yqyvpqd2e9jy2ky9g7m3"); // (((dndata*)(ND_alg(p)))->disp)[1] -= ydelta * force;
804 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
805
806 throw new UnsupportedOperationException();
807 }
808
809
810
811
812 //3 1l5u1c7g8sv7pkutpmed1onix
813 // static void applyRep(Agnode_t * p, Agnode_t * q)
814 public static Object applyRep(Object... arg) {
815 UNSUPPORTED("djgrzdg0i7c81rt5ozd4fy6hy"); // static void applyRep(Agnode_t * p, Agnode_t * q)
816 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
817 UNSUPPORTED("fwy8i5zbwxhddxrcwdkd8w1g"); // double xdelta, ydelta;
818 UNSUPPORTED("1gexoq8hut0hmb4k5ef2tvif7"); // xdelta = ND_pos(q)[0] - ND_pos(p)[0];
819 UNSUPPORTED("bwmnzroxk4eq5fdyzazcmagjs"); // ydelta = ND_pos(q)[1] - ND_pos(p)[1];
820 UNSUPPORTED("2od246ddg7nl8jg2vbe8w04jx"); // doRep(p, q, xdelta, ydelta, xdelta * xdelta + ydelta * ydelta);
821 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
822
823 throw new UnsupportedOperationException();
824 }
825
826
827
828
829 //3 6f5oevq3a3fan12vx9fd8sxig
830 // static void doNeighbor(Grid * grid, int i, int j, node_list * nodes)
831 public static Object doNeighbor(Object... arg) {
832 UNSUPPORTED("9f2tkmlc1n9h3w8lqufgwmcu6"); // static void doNeighbor(Grid * grid, int i, int j, node_list * nodes)
833 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
834 UNSUPPORTED("bhnwogekrkz0g5g73xj7vst6t"); // cell *cellp = findGrid(grid, i, j);
835 UNSUPPORTED("j7t2j63o6ph4jsh8zms26jia"); // node_list *qs;
836 UNSUPPORTED("79qovd7yt2ksk0181m08pcblr"); // Agnode_t *p;
837 UNSUPPORTED("26lkxbr2p03cdcyjp6mi5cdx0"); // Agnode_t *q;
838 UNSUPPORTED("fwy8i5zbwxhddxrcwdkd8w1g"); // double xdelta, ydelta;
839 UNSUPPORTED("a48uqm39jxw8xxk12bzq76zhe"); // double dist2;
840 UNSUPPORTED("tvnd12y5b19iotifqmutyeto"); // if (cellp) {
841 UNSUPPORTED("c22my4o1dz0d0w2h43rfo0whg"); // for (; nodes != 0; nodes = nodes->next) {
842 UNSUPPORTED("e56s6kjmmhjpytxlariesqqdw"); // p = nodes->node;
843 UNSUPPORTED("5rq3ugymaj6pf0dvsx6dz5w4h"); // for (qs = cellp->nodes; qs != 0; qs = qs->next) {
844 UNSUPPORTED("1mj1hju2nppgtuoqv8ol5rvwr"); // q = qs->node;
845 UNSUPPORTED("d26xtmkxvpccm7sq2vb7etugl"); // xdelta = (ND_pos(q))[0] - (ND_pos(p))[0];
846 UNSUPPORTED("5swigfg8ax2mrrfeth3ty0g2"); // ydelta = (ND_pos(q))[1] - (ND_pos(p))[1];
847 UNSUPPORTED("bmdm7zgfvy74ykfhpqs4mv0jz"); // dist2 = xdelta * xdelta + ydelta * ydelta;
848 UNSUPPORTED("12ef6u3079vohtjab5738nb2o"); // if (dist2 < (parms.Cell2))
849 UNSUPPORTED("np3ryxjwz0n7fopro629q72k"); // doRep(p, q, xdelta, ydelta, dist2);
850 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
851 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
852 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
853 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
854
855 throw new UnsupportedOperationException();
856 }
857
858
859
860
861 //3 cs1mbkztfifrfwd3mxcwg1c2d
862 // static int gridRepulse(Dt_t * dt, cell * cellp, Grid * grid)
863 public static Object gridRepulse(Object... arg) {
864 UNSUPPORTED("dmawgb7u402yluzrrnfgssfuf"); // static int gridRepulse(Dt_t * dt, cell * cellp, Grid * grid)
865 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
866 UNSUPPORTED("esxthhmuxuie3avpfm2495114"); // node_list *nodes = cellp->nodes;
867 UNSUPPORTED("6w5k8ca6easfov2mqqlrdb0dh"); // int i = cellp->p.i;
868 UNSUPPORTED("3s6odfuh8voqpi0e47rmmpr95"); // int j = cellp->p.j;
869 UNSUPPORTED("5t1k1070z2y2ulal5irpeh13r"); // node_list *p;
870 UNSUPPORTED("26ois8lzf5gf4rlc7j1v07nrk"); // node_list *q;
871 UNSUPPORTED("f47xyq0g5jc32mlw2w6176cj8"); // (void) dt;
872 UNSUPPORTED("7bt8fvdfprnhldu94wzsjr1p8"); // for (p = nodes; p != 0; p = p->next) {
873 UNSUPPORTED("9dtqsbgqhq08w8uqr6q8iu1zo"); // for (q = nodes; q != 0; q = q->next)
874 UNSUPPORTED("3mqa4rk942u6cme7lx916c3e7"); // if (p != q)
875 UNSUPPORTED("f4yngxzrsobxrx4qdgnbjuu7y"); // applyRep(p->node, q->node);
876 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
877 UNSUPPORTED("39oj5x7p4uzn9pmrn291fb89e"); // doNeighbor(grid, i - 1, j - 1, nodes);
878 UNSUPPORTED("4x5ymv4kpnjjlwgslb8y54wsf"); // doNeighbor(grid, i - 1, j, nodes);
879 UNSUPPORTED("92c3ombzuprs207hb0839euz4"); // doNeighbor(grid, i - 1, j + 1, nodes);
880 UNSUPPORTED("7x17d3x93lfyweou33msckmp3"); // doNeighbor(grid, i, j - 1, nodes);
881 UNSUPPORTED("axuq727bu6dm67ozulydd2z8b"); // doNeighbor(grid, i, j + 1, nodes);
882 UNSUPPORTED("aprvh8muazan9bg5c6s7zyh3k"); // doNeighbor(grid, i + 1, j - 1, nodes);
883 UNSUPPORTED("6re8faddp09jcpaw086aebyak"); // doNeighbor(grid, i + 1, j, nodes);
884 UNSUPPORTED("4vnxtoqrs66b93cw2r079w5uc"); // doNeighbor(grid, i + 1, j + 1, nodes);
885 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
886 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
887
888 throw new UnsupportedOperationException();
889 }
890
891
892
893
894 //3 cj85ae9twpl1qbvg8q1a5tkoy
895 // static void applyAttr(Agnode_t * p, Agnode_t * q, Agedge_t * e)
896 public static Object applyAttr(Object... arg) {
897 UNSUPPORTED("awgsi6lurgqk8uwub4vivjq1j"); // static void applyAttr(Agnode_t * p, Agnode_t * q, Agedge_t * e)
898 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
899 UNSUPPORTED("fwy8i5zbwxhddxrcwdkd8w1g"); // double xdelta, ydelta;
900 UNSUPPORTED("7xmrzkoismbw37gye9vc6jbi9"); // double force;
901 UNSUPPORTED("6ri5yxqbfur0r77yjjezxcpf1"); // double dist;
902 UNSUPPORTED("a48uqm39jxw8xxk12bzq76zhe"); // double dist2;
903 UNSUPPORTED("1gexoq8hut0hmb4k5ef2tvif7"); // xdelta = ND_pos(q)[0] - ND_pos(p)[0];
904 UNSUPPORTED("bwmnzroxk4eq5fdyzazcmagjs"); // ydelta = ND_pos(q)[1] - ND_pos(p)[1];
905 UNSUPPORTED("cmcav5u77frmj6i50z471aqvo"); // dist2 = xdelta * xdelta + ydelta * ydelta;
906 UNSUPPORTED("9eyts7dlroeintksamasblz0m"); // while (dist2 == 0.0) {
907 UNSUPPORTED("a1kln2sh5ckxy9qbqw7ur6m89"); // xdelta = 5 - rand() % 10;
908 UNSUPPORTED("5utygemiryo6q9jilsrhyspq1"); // ydelta = 5 - rand() % 10;
909 UNSUPPORTED("9cv1lvbstloqs0iz3qbvzcbmx"); // dist2 = xdelta * xdelta + ydelta * ydelta;
910 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
911 UNSUPPORTED("dh786i3lrxpciiafxwi5hohar"); // dist = sqrt(dist2);
912 UNSUPPORTED("4ba6s6456ep2phb9pwqjbc4b9"); // if ((parms.useNew))
913 UNSUPPORTED("87l88wtd7xyepuhmf35a6bbw2"); // force = (ED_factor(e) * (dist - ED_dist(e))) / dist;
914 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
915 UNSUPPORTED("8wx917t05wq9rcvtqmvooz31z"); // force = (ED_factor(e) * dist) / ED_dist(e);
916 UNSUPPORTED("ef256m9rw2e3kva0vy4mrt4pn"); // (((dndata*)(ND_alg(q)))->disp)[0] -= xdelta * force;
917 UNSUPPORTED("de0dfwmddjz26z7cw76x9uejs"); // (((dndata*)(ND_alg(q)))->disp)[1] -= ydelta * force;
918 UNSUPPORTED("9us8cvhguukd2iasv7c2crzho"); // (((dndata*)(ND_alg(p)))->disp)[0] += xdelta * force;
919 UNSUPPORTED("e4teme92uacnxx36to3g3mdco"); // (((dndata*)(ND_alg(p)))->disp)[1] += ydelta * force;
920 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
921
922 throw new UnsupportedOperationException();
923 }
924
925
926
927
928 //3 6klhq8hd2uw9zsfrxwtv1ocnk
929 // static void updatePos(Agraph_t * g, double temp, bport_t * pp)
930 public static Object updatePos(Object... arg) {
931 UNSUPPORTED("2u9aj6rjmowhmurab0vf3r69l"); // static void updatePos(Agraph_t * g, double temp, bport_t * pp)
932 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
933 UNSUPPORTED("2jcii9cclu1dijzqekzc175pe"); // Agnode_t *n;
934 UNSUPPORTED("sg55m1c2s3xuubzzp8n0sw3f"); // double temp2;
935 UNSUPPORTED("25uak17ioz04l0iqfpc2rqjmq"); // double len2;
936 UNSUPPORTED("65672t6c1pgmsnn9zxy9mwvwd"); // double x, y, d;
937 UNSUPPORTED("an5v3e2oy9hxck46bwp0l8a0k"); // double dx, dy;
938 UNSUPPORTED("amlnzp2bleh099q3wlzlmj8zn"); // temp2 = temp * temp;
939 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
940 UNSUPPORTED("20k00hmq2eea97ngndk1rg61o"); // if (ND_pinned(n) & 2)
941 UNSUPPORTED("6hqli9m8yickz1ox1qfgtdbnd"); // continue;
942 UNSUPPORTED("1gq3st2z4k9zoet70m3v6x80b"); // dx = (((dndata*)(ND_alg(n)))->disp)[0];
943 UNSUPPORTED("aodqj11npmkk0fsuybgf620ln"); // dy = (((dndata*)(ND_alg(n)))->disp)[1];
944 UNSUPPORTED("5qw5xdnfn43mxsapjp20js30k"); // len2 = dx * dx + dy * dy;
945 UNSUPPORTED("66bgqva7s9uk7ly4ar3frkuh1"); // /* limit by temperature */
946 UNSUPPORTED("baq9cdzymvavytsen7guap4p5"); // if (len2 < temp2) {
947 UNSUPPORTED("e7qusmcrgbdr7i06hhwr6283y"); // x = ND_pos(n)[0] + dx;
948 UNSUPPORTED("1m9xpejjuhy1uxvymyx53pxff"); // y = ND_pos(n)[1] + dy;
949 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
950 UNSUPPORTED("9docoydbw13ckdwmcicezwzu8"); // double fact = temp / (sqrt(len2));
951 UNSUPPORTED("3qb2m4ym37kunjqqvftkozjbo"); // x = ND_pos(n)[0] + dx * fact;
952 UNSUPPORTED("4xldvbdbn4zcpg8itxhyo9mgc"); // y = ND_pos(n)[1] + dy * fact;
953 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
954 UNSUPPORTED("ewgha6n93ins88bgq7rcr4y1o"); // /* if ports, limit by boundary */
955 UNSUPPORTED("2tfzz986e4p2bid5m9sdnwfl7"); // if (pp) {
956 UNSUPPORTED("2h2fbkvwazh0sjetv7njnauhb"); // d = sqrt((x * x) / (parms.Wd2) + (y * y) / (parms.Ht2));
957 UNSUPPORTED("ebgj1his6d8t4264yeael6ol7"); // if ((!(((dndata*)(ND_alg(n)))->dn) && !ND_clust(n))) {
958 UNSUPPORTED("asq65gxobhrigft4q2hps44ae"); // ND_pos(n)[0] = x / d;
959 UNSUPPORTED("c1q4rpgqya1cg62hjsznhcx7k"); // ND_pos(n)[1] = y / d;
960 UNSUPPORTED("3zvvzyjqdnyczr8j3l63hduy7"); // } else if (d >= 1.0) {
961 UNSUPPORTED("d0mnxdfz9aqy4chwtknduvqhm"); // ND_pos(n)[0] = 0.95 * x / d;
962 UNSUPPORTED("3n2nm2hlcv949f84l1yk1ouvn"); // ND_pos(n)[1] = 0.95 * y / d;
963 UNSUPPORTED("175pyfe8j8mbhdwvrbx3gmew9"); // } else {
964 UNSUPPORTED("bzcs5gjg4p7i9fed154arg1dl"); // ND_pos(n)[0] = x;
965 UNSUPPORTED("62gf754isfr8v6h4kxxwi7it"); // ND_pos(n)[1] = y;
966 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
967 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
968 UNSUPPORTED("430348dqvn3b36o02ezqbp1uw"); // ND_pos(n)[0] = x;
969 UNSUPPORTED("d4yvjj58oi9ryj1jplnst6s5g"); // ND_pos(n)[1] = y;
970 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
971 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
972 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
973
974 throw new UnsupportedOperationException();
975 }
976
977
978
979
980 //3 2n34xldqlccwhpm8nh1rljs3p
981 // static void gAdjust(Agraph_t * g, double temp, bport_t * pp, Grid * grid)
982 public static Object gAdjust(Object... arg) {
983 UNSUPPORTED("556yrn9aufakg2ifo3g1h6pwf"); // static void gAdjust(Agraph_t * g, double temp, bport_t * pp, Grid * grid)
984 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
985 UNSUPPORTED("2jcii9cclu1dijzqekzc175pe"); // Agnode_t *n;
986 UNSUPPORTED("36vshotvjkc5iodgg7nq6qa2r"); // Agedge_t *e;
987 UNSUPPORTED("f1vdo4z4mtgqh7lb8t6qfv8gu"); // if (temp <= 0.0)
988 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
989 UNSUPPORTED("644hq2ff42fduad6ofrcnnr3z"); // clearGrid(grid);
990 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
991 UNSUPPORTED("d4x7a0ncmwpuitrfyisphry1f"); // (((dndata*)(ND_alg(n)))->disp)[0] = (((dndata*)(ND_alg(n)))->disp)[1] = 0;
992 UNSUPPORTED("5390epov6m7vcinu815ghkhf2"); // addGrid(grid, ((int)floor((ND_pos(n))[0] / (parms.Cell))), ((int)floor((ND_pos(n))[1] / (parms.Cell))),
993 UNSUPPORTED("23mwr8qy9p56xnfsgsetr6kdu"); // n);
994 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
995 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
996 UNSUPPORTED("8gbd6b2ssf51om8neirzzr6rw"); // for (e = agfstout(g, n); e; e = agnxtout(g, e))
997 UNSUPPORTED("2rz6z5yfu3wqj4z4t81p4m1a5"); // if (n != aghead(e))
998 UNSUPPORTED("9jgj9dhgjvujbr4f06kroynor"); // applyAttr(n, aghead(e), e);
999 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1000 UNSUPPORTED("3f3jqejsuoefgdz3m3vpdl620"); // walkGrid(grid, gridRepulse);
1001 UNSUPPORTED("6ucbf08xinzfcptpt2mc495jh"); // updatePos(g, temp, pp);
1002 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1003
1004 throw new UnsupportedOperationException();
1005 }
1006
1007
1008
1009
1010 //3 3tt7ro82g74d4dhvgbd5rb9yf
1011 // static void adjust(Agraph_t * g, double temp, bport_t * pp)
1012 public static Object adjust(Object... arg) {
1013 UNSUPPORTED("lv445mknryp4zqtin641m8cs"); // static void adjust(Agraph_t * g, double temp, bport_t * pp)
1014 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1015 UNSUPPORTED("2jcii9cclu1dijzqekzc175pe"); // Agnode_t *n;
1016 UNSUPPORTED("4rip97cgvbcrlgycxl0wajpuh"); // Agnode_t *n1;
1017 UNSUPPORTED("36vshotvjkc5iodgg7nq6qa2r"); // Agedge_t *e;
1018 UNSUPPORTED("f1vdo4z4mtgqh7lb8t6qfv8gu"); // if (temp <= 0.0)
1019 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
1020 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1021 UNSUPPORTED("d4x7a0ncmwpuitrfyisphry1f"); // (((dndata*)(ND_alg(n)))->disp)[0] = (((dndata*)(ND_alg(n)))->disp)[1] = 0;
1022 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1023 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1024 UNSUPPORTED("d5vhk45d87pvhm7ey0xmi5all"); // for (n1 = agnxtnode(g, n); n1; n1 = agnxtnode(g, n1)) {
1025 UNSUPPORTED("5r2borrugfgx76x385o64g6uq"); // applyRep(n, n1);
1026 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1027 UNSUPPORTED("e20lm4qtccvgsfq5fzjv6sjyl"); // for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
1028 UNSUPPORTED("2rz6z5yfu3wqj4z4t81p4m1a5"); // if (n != aghead(e))
1029 UNSUPPORTED("9jgj9dhgjvujbr4f06kroynor"); // applyAttr(n, aghead(e), e);
1030 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1031 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1032 UNSUPPORTED("6ucbf08xinzfcptpt2mc495jh"); // updatePos(g, temp, pp);
1033 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1034
1035 throw new UnsupportedOperationException();
1036 }
1037
1038
1039
1040
1041 //3 5udrim0k65x88jcd6im7jsk0m
1042 // static pointf initPositions(graph_t * g, bport_t * pp)
1043 public static Object initPositions(Object... arg) {
1044 UNSUPPORTED("5zigfg3p1puzt2mnml8cp2xq9"); // static pointf initPositions(graph_t * g, bport_t * pp)
1045 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1046 UNSUPPORTED("7ne6dk4gevmg9bpajywpl0sld"); // int nG = agnnodes(g) - (((gdata*)(GD_alg(g)))->nports);
1047 UNSUPPORTED("cmbn2mebw9i4zvae8o1naka1f"); // double size;
1048 UNSUPPORTED("4dnqwjhhs92m1h2q7ld3cpbxw"); // Agnode_t *np;
1049 UNSUPPORTED("84res63gkgrpokqhvh08l25gq"); // int n_pos = 0; /* no. of nodes with position info */
1050 UNSUPPORTED("as3veqd6dj01fepy5iqhc3cwb"); // box bb = { {0, 0}, {0, 0} };
1051 UNSUPPORTED("p0gtnc9vtxwu59vjacxfq8q2"); // pointf ctr; /* center of boundary ellipse */
1052 UNSUPPORTED("3cikqmw6ngedc2tcueu4k6kpn"); // long local_seed;
1053 UNSUPPORTED("f10pmsxbkh8gwvxc87ikaru1r"); // double PItimes2 = M_PI * 2.0;
1054 UNSUPPORTED("73rfwkv8ws65l7qgnz7jw27gf"); // for (np = agfstnode(g); np; np = agnxtnode(g, np)) {
1055 UNSUPPORTED("2p5byh0c6jasf3brw2ocfjljl"); // if (ND_pinned(np)) {
1056 UNSUPPORTED("b67kqz24hhewea5tyda1wyaeh"); // if (n_pos) {
1057 UNSUPPORTED("2ox2wzszwg6uksxze1jyo984e"); // bb.LL.x = MIN(ND_pos(np)[0], bb.LL.x);
1058 UNSUPPORTED("19mnog7trnfv3bhe0e066xv21"); // bb.LL.y = MIN(ND_pos(np)[1], bb.LL.y);
1059 UNSUPPORTED("7w96keir9silerc8qngpqjosk"); // bb.UR.x = MAX(ND_pos(np)[0], bb.UR.x);
1060 UNSUPPORTED("7k6ussgds4bd3z6eesr8fepbd"); // bb.UR.y = MAX(ND_pos(np)[1], bb.UR.y);
1061 UNSUPPORTED("175pyfe8j8mbhdwvrbx3gmew9"); // } else {
1062 UNSUPPORTED("cprc9p2lim8mn728cjqcd9t8r"); // bb.UR.x = bb.LL.x = ND_pos(np)[0];
1063 UNSUPPORTED("58a3mthmfxdro6hqr8iaekbzo"); // bb.UR.y = bb.LL.y = ND_pos(np)[1];
1064 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1065 UNSUPPORTED("39bza2s3i3py75vnpuv0lahjr"); // n_pos++;
1066 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1067 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1068 UNSUPPORTED("be13vd6vbtkm7vgtqhjrm3pnj"); // size = (parms.K) * (sqrt((double) nG) + 1.0);
1069 UNSUPPORTED("dyxxnbmtkvjmqulh7thgktg4s"); // (parms.Wd) = (parms.Ht) = 1.2 * (size / 2.0);
1070 UNSUPPORTED("5eg3rzhm9wggbsty8r3wbvqcy"); // if (n_pos == 1) {
1071 UNSUPPORTED("aqxuib6x0ru2lex5kbbxipidc"); // ctr.x = bb.LL.x;
1072 UNSUPPORTED("c2lyy587nd1u5om969mofy0lc"); // ctr.y = bb.LL.y;
1073 UNSUPPORTED("d6bvkxrex3rfetbazxs07ui79"); // } else if (n_pos > 1) {
1074 UNSUPPORTED("2o5vlil7etjeflp3478cnk1t1"); // double alpha, area, width, height, quot;
1075 UNSUPPORTED("e2bursa13trq43it5r42b5wxl"); // ctr.x = (bb.LL.x + bb.UR.x) / 2.0;
1076 UNSUPPORTED("8lkxdcp40t9kxlgfv6bmgopxw"); // ctr.y = (bb.LL.y + bb.UR.y) / 2.0;
1077 UNSUPPORTED("3j4sganaq9068n1er45ib9t0w"); // width = 1.2 * (bb.UR.x - bb.LL.x);
1078 UNSUPPORTED("31cw3gk0lnuv66j4rb6b76ujq"); // height = 1.2 * (bb.UR.y - bb.LL.y);
1079 UNSUPPORTED("9a1dqbpz59walt2lnrapoj8w9"); // area = 4.0 * (parms.Wd) * (parms.Ht);
1080 UNSUPPORTED("7sqr95ttttva9uhvsz8m37gb8"); // quot = (width * height) / area;
1081 UNSUPPORTED("aqxjptqp5qo65pns1mqxi1lvp"); // if (quot >= 1.0) { /* If bbox has large enough area, use it */
1082 UNSUPPORTED("12mid8wvcpmwh4m3zoym9p3r6"); // (parms.Wd) = width / 2.0;
1083 UNSUPPORTED("4qrpy054cs5u0vzvebcrn5dda"); // (parms.Ht) = height / 2.0;
1084 UNSUPPORTED("c3u6g89kxfo9iluy5yos1quyx"); // } else if (quot > 0.0) { /* else scale up to have enough area */
1085 UNSUPPORTED("dr733vgdfmc172xhjf47jwaxm"); // quot = 2.0 * sqrt(quot);
1086 UNSUPPORTED("8ogpn0wn3ja6jhfkziqwlr6ay"); // (parms.Wd) = width / quot;
1087 UNSUPPORTED("8ft1ybryais2vfkvvcur2sxgk"); // (parms.Ht) = height / quot;
1088 UNSUPPORTED("8of28fn1ted6krkmk2yjpau60"); // } else { /* either width or height is 0 */
1089 UNSUPPORTED("2jkl72eptn2faso4y1tmn9uze"); // if (width > 0) {
1090 UNSUPPORTED("ckrjc637785ohj82zmyw9e5ik"); // height = area / width;
1091 UNSUPPORTED("eqttpym94omzt6oujyzbqa0n5"); // (parms.Wd) = width / 2.0;
1092 UNSUPPORTED("5jplytikh5trxma41nredtj3z"); // (parms.Ht) = height / 2.0;
1093 UNSUPPORTED("gseug6cie81aibj66xfmvo8j"); // } else if (height > 0) {
1094 UNSUPPORTED("8e54vo4hp4yrklm62vgkn5v5n"); // width = area / height;
1095 UNSUPPORTED("eqttpym94omzt6oujyzbqa0n5"); // (parms.Wd) = width / 2.0;
1096 UNSUPPORTED("5jplytikh5trxma41nredtj3z"); // (parms.Ht) = height / 2.0;
1097 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1098 UNSUPPORTED("6hle4w7nbewioh1h57a8j8cvt"); // /* If width = height = 0, use Wd and Ht as defined above for
1099 UNSUPPORTED("7kk74syx1ba2ernmbirp3uwr9"); // * the case the n_pos == 0.
1100 UNSUPPORTED("20m1lc1moer8x00tx9ceto0iw"); // */
1101 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1102 UNSUPPORTED("3o6kj172y1xphtpj6jabh2e94"); // /* Construct enclosing ellipse */
1103 UNSUPPORTED("c0l603qzgyy1ql72a9qrgdals"); // alpha = atan2((parms.Ht), (parms.Wd));
1104 UNSUPPORTED("bbydl25432avreznfwgihdyfq"); // (parms.Wd) = (parms.Wd) / cos(alpha);
1105 UNSUPPORTED("3f6cb7sp9a4of125y0697hp9n"); // (parms.Ht) = (parms.Ht) / sin(alpha);
1106 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
1107 UNSUPPORTED("74pm3pn6axjjr00p1dklum3ja"); // ctr.x = ctr.y = 0;
1108 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1109 UNSUPPORTED("3pog5nekvf3aruzlqlqacxbn2"); // (parms.Wd2) = (parms.Wd) * (parms.Wd);
1110 UNSUPPORTED("9ppyltk2jjqg9furyd77w6fkd"); // (parms.Ht2) = (parms.Ht) * (parms.Ht);
1111 UNSUPPORTED("373lcxow3iqe10bnh9zo88csa"); // /* Set seed value */
1112 UNSUPPORTED("w2sxuedcee1wo3s82gme86q1"); // if ((parms.smode) == INIT_RANDOM)
1113 UNSUPPORTED("j2hetou7f381kf2tbyh0rukg"); // local_seed = (parms.seed);
1114 UNSUPPORTED("1nyzbeonram6636b1w955bypn"); // else {
1115 UNSUPPORTED("12svuafktwb2m6pdhnicft7ub"); // local_seed = getpid() ^ time(NULL);
1116 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1117 UNSUPPORTED("215ot7whw18pm35pop5udep50"); // srand(local_seed);
1118 UNSUPPORTED("dxe9gllri26lww3f475hmq5nv"); // /* If ports, place ports on and nodes within an ellipse centered at origin
1119 UNSUPPORTED("60rwp4z0fh34nnarv4wfcspx6"); // * with halfwidth Wd and halfheight Ht.
1120 UNSUPPORTED("1l0ild17ow39w4dmixs71gawy"); // * If no ports, place nodes within a rectangle centered at origin
1121 UNSUPPORTED("aircln8xkn5pw90ncdh2nng3a"); // * with halfwidth Wd and halfheight Ht. Nodes with a given position
1122 UNSUPPORTED("co3h8562l1uwhysdbeef7tn3u"); // * are translated. Wd and Ht are set to contain all positioned points.
1123 UNSUPPORTED("2hb260bbb3rvns3j0rfqnr4z"); // * The reverse translation will be applied to all
1124 UNSUPPORTED("bwk8qf4fezca0u8904a51fsgb"); // * nodes at the end of the layout.
1125 UNSUPPORTED("9tiugqaffj1brmkrm9mufk3cj"); // * TODO: place unfixed points using adjacent ports or fixed pts.
1126 UNSUPPORTED("795vpnc8yojryr8b46aidsu69"); // */
1127 UNSUPPORTED("7x3hp5csomjoow8l3cdyqhlp8"); // if (pp) {
1128 UNSUPPORTED("e5k8d4zlp85wal3b0r02pdece"); // /* fprintf (stderr, "initPos %s ctr (%g,%g) Wd %g Ht %g\n", g->name, ctr.x, ctr.y, Wd, Ht); */
1129 UNSUPPORTED("28fuw97soxmhn0392piuj5ivk"); // while (pp->e) { /* position ports on ellipse */
1130 UNSUPPORTED("ct66kbzehcaoegmxd9hvb8twk"); // np = pp->n;
1131 UNSUPPORTED("33uoc3m7i8cwcxcw7n38fx2w7"); // ND_pos(np)[0] = (parms.Wd) * cos(pp->alpha) + ctr.x;
1132 UNSUPPORTED("43in1oaf03hy0xtdyq6z7ecz"); // ND_pos(np)[1] = (parms.Ht) * sin(pp->alpha) + ctr.y;
1133 UNSUPPORTED("24z7oorb6gt8mp5y06u5kqb3x"); // ND_pinned(np) = 1;
1134 UNSUPPORTED("c2lbmfsz86m50be60annui55t"); // /* fprintf (stderr, "%s pt (%g,%g) %g\n", np->name, ND_pos(np)[0], ND_pos(np)[1], pp->alpha); */
1135 UNSUPPORTED("4t42c85s64mps71a1sjc7yoey"); // pp++;
1136 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1137 UNSUPPORTED("1731abd7psvbovg3sdrrz3alu"); // for (np = agfstnode(g); np; np = agnxtnode(g, np)) {
1138 UNSUPPORTED("6spla98dm5djs2srzlwnx02sv"); // if ((!(((dndata*)(ND_alg(np)))->dn) && !ND_clust(np)))
1139 UNSUPPORTED("6hyelvzskqfqa07xtgjtvg2is"); // continue;
1140 UNSUPPORTED("acza7ojsifjul54q5l29o3te7"); // if (ND_pinned(np)) {
1141 UNSUPPORTED("bu6tbcasyqkgeqjew2fi9bit2"); // ND_pos(np)[0] -= ctr.x;
1142 UNSUPPORTED("88ypktdzp7sxkfmj7plhbudbh"); // ND_pos(np)[1] -= ctr.y;
1143 UNSUPPORTED("175pyfe8j8mbhdwvrbx3gmew9"); // } else {
1144 UNSUPPORTED("4f01a8ivg0evqlhaplulzh9ek"); // pointf p = { 0.0, 0.0 };
1145 UNSUPPORTED("e7zdyie228r4jun06bay4grdk"); // int cnt = 0;
1146 UNSUPPORTED("8i69mg2gjp2bd2vd19kwy3vox"); // node_t *op;
1147 UNSUPPORTED("39iaqnad631pzrqic9r3emgwy"); // edge_t *ep;
1148 UNSUPPORTED("aw2lxucqcgjz8l1b9e12bcsdd"); // for (ep = agfstedge(g, np); ep; ep = agnxtedge(g, ep, np)) {
1149 UNSUPPORTED("b5s94n8kk03c84n5vt353ibcy"); // if (aghead(ep) == agtail(ep))
1150 UNSUPPORTED("91ilj0e8yph90t7k4ijuq5rb0"); // continue;
1151 UNSUPPORTED("z31psezyu92bc3yi9dvq6tc4"); // op = (aghead(ep) == np ? agtail(ep) : aghead(ep));
1152 UNSUPPORTED("1y3r5jidx8ix3zux535zj5pyi"); // if (!(ND_pinned(op) > 0))
1153 UNSUPPORTED("91ilj0e8yph90t7k4ijuq5rb0"); // continue;
1154 UNSUPPORTED("4ef5myoqgaf9zgbcn2wujxw1a"); // if (cnt) {
1155 UNSUPPORTED("7lebyzde5wb7xt11nsqzupefh"); // p.x = (p.x * cnt + ND_pos(op)[0]) / (cnt + 1);
1156 UNSUPPORTED("f0rtqxd7s2m0x7hxoa13q9kwj"); // p.y = (p.y * cnt + ND_pos(op)[1]) / (cnt + 1);
1157 UNSUPPORTED("d86r93g8nz9a1kfzgi7f8j8nh"); // } else {
1158 UNSUPPORTED("c0sc4z04s46uhshkw3ozqvnmd"); // p.x = ND_pos(op)[0];
1159 UNSUPPORTED("eiuhticsuick7ct9uaxwjdsqo"); // p.y = ND_pos(op)[1];
1160 UNSUPPORTED("dkxvw03k2gg9anv4dbze06axd"); // }
1161 UNSUPPORTED("ah6qookjy3kxxu2ll7p2wqkr5"); // cnt++;
1162 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
1163 UNSUPPORTED("3ky7wkxaat443ni0lypyci7ds"); // if (cnt > 1) {
1164 UNSUPPORTED("5hf76y58zaxsd5yfbwr67v1pl"); // ND_pos(np)[0] = p.x;
1165 UNSUPPORTED("65iv8m1taebcnnh2f9dl3tzvd"); // ND_pos(np)[1] = p.y;
1166 UNSUPPORTED("22fwdoz45bfh8gcgd0uvdzwqi"); // /* fprintf (stderr, "%s 1 (%g,%g)\n", np->name, p.x, p.y); */
1167 UNSUPPORTED("cuhpsk6avu7u4s1o3uouiyrwn"); // } else if (cnt == 1) {
1168 UNSUPPORTED("bshbnvfbvodmqx28tn1ekh68u"); // ND_pos(np)[0] = 0.98 * p.x + 0.1 * ctr.x;
1169 UNSUPPORTED("7es44punnuei8vk9a6zi6mfcr"); // ND_pos(np)[1] = 0.9 * p.y + 0.1 * ctr.y;
1170 UNSUPPORTED("ewww84n7ov6xly1rad9dphi8m"); // /* fprintf (stderr, "%s %d (%g,%g)\n", np->name, cnt, ND_pos(np)[0], ND_pos(np)[1]); */
1171 UNSUPPORTED("a47jqpic91ky93e1ohxv590l5"); // } else {
1172 UNSUPPORTED("4m9h4qwahwza1l0lhm457zudx"); // double angle = PItimes2 * drand48();
1173 UNSUPPORTED("3rvzprwz2t47pyqh60oqsw17j"); // double radius = 0.9 * drand48();
1174 UNSUPPORTED("at7x0p3otimkmhsxqkambua5t"); // ND_pos(np)[0] = radius * (parms.Wd) * cos(angle);
1175 UNSUPPORTED("8e62lq0w9ogdd5bpizalws1x8"); // ND_pos(np)[1] = radius * (parms.Ht) * sin(angle);
1176 UNSUPPORTED("6p3ya6o9y82x4xvoubqk3sn9r"); // /* fprintf (stderr, "%s 0 (%g,%g)\n", np->name, ND_pos(np)[0], ND_pos(np)[1]); */
1177 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
1178 UNSUPPORTED("7djjlwbyom7gt69719c2ge441"); // ND_pinned(np) = 1;
1179 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1180 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1181 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
1182 UNSUPPORTED("cj35dr9ue5hdfys90rl806ohk"); // if (n_pos) { /* If positioned nodes */
1183 UNSUPPORTED("10u5z5m937fskvpiibijz5mn3"); // for (np = agfstnode(g); np; np = agnxtnode(g, np)) {
1184 UNSUPPORTED("1zfcoj5p8ibbitj9jx20klypu"); // if (ND_pinned(np)) {
1185 UNSUPPORTED("8r9mj2cdquw9apcge0rrsdvo4"); // ND_pos(np)[0] -= ctr.x;
1186 UNSUPPORTED("5p6xqo5ilca5hndjyy1rixyo6"); // ND_pos(np)[1] -= ctr.y;
1187 UNSUPPORTED("a47jqpic91ky93e1ohxv590l5"); // } else {
1188 UNSUPPORTED("4zftore6zkehqgal2xf22rsxm"); // ND_pos(np)[0] = (parms.Wd) * (2.0 * drand48() - 1.0);
1189 UNSUPPORTED("bi87ypmmvt5js8xtssxgkcztn"); // ND_pos(np)[1] = (parms.Ht) * (2.0 * drand48() - 1.0);
1190 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
1191 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1192 UNSUPPORTED("7q4mtrigf95au3k1wtqedxeie"); // } else { /* No ports or positions; place randomly */
1193 UNSUPPORTED("10u5z5m937fskvpiibijz5mn3"); // for (np = agfstnode(g); np; np = agnxtnode(g, np)) {
1194 UNSUPPORTED("8y3ekg5ooz7pty0anyx14u1a0"); // ND_pos(np)[0] = (parms.Wd) * (2.0 * drand48() - 1.0);
1195 UNSUPPORTED("9ytn7cf1z9nt38i4r4qxkfb8y"); // ND_pos(np)[1] = (parms.Ht) * (2.0 * drand48() - 1.0);
1196 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1197 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1198 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1199 UNSUPPORTED("48suit55vfvla133oj7youe6x"); // return ctr;
1200 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1201
1202 throw new UnsupportedOperationException();
1203 }
1204
1205
1206
1207
1208 //3 63jai1t1xyfwqxq5g2yca6qwo
1209 // void dumpstat(graph_t * g)
1210 public static Object dumpstat(Object... arg) {
1211 UNSUPPORTED("20tbhzs2675qjcj5182bnwe3"); // void dumpstat(graph_t * g)
1212 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1213 UNSUPPORTED("an5v3e2oy9hxck46bwp0l8a0k"); // double dx, dy;
1214 UNSUPPORTED("carv9c7ltra9s7bn7325yl1ca"); // double l, max2 = 0.0;
1215 UNSUPPORTED("embgw30vqico8gdmn2r6ywcb0"); // node_t *np;
1216 UNSUPPORTED("akibnb2rnde6cxd49pthk2vaf"); // edge_t *ep;
1217 UNSUPPORTED("73rfwkv8ws65l7qgnz7jw27gf"); // for (np = agfstnode(g); np; np = agnxtnode(g, np)) {
1218 UNSUPPORTED("237pehjbrsfpqsziagl7ruflr"); // dx = (((dndata*)(ND_alg(np)))->disp)[0];
1219 UNSUPPORTED("3k3sgrq13y7dqtox9yw9buweb"); // dy = (((dndata*)(ND_alg(np)))->disp)[1];
1220 UNSUPPORTED("2f9eablv6mecibn7seya1pzo1"); // l = dx * dx + dy * dy;
1221 UNSUPPORTED("4qnd3kdyfpakhf236u1fc7u3n"); // if (l > max2)
1222 UNSUPPORTED("8f9u1ocg2krmsv0et27dgbsho"); // max2 = l;
1223 UNSUPPORTED("djec9oesza03ze2suze0ecri6"); // fprintf(stderr, "%s: (%f,%f) (%f,%f)\n", agnameof(np),
1224 UNSUPPORTED("2dwhsgsw146t923oie4ner05n"); // ND_pos(np)[0], ND_pos(np)[1], (((dndata*)(ND_alg(np)))->disp)[0], (((dndata*)(ND_alg(np)))->disp)[1]);
1225 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1226 UNSUPPORTED("atgvw5qqam8q772joifsaroa6"); // fprintf(stderr, "max delta = %f\n", sqrt(max2));
1227 UNSUPPORTED("73rfwkv8ws65l7qgnz7jw27gf"); // for (np = agfstnode(g); np; np = agnxtnode(g, np)) {
1228 UNSUPPORTED("9ogvgwje5yfel4p010a2ngel2"); // for (ep = agfstout(g, np); ep; ep = agnxtout(g, ep)) {
1229 UNSUPPORTED("iwctvaad280jc0xmmwtwb8t4"); // dx = ND_pos(np)[0] - ND_pos(aghead(ep))[0];
1230 UNSUPPORTED("a0kmxxudbdd32pjrdm7h80n7j"); // dy = ND_pos(np)[1] - ND_pos(aghead(ep))[1];
1231 UNSUPPORTED("2luk1bzlvxvsu4yaq14jpq63e"); // fprintf(stderr, " %s -- %s (%f)\n", agnameof(np),
1232 UNSUPPORTED("5mdn4gi1x1ejrr8dc8ptp7j2b"); // agnameof(aghead(ep)), sqrt(dx * dx + dy * dy));
1233 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1234 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1235 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1236
1237 throw new UnsupportedOperationException();
1238 }
1239
1240
1241
1242
1243 //3 d496llwnjlxt7wx0sw80xr3h
1244 // void fdp_tLayout(graph_t * g, xparams * xpms)
1245 public static Object fdp_tLayout(Object... arg) {
1246 UNSUPPORTED("4vartheayhc02p8abhpueur8k"); // void fdp_tLayout(graph_t * g, xparams * xpms)
1247 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1248 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
1249 UNSUPPORTED("4yyiedehyodxqynt9nk46f3qx"); // int reset;
1250 UNSUPPORTED("5nprjii4b4t1tqwfa7blveqzl"); // bport_t *pp = (((gdata*)(GD_alg(g)))->ports);
1251 UNSUPPORTED("cdwiwyvrwcamy7fd5h8v4ctix"); // double temp;
1252 UNSUPPORTED("afeqt1r4ifq10hbcu0lkvgtcc"); // Grid *grid;
1253 UNSUPPORTED("43ygqm2wusmc5ufanrf2tywuv"); // pointf ctr;
1254 UNSUPPORTED("2jcii9cclu1dijzqekzc175pe"); // Agnode_t *n;
1255 UNSUPPORTED("9glfmd12pu2aocf0x89qyiagz"); // reset = init_params(g, xpms);
1256 UNSUPPORTED("51hmas0k3ztao4lklbnmgb1z4"); // temp = (parms.T0);
1257 UNSUPPORTED("e6aongyerd2z90gw4058nn9no"); // ctr = initPositions(g, pp);
1258 UNSUPPORTED("5mn14gy4taomtxfb9fvba9s6"); // if ((parms.useGrid)) {
1259 UNSUPPORTED("9gg2q890dm8rk01ln2soy9q07"); // grid = mkGrid(agnnodes(g));
1260 UNSUPPORTED("99u5ex4brl0v72kblltu29qrp"); // adjustGrid(grid, agnnodes(g));
1261 UNSUPPORTED("2fwoci0dajsurbv4llksgko0m"); // for (i = 0; i < (parms.loopcnt); i++) {
1262 UNSUPPORTED("8jwip4lpb66zrs8yg95kcyksu"); // temp = cool(temp, i);
1263 UNSUPPORTED("54329047fhts0pe5obmee52ea"); // gAdjust(g, temp, pp, grid);
1264 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1265 UNSUPPORTED("4j3wd9re4wtkkphmr45m55lv2"); // delGrid(grid);
1266 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
1267 UNSUPPORTED("2fwoci0dajsurbv4llksgko0m"); // for (i = 0; i < (parms.loopcnt); i++) {
1268 UNSUPPORTED("8jwip4lpb66zrs8yg95kcyksu"); // temp = cool(temp, i);
1269 UNSUPPORTED("767555czr5rvuel3gvb17yhzz"); // adjust(g, temp, pp);
1270 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1271 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1272 UNSUPPORTED("7n6pc2ga10preyiyao295oubn"); // if ((ctr.x != 0.0) || (ctr.y != 0.0)) {
1273 UNSUPPORTED("attp4bsjqe99xnhi7lr7pszar"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1274 UNSUPPORTED("a5q2n8etykpay9dc2nx2w6mbz"); // ND_pos(n)[0] += ctr.x;
1275 UNSUPPORTED("hr4c300wuhcjouckus3x3s8z"); // ND_pos(n)[1] += ctr.y;
1276 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1277 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1278 UNSUPPORTED("943t36gae0nxvl615sqll9s1g"); // /* dumpstat (g); */
1279 UNSUPPORTED("d4menyaoqjljh2lz18bl9t9se"); // if (reset)
1280 UNSUPPORTED("7goawf09215kg8vtuk4nqmodn"); // reset_params();
1281 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1282
1283 throw new UnsupportedOperationException();
1284 }
1285
1286
1287 }