Debian Codegraph @

src/gen/lib/label/nrtmain__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.label;
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 nrtmain__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 ez7q2nzpr17flkmb0odk67ggx
154 // static char *progname
155
156
157 //1 4k7cnypsvtgywml89uxukug5r
158 // static int Verbose
159
160
161
162
163 //3 c1s4k85p1cdfn176o3uryeros
164 // static inline pointf pointfof(double x, double y)
165 public static ST_pointf pointfof(double x, double y) {
166 // WARNING!! STRUCT
167 return pointfof_w_(x, y).copy();
168 }
169 private static ST_pointf pointfof_w_(double x, double y) {
170 ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof");
171 try {
172 final ST_pointf r = new ST_pointf();
173 r.setDouble("x", x);
174 r.setDouble("y", y);
175 return r;
176 } finally {
177 LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof");
178 }
179 }
180
181
182
183
184 //3 2i713kmewjct2igf3lwm80462
185 // static pointf centerPt(xlabel_t * xlp)
186 public static Object centerPt(Object... arg) {
187 UNSUPPORTED("2ehkj7fn7wtb77mg9wdqpdig1"); // static pointf centerPt(xlabel_t * xlp)
188 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
189 UNSUPPORTED("2bghyit203pd6xw2ihhenzyn8"); // pointf p;
190 UNSUPPORTED("1zfb5l8l1ajr1qwg3mcy71mrm"); // p = xlp->pos;
191 UNSUPPORTED("8hxf8i35knrbncbh2vfaidbi7"); // p.x += (xlp->sz.x) / 2.0;
192 UNSUPPORTED("4pemnun9akazartmat9b8062r"); // p.y += (xlp->sz.y) / 2.0;
193 UNSUPPORTED("91xduilalb406jjyw2g1i07th"); // return p;
194 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
195
196 throw new UnsupportedOperationException();
197 }
198
199
200
201
202 //3 axo7jzudoju3r02pbuzu5u5cg
203 // static int printData(object_t * objs, int n_objs, xlabel_t * lbls, int n_lbls, label_params_t * params)
204 public static Object printData(Object... arg) {
205 UNSUPPORTED("eyp5xkiyummcoc88ul2b6tkeg"); // static int
206 UNSUPPORTED("1ts7sby2d9t84a9e3n3h9z7i4"); // printData(object_t * objs, int n_objs, xlabel_t * lbls, int n_lbls,
207 UNSUPPORTED("b2402200eyc80fno3tkigspyc"); // label_params_t * params)
208 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
209 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
210 UNSUPPORTED("2a3rymfsfswadknge9x92kumi"); // fprintf(stderr,
211 UNSUPPORTED("9ffvrcx1kz69kf4ohq458tntr"); // "%d objs %d xlabels force=%d bb=(%.02f,%.02f) (%.02f,%.02f)\n",
212 UNSUPPORTED("8lkiqntjtlrl6e91jrj1crmy7"); // n_objs, n_lbls, params->force, params->bb.LL.x,
213 UNSUPPORTED("atpr27z058nxgtq1injs7j3xx"); // params->bb.LL.y, params->bb.UR.x, params->bb.UR.y);
214 UNSUPPORTED("8rqgsy04sx7rq9dr227gsfdny"); // if (Verbose < 2)
215 UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0;
216 UNSUPPORTED("2646yqgzt1fr9gq4thnuvqw62"); // fprintf(stderr, "objects\n");
217 UNSUPPORTED("bznihqrwh4167vo2mn4du53da"); // for (i = 0; i < n_objs; i++) {
218 UNSUPPORTED("3h9on00kwjf4xo4j60tbhbd0d"); // if(objs[i].lbl && objs[i].lbl->lbl)
219 UNSUPPORTED("2p5wg8zjn154ih218upte0m8u"); // fprintf (stderr, " [%d] %p %p (%.02f, %.02f) (%.02f, %.02f) %s\n",
220 UNSUPPORTED("3nrlvh61ecaah41rdce7opuz6"); // i, &objs[i], objs[i].lbl, objs[i].pos.x,objs[i].pos.y,
221 UNSUPPORTED("38c5nmfxdrj8anxj2tvsuzwyd"); // objs[i].sz.x,objs[i].sz.y,
222 UNSUPPORTED("5010od1avt4gufwitovfspv53"); // ((textlabel_t*)objs[i].lbl->lbl)->text );
223 UNSUPPORTED("e2koj2xocq76awegpydpyu62m"); // else
224 UNSUPPORTED("aoaa9ojdu28j43q5olg7ipirz"); // fprintf (stderr, " [%d] %p %p (%.02f, %.02f) (%.02f, %.02f)\n",
225 UNSUPPORTED("3nrlvh61ecaah41rdce7opuz6"); // i, &objs[i], objs[i].lbl, objs[i].pos.x,objs[i].pos.y,
226 UNSUPPORTED("enm5yxjvcqabshcso24gtrc2e"); // objs[i].sz.x,objs[i].sz.y);
227 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
228 UNSUPPORTED("5qiw0ng2ayzadjgb1k8dym0y7"); // fprintf(stderr, "xlabels\n");
229 UNSUPPORTED("30yvif5t111f94y1fs2gd8crq"); // for (i = 0; i < n_lbls; i++) {
230 UNSUPPORTED("5cpl2wq6ypkvhfql4dd7c82s3"); // fprintf(stderr, " [%d] %p (%.02f, %.02f) (%.02f, %.02f) %s\n",
231 UNSUPPORTED("8qph05eaq6mqxunl6b71h8x2g"); // i, &lbls[i], lbls[i].pos.x, lbls[i].pos.y,
232 UNSUPPORTED("4cl6jk5xeitdm8kz9zfyea3zm"); // lbls[i].sz.x, lbls[i].sz.y,
233 UNSUPPORTED("3vd0l036v68y2ae4kl150n8yp"); // ((textlabel_t *)lbls[i].lbl)->text);
234 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
235 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
236 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
237
238 throw new UnsupportedOperationException();
239 }
240
241
242
243
244 //3 c4cg32mzgkpbcst0jy2upq5w3
245 // int doxlabel(opts_t * opts)
246 public static Object doxlabel(Object... arg) {
247 UNSUPPORTED("8wurvokwz90fe88uipw31lwep"); // int doxlabel(opts_t * opts)
248 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
249 UNSUPPORTED("3l5bdi04ekui6vvrgr3s666fx"); // Agraph_t *gp;
250 UNSUPPORTED("1q5pw5siho05tilkhpvceuax5"); // object_t *objs;
251 UNSUPPORTED("88sdp733wy18rctixyqpiarvo"); // xlabel_t *lbls;
252 UNSUPPORTED("aq6jdvqcw04pxk55fs8ppod2c"); // int i, n_objs, n_lbls;
253 UNSUPPORTED("asd06xewa83y0cc930zzf5d25"); // label_params_t params;
254 UNSUPPORTED("4dnqwjhhs92m1h2q7ld3cpbxw"); // Agnode_t *np;
255 UNSUPPORTED("1bl759aws53yjk3xg9shiogx5"); // Agedge_t *ep;
256 UNSUPPORTED("2wem1nsm7z6vxqjo9edb38fpu"); // int n_nlbls = 0, n_elbls = 0;
257 UNSUPPORTED("2lzsl1e035wt5epd1h8f4bn8m"); // boxf bb;
258 UNSUPPORTED("cqwl7s9yvzr8n5v8svuuv1a1q"); // textlabel_t *lp;
259 UNSUPPORTED("1exmnagt3khrhapqoj43kchc9"); // object_t *objp;
260 UNSUPPORTED("42yb201vo7e3ryt0pg3pupi84"); // xlabel_t *xlp;
261 UNSUPPORTED("1ilrhzyqh05f2u3j3vzg0ys8u"); // pointf ur;
262 UNSUPPORTED("2ntp2ibjekwh9j8nygd0ti1xm"); // fprintf(stderr, "reading %s\n", opts->infname);
263 UNSUPPORTED("b7tc1qd0ygab8ky9f8mq6yr1r"); // if (!(gp = agread(opts->inf))) {
264 UNSUPPORTED("2z171ve8godqlic0qmbasth1e"); // fprintf(stderr, "%s: %s not a dot file\n", progname,
265 UNSUPPORTED("6oq4a7osqwufq0eszpp57ktu6"); // opts->infname);
266 UNSUPPORTED("dtw3cma0ziyha0w534bszl0tx"); // exit(1);
267 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
268 UNSUPPORTED("beo8iaf6acg59u8is886fmt2x"); // fclose(opts->inf);
269 UNSUPPORTED("9s7txbykwaiwj5rv1xjdpwh4y"); // fprintf(stderr, "laying out %s\n", opts->lay);
270 UNSUPPORTED("aojth6x8xid0d88cuvl2wn8nf"); // if (gvLayout(opts->gvc, gp, opts->lay)) {
271 UNSUPPORTED("e1ce3rd38aij0uzxsx09fu5kp"); // fprintf(stderr, "%s: layout %s failed\n", progname, opts->lay);
272 UNSUPPORTED("dtw3cma0ziyha0w534bszl0tx"); // exit(1);
273 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
274 UNSUPPORTED("8s81ox08m1abqhigygxh81299"); // fprintf(stderr, "attach labels\n");
275 UNSUPPORTED("6cchlbw0dymzb3cw1hfo94n6a"); // /* In the real code, this should be optimized using GD_has_labels() */
276 UNSUPPORTED("bfdixk0pjg05sljut4h57xbbh"); // /* We could probably provide the number of node and edge xlabels */
277 UNSUPPORTED("27ppdplfezcqw6rdrkzyrr8yg"); // for (np = agfstnode(gp); np; np = agnxtnode(gp, np)) {
278 UNSUPPORTED("cnz7ckum0lz95m8c8e6i1vok7"); // if (ND_xlabel(np))
279 UNSUPPORTED("3uhi0myy92p6xl4a5oxde7v9z"); // n_nlbls++;
280 UNSUPPORTED("41dpbku41lh3gpb30ds9ex6aa"); // for (ep = agfstout(gp, np); ep; ep = agnxtout(gp, ep)) {
281 UNSUPPORTED("biq91l2ud7l5kr26ls9zbzzke"); // if (ED_xlabel(ep))
282 UNSUPPORTED("bffseaexubrngpi9o059qepow"); // n_elbls++;
283 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
284 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
285 UNSUPPORTED("5ft4bvs2l0ce26wb6gnuzjao7"); // n_objs = agnnodes(gp) + n_elbls;
286 UNSUPPORTED("5kla6rwar4q1ig2olguocajn6"); // n_lbls = n_nlbls + n_elbls;
287 UNSUPPORTED("3e10kvi719e134x675xgwi1tj"); // objp = objs = (object_t*)zmalloc((n_objs)*sizeof(object_t));
288 UNSUPPORTED("6z86cmeenod2nx8ej72n0qotk"); // xlp = lbls = (xlabel_t*)zmalloc((n_lbls)*sizeof(xlabel_t));
289 UNSUPPORTED("f2nzvg1xnr11v28w2feg923cs"); // bb.LL = pointfof(INT_MAX, INT_MAX);
290 UNSUPPORTED("7tttoj8cnxfqgnq2aagnnav48"); // bb.UR = pointfof(-INT_MAX, -INT_MAX);
291 UNSUPPORTED("27ppdplfezcqw6rdrkzyrr8yg"); // for (np = agfstnode(gp); np; np = agnxtnode(gp, np)) {
292 UNSUPPORTED("4siyxwjbs44obgm7h82zjml69"); // /* Add an obstacle per node */
293 UNSUPPORTED("6cuxjl9g4nxwyz58c201qdb94"); // objp->sz.x = ((ND_width(np))*(double)72);
294 UNSUPPORTED("e3zk2j9kbexxv2xbsgu3pser6"); // objp->sz.y = ((ND_height(np))*(double)72);
295 UNSUPPORTED("cbc8atcbxsu44juz82lkfcgwq"); // objp->pos = ND_coord(np);
296 UNSUPPORTED("3zy29s8ijfmwn910twoywpps1"); // objp->pos.x -= (objp->sz.x) / 2.0;
297 UNSUPPORTED("7jkvg5hvdxus7k3bv57jyjh88"); // objp->pos.y -= (objp->sz.y) / 2.0;
298 UNSUPPORTED("7jndn79f10gyxumgbo6czxe5m"); // /* Adjust bounding box */
299 UNSUPPORTED("bsgbwiykz32eqdyc49dobwpnr"); // bb.LL.x = MIN(bb.LL.x, objp->pos.x);
300 UNSUPPORTED("2u94r8rlczbki3ge3ihvmo9mi"); // bb.LL.y = MIN(bb.LL.y, objp->pos.y);
301 UNSUPPORTED("4lusjec057jj66bscit5s7lft"); // ur.x = objp->pos.x + objp->sz.x;
302 UNSUPPORTED("9zdffh9aglmrm8cdsmyxb0wrw"); // ur.y = objp->pos.y + objp->sz.y;
303 UNSUPPORTED("crkzyggmy41k3nrp8csmiakes"); // bb.UR.x = MAX(bb.UR.x, ur.x);
304 UNSUPPORTED("5ejpea5qlp1pbghy6n2lsuwfs"); // bb.UR.y = MAX(bb.UR.y, ur.y);
305 UNSUPPORTED("eezvruvdh9ueqsgad8k5xzbqi"); // if (ND_xlabel(np)) {
306 UNSUPPORTED("dq9r3oew49g4p62l8mj95y1dh"); // xlp->sz = ND_xlabel(np)->dimen;
307 UNSUPPORTED("7xq75ru9hsux949swpm3cp4ue"); // xlp->lbl = ND_xlabel(np);
308 UNSUPPORTED("lch95gg7hal8p4g2coq8qya9"); // xlp->set = 0;
309 UNSUPPORTED("9ozlxoe5hy2ssm40umphbfgxe"); // objp->lbl = xlp;
310 UNSUPPORTED("ddik10sdd1c59te8kbgpqsncp"); // xlp++;
311 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
312 UNSUPPORTED("bhbvoj12subdn6905juhiubo2"); // objp++;
313 UNSUPPORTED("41dpbku41lh3gpb30ds9ex6aa"); // for (ep = agfstout(gp, np); ep; ep = agnxtout(gp, ep)) {
314 UNSUPPORTED("92f340ohb0u21xl6jgpc2hieo"); // if (ED_label(ep)) {
315 UNSUPPORTED("bbidnvg3rfydq4lbw358qvlik"); // textlabel_t *lp = ED_label(ep);
316 UNSUPPORTED("dow8hf9884ywwrt8hgipox54g"); // lp->pos.x = lp->pos.y = 0.0;
317 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
318 UNSUPPORTED("58ej5pyvcqel713ci83qh7j2n"); // if (!ED_xlabel(ep))
319 UNSUPPORTED("6hyelvzskqfqa07xtgjtvg2is"); // continue;
320 UNSUPPORTED("d6wg3egk1x5aesy2ng1qyjh0z"); // objp->sz.x = 0;
321 UNSUPPORTED("dy9evuaclpueiidwo0pp40904"); // objp->sz.y = 0;
322 UNSUPPORTED("bpwvk9oag9fx8aiebw7xa9rw8"); // objp->pos = edgeMidpoint(gp, ep);
323 UNSUPPORTED("64lz6mea65zfl2kbogusvglpn"); // xlp->sz = ED_xlabel(ep)->dimen;
324 UNSUPPORTED("5rvgp0x8n9fqvbyp32952ouk2"); // xlp->lbl = ED_xlabel(ep);
325 UNSUPPORTED("lch95gg7hal8p4g2coq8qya9"); // xlp->set = 0;
326 UNSUPPORTED("9ozlxoe5hy2ssm40umphbfgxe"); // objp->lbl = xlp;
327 UNSUPPORTED("ddik10sdd1c59te8kbgpqsncp"); // xlp++;
328 UNSUPPORTED("9061jd99guumlgucvlj3a8vub"); // objp++;
329 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
330 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
331 UNSUPPORTED("d447casut2vhvblc969saqfs4"); // params.force = opts->force;
332 UNSUPPORTED("2ol916ffwy0e2vxinxn4v4sgt"); // params.bb = bb;
333 UNSUPPORTED("2di5wqm6caczzl6bvqe35ry8y"); // if (Verbose)
334 UNSUPPORTED("4iypau1fdov37qnq2ub6iq5ra"); // printData(objs, n_objs, lbls, n_lbls, &params);
335 UNSUPPORTED("25rb35acbkepp55u3bkjxb1gc"); // placeLabels(objs, n_objs, lbls, n_lbls, &params);
336 UNSUPPORTED("tpyqsliwrqzwhuw8vzkm8loc"); // fprintf(stderr, "read label positions\n");
337 UNSUPPORTED("52mefujap7scy273ud7nyj9hn"); // xlp = lbls;
338 UNSUPPORTED("30yvif5t111f94y1fs2gd8crq"); // for (i = 0; i < n_lbls; i++) {
339 UNSUPPORTED("w0kpfap6pb5scjkqkgsfira0"); // if (xlp->set) {
340 UNSUPPORTED("8xqwhcveb6ivragr1ebkp4pfh"); // lp = (textlabel_t *) (xlp->lbl);
341 UNSUPPORTED("a5h8ktnl3raui7zo5kcjzd2e0"); // lp->set = 1;
342 UNSUPPORTED("4lub8ddx8vt0gove63lajjr4s"); // lp->pos = centerPt(xlp);
343 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
344 UNSUPPORTED("1966qdxqc520zc0itk8al0xus"); // xlp++;
345 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
346 UNSUPPORTED("baez6nmarx9nht65vulvjojic"); // free(objs);
347 UNSUPPORTED("ayak2o9js1lmsa5vuzul2sdxs"); // free(lbls);
348 UNSUPPORTED("bftxx8axittt2mwc80wvu1f00"); // fprintf(stderr, "writing %s\n", opts->outfname);
349 UNSUPPORTED("323sem4b7jzyg7l5kylxe0gnx"); // gvRender(opts->gvc, gp, opts->fmt, opts->outf);
350 UNSUPPORTED("bp54wy9c70v90k5bb11lppo5l"); // /* clean up */
351 UNSUPPORTED("67guepsgjnhtoqor7wh4gstti"); // fprintf(stderr, "cleaning up\n");
352 UNSUPPORTED("dve51clmbbuj7sc653o65y416"); // gvFreeLayout(opts->gvc, gp);
353 UNSUPPORTED("9d0rk5v0wtzmux625ddclpdn1"); // agclose(gp);
354 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
355 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
356
357 throw new UnsupportedOperationException();
358 }
359
360
361
362
363 //3 9wfwgoq79qhinosrkyial6epj
364 // int checkOpt(char *l, char *legal[], int n)
365 public static Object checkOpt(Object... arg) {
366 UNSUPPORTED("16prj059n95sysjma58fiqgzu"); // int checkOpt(char *l, char *legal[], int n)
367 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
368 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
369 UNSUPPORTED("1vi49g48u2rc9v88yhabta0yw"); // for (i = 0; i < n; i++) {
370 UNSUPPORTED("nnm3nrg0fnq3so1cn59gl1ty"); // if (strcmp(l, legal[i]) == 0)
371 UNSUPPORTED("btmwubugs9vkexo4yb7a5nqel"); // return 1;
372 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
373 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
374 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
375
376 throw new UnsupportedOperationException();
377 }
378
379
380
381
382 //3 8q6likcxw6ut5zeraaze8shtb
383 // void usage(char *pp)
384 public static Object usage(Object... arg) {
385 UNSUPPORTED("7m2ltqr2kx3w6q4t3g8dzfqpp"); // void usage(char *pp)
386 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
387 UNSUPPORTED("2a3rymfsfswadknge9x92kumi"); // fprintf(stderr,
388 UNSUPPORTED("4wrs4bfjfwklmwoco1koczjdv"); // "Usage: %s [-fv] [-V$level] [-T$fmt] [-l$layout] [-o$outfile] dotfile\n",
389 UNSUPPORTED("9ollqr0ef4x8spk0rt3sr8vqp"); // pp);
390 UNSUPPORTED("b9185t6i77ez1ac587ul8ndnc"); // return;
391 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
392
393 throw new UnsupportedOperationException();
394 }
395
396
397
398
399 //3 3u8wp1vjie9akflq8id8h4jml
400 // static FILE *openFile(char *name, char *mode)
401 public static Object openFile(Object... arg) {
402 UNSUPPORTED("d20hfpuvv6zzaoadalivef5gx"); // static FILE *openFile(char *name, char *mode)
403 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
404 UNSUPPORTED("dn2hi0km4q5ldibguffbger1c"); // FILE *fp;
405 UNSUPPORTED("44fhep40ukv2a3ja1nq34hrm8"); // char *modestr;
406 UNSUPPORTED("a5fahi1wh7pd0cs3oalvsoaiv"); // fp = fopen(name, mode);
407 UNSUPPORTED("304p80cpezoo5tih4fcsob9cq"); // if (!fp) {
408 UNSUPPORTED("9ympiq6pzqmd8nshnoq3vpwfi"); // if (*mode == 'r')
409 UNSUPPORTED("14y4vxn380hggwx7a5m3zwyd0"); // modestr = "reading";
410 UNSUPPORTED("9352ql3e58qs4fzapgjfrms2s"); // else
411 UNSUPPORTED("55vho08zxn3hxhpr4tx4use3p"); // modestr = "writing";
412 UNSUPPORTED("c7s8at3cqmzgv80hgd8tm7wfb"); // fprintf(stderr, "%s: could not open file %s for %s -- %s\n",
413 UNSUPPORTED("56vywxbowmjyd2ssgb5jaawi7"); // progname, name, modestr, strerror(errno));
414 UNSUPPORTED("dtw3cma0ziyha0w534bszl0tx"); // exit(1);
415 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
416 UNSUPPORTED("6x54oh4xeozqrj2isrpofhher"); // return (fp);
417 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
418
419 throw new UnsupportedOperationException();
420 }
421
422
423
424
425 //3 egkkwztfbkxu9vvlc0sm05nxv
426 // static void init(int argc, char *argv[], opts_t * opts)
427 public static Object init(Object... arg) {
428 UNSUPPORTED("elmto38lhyd8ckgkm1qswhosv"); // static void init(int argc, char *argv[], opts_t * opts)
429 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
430 UNSUPPORTED("emc3vdvz7smauda3se70e5ogd"); // int c, cnt;
431 UNSUPPORTED("1pbwdmcrlnqb7teoelyxecqu9"); // char **optList;
432 UNSUPPORTED("87dxsbpdsz45s6w205t6ds10b"); // opts->outf = stdout;
433 UNSUPPORTED("7mpmbqdt8ajbx6itgsay4kr6i"); // opts->outfname = "stdout";
434 UNSUPPORTED("2ah6k3x8emq2o4qkba0zu0zuv"); // progname = argv[0];
435 UNSUPPORTED("63lodtevhv92534zqnwg4wf1t"); // opts->gvc = gvContext();
436 UNSUPPORTED("81tz51f3gan5smiwrvn3h1lt2"); // opts->lay = "dot";
437 UNSUPPORTED("1yiembfofkehuhrorie2b9gsi"); // opts->fmt = "ps";
438 UNSUPPORTED("7oi2c7s5gl8voe3x4yum7jszu"); // opts->force = 0;
439 UNSUPPORTED("60bek3ektewmma3p6pak5x2am"); // while ((c = getopt(argc, argv, "o:vFl:T:V:")) != EOF) {
440 UNSUPPORTED("7rk995hpmaqbbasmi40mqg0yw"); // switch (c) {
441 UNSUPPORTED("c7a78qt1dx3jxjw23fwcmwr3p"); // case 'F':
442 UNSUPPORTED("biextvcnz6zkqlqxgssaqrstl"); // opts->force = 1;
443 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
444 UNSUPPORTED("bwy7mh2nb7lz950r20rfilwa4"); // case 'l':
445 UNSUPPORTED("6pele3rfkd0r1k5r8qzc5vbha"); // optList = gvPluginList(opts->gvc, "layout", &cnt, NULL);
446 UNSUPPORTED("7kfiavaqy7qmfg2hg1e8z80e1"); // if (checkOpt(optarg, optList, cnt))
447 UNSUPPORTED("anmrnwabtq1ijqqr2uop2n1bh"); // opts->lay = optarg;
448 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
449 UNSUPPORTED("4rymfp2u3aj6lx2s6plx3hojv"); // fprintf(stderr, "%s: unknown layout %s\n", progname,
450 UNSUPPORTED("4xhetnmuyh8emewbykj08vroq"); // optarg);
451 UNSUPPORTED("7ujm7da8xuut83e2rygja0n9d"); // exit(1);
452 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
453 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
454 UNSUPPORTED("2f0a79iza84u7nhurd3n3jjjf"); // case 'T':
455 UNSUPPORTED("9cus1va3ujh87mdys6c9v2z1t"); // optList = gvPluginList(opts->gvc, "device", &cnt, NULL);
456 UNSUPPORTED("7kfiavaqy7qmfg2hg1e8z80e1"); // if (checkOpt(optarg, optList, cnt))
457 UNSUPPORTED("5altfebkbv6f35oj03qk2492n"); // opts->fmt = optarg;
458 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
459 UNSUPPORTED("bzcwn6blrae9inr3p5m09e9d"); // fprintf(stderr, "%s: unknown format %s\n", progname,
460 UNSUPPORTED("4xhetnmuyh8emewbykj08vroq"); // optarg);
461 UNSUPPORTED("7ujm7da8xuut83e2rygja0n9d"); // exit(1);
462 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
463 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
464 UNSUPPORTED("318vlfmcdz9no6i45k86aygon"); // case 'v':
465 UNSUPPORTED("z08wni1aiuv5b8ommxtq10kj"); // Verbose = 1;
466 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
467 UNSUPPORTED("6k6q2a5qrb52v1ue87bbj6dtv"); // case 'V':
468 UNSUPPORTED("3r3fz5bgdw11zenv47obhu5vt"); // Verbose = atoi(optarg);
469 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
470 UNSUPPORTED("2tj3jzqar12mlqrsqiqtnaml4"); // case 'o':
471 UNSUPPORTED("1wx5260eycnikbxaanmopl7b3"); // opts->outf = openFile(optarg, "w");
472 UNSUPPORTED("e167mkpssrx4z8qunrmw8kh1n"); // opts->outfname = optarg;
473 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
474 UNSUPPORTED("1drv0xz8hp34qnf72b4jpprg2"); // default:
475 UNSUPPORTED("22xk7nfw0r35o66cqu5qjubqb"); // usage(progname);
476 UNSUPPORTED("6f1y0d5qfp1r9zpw0r7m6xfb4"); // exit(1);
477 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
478 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
479 UNSUPPORTED("3phw6ctc4ona74z9ww17xjaw3"); // if (optind < argc) {
480 UNSUPPORTED("7hpkub9g5s8almwdoymfuenxh"); // opts->inf = openFile(argv[optind], "r");
481 UNSUPPORTED("3zkn0yg2bqlmxotocssnzhxws"); // opts->infname = argv[optind];
482 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
483 UNSUPPORTED("30pkf9oeg7gpxsywbm5shgg64"); // opts->inf = stdin;
484 UNSUPPORTED("e61j0rmaw1t3upfgqro72rx91"); // opts->infname = "<stdin>";
485 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
486 UNSUPPORTED("ct8h35c783zokfb7wxjbkavha"); // if (!opts->outf) {
487 UNSUPPORTED("2s6g8jva40gbl5p87hy413rg4"); // opts->outf = stdout;
488 UNSUPPORTED("e9nmk5kmlczlng9wz7f4q8gtv"); // opts->outfname = "<stdout>";
489 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
490 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
491
492 throw new UnsupportedOperationException();
493 }
494
495
496
497
498 //3 7i7prctjnltgmsf7dgzmddjg9
499 // int main(int argc, char *argv[])
500 public static Object main(Object... arg) {
501 UNSUPPORTED("8fr3wh1xwllvel0m0nkh09bjl"); // int main(int argc, char *argv[])
502 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
503 UNSUPPORTED("kbo4pgmde2ojznpsie5m4t8h"); // opts_t opts;
504 UNSUPPORTED("db6kkkb1xqkrydzxgyiyxl8ds"); // init(argc, argv, &opts);
505 UNSUPPORTED("dap4chqfn6jjoa6j31f8lngs4"); // doxlabel(&opts);
506 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
507 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
508
509 throw new UnsupportedOperationException();
510 }
511
512
513 }