This file is indexed.

/usr/include/freehdl/cdfggen-chunk.h is in libfreehdl0-dev 0.0.8-2.2ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
// generated by gen-nodes from `cdfggen-chunk.t'.  Do not edit.

#ifndef CDFGGEN_H
#define CDFGGEN_H

#include <freehdl/tree-supp.h>
#include <string>
#include <vector>
typedef enum {to, downto} cdfgg_direction;
using namespace std;

extern tree_chunk_info cdfggen_chunk_info;
extern tree_ctype_info int_ctype_info;
extern tree_ctype_info double_ctype_info;
extern tree_ctype_info string_ctype_info;
extern tree_ctype_info cdfgg_direction_ctype_info;
extern tree_ctype_info cdfgg_char_p_ctype_info;
extern tree_ctype_info lint_ctype_info;
extern tree_ctype_info vector_pair_string_lint_ctype_info;
extern tree_ctype_info vector_int_ctype_info;
struct CDFGG_Type;
typedef CDFGG_Type *pCDFGG_Type;
extern tree_kind_info CDFGG_TYPE_kind_info;
#define CDFGG_TYPE (&CDFGG_TYPE_kind_info)
struct CDFGG_ScalarType;
typedef CDFGG_ScalarType *pCDFGG_ScalarType;
extern tree_kind_info CDFGG_SCALAR_TYPE_kind_info;
#define CDFGG_SCALAR_TYPE (&CDFGG_SCALAR_TYPE_kind_info)
struct CDFGG_IntegerType;
typedef CDFGG_IntegerType *pCDFGG_IntegerType;
extern tree_kind_info CDFGG_INTEGER_TYPE_kind_info;
#define CDFGG_INTEGER_TYPE (&CDFGG_INTEGER_TYPE_kind_info)
struct CDFGG_RealType;
typedef CDFGG_RealType *pCDFGG_RealType;
extern tree_kind_info CDFGG_REAL_TYPE_kind_info;
#define CDFGG_REAL_TYPE (&CDFGG_REAL_TYPE_kind_info)
struct CDFGG_EnumerationType;
typedef CDFGG_EnumerationType *pCDFGG_EnumerationType;
extern tree_kind_info CDFGG_ENUMERATION_TYPE_kind_info;
#define CDFGG_ENUMERATION_TYPE (&CDFGG_ENUMERATION_TYPE_kind_info)
struct CDFGG_PhysicalType;
typedef CDFGG_PhysicalType *pCDFGG_PhysicalType;
extern tree_kind_info CDFGG_PHYSICAL_TYPE_kind_info;
#define CDFGG_PHYSICAL_TYPE (&CDFGG_PHYSICAL_TYPE_kind_info)
struct CDFGG_CompositeType;
typedef CDFGG_CompositeType *pCDFGG_CompositeType;
extern tree_kind_info CDFGG_COMPOSITE_TYPE_kind_info;
#define CDFGG_COMPOSITE_TYPE (&CDFGG_COMPOSITE_TYPE_kind_info)
struct CDFGG_ArrayType;
typedef CDFGG_ArrayType *pCDFGG_ArrayType;
extern tree_kind_info CDFGG_ARRAY_TYPE_kind_info;
#define CDFGG_ARRAY_TYPE (&CDFGG_ARRAY_TYPE_kind_info)
struct CDFGG_Edge;
typedef CDFGG_Edge *pCDFGG_Edge;
extern tree_kind_info CDFGG_EDGE_kind_info;
#define CDFGG_EDGE (&CDFGG_EDGE_kind_info)
struct CDFGG_DataEdge;
typedef CDFGG_DataEdge *pCDFGG_DataEdge;
extern tree_kind_info CDFGG_DATA_EDGE_kind_info;
#define CDFGG_DATA_EDGE (&CDFGG_DATA_EDGE_kind_info)
struct CDFGG_LiteralEdge;
typedef CDFGG_LiteralEdge *pCDFGG_LiteralEdge;
extern tree_kind_info CDFGG_LITERAL_EDGE_kind_info;
#define CDFGG_LITERAL_EDGE (&CDFGG_LITERAL_EDGE_kind_info)
struct CDFGG_StringLiteralEdge;
typedef CDFGG_StringLiteralEdge *pCDFGG_StringLiteralEdge;
extern tree_kind_info CDFGG_STRING_LITERAL_EDGE_kind_info;
#define CDFGG_STRING_LITERAL_EDGE (&CDFGG_STRING_LITERAL_EDGE_kind_info)
struct CDFGG_IntegerLiteralEdge;
typedef CDFGG_IntegerLiteralEdge *pCDFGG_IntegerLiteralEdge;
extern tree_kind_info CDFGG_INTEGER_LITERAL_EDGE_kind_info;
#define CDFGG_INTEGER_LITERAL_EDGE (&CDFGG_INTEGER_LITERAL_EDGE_kind_info)
struct CDFGG_RealLiteralEdge;
typedef CDFGG_RealLiteralEdge *pCDFGG_RealLiteralEdge;
extern tree_kind_info CDFGG_REAL_LITERAL_EDGE_kind_info;
#define CDFGG_REAL_LITERAL_EDGE (&CDFGG_REAL_LITERAL_EDGE_kind_info)
struct CDFGG_RangeLiteralEdge;
typedef CDFGG_RangeLiteralEdge *pCDFGG_RangeLiteralEdge;
extern tree_kind_info CDFGG_RANGE_LITERAL_EDGE_kind_info;
#define CDFGG_RANGE_LITERAL_EDGE (&CDFGG_RANGE_LITERAL_EDGE_kind_info)
struct CDFGG_Node;
typedef CDFGG_Node *pCDFGG_Node;
extern tree_kind_info CDFGG_NODE_kind_info;
#define CDFGG_NODE (&CDFGG_NODE_kind_info)

struct CDFGG_Type : tree_base_node {
  string instance_name;
  string type_name;
  pCDFGG_Type base_type;

  CDFGG_Type (string instance_name, string type_name, pCDFGG_Type base_type) 
  : instance_name (instance_name),
    type_name (type_name),
    base_type (base_type)
    { }

  tree_kind kind ();
};

struct CDFGG_ScalarType : CDFGG_Type {

  CDFGG_ScalarType (string instance_name, string type_name, pCDFGG_Type base_type) 
  : CDFGG_Type (instance_name, type_name, base_type)
    { }

  tree_kind kind ();
};

struct CDFGG_IntegerType : CDFGG_ScalarType {
  int left_bound;
  cdfgg_direction direction;
  int right_bound;

  CDFGG_IntegerType (string instance_name, string type_name, pCDFGG_Type base_type, int left_bound, cdfgg_direction direction, int right_bound) 
  : CDFGG_ScalarType (instance_name, type_name, base_type),
    left_bound (left_bound),
    direction (direction),
    right_bound (right_bound)
    { }

  tree_kind kind ();
};

struct CDFGG_RealType : CDFGG_ScalarType {
  double left_bound;
  cdfgg_direction direction;
  double right_bound;

  CDFGG_RealType (string instance_name, string type_name, pCDFGG_Type base_type, double left_bound, cdfgg_direction direction, double right_bound) 
  : CDFGG_ScalarType (instance_name, type_name, base_type),
    left_bound (left_bound),
    direction (direction),
    right_bound (right_bound)
    { }

  tree_kind kind ();
};

struct CDFGG_EnumerationType : CDFGG_ScalarType {
  int left_bound;
  int right_bound;

  CDFGG_EnumerationType (string instance_name, string type_name, pCDFGG_Type base_type, int left_bound, int right_bound) 
  : CDFGG_ScalarType (instance_name, type_name, base_type),
    left_bound (left_bound),
    right_bound (right_bound)
    { }

  tree_kind kind ();
};

struct CDFGG_PhysicalType : CDFGG_ScalarType {
  long long int left_bound;
  cdfgg_direction direction;
  long long int right_bound;
  vector<pair<string, long long int> > units;

  CDFGG_PhysicalType (string instance_name, string type_name, pCDFGG_Type base_type, long long int left_bound, cdfgg_direction direction, long long int right_bound, vector<pair<string, long long int> > units) 
  : CDFGG_ScalarType (instance_name, type_name, base_type),
    left_bound (left_bound),
    direction (direction),
    right_bound (right_bound),
    units (units)
    { }

  tree_kind kind ();
};

struct CDFGG_CompositeType : CDFGG_Type {

  CDFGG_CompositeType (string instance_name, string type_name, pCDFGG_Type base_type) 
  : CDFGG_Type (instance_name, type_name, base_type)
    { }

  tree_kind kind ();
};

struct CDFGG_ArrayType : CDFGG_CompositeType {
  long long int left_bound;
  cdfgg_direction direction;
  long long int right_bound;
  pCDFGG_Type index_type;
  pCDFGG_Type element_type;

  CDFGG_ArrayType (string instance_name, string type_name, pCDFGG_Type base_type, long long int left_bound, cdfgg_direction direction, long long int right_bound, pCDFGG_Type index_type, pCDFGG_Type element_type) 
  : CDFGG_CompositeType (instance_name, type_name, base_type),
    left_bound (left_bound),
    direction (direction),
    right_bound (right_bound),
    index_type (index_type),
    element_type (element_type)
    { }

  tree_kind kind ();
};

struct CDFGG_Edge : tree_base_node {
  int index;
  int in_node;
  int out_node;
  pCDFGG_Type type;

  CDFGG_Edge (int index, int in_node, int out_node, pCDFGG_Type type) 
  : index (index),
    in_node (in_node),
    out_node (out_node),
    type (type)
    { }

  tree_kind kind ();
};

struct CDFGG_DataEdge : CDFGG_Edge {

  CDFGG_DataEdge (int index, int in_node, int out_node, pCDFGG_Type type) 
  : CDFGG_Edge (index, in_node, out_node, type)
    { }

  tree_kind kind ();
};

struct CDFGG_LiteralEdge : CDFGG_Edge {

  CDFGG_LiteralEdge (int index, int in_node, int out_node, pCDFGG_Type type) 
  : CDFGG_Edge (index, in_node, out_node, type)
    { }

  tree_kind kind ();
};

struct CDFGG_StringLiteralEdge : CDFGG_LiteralEdge {
  char* edge_name;

  CDFGG_StringLiteralEdge (int index, int in_node, int out_node, pCDFGG_Type type, char* edge_name) 
  : CDFGG_LiteralEdge (index, in_node, out_node, type),
    edge_name (edge_name)
    { }

  tree_kind kind ();
};

struct CDFGG_IntegerLiteralEdge : CDFGG_LiteralEdge {
  int value;

  CDFGG_IntegerLiteralEdge (int index, int in_node, int out_node, pCDFGG_Type type, int value) 
  : CDFGG_LiteralEdge (index, in_node, out_node, type),
    value (value)
    { }

  tree_kind kind ();
};

struct CDFGG_RealLiteralEdge : CDFGG_LiteralEdge {
  double value;

  CDFGG_RealLiteralEdge (int index, int in_node, int out_node, pCDFGG_Type type, double value) 
  : CDFGG_LiteralEdge (index, in_node, out_node, type),
    value (value)
    { }

  tree_kind kind ();
};

struct CDFGG_RangeLiteralEdge : CDFGG_LiteralEdge {
  int left_bound;
  cdfgg_direction direction;
  int right_bound;

  CDFGG_RangeLiteralEdge (int index, int in_node, int out_node, pCDFGG_Type type, int left_bound, cdfgg_direction direction, int right_bound) 
  : CDFGG_LiteralEdge (index, in_node, out_node, type),
    left_bound (left_bound),
    direction (direction),
    right_bound (right_bound)
    { }

  tree_kind kind ();
};

struct CDFGG_Node : tree_base_node {
  int index;
  string type;
  vector<int> incoming_edges;
  vector<int> outgoing_edges;

  CDFGG_Node (int index, string type, vector<int> incoming_edges, vector<int> outgoing_edges) 
  : index (index),
    type (type),
    incoming_edges (incoming_edges),
    outgoing_edges (outgoing_edges)
    { }

  tree_kind kind ();
};

void init_cdfggen_chunk ();

#endif