Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/evidence/OSC-2/receipts/osc2-structs-9ed6766ba798f007a5206ef597b7ac387c6083ccc3773ae3b91a48aaa443e66f.json # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / evidence / OSC-2 / receipts / osc2-structs-9ed6766ba798f007a5206ef597b7ac387c6083ccc3773ae3b91a48aaa443e66f.json` 66 lines ยท 14392 bytes Raw Blame History 1 { 2 "schema": "omega.osc2.compiler.receipt.v1", 3 "verdict": "PASS", 4 "item": "structs", 5 "statement": "OSC-2 slice; not a general Omega compiler; no self-hosting.", 6 "subset": "integer scalars u8 u16 u32 u64 (wrap) and i8 i16 i32 i64 (checked, trap on overflow), bool; let / let mut; arithmetic, bitwise, shift, compare, logical (short-circuit), checked as-casts; if/else; while with static bound N (trap past N) and for over literal ranges; calls to earlier functions in the unit (no recursion, <= 6 params); unique allocation own [T; N] (N <= 64), moves, shared and mutable borrows with lexical lifetimes, bounds-checked indexing, deterministic destruction at scope end; OSC-2 item 1: requires/ensures are pure bool expressions over parameters (and result in ensures; element reads through parameters, ensures only via shared borrows; no calls), refused statically when constant folding decides them false (CONTRACT_VIOLATION), otherwise checked at run time (TRAP REQUIRES = 9 at entry, TRAP ENSURES = 10 at each return before releases; statically true clauses elided); OSC-2 item 2: unit-level struct declarations (<= 16 structs, 1..16 fields of integer, bool or [T; N], <= 64 cells, declared before use, no recursion) with a fixed layout of 8-byte cells in declaration order (no padding, bound into the IR digest), struct literals initialising every field exactly once in let own, field reads and writes (array fields bounds-checked, TRAP BOUNDS), moves, own / & / &mut parameters with the array borrow rules, deterministic destruction with the same alloc/release events; requires reads fields through any struct parameter, ensures only through a shared & parameter; returning a struct is refused (UNSUPPORTED)", 7 "pipeline": "surface text -> lexer/parser -> typed AST -> name/type + ownership/borrow analysis -> typed IR (canonical encoding + sha256) -> AArch64 via src/compiler/osc_a64 (validating encoder, decoder mirror)", 8 "repo_commit": "`a908454cbc8cb541e9afb43d7679ca218ffade91`", 9 "base_commit": "`0abdb08aec443cad3b66cf17afee6b713b7af271`", 10 "tree_clean": true, 11 "host_arch": "aarch64", 12 "c_compiler": "cc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0", 13 "osc0b_model": {"seed": "0x05c0b5eed0010001", "sequences": `1000000`, "steps": `21905422`, "false_accepts": 0, "wrong_name": 0, "false_rejects": 0, "result": "OSC0B_MODEL_PASS"}, 14 "backend": "units=15 funcs_fuzzed=361 diff_runs=722000 words_roundtrip=13006 enc_random_ok=45779 enc_random_refused=126221 dec_random_words=76497 validator_neg=40; checks=798964 failed=0; native == interpreter on every run", 15 "compiler": "golden=31/31 funcs=117 entries=82 expect_runs=86 diff_runs=99136 trace_replays=77 rt_replays=62738 rt_events=209464 neg=82/82 neg_traced=16 checks=274660 failed=0", 16 "golden_trap_coverage": {"none": 62738, "overflow": 3195, "div0": 23, "bounds": 5347, "loop_bound": 2100, "cast": 1499, "oom": 365, "shift": 2805, "runtime": 0, "requires": 1793, "ensures": 2135}, 17 "contract_fuzz": "contract fuzz: units=200 compiled=174 static_refused=26 runs=11136 ok=882 requires=5435 ensures=4384 overflow=435 other_traps=0 mismatches=0; native == interpreter on every run", 18 "contract_fuzz_asan": "contract fuzz: units=200 compiled=174 static_refused=26 runs=11136 ok=882 requires=5435 ensures=4384 overflow=435 other_traps=0 mismatches=0", 19 "struct_fuzz": "struct fuzz: units=125 runs=6000 ok=3805 bounds=1087 requires=155 overflow=224 cast=729 mismatches=0; native == interpreter on every run", 20 "struct_fuzz_asan": "struct fuzz: units=125 runs=6000 ok=3805 bounds=1087 requires=155 overflow=224 cast=729 mismatches=0", 21 "struct_layout": "struct layout: L offsets 0 1 4 5 7 cells 8; M cells 64; digest binds layout", 22 "struct_destruction_order": "struct destruction order: alloc 1 2 3, release 3 2, alloc 4, release 4 1 (interp == native)", 23 "determinism": "programs=31 identical=31 (oscc in separate processes, byte-identical IR digest and machine code)", 24 "sanitizers": "all three test binaries also pass under -fsanitize=address,undefined -fno-sanitize-recover=all (model sweep at 10^5)", 25 "golden_programs": 31, 26 "negative_programs": 82, 27 "golden_corpus_sha256": "`bc73ba1a6a71f8931282aaca95e3632081197b63accfca2417ce3ffe1eeae2aa`", 28 "golden_corpus": [ 29 {"program": "tests/compiler/progs/arrays.osc", "source_sha256": "`0d41e301111e2c132ceba7d7272eb42ae0d1b1cb0341c4f76d3fec2ce38a6ee8`", "ir_sha256": "`3c3b6e50085dd82cde7ec97d2feb580d38b714f8cb4f60db35b9a4f36530df0d`", "code_sha256": "`e6b45cce88509c39fa0503302691906d79e4189de57244a9bc1036ba15c91ac5`"}, 30 {"program": "tests/compiler/progs/bitrev.osc", "source_sha256": "`7a831a9f47434a76b65bdf837fecaf96f4a85d2c31c4682b280301b8aa588d1c`", "ir_sha256": "`e3aa5e5e5c58fbc686025370e8c87eceb5c4805b2a9d21d55bfbf7bfdba6cc36`", "code_sha256": "`94674978c5ca8c96ccc0fed847668ab4b73c0dd1f3f7527a613b26cd307c2362`"}, 31 {"program": "tests/compiler/progs/bounds.osc", "source_sha256": "`0519478f54c98ca06f3414ff9ac5dc4193ed5b2b43a7a89b2333ef3bb54b3094`", "ir_sha256": "`7e7bb041550f9a5a4445c0e028650f6e0cf9afcea61819a95e29b92eca13d966`", "code_sha256": "`07bb15370990980cd1b27be4ee87612133a58463e305e067870b6668ebc9a2d9`"}, 32 {"program": "tests/compiler/progs/calls.osc", "source_sha256": "`add5b82ec5ea73b322e9b1620220f9ff73ba9f76aeff031e0654980e2f36bcbc`", "ir_sha256": "`9d50bea67d3928a457201dfe35541b912b9acfbdaf97e901e7ea2e0f3185524d`", "code_sha256": "`a6434af2275da292a0a573b355cab439bfb26f85be6b0b0dcdc709edc66d7a94`"}, 33 {"program": "tests/compiler/progs/casts.osc", "source_sha256": "`a5093b32ee0d204d20920e5fd8f8c39c8e10b92c89aabb41fb703e7e28637fb3`", "ir_sha256": "`cc35e86f43ba0ebe29ea6906c0af5e01fa30964c75b0a69b05370c4100ae80b3`", "code_sha256": "`fdff78f367ea211da5e5058ffe715ea7fb14a1bee2727e69aefd9fda2b27bece`"}, 34 {"program": "tests/compiler/progs/collatz.osc", "source_sha256": "`912412fa1ffd990786a055d2b43a35f9fd629fa59299b1181463f3b314cd741f`", "ir_sha256": "`fdf94380724fa0994a074cbed2cf789c3ed4dfeb14450e648b9144ada4e57edd`", "code_sha256": "`9b06e959179f262f45ef72015ee1001a026262754804c107b640813131e014bf`"}, 35 {"program": "tests/compiler/progs/contracts_basic.osc", "source_sha256": "`8a1370cec47deb9671ef6e4a55a66a94b97d3f34754fa7c64ae741853134bb99`", "ir_sha256": "`94f2e0f6c9c8c15630725d5105007a7ecdb26212c898219b4d99be340d027ede`", "code_sha256": "`b7d9a360486ca56847ee83a0dc7731026305a20a9dfd250d2d6bc3197b74a0fc`"}, 36 {"program": "tests/compiler/progs/contracts_ensures.osc", "source_sha256": "`4bade10adc6078e9a8cb77b12fd529f0cb733bcf24629018a95402528a0bc3f0`", "ir_sha256": "`c2a7c5cca6ffd933c90d89d20e0b8dcb5c56fbf831fd9b882ad729de1efefa9f`", "code_sha256": "`de5746dd6d6c22049987e7bd5bdde6a238fe24785e4c654a852e383a0e657f6a`"}, 37 {"program": "tests/compiler/progs/contracts_requires.osc", "source_sha256": "`83f5842fba1f7f027cb655fcff243f1650761afedecb1cd168992a08b7924224`", "ir_sha256": "`16bc4b6267ee1d4a75cc60d35514baf10cc3f326b3a3e47222ca271587c9dac3`", "code_sha256": "`599922ff8eff90977309cf593da6cac4f951eb182bdf8a8b156c36ca6c7917ff`"}, 38 {"program": "tests/compiler/progs/factorial.osc", "source_sha256": "`3e410e9214a30628b199f7bfe8f99d7e9f439e73af2d279719fa7b523bc74e21`", "ir_sha256": "`cc36ae8edf9a203d4f82bd1b351b92f2df818427d26239ae8c6542e175674700`", "code_sha256": "`a3fc5f8c4a5ae8ce6381a0db02a03e391df791a0ce2d6f778face3a30532ecd3`"}, 39 {"program": "tests/compiler/progs/fib.osc", "source_sha256": "`9490114a0c756edab0ee7af37252b5883cc7c11b69e54ba5481530b2dcb8e03c`", "ir_sha256": "`bfe54f4d1502277153becb83faa0fd2975496a1875837fa8e8aa72431aa0ad00`", "code_sha256": "`d2e25ea89ebd59e49e29303696b7b2bff4ff39d45f62bd5566db609830d153a8`"}, 40 {"program": "tests/compiler/progs/gcd.osc", "source_sha256": "`0fad11202f1f6ce6e845b266f24df86cbc0e6160a4772c043a15b60fa54a720f`", "ir_sha256": "`5d649066a565d7e7ab680ea6b2827306701714da7b23755836814da7cccfa328`", "code_sha256": "`eb4cbe78da3176853323b2d11b970444c51fb61a33dbc770ec355cc10b94d45d`"}, 41 {"program": "tests/compiler/progs/ifchain.osc", "source_sha256": "`89fd46fc610516121dbd38cca232a98abccb55abf1593409ca575ab7e293699e`", "ir_sha256": "`2323f2753d8e2eb269d65db1b8e9a6006b0e09ed98e0f3f74268143cf870342d`", "code_sha256": "`f7c3aa9e0ae96c5d1a1c0fbcb44b7504843aac8ed5035b2400d50819cc999e03`"}, 42 {"program": "tests/compiler/progs/isort.osc", "source_sha256": "`7dceeaf139addf172152b8861602d02d654e5d2f9fab451d2c38d823ddd1b7db`", "ir_sha256": "`fe5d0090baeb54d9afd33a9745b7a60136e513aaca0c03f5275d5efab4de3091`", "code_sha256": "`b99188f630088cd1c48b4e57d48431982eb3671c50fbe5ea42e17db680baf100`"}, 43 {"program": "tests/compiler/progs/loopbound.osc", "source_sha256": "`71def740b4af102745e954e5d06582cf28b5e90e633a254a3f248bd1ed8c10c3`", "ir_sha256": "`d5994fccb2c93ba53d8e3a73222aa54f28f2159509f992167c8e77e779734db2`", "code_sha256": "`e8b5a7ca1240adbcfc66c6e1e117b01ad692c4faed32381742e0ba9a7313bd83`"}, 44 {"program": "tests/compiler/progs/minmax.osc", "source_sha256": "`95c17e1cb5ffc836ef2bcf16ab39246b5c0bbb8acb1c05a6e08b838a12b60b7e`", "ir_sha256": "`a5ee50c4f631cfda3282c6a6a42842f20986ae4129fa4e22656ea836c8a01543`", "code_sha256": "`387756318095cc219eec337923bf12440927b254cac189872b17ea617f17ae41`"}, 45 {"program": "tests/compiler/progs/nested.osc", "source_sha256": "`8e9aaf037c142ea43dcc4e9013013688eb19f03f24a9e8511058623ced32dc35`", "ir_sha256": "`94e13f928a06a8d2ddff59030bb412cfcb5e4888570f9b7fc44786c135415c04`", "code_sha256": "`0eb5b788611a907d360730c08b78c6b0cfbf3a454323b42808f77f8aed300e71`"}, 46 {"program": "tests/compiler/progs/oom.osc", "source_sha256": "`1d82ff5262c21e4760b2404dc8fc649863a35ac4a164e4ae6684adcd7cecfc7e`", "ir_sha256": "`6ce4fcbb5b507668183dd67678a93dad7fe11d7b3f02c2466815712fb300116c`", "code_sha256": "`5c788e2eef2be25b04013f7bd8378d715756293c36f9509c14e9d5d465e5552a`"}, 47 {"program": "tests/compiler/progs/ops.osc", "source_sha256": "`2f68f1cf7d7d4569c90d79e4afc2bbdb9cf1bc2fc39cc8f8e23555c90cdd0223`", "ir_sha256": "`9742eb592d1cfcd72c622d2ab28fe1dd1fa921f14cd3418662f303be851e1162`", "code_sha256": "`0c038096a7f33e702937c2979eba15d6fc5a25dd66ba12c5b746df8529e7a959`"}, 48 {"program": "tests/compiler/progs/popcount.osc", "source_sha256": "`eab7407d3cfc923d15f52e04e00d96a9e7331b0e2496552b8258e7f88bc65236`", "ir_sha256": "`15aa9536feb7cbbe9cd03efcf2517321964bb479c0331f45610225c64af186ac`", "code_sha256": "`04510e1bf63889d5dd0bb7b85eeffb7b016ad87a65a7e0e2209df082f1a9d1db`"}, 49 {"program": "tests/compiler/progs/prefix.osc", "source_sha256": "`a4852da0953c8e11e5a9e51d00be81a6cc9e1f9e938cbd9d186f34ccb53cc524`", "ir_sha256": "`6feaa9af48e493a02a3de461aeae3b88b1c813c9011a462537e88c661704ee63`", "code_sha256": "`f4c78d8644d86ce7f1edd36ebd6958d5250a34dedde3435587e34dfb2d474362`"}, 50 {"program": "tests/compiler/progs/reborrow.osc", "source_sha256": "`caf5e895fcd0660d6ca7c6360228901cb4eee5a7afe128b59334aec904e63feb`", "ir_sha256": "`34086f590aeaec09669b9656cfca7db57beffb67a59d7e1ba22548336de146b2`", "code_sha256": "`a6a0a251ed5ddcbc431e38ed73602ee9202fd2d601bd7085ae70ccb5974daf62`"}, 51 {"program": "tests/compiler/progs/scopes.osc", "source_sha256": "`9904f63cb89734f2411f04b098640cb0ebe8069a49ae7b1a40c728d434770070`", "ir_sha256": "`81e996a3c8c6515d57375609aba9ae7c6c5822626b1a8da9cd0943b70db4a1ed`", "code_sha256": "`e3faba53225b4f3a9398b5d39f6a224b24df08cf9b6a67ca5652a439f0717127`"}, 52 {"program": "tests/compiler/progs/shifts.osc", "source_sha256": "`dd33980fb0f3b8d61477b6c197508e3c46d894c0ebc0f99244c01b5e86ee8780`", "ir_sha256": "`7d2e542f2241ccfacbd6a812c1671733dda94410ede4e3847b43c0955a6f69b3`", "code_sha256": "`c07f4547cac6e250b1c76021f0955fd530844fcc593a33192592ee0f917ecf59`"}, 53 {"program": "tests/compiler/progs/shortcircuit.osc", "source_sha256": "`c3f272b3f6b6d27c9cde9887197e73dd622ea30ff802fb87c250a5e2f704e1d0`", "ir_sha256": "`863365c4653fb44aac42316b1cde491107ad739d58b7af5b4b55e3a2774c5d41`", "code_sha256": "`bbd44412068130fdf65d66f718f74c6e0e7e36ee19282f19e5c2f3bbcf66ba2e`"}, 54 {"program": "tests/compiler/progs/sixparams.osc", "source_sha256": "`535fead297b7c4b7946c25b0b1f716634b4342701c3ff486dbd8189ed8bc3770`", "ir_sha256": "`176dee2ab6b66ff28dc04f095964c51f59dcda5518a9696a95a9c588dd78083e`", "code_sha256": "`c1e8cf802ef21c2b08b08dd266303c715e64ab7323cb5267fe2492de1e54cee8`"}, 55 {"program": "tests/compiler/progs/structs_contracts.osc", "source_sha256": "`06573d57946360c9e65090b61696a005ffe3fd3f3c1ca117765d9a3028a6f43a`", "ir_sha256": "`06b233f9e16e229fc606c8bda44b24e43473a2cd376053341e6ee644e124fe99`", "code_sha256": "`d52177fe222b3e548cc1df3bb294d524b41bcb093b64e8fc41f153094eacebf0`"}, 56 {"program": "tests/compiler/progs/structs_dtor.osc", "source_sha256": "`71f951fae6f1471dc52c5edb43abfa7b7692835e0d9fe8c63ae18a2e44e97ad5`", "ir_sha256": "`c7b4d22c623f0b1c4d004474c532ca74cbf23911cdcd299ad81843f4ef9a27df`", "code_sha256": "`3d73cda95a76bd70f7a5e4aa7673a360b2c40423381db88cabadd3bbfe363b0d`"}, 57 {"program": "tests/compiler/progs/structs_fields.osc", "source_sha256": "`4da454a3b5633ddec4f39f35c67236b26b87dde922d829ff5eb39df2195b5f2e`", "ir_sha256": "`865a9a09510cf16363e38345c47544ac1c9b48f7eddec67729f7e1ca40d03461`", "code_sha256": "`69be8bd0763aec308f5a002820ae496bc86dd1ac93111e532790dab27dd10586`"}, 58 {"program": "tests/compiler/progs/structs_owner.osc", "source_sha256": "`babf04cbcfbece1e1c4c4d23c59b97fb7644f639f77d987d6732c613313170cc`", "ir_sha256": "`11dd47aca0387de3b7fc3f546272b165c9f2d2675626dda03a255a4dd4942807`", "code_sha256": "`3e1df27680d16d47f1c2568d9e7f3f066ef29eb13e0faa89a16e12c182ec3da7`"}, 59 {"program": "tests/compiler/progs/types.osc", "source_sha256": "`ca4d49a4aca05b04e9935dd7cc560a023c4e4cffa36ff84c7755883a90c2b0d5`", "ir_sha256": "`f623556285814fbd02241fe4f24025bf93811581655beab6073e8d867b42b3a5`", "code_sha256": "`45c042eeb15cebf30615b7ad341b58a41bd805d83a08c358304b4284785eee35`"} 60 ], 61 "omega_core_sources_unchanged_vs_base": true, 62 "m6_m9_m14_gates": {"m6": {"total": 10, "passed": 10, "failed": 0}, "m9": {"total": 10, "passed": 10, "failed": 0}, "m14": {"total": 10, "passed": 10, "failed": 0}}, 63 "self_host": "no: the OSC-2 compiler slice cannot compile any part of itself (docs/osc/OSC-1-SELF-HOST-STATEMENT.md)", 64 "not_covered": "struct return values, struct-typed and owner/borrow fields, recursive structs, struct literals outside let own initialisers, whole-struct copy or compare, contracts beyond constant folding (no symbolic proof), effects/capabilities, strings, generations, arenas, unsafe physical, FFI, Flow IR optimisation, self-hosting (OSC-14); not a general Omega compiler", 65 "timing_measured": false 66 }