Save current PBQP state.
[libfirm] / pbqp_t.h
1 #ifndef KAPS_PBQP_T_H
2 #define KAPS_PBQP_T_H
3
4 #include <limits.h>
5 #include <stdint.h>
6 #include <stdio.h>
7
8 #include "adt/obstack.h"
9
10 typedef intmax_t num;
11
12 #include "matrix_t.h"
13 #include "vector_t.h"
14
15 typedef struct pbqp_edge pbqp_edge;
16 typedef struct pbqp_node pbqp_node;
17 typedef struct pbqp      pbqp;
18
19 static const num INF_COSTS = INTMAX_MAX;
20
21 struct pbqp {
22         struct obstack obstack;            /* Obstack. */
23         num            solution;           /* Computed solution. */
24         size_t         num_nodes;          /* Number of PBQP nodes. */
25         pbqp_node    **nodes;              /* Nodes of PBQP. */
26         FILE          *dump_file;          /* File to dump in. */
27 };
28
29 #endif /* KAPS_PBQP_T_H */