* Improve reproducibility of inferred values by native comp
authorAndrea Corallo <acorallo@gnu.org>
Sun, 11 Feb 2024 09:43:57 +0000 (10:43 +0100)
committerAndrea Corallo <acorallo@gnu.org>
Sun, 11 Feb 2024 10:15:27 +0000 (11:15 +0100)
* lisp/emacs-lisp/comp-cstr.el (comp-normalize-valset): Do not try to
reorder conses using 'sxhash-equal' as its behavior is not reproducible
over different sessions.

lisp/emacs-lisp/comp-cstr.el

index 812a79f070dab58cf9173fe419cb368e708027d1..ecbe6e38a1deaa1d0e65a6311bb5f3c0fc0c5673 100644 (file)
@@ -203,6 +203,8 @@ Return them as multiple value."
                t)
               ((and (not (symbolp x)) (symbolp y))
                nil)
+              ((or (consp x) (consp y)
+                   nil))
               (t
                (< (sxhash-equal x)
                   (sxhash-equal y)))))))