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-execbig.om
| 1 | note ham/ngrun-hostwords-4 (omc 564c5835 exec argv limits): a well-formed execprog packet of 65537 bytes (count 1, |
| 2 | note one record of 65533 bytes), one past the 65536-byte cap of an exec argument packet, traps 3 on its length |
| 3 | note before any kernel call (OMEGESE s10); ngrun refuses execprog (115) only after that check. Every other packet |
| 4 | note rule holds, so only the byte cap can trap (bay 3 review of 2d6ed949: a zero-filled packet also traps on its |
| 5 | note count 0 and did not pin the cap). |
| 6 | fn main to int |
| 7 | a = new uchar 65537 120 |
| 8 | put a 0 1 |
| 9 | put a 1 0 |
| 10 | put a 2 253 |
| 11 | put a 3 255 |
| 12 | k = execprog a 0 65537 |
| 13 | ret int and k 255 |
| 14 | end |