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-envbig.om
| 1 | note bay 3 review of 2d6ed949: execenv whose environment packet is well formed but 4097 bytes (one record of |
| 2 | note 4093 bytes), one past the 4096-byte cap that the environment keeps under omc 564c5835, traps 3 before any |
| 3 | note kernel call (OMEGESE s10); the exec argument caps (65536 bytes) must not reach the environment packet. |
| 4 | fn main to int |
| 5 | a = new uchar 5 1 |
| 6 | put a 1 0 |
| 7 | put a 3 0 |
| 8 | put a 4 120 |
| 9 | b = new uchar 4097 65 |
| 10 | put b 0 1 |
| 11 | put b 1 0 |
| 12 | put b 2 253 |
| 13 | put b 3 15 |
| 14 | k = execenv a 0 5 b 0 4097 |
| 15 | ret int and k 255 |
| 16 | end |