code wiki / _hdl_build / nx_flip_score.nx

nx_flip_score.nx

buildroot/runtime/_hdl_build/nx_flip_score.nx

12746 B283 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind tooltopic flip
docsdependenciesstructsconstsfunctions

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

nx_flip_lib.nx nx_syscalls.nx nx_flip_score.nx

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

main fx_puts sys_write sys_exit fx_atoi sts_mm sys_mmap sts_werr sys_write ↻ sys_exit ↻ fx_plane sts_mm ↻ sts_load ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_cat ↻ ss_loadfile ss_load_aux2 ssl_total_keys ssl_pow2 ssl_build ss_r32 ssl_lookup ss_manifest_free sys_munmap ssc_retire_handle sts_mm ↻ ss_hget sys_mmap ↻ ss_idx_find ss_r32 ↻

structs

none

consts

16const FL_ARGC_MIN: i64 = 10
17const FL_ARG_PFX: i64 = 10
18const FL_CC_GATE: i64 = 2
19const FL_CC_SPEC: i64 = 3
20const FL_CC_DTS: i64 = 4
21const FL_CC_SELLBPS: i64 = 5
22const FL_CC_HOLD: i64 = 6
23const FL_CK_CLASS: i64 = 1
24const FL_CK_MAND: i64 = 3
25const FL_CF_DEAL: i64 = 1
26const FL_CF_COMP: i64 = 2
27const FL_CF_COND: i64 = 3
28const FL_CF_REPLOW: i64 = 4
29const FL_CF_REPTYP: i64 = 5
30const FL_CF_REPHIGH: i64 = 6
31const FL_CF_LIFTLOW: i64 = 7
32const FL_CF_LIFTTYP: i64 = 8
33const FL_A_LEAVE: i64 = 0
34const FL_A_MAND: i64 = 1
35const FL_A_FLIP: i64 = 2
36const FL_A_SPEC: i64 = 3

functions

38func main(argc: i64, argv: *i64) -> i64