* removed stuff from lib directory.

This commit is contained in:
Abdulaziz Ghuloum 2007-12-01 01:19:45 -05:00
parent 33d04c8d1e
commit 6294ea7052
12 changed files with 52 additions and 46 deletions

View File

@ -1136,6 +1136,7 @@
[(fix lhs* rhs* body) (known-value body)] [(fix lhs* rhs* body) (known-value body)]
[(seq e0 e1) (known-value e1)] [(seq e0 e1) (known-value e1)]
[else #f])) [else #f]))
(define (same-values? x y) (define (same-values? x y)
(cond (cond
[(constant? x) [(constant? x)
@ -1174,7 +1175,9 @@
[(var-referenced lhs) [(var-referenced lhs)
(values (cons lhs lhs*) (cons rhs rhs*) eff*)] (values (cons lhs lhs*) (cons rhs rhs*) eff*)]
[else [else
(values lhs* rhs* (mk-seq eff* (Effect rhs)))])))])) (values lhs* rhs*
(mk-seq eff*
(Effect rhs)))])))]))
(define (partition/assign-known lhs* rhs*) (define (partition/assign-known lhs* rhs*)
(cond (cond
[(null? lhs*) (values '() '() the-void)] [(null? lhs*) (values '() '() the-void)]
@ -1225,6 +1228,7 @@
(make-clambda-case info (Value body))])) (make-clambda-case info (Value body))]))
cls*) cls*)
cp free name)) cp free name))
(define (MKEffect ctxt)
(define (Effect x) (define (Effect x)
(struct-case x (struct-case x
[(constant) the-void] [(constant) the-void]
@ -1245,7 +1249,7 @@
[(seq e0 e1) (mk-seq (Effect e0) (Effect e1))] [(seq e0 e1) (mk-seq (Effect e0) (Effect e1))]
[(clambda g cls*) the-void] [(clambda g cls*) the-void]
[(primcall rator rand*) [(primcall rator rand*)
(optimize-primcall 'e rator (map Value rand*))] (optimize-primcall ctxt rator (map Value rand*))]
[(funcall rator rand*) [(funcall rator rand*)
(let ([rator (Value rator)]) (let ([rator (Value rator)])
(cond (cond
@ -1254,7 +1258,7 @@
(struct-case v (struct-case v
[(primref op) [(primref op)
(mk-seq rator (mk-seq rator
(optimize-primcall 'e op (map Value rand*)))] (optimize-primcall ctxt op (map Value rand*)))]
[else [else
(make-funcall rator (map Value rand*))]))] (make-funcall rator (map Value rand*))]))]
[else (make-funcall rator (map Value rand*))]))] [else (make-funcall rator (map Value rand*))]))]
@ -1269,6 +1273,8 @@
(make-assign lhs (Value rhs)) (make-assign lhs (Value rhs))
(Effect rhs))] (Effect rhs))]
[else (error who "invalid effect expression" (unparse x))])) [else (error who "invalid effect expression" (unparse x))]))
Effect)
(define Effect (MKEffect 'e))
(define (Pred x) (define (Pred x)
(struct-case x (struct-case x
[(constant) x] [(constant) x]

View File

@ -1 +1 @@
1151 1153