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-bridge/patches/697a260791c9cc18 # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/omega-bridge#44 (code only) closed derived `697a260791c9cc18` #44 Imported from GitHub aien-dev/omega-bridge#44 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `74fcd43a14d4674bb635ff1b39c083602b8c8a45` · Head `9ebef21e924e63c0054e25054891693893a651b7` ### Fetch it A git bundle of the pull request's head, 18191 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/omega-bridge/patches/697a260791c9cc18.bundle -o 697a260791c9cc18.bundle git fetch 697a260791c9cc18.bundle refs/pull/44/head ``` Raw bundle · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/omega-bridge 44 9ebef21e924e63c0054e25054891693893a651b7 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-bridge","number":44,"url":"https://github.com/aien-dev/omega-bridge/pull/44","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:00Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/README.md b/README.md index 751a48d..8f25f57 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ The existing pinned `OMEGA_NATIVE_OMC` remains required to build the generator. The separately pinned `OMEGA_NATIVE_X86_OMC` compiles both OM-1 and OM-2 inputs; its target directive is not added to the source identity. Pins and the exact generator contract are in [native call ABI](docs/NATIVE-ABI.md#target-selection-and-compiler-custody). -`--freestanding` remains AArch64-only and refuses x86. Cross-building a library +`--freestanding` also accepts `--target x86linux` (omega-mv#940). Cross-building a library does not execute its callers. QEMU results are emulator evidence, not native x86-64 qualification; native execution is NOT_RUN until exercised on an x86-64 host. The historical AArch64 evidence does not qualify this x86 integration. diff --git a/docs/NATIVE-ABI.md b/docs/NATIVE-ABI.md index 4fc1327..892c042 100644 --- a/docs/NATIVE-ABI.md +++ b/docs/NATIVE-ABI.md @@ -45,8 +45,12 @@ tools/native --target x86linux build/native-x86 \ tests/native/madd.om tests/native/v2/vec.om ``` -The x86 target is hosted Linux x86-64 SysV output. `--freestanding` remains -AArch64-only: combining it with `--target x86linux` refuses with exit 110 before +The x86 target is hosted Linux x86-64 SysV output. With `--freestanding` it emits +the same pure-scalar binding with a SysV adapter that runs on the caller's stack, +keeps the trap anchor in R12 and sets the owned-stack floor R15 to 0 (no bound +check, as in the AArch64 freestanding binding). x86 code bytes are packed as +little-endian `.quad` words plus a `.byte` tail; the assembled bytes are the +compiler's bytes. Before omega-mv#940 the combination refused with exit 110 before creating OUTDIR. An unknown target or malformed option exits 2. A mismatched compiler digest refuses before generating or installing outputs. @@ -126,7 +130,8 @@ At the 62775d2a pin all 150 baseline/output comparisons with `0c4cb9ff` passed byte-for-byte, including unchanged AArch64 freestanding refusals. #26 (`f637021`) then changed AArch64 output on purpose (f32 and ushort array kinds, the Python header), so the parity baseline is now the generator at `f637021`, the last -accepted AArch64 contract; `src/native.om` is unchanged since. The generator at +accepted AArch64 contract; later `src/native.om` changes keep AArch64 output +byte-identical to it (the x86 suite's `aarch64_parity` check). The generator at `f637021^` still matches `0c4cb9ff` on every pre-#26 fixture and output, so the chain back to the pre-x86 generator is unbroken. The receipts retain the earlier failing emulator run rather than rewriting it as a pass. @@ -205,13 +210,16 @@ remains distinct; public `omega_`/`omega2_` exports and compiler machine bytes a `nm` visibility and exact public exports, exercises traps and concurrent threads, and requires a `.globl ombr_enter` emitter mutant to fail linking. -The emitter has finite pools of 4194304 input bytes and 16777216 output bytes for -the complete framed unit set and one generated output. Input must be strictly smaller -than its pool (maximum 4194303 bytes); output may fill its pool exactly. Exhausting +The emitter has finite pools of 16777216 input bytes and 33554432 output bytes (two +16777216-byte pools, the per-pool maximum) for the complete framed unit set and one +generated output. Input must be strictly smaller than its pool (maximum 16777215 +bytes); output may fill its pools exactly. Exhausting a pool traps with resource status 6 (process exit 106), before any generated output is written. This does not relax individual compiler, source-language, slot or unit-count limits. -`tests/native/test_capacity.py` compiles a matching 16-unit frame exceeding the former -1048576-byte input and 4194304-byte output pools, builds and calls both endpoint units, +`tests/native/test_capacity.py` compiles a matching 64-unit frame exceeding the former +4194304-byte input and 16777216-byte output pools, builds and calls both endpoint units +(`cap00`, and `cap63`, whose generated code lies past byte 16777216 and is therefore read +from the second output pool `outc`) plus `cap15`, restores each old pool size as a failing mutant, and checks both current overflow boundaries. Its oversized output control is a hostile framing-only resource probe, not compiler-custody or behavioral evidence for the deliberately mismatched code. diff --git a/evidence/native-x86-pr44-fix/capacity.log b/evidence/native-x86-pr44-fix/capacity.log new file mode 100644 index 0000000..4deed4d --- /dev/null +++ b/evidence/native-x86-pr44-fix/capacity.log @@ -0,0 +1,4 @@ +CAPACITY PASS: current input pool exhaustion exits 106 with no output +CAPACITY PASS: current output pool exhaustion exits 106 with no output +CAPACITY PASS: compiler-built frame 10489536 bytes, C 21025708 bytes, both endpoint calls +CAPACITY PASS: old input/output bound mutants and new input/output overflow controls refuse with no output diff --git a/evidence/native-x86-pr44-fix/freestanding.log b/evidence/native-x86-pr44-fix/freestanding.log new file mode 100644 index 0000000..79f24b6 --- /dev/null +++ b/evidence/native-x86-pr44-fix/freestanding.log @@ -0,0 +1,5 @@ +PASS freestanding epoch increment/MAX trap, nested trap unwind, signed trap and four-thread isolation; GPU_FS_LINK imports and no TLS +PASS freestanding refuses arrays, storage, text, host effects including unused helper and OM-2 before any output +PASS pthread-import emitter mutant rejected by freestanding gate, installed object unchanged +PASS failing/missing symbol inspector and failing import filter refuse; installed object unchanged +PASS source-swap control refuses original non-pure snapshot; reread mutant admits mismatched source/code and is caught diff --git a/evidence/native-x86-pr44-fix/negative.log b/evidence/native-x86-pr44-fix/negative.log new file mode 100644 index 0000000..26e3a15 --- /dev/null +++ b/evidence/native-x86-pr44-fix/negative.log @@ -0,0 +1,12 @@ +== control noop (no-op mutant) +PASS freestanding result-store mutant applies once to xfasm +PASS freestanding-x86 object is x86-64 with only GPU_FS_LINK imports +PASS freestanding x86 epoch/MAX trap, nested and signed trap, four threads EMULATED +PASS freestanding-x86-mutant object is x86-64 with only GPU_FS_LINK imports +FAIL freestanding x86 result-store mutant caught by caller EMULATED +FAILED: ['freestanding x86 result-store mutant caught by caller EMULATED'] + +== control miss (mutant site absent) +FAIL freestanding result-store mutant applies once to xfasm +FAILED: ['freestanding result-store mutant applies once to xfasm'] + diff --git a/evidence/native-x86-pr44-fix/receipt.json b/evidence/native-x86-pr44-fix/receipt.json new file mode 100644 index 0000000..6dbe2a0 --- /dev/null +++ b/evidence/native-x86-pr44-fix/receipt.json @@ -0,0 +1,31 @@ +{ + "schema": 1, + "date": "2026-10-31", + "status": "EMULATED_PASS", + "native_x86": "NOT_RUN", + "gpu": "NOT_RUN", + "pr": "aien-dev/omega-bridge#44", + "bridge_commit": "e32caee1f7e1872f4d827bc21dc3129e638ba39e", + "native_om_sha256": "5ccf97db9b46aea1fc580951d19e36423d94f545650496dcdb7acba99b983b6d", + "tools_native_sha256": "12b98b280347efdbaa4abb721835318f27e248e7c1783a6d6492fa858dd0fd89", + "suite_sha256": "38c4c84394578ab673ac36ee271e868cda11e487ad004192d48f28b168e87d7d", + "capacity_sha256": "0b1ed162a57be5c76249394781cd9314c23a3d2cac9ad6f5e529df1e8f53fd5b", + "freestanding_sha256": "bc92792dc3948f946f3623b34d325f5b7aaf8205181568dfb55517ff02c33b14", + "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a", + "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61", + "qemu_binary_sha256": "fd7ae7768c1d698d387893688d28abde90512f1f445d171a1389110eb7c237ee", + "x86_suite": { + "pass": 316, + "fail": 0, + "verdict": "NATIVE-X86 EMULATED PASS (six languages built and run; native x86 NOT_RUN)" + }, + "aarch64_capacity_pass_lines": 4, + "aarch64_freestanding_pass_lines": 5, + "negative_controls": "negative.log: no-op result-store mutant and absent mutant site each FAIL the freestanding_x86 step", + "logs": { + "capacity.log": "780922128cd2ad39a98cfb85153b2448a3df535219b1224999434d27d77bb386", + "freestanding.log": "3eb80249e49f7b6d71521fcacc4c88adeb3a2de334c77bf57a3a864f39fd421e", + "negative.log": "a3e3f235429b3a9323da88d06eb3ca59b4cd8c7202700c56be7c6abec2c55d7d", + "x86.log": "d2ce6ff6b4f5bff69209976fea0ab4265437f55c5bb935b1733e481eef4a7905" + } +} diff --git a/evidence/native-x86-pr44-fix/x86.log b/evidence/native-x86-pr44-fix/x86.log new file mode 100644 index 0000000..b1773ca --- /dev/null +++ b/evidence/native-x86-pr44-fix/x86.log @@ -0,0 +1,386 @@ +PASS Python is ELF64 x86-64, not the host interpreter +PASS generator compiler pin +PASS x86 compiler pin +INFO x86 compiler sha256=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a +INFO generator compiler sha256=734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61 +PASS x86 Python interpreter and ctypes runtime +PASS tools/native built mixed OM-1/OM-2 x86 library and all bindings +PASS x86 floor uses actual usable stack base, independent of out carve +PASS library ELF machine is x86-64 +PASS original source/compiler identity madd +PASS source snapshot excludes target directive madd +PASS compiler bytes reproduce madd +PASS embedded bytes unchanged madd +PASS original source/compiler identity vec +PASS source snapshot excludes target directive vec +PASS compiler bytes reproduce vec +PASS six-byte JMP/NOP entry slots vec +PASS independent x86 instruction oracle vec +PASS embedded bytes unchanged vec +PASS original source/compiler identity lay +PASS source snapshot excludes target directive lay +PASS compiler bytes reproduce lay +PASS six-byte JMP/NOP entry slots lay +PASS independent x86 instruction oracle lay +PASS embedded bytes unchanged lay +PASS original source/compiler identity one +PASS source snapshot excludes target directive one +PASS compiler bytes reproduce one +PASS embedded bytes unchanged one +PASS exact public ABI symbol set +PASS all runtime/code/entry symbols private +PASS no caller hand-declares Omega ABI +PASS target-independent declarations h +PASS target-independent declarations python +PASS target-independent declarations rust +PASS target-independent declarations zig +PASS target-independent declarations go +PASS target-independent declarations api +PASS target-independent declarations apih +PASS target-independent declarations apic +PASS AArch64 byte parity f637021 big.om c +PASS AArch64 byte parity f637021 big.om h +PASS AArch64 byte parity f637021 big.om python +PASS AArch64 byte parity f637021 big.om rust +PASS AArch64 byte parity f637021 big.om zig +PASS AArch64 byte parity f637021 big.om go +PASS AArch64 byte parity f637021 big.om api +PASS AArch64 byte parity f637021 big.om apih +PASS AArch64 byte parity f637021 big.om apic +INFO exit=110 log=/tmp/prfix/x86run/0071.log +INFO exit=110 log=/tmp/prfix/x86run/0072.log +PASS AArch64 byte parity f637021 big.om freest +PASS AArch64 byte parity f637021 fill.om c +PASS AArch64 byte parity f637021 fill.om h +PASS AArch64 byte parity f637021 fill.om python +PASS AArch64 byte parity f637021 fill.om rust +PASS AArch64 byte parity f637021 fill.om zig +PASS AArch64 byte parity f637021 fill.om go +PASS AArch64 byte parity f637021 fill.om api +PASS AArch64 byte parity f637021 fill.om apih +PASS AArch64 byte parity f637021 fill.om apic +INFO exit=110 log=/tmp/prfix/x86run/0091.log +INFO exit=110 log=/tmp/prfix/x86run/0092.log +PASS AArch64 byte parity f637021 fill.om freest +PASS AArch64 byte parity f637021 fsum.om c +PASS AArch64 byte parity f637021 fsum.om h +PASS AArch64 byte parity f637021 fsum.om python +PASS AArch64 byte parity f637021 fsum.om rust +PASS AArch64 byte parity f637021 fsum.om zig +PASS AArch64 byte parity f637021 fsum.om go +PASS AArch64 byte parity f637021 fsum.om api +PASS AArch64 byte parity f637021 fsum.om apih +PASS AArch64 byte parity f637021 fsum.om apic +INFO exit=110 log=/tmp/prfix/x86run/0111.log +INFO exit=110 log=/tmp/prfix/x86run/0112.log +PASS AArch64 byte parity f637021 fsum.om freest +PASS AArch64 byte parity f637021 g1/calc.lowered.om c +PASS AArch64 byte parity f637021 g1/calc.lowered.om h +PASS AArch64 byte parity f637021 g1/calc.lowered.om python +PASS AArch64 byte parity f637021 g1/calc.lowered.om rust +PASS AArch64 byte parity f637021 g1/calc.lowered.om zig +PASS AArch64 byte parity f637021 g1/calc.lowered.om go +PASS AArch64 byte parity f637021 g1/calc.lowered.om api +PASS AArch64 byte parity f637021 g1/calc.lowered.om apih +PASS AArch64 byte parity f637021 g1/calc.lowered.om apic +INFO exit=110 log=/tmp/prfix/x86run/0131.log +INFO exit=110 log=/tmp/prfix/x86run/0132.log +PASS AArch64 byte parity f637021 g1/calc.lowered.om freest +PASS AArch64 byte parity f637021 g1/calc.om c +PASS AArch64 byte parity f637021 g1/calc.om h +PASS AArch64 byte parity f637021 g1/calc.om python +PASS AArch64 byte parity f637021 g1/calc.om rust +PASS AArch64 byte parity f637021 g1/calc.om zig +PASS AArch64 byte parity f637021 g1/calc.om go +PASS AArch64 byte parity f637021 g1/calc.om api +PASS AArch64 byte parity f637021 g1/calc.om apih +PASS AArch64 byte parity f637021 g1/calc.om apic +INFO exit=110 log=/tmp/prfix/x86run/0151.log +INFO exit=110 log=/tmp/prfix/x86run/0152.log +PASS AArch64 byte parity f637021 g1/calc.om freest +PASS AArch64 byte parity f637021 halve.om c +PASS AArch64 byte parity f637021 halve.om h +PASS AArch64 byte parity f637021 halve.om python +PASS AArch64 byte parity f637021 halve.om rust +PASS AArch64 byte parity f637021 halve.om zig +PASS AArch64 byte parity f637021 halve.om go +PASS AArch64 byte parity f637021 halve.om api +PASS AArch64 byte parity f637021 halve.om apih +PASS AArch64 byte parity f637021 halve.om apic +INFO exit=110 log=/tmp/prfix/x86run/0171.log +INFO exit=110 log=/tmp/prfix/x86run/0172.log +PASS AArch64 byte parity f637021 halve.om freest +PASS AArch64 byte parity f637021 hsum.om c +PASS AArch64 byte parity f637021 hsum.om h +PASS AArch64 byte parity f637021 hsum.om python +PASS AArch64 byte parity f637021 hsum.om rust +PASS AArch64 byte parity f637021 hsum.om zig +PASS AArch64 byte parity f637021 hsum.om go +PASS AArch64 byte parity f637021 hsum.om api +PASS AArch64 byte parity f637021 hsum.om apih +PASS AArch64 byte parity f637021 hsum.om apic +INFO exit=110 log=/tmp/prfix/x86run/0191.log +INFO exit=110 log=/tmp/prfix/x86run/0192.log +PASS AArch64 byte parity f637021 hsum.om freest +PASS AArch64 byte parity f637021 madd.om c +PASS AArch64 byte parity f637021 madd.om h +PASS AArch64 byte parity f637021 madd.om python +PASS AArch64 byte parity f637021 madd.om rust +PASS AArch64 byte parity f637021 madd.om zig +PASS AArch64 byte parity f637021 madd.om go +PASS AArch64 byte parity f637021 madd.om api +PASS AArch64 byte parity f637021 madd.om apih +PASS AArch64 byte parity f637021 madd.om apic +PASS AArch64 byte parity f637021 madd.om freest +PASS AArch64 byte parity f637021 mix.om c +PASS AArch64 byte parity f637021 mix.om h +PASS AArch64 byte parity f637021 mix.om python +PASS AArch64 byte parity f637021 mix.om rust +PASS AArch64 byte parity f637021 mix.om zig +PASS AArch64 byte parity f637021 mix.om go +PASS AArch64 byte parity f637021 mix.om api +PASS AArch64 byte parity f637021 mix.om apih +PASS AArch64 byte parity f637021 mix.om apic +INFO exit=110 log=/tmp/prfix/x86run/0231.log +INFO exit=110 log=/tmp/prfix/x86run/0232.log +PASS AArch64 byte parity f637021 mix.om freest +PASS AArch64 byte parity f637021 smadd.om c +PASS AArch64 byte parity f637021 smadd.om h +PASS AArch64 byte parity f637021 smadd.om python +PASS AArch64 byte parity f637021 smadd.om rust +PASS AArch64 byte parity f637021 smadd.om zig +PASS AArch64 byte parity f637021 smadd.om go +PASS AArch64 byte parity f637021 smadd.om api +PASS AArch64 byte parity f637021 smadd.om apih +PASS AArch64 byte parity f637021 smadd.om apic +PASS AArch64 byte parity f637021 smadd.om freest +PASS AArch64 byte parity f637021 spin.om c +PASS AArch64 byte parity f637021 spin.om h +PASS AArch64 byte parity f637021 spin.om python +PASS AArch64 byte parity f637021 spin.om rust +PASS AArch64 byte parity f637021 spin.om zig +PASS AArch64 byte parity f637021 spin.om go +PASS AArch64 byte parity f637021 spin.om api +PASS AArch64 byte parity f637021 spin.om apih +PASS AArch64 byte parity f637021 spin.om apic +PASS AArch64 byte parity f637021 spin.om freest +PASS AArch64 byte parity f637021 v2/lay.om c +PASS AArch64 byte parity f637021 v2/lay.om h +PASS AArch64 byte parity f637021 v2/lay.om python +PASS AArch64 byte parity f637021 v2/lay.om rust +PASS AArch64 byte parity f637021 v2/lay.om zig +PASS AArch64 byte parity f637021 v2/lay.om go +PASS AArch64 byte parity f637021 v2/lay.om api +PASS AArch64 byte parity f637021 v2/lay.om apih +PASS AArch64 byte parity f637021 v2/lay.om apic +INFO exit=110 log=/tmp/prfix/x86run/0291.log +INFO exit=110 log=/tmp/prfix/x86run/0292.log +PASS AArch64 byte parity f637021 v2/lay.om freest +PASS AArch64 byte parity f637021 v2/one.om c +PASS AArch64 byte parity f637021 v2/one.om h +PASS AArch64 byte parity f637021 v2/one.om python +PASS AArch64 byte parity f637021 v2/one.om rust +PASS AArch64 byte parity f637021 v2/one.om zig +PASS AArch64 byte parity f637021 v2/one.om go +PASS AArch64 byte parity f637021 v2/one.om api +PASS AArch64 byte parity f637021 v2/one.om apih +PASS AArch64 byte parity f637021 v2/one.om apic +INFO exit=110 log=/tmp/prfix/x86run/0311.log +INFO exit=110 log=/tmp/prfix/x86run/0312.log +PASS AArch64 byte parity f637021 v2/one.om freest +PASS AArch64 byte parity f637021 v2/v1use/bsum.om c +PASS AArch64 byte parity f637021 v2/v1use/bsum.om h +PASS AArch64 byte parity f637021 v2/v1use/bsum.om python +PASS AArch64 byte parity f637021 v2/v1use/bsum.om rust +PASS AArch64 byte parity f637021 v2/v1use/bsum.om zig +PASS AArch64 byte parity f637021 v2/v1use/bsum.om go +PASS AArch64 byte parity f637021 v2/v1use/bsum.om api +PASS AArch64 byte parity f637021 v2/v1use/bsum.om apih +PASS AArch64 byte parity f637021 v2/v1use/bsum.om apic +INFO exit=110 log=/tmp/prfix/x86run/0331.log +INFO exit=110 log=/tmp/prfix/x86run/0332.log +PASS AArch64 byte parity f637021 v2/v1use/bsum.om freest +PASS AArch64 byte parity f637021 v2/vec.om c +PASS AArch64 byte parity f637021 v2/vec.om h +PASS AArch64 byte parity f637021 v2/vec.om python +PASS AArch64 byte parity f637021 v2/vec.om rust +PASS AArch64 byte parity f637021 v2/vec.om zig +PASS AArch64 byte parity f637021 v2/vec.om go +PASS AArch64 byte parity f637021 v2/vec.om api +PASS AArch64 byte parity f637021 v2/vec.om apih +PASS AArch64 byte parity f637021 v2/vec.om apic +INFO exit=110 log=/tmp/prfix/x86run/0351.log +INFO exit=110 log=/tmp/prfix/x86run/0352.log +PASS AArch64 byte parity f637021 v2/vec.om freest +PASS AArch64 byte parity f637021 v1-set c +PASS AArch64 byte parity f637021 v1-set h +PASS AArch64 byte parity f637021 v1-set python +PASS AArch64 byte parity f637021 v1-set rust +PASS AArch64 byte parity f637021 v1-set zig +PASS AArch64 byte parity f637021 v1-set go +PASS AArch64 byte parity f637021 v1-set api +PASS AArch64 byte parity f637021 v1-set apih +PASS AArch64 byte parity f637021 v1-set apic +INFO exit=110 log=/tmp/prfix/x86run/0371.log +INFO exit=110 log=/tmp/prfix/x86run/0372.log +PASS AArch64 byte parity f637021 v1-set freest +PASS AArch64 byte parity f637021 v2-set c +PASS AArch64 byte parity f637021 v2-set h +PASS AArch64 byte parity f637021 v2-set python +PASS AArch64 byte parity f637021 v2-set rust +PASS AArch64 byte parity f637021 v2-set zig +PASS AArch64 byte parity f637021 v2-set go +PASS AArch64 byte parity f637021 v2-set api +PASS AArch64 byte parity f637021 v2-set apih +PASS AArch64 byte parity f637021 v2-set apic +INFO exit=110 log=/tmp/prfix/x86run/0391.log +INFO exit=110 log=/tmp/prfix/x86run/0392.log +PASS AArch64 byte parity f637021 v2-set freest +PASS c caller built +PASS c caller EMULATED +PASS cpp caller built +PASS cpp caller EMULATED +PASS go caller built +PASS go caller EMULATED +PASS python caller EMULATED +PASS rust caller built +PASS rust caller EMULATED +PASS rust-2024 caller EMULATED +PASS zig caller built +PASS zig caller EMULATED +PASS SysV AMD64 saved-register oracle EMULATED +PASS stale source mutation changes bytes +PASS stale h generated +PASS stale python generated +INFO exit=3 log=/tmp/prfix/x86run/0411.log +PASS stale C identity refused +PASS fresh C identity control +INFO exit=1 log=/tmp/prfix/x86run/0414.log +PASS stale Python import refused for identity +PASS v1 refusal binding generated h +PASS v1 refusal binding generated python +PASS v1 refusal binding generated rust +PASS v1 refusal binding generated zig +PASS v1 refusal binding generated go +INFO exit=1 log=/tmp/prfix/x86run/0421.log +PASS c refuses old v1 symbol +INFO exit=1 log=/tmp/prfix/x86run/0422.log +PASS cpp refuses old v1 symbol +INFO exit=1 log=/tmp/prfix/x86run/0423.log +PASS go refuses old v1 symbol +INFO exit=1 log=/tmp/prfix/x86run/0424.log +PASS python refuses old v1 symbol +INFO exit=1 log=/tmp/prfix/x86run/0425.log +PASS rust refuses old v1 symbol +INFO exit=1 log=/tmp/prfix/x86run/0426.log +PASS zig refuses old v1 symbol +PASS generator accepts refusal control +INFO exit=110 log=/tmp/prfix/x86run/0428.log +PASS generator refuses missing identity +INFO exit=110 log=/tmp/prfix/x86run/0429.log +PASS generator refuses short digest +INFO exit=110 log=/tmp/prfix/x86run/0430.log +PASS generator refuses nonhex digest +INFO exit=110 log=/tmp/prfix/x86run/0431.log +PASS generator refuses invalid unit name +INFO exit=110 log=/tmp/prfix/x86run/0432.log +PASS generator refuses repeated unit +INFO exit=110 log=/tmp/prfix/x86run/0433.log +PASS generator refuses repeated export +INFO exit=110 log=/tmp/prfix/x86run/0434.log +PASS generator refuses diag +INFO exit=110 log=/tmp/prfix/x86run/0435.log +PASS generator refuses eight slots +INFO exit=110 log=/tmp/prfix/x86run/0436.log +PASS generator refuses unknown layout +INFO exit=110 log=/tmp/prfix/x86run/0437.log +PASS generator refuses oversized out +INFO exit=110 log=/tmp/prfix/x86run/0438.log +PASS generator refuses uint scalar +INFO exit=110 log=/tmp/prfix/x86run/0439.log +PASS generator refuses uint result +INFO exit=110 log=/tmp/prfix/x86run/0440.log +PASS generator refuses reserved len name +INFO exit=110 log=/tmp/prfix/x86run/0441.log +PASS generator refuses short six-byte entry table +INFO exit=110 log=/tmp/prfix/x86run/0442.log +PASS generator refuses unknown c-type layout +INFO exit=110 log=/tmp/prfix/x86run/0443.log +PASS generator refuses argument vector [] +INFO exit=110 log=/tmp/prfix/x86run/0444.log +PASS generator refuses argument vector ['java', 'x86linux'] +INFO exit=110 log=/tmp/prfix/x86run/0445.log +PASS generator refuses argument vector ['c', 'unknown'] +INFO exit=110 log=/tmp/prfix/x86run/0446.log +PASS generator refuses argument vector ['c', 'x86linux', 'extra'] +INFO exit=1 log=/tmp/prfix/x86run/0447.log +PASS mismatched x86 compiler refuses before creating outputs +INFO exit=1 log=/tmp/prfix/x86run/0449.log +PASS mismatched x86 compiler preserves previous outputs +INFO exit=110 log=/tmp/prfix/x86run/0450.log +PASS tools/native refusal preserves previous outputs and removes scratch +PASS wrap mutant generated c +PASS wrap mutant generated h +PASS wrap mutant differs +INFO exit=-11 log=/tmp/prfix/x86run/0456.log +PASS wrap mutant caught by existing boundary oracle +PASS overlap mutant generated c +PASS overlap mutant generated h +PASS overlap mutant differs +INFO exit=1 log=/tmp/prfix/x86run/0462.log +PASS overlap mutant caught by existing boundary oracle +PASS outcopy mutant generated c +PASS outcopy mutant generated h +PASS outcopy mutant differs +INFO exit=1 log=/tmp/prfix/x86run/0468.log +PASS outcopy mutant caught by existing boundary oracle +PASS private fixture generated madd +PASS separate object private locals madd +PASS private fixture generated smadd +PASS separate object private locals smadd +PASS separate bindings and TLS isolation EMULATED +PASS private fixture generated madd +PASS private fixture generated smadd +INFO exit=1 log=/tmp/prfix/x86run/0486.log +PASS global helper mutant rejected at link +PASS prototype-only API has no libc imports +PASS out-of-line API owns abort and definitions +PASS inline API import negative control +PASS out-of-line API EMULATED +INFO exit=-6 log=/tmp/prfix/x86run/0496.log +PASS out-of-line API trap aborts +PASS apih API mutant generated +PASS prototype-only API mutant caught +PASS api API mutant generated +PASS inline API mutant caught +PASS nested explicit trap uses ESI and runtime table slot 2 +PASS legacy basic write remains permitted in bare code +INFO exit=9 log=/tmp/prfix/x86run/0507.log +PASS advanced bare host helper remains compiler refusal 9 +PASS trap control generated c +PASS trap control generated h +PASS trap: status 5, sentinel, saved regs and subsequent call EMULATED +PASS zero-code control generated c +PASS zero-code control generated h +PASS zero-code: status 34, sentinel, saved regs and subsequent call EMULATED +PASS wrong-slot control generated c +PASS wrong-slot control generated h +PASS wrong-slot: status 34, sentinel, saved regs and subsequent call EMULATED +PASS xsave-stack control generated c +PASS xsave control bounds only owned runtime stack +PASS xsave-stack control generated h +PASS xsave-stack: status 6, sentinel, saved regs and subsequent call EMULATED +PASS freestanding result-store mutant applies once to xfasm +PASS freestanding-x86 object is x86-64 with only GPU_FS_LINK imports +PASS freestanding x86 epoch/MAX trap, nested and signed trap, four threads EMULATED +PASS freestanding-x86-mutant object is x86-64 with only GPU_FS_LINK imports +INFO exit=1 log=/tmp/prfix/x86run/0535.log +PASS freestanding x86 result-store mutant caught by caller EMULATED +PASS direct floor oracle generated c +PASS direct floor oracle generated h +PASS direct floor oracle finds one true-floor argument +PASS actual R15 mapping floor with ABI-v2 out buffer EMULATED +INFO exit=1 log=/tmp/prfix/x86run/0541.log +PASS carved-top floor mutant rejected without crash EMULATED +NATIVE-X86 NATIVE NOT_RUN (physical x86 execution not requested) +NATIVE-X86 EMULATED PASS (six languages built and run; native x86 NOT_RUN) diff --git a/evidence/native-x86-pr44-merge/attempt1-no-gxx/controls.log b/evidence/native-x86-pr44-merge/attempt1-no-gxx/controls.log new file mode 100644 index 0000000..26c354d --- /dev/null +++ b/evidence/native-x86-pr44-merge/attempt1-no-gxx/controls.log @@ -0,0 +1,8 @@ +INFO control evidence: OUT/ctl +NOT_RUN cpp caller/tool: x86_64-linux-gnu-g++ unavailable +PASS Python is ELF64 x86-64, not the host interpreter +PASS generator compiler pin +PASS x86 compiler pin +NATIVE-X86 NATIVE NOT_RUN (physical x86 execution not requested) +NATIVE-X86 NOT_RUN (not run: c cpp go python rust zig) +FAIL control ZIG: failed build was not refused; logs: OUT/ctl diff --git a/evidence/native-x86-pr44-merge/attempt1-no-gxx/neg-wrongpin.log b/evidence/native-x86-pr44-merge/attempt1-no-gxx/neg-wrongpin.log new file mode 100644 index 0000000..3c35e5f --- /dev/null +++ b/evidence/native-x86-pr44-merge/attempt1-no-gxx/neg-wrongpin.log @@ -0,0 +1,6 @@ +NOT_RUN cpp caller/tool: x86_64-linux-gnu-g++ unavailable +PASS Python is ELF64 x86-64, not the host interpreter +PASS generator compiler pin +FAIL x86 compiler pin +NATIVE-X86 NATIVE NOT_RUN (physical x86 execution not requested) +NATIVE-X86 FAIL x86 compiler pin diff --git a/evidence/native-x86-pr44-merge/attempt1-no-gxx/x86.log b/evidence/native-x86-pr44-merge/attempt1-no-gxx/x86.log new file mode 100644 index 0000000..bbc1c5a --- /dev/null +++ b/evidence/native-x86-pr44-merge/attempt1-no-gxx/x86.log @@ -0,0 +1,6 @@ +NOT_RUN cpp caller/tool: x86_64-linux-gnu-g++ unavailable +PASS Python is ELF64 x86-64, not the host interpreter +PASS generator compiler pin +PASS x86 compiler pin +NATIVE-X86 NATIVE NOT_RUN (physical x86 execution not requested) +NATIVE-X86 NOT_RUN (not run: c cpp go python rust zig) diff --git a/evidence/native-x86-pr44-merge/bootstrap.log b/evidence/native-x86-pr44-merge/bootstrap.log new file mode 100644 index 0000000..72137ee --- /dev/null +++ b/evidence/native-x86-pr44-merge/bootstrap.log @@ -0,0 +1,5 @@ +om4.bin 14224 bytes +source=29b12760f4c962606411d6bf25032aedef063301 +8608fa11f6a2cf1c50db22d871eef16b00d5bc719bc1a222cc3e456984ac5ebf seed/omc/omc.om +191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 ../omc +bootstrap fixpoint RC=0 diff --git a/evidence/native-x86-pr44-merge/controls.log b/evidence/native-x86-pr44-merge/controls.log new file mode 100644 index 0000000..8628d02 --- /dev/null +++ b/evidence/native-x86-pr44-merge/controls.log @@ -0,0 +1,385 @@ +INFO control evidence: OUT/ctl +PASS failed-toolchain control ZIG +PASS failed-toolchain control GO +PASS missing Zig and Go refuse aggregate PASS (#34) +PASS Python is ELF64 x86-64, not the host interpreter +PASS generator compiler pin +PASS x86 compiler pin +INFO x86 compiler sha256=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a +INFO generator compiler sha256=734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61 +PASS x86 Python interpreter and ctypes runtime +PASS tools/native built mixed OM-1/OM-2 x86 library and all bindings +PASS x86 floor uses actual usable stack base, independent of out carve +PASS library ELF machine is x86-64 +PASS original source/compiler identity madd +PASS source snapshot excludes target directive madd +PASS compiler bytes reproduce madd +PASS embedded bytes unchanged madd +PASS original source/compiler identity vec +PASS source snapshot excludes target directive vec +PASS compiler bytes reproduce vec +PASS six-byte JMP/NOP entry slots vec +PASS independent x86 instruction oracle vec +PASS embedded bytes unchanged vec +PASS original source/compiler identity lay +PASS source snapshot excludes target directive lay +PASS compiler bytes reproduce lay +PASS six-byte JMP/NOP entry slots lay +PASS independent x86 instruction oracle lay +PASS embedded bytes unchanged lay +PASS original source/compiler identity one +PASS source snapshot excludes target directive one +PASS compiler bytes reproduce one +PASS embedded bytes unchanged one +PASS exact public ABI symbol set +PASS all runtime/code/entry symbols private +PASS no caller hand-declares Omega ABI +PASS target-independent declarations h +PASS target-independent declarations python +PASS target-independent declarations rust +PASS target-independent declarations zig +PASS target-independent declarations go +PASS target-independent declarations api +PASS target-independent declarations apih +PASS target-independent declarations apic +PASS AArch64 byte parity f637021 big.om c +PASS AArch64 byte parity f637021 big.om h +PASS AArch64 byte parity f637021 big.om python +PASS AArch64 byte parity f637021 big.om rust +PASS AArch64 byte parity f637021 big.om zig +PASS AArch64 byte parity f637021 big.om go +PASS AArch64 byte parity f637021 big.om api +PASS AArch64 byte parity f637021 big.om apih +PASS AArch64 byte parity f637021 big.om apic +INFO exit=110 log=OUT/ctl/positive/0071.log +INFO exit=110 log=OUT/ctl/positive/0072.log +PASS AArch64 byte parity f637021 big.om freest +PASS AArch64 byte parity f637021 fill.om c +PASS AArch64 byte parity f637021 fill.om h +PASS AArch64 byte parity f637021 fill.om python +PASS AArch64 byte parity f637021 fill.om rust +PASS AArch64 byte parity f637021 fill.om zig +PASS AArch64 byte parity f637021 fill.om go +PASS AArch64 byte parity f637021 fill.om api +PASS AArch64 byte parity f637021 fill.om apih +PASS AArch64 byte parity f637021 fill.om apic +INFO exit=110 log=OUT/ctl/positive/0091.log +INFO exit=110 log=OUT/ctl/positive/0092.log +PASS AArch64 byte parity f637021 fill.om freest +PASS AArch64 byte parity f637021 fsum.om c +PASS AArch64 byte parity f637021 fsum.om h +PASS AArch64 byte parity f637021 fsum.om python +PASS AArch64 byte parity f637021 fsum.om rust +PASS AArch64 byte parity f637021 fsum.om zig +PASS AArch64 byte parity f637021 fsum.om go +PASS AArch64 byte parity f637021 fsum.om api +PASS AArch64 byte parity f637021 fsum.om apih +PASS AArch64 byte parity f637021 fsum.om apic +INFO exit=110 log=OUT/ctl/positive/0111.log +INFO exit=110 log=OUT/ctl/positive/0112.log +PASS AArch64 byte parity f637021 fsum.om freest +PASS AArch64 byte parity f637021 g1/calc.lowered.om c +PASS AArch64 byte parity f637021 g1/calc.lowered.om h +PASS AArch64 byte parity f637021 g1/calc.lowered.om python +PASS AArch64 byte parity f637021 g1/calc.lowered.om rust +PASS AArch64 byte parity f637021 g1/calc.lowered.om zig +PASS AArch64 byte parity f637021 g1/calc.lowered.om go +PASS AArch64 byte parity f637021 g1/calc.lowered.om api +PASS AArch64 byte parity f637021 g1/calc.lowered.om apih +PASS AArch64 byte parity f637021 g1/calc.lowered.om apic +INFO exit=110 log=OUT/ctl/positive/0131.log +INFO exit=110 log=OUT/ctl/positive/0132.log +PASS AArch64 byte parity f637021 g1/calc.lowered.om freest +PASS AArch64 byte parity f637021 g1/calc.om c +PASS AArch64 byte parity f637021 g1/calc.om h +PASS AArch64 byte parity f637021 g1/calc.om python +PASS AArch64 byte parity f637021 g1/calc.om rust +PASS AArch64 byte parity f637021 g1/calc.om zig +PASS AArch64 byte parity f637021 g1/calc.om go +PASS AArch64 byte parity f637021 g1/calc.om api +PASS AArch64 byte parity f637021 g1/calc.om apih +PASS AArch64 byte parity f637021 g1/calc.om apic +INFO exit=110 log=OUT/ctl/positive/0151.log +INFO exit=110 log=OUT/ctl/positive/0152.log +PASS AArch64 byte parity f637021 g1/calc.om freest +PASS AArch64 byte parity f637021 halve.om c +PASS AArch64 byte parity f637021 halve.om h +PASS AArch64 byte parity f637021 halve.om python +PASS AArch64 byte parity f637021 halve.om rust +PASS AArch64 byte parity f637021 halve.om zig +PASS AArch64 byte parity f637021 halve.om go +PASS AArch64 byte parity f637021 halve.om api +PASS AArch64 byte parity f637021 halve.om apih +PASS AArch64 byte parity f637021 halve.om apic +INFO exit=110 log=OUT/ctl/positive/0171.log +INFO exit=110 log=OUT/ctl/positive/0172.log +PASS AArch64 byte parity f637021 halve.om freest +PASS AArch64 byte parity f637021 hsum.om c +PASS AArch64 byte parity f637021 hsum.om h +PASS AArch64 byte parity f637021 hsum.om python +PASS AArch64 byte parity f637021 hsum.om rust +PASS AArch64 byte parity f637021 hsum.om zig +PASS AArch64 byte parity f637021 hsum.om go +PASS AArch64 byte parity f637021 hsum.om api +PASS AArch64 byte parity f637021 hsum.om apih +PASS AArch64 byte parity f637021 hsum.om apic +INFO exit=110 log=OUT/ctl/positive/0191.log +INFO exit=110 log=OUT/ctl/positive/0192.log +PASS AArch64 byte parity f637021 hsum.om freest +PASS AArch64 byte parity f637021 madd.om c +PASS AArch64 byte parity f637021 madd.om h +PASS AArch64 byte parity f637021 madd.om python +PASS AArch64 byte parity f637021 madd.om rust +PASS AArch64 byte parity f637021 madd.om zig +PASS AArch64 byte parity f637021 madd.om go +PASS AArch64 byte parity f637021 madd.om api +PASS AArch64 byte parity f637021 madd.om apih +PASS AArch64 byte parity f637021 madd.om apic +PASS AArch64 byte parity f637021 madd.om freest +PASS AArch64 byte parity f637021 mix.om c +PASS AArch64 byte parity f637021 mix.om h +PASS AArch64 byte parity f637021 mix.om python +PASS AArch64 byte parity f637021 mix.om rust +PASS AArch64 byte parity f637021 mix.om zig +PASS AArch64 byte parity f637021 mix.om go +PASS AArch64 byte parity f637021 mix.om api +PASS AArch64 byte parity f637021 mix.om apih +PASS AArch64 byte parity f637021 mix.om apic +INFO exit=110 log=OUT/ctl/positive/0231.log +INFO exit=110 log=OUT/ctl/positive/0232.log +PASS AArch64 byte parity f637021 mix.om freest +PASS AArch64 byte parity f637021 smadd.om c +PASS AArch64 byte parity f637021 smadd.om h +PASS AArch64 byte parity f637021 smadd.om python +PASS AArch64 byte parity f637021 smadd.om rust +PASS AArch64 byte parity f637021 smadd.om zig +PASS AArch64 byte parity f637021 smadd.om go +PASS AArch64 byte parity f637021 smadd.om api +PASS AArch64 byte parity f637021 smadd.om apih +PASS AArch64 byte parity f637021 smadd.om apic +PASS AArch64 byte parity f637021 smadd.om freest +PASS AArch64 byte parity f637021 spin.om c +PASS AArch64 byte parity f637021 spin.om h +PASS AArch64 byte parity f637021 spin.om python +PASS AArch64 byte parity f637021 spin.om rust +PASS AArch64 byte parity f637021 spin.om zig +PASS AArch64 byte parity f637021 spin.om go +PASS AArch64 byte parity f637021 spin.om api +PASS AArch64 byte parity f637021 spin.om apih +PASS AArch64 byte parity f637021 spin.om apic +PASS AArch64 byte parity f637021 spin.om freest +PASS AArch64 byte parity f637021 v2/lay.om c +PASS AArch64 byte parity f637021 v2/lay.om h +PASS AArch64 byte parity f637021 v2/lay.om python +PASS AArch64 byte parity f637021 v2/lay.om rust +PASS AArch64 byte parity f637021 v2/lay.om zig +PASS AArch64 byte parity f637021 v2/lay.om go +PASS AArch64 byte parity f637021 v2/lay.om api +PASS AArch64 byte parity f637021 v2/lay.om apih +PASS AArch64 byte parity f637021 v2/lay.om apic +INFO exit=110 log=OUT/ctl/positive/0291.log +INFO exit=110 log=OUT/ctl/positive/0292.log +PASS AArch64 byte parity f637021 v2/lay.om freest +PASS AArch64 byte parity f637021 v2/one.om c +PASS AArch64 byte parity f637021 v2/one.om h +PASS AArch64 byte parity f637021 v2/one.om python +PASS AArch64 byte parity f637021 v2/one.om rust +PASS AArch64 byte parity f637021 v2/one.om zig +PASS AArch64 byte parity f637021 v2/one.om go +PASS AArch64 byte parity f637021 v2/one.om api +PASS AArch64 byte parity f637021 v2/one.om apih +PASS AArch64 byte parity f637021 v2/one.om apic +INFO exit=110 log=OUT/ctl/positive/0311.log +INFO exit=110 log=OUT/ctl/positive/0312.log +PASS AArch64 byte parity f637021 v2/one.om freest +PASS AArch64 byte parity f637021 v2/v1use/bsum.om c +PASS AArch64 byte parity f637021 v2/v1use/bsum.om h +PASS AArch64 byte parity f637021 v2/v1use/bsum.om python +PASS AArch64 byte parity f637021 v2/v1use/bsum.om rust +PASS AArch64 byte parity f637021 v2/v1use/bsum.om zig +PASS AArch64 byte parity f637021 v2/v1use/bsum.om go +PASS AArch64 byte parity f637021 v2/v1use/bsum.om api +PASS AArch64 byte parity f637021 v2/v1use/bsum.om apih +PASS AArch64 byte parity f637021 v2/v1use/bsum.om apic +INFO exit=110 log=OUT/ctl/positive/0331.log +INFO exit=110 log=OUT/ctl/positive/0332.log +PASS AArch64 byte parity f637021 v2/v1use/bsum.om freest +PASS AArch64 byte parity f637021 v2/vec.om c +PASS AArch64 byte parity f637021 v2/vec.om h +PASS AArch64 byte parity f637021 v2/vec.om python +PASS AArch64 byte parity f637021 v2/vec.om rust +PASS AArch64 byte parity f637021 v2/vec.om zig +PASS AArch64 byte parity f637021 v2/vec.om go +PASS AArch64 byte parity f637021 v2/vec.om api +PASS AArch64 byte parity f637021 v2/vec.om apih +PASS AArch64 byte parity f637021 v2/vec.om apic +INFO exit=110 log=OUT/ctl/positive/0351.log +INFO exit=110 log=OUT/ctl/positive/0352.log +PASS AArch64 byte parity f637021 v2/vec.om freest +PASS AArch64 byte parity f637021 v1-set c +PASS AArch64 byte parity f637021 v1-set h +PASS AArch64 byte parity f637021 v1-set python +PASS AArch64 byte parity f637021 v1-set rust +PASS AArch64 byte parity f637021 v1-set zig +PASS AArch64 byte parity f637021 v1-set go +PASS AArch64 byte parity f637021 v1-set api +PASS AArch64 byte parity f637021 v1-set apih +PASS AArch64 byte parity f637021 v1-set apic +INFO exit=110 log=OUT/ctl/positive/0371.log +INFO exit=110 log=OUT/ctl/positive/0372.log +PASS AArch64 byte parity f637021 v1-set freest +PASS AArch64 byte parity f637021 v2-set c +PASS AArch64 byte parity f637021 v2-set h +PASS AArch64 byte parity f637021 v2-set python +PASS AArch64 byte parity f637021 v2-set rust +PASS AArch64 byte parity f637021 v2-set zig +PASS AArch64 byte parity f637021 v2-set go +PASS AArch64 byte parity f637021 v2-set api +PASS AArch64 byte parity f637021 v2-set apih +PASS AArch64 byte parity f637021 v2-set apic +INFO exit=110 log=OUT/ctl/positive/0391.log +INFO exit=110 log=OUT/ctl/positive/0392.log +PASS AArch64 byte parity f637021 v2-set freest +PASS c caller built +PASS c caller EMULATED +PASS cpp caller built +PASS cpp caller EMULATED +PASS go caller built +PASS go caller EMULATED +PASS python caller EMULATED +PASS rust caller built +PASS rust caller EMULATED +PASS rust-2024 caller EMULATED +PASS zig caller built +PASS zig caller EMULATED +PASS SysV AMD64 saved-register oracle EMULATED +PASS stale source mutation changes bytes +PASS stale h generated +PASS stale python generated +INFO exit=3 log=OUT/ctl/positive/0411.log +PASS stale C identity refused +PASS fresh C identity control +INFO exit=1 log=OUT/ctl/positive/0414.log +PASS stale Python import refused for identity +PASS v1 refusal binding generated h +PASS v1 refusal binding generated python +PASS v1 refusal binding generated rust +PASS v1 refusal binding generated zig +PASS v1 refusal binding generated go +INFO exit=1 log=OUT/ctl/positive/0421.log +PASS c refuses old v1 symbol +INFO exit=1 log=OUT/ctl/positive/0422.log +PASS cpp refuses old v1 symbol +INFO exit=1 log=OUT/ctl/positive/0423.log +PASS go refuses old v1 symbol +INFO exit=1 log=OUT/ctl/positive/0424.log +PASS python refuses old v1 symbol +INFO exit=1 log=OUT/ctl/positive/0425.log +PASS rust refuses old v1 symbol +INFO exit=1 log=OUT/ctl/positive/0426.log +PASS zig refuses old v1 symbol +PASS generator accepts refusal control +INFO exit=110 log=OUT/ctl/positive/0428.log +PASS generator refuses missing identity +INFO exit=110 log=OUT/ctl/positive/0429.log +PASS generator refuses short digest +INFO exit=110 log=OUT/ctl/positive/0430.log +PASS generator refuses nonhex digest +INFO exit=110 log=OUT/ctl/positive/0431.log +PASS generator refuses invalid unit name +INFO exit=110 log=OUT/ctl/positive/0432.log +PASS generator refuses repeated unit +INFO exit=110 log=OUT/ctl/positive/0433.log +PASS generator refuses repeated export +INFO exit=110 log=OUT/ctl/positive/0434.log +PASS generator refuses diag +INFO exit=110 log=OUT/ctl/positive/0435.log +PASS generator refuses eight slots +INFO exit=110 log=OUT/ctl/positive/0436.log +PASS generator refuses unknown layout +INFO exit=110 log=OUT/ctl/positive/0437.log +PASS generator refuses oversized out +INFO exit=110 log=OUT/ctl/positive/0438.log +PASS generator refuses uint scalar +INFO exit=110 log=OUT/ctl/positive/0439.log +PASS generator refuses uint result +INFO exit=110 log=OUT/ctl/positive/0440.log +PASS generator refuses reserved len name +INFO exit=110 log=OUT/ctl/positive/0441.log +PASS generator refuses short six-byte entry table +INFO exit=110 log=OUT/ctl/positive/0442.log +PASS generator refuses unknown c-type layout +INFO exit=110 log=OUT/ctl/positive/0443.log +PASS generator refuses argument vector [] +INFO exit=110 log=OUT/ctl/positive/0444.log +PASS generator refuses argument vector ['java', 'x86linux'] +INFO exit=110 log=OUT/ctl/positive/0445.log +PASS generator refuses argument vector ['c', 'unknown'] +INFO exit=110 log=OUT/ctl/positive/0446.log +PASS generator refuses argument vector ['c', 'x86linux', 'extra'] +INFO exit=1 log=OUT/ctl/positive/0447.log +PASS mismatched x86 compiler refuses before creating outputs +INFO exit=1 log=OUT/ctl/positive/0449.log +PASS mismatched x86 compiler preserves previous outputs +INFO exit=110 log=OUT/ctl/positive/0450.log +PASS tools/native refusal preserves previous outputs and removes scratch +PASS wrap mutant generated c +PASS wrap mutant generated h +PASS wrap mutant differs +INFO exit=-11 log=OUT/ctl/positive/0456.log +PASS wrap mutant caught by existing boundary oracle +PASS overlap mutant generated c +PASS overlap mutant generated h +PASS overlap mutant differs +INFO exit=1 log=OUT/ctl/positive/0462.log +PASS overlap mutant caught by existing boundary oracle +PASS outcopy mutant generated c +PASS outcopy mutant generated h +PASS outcopy mutant differs +INFO exit=1 log=OUT/ctl/positive/0468.log +PASS outcopy mutant caught by existing boundary oracle +PASS private fixture generated madd +PASS separate object private locals madd +PASS private fixture generated smadd +PASS separate object private locals smadd +PASS separate bindings and TLS isolation EMULATED +PASS private fixture generated madd +PASS private fixture generated smadd +INFO exit=1 log=OUT/ctl/positive/0486.log +PASS global helper mutant rejected at link +PASS prototype-only API has no libc imports +PASS out-of-line API owns abort and definitions +PASS inline API import negative control +PASS out-of-line API EMULATED +INFO exit=-6 log=OUT/ctl/positive/0496.log +PASS out-of-line API trap aborts +PASS apih API mutant generated +PASS prototype-only API mutant caught +PASS api API mutant generated +PASS inline API mutant caught +PASS nested explicit trap uses ESI and runtime table slot 2 +PASS legacy basic write remains permitted in bare code +INFO exit=9 log=OUT/ctl/positive/0507.log +PASS advanced bare host helper remains compiler refusal 9 +PASS trap control generated c +PASS trap control generated h +PASS trap: status 5, sentinel, saved regs and subsequent call EMULATED +PASS zero-code control generated c +PASS zero-code control generated h +PASS zero-code: status 34, sentinel, saved regs and subsequent call EMULATED +PASS wrong-slot control generated c +PASS wrong-slot control generated h +PASS wrong-slot: status 34, sentinel, saved regs and subsequent call EMULATED +PASS xsave-stack control generated c +PASS xsave control bounds only owned runtime stack +PASS xsave-stack control generated h +PASS xsave-stack: status 6, sentinel, saved regs and subsequent call EMULATED +PASS direct floor oracle generated c +PASS direct floor oracle generated h +PASS direct floor oracle finds one true-floor argument +PASS actual R15 mapping floor with ABI-v2 out buffer EMULATED +INFO exit=1 log=OUT/ctl/positive/0533.log +PASS carved-top floor mutant rejected without crash EMULATED +NATIVE-X86 NATIVE NOT_RUN (physical x86 execution not requested) +NATIVE-X86 EMULATED PASS (six languages built and run; native x86 NOT_RUN) +NATIVE-X86 CONTROLS PASS (EMULATED; native x86 NOT_RUN) diff --git a/evidence/native-x86-pr44-merge/native.log b/evidence/native-x86-pr44-merge/native.log new file mode 100644 index 0000000..d5bbddb --- /dev/null +++ b/evidence/native-x86-pr44-merge/native.log @@ -0,0 +1,42 @@ +PASS tools/native: library + six bindings (491f7c7cdbb997ba) +PASS tools/native refuses a unit outside the subset by name (exit 110), previous outputs untouched +PASS no caller declares an Omega function by hand +PASS generated header agrees with the hand-written reference prototypes +PASS embedded code == omc output, per unit (85b3add4fe86a894) +PASS c caller (28 lines) +PASS c-bti caller (28 lines) +PASS generator refuses a unit name that is not a C identifier +PASS generator refuses a parameter name ending in _len +PASS generator refuses a repeated unit name +PASS generator accepts the same unit once (control) +PASS generator refuses a last (bound) function with an unsupported parameter type +PASS generator binds only the last function; an earlier helper of any type stays private +PASS generator refuses a missing output word +PASS generator refuses an unknown output word +PASS cpp caller (13 lines) +PASS python caller (19 lines) +PASS rust caller (14 lines) +PASS rust-2024 caller (14 lines) +PASS zig caller (13 lines) +PASS go caller (13 lines) +PASS mutant madd (add -> sub) caught (7 failing checks) +PASS mutant h scalar uint64_t -> uint32_t caught: WORKTREE/build/native/omega_native.c:116:49: error: +PASS mutant python scalar c_uint64 -> c_uint32 caught: FAIL madd wraps = 3 +PASS mutant rust scalar u64 -> u32 caught: error[E0308]: mismatched types +PASS mutant zig scalar u64 -> u32 caught: caller.zig:17:62: error: type 'u32' cannot represent integer value '184467440737 +PASS mutant go scalar uint64 -> uint32 caught: ./caller.go:29:44: cannot use ^uint64(0) (constant 18446744073709551615 of type +PASS freestanding epoch increment/MAX trap, nested trap unwind, signed trap and four-thread isolation; GPU_FS_LINK imports and no TLS +PASS freestanding refuses arrays, storage, text, host effects including unused helper and OM-2 before any output +PASS pthread-import emitter mutant rejected by freestanding gate, installed object unchanged +PASS failing/missing symbol inspector and failing import filter refuse; installed object unchanged +PASS source-swap control refuses original non-pure snapshot; reread mutant admits mismatched source/code and is caught +PASS pure scalar freestanding transport + import mutant +PRIVATE-SYMBOLS PASS: distinct bindings, trap recovery and concurrent threads +PRIVATE-SYMBOLS PASS: nm public ABI unchanged, private locals; .globl mutant rejected +PASS private linkage and thread isolation +CAPACITY PASS: current input pool exhaustion exits 106 with no output +CAPACITY PASS: current output pool exhaustion exits 106 with no output +CAPACITY PASS: compiler-built frame 10489536 bytes, C 21025708 bytes, both endpoint calls +CAPACITY PASS: old input/output bound mutants and new input/output overflow controls refuse with no output +PASS bounded aggregate frame/output capacity + old-limit mutants +NATIVE-CALL PASS (not run: none) diff --git a/evidence/native-x86-pr44-merge/neg-wrongpin.log b/evidence/native-x86-pr44-merge/neg-wrongpin.log new file mode 100644 index 0000000..663f86b --- /dev/null +++ b/evidence/native-x86-pr44-merge/neg-wrongpin.log @@ -0,0 +1,5 @@ +PASS Python is ELF64 x86-64, not the host interpreter +PASS generator compiler pin +FAIL x86 compiler pin +NATIVE-X86 NATIVE NOT_RUN (physical x86 execution not requested) +NATIVE-X86 FAIL x86 compiler pin diff --git a/evidence/native-x86-pr44-merge/receipt.json b/evidence/native-x86-pr44-merge/receipt.json new file mode 100644 index 0000000..1e4853a --- /dev/null +++ b/evidence/native-x86-pr44-merge/receipt.json @@ -0,0 +1,81 @@ +{ + "schema": 1, + "date": "2026-10-31", + "status": "EMULATED_PASS", + "native_x86": "NOT_RUN", + "gpu": "NOT_RUN", + "pr": "aien-dev/omega-bridge#44", + "bridge_commit": "1df527aa5890314d6148b0b6c347ee8886d3fc69", + "bridge_tree": "merge of origin/main 74fcd43 into PR #44 head f08dbcd; the files run are identified by the sha256 fields", + "native_om_sha256": "5ccf97db9b46aea1fc580951d19e36423d94f545650496dcdb7acba99b983b6d", + "tools_native_sha256": "12b98b280347efdbaa4abb721835318f27e248e7c1783a6d6492fa858dd0fd89", + "suite_sha256": "4038530caf32ad69f748360f964809a09ad5832f7753222560aea9759d762f39", + "controls_sha256": "9b5ff1ced02ae86ab7c61ea8cf64280fd5ff9cd256a1958c309bf17b397856ef", + "compiler_commit": "474197e4fa0207e0e2fb3c0494594a975f5031fa", + "x86_omc_sha256": "be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a", + "x86_omc_source": "git show 474197e4fa0207e0e2fb3c0494594a975f5031fa:seed/out/omc from an omega-mv clone", + "baseline_omc_sha256": "734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61", + "qemu_binary_sha256": "fd7ae7768c1d698d387893688d28abde90512f1f445d171a1389110eb7c237ee", + "qemu_version": "10.0.14", + "x86_python": { + "interpreter_sha256": "e50d468e8b0adfb05733f5b87b3cff34829c4a8c1aea50c865aa8bdfe4bb150f", + "version": "3.12.3", + "packages": 18, + "source": "the 18 amd64 debs listed in the x86 runtime manifest, each sha256-checked against the manifest, then dpkg-deb -x into a private root" + }, + "cross_toolchain": "x86_64-linux-gnu-gcc and x86_64-linux-gnu-g++ 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04.1)", + "aarch64_parity_baseline": "f637021f36f0cfff39240a62341a47e442ae05c3", + "commands": [ + { + "command": "sh tools/bootstrap.sh", + "exit": 0, + "log": "bootstrap.log" + }, + { + "command": "sh tools/test.sh", + "exit": 0, + "result": "ALL SUITES RC=0", + "log": "test.log" + }, + { + "command": "OMEGA_NATIVE_OMC=<734f0a39 omc> sh tests/native/run.sh", + "exit": 0, + "result": "NATIVE-CALL PASS (not run: none)", + "log": "native.log" + }, + { + "command": "sh tests/native/x86/run.sh OUT/x86 (first attempt, x86_64-linux-gnu-g++ not installed)", + "exit": 1, + "result": "NATIVE-X86 NOT_RUN (not run: c cpp go python rust zig); environment, not a code result", + "log": "attempt1-no-gxx/x86.log" + }, + { + "command": "sh tests/native/x86/run.sh OUT/x86", + "exit": 0, + "result": "311 PASS, 0 FAIL; NATIVE-X86 EMULATED PASS", + "log": "x86.log" + }, + { + "command": "python3 tests/native/x86/test_build_failures.py OUT/ctl", + "exit": 0, + "result": "314 PASS, 0 FAIL; NATIVE-X86 CONTROLS PASS", + "log": "controls.log" + }, + { + "command": "OMEGA_NATIVE_X86_OMC=<734f0a39 omc> sh tests/native/x86/run.sh OUT/neg", + "exit": 1, + "result": "negative control: FAIL x86 compiler pin", + "log": "neg-wrongpin.log" + } + ], + "log_redaction": "worktree path replaced by WORKTREE and output directory by OUT; raw_log_sha256 is of the unredacted logs", + "raw_log_sha256": { + "bootstrap.log": "e6c7b5198e091b5faa0878697ef5c3ce396a9406c94580abeb34918e07a03df9", + "test.log": "bc91ed91639ea18f04c7867ce421825c3857cd43c6d00ac813417ebf957eed50", + "native.log": "f918d8ddd6f2a704f5b6958dad1eec0bd49fb273627ab0ae31a818d34719a9e9", + "x86.log": "6f25f737b20fd7db61e3095486eb7821f14a58fbb5ee12ae017869fe66745e4a", + "controls.log": "77aef8608578b27e85c32a360025e8f4c272bfcafb57ebc2b29cdb2a11e5bb31", + "neg-wrongpin.log": "39950f1abe283c0c5e3df3b96c2a2ae03ce2f3f216da5c555f7e59dfe2dcfc2d" + }, + "scope": "x86 binaries run only under qemu-x86_64 (EMULATED) on an AArch64 host; no native x86 execution, no timing, no compiler qualification" +} diff --git a/evidence/native-x86-pr44-merge/test.log b/evidence/native-x86-pr44-merge/test.log new file mode 100644 index 0000000..21b9a00 --- /dev/null +++ b/evidence/native-x86-pr44-merge/test.log @@ -0,0 +1,178 @@ +PASS bytecopy +PASS echo +PASS fib +PASS for_expr_once +PASS for_varchange +PASS io_errno +PASS local_array +PASS num_bool +PASS num_byte_add +PASS num_byte_cast +PASS num_byte_div +PASS num_byte_mul +PASS num_byte_neg +PASS num_byte_rem +PASS num_byte_shiftlimit +PASS num_byte_shl +PASS num_byte_shr +PASS num_byte_sub +PASS num_div_negative +PASS num_int_add +PASS num_int_cast +PASS num_int_div +PASS num_int_mul +PASS num_int_neg +PASS num_int_rem +PASS num_int_shiftlimit +PASS num_int_shl +PASS num_int_shr +PASS num_int_sub +PASS num_intmin_literal +PASS num_long_add +PASS num_long_cast +PASS num_long_div +PASS num_long_mul +PASS num_long_neg +PASS num_long_rem +PASS num_long_shiftlimit +PASS num_long_shl +PASS num_long_shr +PASS num_long_sub +PASS num_not +PASS num_rem_negative +PASS num_short_add +PASS num_short_cast +PASS num_short_div +PASS num_short_mul +PASS num_short_neg +PASS num_short_rem +PASS num_short_shiftlimit +PASS num_short_shl +PASS num_short_shr +PASS num_short_sub +PASS num_uchar_add +PASS num_uchar_cast +PASS num_uchar_div +PASS num_uchar_mul +PASS num_uchar_neg +PASS num_uchar_rem +PASS num_uchar_shiftlimit +PASS num_uchar_shl +PASS num_uchar_shr +PASS num_uchar_sub +PASS num_uint_add +PASS num_uint_cast +PASS num_uint_div +PASS num_uint_mul +PASS num_uint_neg +PASS num_uint_rem +PASS num_uint_shiftlimit +PASS num_uint_shl +PASS num_uint_shr +PASS num_uint_sub +PASS num_ulong_add +PASS num_ulong_cast +PASS num_ulong_div +PASS num_ulong_mul +PASS num_ulong_neg +PASS num_ulong_rem +PASS num_ulong_shiftlimit +PASS num_ulong_shl +PASS num_ulong_shr +PASS num_ulong_sub +PASS num_ushort_add +PASS num_ushort_cast +PASS num_ushort_div +PASS num_ushort_mul +PASS num_ushort_neg +PASS num_ushort_rem +PASS num_ushort_shiftlimit +PASS num_ushort_shl +PASS num_ushort_shr +PASS num_ushort_sub +PASS order_calls +PASS order_put +PASS order_trap +PASS r5b_fwd +PASS r5b_mut +PASS sort +PASS t_bounds +PASS t_cmp_unsigned +PASS t_conv +PASS t_conv_sign +PASS t_div0 +PASS t_exit +PASS t_loop +PASS t_ovf +PASS t_rw +PASS t_stack +PASS t_u63 +PASS t_u64max +PASS t_void +PASS t_write_wrap +PASS two_loops +cases=113 failures=0 RC=0 +PASS seed_1 3 +PASS seed_2 7 +PASS seed_3 7 +PASS seed_4 16 +PASS seed_5 16 +PASS seed_6 19 +PASS seed_7 19 +PASS seed_8 20 +PASS seed_9 20 +PASS seed_10 20 +PASS seed_11 20 +PASS seed_12 21 +PASS seed_13 7 +PASS seed_14 22 +PASS seed_15 22 +PASS seed_16 23 +PASS seed_17 23 +PASS seed_18 17 +PASS seed_19 18 +PASS seed_20 9 +PASS seed_21 9 +PASS seed_22 9 +PASS seed_23 9 +PASS seed_24 20 +PASS seed_25 8 +PASS seed_26 8 +PASS seed_27 8 +PASS seed_28 8 +PASS seed_29 6 +PASS seed_30 23 +PASS seed_31 9 +PASS seed_32 9 +PASS seed_33 10 +PASS seed_34 13 +PASS seed_35 15 +PASS seed_36 16 +PASS seed_37 16 +PASS seed_38 6 +PASS seed_39 7 +PASS seed_40 7 +PASS empty 16 +PASS text_target 24 +PASS five_params 24 +PASS long_name 13 +PASS library_io 24 +PASS library_array_width 24 +PASS local_storage_limit 23 +PASS inherited_text_program 24 +PASS r5b_assign 7 +PASS r5b_cycle 9 +refusal cases=50 failures=0 RC=0 +C caller: values, mutation, traps, invalid lengths and recovery OK +Python caller: values, mutation, traps, invalid lengths and recovery OK +attachment cases=2 failures=0 RC=0 +PASS detected c num_ulong_add native_exit 0 mutant_exit 126 +PASS detected python num_ulong_add native_exit 0 mutant_exit 126 +PASS detected c t_bounds native_exit 103 mutant_exit 1 +PASS detected python t_bounds native_exit 103 mutant_exit 1 +PASS detected c order_calls native_exit 1 mutant_exit 105 +PASS detected python order_calls native_exit 1 mutant_exit 105 +PASS deterministic nonempty output +control cases=7 failures=0 RC=0 +robustness cases=225 target_accepts=4 target_refusals=446 failures=0 RC=0 +ALL SUITES RC=0 diff --git a/evidence/native-x86-pr44-merge/x86.log b/evidence/native-x86-pr44-merge/x86.log new file mode 100644 index 0000000..b361c80 --- /dev/null +++ b/evidence/native-x86-pr44-merge/x86.log @@ -0,0 +1,380 @@ +PASS Python is ELF64 x86-64, not the host interpreter +PASS generator compiler pin +PASS x86 compiler pin +INFO x86 compiler sha256=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a +INFO generator compiler sha256=734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61 +PASS x86 Python interpreter and ctypes runtime +PASS tools/native built mixed OM-1/OM-2 x86 library and all bindings +PASS x86 floor uses actual usable stack base, independent of out carve +PASS library ELF machine is x86-64 +PASS original source/compiler identity madd +PASS source snapshot excludes target directive madd +PASS compiler bytes reproduce madd +PASS embedded bytes unchanged madd +PASS original source/compiler identity vec +PASS source snapshot excludes target directive vec +PASS compiler bytes reproduce vec +PASS six-byte JMP/NOP entry slots vec +PASS independent x86 instruction oracle vec +PASS embedded bytes unchanged vec +PASS original source/compiler identity lay +PASS source snapshot excludes target directive lay +PASS compiler bytes reproduce lay +PASS six-byte JMP/NOP entry slots lay +PASS independent x86 instruction oracle lay +PASS embedded bytes unchanged lay +PASS original source/compiler identity one +PASS source snapshot excludes target directive one +PASS compiler bytes reproduce one +PASS embedded bytes unchanged one +PASS exact public ABI symbol set +PASS all runtime/code/entry symbols private +PASS no caller hand-declares Omega ABI +PASS target-independent declarations h +PASS target-independent declarations python +PASS target-independent declarations rust +PASS target-independent declarations zig +PASS target-independent declarations go +PASS target-independent declarations api +PASS target-independent declarations apih +PASS target-independent declarations apic +PASS AArch64 byte parity f637021 big.om c +PASS AArch64 byte parity f637021 big.om h +PASS AArch64 byte parity f637021 big.om python +PASS AArch64 byte parity f637021 big.om rust +PASS AArch64 byte parity f637021 big.om zig +PASS AArch64 byte parity f637021 big.om go +PASS AArch64 byte parity f637021 big.om api +PASS AArch64 byte parity f637021 big.om apih +PASS AArch64 byte parity f637021 big.om apic +INFO exit=110 log=OUT/x86/0071.log +INFO exit=110 log=OUT/x86/0072.log +PASS AArch64 byte parity f637021 big.om freest +PASS AArch64 byte parity f637021 fill.om c +PASS AArch64 byte parity f637021 fill.om h +PASS AArch64 byte parity f637021 fill.om python +PASS AArch64 byte parity f637021 fill.om rust +PASS AArch64 byte parity f637021 fill.om zig +PASS AArch64 byte parity f637021 fill.om go +PASS AArch64 byte parity f637021 fill.om api +PASS AArch64 byte parity f637021 fill.om apih +PASS AArch64 byte parity f637021 fill.om apic +INFO exit=110 log=OUT/x86/0091.log +INFO exit=110 log=OUT/x86/0092.log +PASS AArch64 byte parity f637021 fill.om freest +PASS AArch64 byte parity f637021 fsum.om c +PASS AArch64 byte parity f637021 fsum.om h +PASS AArch64 byte parity f637021 fsum.om python +PASS AArch64 byte parity f637021 fsum.om rust +PASS AArch64 byte parity f637021 fsum.om zig +PASS AArch64 byte parity f637021 fsum.om go +PASS AArch64 byte parity f637021 fsum.om api +PASS AArch64 byte parity f637021 fsum.om apih +PASS AArch64 byte parity f637021 fsum.om apic +INFO exit=110 log=OUT/x86/0111.log +INFO exit=110 log=OUT/x86/0112.log +PASS AArch64 byte parity f637021 fsum.om freest +PASS AArch64 byte parity f637021 g1/calc.lowered.om c +PASS AArch64 byte parity f637021 g1/calc.lowered.om h +PASS AArch64 byte parity f637021 g1/calc.lowered.om python +PASS AArch64 byte parity f637021 g1/calc.lowered.om rust +PASS AArch64 byte parity f637021 g1/calc.lowered.om zig +PASS AArch64 byte parity f637021 g1/calc.lowered.om go +PASS AArch64 byte parity f637021 g1/calc.lowered.om api +PASS AArch64 byte parity f637021 g1/calc.lowered.om apih +PASS AArch64 byte parity f637021 g1/calc.lowered.om apic +INFO exit=110 log=OUT/x86/0131.log +INFO exit=110 log=OUT/x86/0132.log +PASS AArch64 byte parity f637021 g1/calc.lowered.om freest +PASS AArch64 byte parity f637021 g1/calc.om c +PASS AArch64 byte parity f637021 g1/calc.om h +PASS AArch64 byte parity f637021 g1/calc.om python +PASS AArch64 byte parity f637021 g1/calc.om rust +PASS AArch64 byte parity f637021 g1/calc.om zig +PASS AArch64 byte parity f637021 g1/calc.om go +PASS AArch64 byte parity f637021 g1/calc.om api +PASS AArch64 byte parity f637021 g1/calc.om apih +PASS AArch64 byte parity f637021 g1/calc.om apic +INFO exit=110 log=OUT/x86/0151.log +INFO exit=110 log=OUT/x86/0152.log +PASS AArch64 byte parity f637021 g1/calc.om freest +PASS AArch64 byte parity f637021 halve.om c +PASS AArch64 byte parity f637021 halve.om h +PASS AArch64 byte parity f637021 halve.om python +PASS AArch64 byte parity f637021 halve.om rust +PASS AArch64 byte parity f637021 halve.om zig +PASS AArch64 byte parity f637021 halve.om go +PASS AArch64 byte parity f637021 halve.om api +PASS AArch64 byte parity f637021 halve.om apih +PASS AArch64 byte parity f637021 halve.om apic +INFO exit=110 log=OUT/x86/0171.log +INFO exit=110 log=OUT/x86/0172.log +PASS AArch64 byte parity f637021 halve.om freest +PASS AArch64 byte parity f637021 hsum.om c +PASS AArch64 byte parity f637021 hsum.om h +PASS AArch64 byte parity f637021 hsum.om python +PASS AArch64 byte parity f637021 hsum.om rust +PASS AArch64 byte parity f637021 hsum.om zig +PASS AArch64 byte parity f637021 hsum.om go +PASS AArch64 byte parity f637021 hsum.om api +PASS AArch64 byte parity f637021 hsum.om apih +PASS AArch64 byte parity f637021 hsum.om apic +INFO exit=110 log=OUT/x86/0191.log +INFO exit=110 log=OUT/x86/0192.log +PASS AArch64 byte parity f637021 hsum.om freest +PASS AArch64 byte parity f637021 madd.om c +PASS AArch64 byte parity f637021 madd.om h +PASS AArch64 byte parity f637021 madd.om python +PASS AArch64 byte parity f637021 madd.om rust +PASS AArch64 byte parity f637021 madd.om zig +PASS AArch64 byte parity f637021 madd.om go +PASS AArch64 byte parity f637021 madd.om api +PASS AArch64 byte parity f637021 madd.om apih +PASS AArch64 byte parity f637021 madd.om apic +PASS AArch64 byte parity f637021 madd.om freest +PASS AArch64 byte parity f637021 mix.om c +PASS AArch64 byte parity f637021 mix.om h +PASS AArch64 byte parity f637021 mix.om python +PASS AArch64 byte parity f637021 mix.om rust +PASS AArch64 byte parity f637021 mix.om zig +PASS AArch64 byte parity f637021 mix.om go +PASS AArch64 byte parity f637021 mix.om api +PASS AArch64 byte parity f637021 mix.om apih +PASS AArch64 byte parity f637021 mix.om apic +INFO exit=110 log=OUT/x86/0231.log +INFO exit=110 log=OUT/x86/0232.log +PASS AArch64 byte parity f637021 mix.om freest +PASS AArch64 byte parity f637021 smadd.om c +PASS AArch64 byte parity f637021 smadd.om h +PASS AArch64 byte parity f637021 smadd.om python +PASS AArch64 byte parity f637021 smadd.om rust +PASS AArch64 byte parity f637021 smadd.om zig +PASS AArch64 byte parity f637021 smadd.om go +PASS AArch64 byte parity f637021 smadd.om api +PASS AArch64 byte parity f637021 smadd.om apih +PASS AArch64 byte parity f637021 smadd.om apic +PASS AArch64 byte parity f637021 smadd.om freest +PASS AArch64 byte parity f637021 spin.om c +PASS AArch64 byte parity f637021 spin.om h +PASS AArch64 byte parity f637021 spin.om python +PASS AArch64 byte parity f637021 spin.om rust +PASS AArch64 byte parity f637021 spin.om zig +PASS AArch64 byte parity f637021 spin.om go +PASS AArch64 byte parity f637021 spin.om api +PASS AArch64 byte parity f637021 spin.om apih +PASS AArch64 byte parity f637021 spin.om apic +PASS AArch64 byte parity f637021 spin.om freest +PASS AArch64 byte parity f637021 v2/lay.om c +PASS AArch64 byte parity f637021 v2/lay.om h +PASS AArch64 byte parity f637021 v2/lay.om python +PASS AArch64 byte parity f637021 v2/lay.om rust +PASS AArch64 byte parity f637021 v2/lay.om zig +PASS AArch64 byte parity f637021 v2/lay.om go +PASS AArch64 byte parity f637021 v2/lay.om api +PASS AArch64 byte parity f637021 v2/lay.om apih +PASS AArch64 byte parity f637021 v2/lay.om apic +INFO exit=110 log=OUT/x86/0291.log +INFO exit=110 log=OUT/x86/0292.log +PASS AArch64 byte parity f637021 v2/lay.om freest +PASS AArch64 byte parity f637021 v2/one.om c +PASS AArch64 byte parity f637021 v2/one.om h +PASS AArch64 byte parity f637021 v2/one.om python +PASS AArch64 byte parity f637021 v2/one.om rust +PASS AArch64 byte parity f637021 v2/one.om zig +PASS AArch64 byte parity f637021 v2/one.om go +PASS AArch64 byte parity f637021 v2/one.om api +PASS AArch64 byte parity f637021 v2/one.om apih +PASS AArch64 byte parity f637021 v2/one.om apic +INFO exit=110 log=OUT/x86/0311.log +INFO exit=110 log=OUT/x86/0312.log +PASS AArch64 byte parity f637021 v2/one.om freest +PASS AArch64 byte parity f637021 v2/v1use/bsum.om c +PASS AArch64 byte parity f637021 v2/v1use/bsum.om h +PASS AArch64 byte parity f637021 v2/v1use/bsum.om python +PASS AArch64 byte parity f637021 v2/v1use/bsum.om rust +PASS AArch64 byte parity f637021 v2/v1use/bsum.om zig +PASS AArch64 byte parity f637021 v2/v1use/bsum.om go +PASS AArch64 byte parity f637021 v2/v1use/bsum.om api +PASS AArch64 byte parity f637021 v2/v1use/bsum.om apih +PASS AArch64 byte parity f637021 v2/v1use/bsum.om apic +INFO exit=110 log=OUT/x86/0331.log +INFO exit=110 log=OUT/x86/0332.log +PASS AArch64 byte parity f637021 v2/v1use/bsum.om freest +PASS AArch64 byte parity f637021 v2/vec.om c +PASS AArch64 byte parity f637021 v2/vec.om h +PASS AArch64 byte parity f637021 v2/vec.om python +PASS AArch64 byte parity f637021 v2/vec.om rust +PASS AArch64 byte parity f637021 v2/vec.om zig +PASS AArch64 byte parity f637021 v2/vec.om go +PASS AArch64 byte parity f637021 v2/vec.om api +PASS AArch64 byte parity f637021 v2/vec.om apih +PASS AArch64 byte parity f637021 v2/vec.om apic +INFO exit=110 log=OUT/x86/0351.log +INFO exit=110 log=OUT/x86/0352.log +PASS AArch64 byte parity f637021 v2/vec.om freest +PASS AArch64 byte parity f637021 v1-set c +PASS AArch64 byte parity f637021 v1-set h +PASS AArch64 byte parity f637021 v1-set python +PASS AArch64 byte parity f637021 v1-set rust +PASS AArch64 byte parity f637021 v1-set zig +PASS AArch64 byte parity f637021 v1-set go +PASS AArch64 byte parity f637021 v1-set api +PASS AArch64 byte parity f637021 v1-set apih +PASS AArch64 byte parity f637021 v1-set apic +INFO exit=110 log=OUT/x86/0371.log +INFO exit=110 log=OUT/x86/0372.log +PASS AArch64 byte parity f637021 v1-set freest +PASS AArch64 byte parity f637021 v2-set c +PASS AArch64 byte parity f637021 v2-set h +PASS AArch64 byte parity f637021 v2-set python +PASS AArch64 byte parity f637021 v2-set rust +PASS AArch64 byte parity f637021 v2-set zig +PASS AArch64 byte parity f637021 v2-set go +PASS AArch64 byte parity f637021 v2-set api +PASS AArch64 byte parity f637021 v2-set apih +PASS AArch64 byte parity f637021 v2-set apic +INFO exit=110 log=OUT/x86/0391.log +INFO exit=110 log=OUT/x86/0392.log +PASS AArch64 byte parity f637021 v2-set freest +PASS c caller built +PASS c caller EMULATED +PASS cpp caller built +PASS cpp caller EMULATED +PASS go caller built +PASS go caller EMULATED +PASS python caller EMULATED +PASS rust caller built +PASS rust caller EMULATED +PASS rust-2024 caller EMULATED +PASS zig caller built +PASS zig caller EMULATED +PASS SysV AMD64 saved-register oracle EMULATED +PASS stale source mutation changes bytes +PASS stale h generated +PASS stale python generated +INFO exit=3 log=OUT/x86/0411.log +PASS stale C identity refused +PASS fresh C identity control +INFO exit=1 log=OUT/x86/0414.log +PASS stale Python import refused for identity +PASS v1 refusal binding generated h +PASS v1 refusal binding generated python +PASS v1 refusal binding generated rust +PASS v1 refusal binding generated zig +PASS v1 refusal binding generated go +INFO exit=1 log=OUT/x86/0421.log +PASS c refuses old v1 symbol +INFO exit=1 log=OUT/x86/0422.log +PASS cpp refuses old v1 symbol +INFO exit=1 log=OUT/x86/0423.log +PASS go refuses old v1 symbol +INFO exit=1 log=OUT/x86/0424.log +PASS python refuses old v1 symbol +INFO exit=1 log=OUT/x86/0425.log +PASS rust refuses old v1 symbol +INFO exit=1 log=OUT/x86/0426.log +PASS zig refuses old v1 symbol +PASS generator accepts refusal control +INFO exit=110 log=OUT/x86/0428.log +PASS generator refuses missing identity +INFO exit=110 log=OUT/x86/0429.log +PASS generator refuses short digest +INFO exit=110 log=OUT/x86/0430.log +PASS generator refuses nonhex digest +INFO exit=110 log=OUT/x86/0431.log +PASS generator refuses invalid unit name +INFO exit=110 log=OUT/x86/0432.log +PASS generator refuses repeated unit +INFO exit=110 log=OUT/x86/0433.log +PASS generator refuses repeated export +INFO exit=110 log=OUT/x86/0434.log +PASS generator refuses diag +INFO exit=110 log=OUT/x86/0435.log +PASS generator refuses eight slots +INFO exit=110 log=OUT/x86/0436.log +PASS generator refuses unknown layout +INFO exit=110 log=OUT/x86/0437.log +PASS generator refuses oversized out +INFO exit=110 log=OUT/x86/0438.log +PASS generator refuses uint scalar +INFO exit=110 log=OUT/x86/0439.log +PASS generator refuses uint result +INFO exit=110 log=OUT/x86/0440.log +PASS generator refuses reserved len name +INFO exit=110 log=OUT/x86/0441.log +PASS generator refuses short six-byte entry table +INFO exit=110 log=OUT/x86/0442.log +PASS generator refuses unknown c-type layout +INFO exit=110 log=OUT/x86/0443.log +PASS generator refuses argument vector [] +INFO exit=110 log=OUT/x86/0444.log +PASS generator refuses argument vector ['java', 'x86linux'] +INFO exit=110 log=OUT/x86/0445.log +PASS generator refuses argument vector ['c', 'unknown'] +INFO exit=110 log=OUT/x86/0446.log +PASS generator refuses argument vector ['c', 'x86linux', 'extra'] +INFO exit=1 log=OUT/x86/0447.log +PASS mismatched x86 compiler refuses before creating outputs +INFO exit=1 log=OUT/x86/0449.log +PASS mismatched x86 compiler preserves previous outputs +INFO exit=110 log=OUT/x86/0450.log +PASS tools/native refusal preserves previous outputs and removes scratch +PASS wrap mutant generated c +PASS wrap mutant generated h +PASS wrap mutant differs +INFO exit=-11 log=OUT/x86/0456.log +PASS wrap mutant caught by existing boundary oracle +PASS overlap mutant generated c +PASS overlap mutant generated h +PASS overlap mutant differs +INFO exit=1 log=OUT/x86/0462.log +PASS overlap mutant caught by existing boundary oracle +PASS outcopy mutant generated c +PASS outcopy mutant generated h +PASS outcopy mutant differs +INFO exit=1 log=OUT/x86/0468.log +PASS outcopy mutant caught by existing boundary oracle +PASS private fixture generated madd +PASS separate object private locals madd +PASS private fixture generated smadd +PASS separate object private locals smadd +PASS separate bindings and TLS isolation EMULATED +PASS private fixture generated madd +PASS private fixture generated smadd +INFO exit=1 log=OUT/x86/0486.log +PASS global helper mutant rejected at link +PASS prototype-only API has no libc imports +PASS out-of-line API owns abort and definitions +PASS inline API import negative control +PASS out-of-line API EMULATED +INFO exit=-6 log=OUT/x86/0496.log +PASS out-of-line API trap aborts +PASS apih API mutant generated +PASS prototype-only API mutant caught +PASS api API mutant generated +PASS inline API mutant caught +PASS nested explicit trap uses ESI and runtime table slot 2 +PASS legacy basic write remains permitted in bare code +INFO exit=9 log=OUT/x86/0507.log +PASS advanced bare host helper remains compiler refusal 9 +PASS trap control generated c +PASS trap control generated h +PASS trap: status 5, sentinel, saved regs and subsequent call EMULATED +PASS zero-code control generated c +PASS zero-code control generated h +PASS zero-code: status 34, sentinel, saved regs and subsequent call EMULATED +PASS wrong-slot control generated c +PASS wrong-slot control generated h +PASS wrong-slot: status 34, sentinel, saved regs and subsequent call EMULATED +PASS xsave-stack control generated c +PASS xsave control bounds only owned runtime stack +PASS xsave-stack control generated h +PASS xsave-stack: status 6, sentinel, saved regs and subsequent call EMULATED +PASS direct floor oracle generated c +PASS direct floor oracle generated h +PASS direct floor oracle finds one true-floor argument +PASS actual R15 mapping floor with ABI-v2 out buffer EMULATED +INFO exit=1 log=OUT/x86/0533.log +PASS carved-top floor mutant rejected without crash EMULATED +NATIVE-X86 NATIVE NOT_RUN (physical x86 execution not requested) +NATIVE-X86 EMULATED PASS (six languages built and run; native x86 NOT_RUN) diff --git a/src/native.om b/src/native.om index 02f39bb..dc401fd 100644 --- a/src/native.om +++ b/src/native.om @@ -12,8 +12,9 @@ note ushort; its result is ulong, long or void. An f32 array is 4-byte aligned b note array is 2-byte aligned. Rust and Zig declarations type those two as byte pointers; the C library note enforces element size and alignment. Python ctypes uses c_float and c_uint16. note trap 10 (exit 110) and no output. -global inb uchar 4194304 +global inb uchar 16777216 global outb uchar 16777216 +global outc uchar 16777216 global st ulong 16 global md uchar 8 global tks ulong 40 @@ -32,6 +33,11 @@ text xjmp ":\\nendbr64\\njmp ombr_code_~:\\nendbr64\\njmp ombr2_code_" text xasm "/* SysV AMD64 adapter to the pinned private Omega frame ABI. R12 anchors the native\n * stack, R14 the runtime table, R15 the owned-stack floor. Advanced host helpers\n * that clobber those registers are forbidden in function mode; legacy read/write preserve them.\n * CET shadow-stack enforcement is not supported by the nonlocal trap return. */\n__asm__(\".text\\n.balign 16\\n.local ombr_enter\\n.hidden ombr_enter\\n.type ombr_enter,@function\\nombr_enter:\\n\"\n \"endbr64\\npush %rbx\\npush %rbp\\npush %r12\\npush %r13\\npush %r14\\npush %r15\\npush %rcx\\n\"\n \"mov %rsp,%r12\\nmov %rdx,%r14\\nmov %r9,%r15\\nmov %rdi,%r10\\n\"\n \"mov %r8,%rbp\\nmov %r8,%rsp\\nsub $256,%rsp\\n\"\n \"mov 0(%rsi),%rax\\nmov %rax,-8(%rbp)\\nmov 8(%rsi),%rax\\nmov %rax,-16(%rbp)\\n\"\n \"mov 16(%rsi),%rax\\nmov %rax,-24(%rbp)\\nmov 24(%rsi),%rax\\nmov %rax,-32(%rbp)\\n\"\n \"mov 32(%rsi),%rax\\nmov %rax,-40(%rbp)\\nmov 40(%rsi),%rax\\nmov %rax,-48(%rbp)\\n\"\n \"call *%r10\\nmov %r12,%rsp\\nmov (%rsp),%rcx\\nmov %rax,(%rcx)\\nxor %eax,%eax\\n\"\n \"ombr_leave:\\nadd $8,%rsp\\npop %r15\\npop %r14\\npop %r13\\npop %r12\\npop %rbp\\npop %rbx\\nret\\n\"\n \".size ombr_enter,.-ombr_enter\\n.local ombr_trap\\n.hidden ombr_trap\\n.type ombr_trap,@function\\nombr_trap:\\n\"\n \"endbr64\\nmov %r12,%rsp\\nlea -1(%rsi),%eax\\ncmp $13,%eax\\nmov $34,%eax\\ncmovbe %esi,%eax\\njmp ombr_leave\\n\"\n \".size ombr_trap,.-ombr_trap\\n.local ombr_no_entry\\n.hidden ombr_no_entry\\n.type ombr_no_entry,@function\\nombr_no_entry:\\n\"\n \"endbr64\\nmov %r12,%rsp\\nmov $34,%eax\\njmp ombr_leave\\n.size ombr_no_entry,.-ombr_no_entry\\n\");\nuint32_t ombr_xenter(const void *code, const uint64_t *args, const ombr_rt *rt, uint64_t *out, void *top, void *floor) __asm__(\"ombr_enter\") __attribute__((visibility(\"hidden\")));\n/* The true mapping floor must not move when ABI-v2 out buffers lower top. */\n#define ombr_enter(code,args,rt,out,top) ombr_xenter(code,args,rt,out,top,ombr_stk - OMBR_STACK)\n" text xs "/* ombr_enter" text xe "static void ombr_free" +text fxs "/* ombr_enter saves" +text fxe "static const ombr_rt ombr_rt_table" +text xqd "\\n.quad " +text xby "\\n.byte " +text xfasm "/* SysV AMD64 adapter to the pinned private Omega frame ABI on the caller's stack. ombr_enter saves\n * the callee-saved registers there, keeps that stack pointer in R12, points R14 at the runtime table\n * and sets the owned-stack floor R15 to 0, so, as in the AArch64 binding, the pure scalar code runs on\n * the caller's stack with no bound check. A normal return stores RAX through out and returns 0. A\n * runtime entry restores the stack pointer from R12 and returns a status; out is not written.\n * CET shadow-stack enforcement is not supported by the nonlocal trap return. */\n__asm__(\".text\\n.balign 16\\n.local ombr_enter\\n.hidden ombr_enter\\n.type ombr_enter,@function\\nombr_enter:\\n\"\n \"endbr64\\npush %rbx\\npush %rbp\\npush %r12\\npush %r13\\npush %r14\\npush %r15\\npush %rcx\\n\"\n \"mov %rsp,%r12\\nmov %rdx,%r14\\nxor %r15d,%r15d\\nmov %rdi,%r10\\n\"\n \"mov %rsp,%rbp\\nsub $256,%rsp\\n\"\n \"mov 0(%rsi),%rax\\nmov %rax,-8(%rbp)\\nmov 8(%rsi),%rax\\nmov %rax,-16(%rbp)\\n\"\n \"mov 16(%rsi),%rax\\nmov %rax,-24(%rbp)\\nmov 24(%rsi),%rax\\nmov %rax,-32(%rbp)\\n\"\n \"mov 32(%rsi),%rax\\nmov %rax,-40(%rbp)\\nmov 40(%rsi),%rax\\nmov %rax,-48(%rbp)\\n\"\n \"call *%r10\\nmov %r12,%rsp\\nmov (%rsp),%rcx\\nmov %rax,(%rcx)\\nxor %eax,%eax\\n\"\n \"ombr_leave:\\nadd $8,%rsp\\npop %r15\\npop %r14\\npop %r13\\npop %r12\\npop %rbp\\npop %rbx\\nret\\n\"\n \".size ombr_enter,.-ombr_enter\\n.local ombr_trap\\n.hidden ombr_trap\\n.type ombr_trap,@function\\nombr_trap:\\n\"\n \"endbr64\\nmov %r12,%rsp\\nlea -1(%rsi),%eax\\ncmp $13,%eax\\nmov $34,%eax\\ncmovbe %esi,%eax\\njmp ombr_leave\\n\"\n \".size ombr_trap,.-ombr_trap\\n.local ombr_no_entry\\n.hidden ombr_no_entry\\n.type ombr_no_entry,@function\\nombr_no_entry:\\n\"\n \"endbr64\\nmov %r12,%rsp\\nmov $34,%eax\\njmp ombr_leave\\n.size ombr_no_entry,.-ombr_no_entry\\n\");\n" text kw "toeditviewulonglongucharvoidmainf32ushort" text fr "__asm__(\".section .text.omega_bridge,\\\"ax\\\",@progbits\\n.balign 4\\n.local ombr_code_~\\n.hidden ombr_code_~\\nombr_code_~:\\n.byte ~\\n.previous\\n\");\nextern const unsigned char ombr_entry_~[] __attribute__((visibility(\"hidden\")));\n__attribute__((visibility(\"default\"))) uint32_t omega_~(uint64_t *result~, uint64_t o_~, void *o_~, const void *o_~_len~)\n{\n ombr_span sp[7];\n unsigned ns = 0;\n uint64_t a[6] = {0};\n if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1))\n return OMEGA_BAD_ARG;\n~ if (ombr_span_add(sp, &ns, o_~, o_~_len, ~u, ~))\n return OMEGA_BAD_ARG;\n a[~] = (uint64_t)(uintptr_t)o_~;\n~ a[~] = o_~ if (ombr_overlap(sp, ns))\n return OMEGA_BAD_ARG;\n return ombr_run(ombr_entry_~, a, result, ~);\n}\n~\\n.local ombr_entry_~\\n.hidden ombr_entry_~\\nombr_entry_~:\\nhint #34\\nb ombr_code_" text pre "/* Generated by omega-bridge src/native.om: native call ABI v1 (docs/NATIVE-ABI.md).\n * The Omega machine code below is embedded byte for byte as the seeded compiler wrote it.\n * This file only adapts the C calling convention to it. Regenerate it; do not edit it. */\n#include \n#include \n#include \n#include \n#define OMEGA_OK 0u\n#define OMEGA_BAD_ARG 32u\n#define OMEGA_REENTRY 33u\n#define OMEGA_BAD_RT 34u\n#define OMEGA_NO_STACK 35u\n#define OMBR_STACK (8u << 20)\n#define OMBR_GUARD (8u << 20)\n/* entry[2] is the trap entry (OSC-1 section 7). */\ntypedef struct ombr_rt { const void *entry[32]; } ombr_rt;\ntypedef struct ombr_span { uintptr_t lo, hi; int w; } ombr_span;\nstatic _Thread_local volatile sig_atomic_t ombr_active;\nstatic _Thread_local unsigned char *ombr_stk;\nstatic pthread_key_t ombr_key;\nstatic int ombr_keyok;\nstatic pthread_once_t ombr_once = PTHREAD_ONCE_INIT;\nuint32_t ombr_enter(const void *code, const uint64_t *args, const ombr_rt *rt, uint64_t *out, void *top)\n __attribute__((visibility(\"hidden\")));\nextern const unsigned char ombr_trap[] __attribute__((visibility(\"hidden\")));\nextern const unsigned char ombr_no_entry[] __attribute__((visibility(\"hidden\")));\n/* ombr_enter saves the callee-saved registers on the caller's stack, keeps that stack pointer in x19 and\n * runs the code on the binding's own stack. A normal return stores x0 through out and\n * returns 0. A runtime entry restores the stack pointer from x19 and returns a status; out is not\n * written. The seeded compiler never writes x19..x28. Runtime entries are reached by blr/br, so they\n * start with bti jc. */\n__asm__(\".text\\n.balign 4\\n.local ombr_enter\\n.hidden ombr_enter\\n.type ombr_enter,%function\\nombr_enter:\\n\"\n \"hint #34\\nstp x29,x30,[sp,#-176]!\\nmov x29,sp\\nstp x19,x20,[sp,#16]\\nstp x21,x22,[sp,#32]\\n\"\n \"stp x23,x24,[sp,#48]\\nstp x25,x26,[sp,#64]\\nstp x27,x28,[sp,#80]\\nstp d8,d9,[sp,#96]\\n\"\n \"stp d10,d11,[sp,#112]\\nstp d12,d13,[sp,#128]\\nstp d14,d15,[sp,#144]\\nstr x3,[sp,#160]\\n\"\n \"mov x19,sp\\nmov x16,x0\\nmov x17,x1\\nmov x7,x2\\nmov sp,x4\\n\"\n \"ldp x0,x1,[x17]\\nldp x2,x3,[x17,#16]\\nldp x4,x5,[x17,#32]\\nblr x16\\n\"\n \"mov sp,x19\\nldr x9,[sp,#160]\\nstr x0,[x9]\\nmov w0,#0\\n\"\n \"ombr_leave:\\nldp d14,d15,[sp,#144]\\nldp d12,d13,[sp,#128]\\nldp d10,d11,[sp,#112]\\n\"\n \"ldp d8,d9,[sp,#96]\\nldp x27,x28,[sp,#80]\\nldp x25,x26,[sp,#64]\\nldp x23,x24,[sp,#48]\\n\"\n \"ldp x21,x22,[sp,#32]\\nldp x19,x20,[sp,#16]\\nldp x29,x30,[sp],#176\\nret\\n.size ombr_enter,.-ombr_enter\\n\"\n \".local ombr_trap\\n.hidden ombr_trap\\n.type ombr_trap,%function\\nombr_trap:\\nhint #38\\n\"\n \"mov sp,x19\\nsub x2,x1,#1\\nmov w3,#34\\ncmp x2,#13\\ncsel w0,w1,w3,ls\\nb ombr_leave\\n\"\n \".size ombr_trap,.-ombr_trap\\n\"\n \".local ombr_no_entry\\n.hidden ombr_no_entry\\n.type ombr_no_entry,%function\\nombr_no_entry:\\nhint #38\\n\"\n \"mov sp,x19\\nmov w0,#34\\nb ombr_leave\\n.size ombr_no_entry,.-ombr_no_entry\\n\");\nstatic void ombr_free(void *p)\n{\n munmap(p, OMBR_STACK + OMBR_GUARD);\n}\nstatic void ombr_init(void)\n{\n ombr_keyok = pthread_key_create(&ombr_key, ombr_free) == 0;\n}\n/* The thread's Omega stack: OMBR_STACK usable bytes above an OMBR_GUARD no-access region. A function-mode\n * unit has no call cycles and at most 4 MiB of local arrays per function (OMEGESE, local arrays), so a frame that\n * would pass the bottom starts inside the guard and faults there; nothing below the guard is touched. */\nstatic unsigned char *ombr_stack(void)\n{\n if (ombr_stk)\n return ombr_stk;\n pthread_once(&ombr_once, ombr_init);\n if (!ombr_keyok)\n return 0;\n unsigned char *p = mmap(0, OMBR_STACK + OMBR_GUARD, PROT_READ | PROT_WRITE,\n MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0);\n if (p == MAP_FAILED)\n return 0;\n if (mprotect(p, OMBR_GUARD, PROT_NONE) != 0 || pthread_setspecific(ombr_key, p) != 0) {\n munmap(p, OMBR_STACK + OMBR_GUARD);\n return 0;\n }\n ombr_stk = p + OMBR_GUARD + OMBR_STACK;\n return ombr_stk;\n}\nstatic int ombr_span_add(ombr_span *sp, unsigned *ns, const void *p, uint64_t n, uint64_t want, uint64_t es, int w)\n{\n uintptr_t lo = (uintptr_t)p;\n if (!p || n != want || lo % es != 0u || n > (UINTPTR_MAX - lo) / es)\n return 1;\n sp[*ns].lo = lo;\n sp[*ns].hi = lo + n * es;\n sp[*ns].w = w;\n (*ns)++;\n return 0;\n}\nstatic int ombr_overlap(const ombr_span *sp, unsigned ns)\n{\n for (unsigned i = 0; i < ns; i++)\n for (unsigned j = i + 1; j < ns; j++)\n if ((sp[i].w || sp[j].w) && sp[i].lo < sp[j].hi && sp[j].lo < sp[i].hi)\n return 1;\n return 0;\n}\n/* One read-only runtime table for every call and thread: the code only reads it (a write would fault). */\nstatic const ombr_rt ombr_rt_table = {{ ombr_no_entry, ombr_no_entry, ombr_trap, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry, ombr_no_entry }};\nstatic uint32_t ombr_run(const void *code, const uint64_t *args, uint64_t *result, int has_value)\n{\n if (ombr_active)\n return OMEGA_REENTRY;\n ombr_active = 1;\n unsigned char *top = ombr_stack();\n if (!top) {\n ombr_active = 0;\n return OMEGA_NO_STACK;\n }\n uint64_t v = 0;\n uint32_t s = ombr_enter(code, args, &ombr_rt_table, &v, top);\n ombr_active = 0;\n if (s == OMEGA_OK)\n *result = has_value ? v : 0u;\n return s;\n}\n" @@ -169,9 +175,23 @@ i = next end end end +note fpre: the fixed freestanding runtime; for x86linux only its assembly block becomes xfasm. fn fpre to void -for i ulong len fp +i = ulong 0 +while lt i len fp +if and eq get xt 0 1 fxbegin i +for j ulong len xfasm +ob get xfasm j +end +while not fxend i +i = add i 1 +if ge i len fp +trap 10 +end +end +end ob get fp i +i = add i 1 end end fn fbody to void @@ -205,13 +225,18 @@ ofr 22 odec get st 3 ofr 23 end -note ob: append one byte to the output pool (trap 6 when it is full). +note ob: append one byte to the output pools, outb then outc (trap 6 when both are full). fn ob b uchar to void n = get st 1 -if ge n len outb +if lt n len outb +put outb n b +else +k = sub n len outb +if ge k len outc trap 6 end -put outb n b +put outc k b +end put st 1 add n 1 end note orng: copy input bytes s .. e-1 to the output. @@ -269,6 +294,29 @@ end end ret true end +note The same marker match for the freestanding runtime fp. +fn fxbegin i ulong to bool +if gt add i len fxs len fp +ret false +end +for j ulong len fxs +if ne get fp add i j get fxs j +ret false +end +end +ret true +end +fn fxend i ulong to bool +if gt add i len fxe len fp +ret false +end +for j ulong len fxe +if ne get fp add i j get fxe j +ret false +end +end +ret true +end note opre: the fixed runtime part of the C file. fn opre to void i = ulong 0 @@ -402,9 +450,6 @@ end if eq m 0 trap 10 end -if and eq get xt 0 1 eq m 10 -trap 10 -end ret m end note tkis: 1 when token k is the keyword kw[o .. o+n-1], else 0. @@ -739,7 +784,42 @@ trap 10 end ret cl end -note ecode: the embedded machine code, unchanged. +note xcode: x86linux code bytes as ":", then .quad words (byte 8q+7 is the high digit pair, so the +note little-endian assembler lays down the compiler's bytes in order), then any tail as .byte. +fn xcode c0 ulong cl ulong to void +ob uchar 58 +nq = div cl 8 +if gt nq 0 +for j ulong len xqd +ob get xqd j +end +end +for q ulong nq +if gt q 0 +ob uchar 44 +end +ob uchar 48 +ob uchar 120 +for k ulong 8 +b = get inb add add c0 mul q 8 sub 7 k +ob get hx shr b 4 +ob get hx and b 15 +end +end +r = mul nq 8 +if lt r cl +for j ulong len xby +ob get xby j +end +end +for j ulong sub cl r +if gt j 0 +ob uchar 44 +end +ohex get inb add c0 add r j +end +end +note ecode: the embedded machine code, unchanged (x86linux packs it as little-endian .quad words). fn ecode c0 ulong cl ulong to void ofr 0 oname 1 @@ -747,6 +827,9 @@ ofr 1 oname 1 ofr 2 oname 1 +if eq get xt 0 1 +xcode c0 cl +else ofr 3 for j ulong cl if gt j 0 @@ -754,6 +837,7 @@ ob uchar 44 end ohex get inb add c0 j end +end ofr 24 oname 1 ofr 25 @@ -1786,14 +1870,18 @@ ofv 2 oun ofv 3 oun -ofv 4 c0 = get s2 13 +if eq get xt 0 1 +xcode c0 get s2 14 +else +ofv 4 for j ulong get s2 14 if gt j 0 ob uchar 44 end ohex get inb add c0 j end +end ofv 5 ofv 6 oun @@ -2540,8 +2628,21 @@ ofv 119 end o = ulong 0 m = get st 1 -while lt o m -w = write 1 outb o sub m o +e = m +if gt e len outb +e = len outb +end +while lt o e +w = write 1 outb o sub e o +if le w 0 +ret 1 +end +o = add o ulong w +end +o = ulong 0 +e = sub m e +while lt o e +w = write 1 outc o sub e o if le w 0 ret 1 end diff --git a/tests/native/test_capacity.py b/tests/native/test_capacity.py index 64f4b5c..2e1fb7e 100755 --- a/tests/native/test_capacity.py +++ b/tests/native/test_capacity.py @@ -35,38 +35,41 @@ def main(): # Every positive image is independently compiled from its matching source. # The straight-line body gives substantial real compiler output, not padded code. frames = [] - for i in range(16): + for i in range(64): unit = f"fn cap{i:02d} a ulong to ulong\n".encode() + b"a = xor a 1\n" * 8192 + b"ret ulong 7\nend\n" code = checked([OMC], input=unit).stdout frames.append(unit + b"\0" + f"{len(code):08d}".encode() + code) frame = b"".join(frames) - assert 1048576 < len(frame) < 4194304 + assert 4194304 < len(frame) < 16777216 result = checked([generator, "c"], input=frame) - assert 4194304 < len(result.stdout) < 16777216 + assert 16777216 < len(result.stdout) < 33554432 cfile = tmp / "capacity.c" cfile.write_bytes(result.stdout) caller = tmp / "caller.c" - caller.write_text("#include \nuint32_t omega_cap00(uint64_t *, uint64_t);\nuint32_t omega_cap15(uint64_t *, uint64_t);\nint main(void) { uint64_t r=0; if(omega_cap00(&r,0)!=0 || r!=7) return 1; r=0; return omega_cap15(&r,0)!=0 || r!=7; }\n") + # cap63's code is emitted past the first 16777216-byte output pool, i.e. from `outc`; + # calling it executes bytes stored in the second pool. + assert result.stdout.find(b"ombr_code_cap63:") >= 16777216, "cap63 not in second output pool" + caller.write_text("#include \nuint32_t omega_cap00(uint64_t *, uint64_t);\nuint32_t omega_cap15(uint64_t *, uint64_t);\nuint32_t omega_cap63(uint64_t *, uint64_t);\nint main(void) { uint64_t r=0; if(omega_cap00(&r,0)!=0 || r!=7) return 1; r=0; if(omega_cap15(&r,0)!=0 || r!=7) return 1; r=0; return omega_cap63(&r,0)!=0 || r!=7; }\n") checked([os.environ.get("CC", "cc"), "-std=gnu11", "-O2", "-Wall", "-Wextra", "-Werror", "-pthread", str(cfile), str(caller), "-o", str(tmp / "caller")]) checked([str(tmp / "caller")]) - for pool, old in ((b"inb uchar 4194304", b"inb uchar 1048576"), - (b"outb uchar 16777216", b"outb uchar 4194304")): + for pool, old in ((b"inb uchar 16777216", b"inb uchar 4194304"), + (b"outc uchar 16777216", b"outc uchar 1")): mutant = source.replace(b"global " + pool, b"global " + old) assert mutant != source refused(build(mutant, tmp / ("old-" + pool.split()[0].decode())), frame) # Hostile protocol inputs exercise each real upper boundary separately. - refused(generator, b"\0" * 4194304) + refused(generator, b"\0" * 16777216) print("CAPACITY PASS: current input pool exhaustion exits 106 with no output") # The output probe deliberately has unmatched source/code custody: it is # never executed and is solely an emitter-resource refusal control. oversized = [] - for i in range(4): + for i in range(8): unit = f"fn flood{i} to ulong\nret ulong 7\nend\n".encode() code = checked([OMC], input=unit).stdout oversized_code = code + b"\xff" * (875000 - len(code)) oversized.append(unit + b"\0" + f"{len(oversized_code):08d}".encode() + oversized_code) oversized_frame = b"".join(oversized) - assert len(oversized_frame) < 4194304 + assert len(oversized_frame) < 16777216 refused(generator, oversized_frame) print("CAPACITY PASS: current output pool exhaustion exits 106 with no output") print(f"CAPACITY PASS: compiler-built frame {len(frame)} bytes, C {len(result.stdout)} bytes, both endpoint calls") diff --git a/tests/native/test_freestanding.py b/tests/native/test_freestanding.py index 91354f5..cbdf35f 100755 --- a/tests/native/test_freestanding.py +++ b/tests/native/test_freestanding.py @@ -9,6 +9,33 @@ import tempfile ROOT = Path(__file__).resolve().parents[2] OMC = os.environ['OMEGA_NATIVE_OMC'] ALLOWED = {'_GLOBAL_OFFSET_TABLE_', 'memcpy', 'memmove', 'memset', 'memcmp', 'strlen', 'strcmp'} +# Shared with tests/native/x86/suite.py, which runs the same caller under qemu-x86_64. +EPOCH = 'fn guard n ulong to ulong\nif eq n 18446744073709551615\ntrap 1\nend\nret n\nend\nfn epoch n ulong to ulong\nx = guard n\nret add x 1\nend\n' +CALLER = '''#include "omega_native.h" +#include +#include +static pthread_barrier_t barrier; +static void *call(void *arg) { + (void)arg; + pthread_barrier_wait(&barrier); + for (unsigned i = 0; i < 10000; ++i) { + uint64_t v = 17; + if (omega_epoch(&v, UINT64_MAX) != 1 || v != 17) return (void *)1; + if (omega_epoch(&v, 1) || v != 2) return (void *)1; + if (omega_smadd(&v, UINT64_C(0x7fffffffffffffff), 2, 0) != 1 || v != 2) return (void *)1; + if (omega_smadd(&v, 3, 5, 7) || v != 22) return (void *)1; + } + return 0; +} +int main(void) { + pthread_t threads[4]; + if (omega_epoch(0, 1) != OMEGA_BAD_ARG) return 1; + if (pthread_barrier_init(&barrier, 0, 4)) return 1; + for (unsigned i = 0; i < 4; ++i) if (pthread_create(&threads[i], 0, call, 0)) return 1; + for (unsigned i = 0; i < 4; ++i) { void *v; if (pthread_join(threads[i], &v) || v) return 1; } + return pthread_barrier_destroy(&barrier) != 0; +} +''' def run(args, **kw): @@ -26,7 +53,7 @@ def main(): with tempfile.TemporaryDirectory(prefix='bridge-freestanding-') as td: t = Path(td) epoch = t / 'epoch.om' - epoch.write_text('fn guard n ulong to ulong\nif eq n 18446744073709551615\ntrap 1\nend\nret n\nend\nfn epoch n ulong to ulong\nx = guard n\nret add x 1\nend\n') + epoch.write_text(EPOCH) out = t / 'lib' run([ROOT / 'tools/native', '--freestanding', out, epoch, ROOT / 'tests/native/smadd.om']) assert not imports(out / 'omega_native.o') - ALLOWED @@ -38,31 +65,7 @@ def main(): assert not (out / 'libomega_native.so').exists() assert not (out / 'omega_native.py').exists() caller = t / 'caller.c' - caller.write_text('''#include "omega_native.h" -#include -#include -static pthread_barrier_t barrier; -static void *call(void *arg) { - (void)arg; - pthread_barrier_wait(&barrier); - for (unsigned i = 0; i < 10000; ++i) { - uint64_t v = 17; - if (omega_epoch(&v, UINT64_MAX) != 1 || v != 17) return (void *)1; - if (omega_epoch(&v, 1) || v != 2) return (void *)1; - if (omega_smadd(&v, UINT64_C(0x7fffffffffffffff), 2, 0) != 1 || v != 2) return (void *)1; - if (omega_smadd(&v, 3, 5, 7) || v != 22) return (void *)1; - } - return 0; -} -int main(void) { - pthread_t threads[4]; - if (omega_epoch(0, 1) != OMEGA_BAD_ARG) return 1; - if (pthread_barrier_init(&barrier, 0, 4)) return 1; - for (unsigned i = 0; i < 4; ++i) if (pthread_create(&threads[i], 0, call, 0)) return 1; - for (unsigned i = 0; i < 4; ++i) { void *v; if (pthread_join(threads[i], &v) || v) return 1; } - return pthread_barrier_destroy(&barrier) != 0; -} -''') + caller.write_text(CALLER) run(['cc', '-std=gnu11', '-O2', '-Wall', '-Wextra', '-Werror', '-pthread', '-I', out, caller, linked, '-o', t / 'caller']) run([t / 'caller']) print('PASS freestanding epoch increment/MAX trap, nested trap unwind, signed trap and four-thread isolation; GPU_FS_LINK imports and no TLS') diff --git a/tests/native/x86/suite.py b/tests/native/x86/suite.py index a3357c5..6fb6e2c 100755 --- a/tests/native/x86/suite.py +++ b/tests/native/x86/suite.py @@ -25,6 +25,9 @@ N = ROOT / "tests/native" OUTPUTS = {"c": "c", "h": "h", "python": "py", "rust": "rs", "zig": "zig", "go": "go", "api": "api.h", "apih": "api_decl.h", "apic": "api_defs.c"} REQUIRED = {"c", "cpp", "python", "rust", "zig", "go"} +# The AArch64 parity baseline is the generator of the last intentional AArch64 output change: +# f637021 (#26, f32 and ushort array kinds). Moving it requires a reviewed AArch64 output change. +BASELINE = "f637021" def digest(data): @@ -448,9 +451,7 @@ class Suite: def aarch64_parity(self): baseline = self.out / "baseline-native-gen" - # Last accepted AArch64 contract: #26 (f637021) changed AArch64 output on purpose; - # its parent still matches the pre-x86 generator 0c4cb9ff on every earlier fixture. - source = self.must(["git", "-C", str(ROOT), "show", "f637021:src/native.om"]) + source = self.must(["git", "-C", str(ROOT), "show", BASELINE + ":src/native.om"]) baseline.write_bytes(self.must([self.omc], data=source)) baseline.chmod(0o755) frames = {} @@ -475,7 +476,7 @@ class Suite: for word in (*OUTPUTS, "freest"): old = self.generate(word, frame, baseline, target=False) new = self.generate(word, frame, target=False) - self.check("AArch64 byte parity f637021 " + name + " " + word, + self.check("AArch64 byte parity " + BASELINE + " " + name + " " + word, old.returncode == new.returncode and old.stdout == new.stdout and old.stderr == new.stderr) def trap_controls(self): @@ -519,6 +520,47 @@ class Suite: self.check(name + ": status " + str(expected) + ", sentinel, saved regs and subsequent call EMULATED", result.returncode == 0 and b"PASS trap status" in result.stdout) + def freestanding_x86(self): + # tests/native/test_freestanding.py's caller (four threads, nested trap, signed trap) + # against `tools/native --target x86linux --freestanding`, i.e. the xfasm adapter. + sys.path.insert(0, str(N)) + import test_freestanding + good = (ROOT / "src/native.om").read_bytes() + old, new = b"mov %rax,(%rcx)", b"mov %rbx,(%rcx)" + xfasm = [line for line in good.split(b"\n") if line.startswith(b"text xfasm ")] + # The mutant must hit the freestanding adapter's result store exactly once. + if not self.check("freestanding result-store mutant applies once to xfasm", + len(xfasm) == 1 and xfasm[0].count(old) == 1): + return + bad = good.replace(xfasm[0], xfasm[0].replace(old, new)) + for name, source in (("freestanding-x86", good), ("freestanding-x86-mutant", bad)): + tree = self.out / name + (tree / "tools").mkdir(parents=True) + (tree / "src").mkdir() + shutil.copy2(ROOT / "tools/native", tree / "tools/native") + (tree / "src/native.om").write_bytes(source) + epoch = tree / "epoch.om" + epoch.write_text(test_freestanding.EPOCH) + lib = tree / "lib" + self.must([tree / "tools/native", "--target", "x86linux", "--freestanding", lib, epoch, N / "smadd.om"]) + obj = lib / "omega_native.o" + elf = obj.read_bytes() + imports = {line.split()[-1] for line in self.must(self.nm + ["-u", str(obj)]).decode().splitlines() if line.split()} + self.check(name + " object is x86-64 with only GPU_FS_LINK imports", + elf[:6] == b"\x7fELF\x02\x01" and elf[18:20] == b"\x3e\x00" + and not imports - test_freestanding.ALLOWED) + caller = tree / "caller.c" + caller.write_text(test_freestanding.CALLER) + self.must_build(self.call(self.cc + ["-std=gnu11", "-O2", "-Wall", "-Wextra", "-Werror", "-pthread", + "-I", str(lib), str(caller), str(obj), "-o", str(tree / "caller")])) + result = self.call(self.guest(tree / "caller")) + if source is good: + self.check("freestanding x86 epoch/MAX trap, nested and signed trap, four threads EMULATED", + result.returncode == 0) + else: + self.check("freestanding x86 result-store mutant caught by caller EMULATED", + result.returncode == 1) + def floor_controls(self): # This is a byte-level foreign ABI oracle, not compiler behavior: # mov %r15,%rax; ret; nop; nop occupies one six-byte export slot. @@ -576,7 +618,8 @@ def main(): if suite.preflight(): for step in (suite.initial_library, suite.identity_and_code, suite.aarch64_parity, suite.callers, suite.stale_and_v1, suite.refusals, suite.runtime_mutants, - suite.private_symbols, suite.freestanding_api, suite.trap_controls, suite.floor_controls): + suite.private_symbols, suite.freestanding_api, suite.trap_controls, + suite.freestanding_x86, suite.floor_controls): try: step() except (RuntimeError, AssertionError, OSError, StopIteration) as error: diff --git a/tools/native b/tools/native index e4bef28..d4c2da0 100755 --- a/tools/native +++ b/tools/native @@ -34,7 +34,7 @@ # --freestanding accepts only pure integer-scalar OM-1 units and installs omega_native.{c,h,o} # plus work/. The object has no undefined symbols except the GPU_FS_LINK libc-string allowlist. # Calls use the caller's stack; traps return status without TLS, heap or a hosted runtime. -# Freestanding x86 output is not supported and is refused before creating OUTDIR. +# Freestanding x86 output uses the same contract with a SysV adapter (owned-stack floor 0, as on AArch64). set -eu PIN=734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61 X86_PIN=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a @@ -58,7 +58,6 @@ done case "$TARGET" in aarch64linux) ;; x86linux) - [ "$CMODE" != freest ] || { echo "tools/native: --freestanding is supported only for aarch64linux; nothing installed" >&2; exit 110; } X86_OMC=${OMEGA_NATIVE_X86_OMC:?set OMEGA_NATIVE_X86_OMC to the pinned x86 Linux compiler (sha256 $X86_PIN)} got=$(sha256sum < "$X86_OMC" | cut -d' ' -f1) [ "$got" = "$X86_PIN" ] || { echo "tools/native: x86 omc sha256 $got, pinned $X86_PIN" >&2; exit 1; } ;; ```