code wiki / _hdl_build / nx_oo_extract.nx
nx_oo_extract.nx
buildroot/runtime/_hdl_build/nx_oo_extract.nx
about
nx_oo_extract.nx -- BYTE-PROVEN OO DUP-FUNCTION EXTRACTOR (the real "object-oriented without losing
functionality" operation, unblocked by the 2026-07-21 byte-equiv proof). Moves a function that is
DUPLICATED byte-identically across N consumers into a shared base lib, repoints each consumer to
import it, and COMMITS only if EVERY consumer's rebuild is BYTE-IDENTICAL to before (else REVERTS all).
never-brick + rule-13 (originals backed up). Every refusal carries verdict+reason+fix (operator law).
argv: <funcname> <baselib-srcpath> <buildonly-elf> <consumer-srcpath1> [consumer-srcpath2 ...]
exit: 0 EXTRACTED | 1 REFUSED(reverted) | 2 usage/precondition | 3 io/build error(reverted)
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 4 imports · 0 importers
imports: nx_seat_drive_lib.nxnx_seg_store.nxnx_deploy_lib.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 14 | const OE_CAP: i64 = 2097152 |
| 15 | const OE_MAXC: i64 = 128 |
functions
| 17 | func oe_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 26 | func oe_isid(c: i64) -> i64 |
| 33 | func oe_eq(a: *u8, an: i64, b: *u8, bn: i64) -> i64 { if an != bn { return 0 } var i: i64 = 0; while i < an { if a[i] != b[i] { return 0 } i = i + 1 } return 1 } called by 1: main |
| 35 | func oe_find_func(buf: *u8, n: i64, fname: *u8, out: *i64) -> i64 called by 1: main |
| 82 | func oe_build_snap(buildelf: *u8, target: *u8, snappath: *u8, buf: *u8) -> i64 |
| 96 | func oe_base(path: *u8, out: *u8) -> i64 |
| 107 | func oe_target(path: *u8, out: *u8) -> i64 |
| 113 | func main(argc: i64, argv: *i64) -> i64 |