code wiki / _hdl_build / nx_batt_chart.nx

nx_batt_chart.nx

buildroot/runtime/_hdl_build/nx_batt_chart.nx

5440 B90 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic batt
docsdependenciesstructsconstsfunctions

about

nx_batt_chart.nx -- Generates an SVG bar chart showing monthly net financial outcomes under different scenarios.

dependencies 2 imports · 0 importers

nx_gate_gn.nx nx_syscalls.nx nx_batt_chart.nx

imports: nx_gate_gn.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 sys_openat_wr gp sys_write sys_exit ws sys_write ↻

structs

none

consts

9const K_MAGIC_5000: i64 = 5000
10const K_MAGIC_7000: i64 = 7000
11const K_MAGIC_4802: i64 = 4802
12const K_MAGIC_1028: i64 = 1028
13const K_MAGIC_1548: i64 = 1548
14const K_MAGIC_2802: i64 = 2802
15const K_MAGIC_1816: i64 = 1816

functions

17func gp(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 1: main calls 1: sys_write
19func ws(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return n }
called by 2: barmain calls 1: sys_write
21func wn(fd: i64, v0: i64) -> i64
called by 1: bar calls 2: sys_writesys_mmap
34func bar(fd: i64, i: i64, v: i64, label: *u8) -> i64
calls 2: wswn
52func main() -> i64