code wiki / _hdl_build / nx_vsbench_gate.nx

nx_vsbench_gate.nx

buildroot/runtime/_hdl_build/nx_vsbench_gate.nx

7641 B142 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_vsbench_gate.nx -- certifies the head-to-head VS-board (F1148, eats seq1004's second half: the live board NAMED this gate for weeks while it existed nowhere -- a gate that is prose is not a gate). TEETH (each one earned by a defect this lane actually hit): T1 ANTI-FABRICATION: every Tier-3 EXT cell's OURS and THEIRS artifacts exist on disk with REAL bytes (>= a floor; the nx_bunny decoy law -- existence alone is foolable by a blank). T2 HONESTY-CANNOT-ROT: the board source still carries the contract strings (EXT-only headline, UNGROUNDED-on-zero, HYPOTHESIS-NOT-CLAIM) -- the strings that keep declarations from scoring. T3 DERIVED-NOT-FROZEN: the per-title emit must NOT contain the hardcoded "cells_ext":0 literal -- the exact regression that shipped: headline said ext=2 while Breeders' row said NOT-RUN. T4 TIER DISCIPLINE: every cell declaration carries an explicit ctier assignment on its line. T5 NEG-CONTROL: a fabricated evidence path must be ABSENT (T1 is a check, not a rubber stamp). license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_vsbench_gate.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main pw sys_write fsize sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close line_g pw ↻ line_r pw ↻ pn sys_write ↻ sys_mmap ↻ sys_mmap ↻ sys_read_file ↻ has cnt

structs

none

consts

15const VG_MAGIC_2026: i64 = 2026
17const VG_ART_FLOOR: i64 = 500000 // NXFH1 400x240 is 576254B; half-uploaded evidence must fail

functions

19func pw(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 3: line_gline_rmain calls 1: sys_write
20func pn(v: i64) -> i64 {
called by 1: main calls 2: sys_writesys_mmap
29func line_g(nm: *u8) -> i64 { pw(" " as *u8); pw(nm as *u8); pw(" GREEN\n" as *u8); return 0 }
called by 1: main calls 1: pw
30func line_r(nm: *u8) -> i64 { pw(" " as *u8); pw(nm as *u8); pw(" RED\n" as *u8); return 0 }
called by 1: main calls 1: pw
32func fsize(p: *u8) -> i64 {
called by 1: main calls 2: sys_mmapsys_read_file
41func has(hay: *u8, n: i64, needle: *u8) -> i64 {
called by 1: main
56func cnt(hay: *u8, n: i64, needle: *u8) -> i64 {
called by 1: main
71func main() -> i64 {