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 / qualification / om2 / sec / s5s7 / f5-branch.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 5 fresh, lines 122-124: a write in one branch only is intersected with the fall-through |
| 3 | note path at the join, so the constant get of element 0 is error 27 (obligation=init). |
| 4 | note Union-join mutant: accepts and prints 7 (main passes 1, the write runs). |
| 5 | om2 |
| 6 | fn f s edit uchar 8 fresh c ulong to ulong |
| 7 | if eq c 1 |
| 8 | put s 0 7 |
| 9 | end |
| 10 | ret ulong get s 0 |
| 11 | end |
| 12 | fn main to int |
| 13 | a = new uchar 8 0 |
| 14 | putd f a 1 |
| 15 | ret 0 |
| 16 | end |