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