From 1e55edf5bc39624d95f8b16ab13084cbe37b7f35 Mon Sep 17 00:00:00 2001 From: Sebastian Buchwald Date: Sat, 4 Oct 2008 17:04:13 +0000 Subject: [PATCH] Added simplification loop. [r22478] --- heuristical.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/heuristical.c b/heuristical.c index fc7d0ecfe..844c87a3d 100644 --- a/heuristical.c +++ b/heuristical.c @@ -1,5 +1,6 @@ #include "adt/array.h" #include "assert.h" +#include "error.h" #include "heuristical.h" #include "html_dumper.h" @@ -171,4 +172,19 @@ void solve_pbqp_heuristical(pbqp *pbqp) /* Put node into bucket representing their arity. */ fill_node_buckets(pbqp); + + for (;;) { + if (ARR_LEN(edge_bucket) > 0) { + panic("Please implement edge simplification"); + } else if (ARR_LEN(node_buckets[1]) > 0) { + panic("Please implement RI simplification"); + } else if (ARR_LEN(node_buckets[2]) > 0) { + panic("Please implement RII simplification"); + } else if (ARR_LEN(node_buckets[3]) > 0) { + panic("Please implement RN simplification"); + } else { + panic("Please implement back propagation"); + // break; + } + } } -- 2.20.1