Prevent crash caused by SBCL compiler's optimization.
Toshimi Sawada
5 years ago
202 | 202 | ;;; returns the image of variable under sigma. |
203 | 203 | ;;; |
204 | 204 | (defmacro variable-image (*_sigma *_variable) |
205 | `(cdr (assoc ,*_variable ,*_sigma :test #'variable-eq))) | |
205 | `(and ,*_sigma (cdr (assoc ,*_variable ,*_sigma :test #'variable-eq)))) | |
206 | 206 | |
207 | 207 | (defmacro variable-image-fast (_*sigma _*variable) |
208 | 208 | `(cdr (assoc ,_*variable ,_*sigma :test #'eq))) |
209 | 209 | |
210 | 210 | (defmacro variable-image-slow (_*sigma _*variable) |
211 | `(cdr (assoc ,_*variable ,_*sigma :test #'variable-equal))) | |
211 | `(and ,_*sigma (cdr (assoc ,_*variable ,_*sigma :test #'variable-equal)))) | |
212 | 212 | |
213 | 213 | ;;; SUBSTITUTION-LIST-OF-PAIRS sigma |
214 | 214 | ;;; returns the list of pair in substitution- |