From: Sebastian Buchwald Date: Wed, 3 Dec 2008 21:07:59 +0000 (+0000) Subject: Removed unused variables and addes some asserts. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=e37c87741703aa056d682b0b4126dba20f83abc4;p=libfirm Removed unused variables and addes some asserts. [r24275] --- diff --git a/heuristical.c b/heuristical.c index 3c8196049..19043252a 100644 --- a/heuristical.c +++ b/heuristical.c @@ -855,17 +855,11 @@ static void apply_brute_force_reductions(pbqp *pbqp) static unsigned get_minimal_alternative(pbqp *pbqp, pbqp_node *node) { - pbqp_edge *edge; vector *node_vec; - vector *vec; - pbqp_matrix *mat; - unsigned edge_index; - unsigned max_degree = 0; unsigned node_index; unsigned node_len; unsigned min_index = 0; num min = INF_COSTS; - int is_src; assert(pbqp); assert(node); @@ -896,6 +890,11 @@ static unsigned get_minimal_alternative(pbqp *pbqp, pbqp_node *node) min_index = node_index; } + /* Some node buckets and the edge bucket should still be empty. */ + assert(node_bucket_get_length(node_buckets[1]) == 0); + assert(node_bucket_get_length(node_buckets[2]) == 0); + assert(edge_bucket_get_length(edge_bucket) == 0); + /* TODO Restore old PBQP state. */ }