code wiki / (root) / nx_mccabe.nx

nx_mccabe.nx

buildroot/runtime/nx_mccabe.nx

9922 B170 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_mccabe.nx -- THIN MAIN over nx_mccabe_lib.nx. Publishes the DISTRIBUTION of cyclomatic complexity across the corpus; the only bar it names is CITED, never chosen here. nx_mccabe [dir] default dir=buildroot/runtime license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_mccabe_lib.nx nx_mccabe.nx

imports: nx_mccabe_lib.nx

imported by: nobody (leaf or entry point)

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

main mc_cls_load mc_cls_load_from 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 ↻ mc_cat sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close mc_w sys_write ↻ mc_walk sys_openat_rd ↻ sys_mmap ↻ sys_getdents64 dirent_type dirent_name mc_isdotdot mc_join mc_walk ↻ mc_ends_nx mc_scan_file sys_mmap ↻

structs

none

consts

7const MCM_EXACT_TO: i64 = 15 // exact buckets up to here, then DOUBLING ranges -- a derivation, not a taste
8const MCM_OUTBUF: i64 = 16384
10const MCM_SPINE: *u8 = "knowledge/status/mccabe.spine\x00"
11const MCM_MODE644: i64 = 420
12const MCM_SPINEBUF: i64 = 2048

functions

14func mcm_range(ob: *u8, a0: i64, hist: *i64, lo: i64, hi: i64, total: i64) -> i64
called by 1: main calls 2: mc_catmc_catn
33func ce_mccabe_live(c: *i64, funcs: i64, crows: i64, ob: *u8, a0: i64) -> i64
called by 1: main calls 3: mc_catnmc_catmc_cls_name
60func main(argc: i64, argv: *i64) -> i64