code wiki / (root) / nx_obj_exact_gate_t284.nx

nx_obj_exact_gate_t284.nx

buildroot/runtime/nx_obj_exact_gate_t284.nx

8070 B97 linesdepth 8pulls 15 transitivereach 0 importersview sourcekind tooltopic obj
docsdependenciesstructsconstsfunctions

about

nx_obj_exact_gate_t284.nx -- Validates polygon and decimal data structures within the Nishi sovereign ecosystem.

dependencies 5 imports · 0 importers

nx_obj_import.nx nx_gate_verdict.nx nx_meshcheck.nx nx_sha256.nx nx_fs_create_lib.nx nx_obj_exact_gate_t284.nx

imports: nx_obj_import.nxnx_gate_verdict.nxnx_meshcheck.nxnx_sha256.nxnx_fs_create_lib.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr 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 ↻ gv_check gv_puts sys_write ↻ oe_polygon oi_read_exact_bytes oi_exact_reset oi_exact_scan oi_exact_token oi_exact_space oi_decimal_exact oi_is_digit oi_exact_scaled oi_exact_ref oi_is_digit ↻ oe_decimal oi_decimal_exact ↻ oe_text oi_read_exact_bytes ↻ oi_read_exact_bytes ↻ oi_read_exact oi_exact_reset ↻ sys_map_file sys_openat_rd

structs

none

consts

none

functions

8func oe_hash(p:*u8,n:i64)->i64{var d:*u8=sys_mmap_try(32);if (d as i64)==0{return -1};sha256_digest(p,n,d);let h:*u8="0123456789abcdef";var i:i64=0;while i<32{let b:i64=d[i] as i64;sys_write(1,(h as i64+b/16) as *u8,1);sys_write(1,(h as i64+b%16) as *u8,1);i=i+1};sys_munmap_direct(d,32);return 0}
called by 1: main calls 1: sha256_digest
9func oe_decimal(s:*u8,want:i64,exp:i64,rc:i64)->i64{var v:i64=991;var e:i64=992;let r:i64=oi_decimal_exact(s,vw_slen(s),&v,&e);if r!=rc{return 0};if r==0{if v!=want||e!=exp{return 0}}else{if v!=991||e!=992{return 0}};return 1}
called by 1: main calls 1: oi_decimal_exact
10func oe_text(s:*u8,want:i64,vcap:i64,fcap:i64)->i64
called by 1: main calls 1: oi_read_exact_bytes
18func oe_polygon()->i64
called by 1: main calls 1: oi_read_exact_bytes
32func main(argc:i64,argv:*i64)->i64