code wiki / _hdl_build / nx_magicnum_detector_register.nx

nx_magicnum_detector_register.nx

buildroot/runtime/_hdl_build/nx_magicnum_detector_register.nx

5778 B84 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind orphan librarytopic magicnum
docsdependenciesstructsconstsfunctions

about

nx_magicnum_detector_register.nx -- SUBMIT the team-authored magic-number DETECTOR (discovered by feature- selection synthesis in the NEW text-scan domain, nx_magicnum_synth) to the team's Council governance, author=emitter. ENGINEER evidence (live): the detector (mask 51) scores 7/7 on the benchmark cases AND 3/3 on held-out it never trained on. RACI: author(1) SUBMITS, Council(2) ADMITS. Claude tutored the scan substrate; the TEAM discovered the detector -> author=emitter for the discovered capability. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_cap_register.nx nx_capreg_librarian.nx nx_syscalls.nx nx_magicnum_detector_register.

imports: nx_cap_register.nxnx_capreg_librarian.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

10func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: match_at
11func is_digit(c: u8) -> i64 { if c>=(48 as u8) { if c<=(57 as u8) { return 1 } } return 0 }
12func is_alnum_us(c: u8) -> i64
19func match_at(buf: *u8, i: i64, len: i64, lit: *u8) -> i64
called by 1: scan_count calls 1: slen
24func trit_pass(t: i64, pv: i64) -> i64 { if t==0 { return 1 } if t==1 { if pv==1 { return 1 } return 0 } if pv==0 { return 1 } return 0 }
25func scan_count(buf: *u8, len: i64, mask: i64) -> i64
calls 1: match_at
53func main() -> i64