| 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.cgraph; |
| 47 | import static smetana.core.Macro.UNSUPPORTED; |
| 48 | |
| 49 | public class flatten__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 | //1 8dfqgf3u1v830qzcjqh9o8ha7 |
| 115 | // extern Agmemdisc_t AgMemDisc |
| 116 | |
| 117 | |
| 118 | //1 18k2oh2t6llfsdc5x0wlcnby8 |
| 119 | // extern Agiddisc_t AgIdDisc |
| 120 | |
| 121 | |
| 122 | //1 a4r7hi80gdxtsv4hdoqpyiivn |
| 123 | // extern Agiodisc_t AgIoDisc |
| 124 | |
| 125 | |
| 126 | //1 bnzt5syjb7mgeru19114vd6xx |
| 127 | // extern Agdisc_t AgDefaultDisc |
| 128 | |
| 129 | |
| 130 | //1 35y2gbegsdjilegaribes00mg |
| 131 | // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected |
| 132 | |
| 133 | |
| 134 | //1 c2rygslq6bcuka3awmvy2b3ow |
| 135 | // typedef Agsubnode_t Agnoderef_t |
| 136 | |
| 137 | |
| 138 | //1 xam6yv0dcsx57dtg44igpbzn |
| 139 | // typedef Dtlink_t Agedgeref_t |
| 140 | |
| 141 | |
| 142 | //1 6ayavpu39aihwyojkx093pcy3 |
| 143 | // extern Agraph_t *Ag_G_global |
| 144 | |
| 145 | |
| 146 | //1 871mxtg9l6ffpxdl9kniwusf7 |
| 147 | // extern char *AgDataRecName |
| 148 | |
| 149 | |
| 150 | //1 c0o2kmml0tn6hftuwo0u4shwd |
| 151 | // extern Dtdisc_t Ag_subnode_id_disc |
| 152 | |
| 153 | |
| 154 | //1 8k15pyu256unm2kpd9zf5pf7k |
| 155 | // extern Dtdisc_t Ag_subnode_seq_disc |
| 156 | |
| 157 | |
| 158 | //1 e3d820y06gpeusn6atgmj8bzd |
| 159 | // extern Dtdisc_t Ag_mainedge_id_disc |
| 160 | |
| 161 | |
| 162 | //1 cbr0772spix9h1aw7h5v7dv9j |
| 163 | // extern Dtdisc_t Ag_subedge_id_disc |
| 164 | |
| 165 | |
| 166 | //1 akd0c3v0j7m2npxcb9acit1fa |
| 167 | // extern Dtdisc_t Ag_mainedge_seq_disc |
| 168 | |
| 169 | |
| 170 | //1 12d8la07351ww7vwfzucjst8m |
| 171 | // extern Dtdisc_t Ag_subedge_seq_disc |
| 172 | |
| 173 | |
| 174 | //1 29eokk7v88e62g8o6lizmo967 |
| 175 | // extern Dtdisc_t Ag_subgraph_id_disc |
| 176 | |
| 177 | |
| 178 | //1 4xd9cbgy6hk5g6nhjcbpzkx14 |
| 179 | // extern Agcbdisc_t AgAttrdisc |
| 180 | |
| 181 | |
| 182 | |
| 183 | |
| 184 | //3 69ucljsqnzi8rzbvuqpjp4hfx |
| 185 | // static void agflatten_elist(Dict_t * d, Dtlink_t ** lptr, int flag) |
| 186 | public static Object agflatten_elist(Object... arg) { |
| 187 | UNSUPPORTED("bpx3af0xjz85367rnoh2ipdrn"); // static void agflatten_elist(Dict_t * d, Dtlink_t ** lptr, int flag) |
| 188 | UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { |
| 189 | UNSUPPORTED("4ksyblegh2kh8j0mzdddj80zr"); // dtrestore(d, *lptr); |
| 190 | UNSUPPORTED("ctwl7b6yxhzl4sj91zup9at33"); // dtmethod(d, flag? Dtlist : Dtoset); |
| 191 | UNSUPPORTED("du4za15ppq4ntkttytf8tpzkk"); // *lptr = dtextract(d); |
| 192 | UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } |
| 193 | |
| 194 | throw new UnsupportedOperationException(); |
| 195 | } |
| 196 | |
| 197 | |
| 198 | |
| 199 | |
| 200 | //3 c4syafe2mgpp13hj8vel7hdwh |
| 201 | // void agflatten_edges(Agraph_t * g, Agnode_t * n, int flag) |
| 202 | public static Object agflatten_edges(Object... arg) { |
| 203 | UNSUPPORTED("4ttg1k6ryqoueza8gtu0qesmc"); // void agflatten_edges(Agraph_t * g, Agnode_t * n, int flag) |
| 204 | UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { |
| 205 | UNSUPPORTED("2llbfi4jrmre7cyhu90pgcm72"); // Agsubnode_t *sn; |
| 206 | UNSUPPORTED("2g1n9rzdmt5pucspjmto1jwvn"); // Dtlink_t **tmp; |
| 207 | UNSUPPORTED("1wwtmjdvl73j75h8fp92i9yk5"); // sn = agsubrep(g,n); |
| 208 | UNSUPPORTED("cvsy8oi25qamrmokl6dumfc2n"); // tmp = &(sn->out_seq); /* avoiding - "dereferencing type-punned pointer will break strict-aliasing rules" */ |
| 209 | UNSUPPORTED("9robj8jesxzc7bpyw78z8i80l"); // agflatten_elist(g->e_seq, tmp, flag); |
| 210 | UNSUPPORTED("7no705grsz21vady4u118n7tz"); // tmp = &(sn->in_seq); |
| 211 | UNSUPPORTED("9robj8jesxzc7bpyw78z8i80l"); // agflatten_elist(g->e_seq, tmp, flag); |
| 212 | UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } |
| 213 | |
| 214 | throw new UnsupportedOperationException(); |
| 215 | } |
| 216 | |
| 217 | |
| 218 | |
| 219 | |
| 220 | //3 aswf367vm4ypgb50vecx6oy0e |
| 221 | // void agflatten(Agraph_t * g, int flag) |
| 222 | public static Object agflatten(Object... arg) { |
| 223 | UNSUPPORTED("epc3qpwcrvpagpod79vqkiktz"); // void agflatten(Agraph_t * g, int flag) |
| 224 | UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { |
| 225 | UNSUPPORTED("2jcii9cclu1dijzqekzc175pe"); // Agnode_t *n; |
| 226 | UNSUPPORTED("6cb8mzhjyrkhua0olueodre85"); // if (flag) { |
| 227 | UNSUPPORTED("3kgshdurj1k3861cmk0j6459q"); // if (g->desc.flatlock == (0)) { |
| 228 | UNSUPPORTED("biacx609ekjlj7vzv20kr0twk"); // dtmethod(g->n_seq,Dtlist); |
| 229 | UNSUPPORTED("feknc9jq0v1n93q583pigog"); // for (n = agfstnode(g); n; n = agnxtnode(g,n)) |
| 230 | UNSUPPORTED("4ufjmlytpm2l2msb8zuxor8s2"); // agflatten_edges(g, n, flag); |
| 231 | UNSUPPORTED("1r4fzaa446otf0jautzt92b4r"); // g->desc.flatlock = (!(0)); |
| 232 | UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // } |
| 233 | UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else { |
| 234 | UNSUPPORTED("bacueyt9l2eudlsl4z5n0t9l7"); // if (g->desc.flatlock) { |
| 235 | UNSUPPORTED("b0wcdyp5hit8sc1jbi4asmalp"); // dtmethod(g->n_seq,Dtoset); |
| 236 | UNSUPPORTED("feknc9jq0v1n93q583pigog"); // for (n = agfstnode(g); n; n = agnxtnode(g,n)) |
| 237 | UNSUPPORTED("4ufjmlytpm2l2msb8zuxor8s2"); // agflatten_edges(g, n, flag); |
| 238 | UNSUPPORTED("1mvsjktpob2pzvo0s5wp5hbl0"); // g->desc.flatlock = (0); |
| 239 | UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // } |
| 240 | UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // } |
| 241 | UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } |
| 242 | |
| 243 | throw new UnsupportedOperationException(); |
| 244 | } |
| 245 | |
| 246 | |
| 247 | |
| 248 | |
| 249 | //3 602i6cqy4kebb7g16m580nxsd |
| 250 | // void agnotflat(Agraph_t * g) |
| 251 | public static Object agnotflat(Object... arg) { |
| 252 | UNSUPPORTED("cu099fjwopup8fb0dz3ob3yui"); // void agnotflat(Agraph_t * g) |
| 253 | UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { |
| 254 | UNSUPPORTED("1whie4ln05zs17jprvbhgrw0o"); // if (g->desc.flatlock) |
| 255 | UNSUPPORTED("bsprgtbeyh48e6897xrl9q004"); // agerr(AGERR, "flat lock broken"); |
| 256 | UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } |
| 257 | |
| 258 | throw new UnsupportedOperationException(); |
| 259 | } |
| 260 | |
| 261 | |
| 262 | } |