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 / seed / omc / sites / found-rdval-13.om
| 1 | note sites: found by a one-token change of a tracked program; reaches the omc error site in rdval (code 7) |
| 2 | note S3 abstract: a constructor body that is not exactly the dup32 form keeps the runtime check; |
| 3 | note here the value breaks the invariant for every x, so the program traps 10 (exit 110) |
| 4 | om2 |
| 5 | abstract dup32 ulong |
| 6 | holds dup32 dup32 |
| 7 | fn dup32mk x uint to dup32 |
| 8 | ret seal dup32 or shl ulong x 32 ulong add x 1 |
| 9 | end |
| 10 | fn main to int |
| 11 | d neg dup32mk 5 |
| 12 | ret int and open d 1 |
| 13 | end |