code wiki / _hdl_build / nx_apistack_breaker_gate.nx
nx_apistack_breaker_gate.nx
buildroot/runtime/_hdl_build/nx_apistack_breaker_gate.nx
about
nx_apistack_breaker_gate.nx -- hermetic gate for CAP-API-BREAKER. Proves the CLOSED->OPEN->HALF->CLOSED/OPEN
transitions: closed allows, threshold failures open it, open fails fast in cooldown, cooldown -> half-open probe,
probe success recovers, probe failure re-opens. Sovereign: nx_syscalls + nx_apistack_breaker. expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_apistack_breaker.nxnx_gate_verdict.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
| none |
functions
| 8 | func gp(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 9 | func gn(v: i64) -> i64 { var t: i64=v; if t<0{sys_write(1,"-" as *u8,1);t=0-t} let tm:*u8=sys_mmap(24); var k:i64=0; if t==0{tm[0]=48 as u8;k=1} while t>0{tm[k]=(48+(t%10)) as u8;t=t/10;k=k+1} let b:*u8=sys_mmap(24); var j:i64=0; while j<k{b[j]=tm[k-1-j];j=j+1} sys_write(1,b,k); return 0 } |
| 11 | func main(argc: i64, argv: *i64) -> i64 |