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/qualification/security673/resources/exhaust.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 / qualification / security673 / resources / exhaust.om` 98 lines ยท 1569 bytes Raw Blame History 1 note Finite differential stock test: 7 capacities x8 first q x8 second q =448. 2 note All eight dimensions equal in this enumeration; heterogeneous rollback is in demo. 3 text pass "PASS conservation finite differential 448 cases; conservative restart/fuel\n" 4 text fail "FAIL conservation_or_retention\n" 5 fn onecase cap ulong first ulong second ulong to bool 6 s = new ulong 64 0 7 t = new ulong 8 0 8 q = new ulong 8 first 9 old = new ulong 64 0 10 if ne setup s cap 0 11 ret false 12 end 13 token t 0 1 1 14 copy64 old s 15 r = rv_reserve s t q 1 16 if le first cap 17 if ne r 0 18 ret false 19 end 20 else 21 if or ne r 3 not same s old 22 ret false 23 end 24 end 25 left = cap 26 if eq r 0 27 left = sub left first 28 end 29 token t 1 get s 56 1 30 for d ulong 8 31 put q d second 32 end 33 copy64 old s 34 r = rv_reserve s t q 1 35 if le second left 36 if ne r 0 37 ret false 38 end 39 else 40 if or ne r 3 not same s old 41 ret false 42 end 43 end 44 ret eq rv_valid s 0 45 end 46 fn retained to bool 47 s = new ulong 64 0 48 t = new ulong 8 0 49 q = new ulong 8 4 50 z = new ulong 8 0 51 old = new ulong 64 0 52 if ne setup s 6 0 53 ret false 54 end 55 token t 0 1 1 56 if ne rv_reserve s t q 100 0 57 ret false 58 end 59 if ne rv_uncertain s t 4 60 ret false 61 end 62 copy64 old s 63 if ne rv_recover s z 0 64 ret false 65 end 66 if not same s old 67 ret false 68 end 69 token t 1 2 1 70 for d ulong 8 71 put q d 1 72 end 73 if ne rv_reserve s t q 1 3 74 ret false 75 end 76 if not same s old 77 ret false 78 end 79 ret eq rv_valid s 0 80 end 81 fn main to int 82 for cap ulong 7 83 for first ulong 8 84 for second ulong 8 85 if not onecase cap first second 86 n = write 1 fail 0 len fail 87 ret 1 88 end 89 end 90 end 91 end 92 if not retained 93 n = write 1 fail 0 len fail 94 ret 2 95 end 96 n = write 1 pass 0 len pass 97 ret 0 98 end