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 / tests / ir / x-envcap.om
| 1 | note bay 3 review of 2d6ed949: execenv whose environment packet holds 65 nonempty records ("A=1"), one past |
| 2 | note the 64-record cap that the environment keeps under omc 564c5835, traps 3 before any kernel call |
| 3 | note (OMEGESE s10); the exec argument cap (1024 records) must not reach the environment packet. |
| 4 | fn main to int |
| 5 | a = new uchar 5 0 |
| 6 | put a 0 1 |
| 7 | put a 2 1 |
| 8 | put a 4 120 |
| 9 | b = new uchar 327 0 |
| 10 | put b 0 65 |
| 11 | for j ulong 65 |
| 12 | q = add 2 mul j 5 |
| 13 | put b q 3 |
| 14 | put b add q 2 65 |
| 15 | put b add q 3 61 |
| 16 | put b add q 4 49 |
| 17 | end |
| 18 | k = execenv a 0 5 b 0 327 |
| 19 | ret int and k 255 |
| 20 | end |