Do not count an RM as R1, too.
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Fri, 30 Jul 2010 13:53:17 +0000 (13:53 +0000)
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Fri, 30 Jul 2010 13:53:17 +0000 (13:53 +0000)
[r27856]

optimal.c

index 97deba6..7f17182 100644 (file)
--- a/optimal.c
+++ b/optimal.c
@@ -425,6 +425,10 @@ static void merge_source_into_target(pbqp *pbqp, pbqp_edge *edge)
 
        /* Reduce the remaining source node via RI. */
        apply_RI(pbqp);
+
+#if KAPS_STATISTIC
+       pbqp->num_r1--;
+#endif
 }
 
 /**
@@ -583,6 +587,10 @@ static void merge_target_into_source(pbqp *pbqp, pbqp_edge *edge)
 
        /* Reduce the remaining source node via RI. */
        apply_RI(pbqp);
+
+#if KAPS_STATISTIC
+       pbqp->num_r1--;
+#endif
 }
 
 /**