code wiki / (root) / nx_empty_lit_probe.nx

nx_empty_lit_probe.nx

buildroot/runtime/nx_empty_lit_probe.nx

1099 B24 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_empty_lit_probe.nx -- WITNESS for the empty-string-literal codegen bug (2026-07-16). Hypothesis (from swarm_sched store bytes): `"" as *u8` emits a label with NO bytes (not even the NUL terminator), so the pointer lands ON the next literal in the pool -- strlen("")==len(next literal), and ("" as i64)==("HOLD" as i64). If the pool is correct: strlen=0, delta>=1, first=0. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_lib_std.nx nx_empty_lit_probe.nx

imports: nx_lib_std.nx

imported by: nobody (leaf or entry point)

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

main std_puts std_slen sys_write std_pdec sys_mmap std_itoa sys_mmap ↻ sys_write ↻ std_putln std_puts ↻

structs

none

consts

none

functions

8func main(argc: i64, argv: *i64) -> i64