Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/tools/omega_ref/stress.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / tools / omega_ref / stress.om` 61 lines ยท 1497 bytes Raw Blame History 1 note Emit a source that exceeds the old interpreter's source, function, name and block tables. 2 note This generator is a test, not a production compiler or an expected compiler artifact. 3 text comment "note padding to cross the former eight mebibyte source ceiling independently\n" 4 text globalstart "global glob" 5 text globalend " ulong 1\n" 6 text functionstart "fn checkfun" 7 text functionmiddle " to ulong\nret " 8 text functionend "\nend\n" 9 text mainstart "fn main to int\n" 10 text namestart "value" 11 text nameend " = ulong 0\n" 12 text blockstart "if true\n" 13 text blockend "end\n" 14 text mainend "ret int sub checkfun1024 1024\nend\n" 15 global digits uchar 32 16 fn number n ulong to void 17 x = n 18 k = ulong 32 19 while true 20 k = sub k 1 21 put digits k uchar add rem x 10 48 22 x = div x 10 23 if eq x 0 24 break 25 end 26 end 27 r = write 1 digits k sub 32 k 28 end 29 fn main to int 30 for i ulong 120000 31 r = write 1 comment 0 len comment 32 end 33 for i ulong 65 34 r = write 1 globalstart 0 len globalstart 35 number i 36 r = write 1 globalend 0 len globalend 37 end 38 for i ulong 1025 39 r = write 1 functionstart 0 len functionstart 40 number i 41 r = write 1 functionmiddle 0 len functionmiddle 42 number i 43 r = write 1 functionend 0 len functionend 44 end 45 r = write 1 mainstart 0 len mainstart 46 if eq argcnt 2 47 for i ulong 1100 48 r = write 1 namestart 0 len namestart 49 number i 50 r = write 1 nameend 0 len nameend 51 end 52 end 53 for i ulong 1100 54 r = write 1 blockstart 0 len blockstart 55 end 56 for i ulong 1100 57 r = write 1 blockend 0 len blockend 58 end 59 r = write 1 mainend 0 len mainend 60 ret 0 61 end