code wiki / (root) / nx_fbx_compose_scratch_gate_t181.nx

nx_fbx_compose_scratch_gate_t181.nx

buildroot/runtime/nx_fbx_compose_scratch_gate_t181.nx

4349 B23 linesdepth 8pulls 8 transitivereach 0 importersview sourcekind tooltopic fbx
docsdependenciesstructsconstsfunctions

dependencies 1 imports · 0 importers

nx_fbx_bind.nx nx_fbx_compose_scratch_gate_t1

imports: nx_fbx_bind.nx

imported by: nobody (leaf or entry point)

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

main fbb_compose_into same fp ident fill fbb_compose fbb_compose_into ↻ fill ↻ untouched

structs

none

consts

none

functions

2func fp(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
3func fill(a:*i64,v:i64)->i64{var i:i64=0;while i<16{a[i]=v;i=i+1};return 0}
called by 2: identmain
4func ident(a:*i64)->i64{fill(a,0);a[0]=FBB_Q;a[5]=FBB_Q;a[10]=FBB_Q;a[15]=FBB_Q;return 0}
called by 1: main calls 1: fill
5func same(a:*i64,b:*i64)->i64{var i:i64=0;while i<16{if a[i]!=b[i]{return 0};i=i+1};return 1}
called by 1: main
6func untouched(a:*i64)->i64{var i:i64=0;while i<16{if a[i]!=777{return 0};i=i+1};return 1}
called by 1: main
7func main()->i64{let a:*i64=sys_mmap(128) as *i64;let b:*i64=sys_mmap(128) as *i64;let out:*i64=sys_mmap(128) as *i64;let tmp:*i64=sys_mmap(128) as *i64;let expected:*i64=sys_mmap(128) as *i64;var fails:i64=0;var rc:i64=0;