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-execcap.om
| 1 | note ham/ngrun-hostwords-4 (omc 564c5835 exec argv limits): an execprog packet of count 1025, one past the |
| 2 | note 1024-record cap of an exec argument packet (first record "x", then 1024 empty records, 2053 bytes), |
| 3 | note traps 3 before any kernel call (OMEGESE s10); ngrun refuses execprog (115) only after that check. |
| 4 | fn main to int |
| 5 | a = new uchar 2053 0 |
| 6 | put a 0 1 |
| 7 | put a 1 4 |
| 8 | put a 2 1 |
| 9 | put a 4 120 |
| 10 | k = execprog a 0 2053 |
| 11 | ret int and k 255 |
| 12 | end |