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
3164c0c6
Commit
3164c0c6
authored
21 years ago
by
pfdietz
Browse files
Options
Downloads
Patches
Plain Diff
Added UNWIND-PROTECT, PROG1, MULTIPLE-VALUE-PROG1 to tester. Uncommented ASH generator.
parent
07a63ae1
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
+7
-5
7 additions, 5 deletions
ansi-tests/random-int-form.lsp
with
7 additions
and
5 deletions
ansi-tests/random-int-form.lsp
+
7
−
5
View file @
3164c0c6
...
@@ -138,15 +138,17 @@
...
@@ -138,15 +138,17 @@
(40
(40
(let ((op (random-from-seq '(- abs signum 1+ 1- identity progn floor
(let ((op (random-from-seq '(- abs signum 1+ 1- identity progn floor
ceiling truncate round realpart imagpart
ceiling truncate round realpart imagpart
integer-length logcount values))))
integer-length logcount values multiple-value-prog1
prog1 unwind-protect))))
`(,op ,(make-random-integer-form (1- size)))))
`(,op ,(make-random-integer-form (1- size)))))
(2 `(isqrt (abs ,(make-random-integer-form (- size 2)))))
(2 `(isqrt (abs ,(make-random-integer-form (- size 2)))))
#| (3
(2
(destructuring-bind (s1 s2)
(destructuring-bind (s1 s2)
(random-partition (- size 2) 2)
(random-partition (- size 2) 2)
`(ash ,(make-random-integer-form s1)
`(ash ,(make-random-integer-form s1)
(min ,(random 100)
(min ,(random 100)
,(make-random-integer-form s2)))))
|#
,(make-random-integer-form s2)))))
;; binary floor, ceiling, truncate, round
;; binary floor, ceiling, truncate, round
(4
(4
...
@@ -161,7 +163,7 @@
...
@@ -161,7 +163,7 @@
,(make-random-integer-form s2))))))
,(make-random-integer-form s2))))))
;; Binary op
;; Binary op
(
8
0
(
6
0
(let* ((op (random-from-seq
(let* ((op (random-from-seq
'(+ - * * logand min max min max ;; gcd lcm
'(+ - * * logand min max min max ;; gcd lcm
;; #-:allegro
;; #-:allegro
...
@@ -572,7 +574,7 @@
...
@@ -572,7 +574,7 @@
(try -1)
(try -1)
(prune-fn form try-fn))
(prune-fn form try-fn))
((abs 1+ 1- identity values progn)
((abs 1+ 1- identity values progn
prog1 multiple-value-prog1 unwind-protect
)
(mapc #'try args)
(mapc #'try args)
(prune-fn form try-fn))
(prune-fn form try-fn))
...
...
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