code wiki / (root) / nx_diamond_probe.nx

nx_diamond_probe.nx

buildroot/runtime/nx_diamond_probe.nx

1527 B37 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_diamond_probe.nx -- ISOLATED IMPORT-DEDUP PROBE (2026-07-31), top of the diamond. QUESTION: does nx_cc include a module TWICE when it is reachable by TWO import paths? WHY: nx_cc_ingest fails `duplicate definition of arena_new` while its ENTIRE closure contains exactly ONE runtime import (nx_gzip_wrap -> nx_runtime.nx). If dedup is path/order sensitive, a diamond re-emits the second arrival. nx_cc_ingest has exactly that shape: it imports nx_x509_trust_store DIRECTLY and again via nx_https_fetch_follow. THE DIAMOND: probe -> leaf (direct arm) probe -> mid -> leaf (indirect arm) EXPECTED IF DEDUP IS CORRECT: builds clean, exit 0, run prints 7/8. EXPECTED IF DEDUP IS BROKEN: `duplicate definition of 'dl_value'` -- which would REPRODUCE the nx_cc_ingest class in 3 tiny files and hand the compiler lane a minimal repro. Either outcome is informative; a NEGATIVE result narrows the search rather than wasting it.

dependencies 2 imports · 0 importers

nx_diamond_leaf.nx nx_diamond_mid.nx nx_diamond_probe.nx

imports: nx_diamond_leaf.nxnx_diamond_mid.nx

imported by: nobody (leaf or entry point)

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

main dl_value dm_value dl_value ↻ dp_puts

structs

none

consts

none

functions

19func dp_puts(s: *u8) -> i64
called by 1: main
26func main(argc: i64, argv: *i64) -> i64