code wiki / _hdl_build / nx_oracle_genealogist.nx

nx_oracle_genealogist.nx

buildroot/runtime/_hdl_build/nx_oracle_genealogist.nx

10194 B206 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_oracle_genealogist.nx -- the SECOND domain family-search (operator: "math AND OTHER TYPES of genealogist family search ... trace how [it] scales and can be rebuilt without floating"). The math genealogist treats nx_bigfloat120 as ONE foundation node; this organ DECOMPOSES that node -- the 120-bit ORACLE TOWER every math function is gated against -- into its own rebuild DAG, proving the per-domain genealogist TEMPLATE generalizes (math + oracle = two instances; a new domain = a new instance, not new orchestration, rule 11). The tower's rebuild order, hardware/core rung up (grade = the component's *ORACLE gate line in knowledge/status/math_engine.log, matched at LINE START so TANORACLE does not collide with ATANORACLE): L0 core+exp+ln (BFREGEN: 120-bit float + exp 203/203 + ln 196/196, self-anchored) L1 trig(pi,sin,cos) founds-on core (TRIGORACLE, Machin pi) pow founds-on core (POWORACLE, exp(y*ln x)) sinhcosh founds-on core (SINHCOSHORACLE, exp core) L2 atan founds-on trig (ATANORACLE) tan founds-on trig (TANORACLE) gamma founds-on core,trig (GAMMAORACLE, Stirling+reflection) erfc founds-on core,trig (ERFCORACLE, 2/sqrt(pi)+CF) FLOATING = a GREEN oracle resting on a non-GREEN dep. no-float law: zero. Emits knowledge/registry/oracle_genealogy.tsv + an ORACLEGENE coherence gate. SELF-VALIDATING: baked pos/neg controls (line-start grade-eval GREEN on a green log / not on a red or mid-line one; float-logic green-on-red-dep => floating) run first. module: nishi-core.math.oracle_genealogist depends: nishi-core.sys.syscalls capability: ORACLE_FAMILY_SEARCH_NO_FLOAT license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_oracle_genealogist.nx

imports: nx_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_now_realtime_sec sys_mmap sys_clock_gettime_real og_selftest sys_mmap ↻ og_cpy og_grade og_len og_at og_len ↻ og_w sys_write og_wn sys_mmap ↻ sys_write ↻ sys_exit sys_mmap ↻ og_read sys_openat_rd sys_read sys_close og_grade ↻ sys_openat_wr og_gstr sys_close ↻ sys_openat_append

structs

none

consts

31const OG_MAGIC_1048576: i64 = 1048576
33const OG_LOG: *u8 = "knowledge/status/math_engine.log"
34const OG_MAP: *u8 = "knowledge/registry/oracle_genealogy.tsv"
35const OG_GATE: *u8 = "knowledge/status/oracle_genealogy.log"
36const OG_N: i64 = 8

functions

38func og_w(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
39func og_wn(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;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
40func og_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: og_gradeog_selftest
42func og_at(buf: *u8, n: i64, i: i64, pat: *u8, pl: i64) -> i64
called by 1: og_grade
49func og_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
60func og_grade(buf: *u8, n: i64, anchor: *u8) -> i64
called by 2: og_selftestmain calls 2: og_lenog_at
85func og_gstr(g: i64) -> *u8
called by 1: main
92func og_cpy(dst: *u8, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){dst[i]=s[i]; i=i+1} dst[i]=0 as u8; return i }
called by 1: og_selftest
93func og_selftest() -> i64
called by 1: main calls 4: sys_mmapog_cpyog_gradeog_len
109func main() -> i64