code wiki / _hdl_build / nx_swebv_tests.nx

nx_swebv_tests.nx

buildroot/runtime/_hdl_build/nx_swebv_tests.nx

9796 B244 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic swebv
docsdependenciesstructsconstsfunctions

about

nx_swebv_tests.nx -- F787 rung-4: sovereign per-instance TEST-CONTRACT extractor (oracle-only law). From the 5 fetched pages -> knowledge/store/swebvtest- : instance_id<TAB>f2p_count<TAB>p2p_count<TAB>f2p_list f2p_list = FAIL_TO_PASS pytest node ids (JSON-array-in-string, escape-preserved) = the DECISIVE tests an accepted fix must flip red->green; p2p_count = PASS_TO_PASS regression breadth. pytest RUNS these node ids, Nishi SELECTED them. Escape-aware value end (terminating quote = even backslash run) so patch/test_patch bodies never mis-terminate. Row search BOUNDED to [row,next-row). TOOTH: exactly 500 rows or verdict=RED, store untouched. Aggregate MEASURED stat -> status log. expect_exit: 0 (GREEN) | 1 RED license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 3 imports · 0 importers

nx_store_seed_lib.nx nx_seg_store.nx nx_syscalls.nx nx_swebv_tests.nx

imports: nx_store_seed_lib.nxnx_seg_store.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap vt_page vt_read sys_openat_rd sys_read sys_close vt_werr sys_write vt_slen vt_scan vt_find vt_slen ↻ vt_field vt_find ↻ vt_slen ↻ vt_vend vt_countq vt_emit_slice vt_emitc vt_emitn sys_mmap ↻ vt_emit_slice_cap vt_werr ↻ vt_wn sys_write ↻ sys_mmap ↻ sys_exit sts_seed ss_begin_cap sys_mmap ↻ sts_mm sys_mmap ↻ sts_werr sys_write ↻ sys_exit ↻ sts_rowkey ss_catn sys_mmap ↻ ss_add

structs

none

consts

21const VT_PREFIX: *u8 = "knowledge/store/swebvtest-" as *u8
22const VT_LOG: *u8 = "knowledge/status/swebv_tests.log" as *u8
23const VT_FCAP: i64 = 4194304
24const VT_OCAP: i64 = 1048576
25const VT_LISTCAP: i64 = 65536
26const VT_SBCAP: i64 = 4096
27const VT_PATHCAP: i64 = 256
28const VT_TAB: i64 = 9
29const VT_NL: i64 = 10
30const VT_Q: i64 = 34
31const VT_BSL: i64 = 92
32const VT_STDERR: i64 = 2
33const VT_MODE: i64 = 0x1a4
34const VT_WANT: i64 = 500
35const VT_D0: i64 = 48
36const VT_B10: i64 = 10
37const VT_NUMB: i64 = 24
38const VT_EXIT_IO: i64 = 1
39const VT_EXIT_RED: i64 = 3

functions

41func vt_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
42func vt_werr(s: *u8) -> i64 { sys_write(VT_STDERR, s, vt_slen(s)); return 0 }
called by 2: vt_pagemain calls 2: sys_writevt_slen
43func vt_wn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
56func vt_read(path: *u8, buf: *u8, cap: i64) -> i64
70func vt_find(buf: *u8, needle: *u8, from: i64, limit: i64) -> i64
called by 2: vt_fieldvt_scan calls 1: vt_slen
84func vt_vend(buf: *u8, vs: i64, limit: i64) -> i64
called by 1: vt_field
98func vt_countq(buf: *u8, a: i64, b: i64) -> i64
called by 1: vt_scan
106func vt_field(buf: *u8, needle: *u8, from: i64, limit: i64) -> i64
called by 1: vt_scan calls 3: vt_findvt_slenvt_vend
113func vt_emitc(c: i64) -> i64 { if g_o < VT_OCAP - 2 { g_out[g_o] = c as u8; g_o = g_o + 1 } return 0 }
called by 1: vt_scan
114func vt_emit_slice(buf: *u8, a: i64, b: i64) -> i64
called by 1: vt_scan
119func vt_emit_slice_cap(buf: *u8, a: i64, b: i64, cap: i64) -> i64
called by 1: vt_scan
126func vt_emitn(v: i64) -> i64
called by 1: vt_scan calls 1: sys_mmap
137func vt_bcat(d: *u8, off: i64, s: *u8) -> i64
called by 1: main
143func vt_bcatn(d: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
155func vt_scan(buf: *u8, n: i64) -> i64
192func vt_page(path: *u8, fbuf: *u8) -> i64
called by 1: main calls 3: vt_readvt_werrvt_scan
198func main() -> i64