code wiki / _hdl_build / nx_doc_heal_let_gate.nx

nx_doc_heal_let_gate.nx

buildroot/runtime/_hdl_build/nx_doc_heal_let_gate.nx

3540 B56 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic doc
docsdependenciesstructsconstsfunctions

dependencies 3 imports · 0 importers

nx_gate_gn.nx nx_syscalls.nx nx_doc_heal_let.nx nx_doc_heal_let_gate.nx

imports: nx_gate_gn.nxnx_syscalls.nxnx_doc_heal_let.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 sys_mmap dhl_heal sys_mmap ↻ dhl_isident dhl_name_at dhl_isident ↻ dhl_is_reassigned dhl_isident ↻ slen ghas gfind slen ↻ gfind ↻ 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 2: gfindmain
11func gfind(hay: *u8, hl: i64, needle: *u8) -> i64
called by 2: ghasmain calls 1: slen
17func 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
19func main() -> i64