summaryrefslogtreecommitdiff
path: root/test.lang
diff options
context:
space:
mode:
authorWormHeamer2025-08-10 23:36:33 -0400
committerWormHeamer2025-08-10 23:36:33 -0400
commit27418008d4b492aff432c44fc92cd8485bcd5cf7 (patch)
treecee93f42bb37f1e678557c8706bf5f73eb8628b7 /test.lang
parent6baa342580d525250f0842015b8f59ad19b7d540 (diff)
add idempotent optimizations
Diffstat (limited to 'test.lang')
-rw-r--r--test.lang6
1 files changed, 1 insertions, 5 deletions
diff --git a/test.lang b/test.lang
index b409560..3448ea8 100644
--- a/test.lang
+++ b/test.lang
@@ -6,10 +6,6 @@
return x + a
}*/
-func one i64 {
- return 1
-}
-
func main(a, b i64) i64 {
- return a & a & b & a & b & b & b
+ return (a & b) & b & a
}