Skip to content

Commit

Permalink
feat: three benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
shamelsameer committed Dec 3, 2024
1 parent 5dc8922 commit 3c7b534
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions benchmarks/ssameer1-const-prop-let.lisp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(let (x) ((+ (+ (+ x x) (+ x x)) (+ x x))))
2 changes: 2 additions & 0 deletions benchmarks/ssameer1-const-prop.lisp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(add1 (sub1 (- (+ (add1 (if (< 1 2) 1 (add1 (sub1 0)))) (sub1 (add1 10))) (add1 (sub1 (+ 1 (add1 2)))))))

3 changes: 3 additions & 0 deletions benchmarks/ssameer1-inlining.lisp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(define (f x) (+ (+ x (+ x x)) x))

(- (f (f (f (f (f (f (f (f 2)))))))) (f (f (f (f (f (f (f (f 1)))))))))

0 comments on commit 3c7b534

Please sign in to comment.