code wiki / (root) / nx_ftp2.nx

nx_ftp2.nx

buildroot/runtime/nx_ftp2.nx

1770 B56 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_ftp2.nx -- closer repro. My first probe (2 params) REFUTED the field-misalignment theory. This mirrors the real failing call EXACTLY: 4 params with a POINTER first, called with (ptr, i64const, ptr.field, ptr.field) -- i.e. x86ctx_emit_condjump(c, NX_X64_CC_NE, i.op1, i.op2). expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_ftp2.nx

imports: nx_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 ft_emit_br ft_condjump ft_emit_br2 ft_condjump ↻ ft_puts sys_write ft_len

structs

7struct FtType { k: i64 }
8struct FtCtx { o: i64 }
9struct FtInstr

consts

20const FT_CC_NE: i64 = 1

functions

23func ft_condjump(c: *FtCtx, cc: i64, t: i64, fjb: i64) -> i64 { return cc + t + fjb }
25func ft_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: ft_puts
26func ft_puts(s: *u8) -> i64 { sys_write(1, s, ft_len(s)); return 0 }
called by 1: main calls 2: sys_writeft_len
28func ft_emit_br(c: *FtCtx, i: *FtInstr) -> i64
called by 1: main calls 1: ft_condjump
33func ft_emit_br2(c: *FtCtx, i2: *FtInstr) -> i64
called by 1: main calls 1: ft_condjump
43func main() -> i64