code wiki / _hdl_build / nx_analyst_case_ac.nx

nx_analyst_case_ac.nx

buildroot/runtime/_hdl_build/nx_analyst_case_ac.nx

9703 B124 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic analyst
docsdependenciesstructsconstsfunctions

about

nx_analyst_case_ac.nx -- ANALYST CASE 001: "why is it so expensive to get an AC when it is simpler than a computer?" (the operator question, answered with a TRACED ledger, not media common-wisdom). Numbers are REAL + corroborated (>=2 independent sources per MEASURED row, gathered 2026-06-10); FETCH+EXTRACT was the delegated step (honest boundary, same as nx_researcher.nx) -- live-fetch of every source via own-TLS into the Library is the NAMED DEBT (rung A1, a fetch-task this case emits). All arithmetic, the verdict, and the report are team-owned + deterministic. Emits knowledge/status/analyst_ac_vs_pc.log. LAWS: struct-free, integer-only (cents/permil/q10), no &&/||. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_analyst.nx nx_syscalls.nx nx_analyst_case_ac.nx

imports: nx_analyst.nxnx_syscalls.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 ac_build an_closure_fails an_is_leaf an_children_sum an_closure_ppm an_narrative_admitted an_traced_cents an_is_leaf ↻ an_traced_permil an_residual_cents an_residual_permil an_residual_cents ↻ an_ledger_verdict an_closure_fails ↻ an_narrative_admitted ↻ an_traced_cents ↻ an_traced_permil ↻ an_residual_permil ↻ an_verdict an_paradox_q10 an_price_per_complexity sys_openat_wr ac_wf sys_write ac_wnf sys_mmap ↻ sys_write ↻ sys_close an_is_reproducible an_ledger_verdict ↻ sys_exit

structs

none

consts

11const AC_MAGIC_575000: i64 = 575000
12const AC_MAGIC_210000: i64 = 210000
13const AC_MAGIC_30000: i64 = 30000
14const AC_MAGIC_105000: i64 = 105000
15const AC_MAGIC_230000: i64 = 230000
16const AC_MAGIC_80000: i64 = 80000
17const AC_MAGIC_2000: i64 = 2000
18const AC_MAGIC_470000: i64 = 470000
19const AC_MAGIC_4700: i64 = 4700
20const AC_MAGIC_98124: i64 = 98124
21const AC_MAGIC_3833: i64 = 3833
22const AC_MAGIC_1024: i64 = 1024
25const AC_TOL_PPM: i64 = 5000
26const AC_MIN_TP: i64 = 600
27const AC_MAX_RP: i64 = 150

functions

29func ac_wf(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
called by 1: main calls 1: sys_write
30func ac_wnf(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(fd,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(fd,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
36func ac_build(parent: *i64, value: *i64, kind: *i64) -> i64
called by 1: main
45func main() -> i64