aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/INS-.lsp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-07-22 16:15:30 +0000
committerdos-reis <gdr@axiomatics.org>2010-07-22 16:15:30 +0000
commit510c2f70ce377d60eed221e46294767f7f548f5d (patch)
treedb7b49602660346425298790df1ffcb9ad5f7c26 /src/algebra/strap/INS-.lsp
parentc1da0d2561b27741a6feb73336b0712f5ddc7e97 (diff)
downloadopen-axiom-510c2f70ce377d60eed221e46294767f7f548f5d.tar.gz
* interp/g-opt.boot (simplifyVMForm): New.
(optRetract): Simplify the predicate when possible. (optNot): New transformer. (optAnd): Likewise. (optOr): Likewise. (optIlt): Likewise. (optIle): Likewise. (optIgt): Likewise. (optIge): Likewise.
Diffstat (limited to 'src/algebra/strap/INS-.lsp')
-rw-r--r--src/algebra/strap/INS-.lsp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/strap/INS-.lsp b/src/algebra/strap/INS-.lsp
index 794d4374..6df95b2e 100644
--- a/src/algebra/strap/INS-.lsp
+++ b/src/algebra/strap/INS-.lsp
@@ -125,10 +125,10 @@
(|error| "euclideanSize called on zero"))
((SPADCALL |x| (|spadConstant| $ 10) (|getShellEntry| $ 28))
(LET ((#0=#:G1426 (- (SPADCALL |x| (|getShellEntry| $ 30)))))
- (|check-subtype| (>= #0# 0) '(|NonNegativeInteger|) #0#)))
+ (|check-subtype| (NOT (MINUSP #0#)) '(|NonNegativeInteger|) #0#)))
('T
(LET ((#1=#:G1427 (SPADCALL |x| (|getShellEntry| $ 30))))
- (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#)))))
+ (|check-subtype| (NOT (MINUSP #1#)) '(|NonNegativeInteger|) #1#)))))
(DEFUN |INS-;convert;SF;10| (|x| $)
(SPADCALL (SPADCALL |x| (|getShellEntry| $ 30))