code wiki / (root) / nx_adhd_gate.nx

nx_adhd_gate.nx

buildroot/runtime/nx_adhd_gate.nx

3266 B59 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_adhd_gate.nx -- R3 GATE: proves the ADHD-intervention engine targets impulse shopping, planning failures, and inaction locks -- and ADVISES, never blocks (autonomy). Headline: a $200 impulse gadget gets a cooling-off PAUSE + is reframed as 8 hours of work and 20% of a $1,000 buffer goal. Exits 0 iff ALL pass. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_money.nx nx_adhd.nx nx_adhd_gate.nx

imports: nx_syscalls.nxnx_money.nxnx_adhd.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 chk g_puts sys_write g_putn sys_write ↻ sys_mmap ↻ adhd_spend_decision adhd_hours_cost mny_div_round mny_div_floor adhd_pct_of_goal mny_div_round ↻ g_puts ↻ g_putn ↻ adhd_needs_micro adhd_surface_ahead

structs

none

consts

none

functions

9func g_puts(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 2: chkmain calls 1: sys_write
10func g_putn(v: i64) -> i64
called by 2: chkmain calls 2: sys_writesys_mmap
19func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: g_putsg_putn
25func main() -> i64