Debian Codegraph @

src/gen/lib/cdt/dtstat__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.cdt;
47 import static smetana.core.Macro.UNSUPPORTED;
48
49 public class dtstat__c {
50 //1 9k44uhd5foylaeoekf3llonjq
51 // extern Dtmethod_t* Dtset
52
53
54 //1 1ahfywsmzcpcig2oxm7pt9ihj
55 // extern Dtmethod_t* Dtbag
56
57
58 //1 anhghfj3k7dmkudy2n7rvt31v
59 // extern Dtmethod_t* Dtoset
60
61
62 //1 5l6oj1ux946zjwvir94ykejbc
63 // extern Dtmethod_t* Dtobag
64
65
66 //1 2wtf222ak6cui8cfjnw6w377z
67 // extern Dtmethod_t* Dtlist
68
69
70 //1 d1s1s6ibtcsmst88e3057u9r7
71 // extern Dtmethod_t* Dtstack
72
73
74 //1 axa7mflo824p6fspjn1rdk0mt
75 // extern Dtmethod_t* Dtqueue
76
77
78 //1 ega812utobm4xx9oa9w9ayij6
79 // extern Dtmethod_t* Dtdeque
80
81
82 //1 cyfr996ur43045jv1tjbelzmj
83 // extern Dtmethod_t* Dtorder
84
85
86 //1 wlofoiftbjgrrabzb2brkycg
87 // extern Dtmethod_t* Dttree
88
89
90 //1 12bds94t7voj7ulwpcvgf6agr
91 // extern Dtmethod_t* Dthash
92
93
94 //1 9lqknzty480cy7zsubmabkk8h
95 // extern Dtmethod_t _Dttree
96
97
98 //1 bvn6zkbcp8vjdhkccqo1xrkrb
99 // extern Dtmethod_t _Dthash
100
101
102 //1 9lidhtd6nsmmv3e7vjv9e10gw
103 // extern Dtmethod_t _Dtlist
104
105
106 //1 34ujfamjxo7xn89u90oh2k6f8
107 // extern Dtmethod_t _Dtqueue
108
109
110 //1 3jy4aceckzkdv950h89p4wjc8
111 // extern Dtmethod_t _Dtstack
112
113
114
115
116 //3 91c7rdavgvzhuigvve5ibdpn0
117 // static void dttstat(Dtstat_t* ds, Dtlink_t* root, int depth, int* level)
118 public static Object dttstat(Object... arg) {
119 UNSUPPORTED("96759a5l0ygg0om48m2a6t0ng"); // static void dttstat(Dtstat_t* ds, Dtlink_t* root, int depth, int* level)
120 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
121 UNSUPPORTED("56ka5rmkoppf3hruu8g6m0xja"); // if(root->hl._left)
122 UNSUPPORTED("cid9xp3s0qj3aabaka0l9zv7t"); // dttstat(ds,root->hl._left,depth+1,level);
123 UNSUPPORTED("9s9ahe7p2w6fq5emj7g8wbjfr"); // if(root->right)
124 UNSUPPORTED("87cqywe08opun9vcdypm5sngz"); // dttstat(ds,root->right,depth+1,level);
125 UNSUPPORTED("1cpnp52f4qqoepwe6x0k1xfba"); // if(depth > ds->dt_n)
126 UNSUPPORTED("7ufge640ert57jo7j225ab7pe"); // ds->dt_n = depth;
127 UNSUPPORTED("3pj5kfo9kjuutf0og8g2j8geg"); // if(level)
128 UNSUPPORTED("9gine8rpyhyyk5yrtmvl56o2p"); // level[depth] += 1;
129 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
130
131 throw new UnsupportedOperationException();
132 }
133
134
135
136
137 //3 a8o5okh4tw99gnboco3s2dmxd
138 // static void dthstat(register Dtdata_t* data, Dtstat_t* ds, register int* count)
139 public static Object dthstat(Object... arg) {
140 UNSUPPORTED("48ylybwp2yevlr561pyv3jui"); // static void dthstat(register Dtdata_t* data, Dtstat_t* ds, register int* count)
141 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
142 UNSUPPORTED("bqowb8dyq0iy0kow4ic3v69rm"); // register Dtlink_t* t;
143 UNSUPPORTED("1kv2h7mwh5yurbekfwfiewdhy"); // register int n, h;
144 UNSUPPORTED("286ioif0j041zmjzncvg5xoll"); // for(h = data->ntab-1; h >= 0; --h)
145 UNSUPPORTED("3q5ha8vx2tajjl4ufu2w0no4p"); // { n = 0;
146 UNSUPPORTED("csnxwylxkitnmc1zga3njlqgd"); // for(t = data->hh._htab[h]; t; t = t->right)
147 UNSUPPORTED("90p2oslbn5buyc5k0tkflj50d"); // n += 1;
148 UNSUPPORTED("1pfuj1amofbpxyeubend5yxr5"); // if(count)
149 UNSUPPORTED("5nwitx1rnfie4jd6ny8ssadzg"); // count[n] += 1;
150 UNSUPPORTED("3w8in45yqqsl7kb6o0suodbq0"); // else if(n > 0)
151 UNSUPPORTED("ck4u5h04gsnndyuthxg9kuixs"); // { ds->dt_n += 1;
152 UNSUPPORTED("487tl3ivbjnaxewh91pw7xeuh"); // if(n > ds->dt_max)
153 UNSUPPORTED("arga2k65qq28lxquyhcmmii6p"); // ds->dt_max = n;
154 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
155 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
156 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
157
158 throw new UnsupportedOperationException();
159 }
160
161
162
163
164 //3 1kbkj84h5jc45cmi7lzd45dp
165 // int dtstat(register Dt_t* dt, Dtstat_t* ds, int all)
166 public static Object dtstat(Object... arg) {
167 UNSUPPORTED("ao2i3bpekp72m9gi7y5ckz4rk"); // int dtstat(register Dt_t* dt, Dtstat_t* ds, int all)
168 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
169 UNSUPPORTED("44m1eek6bje0mjqjlsecsorod"); // register int i;
170 UNSUPPORTED("26pvlo4hyfclsuk4h43qetsjw"); // static int *Count, Size;
171 UNSUPPORTED("ckjxpmega2z5oju8xk72wsy0q"); // ((dt->data->type&010000) ? dtrestore(dt,((Dtlink_t*)0)) : 0);
172 UNSUPPORTED("ec11eijzw85083qye8hp5eex0"); // ds->dt_n = ds->dt_max = 0;
173 UNSUPPORTED("3tdmcypiwfwu1pn4i6zzf500z"); // ds->dt_count = ((int*)0);
174 UNSUPPORTED("azymim1m9qe68uhp1mftu7fe1"); // ds->dt_size = dtsize(dt);
175 UNSUPPORTED("av3q24lmuasi6ojxa3wldv6ta"); // ds->dt_meth = dt->data->type&0000377;
176 UNSUPPORTED("7wb0sc472yga8vixhnog657ny"); // if(!all)
177 UNSUPPORTED("5izxoao5ryte71964f8yjfd5y"); // return 0;
178 UNSUPPORTED("32ow9kmsxf47y1h17vyj3ef11"); // if(dt->data->type&(0000001|0000002))
179 UNSUPPORTED("3h1ytwsfcbphbuuhvj29vqlpn"); // { dthstat(dt->data,ds,((int*)0));
180 UNSUPPORTED("cg0ykqnfk3ou03i5e9ykd3m5n"); // if(ds->dt_max+1 > Size)
181 UNSUPPORTED("4ebwk82nv6oujn3zi64gvqqr7"); // { if(Size > 0)
182 UNSUPPORTED("4dxxr85kxn2tyyzxi82w0iqak"); // free(Count);
183 UNSUPPORTED("3a6ksysaw3s4hfdjvet2q2qxc"); // if(!(Count = (int*)malloc((ds->dt_max+1)*sizeof(int))) )
184 UNSUPPORTED("6pxdbvdu6loxn1ex6nm9i93gb"); // return -1;
185 UNSUPPORTED("13xjtjclxu8ornn37l48jz2rv"); // Size = ds->dt_max+1;
186 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
187 UNSUPPORTED("36u41cy59sloyiha209o4m5qy"); // for(i = ds->dt_max; i >= 0; --i)
188 UNSUPPORTED("8aibp56k7f0yagfchektytbwy"); // Count[i] = 0;
189 UNSUPPORTED("b5vi0pdbdr81ex0fk7lepptgm"); // dthstat(dt->data,ds,Count);
190 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
191 UNSUPPORTED("av63gjdiqp6xi9w4vjwqpn5oo"); // else if(dt->data->type&(0000004|0000010))
192 UNSUPPORTED("bld1jk0owgrtf4hcqqhwoccpy"); // { if(dt->data->here)
193 UNSUPPORTED("31bytekoo4eleuggsetk4m6de"); // { dttstat(ds,dt->data->here,0,((int*)0));
194 UNSUPPORTED("7hz6680zzj4qr9s3dm6v435sk"); // if(ds->dt_n+1 > Size)
195 UNSUPPORTED("aq4shezrsmlv37xas7p8ho5sg"); // { if(Size > 0)
196 UNSUPPORTED("3y929awdu2jrmw3aer6dqygxb"); // free(Count);
197 UNSUPPORTED("ex3430euevoine0wgb82be0rc"); // if(!(Count = (int*)malloc((ds->dt_n+1)*sizeof(int))) )
198 UNSUPPORTED("9qiuahtnvh744qet6fj8wk596"); // return -1;
199 UNSUPPORTED("e80mtvhrb447fuzvxw7tmlk79"); // Size = ds->dt_n+1;
200 UNSUPPORTED("3to5h0rvqxdeqs38mhv47mm3o"); // }
201 UNSUPPORTED("ce7lqmqeaeqmtpznl57wppd5n"); // for(i = ds->dt_n; i >= 0; --i)
202 UNSUPPORTED("6j9e4nc2e8eecvywkpfm2ut9m"); // Count[i] = 0;
203 UNSUPPORTED("7vm7v7g848394ourjpirftcq7"); // dttstat(ds,dt->data->here,0,Count);
204 UNSUPPORTED("ce7lqmqeaeqmtpznl57wppd5n"); // for(i = ds->dt_n; i >= 0; --i)
205 UNSUPPORTED("2t8ajn7ynd4ll8m6rug9gxbsx"); // if(Count[i] > ds->dt_max)
206 UNSUPPORTED("8d36wfd4xwyzw0stap7i7dv8y"); // ds->dt_max = Count[i];
207 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
208 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
209 UNSUPPORTED("cdj1cmsf0q45eayjhj4n0zpsn"); // ds->dt_count = Count;
210 UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0;
211 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
212
213 throw new UnsupportedOperationException();
214 }
215
216
217 }