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 / seed / qualification / ddc650 / nondet.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note seed/qualification/ddc650/nondet.om: negative-control fixture for ddc.om, not a compiler. |
| 3 | note Passed as OM4 (with its own SHA-256 as the pin), it writes the ELF magic followed by the |
| 4 | note monotonic clock, so two "stage1" builds differ and ddc.om must answer INVALID. |
| 5 | global b uchar 12 |
| 6 | fn main to int |
| 7 | put b 0 127 |
| 8 | put b 1 69 |
| 9 | put b 2 76 |
| 10 | put b 3 70 |
| 11 | t = monons |
| 12 | for i ulong 8 |
| 13 | put b add 4 i uchar and shr t mul i 8 255 |
| 14 | end |
| 15 | r = write 1 b 0 12 |
| 16 | if ne r 12 |
| 17 | ret 1 |
| 18 | end |
| 19 | ret 0 |
| 20 | end |