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/om/sha256/om2-evidence/deskcheck/RESULT.txt # 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 / om / sha256 / om2-evidence / deskcheck / RESULT.txt` 37 lines ยท 2642 bytes Raw Blame History 1 L838 desk check of om/sha256/sha256-om2.om (evidence class SOURCE; NOT compiler or machine evidence) 2 interp.py interprets the OM-2 subset the unit uses, as written in spec/omegese-om2.md and OMEGESE.md 3 section 9 (prefix words of fixed arity, uint/ulong wrap, rotr, rolled and unrolled for, layout fields 4 little endian, run-time index checks). It is the author's reading of the language, run by python3 5 3.12.3 against hashlib (OpenSSL 3.0.13). It cannot show that an OM-2 omc accepts the unit or emits 6 correct code; that waits for compiler-s1..s4 and L836. 7 8 Cases, seed 838: lengths 0..259, 447, 448, 511, 512, 1000, 4095, 4096, 4097, 12345, each as 9 sha256_hash; init + random update splits (0, 1, 3, 55, 56, 63, 64, 65, 200 bytes, plus empty 10 updates) + final; copy of a live context after the first half, both continued (erratum E3); 11 init/update/final on a context that was already finalized. 12 python3 interp.py om/sha256/sha256-om2.om -> desk-check cases=1076 fail=0 13 After erratum E5 (count is a scalar field; interp.py reads `field F T at OFF E` as a scalar): 14 python3 interp.py om/sha256/sha256-om2.om -> desk-check cases=1076 fail=0 15 mutant s/^put c count 0$/put c count 1/ -> fail=807 16 17 Mutants (sed on a copy; each must fail): 18 s/rotr e 11/rotr e 12/ fail=1076 19 s/^put k 5 0x59f111f1$/put k 5 0x59f111f0/ fail=1076 20 s/^put p k 0x80$/put p k 0x81/ fail=1076 21 s/lt n sub 64 bi/le n sub 64 bi/ fail=43 (a full buffer left uncompressed) 22 s/^b = a$/b = c/ fail=1076 23 24 Rolled-loop pass limit (AbiLane report; omc s_for/s_while: trap 4 after `1000000` passes). The unit 25 now hashes whole blocks through blocks/run: runs of 2^25 bytes, nested so no loop passes 2^20 times. 26 interp.py traps 4 when a rolled loop's count exceeds LIMIT (default `1000000`) and models part 27 (checks o <= len, then k <= len - o). 28 python3 interp.py om/sha256/sha256-om2.om cases=1076 fail=0 29 Scaled test (scale.sed: runs of 16 blocks, so every level is exercised by lengths up to 49216): 30 LIMIT=63 EXTRA=16383,16384,40000,49216 python3 interp.py scaled.om cases=1092 fail=0 31 Scaled mutants (LIMIT=63, EXTRA=16383,16384,16448,40000,49216): 32 inner run loop 0x10 -> 0x8 TRAP 4 at 49216, fail=4 33 middle mask 0xf -> 0x7 TRAP 4 at 49216, fail=5 34 last run length -> 0 fail=668 35 run step shr 6 -> shr 7 fail=681 36 A wrong split only moves bytes into the final run, so digests stay right; the pass limit is what 37 catches it, which is why the scaled test sets LIMIT.