Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ansi-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michał Herda
ansi-test
Commits
fd2f1ba1
Commit
fd2f1ba1
authored
21 years ago
by
pfdietz
Browse files
Options
Downloads
Patches
Plain Diff
Unconditionalized LCM for gcl. This reexposes a bug to the random tester.
parent
b06c82ed
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansi-tests/random-int-form.lsp
+3
-4
3 additions, 4 deletions
ansi-tests/random-int-form.lsp
with
3 additions
and
4 deletions
ansi-tests/random-int-form.lsp
+
3
−
4
View file @
fd2f1ba1
...
@@ -373,7 +373,7 @@
...
@@ -373,7 +373,7 @@
(30
(30
(let* ((op (random-from-seq
(let* ((op (random-from-seq
'(+ - * logand min max gcd
'(+ - * logand min max gcd
#-gcl
lcm
lcm
#-:allegro
#-:allegro
logandc1
logandc1
logandc2 logeqv logior lognand lognor
logandc2 logeqv logior lognand lognor
...
@@ -403,8 +403,7 @@
...
@@ -403,8 +403,7 @@
;; n-ary ops
;; n-ary ops
(30
(30
(let* ((op (random-from-seq #(+ - * logand min max logior
(let* ((op (random-from-seq #(+ - * logand min max logior
#-gcl lcm
lcm gcd logxor)))
gcd logxor)))
(nargs (1+ (min (random 10) (random 10) (random 10))))
(nargs (1+ (min (random 10) (random 10) (random 10))))
(sizes (random-partition (1- size) nargs))
(sizes (random-partition (1- size) nargs))
(args (mapcar #'make-random-integer-form sizes)))
(args (mapcar #'make-random-integer-form sizes)))
...
@@ -624,7 +623,7 @@
...
@@ -624,7 +623,7 @@
(tags nil))
(tags nil))
(loop for i below num-forms
(loop for i below num-forms
do (loop for tag = (rcase
do (loop for tag = (rcase
#-a
c
l (1 (random 8))
#-al
legro
(1 (random 8))
(1 (random-from-seq #(tag1 tag2 tag3 tag4
(1 (random-from-seq #(tag1 tag2 tag3 tag4
tag5 tag6 tag7 tag8))))
tag5 tag6 tag7 tag8))))
while (member tag tags)
while (member tag tags)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment