Debian Codegraph @

src/gen/lib/cdt/dttreeset__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 dttreeset__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 wsyenh3pav82eqg8t6irqmpa
117 // static Dtlink_t* treebalance(Dtlink_t* list, int size)
118 public static Object treebalance(Object... arg) {
119 UNSUPPORTED("9upl561wy34u2kgottk3knhw7"); // static Dtlink_t* treebalance(Dtlink_t* list, int size)
120 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
121 UNSUPPORTED("e3svy3s8lap0wa9dpy4q3ppie"); // int n;
122 UNSUPPORTED("4euymk8i174zc1zk143wb5qlq"); // Dtlink_t *l, *mid;
123 UNSUPPORTED("8hf6osd37j483sgahmda5xn1j"); // if(size <= 2)
124 UNSUPPORTED("4fl66qhxrdfm7i88fvwjalk6v"); // return list;
125 UNSUPPORTED("7cjc57w4211pyb7xn4u5mv2p3"); // for(l = list, n = size/2 - 1; n > 0; n -= 1)
126 UNSUPPORTED("dcdhqqjy6kk46tsxs923vyy6k"); // l = l->right;
127 UNSUPPORTED("y7f7c2k7x27uc6ph132zknhi"); // mid = l->right; l->right = ((Dtlink_t*)0);
128 UNSUPPORTED("6z99uyzu8i3gvzeo5lrxnw4vo"); // mid->hl._left = treebalance(list, (n = size/2) );
129 UNSUPPORTED("7pvd4214bcxozaimgklaq3qif"); // mid->right = treebalance(mid->right, size - (n + 1));
130 UNSUPPORTED("7zdak9tmoe5cam875dr3zz3wn"); // return mid;
131 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
132
133 throw new UnsupportedOperationException();
134 }
135
136
137
138
139 //3 7iha6xdoo376u861k6wv8c5pr
140 // int dttreeset(Dt_t* dt, int minp, int balance)
141 public static Object dttreeset(Object... arg) {
142 UNSUPPORTED("3t7ugtrfg37d90rb22ee962hg"); // int dttreeset(Dt_t* dt, int minp, int balance)
143 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
144 UNSUPPORTED("dtghok0zzu4g8fnpx91sx0xav"); // int size;
145 UNSUPPORTED("4mt1ak6xs18a3xe6dccf6hf3m"); // if(dt->meth->type != 0000004)
146 UNSUPPORTED("b0epxudfxjm8kichhaautm2qi"); // return -1;
147 UNSUPPORTED("e1eh9pmpa4fopxse0olzgtcum"); // size = dtsize(dt);
148 UNSUPPORTED("aafwg5rqya20bgn3vhz3t2iqb"); // if(minp < 0)
149 UNSUPPORTED("9ox4x4zosos0jeacd6v18u8ak"); // { for(minp = 0; minp < (sizeof(size_t)*8 - 2); ++minp)
150 UNSUPPORTED("4a30x5e8menohy668n1iozj52"); // if((1 << minp) >= size)
151 UNSUPPORTED("1dhrv6aj5eq8ntuvb7qbs8aot"); // break;
152 UNSUPPORTED("7v4oowgea39cogwcgkt7np8iv"); // if(minp <= (sizeof(size_t)*8 - 2)-4) /* use log(size) + 4 */
153 UNSUPPORTED("aahg7tgohnhh704ric6b2h83i"); // minp += 4;
154 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
155 UNSUPPORTED("80ideyp40y4dgch5lhho631ig"); // if((dt->data->minp = minp + (minp%2)) > (sizeof(size_t)*8 - 2))
156 UNSUPPORTED("c19ehve53a2rtc95cfpgwc2ua"); // dt->data->minp = (sizeof(size_t)*8 - 2);
157 UNSUPPORTED("s52ssf9x1ga1f1e63jhd0caj"); // if(balance)
158 UNSUPPORTED("3nozetyxtt4d04pcxdwbatake"); // dt->data->here = treebalance(dtflatten(dt), size);
159 UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0;
160 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
161
162 throw new UnsupportedOperationException();
163 }
164
165
166 }