omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / apps / aienos-site / om / omega-reference / vendor / examples / trap1_overflow.om
| 1 | note trap1_overflow: signed add past the maximum traps 1, exit 101; stdout written before stays |
| 2 | text before "before\n" |
| 3 | fn main to int |
| 4 | k = write 1 before 0 len before |
| 5 | x = long 9223372036854775807 |
| 6 | y = add x 1 |
| 7 | ret 0 |
| 8 | end |