We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40a2c80 commit 25e2580Copy full SHA for 25e2580
1 file changed
jacodb-core/src/main/kotlin/org/jacodb/impl/cfg/Simplifier.kt
@@ -125,6 +125,13 @@ internal class Simplifier {
125
val lhv = inst.lhv
126
val rhv = inst.rhv
127
if (lhv is JcRawSimpleValue && rhv is JcRawSimpleValue) {
128
+ val iterator = equalities.entries.iterator()
129
+ while (iterator.hasNext()) {
130
+ val entry = iterator.next()
131
+ if (entry.value == lhv) {
132
+ iterator.remove()
133
+ }
134
135
if (equalities[lhv] != rhv) {
136
equalities[lhv] = rhv
137
instructions += inst
0 commit comments