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 / turing / origselmain.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note omega-mv#700 ORIGSEL evaluator entry point: the last file of the unit (after origsel.om). |
| 3 | note First stdin byte: R report, H report + h1, P TPS1, Y TSY1, M model code, A audit file C', |
| 4 | note N null fixture, Q / W synthetic coder streams, K image comparison, B band check, F FNV |
| 5 | note bytes; anything else exits 64. |
| 6 | fn main to int |
| 7 | r = read 0 TQM 0 1 |
| 8 | if ne r 1 |
| 9 | ret 64 |
| 10 | end |
| 11 | m = get TQM 0 |
| 12 | if eq m 75 |
| 13 | ret tqcmp |
| 14 | end |
| 15 | if eq m 66 |
| 16 | ret tqband |
| 17 | end |
| 18 | if eq m 70 |
| 19 | ret tqfnvm |
| 20 | end |
| 21 | ret tqrun ulong m |
| 22 | end |