Closed IgnoredAmbience closed 9 years ago
This is still failing on all branches.
(Original bug: https://gforge.inria.fr/tracker/index.php?func=detail&aid=16194&group_id=4179&atid=13867)
Confirmed that:
var x = 0;
x = -0;
x // returns: 0
var y = -0;
y = 0;
y // returns: -0
8.12.9.6: Return true, if every field in Desc also occurs in current and the value of every field in Desc is the same value as the corresponding field in current when compared using the SameValue algorithm (9.12).
9.12.4.b/c: If x is +0 and y is -0, return false. If x is -0 and y is +0, return false.
Ah. Here's the bug: https://github.com/resource-reasoning/jscert_dev/blob/master/coq/JsCommon.v#L136 same_value is not the same as logical equality for zero.
Aaah. Just realised my problem is with prop_decidable. The documentation clearly states that it isn't extractable.
Transferred from Gforge: