nx_dr_ocm_cli.nx
buildroot/runtime/nx_dr_ocm_cli.nx
about
nx_dr_ocm_cli.nx -- callable MCP/API surface for the opportunity-cost ranker (DR-6).
Ranks candidate research vectors by Priority=(V*M)/C, reports each pick's
OPPORTUNITY COST (forgone best alternative), and does budget-aware greedy selection.
nx_dr_ocm <budget> [v m c]... v=value m=momentum c=cost (per vector, 3 ints)
e.g. nx_dr_ocm 10 8 9 3 9 8 6 5 10 1 10 10 10
-> {"tool":"nx_dr_ocm","selected":3,"spent":10,"forgone_priority":10000,"ranking":[...]}
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_dr_ocm.nxnx_itoa_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
| none |
functions
| 12 | func oc_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 13 | func oc_q() -> i64 { let b: *u8 = sys_mmap(1); b[0] = 34 as u8; sys_write(1, b, 1); return 0 } |
| 14 | func oc_key(name: *u8) -> i64 { oc_q(); oc_puts(name); oc_q(); oc_puts(":" as *u8); return 0 } |
| 19 | func oc_num(v: i64) -> i64 { nxi_out(v); return 0 } |
| 20 | func oc_atoi(a: *u8) -> i64 called by 1: main |
| 30 | func main(argc: i64, argv: *i64) -> i64 |