Implemented a basic optimization

This commit is contained in:
2024-07-09 11:43:33 +02:00
parent 4a7bb9500a
commit 59d6653eba
8 changed files with 48 additions and 14 deletions

View File

@ -0,0 +1,12 @@
main() {
syscall(60, f(1))
}
f(x) {
y := g()
return x + y
}
g() {
return 2
}