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/seed/ng/a64/tests/front/env-slices.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 / seed / ng / a64 / tests / front / env-slices.om` 56 lines ยท 818 bytes Raw Blame History 1 note Native environment slice and refusal regression. 2 note Exercise exact slices and refusal atomicity without printing process environment contents. 3 global ea uchar 2054 4 global eb uchar 2054 5 fn main to int 6 n = ulong envcnt 7 for i ulong n 8 for j ulong len ea 9 put ea j 90 10 put eb j 77 11 end 12 k = envread i ea 3 2048 13 if eq k -105 14 for j ulong len ea 15 if ne get ea j 90 16 ret 100 17 end 18 end 19 continue 20 end 21 if lt k 0 22 ret 101 23 end 24 z = ulong k 25 if or ne get ea 2 90 ne get ea add 3 z 90 26 ret 102 27 end 28 q = envread i eb 2 z 29 if ne q k 30 ret 103 31 end 32 if or ne get eb 1 77 ne get eb add 2 z 77 33 ret 104 34 end 35 for j ulong z 36 if ne get ea add 3 j get eb add 2 j 37 ret 105 38 end 39 end 40 if gt z 0 41 for j ulong len eb 42 put eb j 77 43 end 44 q = envread i eb 2 sub z 1 45 if ne q -105 46 ret 106 47 end 48 for j ulong len eb 49 if ne get eb j 77 50 ret 107 51 end 52 end 53 end 54 end 55 ret int and n 63 56 end