code wiki / _hdl_build / nx_emptylit_probe.nx

nx_emptylit_probe.nx

buildroot/runtime/_hdl_build/nx_emptylit_probe.nx

2881 B62 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_emptylit_probe.nx -- MEASURE the empty-string-literal defect instead of asserting its scope. A grep found 3137 uses of `"" as *u8` in runtime/. Before filing that as an estate-wide landmine I have to know WHICH shapes are actually broken, because "3137 sites are wrong" and "one shape is wrong" are very different findings and only one of them is true. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_emptylit_probe.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 w sys_write n_ sys_mmap sys_write ↻ sl shape_a shape_b shape_c sys_exit

structs

none

consts

none

functions

8func 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 calls 1: sys_write
9func n_(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
19func sl(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
23func shape_a(i: i64) -> *u8
called by 1: main
29func shape_b(i: i64) -> *u8
called by 1: main
34func shape_c() -> *u8 { return "" as *u8 }
called by 1: main
36func main() -> i64