code wiki / (root) / nx_dcf_gate.nx

nx_dcf_gate.nx

buildroot/runtime/nx_dcf_gate.nx

4903 B102 linesdepth 8pulls 13 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_dcf_gate.nx -- DISCOUNTED CASH FLOW GATE (intrinsic valuation). Proves exact integer discounting, the Gordon terminal value, a full intrinsic valuation matching a hand computation, the margin-of-safety verdict, and the fail-closed DCF trap (growth >= rate refuses). license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 1 imports · 0 importers

nx_dcf_lib.nx nx_dcf_gate.nx

imports: nx_dcf_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main dg_puts dg_ck dg_puts ↻ dg_putn dcf_discount_factor dcf_pv dcf_discount_factor ↻ dcf_terminal dcf_intrinsic dcf_pv ↻ dcf_margin_of_safety_bp dcf_verdict dg_ckstr dg_puts ↻ dcf_verdict_str dg_putn ↻

structs

none

consts

none

functions

8func dg_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 3: dg_ckdg_ckstrmain
9func dg_putn(v: i64) -> i64
called by 2: dg_ckmain
23func dg_ck(cnt: *i64, name: *u8, got: i64, want: i64) -> i64
called by 1: main calls 2: dg_putsdg_putn
34func dg_ckstr(cnt: *i64, name: *u8, got: *u8, want: *u8) -> i64
called by 1: main calls 1: dg_puts
45func main(argc: i64, argv: *i64) -> i64