code wiki / _hdl_build / nx_doc_ubscan_gate.nx

nx_doc_ubscan_gate.nx

buildroot/runtime/_hdl_build/nx_doc_ubscan_gate.nx

2918 B43 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic doc
docsdependenciesstructsconstsfunctions

dependencies 3 imports · 0 importers

nx_gate_gn.nx nx_syscalls.nx nx_doc_ubscan.nx nx_doc_ubscan_gate.nx

imports: nx_gate_gn.nxnx_syscalls.nxnx_doc_ubscan.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 ub_scan ub_castindex_at dhl_isident ub_skipws slen have_file sys_openat_rd sys_close gn sys_exit

structs

none

consts

none

functions

9func 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
10func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
11func have_file(p: *u8) -> i64 { let fd: i64=sys_openat_rd(p); if fd<0 { return 0 } sys_close(fd); return 1 }
called by 1: main calls 2: sys_openat_rdsys_close
13func main() -> i64