code wiki / _hdl_build / _assign_next_gate_authored.nx

_assign_next_gate_authored.nx

buildroot/runtime/_hdl_build/_assign_next_gate_authored.nx

3571 B99 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic assign
docsdependenciesstructsconstsfunctions

about

_assign_next_gate_authored.nx -- gate for the dispatch core: a SCRATCH queue with known structure proves pick logic, dep blocking, status transitions, the structural top-blocker view, and the raised-hands count. Scratch graph: A(w9,M,TODO,-) B(w9,S,TODO,A) C(w8,S,TODO,-) D(w9,S,NOVEL,-) E(w5,S,DONE,-) F(w7,S,TODO,A) G(w6,S,TODO,A) pick must be A (w9 runnable; B blocked by A; D is NOVEL not auto-picked) flip A->DONE: pick must be B (w9, dep now done; beats C w8) top blocker must be A (3 dependents: B,F,G) with VIEWPOINT ok (w=9) novel count = 1, first = D Markers: ANG-* / ASSIGN-GATE verdict=

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_assign_core.nx _assign_next_gate_authored.nx

imports: nx_syscalls.nxnx_assign_core.nx

imported by: nobody (leaf or entry point)

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

main ang_write_queue sys_openat_wr ang_w sys_write sys_close ang_p sys_write ↻ sys_exit an_newcx sys_mmap an_load sys_mmap ↻ sys_openat_rd sys_read sys_close ↻ an_id_at an_deps_at an_gate_at an_title_at an_pick an_deps_done an_deps_at ↻ sys_mmap ↻ an_find an_streq an_id_at ↻ ang_ideq an_streq ↻ an_id_at ↻ an_top_blocker sys_mmap ↻ an_deps_at ↻ an_find ↻ sys_mmap ↻ an_novel

structs

none

consts

none

functions

15func ang_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
16func ang_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: ang_write_queue calls 1: sys_write
18func ang_write_queue(path: *u8, a_done: i64) -> i64
called by 1: main calls 3: sys_openat_wrang_wsys_close
37func ang_ideq(cx: *i64, r: i64, want: *u8) -> i64
called by 1: main calls 2: an_streqan_id_at
42func main() -> i64