code wiki / _hdl_build / nx_flip_score.nx
nx_flip_score.nx
buildroot/runtime/_hdl_build/nx_flip_score.nx
about
nx_flip_score.nx -- THE ASSET-AGNOSTIC COMPONENT-LEVEL FLIP ENGINE.
Operator: "an engine not me typing every part" -- reads the part list ITSELF from the planes and
CHOOSES the repair set component-by-component. Same math for a car, a house, any asset with
value-bearing components (class/component/finding are DATA, not code).
PER-COMPONENT (all downside-priced): margin_typ=lift_typ-repair_typ ; margin_p10=lift_low-repair_high
MANDATORY (cost forced) / FLIPPOINT (margin_p10>=0) / SPECULATIVE (class-gated) / LEAVE.
COVERAGE GATE: every MANDATORY catalog component for the class needs a finding, else REFUSED.
DEAL GATE: BUY iff profit_p10>=gate_min AND days<=dts_cap. Every threshold from flip-class-.
CONVERTED ONTO THE SHARED BASE nx_flip_lib.nx (fx_*); the ~17 private helpers are GONE. Behaviour
PROVEN identical by nx_flip_gate staying 16/16 across the swap.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_flip_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
| 16 | const FL_ARGC_MIN: i64 = 10 |
| 17 | const FL_ARG_PFX: i64 = 10 |
| 18 | const FL_CC_GATE: i64 = 2 |
| 19 | const FL_CC_SPEC: i64 = 3 |
| 20 | const FL_CC_DTS: i64 = 4 |
| 21 | const FL_CC_SELLBPS: i64 = 5 |
| 22 | const FL_CC_HOLD: i64 = 6 |
| 23 | const FL_CK_CLASS: i64 = 1 |
| 24 | const FL_CK_MAND: i64 = 3 |
| 25 | const FL_CF_DEAL: i64 = 1 |
| 26 | const FL_CF_COMP: i64 = 2 |
| 27 | const FL_CF_COND: i64 = 3 |
| 28 | const FL_CF_REPLOW: i64 = 4 |
| 29 | const FL_CF_REPTYP: i64 = 5 |
| 30 | const FL_CF_REPHIGH: i64 = 6 |
| 31 | const FL_CF_LIFTLOW: i64 = 7 |
| 32 | const FL_CF_LIFTTYP: i64 = 8 |
| 33 | const FL_A_LEAVE: i64 = 0 |
| 34 | const FL_A_MAND: i64 = 1 |
| 35 | const FL_A_FLIP: i64 = 2 |
| 36 | const FL_A_SPEC: i64 = 3 |
functions
| 38 | func main(argc: i64, argv: *i64) -> i64 |