interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / qualification / ddc650 / nondet.om

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