code wiki / (root) / nx_swcompare_evidence_lib_t138.nx

nx_swcompare_evidence_lib_t138.nx

buildroot/runtime/nx_swcompare_evidence_lib_t138.nx

204879 B3027 linesdepth 8pulls 31 transitivereach 4 importersview sourcekind librarytopic swcompare
docsdependenciesstructsconstsfunctions

about

AUTO-EXTRACTED shared base (nx_oo_extract). license_tier: ORIGINAL No hw writes (Rule 26). functions: w,wc,wn,wj,wq,kv_s,kv_n,c_read,streq,starts,scopy,splitpipe,wnote,rp_base,rp_publish,rp_json,refs_pass

dependencies 17 imports · 4 importers

nx_syscalls.nx nx_symdecl_lib.nx nx_market_ladder_lib.nx nx_brand_tokens.nx nx_lineconf_lib.nx nx_estate_path.nx nx_imgattr_lib.nx nx_evprofile_lib.nx nx_bench_receipt_lib.nx nx_barfresh_lib.nx nx_swcompare_evidence_lib_t138 nx_evidence_snapshot_gate_t138.nx nx_swcompare_evidence_matrix_t138. nx_swcompare_evidence_sota_lib_t13 nx_swcompare_evidence_sota_t138.nx

diagram shows first 10 each side; +7 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_symdecl_lib.nxnx_market_ladder_lib.nxnx_brand_tokens.nxnx_lineconf_lib.nxnx_estate_path.nxnx_imgattr_lib.nxnx_evprofile_lib.nxnx_bench_receipt_lib.nxnx_barfresh_lib.nxnx_compare_growth_json.nxnx_ladder_lib.nxnx_gauge_lib.nxnx_sha256.nxnx_json.nxnx_json_lib.nxnx_fio.nx

imported by: nx_evidence_snapshot_gate_t138.nxnx_swcompare_evidence_matrix_t138.nxnx_swcompare_evidence_sota_lib_t138.nxnx_swcompare_evidence_sota_t138.nx

structs

2187struct SgPlan
2789struct EfsDoc { src: *u8, len: i64, tokens: *i64, count: i64, error: i64 }

consts

100const RV_NONE: i64 = 0
101const RV_CITED: i64 = 1
102const RV_UNCITED: i64 = 2
183const RP_NO: i64 = 0
184const RP_REVIEW: i64 = 1
185const RP_YES: i64 = 2
186const RP_KEYCAP: i64 = 128
305const SWL_DSTATE_CAP: i64 = 20480 // .debtstate sidecar read buffer. The NUL slot is DERIVED (CAP - 1)
412const SWL_RELEASE_I64_MAX: i64 = 9223372036854775807
724const WP_ST_LANDED: i64 = 1
725const WP_ST_WATCHING: i64 = 2
726const WP_ST_PRESENT: i64 = 3
727const WP_ST_MISSING: i64 = 4
728const WP_ST_ABSENT: i64 = 5
852const PL_MAXROWS: i64 = 32
1096const SC_TOKCAP: i64 = 16384
1097const SC_BP_MD: i64 = 860
1098const SC_BP_SM: i64 = 640
1190const SC_CAP_SPLIT: i64 = 496
1433const BD_SECS_PER_DAY: i64 = 86400
1434const BD_DAYS_TO_CIVIL_SHIFT: i64 = 719468 // days from 0000-03-01 to 1970-01-01 (Hinnant, civil_from_days)
1435const BD_DAYS_PER_ERA: i64 = 146097
1436const BD_DAYS_PER_4Y: i64 = 1460
1437const BD_DAYS_PER_100Y: i64 = 36524
1438const BD_DAYS_PER_ERA_LESS1: i64 = 146096
1439const BD_DAYS_PER_YEAR: i64 = 365
1440const BD_YEARS_PER_ERA: i64 = 400
1441const BD_MONTH_NUM: i64 = 153
1442const BD_MONTH_SHIFT: i64 = 2
1443const BD_MONTH_SCALE: i64 = 5
1444const BD_MARCH: i64 = 3
1445const BD_JAN_FROM_MP: i64 = 9
1446const BD_MP_WRAP: i64 = 10
1447const BD_FEB: i64 = 2
1448const BD_TEN: i64 = 10
1449const BD_SHA_SHOWN: i64 = 12
1494const PR_READ_CAP: i64 = 65536 // announces when it binds; a .proposed file is rows, not a corpus
1495const PR_PATH_CAP: i64 = 600 // knowledge/compare/<dom>.proposed -- the reserve its sibling passes use
1496const PR_I64_BYTES: i64 = 8
1497const PR_NF: i64 = 10 // fields per prop| row, from the writer's own emit order (ip_emit)
1498const PR_SPLIT: i64 = 16 // field table: PR_NF plus room, so an over-long row is read whole rather than clipped to fit
1499const PR_F_TAG: i64 = 0
1500const PR_F_EPOCH: i64 = 1
1501const PR_F_APPID: i64 = 2
1502const PR_F_NAME: i64 = 3
1503const PR_F_SIGNAL: i64 = 4
1504const PR_F_KIND: i64 = 5
1505const PR_F_TERM: i64 = 6
1506const PR_F_DOMAIN: i64 = 7
1507const PR_F_TITLE: i64 = 8
1508const PR_F_EVIDENCE: i64 = 9
1509const PR_CH_COMMENT: i64 = 35
1510const PR_CH_LF: i64 = 10
1511const PR_CH_COMMA: i64 = 44
1512const PR_CH_COLON: i64 = 58
1513const PR_CH_LBRACE: i64 = 123
1514const PR_CH_RBRACE: i64 = 125
1515const PR_CH_LBRACKET: i64 = 91
1516const PR_CH_RBRACKET: i64 = 93
1522const PR_NAME_CAP: i64 = 256
1523const PR_NAME_DIR: *u8 = "knowledge/reviews/steam/"
1524const PR_NAME_DIR_UP: *u8 = "../knowledge/reviews/steam/"
1525const PR_NAME_SUFFIX: *u8 = ".name"
1635const FI_READ_CAP: i64 = 262144 // announces when it binds: a .field is rows, not a corpus
1636const FI_PATH_CAP: i64 = 600
1637const FI_I64_BYTES: i64 = 8
1638const FI_NF: i64 = 7 // rival|name|seeds_hit|mentions|first_seed|link|kind (nx_field_lib fl_emit)
1639const FI_SPLIT: i64 = 12
1640const FI_F_TAG: i64 = 0
1641const FI_F_NAME: i64 = 1
1642const FI_F_SEEDS: i64 = 2
1643const FI_F_MENTIONS: i64 = 3
1644const FI_F_FIRST: i64 = 4
1645const FI_F_LINK: i64 = 5
1646const FI_F_KIND: i64 = 6
1647const FI_SHOW: i64 = 60 // rows rendered; the rest are COUNTED and the stats line says shown of count
1648const FI_COLS_MAX: i64 = 16
1649const FI_CH_COMMENT: i64 = 35
1650const FI_CH_LF: i64 = 10
1651const FI_CH_PIPE: i64 = 124
1652const FI_CH_COMMA: i64 = 44
1653const FI_CH_COLON: i64 = 58
1654const FI_CH_LBRACE: i64 = 123
1655const FI_CH_RBRACE: i64 = 125
1656const FI_CH_LBRACKET: i64 = 91
1657const FI_CH_RBRACKET: i64 = 93
1658const FI_UPPER_A: i64 = 65
1659const FI_UPPER_Z: i64 = 90
1660const FI_CASE_DELTA: i64 = 32
1816const GP_PATH_CAP: i64 = 600
1817const GP_READ_CAP: i64 = 65536
1818const GP_SPLIT: i64 = 8
1819const GP_NF: i64 = 5
1820const GP_F_LABEL: i64 = 1
1821const GP_F_PATH: i64 = 2
1822const GP_F_CAD: i64 = 3
1823const GP_F_NOTE: i64 = 4
1824const GP_ROW_CAP: i64 = 1024
1825const GP_CH_NL: i64 = 10
1826const GP_CH_HASH: i64 = 35
1827const GP_CH_COMMA: i64 = 44
1828const GP_CH_COLON: i64 = 58
1829const GP_CH_LBRACKET: i64 = 91
1830const GP_CH_RBRACKET: i64 = 93
1831const GP_CH_LBRACE: i64 = 123
1832const GP_CH_RBRACE: i64 = 125
1945const GX_FEED: *u8 = "knowledge/recordgaps.conf.rows"
1946const GX_STAMP: *u8 = "knowledge/recordgaps.conf.stamp"
1947const GX_READ_CAP: i64 = 4194304
1948const GX_NF: i64 = 5
1949const GX_F_KIND: i64 = 0
1950const GX_F_NAME: i64 = 1
1951const GX_F_BOARD: i64 = 2
1952const GX_F_SRC: i64 = 3
1953const GX_F_EV: i64 = 4
1954const GX_HUB: *u8 = "ecosystem"
1955const GX_UNASSIGNED: *u8 = "UNASSIGNED"
2167const SGP_FIELDS: i64 = 8
2168const SGP_PATH_CAP: i64 = 600
2169const SGP_I64_MAX: i64 = 9223372036854775807
2175const SGP_COLON: i64 = 58 // ':' -- the separator in a cross-board '<domain>:<rung>' ref
2176const SGP_NOTE_WORDS: i64 = 5 // one record: rule, rung-id ptr, name ptr, name len, number
2177const SGP_OFFENDER_MAX: i64 = 64 // offender rows RECORDED; offender_overflow carries the rest
2178const SGP_EXTERNAL_MAX: i64 = 64 // cross-board refs RECORDED; external_overflow carries the rest
2179const SGP_RULE_FIELDS: i64 = 1 // a rung row whose field count is not SGP_FIELDS
2180const SGP_RULE_BADID: i64 = 2 // a rung id outside the id grammar
2181const SGP_RULE_DUPID: i64 = 3 // a second declaration of one id
2182const SGP_RULE_BADDEP: i64 = 4 // a dependency token outside the id grammar
2183const SGP_RULE_MISSDEP: i64 = 5 // a dependency naming no rung on THIS plan
2184const SGP_RULE_DUPEDGE: i64 = 6 // the same dependency declared twice on one rung
2185const SGP_RULE_CYCLE: i64 = 7 // on a dependency cycle
2186const SGP_RULE_CYCLEDOWN: i64 = 8 // not on a cycle, but blocked by one
2790const EFS_DOC_BYTES: i64=40
2791const EFS_TOKEN_WORDS: i64=4
2792const EFS_KEY: i64=14

functions

20func w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
called by 67: wnkv_skv_nwnoterp_jsonrp_html+61 calls 1: sys_write
21func wc(fd: i64, code: i64) -> i64 { let t: *u8 = sys_mmap(2); t[0] = code as u8; sys_write(fd, t, 1); return 0 }
22func wn(fd: i64, v: i64) -> i64
28func wj(fd: i64, s: *u8) -> i64
35func wq(fd: i64) -> i64 { wc(fd, 34); return 0 }
36func kv_s(fd: i64, key: *u8, val: *u8) -> i64 { wq(fd); w(fd, key); wq(fd); wc(fd, 58); wq(fd); wj(fd, val); wq(fd); return 0 }
37func kv_n(fd: i64, key: *u8, v: i64) -> i64 { wq(fd); w(fd, key); wq(fd); wc(fd, 58); wn(fd, v); return 0 }
38func c_read(path: *u8, buf: *u8, cap: i64) -> i64
44func 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 }
45func starts(s: *u8, pfx: *u8) -> i64 { var i: i64 = 0; while pfx[i] != (0 as u8) { if s[i] != pfx[i] { return 0 } i = i + 1 } return 1 }
46func scopy(dst: *u8, doff: i64, src: *u8) -> i64 { var i: i64 = 0; while src[i] != (0 as u8) { dst[doff+i] = src[i]; i = i + 1 } return doff + i }
47func splitpipe(s: *u8, fld: *i64, maxf: i64) -> i64
52func wnote(fd: i64, s: *u8) -> i64
103func rv_code(s: *u8) -> i64
called by 1: rv_class
111func rv_note_cited(note: *u8) -> i64
116func rv_class(note: *u8, rf: *i64, rr: i64, stride: i64, ncol: i64) -> i64
called by 1: efm_main calls 2: rv_coderv_note_cited
126func rv_grade_claims(g: *u8) -> i64 { if g[0] == (66 as u8) { return 1 } if g[0] == (89 as u8) { return 1 } if g[0] == (126 as u8) { return 1 } return 0 }
called by 1: rv_class_grades
127func rv_class_grades(note: *u8, rf: *i64, rr: i64, stride: i64, first: i64, count: i64) -> i64
called by 1: main calls 2: rv_grade_claimsrv_note_cited
135func rv_name(c: i64) -> *u8
141func rp_base(p: *u8) -> *u8
called by 2: rp_publishrp_html
147func rp_publish(mir: *u8, dom: *u8) -> i64
191func rp_may_republish(cls: *u8) -> i64
210func rp_publish_gated(mir: *u8, dom: *u8, cls: *u8) -> i64
218func rp_json(fld: *i64, count: i64) -> i64
called by 1: refs_pass calls 4: wcwqwkv_s
236func rp_html(fld: *i64, count: i64, dom: *u8, hdr: *u8) -> i64
254func refs_pass(path: *u8, bufz: *u8, capz: i64, mode: i64, dom: *u8, hdr: *u8) -> i64
312func dstate(fd: i64, id: *u8, ds: *u8, dn: i64) -> i64
355func wlow(fd: i64, s: *u8) -> i64
380func swl_bar_state(fd: i64, buf: *u8, bidoff: *i64, bidlen: *i64, bym: *i64, bst: *i64, nb: i64, id: *u8) -> i64
399func swl_rung_deps(fd: i64, buf: *u8, ridoff: *i64, ridlen: *i64, rdoff: *i64, rdlen: *i64, nr: i64, id: *u8) -> i64
413func swl_release_epoch(s: *u8) -> i64
430func swl_release_candidate(epoch: *u8, kind: *u8, entry: *u8, current: i64, now: i64) -> i64
444func sc_heading_level(level: i64) -> i64 { if level<1 { return 2 }; if level>6 { return 2 }; return level }
445func sc_heading_open(fd: i64, level: i64, attrs: *u8) -> i64
448func sc_heading_close(fd: i64, level: i64) -> i64
453func sc_plan_table_open(fd: i64, label: *u8) -> i64
456func sc_plan_table_close(fd: i64) -> i64 { w(fd, "</tbody></table></div>" as *u8); return 0 }
458func plan_pass(path: *u8, bufz: *u8, capz: i64, phase: i64) -> i64 { return plan_pass_heading(path, bufz, capz, phase, 2) }
called by 1: main calls 1: plan_pass_heading
460func sc_plan_row_table(phase: i64, kind: *u8, fields: i64) -> i64
called by 1: plan_pass_heading calls 1: streq
485func plan_pass_heading(path: *u8, bufz: *u8, capz: i64, phase: i64, heading_level: i64) -> i64
729func wp_status_text(st: i64) -> *u8
called by 1: watch_pass
736func wp_status_class(st: i64) -> *u8
called by 1: watch_pass
743func wp_classify(organ: *u8, sym: *u8, rule_out: *i64) -> i64
called by 1: watch_pass calls 3: streqstartssd_present
753func watch_pass(mpath: *u8, fd: i64, mode: i64) -> i64
854func pl_jint(buf: *u8, n: i64, from: i64, key: *u8) -> i64
called by 1: ppp_pass_heading
880func pl_off(buf: *u8, n: i64, name: *u8) -> i64
called by 1: ppp_pass_heading
893func pl_cell(fd: i64, v: i64) -> i64
called by 1: ppp_pass_heading calls 2: wwn
899func ppp_pass(dom: *u8, fd: i64, mode: i64) -> i64 { return ppp_pass_heading(dom, fd, mode, 2) }
called by 2: efm_mainmain calls 1: ppp_pass_heading
900func ppp_pass_heading(dom: *u8, fd: i64, mode: i64, heading_level: i64) -> i64
1103func sc_brand() -> *u8
called by 1: sc_theme_pass
1110func sc_dark_open() -> *u8 { return "@media(prefers-color-scheme:dark){:root{\n" as *u8 }
called by 1: sc_theme_pass
1111func sc_dark_close() -> *u8 { return "}}\n" as *u8 }
called by 1: sc_theme_pass
1113func sc_theme_pass(fd: i64) -> i64
1192func sc_production_open(fd: i64, id: *u8, title: *u8, purpose: *u8) -> i64
called by 1: efm_main calls 1: w
1196func sc_production_close(fd: i64) -> i64 { w(fd, "</div></section>\n" as *u8); return 0 }
called by 1: efm_main calls 1: w
1198func sc_layout_pass(fd: i64) -> i64
called by 2: efm_mainmain calls 3: wwnsg_css
1298func evj_class(fired: i64, name: *u8, n: *i64) -> i64
called by 1: evj_pass calls 3: wcwqwj
1306func evj_pass(dom: *u8) -> i64
called by 2: efm_mainmain calls 23: sys_mmapevp_loadwcwqwkv_s+17
1451func bd_ymd(epoch: i64, dst: *u8, off: i64) -> i64
1474func bd_sha_short(fd: i64, s: *u8) -> i64
called by 1: bench_pass_heading calls 1: wc
1479func bd_status_class(st: i64) -> *u8
called by 1: bench_pass_heading
1526func pr_name_read(dir: *u8, appid: *u8, out: *u8, cap: i64) -> i64
called by 1: pr_name_lookup calls 3: sys_mmapscopyc_read
1538func pr_name_lookup(appid: *u8, out: *u8, cap: i64) -> i64
called by 1: prop_pass_heading calls 1: pr_name_read
1543func prop_pass(dom: *u8, fd: i64, mode: i64) -> i64 { return prop_pass_heading(dom, fd, mode, 2) }
called by 2: efm_mainmain calls 1: prop_pass_heading
1544func prop_pass_heading(dom: *u8, fd: i64, mode: i64, heading_level: i64) -> i64
1661func fi_lc(c: i64) -> i64 { if c >= FI_UPPER_A { if c <= FI_UPPER_Z { return c + FI_CASE_DELTA } } return c }
called by 1: fi_ci_contains
1663func fi_ci_contains(hay: *u8, needle: *u8) -> i64
called by 1: field_pass_heading calls 1: fi_lc
1680func fi_head_word(col: *u8, out: *u8, cap: i64) -> i64
called by 1: field_pass_heading
1688func field_pass(dom: *u8, fd: i64, mode: i64, colv: *i64, ncols_in: i64) -> i64 { return field_pass_heading(dom, fd, mode, colv, ncols_in, 2) }
called by 2: efm_mainmain calls 1: field_pass_heading
1689func field_pass_heading(dom: *u8, fd: i64, mode: i64, colv: *i64, ncols_in: i64, heading_level: i64) -> i64
1833func gauge_pass(dom: *u8, fd: i64, mode: i64) -> i64 { return gauge_pass_heading(dom, fd, mode, 2) }
called by 2: efm_mainmain calls 1: gauge_pass_heading
1834func gauge_pass_heading(dom: *u8, fd: i64, mode: i64, heading_level: i64) -> i64
1956func gaps_pass(dom: *u8, fd: i64, mode: i64) -> i64 { return gaps_pass_heading(dom, fd, mode, 2) }
called by 2: efm_mainmain calls 1: gaps_pass_heading
1957func gaps_pass_heading(dom: *u8, fd: i64, mode: i64, heading_level: i64) -> i64
2056func bench_pass(dom: *u8, fd: i64, mode: i64) -> i64 { return bench_pass_heading(dom, fd, mode, 2) }
called by 2: efm_mainmain calls 1: bench_pass_heading
2057func bench_pass_heading(dom: *u8, fd: i64, mode: i64, heading_level: i64) -> i64
2224func sg_len(s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { i = i + 1 } return i }
2225func sg_id(s: *u8, n: i64) -> i64
called by 2: sg_parsesg_load
2240func sg_split(s: *u8, f: *i64, capacity: i64, delimiter: i64) -> i64
called by 2: sg_ranksg_parse
2248func sg_decimal(s: *u8) -> i64
called by 1: sg_prefix_decimal
2258func sg_sha(b: *u8, n: i64) -> *u8
2267func sg_find(m: *SgPlan, name: *u8, length: i64) -> i64
called by 2: sg_ranksg_parse calls 1: sg_len
2280func sg_prefix_decimal(s: *u8, key: *u8) -> i64
called by 1: sg_rank calls 3: startssg_decimalsg_len
2284func sg_rank(m: *SgPlan, raw: *u8, n: i64) -> i64
2345func sg_colon(s: *u8, n: i64) -> i64
called by 1: sg_parse
2350func sg_rule_name(rule: i64) -> *u8
called by 1: sg_graph_text
2362func sg_note(list: *i64, count: i64, capacity: i64, rule: i64, rung: *u8, name: *u8, length: i64, number: i64) -> i64
called by 2: sg_offendsg_extern
2369func sg_offend(m: *SgPlan, rule: i64, rung: *u8, name: *u8, length: i64, number: i64) -> i64
called by 1: sg_parse calls 1: sg_note
2374func sg_extern(m: *SgPlan, rung: *u8, name: *u8, length: i64) -> i64
called by 1: sg_parse calls 1: sg_note
2381func sg_graph_text(m: *SgPlan, fd: i64) -> i64
2421func sg_parse(raw: *u8, n: i64, rank: *u8, rn: i64, matrix: *u8, mn: i64) -> *SgPlan
2578func sg_valid(m: *SgPlan) -> i64
2583func sg_rank_state(m: *SgPlan) -> *u8
2592func sg_load(domain: *u8) -> *SgPlan
2616func sg_growth_json(g: *CgModel,fd: i64) -> i64
2632func sg_growth_text(g: *CgModel,row: i64,col: i64,fd: i64) -> i64
2640func sg_growth_detail(g: *CgModel,row: i64,col: i64,label: *u8,fd: i64) -> i64
called by 1: sg_growth_html calls 2: wsg_growth_text
2643func sg_growth_html(g: *CgModel,fd: i64,heading: i64) -> i64
2694func sg_json(m: *SgPlan, fd: i64) -> i64
2732func sg_text(fd: i64, s: *u8) -> i64
2743func sg_html(m: *SgPlan, fd: i64) -> i64 { return sg_html_heading(m, fd, 2) }
calls 1: sg_html_heading
2744func sg_html_heading(m: *SgPlan, fd: i64, heading_level: i64) -> i64
2779func sg_css(fd: i64) -> i64
called by 1: sc_layout_pass calls 1: w
2793func efs_free(d: *EfsDoc) -> i64
called by 3: efg_badmainefs_render calls 1: sys_munmap
2798func efs_parse(src: *u8,n: i64) -> *EfsDoc
2857func efs_equal(d: *EfsDoc,idx: i64,s: *u8) -> i64
2866func efs_get(d: *EfsDoc,parent: i64,key: *u8) -> i64
2875func efs_kind(d: *EfsDoc,i: i64) -> i64 { if i<0 || i>=d.count { return 0 };return d.tokens[i*EFS_TOKEN_WORDS] }
2876func efs_int(d: *EfsDoc,i: i64) -> i64
2884func efs_number(d: *EfsDoc,parent: i64,key: *u8) -> i64 { return efs_int(d,efs_get(d,parent,key)) }
2885func efs_string(d: *EfsDoc,i: i64) -> *u8
2891func efs_print_string(d: *EfsDoc,i: i64,fd: i64) -> i64
2896func efs_validate(d: *EfsDoc) -> i64
2945func efs_metric(d: *EfsDoc,summary: i64,key: *u8,label: *u8,meaning: *u8,fd: i64) -> i64
called by 1: efs_html calls 4: wsg_textwnefs_number
2950func efs_html(d: *EfsDoc,fd: i64,heading: i64,path: *u8,hash: *u8) -> i64
2989func efs_capture(path: *u8,expected: *u8,r: *NxFileReadRegion) -> *u8
3016func efs_render(path: *u8,expected: *u8,heading: i64,fd: i64) -> i64