File: trie.c

package info (click to toggle)
graphviz 2.8-3%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 20,480 kB
  • ctags: 22,071
  • sloc: ansic: 163,260; cpp: 36,565; sh: 25,024; yacc: 2,358; tcl: 1,808; makefile: 1,745; cs: 805; perl: 801; ml: 649; awk: 160; lex: 153; python: 105; ruby: 32; php: 6
file content (158 lines) | stat: -rw-r--r-- 2,989 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/* $Id: trie.c,v 1.1.1.1 2004/12/23 04:02:41 ellson Exp $ $Revision: 1.1.1.1 $ */
/* vim:set shiftwidth=4 ts=8: */

/**********************************************************
*      This software is part of the graphviz package      *
*                http://www.graphviz.org/                 *
*                                                         *
*            Copyright (c) 1994-2004 AT&T Corp.           *
*                and is licensed under the                *
*            Common Public License, Version 1.0           *
*                      by AT&T Corp.                      *
*                                                         *
*        Information and Software Systems Research        *
*              AT&T Research, Florham Park NJ             *
**********************************************************/


#include "libgraph.h"
#include "parser.h"
#include "triefa.h"

#ifdef DMALLOC
#include "dmalloc.h"
#endif

TrieState TrieStateTbl[34] = {
    {-1, 0, 0x42058}
    ,
    {-1, 5, 0x100}
    ,
    {-1, 6, 0x40}
    ,
    {-1, 7, 0x20000}
    ,
    {-1, 8, 0x1}
    ,
    {-1, 9, 0x8000}
    ,
    {-1, 10, 0x80}
    ,
    {T_digraph, 11, 0x0}
    ,
    {-1, 11, 0x8}
    ,
    {-1, 12, 0x40}
    ,
    {-1, 13, 0x10}
    ,
    {T_edge, 14, 0x0}
    ,
    {-1, 14, 0x20000}
    ,
    {-1, 15, 0x1}
    ,
    {-1, 16, 0x8000}
    ,
    {-1, 17, 0x80}
    ,
    {T_graph, 18, 0x0}
    ,
    {-1, 18, 0x4000}
    ,
    {-1, 19, 0x8}
    ,
    {-1, 20, 0x10}
    ,
    {T_node, 21, 0x0}
    ,
    {-1, 21, 0x180000}
    ,
    {-1, 23, 0x20000}
    ,
    {-1, 24, 0x100}
    ,
    {-1, 25, 0x4}
    ,
    {-1, 26, 0x80000}
    ,
    {T_strict, 27, 0x0}
    ,
    {-1, 27, 0x2}
    ,
    {-1, 28, 0x40}
    ,
    {-1, 29, 0x20000}
    ,
    {-1, 30, 0x1}
    ,
    {-1, 31, 0x8000}
    ,
    {-1, 32, 0x80}
    ,
    {T_subgraph, 33, 0x0}
    ,
};
TrieTrans TrieTransTbl[33] = {
    /* State   0 */ {'s', 21}
    , {'e', 8}
    , {'g', 12}
    , {'n', 17}
    , {'d', 1}
    ,
    /* State   1 */ {'i', 2}
    ,
    /* State   2 */ {'g', 3}
    ,
    /* State   3 */ {'r', 4}
    ,
    /* State   4 */ {'a', 5}
    ,
    /* State   5 */ {'p', 6}
    ,
    /* State   6 */ {'h', 7}
    ,
    /* State   8 */ {'d', 9}
    ,
    /* State   9 */ {'g', 10}
    ,
    /* State  10 */ {'e', 11}
    ,
    /* State  12 */ {'r', 13}
    ,
    /* State  13 */ {'a', 14}
    ,
    /* State  14 */ {'p', 15}
    ,
    /* State  15 */ {'h', 16}
    ,
    /* State  17 */ {'o', 18}
    ,
    /* State  18 */ {'d', 19}
    ,
    /* State  19 */ {'e', 20}
    ,
    /* State  21 */ {'t', 22}
    , {'u', 27}
    ,
    /* State  22 */ {'r', 23}
    ,
    /* State  23 */ {'i', 24}
    ,
    /* State  24 */ {'c', 25}
    ,
    /* State  25 */ {'t', 26}
    ,
    /* State  27 */ {'b', 28}
    ,
    /* State  28 */ {'g', 29}
    ,
    /* State  29 */ {'r', 30}
    ,
    /* State  30 */ {'a', 31}
    ,
    /* State  31 */ {'p', 32}
    ,
    /* State  32 */ {'h', 33}
    ,
};