summaryrefslogtreecommitdiffhomepage
path: root/ir/kaps
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-02-17 07:14:48 +0100
committerMatthias Braun <matze@braunis.de>2017-02-17 08:07:41 +0100
commit06cb80c5b7f318fb1fc0caef3adcf84b9802df6c (patch)
tree72c596abcda06468ebe41d0038f520e10f19acc3 /ir/kaps
parentd29ca3a0ba661b9826e126b407c1c9d6f5a81aa9 (diff)
Reorganize include directives
Diffstat (limited to 'ir/kaps')
-rw-r--r--ir/kaps/brute_force.c18
-rw-r--r--ir/kaps/bucket.c4
-rw-r--r--ir/kaps/html_dumper.c9
-rw-r--r--ir/kaps/kaps.c4
-rw-r--r--ir/kaps/matrix.c6
-rw-r--r--ir/kaps/optimal.c17
-rw-r--r--ir/kaps/pbqp_edge.c5
-rw-r--r--ir/kaps/pbqp_node.c7
-rw-r--r--ir/kaps/vector.c5
9 files changed, 35 insertions, 40 deletions
diff --git a/ir/kaps/brute_force.c b/ir/kaps/brute_force.c
index a976fc5..d988699 100644
--- a/ir/kaps/brute_force.c
+++ b/ir/kaps/brute_force.c
@@ -9,24 +9,24 @@
* @date 02.12.2008
* @author Sebastian Buchwald
*/
-#include <assert.h>
-#include <stdbool.h>
-
-#include "panic.h"
+#include "brute_force.h"
#include "bucket.h"
-#include "brute_force.h"
-#include "optimal.h"
-#if KAPS_DUMP
-#include "html_dumper.h"
-#endif
#include "kaps.h"
#include "matrix.h"
+#include "optimal.h"
+#include "panic.h"
#include "pbqp_edge.h"
#include "pbqp_edge_t.h"
#include "pbqp_node.h"
#include "pbqp_node_t.h"
#include "vector.h"
+#include <assert.h>
+#include <stdbool.h>
+
+#if KAPS_DUMP
+#include "html_dumper.h"
+#endif
#if KAPS_STATISTIC
static int dump = 0;
diff --git a/ir/kaps/bucket.c b/ir/kaps/bucket.c
index 55a5293..5524a30 100644
--- a/ir/kaps/bucket.c
+++ b/ir/kaps/bucket.c
@@ -9,9 +9,9 @@
* @date 30.11.2008
* @author Sebastian Buchwald
*/
-#include "adt/array.h"
-
#include "bucket.h"
+
+#include "adt/array.h"
#include "pbqp_edge_t.h"
#include "pbqp_node.h"
#include "pbqp_node_t.h"
diff --git a/ir/kaps/html_dumper.c b/ir/kaps/html_dumper.c
index 3ea0310..c73a9cd 100644
--- a/ir/kaps/html_dumper.c
+++ b/ir/kaps/html_dumper.c
@@ -9,15 +9,14 @@
* @date 03.10.2008
* @author Sebastian Buchwald
*/
-#include <assert.h>
+#include "html_dumper.h"
#include "adt/array.h"
-
+#include "kaps.h"
+#include "optimal.h"
#include "pbqp_edge_t.h"
#include "pbqp_node_t.h"
-#include "optimal.h"
-#include "html_dumper.h"
-#include "kaps.h"
+#include <assert.h>
/* Caution: Due to static buffer use only once per statement */
static const char *cost2a(num const cost)
diff --git a/ir/kaps/kaps.c b/ir/kaps/kaps.c
index e7db659..9b6036e 100644
--- a/ir/kaps/kaps.c
+++ b/ir/kaps/kaps.c
@@ -9,10 +9,10 @@
* @date 02.10.2008
* @author Sebastian Buchwald
*/
+#include "kaps.h"
+
#include "adt/array.h"
#include "adt/xmalloc.h"
-
-#include "kaps.h"
#include "matrix.h"
#include "pbqp_edge.h"
#include "pbqp_edge_t.h"
diff --git a/ir/kaps/matrix.c b/ir/kaps/matrix.c
index 37ed345..026c4c2 100644
--- a/ir/kaps/matrix.c
+++ b/ir/kaps/matrix.c
@@ -9,12 +9,12 @@
* @date 02.10.2008
* @author Sebastian Buchwald
*/
-#include <assert.h>
-#include <string.h>
+#include "matrix.h"
#include "pbqp_t.h"
#include "vector.h"
-#include "matrix.h"
+#include <assert.h>
+#include <string.h>
pbqp_matrix_t *pbqp_matrix_alloc(pbqp_t *pbqp, unsigned rows, unsigned cols)
{
diff --git a/ir/kaps/optimal.c b/ir/kaps/optimal.c
index 858fa91..b8926fe 100644
--- a/ir/kaps/optimal.c
+++ b/ir/kaps/optimal.c
@@ -9,26 +9,25 @@
* @date 28.12.2009
* @author Sebastian Buchwald
*/
-#include <assert.h>
-#include <stdbool.h>
+#include "kaps.h"
#include "adt/array.h"
-#include "panic.h"
-
#include "bucket.h"
-#if KAPS_DUMP
-#include "html_dumper.h"
-#endif
-#include "kaps.h"
#include "matrix.h"
#include "optimal.h"
+#include "panic.h"
#include "pbqp_edge.h"
#include "pbqp_edge_t.h"
#include "pbqp_node.h"
#include "pbqp_node_t.h"
+#include "timing.h"
#include "vector.h"
+#include <assert.h>
+#include <stdbool.h>
-#include "timing.h"
+#if KAPS_DUMP
+#include "html_dumper.h"
+#endif
pbqp_edge_t **edge_bucket;
static pbqp_edge_t **rm_bucket;
diff --git a/ir/kaps/pbqp_edge.c b/ir/kaps/pbqp_edge.c
index 0f0d1cc..f22409b 100644
--- a/ir/kaps/pbqp_edge.c
+++ b/ir/kaps/pbqp_edge.c
@@ -9,18 +9,17 @@
* @date 02.10.2008
* @author Sebastian Buchwald
*/
-#include <assert.h>
+#include "pbqp_edge.h"
#include "adt/array.h"
-
#include "kaps.h"
#include "matrix.h"
#include "optimal.h"
-#include "pbqp_edge.h"
#include "pbqp_edge_t.h"
#include "pbqp_node.h"
#include "pbqp_node_t.h"
#include "pbqp_t.h"
+#include <assert.h>
pbqp_edge_t *alloc_edge(pbqp_t *pbqp, unsigned src_index, unsigned tgt_index,
pbqp_matrix_t *costs)
diff --git a/ir/kaps/pbqp_node.c b/ir/kaps/pbqp_node.c
index 1169e99..5115f72 100644
--- a/ir/kaps/pbqp_node.c
+++ b/ir/kaps/pbqp_node.c
@@ -9,17 +9,16 @@
* @date 02.10.2008
* @author Sebastian Buchwald
*/
-#include <assert.h>
-#include <stdbool.h>
+#include "pbqp_node.h"
#include "adt/array.h"
-
#include "bucket.h"
#include "pbqp_edge.h"
#include "pbqp_edge_t.h"
-#include "pbqp_node.h"
#include "pbqp_node_t.h"
#include "vector.h"
+#include <assert.h>
+#include <stdbool.h>
pbqp_node_t *alloc_node(pbqp_t *pbqp, unsigned node_index, vector_t *costs)
{
diff --git a/ir/kaps/vector.c b/ir/kaps/vector.c
index d212c2d..5a78225 100644
--- a/ir/kaps/vector.c
+++ b/ir/kaps/vector.c
@@ -9,11 +9,10 @@
* @date 02.10.2008
* @author Sebastian Buchwald
*/
-#include <string.h>
+#include "vector.h"
#include "adt/array.h"
-
-#include "vector.h"
+#include <string.h>
num pbqp_add(num x, num y)
{