code wiki / _hdl_build / nx_autonomy_create.nx
nx_autonomy_create.nx
buildroot/runtime/_hdl_build/nx_autonomy_create.nx
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
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
structs
| none |
consts
| 20 | const CR_MAGIC_1024: i64 = 1024 |
| 22 | const CR_KMAX: i64 = 24 |
functions
| 26 | func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw(" calls 1: gw |
| 28 | func indep_exp2(x: i64) -> i64 { var r: i64=1; var i: i64=0; while i<x { r=r*2; i=i+1 } return r } |
| 30 | func sel_powsum(xs: *i64, ys: *i64, n: i64, hy0: i64, hy1: i64, kmax: i64) -> i64 |
| 36 | func 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 } |
| 39 | func genuine_fit(xs: *i64, ys: *i64, n: i64, hx: i64, hy: i64, form_out: *i64) -> i64 |
| 46 | func main() -> i64 |