code wiki / _hdl_build / nx_suitebench_gate.nx

nx_suitebench_gate.nx

buildroot/runtime/_hdl_build/nx_suitebench_gate.nx

11742 B207 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_suitebench_gate.nx -- the regression proof for the suite ruler. It imports nx_suitebench_lib, which is the SAME code the shipped ruler runs, so these teeth verify the instrument rather than a copy of it. The teeth that matter are the negative ones. An instrument that only demonstrates its happy path proves nothing: the whole value of this ruler is that it REFUSES bad input, so the gate has to show the refusals actually fire -- a fabricated citation must not be findable, a stub-worded claim must fall, and a cell an incumbent does not ship must not reach the denominator. T9 goes further and MUTATES a real row to prove the cynical bar is load-bearing: if the mutation does not lower the score, the bar is decoration. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_suitebench_lib.nx nx_honesty_grade_lib.nx nx_gate_verdict.nx nx_suitebench_gate.nx

imports: nx_suitebench_lib.nxnx_honesty_grade_lib.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_w sb_read_rooted sb_join sb_root sb_read sys_openat_rd sys_read sys_close g_n g_t gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_check gv_puts sys_write ↻ hg_grade hg_stub_tell hg_contains hg_slen hg_has_real_proof hg_contains ↻ sb_find sb_len sb_is_ext g_cp

structs

none

consts

14const GT_AXBUF: i64 = 65536
15const GT_CORPUS: i64 = 262144
16const GT_ROWBUF: i64 = 512

functions

18func g_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main
19func g_n(v: i64) -> i64 {
called by 1: main
40func g_t(pass: i64, label: *u8, fails: *i64) -> i64 {
called by 1: main calls 2: gv_ctrgv_check
47func g_cp(dst: *u8, src: *u8) -> i64 {
called by 1: main
54func main() -> i64 {