code wiki / _hdl_build / nx_siteedit_history_gate.nx

nx_siteedit_history_gate.nx

buildroot/runtime/_hdl_build/nx_siteedit_history_gate.nx

5904 B90 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic siteedit
docsdependenciesstructsconstsfunctions

about

nx_siteedit_history_gate.nx -- proves the revision-history enumeration (nx_siteedit_history) against a REAL fixture directory in /tmp: only `<basename>.v<digits>` snapshots are listed (noise .new/.vXY/other excluded), newest-first ordering, dir-split + version-path building. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_siteedit_history.nx nx_siteedit_history_gate.nx

imports: nx_siteedit_history.nx

imported by: nobody (leaf or entry point)

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

main gh_w sh_slen sys_mkdir gh_writefile sys_openat_wr sh_slen ↻ gh_eq gh_w ↻ gh_wn sh_catn sh_match sh_list sys_mmap sh_dir_of sh_slen ↻ sh_open_dir sh_getdents sh_match ↻ sys_close sh_sort_desc sh_dir_of ↻ gh_streq sh_version_path sh_cat sh_catn ↻ sh_qs_epoch sh_slen ↻ gh_wn ↻

structs

none

consts

none

functions

6func gh_w(s: *u8) -> i64 { sys_write(1, s, sh_slen(s)); return 0 }
called by 2: gh_eqmain calls 1: sh_slen
7func gh_wn(v: i64) -> i64 { let b: *u8 = sys_mmap(32); let o: i64 = sh_catn(b, 0, v); b[o] = 10 as u8; sys_write(1, b, o + 1); return 0 }
called by 2: gh_eqmain calls 1: sh_catn
8func gh_eq(name: *u8, got: i64, want: i64) -> i64
called by 1: main calls 2: gh_wgh_wn
12func gh_writefile(path: *u8, content: *u8) -> i64
called by 1: main calls 2: sys_openat_wrsh_slen
20func gh_streq(a: *u8, b: *u8) -> i64
called by 1: main
27func main(argc: i64, argv: *i64) -> i64