code wiki / _hdl_build / nx_pagerank_build_gate.nx

nx_pagerank_build_gate.nx

buildroot/runtime/_hdl_build/nx_pagerank_build_gate.nx

5209 B93 linesdepth 6pulls 13 transitivereach 0 importersview sourcekind gate/prooftopic pagerank
docsdependenciesstructsconstsfunctions

about

nx_pagerank_build_gate.nx -- P1 STEP 2 gate: writes a synthetic out:<cid> link graph (a hub: A,B,C -> H) to a /tmp shard, runs pb_run (collect edges -> pr_compute -> store pr:<cid>), and proves the SINK H is the highest-authority node + rank conservation (~PR_SCALE). Distinguishing: PageRank is the ONLY signal that makes H (3 in-links, no out-links) outrank the leaves. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_pagerank_build.nx nx_pagerank_build_gate.nx

imports: nx_pagerank_build.nx

imported by: nobody (leaf or entry point)

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

main gp_puts ss_begin ss_begin_cap sys_mmap gp_outkey ss_add ss_add2 ss_w32 ss_len ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻ sys_close sys_fsync sys_renameat ss_build_keys sys_mmap ↻ ss_r32 ss_kcmp ss_w32 ↻ ss_build_terms sys_mmap ↻ ss_tok_table

structs

none

consts

none

functions

7func gp_puts(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 2: gp_checkmain
8func gp_num(v: i64) -> i64
called by 1: main
17func gp_check(name: *u8, cond: i64, pass: *i64, total: *i64) -> i64
called by 1: main calls 1: gp_puts
24func gp_outkey(cid: i64, out: *u8) -> i64
called by 1: main
33func gp_pr(h: *i64, cid: i64) -> i64
called by 1: main calls 2: pb_prkeyss_hget
43func main() -> i64