code wiki / _hdl_build / nx_analyst_case_ac.nx
nx_analyst_case_ac.nx
buildroot/runtime/_hdl_build/nx_analyst_case_ac.nx
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
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
structs
| none |
consts
| 11 | const AC_MAGIC_575000: i64 = 575000 |
| 12 | const AC_MAGIC_210000: i64 = 210000 |
| 13 | const AC_MAGIC_30000: i64 = 30000 |
| 14 | const AC_MAGIC_105000: i64 = 105000 |
| 15 | const AC_MAGIC_230000: i64 = 230000 |
| 16 | const AC_MAGIC_80000: i64 = 80000 |
| 17 | const AC_MAGIC_2000: i64 = 2000 |
| 18 | const AC_MAGIC_470000: i64 = 470000 |
| 19 | const AC_MAGIC_4700: i64 = 4700 |
| 20 | const AC_MAGIC_98124: i64 = 98124 |
| 21 | const AC_MAGIC_3833: i64 = 3833 |
| 22 | const AC_MAGIC_1024: i64 = 1024 |
| 25 | const AC_TOL_PPM: i64 = 5000 |
| 26 | const AC_MIN_TP: i64 = 600 |
| 27 | const AC_MAX_RP: i64 = 150 |
functions
| 29 | func 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 } |
| 30 | func 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 } |
| 36 | func ac_build(parent: *i64, value: *i64, kind: *i64) -> i64 called by 1: main |
| 45 | func main() -> i64 |