code wiki / _hdl_build / nx_fnident_probe.nx

nx_fnident_probe.nx source

↩ module page · 12 lines · 610 B

1// nx_fnident_probe.nx -- MINIMAL ISOLATION for seq1337 (nx_cc hangs on a local named `fn`). 2// The gate-file repro renamed TWO identifiers at once (fn + en), so which one hangs was UNPROVEN. 3// This probe changes exactly ONE thing from a trivially-compiling program: a local named `fn`. 4// If /api/build hangs on this and the `en` sibling builds, `fn` is the token, isolated. 5// license_tier: ORIGINAL expect_exit: 0 No hw writes (Rule 26). 6import "nx_syscalls.nx" 7 8func main() -> i64 { 9 let fn: i64 = 7 10 if fn == 7 { sys_write(1, "FNIDENT-PROBE fn-local-compiled ok\n" as *u8, 35) } 11 return 0 12}