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 / om2 / s4 / p-bad-fresh.om
| 1 | note S4 with S3 fresh (spec 5): a fresh array passed to part is error 27 on the call line 10. |
| 2 | om2 |
| 3 | fn h v view uchar * to ulong |
| 4 | ret len v |
| 5 | end |
| 6 | fn f s edit uchar 4 fresh to ulong |
| 7 | for i ulong 4 unroll |
| 8 | put s i 1 |
| 9 | end |
| 10 | ret h part s 0 2 |
| 11 | end |
| 12 | fn main to int |
| 13 | a = new uchar 4 0 |
| 14 | ret int f a |
| 15 | end |