sovereign-intelligence
Front door to Drake Stapleton's sovereign stack.
Brought by drakestapleton
sovereign-intelligence / tests / omc / examples / count_trap3_wrap.om
| 1 | note count_trap3_wrap: off + n is never formed, so it cannot wrap: off 2^64-1 and n 2 would sum to 1, |
| 2 | note inside a 16-byte array, but off > len A - n, so count traps 3, exit 103 |
| 3 | om2 |
| 4 | text before "before\n" |
| 5 | fn main to int |
| 6 | k = write 1 before 0 len before |
| 7 | a = new uchar 16 10 |
| 8 | o = ulong 18446744073709551615 |
| 9 | n = count a o 2 10 |
| 10 | ret int n |
| 11 | end |