code wiki / _hdl_build / nx_cms_c2_test.nx

nx_cms_c2_test.nx

buildroot/runtime/_hdl_build/nx_cms_c2_test.nx

4033 B70 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic cms
docsdependenciesstructsconstsfunctions

about

nx_cms_c2_test.nx -- ENGINEER verification of CMS C2 (content model): store get/set/append, ATOMIC publish + one-deep revision + rollback (rule 13 additive), and render-from-data with escape-on-render (plain) vs raw-insert (_html, sanitized at write). Exit 0 = all green.

dependencies 2 imports · 0 importers

nx_cms_render.nx nx_syscalls.nx nx_cms_c2_test.nx

imports: nx_cms_render.nxnx_syscalls.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 cst_set sys_mmap ↻ cst_find cst_slen cst_slen ↻ cst_get sys_mmap ↻ cst_find ↻ c2t_eq c2t_len c2t_w sys_write cst_write_atomic cst_slen ↻ sys_mmap ↻ cst_copy sys_openat_rd sys_openat_wr sys_close sys_mmap ↻ sys_read sys_write ↻ sys_openat_wr ↻ sys_write ↻ sys_close ↻ sys_renameat cst_read sys_openat_rd ↻ sys_read ↻ sys_close ↻ cst_find ↻ cst_rollback cst_slen ↻ sys_mmap ↻ sys_openat_rd ↻ sys_close ↻ cst_copy ↻ sys_renameat ↻

structs

none

consts

none

functions

7func c2t_w(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
8func c2t_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: c2t_eqmain
9func c2t_eq(a: *u8, al: i64, b: *u8) -> i64
called by 1: main calls 1: c2t_len
16func main() -> i64