2a79aff99f452c977796b67310394fa73bdae934
[libfirm] / pbqp_t.h
1 #ifndef KAPS_PBQP_T_H
2 #define KAPS_PBQP_T_H
3
4 #include <limits.h>
5
6 #include "adt/obstack.h"
7
8 #include "matrix_t.h"
9 #include "vector_t.h"
10
11 typedef int num;
12
13 typedef struct pbqp_edge pbqp_edge;
14 typedef struct pbqp_node pbqp_node;
15 typedef struct pbqp      pbqp;
16
17 static const num INF_COST = INT_MAX;
18
19 struct pbqp {
20         struct obstack obstack;            /* Obstack. */
21         num            solution;           /* Computed solution. */
22         size_t         num_nodes;          /* Number of PBQP nodes. */
23         pbqp_node    **nodes;              /* Nodes of PBQP. */
24 };
25
26 #endif /* KAPS_PBQP_T_H */