Implemented a basic optimization
This commit is contained in:
parent
58d3aaf21d
commit
6102ab466a
8 changed files with 48 additions and 14 deletions
|
@ -1,12 +0,0 @@
|
|||
main() {
|
||||
syscall(60, f(1))
|
||||
}
|
||||
|
||||
f(x) {
|
||||
y := g()
|
||||
return x + y
|
||||
}
|
||||
|
||||
g() {
|
||||
return 2
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue