gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] (random tester) Bug with compilation of MOD (and MIN?)


From: Paul F. Dietz
Subject: [Gcl-devel] (random tester) Bug with compilation of MOD (and MIN?)
Date: Sun, 05 Oct 2003 06:32:58 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

The random tester is running much longer on gcl now before
finding a bug.  This bug came up in a run of 50,000 tests.
The forms have been minimized.

------

;;; gclbug5.lsp

(print
 (funcall (compile nil '(lambda (b c)
                          (declare (type (integer -63 741532) b))
                          (declare (type (integer -10700947 0) c))
                          (declare (optimize (safety 1)))
                          (mod (min c b) (min -82 -163))))
          14479 -2562931))

;;; ==> -2562931

(print (funcall #'(lambda (b c)
                    (mod (min c b) (min -82 -163)))
                14479 -2562931))

;;; ==> -82


------

        Paul





reply via email to

[Prev in Thread] Current Thread [Next in Thread]