code wiki / _hdl_build / nx_emptylit_probe.nx
nx_emptylit_probe.nx
buildroot/runtime/_hdl_build/nx_emptylit_probe.nx
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
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
structs
| none |
consts
| none |
functions
| 8 | func w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 9 | func n_(v: i64) -> i64 |
| 19 | func sl(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: main |
| 23 | func shape_a(i: i64) -> *u8 called by 1: main |
| 29 | func shape_b(i: i64) -> *u8 called by 1: main |
| 34 | func shape_c() -> *u8 { return "" as *u8 } called by 1: main |
| 36 | func main() -> i64 |