code wiki / _hdl_build / nx_lcimport_test.nx

nx_lcimport_test.nx

buildroot/runtime/_hdl_build/nx_lcimport_test.nx

2944 B45 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_lcimport_test.nx -- PERMANENT PROPERTY WITNESS for the estate's target-imports-target rule. WHY THIS IS A TEST AND NOT A COMMENT: nx_sourcing_path's ENTIRE composition strategy rests on one language property -- a NishiLang target may `import` another TARGET (a file that itself defines main()), the importing main() wins, and every imported symbol resolves. That property was MEASURED on 2026-08-06 rather than assumed, and measuring it killed a planned lib-extraction refactor of a freshly promoted organ. If it ever regresses, nx_sourcing_path silently loses its duty core and the estate grows a SECOND duty implementation -- exactly the duplication the operator called out. A property that load-bearing must be defended by something that RUNS, so this file is named *_test and is therefore reachable by /api/gate_run (which fail-closed refuses any target not ending in gate/test/kat). Supersedes the throwaway nx_lcimport_probe. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_landed_cost.nx nx_gate_verdict.nx nx_lcimport_test.nx

imports: nx_syscalls.nxnx_landed_cost.nxnx_gate_verdict.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 nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ lc_load_regime sts_load sts_gen_note sts_pfxhash ss_max_segid sys_mmap ↻ ss_cat ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ss_segid_ok ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat ↻ sys_fstatat ssc_streq ss_open ss_open2 ss_open3

structs

none

consts

none

functions

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