diff options
| author | Rose Hogenson <rhogenson@posteo.net> | 2022-07-02 23:04:28 -0700 |
|---|---|---|
| committer | Rose Hogenson <rhogenson@posteo.net> | 2022-07-02 23:04:28 -0700 |
| commit | 37e086d27d478246e72b8f5c1b75ed5d092495fa (patch) | |
| tree | bae0ac5e3c7f0984ef259da6ad5d6f094b64e588 /csc/ir1.csc | |
| parent | Add update conversion. (diff) | |
| download | chromatopelma-37e086d27d478246e72b8f5c1b75ed5d092495fa.tar.zst | |
Write closure conversion.
I desperately need a diffing library.
Diffstat (limited to 'csc/ir1.csc')
| -rw-r--r-- | csc/ir1.csc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/csc/ir1.csc b/csc/ir1.csc index 73ec703..33588c9 100644 --- a/csc/ir1.csc +++ b/csc/ir1.csc @@ -196,7 +196,7 @@ (expression letrec-expression)) - (define (ir1=?-sametype x y) + (define (ir1=? x y) (cond ((and (constant? x) (constant? y)) (equal? (constant-expression x) (constant-expression y))) @@ -253,12 +253,4 @@ (= (length x-values) (length y-values)) (all ir1=? x-values y-values) (ir1=? (letrec-expression x) (letrec-expression y))))) - (else #f))) - - - (define (ir1=? x y) - (cond - ((ir1=?-sametype x y) #t) - ((and (ir1=?-sametype x x) (ir1=?-sametype y y)) - #f) - (else (error "One or more arguments has a type unknown to ir1=?" x y)))))) + (else #f))))) |
