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 / ng / front / cases / contract-release-noeval.om
| 1 | om2 release |
| 2 | global a int 1 |
| 3 | fn f x int to int |
| 4 | requires eq div x 0 0 |
| 5 | ensures eq get a add ulong x 2 result |
| 6 | ret x |
| 7 | end |
| 8 | fn main to int |
| 9 | z = ulong 9 |
| 10 | while false |
| 11 | invariant eq get a z 0 |
| 12 | end |
| 13 | ret f 0 |
| 14 | end |