code wiki / _hdl_build / nx_kindle_reextract_gate.nx

nx_kindle_reextract_gate.nx

buildroot/runtime/_hdl_build/nx_kindle_reextract_gate.nx

6162 B90 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

dependencies 2 imports · 0 importers

nx_gate_gn.nx nx_syscalls.nx nx_kindle_reextract_gate.nx

imports: nx_gate_gn.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main gp sys_write spawn sys_fork sys_openat_wr sys_dup3 sys_mmap sys_execve sys_exit sys_wait4 ensure_dir sys_mmap ↻ write_stale sys_openat_wr ↻ sys_write ↻ gslen sys_close exists sys_openat_rd sys_close ↻ file_has sys_mmap ↻ sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_close ↻ gslen ↻ gunlink gn sys_exit ↻

structs

none

consts

none

functions

11func gp(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
12func gslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: file_haswrite_stale
13func ensure_dir(path: *u8) -> i64 { __syscall(258, 0-100, path, 0x1ed, 0, 0, 0); return 0 }
called by 1: main
16func spawn(path: *u8, a0: *u8, a1: *u8, redir: *u8) -> i64
34func exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd >= 0 { sys_close(fd); return 1 } return 0 }
called by 1: main calls 2: sys_openat_rdsys_close
35func file_has(path: *u8, needle: *u8) -> i64
called by 1: main calls 3: sys_mmapsys_read_filegslen
44func write_stale(path: *u8) -> i64
52func main() -> i64