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/om2/oracle/leak/fuzz.py # 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 / om2 / oracle / leak / fuzz.py` 79 lines ยท 2964 bytes Raw Blame History 1 #!/usr/bin/env python3 2 # SPDX-License-Identifier: Apache-2.0 3 # seed/qualification/om2/oracle/leak/fuzz.py: decoder differential for leakscan.om (ORACLE, outside the 4 # delivered closure). It builds a word file from the 32-bit instruction constants written in omc.om 5 # (every number 2^24 .. 2^32-1 outside note lines that GNU objdump decodes as an instruction), each 6 # with random bits flipped in its register/immediate fields (or, for 1 in 6, in all 32 bits), drops 7 # the words that make objdump 2.42 abort (an assertion in aarch64-dis.c on some SVE encodings), and 8 # writes the result. xcheck.py --subset then compares leakscan's listing with objdump's. 9 # Usage: fuzz.py OMC_OM SEED COUNT OUT.bin 10 import random 11 import re 12 import struct 13 import subprocess 14 import sys 15 import tempfile 16 17 18 def objdump_ok(words, tmp): 19 with open(tmp, "wb") as f: 20 f.write(b"".join(struct.pack("