| 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 main__c { |
| 50 | |
| 51 | |
| 52 | //3 6odliptr9wa623cqopkvk2jli |
| 53 | // static void my_ins(Agraph_t * g, Agobj_t * obj, void *context) |
| 54 | public static Object my_ins(Object... arg) { |
| 55 | UNSUPPORTED("c7iv5iry7vbk7hni09hhaowd5"); // static void my_ins(Agraph_t * g, Agobj_t * obj, void *context) |
| 56 | UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { |
| 57 | UNSUPPORTED("2jcii9cclu1dijzqekzc175pe"); // Agnode_t *n; |
| 58 | UNSUPPORTED("a9l6doo688qv3rdvch9hmibgq"); // if (AGTYPE(obj) == AGNODE) { |
| 59 | UNSUPPORTED("d450vypq8xi24vzde0qbtu2r8"); // n = (Agnode_t *) obj; |
| 60 | UNSUPPORTED("2gpi6t9bnp5hdft0cecv3iune"); // fprintf(stderr, "%s initialized with label %s\n", agnameof(n), |
| 61 | UNSUPPORTED("1p5eazfn0cyfxuxjea9lnir1w"); // agget(n, "label")); |
| 62 | UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // } |
| 63 | UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } |
| 64 | |
| 65 | throw new UnsupportedOperationException(); |
| 66 | } |
| 67 | |
| 68 | |
| 69 | //1 712rrmbvh64z403qurukiza4t |
| 70 | // static Agcbdisc_t mydisc = |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | //3 bvktrg27hkm4awzgaxie82v5n |
| 76 | // main(int argc, char **argv) |
| 77 | public static Object main(Object... arg) { |
| 78 | UNSUPPORTED("2vxu1fvoegqfch6u8yop5e3yd"); // main(int argc, char **argv) |
| 79 | UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { |
| 80 | UNSUPPORTED("9rw11eamkbc6vjzz8oon7h5or"); // Agraph_t *g, *prev; |
| 81 | UNSUPPORTED("ecwk3deuub77ow53wzobyi1um"); // int dostat; |
| 82 | UNSUPPORTED("ay3nlfl1osekrj2sqshobe5at"); // if (argc > 1) |
| 83 | UNSUPPORTED("ckyyp5xta8o4677c6fu181fx7"); // dostat = atoi(argv[1]); |
| 84 | UNSUPPORTED("div10atae09n36x269sl208r1"); // else |
| 85 | UNSUPPORTED("cl0t34fw12lib2l4xzfg1a37y"); // dostat = 0; |
| 86 | UNSUPPORTED("ct1ab9xijd5ig91peu6a6mt9k"); // prev = agopen("some_name", Agdirected, NIL(Agdisc_t *)); |
| 87 | UNSUPPORTED("e0xgjn1wccsmsi4ek4d7a2qei"); // agcallbacks(prev, FALSE); |
| 88 | UNSUPPORTED("7c3x2xl11ikgliugx67a51w0d"); // agpushdisc(prev, &mydisc, NIL(void *)); |
| 89 | UNSUPPORTED("bngzo05d6auu02ybcab17exp"); // while (g = agconcat(prev, stdin, NIL(Agdisc_t *))) { |
| 90 | UNSUPPORTED("69r6skguykum6b262jtd67j6e"); // /*do_it(g, dostat); */ |
| 91 | UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // } |
| 92 | UNSUPPORTED("c49oayps7r0q8498dhp8trru4"); // /*agwrite(prev,stdout); */ |
| 93 | UNSUPPORTED("a9cya29glvbdxdy722npvubi1"); // fprintf(stderr, "ready to go, computer fans\n"); |
| 94 | UNSUPPORTED("c2ap65hg9mbsyttiia9s186mf"); // agcallbacks(prev, TRUE); |
| 95 | UNSUPPORTED("b0t9qgq0y5pre95c9o03imotq"); // agclose(prev); |
| 96 | UNSUPPORTED("3tcgz4dupb6kw5tdk7n3pca2l"); // return 1; |
| 97 | UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } |
| 98 | |
| 99 | throw new UnsupportedOperationException(); |
| 100 | } |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | //3 bhswp7qq6w162hh6ho3csmea3 |
| 106 | // static void prstats(Agraph_t * g, int verbose) |
| 107 | public static Object prstats(Object... arg) { |
| 108 | UNSUPPORTED("5szlwllz47f72n6dum53fsuvt"); // static void prstats(Agraph_t * g, int verbose) |
| 109 | UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { |
| 110 | UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } |
| 111 | |
| 112 | throw new UnsupportedOperationException(); |
| 113 | } |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | //3 5aj3p757f0uumfpssnoqimpjp |
| 119 | // static void do_it(Agraph_t * g, int dostat) |
| 120 | public static Object do_it(Object... arg) { |
| 121 | UNSUPPORTED("cq0p9fgngzp1ynr7fuablhs5i"); // static void do_it(Agraph_t * g, int dostat) |
| 122 | UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { |
| 123 | UNSUPPORTED("9w53fmba5tercyxnm4fnbyshd"); // agwrite(g, stdout); |
| 124 | UNSUPPORTED("25junfxb4dqovzjqy48puogi1"); // if (dostat) |
| 125 | UNSUPPORTED("542sekyz7qr0nvvoorslw1nkq"); // prstats(g, dostat > 1); |
| 126 | UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } |
| 127 | |
| 128 | throw new UnsupportedOperationException(); |
| 129 | } |
| 130 | |
| 131 | |
| 132 | } |