3 * File name: testprograms/indentify_types.c
4 * Purpose: Shows use of type identification
5 * Author: Christian Schaefer, Goetz Lindenmaier
9 * Copyright: (c) 1999-2003 Universität Karlsruhe
10 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
19 # include "type_identify.h"
23 int main(int argc, char **argv)
28 printf("\nCreating type information for IDENTIFY_TYPES ...\n");
31 compare_types_func = compare_names;
36 i1 = new_id_from_str("type1");
37 i2 = new_id_from_str("type2");
39 t1 = new_type_class(i1);
44 t2 = new_type_class(i1);
47 t3 = new_type_class(i2);
51 printf(" t1: "); DDMT(t1);
52 printf(" t2: "); DDMT(t2);
53 printf(" t3: "); DDMT(t3);
56 printf("Done building the graph. Dumping it.\n");
59 printf("use xvcg to view this graph:\n");
60 printf("/ben/goetz/bin/xvcg GRAPHNAME\n\n");