code wiki / _hdl_build / nx_autonomy_create.nx

nx_autonomy_create.nx

buildroot/runtime/_hdl_build/nx_autonomy_create.nx

7929 B97 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tooltopic autonomy
docsdependenciesstructsconstsfunctions

about

nx_autonomy_create.nx -- Demonstrates creation of a novel mathematical family through refusal of power-sum selection and synthesis of a linear recurrence.

dependencies 5 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_ncf_synth.nx nx_synth_fit.nx nx_syscalls.nx nx_autonomy_create.nx

imports: nx_gate_gn.nxnx_gate_base.nxnx_ncf_synth.nxnx_synth_fit.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 gw sys_write sys_mmap indep_exp2 sel_powsum sf_keep sys_mmap ↻ sf_fit sys_mmap ↻ sf_rand_coef sf_lcg sf_merr sf_model sf_powsum sf_lcg ↻ sf_model ↻ gn genuine_fit ncf_synth ncf_search_branch ncf_pred_eval ncf_op_eval ncf_search_loop ncf_loop_eval ncf_search_loop2 ncf_loop_eval2 ncf_search_loop3 ncf_loop_eval3 ncf_search_loop4 ncf_loop_eval4 ncf_search_recur ncf_pow3 ncf_recur_eval sys_mmap ↻ ncf_eval ncf_pred_eval ↻ ncf_op_eval ↻ ncf_loop_eval ↻ ncf_loop_eval2 ↻

structs

none

consts

20const CR_MAGIC_1024: i64 = 1024
22const CR_KMAX: i64 = 24

functions

26func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
28func indep_exp2(x: i64) -> i64 { var r: i64=1; var i: i64=0; while i<x { r=r*2; i=i+1 } return r }
30func sel_powsum(xs: *i64, ys: *i64, n: i64, hy0: i64, hy1: i64, kmax: i64) -> i64
36func form_differs(a: *i64, b: *i64) -> i64 { var i: i64=0; while i<9 { if a[i]!=b[i] { return 1 } i=i+1 } return 0 }
39func genuine_fit(xs: *i64, ys: *i64, n: i64, hx: i64, hy: i64, form_out: *i64) -> i64
46func main() -> i64