code wiki / (root) / nx_smoke_codegen_bug.nx

nx_smoke_codegen_bug.nx

buildroot/runtime/nx_smoke_codegen_bug.nx

857 B34 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind smoketopic smoke
docsdependenciesstructsconstsfunctions

about

Minimal repro for the nested-if codegen bug: outer if + 2 sequential inner ifs reading from the same struct pointer crashes when run under qemu.

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_smoke_codegen_bug.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

structs

13struct Cell

consts

none

functions

19func main() -> i64
calls 1: sys_mmap