Debian Codegraph @

src/gen/lib/pathplan/visibility__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.pathplan;
47 import static smetana.core.Macro.UNSUPPORTED;
48
49 public class visibility__c {
50 //1 baedz5i9est5csw3epz3cv7z
51 // typedef Ppoly_t Ppolyline_t
52
53
54 //1 7pb9zum2n4wlgil34lvh8i0ts
55 // typedef double COORD
56
57
58 //1 e75el5ykqd72ikokwkl7j2epc
59 // typedef COORD **array2
60
61
62
63
64 //3 bsczl8sh39sr9x8mdrdw934gc
65 // static array2 allocArray(int V, int extra)
66 public static Object allocArray(Object... arg) {
67 UNSUPPORTED("2ep0t1ji7dax5248t02u6t7r6"); // static array2 allocArray(int V, int extra)
68 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
69 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
70 UNSUPPORTED("6advqmqfqum2lcm4ln3micrah"); // array2 arr;
71 UNSUPPORTED("37gilvazosxkc28mj73rooar1"); // COORD *p;
72 UNSUPPORTED("8o8ej4mv7ezjz8fiws88yzo9q"); // arr = (COORD **) malloc((V + extra) * sizeof(COORD *));
73 UNSUPPORTED("e510sd0tpqggpavb3qj1c1qxt"); // p = (COORD *) calloc(V * V, sizeof(COORD));
74 UNSUPPORTED("95d7bboanqosxp7ljja94xzf3"); // for (i = 0; i < V; i++) {
75 UNSUPPORTED("cpb0ooq9n5nzvgd12sa7ws9h"); // arr[i] = p;
76 UNSUPPORTED("54buizub47gj1g6rqqp2nuxm"); // p += V;
77 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
78 UNSUPPORTED("dbbu9u15v89j269ghj0n14aj4"); // for (i = V; i < V + extra; i++)
79 UNSUPPORTED("w0dpyxz5clv9ki0kuw7rzfn7"); // arr[i] = (COORD *) 0;
80 UNSUPPORTED("ccsfhshi4ig5z5la1ju1x9cnc"); // return arr;
81 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
82
83 throw new UnsupportedOperationException();
84 }
85
86
87
88
89 //3 dlr6qgzk1zg621iotphi6ibd8
90 // COORD area2(Ppoint_t a, Ppoint_t b, Ppoint_t c)
91 public static Object area2(Object... arg) {
92 UNSUPPORTED("955niwvmnzworzojvwdpapmof"); // COORD area2(Ppoint_t a, Ppoint_t b, Ppoint_t c)
93 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
94 UNSUPPORTED("57vegsifiuko417qaa6szlm9n"); // return ((a.y - b.y) * (c.x - b.x) - (c.y - b.y) * (a.x - b.x));
95 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
96
97 throw new UnsupportedOperationException();
98 }
99
100
101
102
103 //3 vt0jebecnhaqax0chaict0yw
104 // int wind(Ppoint_t a, Ppoint_t b, Ppoint_t c)
105 public static Object wind(Object... arg) {
106 UNSUPPORTED("7zwv4pv8g3dirkozmn0fe34z8"); // int wind(Ppoint_t a, Ppoint_t b, Ppoint_t c)
107 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
108 UNSUPPORTED("4ecssyhacl2ayvt0ote07teaw"); // COORD w;
109 UNSUPPORTED("5wu3j9ks9mimt6j7joxxnq9ia"); // w = ((a.y - b.y) * (c.x - b.x) - (c.y - b.y) * (a.x - b.x));
110 UNSUPPORTED("es8qrkgjbswwyq90zllvcxwnh"); // /* need to allow for small math errors. seen with "gcc -O2 -mcpu=i686 -ffast-math" */
111 UNSUPPORTED("dzqusvkt2ejo97ycithiv2ucf"); // return (w > .0001) ? 1 : ((w < -.0001) ? -1 : 0);
112 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
113
114 throw new UnsupportedOperationException();
115 }
116
117
118
119
120 //3 3zfwfpss5ea581xa4wtms7rxv
121 // int inBetween(Ppoint_t a, Ppoint_t b, Ppoint_t c)
122 public static Object inBetween(Object... arg) {
123 UNSUPPORTED("dnvtojgefs45udqxtt80ifsxm"); // int inBetween(Ppoint_t a, Ppoint_t b, Ppoint_t c)
124 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
125 UNSUPPORTED("9retom1yv4wpdu31f7jsiae8d"); // if (a.x != b.x) /* not vertical */
126 UNSUPPORTED("7bptnkdfcpj5jr3mniv8eq3tl"); // return (((a.x < c.x) && (c.x < b.x))
127 UNSUPPORTED("1v7hun84nlrv6wqpwv4dlqlxu"); // || ((b.x < c.x) && (c.x < a.x)));
128 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
129 UNSUPPORTED("d2izj3dk2mx1gese9uwrde73a"); // return (((a.y < c.y) && (c.y < b.y))
130 UNSUPPORTED("ey5cvegw2q4qz6328omtt2frt"); // || ((b.y < c.y) && (c.y < a.y)));
131 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
132
133 throw new UnsupportedOperationException();
134 }
135
136
137
138
139 //3 79f7jjxrrdgo9l858v24xof7v
140 // int intersect(Ppoint_t a, Ppoint_t b, Ppoint_t c, Ppoint_t d)
141 public static Object intersect(Object... arg) {
142 UNSUPPORTED("roqgz6tihjg6s1lbmr0j6phx"); // int intersect(Ppoint_t a, Ppoint_t b, Ppoint_t c, Ppoint_t d)
143 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
144 UNSUPPORTED("5ak23ep8c08cwpy4ro73kg6a9"); // int a_abc;
145 UNSUPPORTED("pkbc2911eqdxi3q3oig9iggz"); // int a_abd;
146 UNSUPPORTED("3x6q0p7p8vp6n3xuz68aqyi2z"); // int a_cda;
147 UNSUPPORTED("2nckaq0hwjy642bs8wytfrvzc"); // int a_cdb;
148 UNSUPPORTED("dh0rdktbccsux65trza0p1ex0"); // a_abc = wind(a, b, c);
149 UNSUPPORTED("8rg4ptpwwdazrael76ersibnj"); // if ((a_abc == 0) && inBetween(a, b, c)) {
150 UNSUPPORTED("eleqpc2p2r3hvma6tipoy7tr"); // return 1;
151 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
152 UNSUPPORTED("65kyqogr1qwpdj4vzqhqdovjx"); // a_abd = wind(a, b, d);
153 UNSUPPORTED("f2bfktdr6qjmqrr2o4ngzp8hs"); // if ((a_abd == 0) && inBetween(a, b, d)) {
154 UNSUPPORTED("eleqpc2p2r3hvma6tipoy7tr"); // return 1;
155 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
156 UNSUPPORTED("54toimzvo18mzs7vfnqvnumln"); // a_cda = wind(c, d, a);
157 UNSUPPORTED("7qvzemgdibqwxezutu4es8otb"); // a_cdb = wind(c, d, b);
158 UNSUPPORTED("4cp5ufnxuyvb9bthje52yijlm"); // /* True if c and d are on opposite sides of ab,
159 UNSUPPORTED("4k1c3jig81qg0as8woji48ew9"); // * and a and b are on opposite sides of cd.
160 UNSUPPORTED("795vpnc8yojryr8b46aidsu69"); // */
161 UNSUPPORTED("d581gmneeqsqn2uql7i5toff3"); // return (((a_abc * a_abd) < 0) && ((a_cda * a_cdb) < 0));
162 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
163
164 throw new UnsupportedOperationException();
165 }
166
167
168
169
170 //3 897fne6m7yp6g1skatrohstqd
171 // static int in_cone(Ppoint_t a0, Ppoint_t a1, Ppoint_t a2, Ppoint_t b)
172 public static Object in_cone(Object... arg) {
173 UNSUPPORTED("6k9z11o3eut4ihkvof27ionw4"); // static int in_cone(Ppoint_t a0, Ppoint_t a1, Ppoint_t a2, Ppoint_t b)
174 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
175 UNSUPPORTED("azst6m11c18syon6lwf1d36gq"); // int m = wind(b, a0, a1);
176 UNSUPPORTED("edizv9dcv0vkkp4l4vuw7k97r"); // int p = wind(b, a1, a2);
177 UNSUPPORTED("6b5qii4lexve7f52xqb76yfuj"); // if (wind(a0, a1, a2) > 0)
178 UNSUPPORTED("eav3el0uo07672rpa2kyd0uge"); // return (m >= 0 && p >= 0); /* convex at a */
179 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
180 UNSUPPORTED("21ufwcoiy0fe6t0dog8u1mgyb"); // return (m >= 0 || p >= 0); /* reflex at a */
181 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
182
183 throw new UnsupportedOperationException();
184 }
185
186
187
188
189 //3 bo8ti3cpgvbanj1uzsm9c1bhe
190 // COORD dist2(Ppoint_t a, Ppoint_t b)
191 public static Object dist2(Object... arg) {
192 UNSUPPORTED("blrxs1tia575ecxgyj1t3xyzr"); // COORD dist2(Ppoint_t a, Ppoint_t b)
193 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
194 UNSUPPORTED("p0k98xc3wk6x7in7sehd5dyh"); // COORD delx = a.x - b.x;
195 UNSUPPORTED("bw95b7u6pyi3v7wyz9gln4uus"); // COORD dely = a.y - b.y;
196 UNSUPPORTED("c07ue20s75ggd0htt7g0ow5sh"); // return (delx * delx + dely * dely);
197 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
198
199 throw new UnsupportedOperationException();
200 }
201
202
203
204
205 //3 e6i8sjhx5klba13ifnde18uay
206 // static COORD dist(Ppoint_t a, Ppoint_t b)
207 public static Object dist(Object... arg) {
208 UNSUPPORTED("f3414cvfyz69wnzb7u82byqr6"); // static COORD dist(Ppoint_t a, Ppoint_t b)
209 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
210 UNSUPPORTED("c5c8q1zhigd7yv5pwxe30rbc4"); // return sqrt(dist2(a, b));
211 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
212
213 throw new UnsupportedOperationException();
214 }
215
216
217
218
219 //3 bbuqqywhkghz3a4pmrzvnwat3
220 // static int inCone(int i, int j, Ppoint_t pts[], int nextPt[], int prevPt[])
221 public static Object inCone(Object... arg) {
222 UNSUPPORTED("2m7xwhnvt83bmhre90ibjzp22"); // static int inCone(int i, int j, Ppoint_t pts[], int nextPt[], int prevPt[])
223 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
224 UNSUPPORTED("3nsyz336uzlzhdtn1ifpdpdbw"); // return in_cone(pts[prevPt[i]], pts[i], pts[nextPt[i]], pts[j]);
225 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
226
227 throw new UnsupportedOperationException();
228 }
229
230
231
232
233 //3 9k5g381ss7ta6nb7v37y3oo4x
234 // static int clear(Ppoint_t pti, Ppoint_t ptj, int start, int end, int V, Ppoint_t pts[], int nextPt[], int prevPt[])
235 public static Object clear(Object... arg) {
236 UNSUPPORTED("68m9293lem1wya8xmo8rg6biv"); // static int clear(Ppoint_t pti, Ppoint_t ptj,
237 UNSUPPORTED("8lrao52hd6uwbjl78v0f7a7ec"); // int start, int end,
238 UNSUPPORTED("a8lvklwic5zz27yulrg7ododk"); // int V, Ppoint_t pts[], int nextPt[], int prevPt[])
239 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
240 UNSUPPORTED("b0kisc5bimb4jnz3z1g2yhbqv"); // int k;
241 UNSUPPORTED("9phanu31yb7616q5xjn3fva6x"); // for (k = 0; k < start; k++) {
242 UNSUPPORTED("ye8byugyetsemml5w5sus11k"); // if (intersect((pti),(ptj),(pts[k]),(pts[nextPt[k]])))
243 UNSUPPORTED("6f1138i13x0xz1bf1thxgjgka"); // return 0;
244 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
245 UNSUPPORTED("aey08ei9e4arvxt8hzy83qb9c"); // for (k = end; k < V; k++) {
246 UNSUPPORTED("ye8byugyetsemml5w5sus11k"); // if (intersect((pti),(ptj),(pts[k]),(pts[nextPt[k]])))
247 UNSUPPORTED("6f1138i13x0xz1bf1thxgjgka"); // return 0;
248 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
249 UNSUPPORTED("3tcgz4dupb6kw5tdk7n3pca2l"); // return 1;
250 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
251
252 throw new UnsupportedOperationException();
253 }
254
255
256
257
258 //3 a5f84g6uyajcrmmt06a61ulyi
259 // static void compVis(vconfig_t * conf, int start)
260 public static Object compVis(Object... arg) {
261 UNSUPPORTED("izn0i9pb2n1dmy8hrpd016j1"); // static void compVis(vconfig_t * conf, int start)
262 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
263 UNSUPPORTED("9e683sch2jealt2ckz48v9f0j"); // int V = conf->N;
264 UNSUPPORTED("7d9bin19ief7l7y1pkikvuwiu"); // Ppoint_t *pts = conf->P;
265 UNSUPPORTED("9rljos3iubpdnzm02l6bd6pga"); // int *nextPt = conf->next;
266 UNSUPPORTED("4n11bnl3onnk0hldumoxfi7bx"); // int *prevPt = conf->prev;
267 UNSUPPORTED("e0225hhlmgxnr7acr4j9fr4rj"); // array2 wadj = conf->vis;
268 UNSUPPORTED("edgqyxis5vrh7zvky36d4e9a0"); // int j, i, previ;
269 UNSUPPORTED("bjc6w95h0ns9cjy8h8j9niggy"); // COORD d;
270 UNSUPPORTED("2xpkyvrmw8kb8hkc5g5820ed7"); // for (i = start; i < V; i++) {
271 UNSUPPORTED("4woc2r6ql8s9ni8zc78gafifx"); // /* add edge between i and previ.
272 UNSUPPORTED("aoxujkcbwbq2misfrn7k3d7x8"); // * Note that this works for the cases of polygons of 1 and 2
273 UNSUPPORTED("1uyr4bh9q9mhcn76g13u98kh0"); // * vertices, though needless work is done.
274 UNSUPPORTED("62wb43w2xc6ex6hootjubbx22"); // */
275 UNSUPPORTED("31w2a4xrdim19v0h965b1cr2c"); // previ = prevPt[i];
276 UNSUPPORTED("4bd7y0t2a1w6hs3ohpem3ysgu"); // d = dist(pts[i], pts[previ]);
277 UNSUPPORTED("4otd40ic0u4tos8oseiipjzc9"); // wadj[i][previ] = d;
278 UNSUPPORTED("bib5b7wm3wqhsons82qecl"); // wadj[previ][i] = d;
279 UNSUPPORTED("e85r4voxpd10f2vhaakw43f9m"); // /* Check remaining, earlier vertices */
280 UNSUPPORTED("34wvs6wxg9wroez0cob4eq0yt"); // if (previ == i - 1)
281 UNSUPPORTED("52l667dp9oah6rslc8wjoujp1"); // j = i - 2;
282 UNSUPPORTED("9352ql3e58qs4fzapgjfrms2s"); // else
283 UNSUPPORTED("9k7vxyf71hfmr8jfddpfd90fg"); // j = i - 1;
284 UNSUPPORTED("86i8ouw8og1peosqts789zl36"); // for (; j >= 0; j--) {
285 UNSUPPORTED("axb1scf1zch83hijq76uhgavw"); // if (inCone(i, j, pts, nextPt, prevPt) &&
286 UNSUPPORTED("f53u8xtqvo7t5kx42e92w686r"); // inCone(j, i, pts, nextPt, prevPt) &&
287 UNSUPPORTED("1g3bn9manlh9eb34pxq0uzz8t"); // clear(pts[i], pts[j], V, V, V, pts, nextPt, prevPt)) {
288 UNSUPPORTED("5qsnuuk4fv4fooabczbbd9ahx"); // /* if i and j see each other, add edge */
289 UNSUPPORTED("9fadh88q86g90beilv0kqxmaa"); // d = dist(pts[i], pts[j]);
290 UNSUPPORTED("6ut8yosujth8pmmzsvs0rbn4r"); // wadj[i][j] = d;
291 UNSUPPORTED("dm7renktz4js1qpo4fxfpjv96"); // wadj[j][i] = d;
292 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
293 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
294 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
295 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
296
297 throw new UnsupportedOperationException();
298 }
299
300
301
302
303 //3 afx2tbncgy8wtrk8wrpvt8c7v
304 // void visibility(vconfig_t * conf)
305 public static Object visibility(Object... arg) {
306 UNSUPPORTED("25e0cmz7nmahqmmpcvbvi3kbv"); // void visibility(vconfig_t * conf)
307 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
308 UNSUPPORTED("80p1p77b7wohnw2r3v9cilgja"); // conf->vis = allocArray(conf->N, 2);
309 UNSUPPORTED("cocdypij6tuxqzgtmgw0ffdyi"); // compVis(conf, 0);
310 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
311
312 throw new UnsupportedOperationException();
313 }
314
315
316
317
318 //3 f53btxccmpw07qdajkgza16dq
319 // static int polyhit(vconfig_t * conf, Ppoint_t p)
320 public static Object polyhit(Object... arg) {
321 UNSUPPORTED("3jhqkjkjkqnmtf4w0yu1vcgkm"); // static int polyhit(vconfig_t * conf, Ppoint_t p)
322 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
323 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
324 UNSUPPORTED("4a012clawvd7u5m72juylqzoa"); // Ppoly_t poly;
325 UNSUPPORTED("bdsnknxap30wvari7ivffhs3m"); // for (i = 0; i < conf->Npoly; i++) {
326 UNSUPPORTED("ey7hd6wdy31mr7tdmlijqjq0n"); // poly.ps = &(conf->P[conf->start[i]]);
327 UNSUPPORTED("3qtnbizhz0j64zuzkh3tthe1h"); // poly.pn = conf->start[i + 1] - conf->start[i];
328 UNSUPPORTED("5mttoot38d7jpevufudmwxewd"); // if (in_poly(poly, p))
329 UNSUPPORTED("8wtxouhhluawfic81s58qdk0e"); // return i;
330 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
331 UNSUPPORTED("b8wqo20wej72k4fwead61jun4"); // return -1111;
332 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
333
334 throw new UnsupportedOperationException();
335 }
336
337
338
339
340 //3 2yvo05bz8qq8rrhli2rlonyix
341 // COORD *ptVis(vconfig_t * conf, int pp, Ppoint_t p)
342 public static Object ptVis(Object... arg) {
343 UNSUPPORTED("d58fb5rw4i15qcu5i6zi8562u"); // COORD *ptVis(vconfig_t * conf, int pp, Ppoint_t p)
344 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
345 UNSUPPORTED("9e683sch2jealt2ckz48v9f0j"); // int V = conf->N;
346 UNSUPPORTED("7d9bin19ief7l7y1pkikvuwiu"); // Ppoint_t *pts = conf->P;
347 UNSUPPORTED("9rljos3iubpdnzm02l6bd6pga"); // int *nextPt = conf->next;
348 UNSUPPORTED("4n11bnl3onnk0hldumoxfi7bx"); // int *prevPt = conf->prev;
349 UNSUPPORTED("b0kisc5bimb4jnz3z1g2yhbqv"); // int k;
350 UNSUPPORTED("aa6b5n017in5orglen9ktgs9a"); // int start, end;
351 UNSUPPORTED("ib3s5dce6s963vo6b8ltvstb"); // COORD *vadj;
352 UNSUPPORTED("99q4ws63ls29yvcb513my0kp3"); // Ppoint_t pk;
353 UNSUPPORTED("bjc6w95h0ns9cjy8h8j9niggy"); // COORD d;
354 UNSUPPORTED("amrnq8h2txtlsnydbwpxx8p9e"); // vadj = (COORD *) malloc((V + 2) * sizeof(COORD));
355 UNSUPPORTED("1xmg38dmhrjwt80u0hb882akq"); // if (pp == -2222)
356 UNSUPPORTED("67gimzlcd9mmh55z0uwgo1svm"); // pp = polyhit(conf, p);
357 UNSUPPORTED("fcadmwema5f9zw0pun57mr61"); // if (pp >= 0) {
358 UNSUPPORTED("6rdfhzubd1dzowvcgtvu07skw"); // start = conf->start[pp];
359 UNSUPPORTED("qr28k5sqgz293v061p9lh7mw"); // end = conf->start[pp + 1];
360 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
361 UNSUPPORTED("4k2lbbhod6d50bie3p0ovngng"); // start = V;
362 UNSUPPORTED("6p0gh50lvtsw3epczfbncrrzh"); // end = V;
363 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
364 UNSUPPORTED("9phanu31yb7616q5xjn3fva6x"); // for (k = 0; k < start; k++) {
365 UNSUPPORTED("685xi4ztalqspw63iho1ijb2a"); // pk = pts[k];
366 UNSUPPORTED("ej65d6v3kqqc41pf2amjx9u8o"); // if (in_cone(pts[prevPt[k]], pk, pts[nextPt[k]], p) &&
367 UNSUPPORTED("45whycl2s4k3gm8ltb52iawfc"); // clear(p, pk, start, end, V, pts, nextPt, prevPt)) {
368 UNSUPPORTED("204lwnssk9azp929idzzmu2oh"); // /* if p and pk see each other, add edge */
369 UNSUPPORTED("2y5618jurnxt2bnwydutfzwr4"); // d = dist(p, pk);
370 UNSUPPORTED("d97qa8dblreww61gxggrpddq9"); // vadj[k] = d;
371 UNSUPPORTED("6to1esmb8qfrhzgtr7jdqleja"); // } else
372 UNSUPPORTED("w27fuo0npg13jbsblev28cke"); // vadj[k] = 0;
373 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
374 UNSUPPORTED("3aiu3msz4kw0sitr3eu403460"); // for (k = start; k < end; k++)
375 UNSUPPORTED("ecdly7fjptzn9hbgscfv42v5f"); // vadj[k] = 0;
376 UNSUPPORTED("aey08ei9e4arvxt8hzy83qb9c"); // for (k = end; k < V; k++) {
377 UNSUPPORTED("685xi4ztalqspw63iho1ijb2a"); // pk = pts[k];
378 UNSUPPORTED("ej65d6v3kqqc41pf2amjx9u8o"); // if (in_cone(pts[prevPt[k]], pk, pts[nextPt[k]], p) &&
379 UNSUPPORTED("45whycl2s4k3gm8ltb52iawfc"); // clear(p, pk, start, end, V, pts, nextPt, prevPt)) {
380 UNSUPPORTED("204lwnssk9azp929idzzmu2oh"); // /* if p and pk see each other, add edge */
381 UNSUPPORTED("2y5618jurnxt2bnwydutfzwr4"); // d = dist(p, pk);
382 UNSUPPORTED("d97qa8dblreww61gxggrpddq9"); // vadj[k] = d;
383 UNSUPPORTED("6to1esmb8qfrhzgtr7jdqleja"); // } else
384 UNSUPPORTED("w27fuo0npg13jbsblev28cke"); // vadj[k] = 0;
385 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
386 UNSUPPORTED("6udsra1z6g208yb80gqshsz7i"); // vadj[V] = 0;
387 UNSUPPORTED("6cyoyzpz6109ngfp8zw4x3ign"); // vadj[V + 1] = 0;
388 UNSUPPORTED("euzt74fd0hlgexbbuks72111"); // return vadj;
389 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
390
391 throw new UnsupportedOperationException();
392 }
393
394
395
396
397 //3 euo3asq18kkzr6xpldh1whj5j
398 // int directVis(Ppoint_t p, int pp, Ppoint_t q, int qp, vconfig_t * conf)
399 public static Object directVis(Object... arg) {
400 UNSUPPORTED("6vkegkahwe6v9zxmpo9y849de"); // int directVis(Ppoint_t p, int pp, Ppoint_t q, int qp, vconfig_t * conf)
401 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
402 UNSUPPORTED("9e683sch2jealt2ckz48v9f0j"); // int V = conf->N;
403 UNSUPPORTED("7d9bin19ief7l7y1pkikvuwiu"); // Ppoint_t *pts = conf->P;
404 UNSUPPORTED("9rljos3iubpdnzm02l6bd6pga"); // int *nextPt = conf->next;
405 UNSUPPORTED("cn01t5vyidv9t9jp5k1ebvqnf"); // /* int* prevPt = conf->prev; */
406 UNSUPPORTED("b0kisc5bimb4jnz3z1g2yhbqv"); // int k;
407 UNSUPPORTED("5jthc5ipz7t03l29ayjuyuwss"); // int s1, e1;
408 UNSUPPORTED("ewn7imvjy270ybgfwapp0tq42"); // int s2, e2;
409 UNSUPPORTED("7s1xhwbtcl4cfff6w7bovcx4p"); // if (pp < 0) {
410 UNSUPPORTED("8kwihfze04zickxvmduqyz9oz"); // s1 = 0;
411 UNSUPPORTED("d9lzfcaqs050pvd6f6sn4ybfd"); // e1 = 0;
412 UNSUPPORTED("bx8ug7ayoxr9yyklnxyk820fn"); // if (qp < 0) {
413 UNSUPPORTED("bz1de6hpp200ljwdvpkd5u3gn"); // s2 = 0;
414 UNSUPPORTED("at1mpgp51u974mlhndrczv2lo"); // e2 = 0;
415 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
416 UNSUPPORTED("1w3zcz5sbss50hne5vn9c54uf"); // s2 = conf->start[qp];
417 UNSUPPORTED("5aiw8tbtx5x4c6d90lqekac0k"); // e2 = conf->start[qp + 1];
418 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
419 UNSUPPORTED("91fgea3cg2flt7f19hu4m9f3k"); // } else if (qp < 0) {
420 UNSUPPORTED("8kwihfze04zickxvmduqyz9oz"); // s1 = 0;
421 UNSUPPORTED("d9lzfcaqs050pvd6f6sn4ybfd"); // e1 = 0;
422 UNSUPPORTED("c7jjeiyrdte7kaqrcqi78tb6j"); // s2 = conf->start[pp];
423 UNSUPPORTED("181206xgdu45tknm5eoc7vy7p"); // e2 = conf->start[pp + 1];
424 UNSUPPORTED("1vsb0sn9g2id7jgf818wp2h61"); // } else if (pp <= qp) {
425 UNSUPPORTED("2jpazbnst1z69liefzlp7x6k5"); // s1 = conf->start[pp];
426 UNSUPPORTED("birxkvbxsgsetxfbpuugteqbx"); // e1 = conf->start[pp + 1];
427 UNSUPPORTED("2lmk984g1rwi6bvyc4aqlzovj"); // s2 = conf->start[qp];
428 UNSUPPORTED("9sx0re3e6x3m54pfxrbuk571d"); // e2 = conf->start[qp + 1];
429 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
430 UNSUPPORTED("dun18brbfd255gv2nfo9sog80"); // s1 = conf->start[qp];
431 UNSUPPORTED("c1zf66qllk0cm9c4q3cjv9f3r"); // e1 = conf->start[qp + 1];
432 UNSUPPORTED("c7jjeiyrdte7kaqrcqi78tb6j"); // s2 = conf->start[pp];
433 UNSUPPORTED("181206xgdu45tknm5eoc7vy7p"); // e2 = conf->start[pp + 1];
434 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
435 UNSUPPORTED("f28p3ogo8j178cx69vueppwjb"); // for (k = 0; k < s1; k++) {
436 UNSUPPORTED("an3a9zyfv6sgx5bn13egxyjbb"); // if (intersect((p),(q),(pts[k]),(pts[nextPt[k]])))
437 UNSUPPORTED("6f1138i13x0xz1bf1thxgjgka"); // return 0;
438 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
439 UNSUPPORTED("ecib0ib1qhu5qbad78mhypnbs"); // for (k = e1; k < s2; k++) {
440 UNSUPPORTED("an3a9zyfv6sgx5bn13egxyjbb"); // if (intersect((p),(q),(pts[k]),(pts[nextPt[k]])))
441 UNSUPPORTED("6f1138i13x0xz1bf1thxgjgka"); // return 0;
442 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
443 UNSUPPORTED("dawiv8sbk7c60uo6bv5kesrag"); // for (k = e2; k < V; k++) {
444 UNSUPPORTED("an3a9zyfv6sgx5bn13egxyjbb"); // if (intersect((p),(q),(pts[k]),(pts[nextPt[k]])))
445 UNSUPPORTED("6f1138i13x0xz1bf1thxgjgka"); // return 0;
446 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
447 UNSUPPORTED("3tcgz4dupb6kw5tdk7n3pca2l"); // return 1;
448 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
449
450 throw new UnsupportedOperationException();
451 }
452
453
454 }