nx_ecomat_lib.nx
buildroot/runtime/_hdl_build/nx_ecomat_lib.nx
about
dependencies 5 imports · 22 importers
diagram shows first 10 each side; +0 more imports, +12 more importers in the complete lists below.
imports: nx_seg_store.nxnx_syscalls.nxnx_comparetree_lib.nxnx_maturity_auditor.nxnx_compare_growth_json.nx
imported by: nx_ecomat_beat.nxnx_ecomat_beat_gate.nxnx_ecomat_domledger_lib.nxnx_ecomat_evprobe.nxnx_ecomat_page.nxnx_ecomat_page_gate.nxnx_ecomat_put.nxnx_ecomat_put_gate.nxnx_ecomat_requirements_gate_t120.nxnx_ecomat_seed.nxnx_ecomat_seed_clobber_gate.nxnx_ecomat_seed_gate.nxnx_ecomat_target_emit.nxnx_ecomat_target_emit_gate.nxnx_ecomat_trend_lib.nxnx_ecosystem_maturity_rollup.nxnx_ecosystem_maturity_rollup_gate.nxnx_mobile_census.nxnx_pm_roi_lib.nxnx_rankmap_gate.nxnx_stackaudit_lib.nxnx_vsbest_lib.nx
structs
| none |
consts
| 20 | const ECOMAT_STORE: *u8 = "knowledge/store/ecomat" |
| 24 | const ECOMAT_REC_STRBASE: i64 = 32 |
| 28 | const ECOMAT_DOM_CAP: i64 = 128 |
| 29 | const ECOMAT_NR_CAP: i64 = 160 |
| 30 | const ECOMAT_EVLOG_CAP: i64 = 256 |
| 31 | const ECOMAT_EVPAT_CAP: i64 = 64 |
| 311 | const ECOMAT_AUTO_STALE_S: i64 = 172800 |
| 454 | const EPC_MODE_LOG: i64 = 0x1a4 |
| 709 | const EM_REQUIREMENT_COUNT:i64=6 |
functions
| 33 | func el_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 34 | func _p(s: *u8) -> i64 { let n: i64=el_len(s); sys_write(1,s,n); return 0 } |
| 35 | func _fp(fd: i64, s: *u8) -> i64 { let n: i64=el_len(s); sys_write(fd,s,n); return 0 } called by 8: mainem_plan_coverageem_axes_known_guardet_emit_targets_coremainmain+2 calls 2: el_lensys_write |
| 36 | func _fn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m; sys_write(fd,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 } |
| 37 | func el_streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8){ if a[i]!=b[i]{return 0} i=i+1 } if b[i]!=(0 as u8){return 0} return 1 } |
| 38 | func el_match(buf: *u8, i: i64, pat: *u8, pl: i64) -> i64 { var k: i64=0; while k<pl { if buf[i+k]!=pat[k] { return 0 } k=k+1 } return 1 } |
| 41 | func el_last_after(buf: *u8, n: i64, pat: *u8) -> i64 |
| 67 | func el_last_green(buf: *u8, n: i64, pat: *u8) -> i64 |
| 85 | func ec_axis_label(a: i64) -> *u8 { if a==0 { return "DEPTH" as *u8 } if a==1 { return "BREADTH" as *u8 } return "META" as *u8 } |
| 86 | func em_tri_label(t: i64) -> *u8 { if t==2 { return "[triangulated]" as *u8 } if t==3 { return "[CONFLICT]" as *u8 } if t==1 { return "[single-src]" as *u8 } if t==4 { return "[dangling]" as *u8 } return "[stored]" as *u8 } |
| 89 | func ec_key(k: i64, out: *u8) -> i64 |
| 101 | func ec_putstr(buf: *u8, cap: i64, off: i64, s: *u8) -> i64 |
| 116 | func ec_reclen(domain: *u8, bench: *u8, nextrung: *u8, evlog: *u8, evpat: *u8, evlog2: *u8, evpat2: *u8) -> i64 |
| 135 | func ec_pack(buf: *u8, cap: i64, axis: i64, layer: i64, cur: i64, bar: i64, weight: i64, ev: i64, evkind: i64, evkind2: i64, domain: *u8, bench: *u8, nextrung: *u8, evlog: *u8, evpat: *u8, evlog2: *u8, evpat2: *u8) -> i64 |
| 148 | func ec_axis(v: *u8) -> i64 { return ss_r32(v, 0) } |
| 149 | func ec_layer(v: *u8) -> i64 { return ss_r32(v, 4) } calls 1: ss_r32 |
| 150 | func ec_cur(v: *u8) -> i64 { return ss_r32(v, 8) } called by 8: edl_walkem_domain_levelem_rollup_storeet_count_targets_storeet_emit_targets_coremain+2 calls 1: ss_r32 |
| 151 | func ec_bar(v: *u8) -> i64 { return ss_r32(v, 12) } called by 8: edl_walkem_rollup_storeet_count_targets_storepg_emit_axiset_emit_targets_coremain+2 calls 1: ss_r32 |
| 152 | func ec_weight(v: *u8) -> i64 { return ss_r32(v, 16) } |
| 153 | func ec_ev(v: *u8) -> i64 { return ss_r32(v, 20) } |
| 154 | func ec_evkind(v: *u8) -> i64 { return ss_r32(v, 24) } |
| 155 | func ec_evkind2(v: *u8) -> i64 { return ss_r32(v, 28) } |
| 161 | func ec_str(v: *u8, which: i64, out: *u8, cap: i64) -> i64 |
| 175 | func ec_seed_one(w: *i64, idx: i64, axis: i64, layer: i64, cur: i64, bar: i64, weight: i64, ev: i64, domain: *u8, bench: *u8, nextrung: *u8) -> i64 |
| 184 | func ec_seed_one_ev(w: *i64, idx: i64, axis: i64, layer: i64, cur: i64, bar: i64, weight: i64, ev: i64, evkind: i64, domain: *u8, bench: *u8, nextrung: *u8, evlog: *u8, evpat: *u8) -> i64 |
| 193 | func ec_seed_two(w: *i64, idx: i64, axis: i64, layer: i64, cur: i64, bar: i64, weight: i64, ev: i64, evkind: i64, evkind2: i64, domain: *u8, bench: *u8, nextrung: *u8, evlog: *u8, evpat: *u8, evlog2: *u8, evpat2: *u8) -> i64 |
| 203 | func permil_to_level(p: i64) -> i64 |
| 229 | func em_derive_level(evkind: i64, evlog: *u8, evpat: *u8, stored: i64) -> i64 |
| 271 | func em_domain_level(v: *u8, tout: *i64) -> i64 |
| 316 | func em_rollup_store(prefix: *u8, autolog: *u8, out: *i64, verbose: i64) -> i64 called by 9: mainmainmainem_emit_pagemainmain+3 calls 17: sys_mmapss_readallel_last_aftersys_now_realtime_secss_openec_key+11 |
| 437 | func el_contains(buf: *u8, n: i64, pat: *u8) -> i64 |
| 455 | func em_plan_coverage(logpath: *u8) -> i64 |
| 520 | func em_axes_known_guard(fd: i64, permil: i64, axes: i64, partial: i64) -> i64 |
| 528 | func et_mkid(domain: *u8, out: *u8) -> i64 |
| 538 | func et_should_emit(domain: *u8, cur: i64, bar: i64, qb: *u8, qn: i64) -> i64 |
| 546 | func et_count_targets_store(prefix: *u8, qb: *u8, qn: i64) -> i64 |
| 574 | func pg_thead(buf: *u8, off: i64) -> i64 |
| 578 | func pg_emit_axis(buf: *u8, off: i64, h: *i64, want: i64) -> i64 |
| 616 | func em_emit_page(prefix: *u8, autolog: *u8, outhtml: *u8) -> i64 |
| 655 | func et_emit_targets_core(store: *u8, qb: *u8, qn: i64, qf: i64, lf: i64, out: *i64) -> i64 |
| 710 | func em_req_id(i:i64)->*u8 called by 1: em_req_validate |
| 719 | func em_req_label(i:i64)->*u8 called by 1: em_req_validate |
| 728 | func em_req_is(b:*u8,p:i64,e:i64,col:i64,s:*u8)->i64 |
| 732 | func em_req_validate(b:*u8,n:i64)->i64 called by 2: em_requirements_intomain calls 9: pb_input_okbf_line_endpb_trim_crbf_line_startspb_field_countem_req_is+3 |
| 769 | func em_req_key(col:i64,kind:i64)->*u8 called by 1: em_req_rows |
| 782 | func em_req_rows(w:*JsonWriter,b:*u8,n:i64,kind:i64)->i64 called by 1: em_requirements_into calls 12: json_begin_arraybf_line_endpb_trim_crbf_line_startsjson_begin_objectcg_jkey+6 |
| 804 | func em_requirements_into(b:*u8,n:i64,out:*u8,cap:i64)->i64 called by 2: em_requirements_runmain calls 11: em_req_validatesys_mmapjson_writer_initjson_begin_objectcg_jkeyjson_emit_int+5 |
| 821 | func em_req_capacity(s:*u8)->i64 |
| 826 | func em_requirements_run(path:*u8,inputcap:i64,outputcap:i64)->i64 called by 2: mainmain calls 6: sys_mmaprc_read_file_intorc_completesys_munmapem_requirements_intosys_write |