code wiki / (root) / nx_stl_write_test.nx

nx_stl_write_test.nx

buildroot/runtime/nx_stl_write_test.nx

2291 B52 linesdepth 6pulls 12 transitivereach 0 importersview sourcekind gate/prooftopic stl
docsdependenciesstructsconstsfunctions

about

nx_stl_write_test.nx -- KAT gate: the sovereign STL writer's output ROUND-TRIPS through the existing nx_stl reader -> proves DCC export feeds the real pipeline. expect_exit: 0.

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_le.nx nx_f32_encode.nx nx_stl_write.nx nx_stl.nx nx_stl_write_test.nx

imports: nx_syscalls.nxnx_le.nxnx_f32_encode.nxnx_stl_write.nxnx_stl.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 nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ w sys_write ↻ nx_stl_write_cube sys_mmap ↻ nx_le_write_u32 sw_put_vert nx_le_write_u32 ↻ f32_from_i64 nx_le_write_u16 wn sys_mmap ↻ sys_write ↻ chk w ↻ nx_le_read_u32 nx_stl_load_binary sys_mmap ↻ nx_stl_is_ascii nx_le_read_u32 ↻ nx_mesh_alloc sys_mmap ↻ nx_stl_next_pow2 nx_hash_new nx_fp32_bytes_to_q14

structs

none

consts

none

functions

11func 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 2: chkmain calls 1: sys_write
12func wn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
21func chk(cond: i64, pass: *i64, fail: *i64, label: *u8) -> i64
called by 1: main calls 1: w
27func main() -> i64