Ran
|
Files
1282
|
Run time
30s
|
Badge
Embed ▾
README BADGES
|
push
github
Remove old graph structure during `EquivalenceLibrary.set_entry` (#11959) (#11963) * Remove old graph structure during `EquivalenceLibrary.set_entry` The previous implementation of `EquivalenceLibrary.set_entry` changed the equivalence rules attached to particular nodes within the graph structure, but didn't correctly update the edges, so the graph was no longer representing the correct data, and queries within `BasisTranslator` would still use the old equivalence sets. This correctly clears out the old rules and adds the new structure when `set_entry` is used. The inner private variable `_rule_count` is replaced with `_rule_id`, since it would actually be misleading for its use to decrement it; this could cause clashes, and what's actually intended and used is that it's an id for rules. * Add test with parallel edges (cherry picked from commit 67e0243ab) Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
75066 of 86364 relevant lines covered (86.92%)
103662.12 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|