nx_nxa_morf_malformed_gate.nx
buildroot/runtime/nx_nxa_morf_malformed_gate.nx
about
nx_nxa_morf_malformed_gate.nx -- drive the promoted evaluator with checksum-valid
shape/arithmetic counterexamples. Every refusal must preserve an existing output.
Test fixture dimensions and values are data, not production policy.
license_tier: ORIGINAL; no hardware writes; expect_exit: 0
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_gatekit_lib.nxnx_nxa.nxnx_estate_path.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| 43 | struct MbRun |
consts
| 11 | const MB_ELF: *u8 = "./nx_nxa_morf.elf" |
| 12 | const MB_DIR: *u8 = "/tmp/nxmorfmalformed" |
| 13 | const MB_IN: *u8 = "/tmp/nxmorfmalformed/input.nxa" |
| 14 | const MB_OUT: *u8 = "/tmp/nxmorfmalformed/output.nxa" |
| 15 | const MB_SENTINEL: *u8 = "NXA-OUTPUT-KEEP\n" |
| 16 | const MB_WORD: i64 = 8 |
| 17 | const MB_HEAD: i64 = 4 |
| 18 | const MB_ENTRY: i64 = 4 |
| 19 | const MB_SECTIONS: i64 = 3 |
| 20 | const MB_AXES: i64 = 3 |
| 21 | const MB_VERTICES: i64 = 3 |
| 22 | const MB_FACES: i64 = 2 |
| 23 | const MB_FACE_HEAD: i64 = 4 |
| 24 | const MB_MORF_HEAD: i64 = 4 |
| 25 | const MB_CHANNEL_REC: i64 = 2 |
| 26 | const MB_UNIT: i64 = 1000 |
| 27 | const MB_VWORDS: i64 = 1 + MB_VERTICES*MB_AXES |
| 28 | const MB_FWORDS: i64 = MB_FACE_HEAD + MB_FACES |
| 29 | const MB_MWORDS: i64 = MB_MORF_HEAD + MB_CHANNEL_REC + MB_FACES*MB_AXES |
| 30 | const MB_V: i64 = MB_HEAD + MB_SECTIONS*MB_ENTRY |
| 31 | const MB_F: i64 = MB_V + MB_VWORDS |
| 32 | const MB_M: i64 = MB_F + MB_FWORDS |
| 33 | const MB_D: i64 = MB_M + MB_MORF_HEAD + MB_CHANNEL_REC |
| 34 | const MB_WORDS: i64 = MB_M + MB_MWORDS |
| 35 | const MB_BYTES: i64 = MB_WORDS*MB_WORD |
| 36 | const MB_USAGE: i64 = 2 |
| 37 | const MB_BAD: i64 = 3 |
| 38 | const MB_MAX: i64 = 9223372036854775807 |
functions
| 48 | func mb_pathlen(p: *u8) -> i64 |
| 53 | func mb_join(a: *u8,b: *u8) -> *u8 |
| 60 | func mb_basename(p: *u8) -> i64 called by 1: main |
| 74 | func mb_len(s: *u8) -> i64 |
| 79 | func mb_write(path: *u8, b: *u8, n: i64) -> i64 |
| 87 | func mb_same(path: *u8, want: *u8, n: i64) -> i64 |
| 100 | func mb_recheck(h: *i64) -> i64 |
| 111 | func mb_fixture() -> *i64 |
| 133 | func mb_positive(label: *u8, spec: *u8, h: *i64, want: *i64, ctr: *i64,run: *MbRun) -> i64 |
| 144 | func mb_refuse_code(label: *u8, h: *i64, size: i64, spec: *u8, expected_rc: i64, ctr: *i64,run: *MbRun) -> i64 |
| 160 | func mb_refuse(label: *u8, h: *i64, size: i64, spec: *u8, ctr: *i64,run: *MbRun) -> i64 |
| 163 | func main(argc: i64, argv: *i64) -> i64 |