diff options
author | dos-reis <gdr@axiomatics.org> | 2009-03-01 05:22:19 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2009-03-01 05:22:19 +0000 |
commit | c42526006076b88ff2755f33eb1defd2e455e67e (patch) | |
tree | 975c82ab94b65bc41169dd0c339700d4a2efc825 /src/algebra/strap/ORDRING-.lsp | |
parent | 4311f047fffe6dbc6f58ba4f37f074cc9d155630 (diff) | |
download | open-axiom-c42526006076b88ff2755f33eb1defd2e455e67e.tar.gz |
Optimization should not change slot numbers.
Diffstat (limited to 'src/algebra/strap/ORDRING-.lsp')
-rw-r--r-- | src/algebra/strap/ORDRING-.lsp | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/algebra/strap/ORDRING-.lsp b/src/algebra/strap/ORDRING-.lsp index c5eb9558..5a7d725e 100644 --- a/src/algebra/strap/ORDRING-.lsp +++ b/src/algebra/strap/ORDRING-.lsp @@ -22,16 +22,16 @@ (DEFUN |ORDRING-;sign;SI;3| (|x| $) (COND ((SPADCALL |x| (|getShellEntry| $ 12)) 1) - ((SPADCALL |x| (|getShellEntry| $ 13)) -1) - ((SPADCALL |x| (|getShellEntry| $ 15)) 0) + ((SPADCALL |x| (|getShellEntry| $ 15)) -1) + ((SPADCALL |x| (|getShellEntry| $ 18)) 0) ('T (|error| "x satisfies neither positive?, negative? or zero?")))) (DEFUN |ORDRING-;abs;2S;4| (|x| $) (COND ((SPADCALL |x| (|getShellEntry| $ 12)) |x|) - ((SPADCALL |x| (|getShellEntry| $ 13)) - (SPADCALL |x| (|getShellEntry| $ 18))) - ((SPADCALL |x| (|getShellEntry| $ 15)) (|spadConstant| $ 7)) + ((SPADCALL |x| (|getShellEntry| $ 15)) + (SPADCALL |x| (|getShellEntry| $ 21))) + ((SPADCALL |x| (|getShellEntry| $ 18)) (|spadConstant| $ 7)) ('T (|error| "x satisfies neither positive?, negative? or zero?")))) (DEFUN |OrderedRing&| (|#1|) @@ -40,7 +40,7 @@ (PROGN (LETT |dv$1| (|devaluate| |#1|) . #0=(|OrderedRing&|)) (LETT |dv$| (LIST '|OrderedRing&| |dv$1|) . #0#) - (LETT $ (|newShell| 20) . #0#) + (LETT $ (|newShell| 23) . #0#) (|setShellEntry| $ 0 |dv$|) (|setShellEntry| $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#)) @@ -51,16 +51,18 @@ (MAKEPROP '|OrderedRing&| '|infovec| (LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (0 . |Zero|) (|Boolean|) (4 . <) |ORDRING-;positive?;SB;1| - |ORDRING-;negative?;SB;2| (10 . |positive?|) - (15 . |negative?|) (20 . |One|) (24 . |zero?|) (|Integer|) - |ORDRING-;sign;SI;3| (29 . -) |ORDRING-;abs;2S;4|) - '#(|sign| 34 |positive?| 39 |negative?| 44 |abs| 49) 'NIL + |ORDRING-;negative?;SB;2| (10 . |positive?|) (|Integer|) + (15 . |One|) (19 . |negative?|) (24 . |One|) (28 . -) + (33 . |zero?|) (38 . |Zero|) |ORDRING-;sign;SI;3| (42 . -) + |ORDRING-;abs;2S;4|) + '#(|sign| 47 |positive?| 52 |negative?| 57 |abs| 62) 'NIL (CONS (|makeByteWordVec2| 1 'NIL) (CONS '#() (CONS '#() - (|makeByteWordVec2| 19 - '(0 6 0 7 2 6 8 0 0 9 1 6 8 0 12 1 6 8 - 0 13 0 6 0 14 1 6 8 0 15 1 6 0 0 18 1 - 0 16 0 17 1 0 8 0 10 1 0 8 0 11 1 0 0 - 0 19))))) + (|makeByteWordVec2| 22 + '(0 6 0 7 2 6 8 0 0 9 1 6 8 0 12 0 13 0 + 14 1 6 8 0 15 0 6 0 16 1 13 0 0 17 1 + 6 8 0 18 0 13 0 19 1 6 0 0 21 1 0 13 + 0 20 1 0 8 0 10 1 0 8 0 11 1 0 0 0 + 22))))) '|lookupComplete|)) |