code wiki / _hdl_build / nx_jsfuel_probe.nx
nx_jsfuel_probe.nx
buildroot/runtime/_hdl_build/nx_jsfuel_probe.nx
about
nx_jsfuel_probe.nx -- GATE for the JS execution fuel + eval-cell arena (2026-07-27).
Teeth:
T1 a NESTED infinite loop terminates (defeats the per-loop EV_LOOP_CAP; only global fuel stops it)
T2 fuel exhaustion is reported honestly (ev_fuel_exhausted==1) and spend matches the armed budget
T3 static page content SURVIVES the fuel-aborted render (fail-safe, not fail-blank)
T4 arena cells are ZEROED -- the semantic MAP_ANONYMOUS equivalence the arena must preserve
T5 arena cells are DISTINCT + 16B-strided (no aliasing: two cells must not be the same box)
T6 arena footprint is BOUNDED (the whole point: 200k steps must not cost 200k pages)
0 = GREEN / 1 = RED.
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_js_eval.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
| 13 | func fp_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 14 | func fp_pn(v: i64) -> i64 |
| 23 | func fp_chk(cond: i64, name: *u8, pp: *i64, tp: *i64) -> i64 |
| 29 | func fp_has(buf: *u8, blen: i64, needle: *u8, nl: i64) -> i64 called by 1: main |
| 43 | func fp_atoi(s: *u8) -> i64 called by 1: main |
| 54 | func main(argc: i64, argv: *i64) -> i64 |