summaryrefslogtreecommitdiff
path: root/test.lang
diff options
context:
space:
mode:
authorWormHeamer2025-08-05 01:02:45 -0400
committerWormHeamer2025-08-05 01:02:45 -0400
commita4f6a42d8f76a34b58d7b8d8963cb268c8962489 (patch)
tree118041706259cb30ba1d10fff0a1286e5a1b1fac /test.lang
parent0c9229c4147e0e3d4c065b36326e0e0b555f3441 (diff)
known-not-equivalent identities: a [+/-] lit[x, x =/= 0]
Diffstat (limited to 'test.lang')
-rw-r--r--test.lang2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.lang b/test.lang
index 1d84f4b..1eee23a 100644
--- a/test.lang
+++ b/test.lang
@@ -11,5 +11,5 @@
proc main(a i64) {
let x = (a + -a) = (a xor a)
let y = (a + a) = (a * 2)
- return x & y & (a = a) & ((a + 2) <> a) & (a = ~a)
+ return (x & y & (a = a) & (a = ~a)) | ((a + 2) <> a)
}