code wiki / _hdl_build / nx_supplychain_case.nx
nx_supplychain_case.nx
buildroot/runtime/_hdl_build/nx_supplychain_case.nx
about
nx_supplychain_case.nx -- LIB: the Nishi-analyst DOMESTIC SUPPLY-CHAIN SECURITY + GOOD-JOBS business case. Adds the
geopolitical + labor dimensions to the supply-chain twin so the analyst/business-case builder can present a domestic
plan to city/state/federal government. Per component: country of ORIGIN (0 domestic, 1 allied, 2 adversary), ENERGY
risk (0-100), SINGLE-SOURCE flag, value. Computes value-weighted supply-chain RISK and DOMESTIC content, and the
reshoring case: jobs at a LIVING WAGE with European-exceeding benefits (healthcare, PTO) and home affordability.
never-brick #26: pure arithmetic, deterministic. license_tier: ORIGINAL
dependencies 1 imports · 3 importers
imports: nx_syscalls.nx
imported by: nx_sourcing_path.nxnx_supply_case.nxnx_supplychain_case_gate.nx
structs
| none |
consts
| none |
functions
| 10 | func sc_domestic_permil(origin: *i64, value: *i64, n: i64) -> i64 |
| 19 | func sc_weighted_risk(origin: *i64, energy_risk: *i64, single_source: *i64, value: *i64, n: i64) -> i64 |
| 32 | func sc_payroll(jobs: i64, annual_wage: i64) -> i64 { return jobs*annual_wage } |
| 33 | func sc_benefits(payroll: i64, pct: i64) -> i64 { return payroll*pct/100 } |
| 35 | func sc_home_afford(median_home: i64, annual_wage: i64) -> i64 { if annual_wage<=0 { return 0-1 } return median_home/annual_wage } |