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 / si / benchmarks / native / neuralese / learncase.om
| 1 | note Public synthetic probe: field1=bit0; one score is exactly1 and the rest0. |
| 2 | note Filed IEEE1 carrier also occurs in NL1 learned.stdout at its source-frozen run. |
| 3 | text RG "17,1,0,1,0,1,0,0,0,4607182418800017408,0,0,0,1,0,0,0,0,0,0,0\n" |
| 4 | text RP "17,1,0,1,0,1,0,0,0,4607182418800017408,0,0,0,0,0,0,0,0,0,0,0\n" |
| 5 | text RA "17,1,0,1,0,1,0,0,0,4607182418800017408,0,0,0,1,0,0,0,1,0,0,0\n" |
| 6 | text RW "17,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0\n" |
| 7 | text NH "NL6ROW good=" |
| 8 | text NR " refused=" |
| 9 | fn fill data view uchar * to void |
| 10 | for i ulong len data |
| 11 | put Buf i get data i |
| 12 | end |
| 13 | put Io 1 0 |
| 14 | put Io 2 len data |
| 15 | end |
| 16 | fn main to int |
| 17 | a = new uchar 1 0 |
| 18 | if ne argcnt 2 |
| 19 | invalid |
| 20 | end |
| 21 | n = argread 1 a 0 1 |
| 22 | if ne n 1 |
| 23 | invalid |
| 24 | end |
| 25 | mode = get a 0 |
| 26 | if or lt mode 48 gt mode 53 |
| 27 | invalid |
| 28 | end |
| 29 | fill RG |
| 30 | if eq mode 49 |
| 31 | fill RP |
| 32 | end |
| 33 | if eq mode 50 |
| 34 | fill RA |
| 35 | end |
| 36 | if eq mode 53 |
| 37 | fill RW |
| 38 | end |
| 39 | row |
| 40 | if eq mode 51 |
| 41 | put Io 1 0 |
| 42 | row |
| 43 | end |
| 44 | if eq mode 52 |
| 45 | finish |
| 46 | end |
| 47 | idx = mul mul ulong 2 5 3 |
| 48 | putout NH len NH |
| 49 | num get Good idx |
| 50 | putout NR len NR |
| 51 | num get Refuse idx |
| 52 | putout LF 1 |
| 53 | ret 0 |
| 54 | end |