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 / tests / visor / qualification / hostile.omega-session

33 lines · 874 bytes Raw Blame History
1// Lane 8 hostile session: every line below except the lets and `x + y` must fail closed; the process stays alive.
2let x: u64 = 7
3let y: u64 = 11
4
5
6// comment only
7frobnicate
8id aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
9id bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
10id 000000000000000000000000000000000000000000000000000000000000000g
11inspect sha256:junk
12inspect 0000000000000000000000000000000000000000000000000000000000000000
13(x + y
1418446744073709551616: u64
1536893488147419103232: u64
16256: u8
17((((((((((((((((((((((((((((((((((((((((7: u64))))))))))))))))))))))))))))))))))))))))
18x + y
19run _ 1 2 3 4 5 6
20compare x
21let b: bool = true
22realize b
23run sha256:037a444b0f120fd4bbabd0c16ae143599b231d2469827fccbf9bc79c57bab822
24authorize x
25submit
26execute _
27mint cap
28grant x
29effects x
301 + 2
31(1: u32) + (1: u64)
32x == y
33let alive: u64 = 42