code wiki / (root) / nx_carflip_roi.nx

nx_carflip_roi.nx

buildroot/runtime/nx_carflip_roi.nx

3617 B111 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_carflip_roi.nx -- R6 ROI-scorer organ for the Car-Flip lane. Reads a used-car deal as argv (whole USD) and emits a downside-gated BUY/PASS. Gate = P10 (bad case: LOW resale + HIGH repair) -- buy only winners. v1 = deterministic calculator over operator-supplied REAL figures (no fabricated data; the inspector enters findings at call time). v2 rung: read carflip-fail- priors + carflip-sys- to auto-estimate repair_high. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_carflip_roi.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 cf_puts sys_write sys_exit cf_atoi cf_kv cf_puts ↻ cf_putn sys_write ↻ sys_mmap

structs

none

consts

10const CF_BPS: i64 = 10000 // ROI reported in basis points (10000 = 100%)

functions

12func cf_puts(s: *u8) -> i64
called by 2: cf_kvmain calls 1: sys_write
18func cf_atoi(s: *u8) -> i64
called by 1: main
34func cf_putn(n: i64) -> i64
called by 1: cf_kv calls 2: sys_writesys_mmap
59func cf_kv(key: *u8, val: i64) -> i64
called by 1: main calls 2: cf_putscf_putn
67func main(argc: i64, argv: *i64) -> i64