Started implementing a new PBQP solver, which should solve PBQPs and the problems...
[libfirm] / pbqp_t.h
1 #ifndef KAPS_PBQP_T_H
2 #define KAPS_PBQP_T_H
3
4 #include <limits.h>
5
6 #include "matrix_t.h"
7 #include "vector_t.h"
8
9 typedef int num;
10
11 typedef struct pbqp_edge pbqp_edge;
12 typedef struct pbqp_node pbqp_node;
13
14 static const num INF_COST = INT_MAX;
15
16 struct pbqp {
17         struct obstack obstack;            /* Obstack. */
18         num            solution;           /* Computed solution. */
19         size_t         num_nodes;          /* Number of PBQP nodes. */
20         pbqp_node    **nodes;              /* Nodes of PBQP. */
21 };
22
23 #endif /* KAPS_PBQP_T_H */