nx_ftp2.nx
buildroot/runtime/nx_ftp2.nx
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
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
structs
| 7 | struct FtType { k: i64 } |
| 8 | struct FtCtx { o: i64 } |
| 9 | struct FtInstr |
consts
| 20 | const FT_CC_NE: i64 = 1 |
functions
| 23 | func ft_condjump(c: *FtCtx, cc: i64, t: i64, fjb: i64) -> i64 { return cc + t + fjb } |
| 25 | func 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 |
| 26 | func ft_puts(s: *u8) -> i64 { sys_write(1, s, ft_len(s)); return 0 } |
| 28 | func ft_emit_br(c: *FtCtx, i: *FtInstr) -> i64 |
| 33 | func ft_emit_br2(c: *FtCtx, i2: *FtInstr) -> i64 |
| 43 | func main() -> i64 |