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 / aienux / disk / tests / omega_nvme_failstop.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note Verification-only: an uncertain completion must reject a second read and reopen. |
| 3 | fn main to int |
| 4 | getmanifest |
| 5 | r = initialize |
| 6 | if ne r 0 |
| 7 | report r |
| 8 | ret r |
| 9 | end |
| 10 | r = readblocks man64 48 man32 56 |
| 11 | if ne get st 0 0 |
| 12 | again = readblocks man64 48 man32 56 |
| 13 | if ne again 10 |
| 14 | ret 91 |
| 15 | end |
| 16 | again = initialize |
| 17 | if ne again 10 |
| 18 | ret 92 |
| 19 | end |
| 20 | end |
| 21 | report r |
| 22 | ret r |
| 23 | end |