code wiki / (root) / nx_chem_report_json_test.nx

nx_chem_report_json_test.nx

buildroot/runtime/nx_chem_report_json_test.nx

11700 B248 linesdepth 12pulls 19 transitivereach 0 importersview sourcekind gate/prooftopic chem
docsdependenciesstructsconstsfunctions

about

nx_chem_report_json_test.nx -- C6.0 KAT + end-to-end JSON demo. Validates JSON emitter primitives + complete report assembly + dumps a real LIMS-ingestion-ready report to stdout for visual check. expect_exit: 0 license_tier: ORIGINAL

dependencies 10 imports · 0 importers

nx_chem.nx nx_chem_molecule.nx nx_chem_smiles.nx nx_chem_periodic.nx nx_chem_valence.nx nx_chem_mass.nx nx_chem_isotope_pattern.nx nx_chem_adulterant_db.nx nx_chem_peak_list.nx nx_chem_report_json.nx nx_chem_report_json_test.nx

imports: nx_chem.nxnx_chem_molecule.nxnx_chem_smiles.nxnx_chem_periodic.nxnx_chem_valence.nxnx_chem_mass.nxnx_chem_isotope_pattern.nxnx_chem_adulterant_db.nxnx_chem_peak_list.nxnx_chem_report_json.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main a_emit_str nx_chem_emit_str b_emit_str_escaped_quote nx_chem_emit_str_escaped c_emit_int nx_chem_emit_int d_emit_q4 nx_chem_emit_q4 nx_chem_emit_int ↻ e_emit_q4_padded nx_chem_emit_q4 ↻ f_buf_find nx_chem_buf_find g_full_json_report nx_chem_adulterant_db_seed nx_chem_atomic_data_table_ nx_chem_adulterant_db_new sys_mmap sys_mmap ↻ nx_chem_adulterant_seed_sm nx_chem_adulterant_db_add nx_chem_parse_smiles nx_chem_mol_new smi_is_digit nx_chem_mol_atom nx_chem_mol_bond_add nx_chem_mol_bond smi_parse_bracket smi_is_digit ↻ smi_is_upper smi_is_lower smi_bracket_symbol_two_cha smi_bracket_symbol_single_ smi_aromatic_lower_to_z nx_chem_mol_atom_add smi_connect nx_chem_mol_atom ↻ nx_chem_mol_bond_add ↻ nx_chem_mol_bond ↻

structs

none

consts

none

functions

23func a_emit_str() -> nx_int
called by 1: main calls 1: nx_chem_emit_str
35func b_emit_str_escaped_quote() -> nx_int
called by 1: main calls 1: nx_chem_emit_str_escaped
56func c_emit_int() -> nx_int
called by 1: main calls 1: nx_chem_emit_int
79func d_emit_q4() -> nx_int
called by 1: main calls 1: nx_chem_emit_q4
93func e_emit_q4_padded() -> nx_int
called by 1: main calls 1: nx_chem_emit_q4
104func f_buf_find() -> nx_int
called by 1: main calls 1: nx_chem_buf_find
121func g_full_json_report() -> nx_int
149func h_verdict_logic() -> nx_int
called by 1: main calls 1: nx_chem_verdict_recommendation
171func run_json_demo() -> nx_int
198func main() -> nx_exit