code wiki / (root) / nx_measurement_binding_lib.nx

nx_measurement_binding_lib.nx

buildroot/runtime/nx_measurement_binding_lib.nx

14812 B342 linesdepth 5pulls 9 transitivereach 107 importersview sourcekind librarytopic measurement
docsdependenciesstructsconstsfunctions

about

nx_measurement_binding_lib.nx -- read-only projection of authored plan contracts, retained rank snapshots and matrix-to-source declaration observations. No ranking, execution or publication. Consumers retain the input buffers while using returned spans. A declared contract symbol is not verified behavior; an absent rank row is not proof of completion. license_tier: ORIGINAL

dependencies 4 imports · 8 importers

nx_ladder_lib.nx nx_matrix_sym_lib.nx nx_symdecl_lib.nx nx_readcap_lib.nx nx_measurement_binding_lib.nx nx_compare_growth_lib.nx nx_compare_growth_lib_20260910.nx nx_measurement_binding_diagnostic. nx_measurement_binding_gate.nx nx_measurement_source_binding_gate nx_sota_bindings_differential_gate nx_sota_status.nx nx_source_binding_plan_watch_gate.

imports: nx_ladder_lib.nxnx_matrix_sym_lib.nxnx_symdecl_lib.nxnx_readcap_lib.nx

imported by: nx_compare_growth_lib.nxnx_compare_growth_lib_20260910.nxnx_measurement_binding_diagnostic.nxnx_measurement_binding_gate.nxnx_measurement_source_binding_gate.nxnx_sota_bindings_differential_gate.nxnx_sota_status.nxnx_source_binding_plan_watch_gate.nx

structs

none

consts

12const PB_PLAN_FIELDS: i64 = 8
13const PB_F_SYMBOL: i64 = 3
14const PB_F_DONE_RULE: i64 = 4
15const PB_F_EXECUTOR: i64 = 5
16const PB_F_ESTIMATE: i64 = 6
17const PB_ROW_SLOTS: i64 = 10
18const PB_PLAN_START: i64 = 0
19const PB_PLAN_END: i64 = 1
20const PB_ORDER_START: i64 = 2
21const PB_ORDER_END: i64 = 3
22const PB_FINISH_START: i64 = 4
23const PB_FINISH_END: i64 = 5
24const PB_UNMAPPED_START: i64 = 6
25const PB_UNMAPPED_END: i64 = 7
26const PB_PLAN_FIELD_COUNT: i64 = 8
27const PB_PLAN_SHAPE: i64 = 9
28const PB_PREFIX_FIELDS: i64 = 5
29const PB_SHAPE_RAW: i64 = 0
30const PB_SHAPE_FULL: i64 = 1
31const PB_SHAPE_PREFIX: i64 = 2
32const PB_STATS_SLOTS: i64 = 6
33const PB_S_RUNGS: i64 = 0
34const PB_S_ORDERED: i64 = 1
35const PB_S_FINISH: i64 = 2
36const PB_S_UNMAPPED: i64 = 3
37const PB_S_RANK_ASOF: i64 = 4
38const PB_S_RANK_STATE: i64 = 5
39const PB_OK: i64 = 0
40const PB_RANK_MISSING: i64 = 1
41const PB_E_INPUT: i64 = 0-1
42const PB_E_CAPACITY: i64 = 0-2
43const PB_E_ROW: i64 = 0-3
44const PB_E_DUP_PLAN: i64 = 0-4
45const PB_E_STAMP: i64 = 0-5
46const PB_E_ORPHAN: i64 = 0-6
47const PB_E_SYMBOL: i64 = 0-7
48const PB_E_DUP_RANK: i64 = 0-8
49const PB_I64_MAX: i64 = 9223372036854775807

functions

51func pb_input_ok(buf: *u8, n: i64) -> i64
58func pb_trim_cr(buf: *u8, p: i64, end: i64) -> i64
62func pb_equal(a: *u8, ao: i64, an: i64, b: *u8, bo: i64, bn: i64) -> i64
68func pb_rank_clear(rows: *i64, count: i64, stats: *i64, state: i64) -> i64
81func pb_field_count(plan: *u8, p: i64, e: i64, scratch: *i64) -> i64
86func pb_plan_shape(fields: i64) -> i64
called by 1: pb_plan_scan
91func pb_shape_name(shape: i64) -> *u8
called by 1: ss_bplanrecord
97func pb_plan_field(plan: *u8, rows: *i64, base: i64, field: i64, scratch: *i64) -> i64
107func pb_plan_scan(plan: *u8, n: i64, rows: *i64, capacity: i64, stats: *i64, scratch: *i64) -> i64
136func pb_find_rung(plan: *u8, rows: *i64, count: i64, other: *u8, off: i64, len: i64, scratch: *i64) -> i64
155func pb_rank_stamp(domain: *u8, rank: *u8, n: i64) -> i64
192func pb_rank_join(domain: *u8, plan: *u8, rank: *u8, n: i64, rows: *i64, count: i64, stats: *i64, scratch: *i64) -> i64
248func pbm_row_kind(buf: *u8, p: i64, e: i64) -> i64
254func pbm_ident(buf: *u8, p: i64, n: i64) -> i64
called by 3: pbm_contractmainmain calls 1: sd_ident_char
262func pbm_symbol(buf: *u8, a: i64, b: i64, out: *i64) -> i64
276func pbm_validate(buf: *u8, n: i64, scratch: *i64, sym: *i64) -> i64
294func pbm_matches(buf: *u8, p: i64, e: i64, contract: *u8, co: i64, cn: i64, scratch: *i64, sym: *i64) -> i64
305func pbm_read(path: *u8, outn: *i64) -> *u8
322func pbm_count(buf: *u8, n: i64, contract: *u8, co: i64, cn: i64, scratch: *i64, sym: *i64) -> i64
334func pbm_contract(buf: *u8, p: i64, n: i64, out: *i64) -> i64