code wiki / _hdl_build / nx_pub_todos_gate.nx

nx_pub_todos_gate.nx

buildroot/runtime/_hdl_build/nx_pub_todos_gate.nx

5308 B80 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic pub
docsdependenciesstructsconstsfunctions

dependencies 2 imports · 0 importers

nx_gate_gn.nx nx_syscalls.nx nx_pub_todos_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 sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit ↻ gn gfind gslen ghas gfind ↻

structs

none

consts

none

functions

8func 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
9func gslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: gfind
10func gfind(hay: *u8, hl: i64, needle: *u8) -> i64
called by 2: ghasmain calls 1: gslen
16func ghas(hay: *u8, hl: i64, needle: *u8) -> i64 { if gfind(hay, hl, needle) >= 0 { return 1 } return 0 }
called by 1: main calls 1: gfind
17func spawn(path: *u8, a0: *u8, a1: *u8, redir: *u8) -> i64
38func main() -> i64