code wiki / _hdl_build / nx_editdist_gate.nx

nx_editdist_gate.nx

buildroot/runtime/_hdl_build/nx_editdist_gate.nx

2671 B41 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_editdist_gate.nx -- KATs for the bounded Levenshtein (the typo rung's math floor). license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_editdist.nx nx_editdist_gate.nx

imports: nx_editdist.nx

imported by: nobody (leaf or entry point)

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

main g_puts g_check g_puts ↻ g_ed ed_bounded sys_mmap g_len ed_bounded ↻ g_num

structs

none

consts

none

functions

4func g_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: g_checkmain
5func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: g_ed
6func g_num(v: i64) -> i64
called by 1: main
15func g_ed(a: *u8, b: *u8, bound: i64) -> i64 { return ed_bounded(a, g_len(a), b, g_len(b), bound) }
called by 1: main calls 2: ed_boundedg_len
16func g_check(name: *u8, cond: i64, pass: *i64, total: *i64) -> i64
called by 1: main calls 1: g_puts
23func main() -> i64