diff options
Diffstat (limited to 'common/router2.cc')
-rw-r--r-- | common/router2.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/router2.cc b/common/router2.cc index 878b615e..1f9196ab 100644 --- a/common/router2.cc +++ b/common/router2.cc @@ -92,7 +92,7 @@ struct Router2 int16_t x = 0, y = 0; // Visit data PipId pip_fwd, pip_bwd; - bool visited_fwd, visited_bwd; + bool visited_fwd = false, visited_bwd = false; }; Context *ctx; @@ -687,6 +687,7 @@ struct Router2 // Explore forwards auto curr = t.fwd_queue.top(); t.fwd_queue.pop(); + ++explored; if (was_visited_bwd(curr.wire)) { // Meet in the middle; done midpoint_wire = curr.wire; @@ -729,6 +730,7 @@ struct Router2 // Explore backwards auto curr = t.bwd_queue.top(); t.bwd_queue.pop(); + ++explored; if (was_visited_fwd(curr.wire)) { // Meet in the middle; done midpoint_wire = curr.wire; |