nx_body_pointer_abi_gate_t345.nx
buildroot/runtime/nx_body_pointer_abi_gate_t345.nx
dependencies 1 imports · 0 importers
imports: nx_gate_verdict.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 2 | func main()->i64{let c:*i64=gv_ctr();gv_head("BODY-POINTER-ABI");let a:*i64=sys_mmap(24) as *i64;let p:*i64=a+1;let q:*i64=((a as i64)+8) as *i64;a[0]=11;a[1]=22;gv_check("pointer addition is byte-address arithmetic",(p as i64)-(a as i64)==1,c);gv_check("explicit i64 word offset reads second word",q[0]==22,c);return gv_verdict("BODY-POINTER-ABI",c,"native pointer contract only")} |