code wiki / (root) / nx_bills_entry_gate.nx

nx_bills_entry_gate.nx

buildroot/runtime/nx_bills_entry_gate.nx

4370 B87 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic bills
docsdependenciesstructsconstsfunctions

about

nx_bills_entry_gate.nx -- proves the bill-entry data path: a urlencoded form body -> be_record -> a stored bill with the right fields (money dollars->cents), sane defaults for omitted fields, and no digit-bleed between adjacent fields (the NUL-terminate guard). Hermetic /tmp prefix. Exits 0 iff ALL pass. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_bills.nx nx_bills_store.nx nx_bills_entry.nx nx_bills_entry_gate.nx

imports: nx_syscalls.nxnx_bills.nxnx_bills_store.nxnx_bills_entry.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_now_us sys_mmap ↻ sys_clock_gettime_mono chk g_puts sys_write g_putn sys_write ↻ sys_mmap ↻ be_record sys_mmap ↻ be_field sys_mmap ↻ nx_http_form_get_field nxf_decode_chunk nxf_hex_nibble be_len be_atoi bs_add sys_mmap ↻ bs_load_raw sys_mmap ↻ bs_key ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_cat ss_loadfile ss_load_aux2 ssl_total_keys ssl_pow2 ssl_build ss_r32 ssl_lookup ss_manifest_free sys_munmap ss_hget

structs

none

consts

none

functions

10func 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: chkmain calls 1: sys_write
11func g_putn(v: i64) -> i64
called by 2: chkmain calls 2: sys_writesys_mmap
20func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: g_putsg_putn
26func main() -> i64