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 / native / orig4 / shadowmain.om

21 lines · 421 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note omega-mv#731 ORIG-4 advisor entry point: the last file of the shadow program unit
3note (after shadow.om). First stdin byte: S shadow advice (hvrun), G fixture (hvgen),
4note H record hash (hvhash); anything else exits 64.
5fn main to int
6r = read 0 HM 0 1
7if ne r 1
8ret 64
9end
10m = get HM 0
11if eq m 83
12ret hvrun
13end
14if eq m 71
15ret hvgen
16end
17if eq m 72
18ret hvhash
19end
20ret 64
21end