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 / s3 / mut / e16.to
| 1 | fuelc get line 0 1 |
| 2 | tok |
| 3 | eol |
| 4 | addname w 0 t 0 9 0 |
| 5 | n = get nb 0 |
| 6 | pushb 0 5 0 sub get nn 0 1 t |
| 7 | pushnh sn sh |
| 8 | put a_ar add get a_rb 62 n get cur 0 |
| 9 | put a_ar add get a_rb 63 n get line 0 |
| 10 | put a_ar add get a_rb 64 n 0 |
| 11 | put a_ar add get a_rb 65 n kk |
| 12 | put a_ar add get a_rb 66 n get nn 0 |
| 13 | put a_ar add get a_rb 67 n get held 0 |
| 14 | put fzone 0 add get fzone 0 1 |
| 15 | cp_head get cur 0 get line 0 |
| 16 | cp_skip |
| 17 | end |
| 18 | |
| 19 | note fuelc: charge n to the function's fuel at the construct on line ln, before anything of it expands; a |
| 20 | note total above 65536 is error 14 on line ln (E14, E16) |
| 21 | fn fuelc ln ulong n ulong to void |
| 22 | if gt add get fuel 0 n 65536 |
| 23 | put line 0 ln |
| 24 | note d2site 309|fuelc: capacity exceeded (the host refused to grow the compiler's arena or its memory ceiling OMC_MEMORY_MAX was reached, value nesting past omc's own stack, the program image, or an OM-2 expansion bound); condition if gt add get fuel 0 n 65536 |
| 25 | put d2site 0 309 |
| 26 | fail 14 |
| 27 | end |
| 28 | put fuel 0 add get fuel 0 n |
| 29 | end |
| 30 | |
| 31 | note s_unr: the end of an unrolled body: read it again with the next value of i, or close the block |
| 32 | fn s_unr i ulong to void |
| 33 | eol |
| 34 | it = add get a_ar add get a_rb 64 i 1 |
| 35 | if lt it get a_ar add get a_rb 65 i |
| 36 | fuelc sub a_g 63 i 1 1 |
| 37 | put a_ar add get a_rb 64 i it |