We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56bd4b5 commit 7ce170aCopy full SHA for 7ce170a
1 file changed
usvm-ts/src/main/kotlin/org/usvm/machine/operator/TsBinaryOperator.kt
@@ -636,6 +636,10 @@ sealed interface TsBinaryOperator {
636
check(!lhsValue.isFakeObject()) { "Nested fake objects are not supported" }
637
check(!rhsValue.isFakeObject()) { "Nested fake objects are not supported" }
638
639
+ // Note: this is the case 'ref === ref',
640
+ // which should be `true` only if both have the same reference.
641
+ // It is not correct to delegate to `Eq.resolve` in this case,
642
+ // since `==` treats `null == undefined`, while `null !== undefined`.
643
if (lhsValue.sort == addressSort && rhsValue.sort == addressSort) {
644
val left = lhsValue.asExpr(addressSort)
645
val right = rhsValue.asExpr(addressSort)
0 commit comments