Debian Codegraph @

src/gen/lib/pathplan/util__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 util__c {
50 //1 baedz5i9est5csw3epz3cv7z
51 // typedef Ppoly_t Ppolyline_t
52
53
54 //1 7pb9zum2n4wlgil34lvh8i0ts
55 // typedef double COORD
56
57
58
59
60 //3 carluwds75s8h206m05m74b3h
61 // Ppoly_t copypoly(Ppoly_t argpoly)
62 public static Object copypoly(Object... arg) {
63 UNSUPPORTED("98pcxyqxy9rpxukga9lzhom1l"); // Ppoly_t copypoly(Ppoly_t argpoly)
64 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
65 UNSUPPORTED("dzef9h5fvxtkk8wkn4kn0edc"); // Ppoly_t rv;
66 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
67 UNSUPPORTED("cd3pkstbs6ds3ufjvrms7zt87"); // rv.pn = argpoly.pn;
68 UNSUPPORTED("7h1rkca2bkbjau89uq44bj6rc"); // rv.ps = malloc(sizeof(Ppoint_t) * argpoly.pn);
69 UNSUPPORTED("bc26n5uxrnb6d5gdge4vsdufw"); // for (i = 0; i < argpoly.pn; i++)
70 UNSUPPORTED("extja5g4z7gbi72cffs9hjfkz"); // rv.ps[i] = argpoly.ps[i];
71 UNSUPPORTED("v7vqc9l7ge2bfdwnw11z7rzi"); // return rv;
72 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
73
74 throw new UnsupportedOperationException();
75 }
76
77
78
79
80 //3 74f2l3kbysoz1jx37ybw786si
81 // void freePath(Ppolyline_t* p)
82 public static Object freePath(Object... arg) {
83 UNSUPPORTED("arisensk81s44uevsoenjkx4k"); // void freePath(Ppolyline_t* p)
84 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
85 UNSUPPORTED("4wfnv6rzlk455oiie96g1328x"); // free(p->ps);
86 UNSUPPORTED("bo0y3vz195pcz24vm46pixpb2"); // free(p);
87 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
88
89 throw new UnsupportedOperationException();
90 }
91
92
93
94
95 //3 b1oegen4vbhrooizaesj0qbc4
96 // void freepoly(Ppoly_t argpoly)
97 public static Object freepoly(Object... arg) {
98 UNSUPPORTED("37smh22suphf2psfo815rvfa5"); // void freepoly(Ppoly_t argpoly)
99 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
100 UNSUPPORTED("evt1iow9xd0lxmcp9o1ystvr4"); // free(argpoly.ps);
101 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
102
103 throw new UnsupportedOperationException();
104 }
105
106
107
108
109 //3 4lkt0le495f2sbojevq677n62
110 // int Ppolybarriers(Ppoly_t ** polys, int npolys, Pedge_t ** barriers, int *n_barriers)
111 public static Object Ppolybarriers(Object... arg) {
112 UNSUPPORTED("6tzncqs5o5i3rjuimqmwkco8c"); // int Ppolybarriers(Ppoly_t ** polys, int npolys, Pedge_t ** barriers,
113 UNSUPPORTED("1ciabmjyrm3si7ov5e2nq2yre"); // int *n_barriers)
114 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
115 UNSUPPORTED("l9iv7kwx0qdqzyzbm9jzmoeh"); // Ppoly_t pp;
116 UNSUPPORTED("ri456px9wye6dag9hjrx9igj"); // int i, j, k, n, b;
117 UNSUPPORTED("3qifo11sfcapaabkt29qxeyf3"); // Pedge_t *bar;
118 UNSUPPORTED("5479ingjjk6qn2seps3k0btka"); // n = 0;
119 UNSUPPORTED("7hu2o6gt6a1x3hz06uqj88mvq"); // for (i = 0; i < npolys; i++)
120 UNSUPPORTED("770fj3pnbv37giif1b0tfjafy"); // n = n + polys[i]->pn;
121 UNSUPPORTED("67tf52l267s83r3u3t4vz2fb3"); // bar = malloc(n * sizeof(Pedge_t));
122 UNSUPPORTED("5bkjzlhrfwudnhdqvgcum89jk"); // b = 0;
123 UNSUPPORTED("409l75vikw9qauilz9d2vztce"); // for (i = 0; i < npolys; i++) {
124 UNSUPPORTED("ct16i4ubqpsg61cvvo21el407"); // pp = *polys[i];
125 UNSUPPORTED("86ht42bn8i5wfk2joxg3g8876"); // for (j = 0; j < pp.pn; j++) {
126 UNSUPPORTED("x1ux3l93pwkw8ri2200m18g7"); // k = j + 1;
127 UNSUPPORTED("e103u6wglmn9dhi7e4a4okoz9"); // if (k >= pp.pn)
128 UNSUPPORTED("c4bsmdfnwwk5rcxfmp596kqdg"); // k = 0;
129 UNSUPPORTED("elv4yjqfsvkrgr9w336r9pnqp"); // bar[b].a = pp.ps[j];
130 UNSUPPORTED("98pws89dkn1po2vhy5by2fbxx"); // bar[b].b = pp.ps[k];
131 UNSUPPORTED("7vp6sv54f23ddwn8k74yzt98"); // b++;
132 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
133 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
134 UNSUPPORTED("d5kgqcba92v9u40uo4kdwuexd"); // assert(b == n);
135 UNSUPPORTED("16w4tlbc3naryaamw0wn6jfip"); // *barriers = bar;
136 UNSUPPORTED("brj70oj6k1scg3kfvjtk13idx"); // *n_barriers = n;
137 UNSUPPORTED("3tcgz4dupb6kw5tdk7n3pca2l"); // return 1;
138 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
139
140 throw new UnsupportedOperationException();
141 }
142
143
144
145
146 //3 ct6tszngugakbl42zkaqrt7p1
147 // void make_polyline(Ppolyline_t line, Ppolyline_t* sline)
148 public static Object make_polyline(Object... arg) {
149 UNSUPPORTED("c01vxogao855zs8fe94tpim9g"); // void
150 UNSUPPORTED("caslgp07xc1rz7m4io9o6y06u"); // make_polyline(Ppolyline_t line, Ppolyline_t* sline)
151 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
152 UNSUPPORTED("69kg050pehcqgm1vozba79nx6"); // static int isz = 0;
153 UNSUPPORTED("4fjyhrgkxtd8bira8nmu5i8b3"); // static Ppoint_t* ispline = 0;
154 UNSUPPORTED("dzpsknrwv8qkqq20hjnjpjn68"); // int i, j;
155 UNSUPPORTED("93m2yes5av2bhu9cbgdvgao05"); // int npts = 4 + 3*(line.pn-2);
156 UNSUPPORTED("c0tj1d84o2ebjy9ke6sgke9m8"); // if (npts > isz) {
157 UNSUPPORTED("av96wgpkd1n2udjlb9h7j3y3y"); // ispline = (ispline? (Ppoint_t*)realloc(ispline,(npts)*sizeof(Ppoint_t)):(Ppoint_t*)malloc((npts)*sizeof(Ppoint_t)));
158 UNSUPPORTED("ehmbnzpsz0najunz7f2xuutcf"); // isz = npts;
159 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
160 UNSUPPORTED("cjbplkbp2r33l9lxd9f4plw8q"); // j = i = 0;
161 UNSUPPORTED("3sl38lopto9lxrp6b54bo2mp9"); // ispline[j+1] = ispline[j] = line.ps[i];
162 UNSUPPORTED("1jxyp8hw11938jx60dm71z97j"); // j += 2;
163 UNSUPPORTED("6xu6l640dwkn7142pwdqqinwh"); // i++;
164 UNSUPPORTED("73ap4ch7ov640gtez9np1qdy"); // for (; i < line.pn-1; i++) {
165 UNSUPPORTED("9mzuffh5epf8o14tph3qhs6bb"); // ispline[j+2] = ispline[j+1] = ispline[j] = line.ps[i];
166 UNSUPPORTED("b6bx299910tris4yhn65it5di"); // j += 3;
167 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
168 UNSUPPORTED("3sl38lopto9lxrp6b54bo2mp9"); // ispline[j+1] = ispline[j] = line.ps[i];
169 UNSUPPORTED("1m0hhl8du9lwz0vqvit6zf4cv"); // sline->pn = npts;
170 UNSUPPORTED("bsi255abbfm738aeiyf2i04u8"); // sline->ps = ispline;
171 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
172
173 throw new UnsupportedOperationException();
174 }
175
176
177 }