code wiki / (root) / nx_chem_morgan_test.nx

nx_chem_morgan_test.nx

buildroot/runtime/nx_chem_morgan_test.nx

12566 B274 linesdepth 9pulls 11 transitivereach 0 importersview sourcekind gate/prooftopic chem
docsdependenciesstructsconstsfunctions

about

nx_chem_morgan_test.nx -- C2.3c KAT for Morgan canonical ranking + canonical SMILES emit. Verifies the load-bearing property: two SMILES strings representing the same molecule produce byte-identical canonical output after Morgan refinement. This unlocks landscape EXCEED axis E1 (bit-reproducible canonical form across versions/platforms). expect_exit: 0 license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_chem_molecule.nx nx_chem_smiles.nx nx_chem_morgan.nx nx_chem_smiles_emit.nx nx_chem_morgan_test.nx

imports: nx_chem_molecule.nxnx_chem_smiles.nxnx_chem_morgan.nxnx_chem_smiles_emit.nx

imported by: nobody (leaf or entry point)

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

main a_single_atom parse_canonical 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 ↻ smi_aromatic_lower_to_z ↻ smi_is_upper ↻ smi_organic_atom nx_chem_smiles_populate_st nx_chem_emit_canonical_smi nx_chem_morgan_canonical_r nx_chem_morgan_initial_inv nx_chem_morgan_densify_ini nx_chem_morgan_refine nx_chem_morgan_signature nx_chem_morgan_sort_indice nx_chem_morgan_sig_cmp nx_chem_emit_state_new nx_chem_emit_byte nx_chem_emit_prescan_canon nx_chem_emit_subtree nx_chem_emit_bond_marker nx_chem_emit_byte ↻ nx_chem_compute_stereo_par

structs

none

consts

none

functions

20func parse_canonical(src: *u8, n: nx_int, out_buf: *u8, out_cap: nx_int, out_len: *nx_int) -> nx_int
27func bufeq(a: *u8, a_n: nx_int, b: *u8, b_n: nx_int) -> nx_int
40func a_single_atom() -> nx_int
called by 1: main calls 1: parse_canonical
55func b_ccov_occ() -> nx_int
called by 1: main calls 2: parse_canonicalbufeq
71func c_isobutane_canonical() -> nx_int
called by 1: main calls 2: parse_canonicalbufeq
91func d_ethene_stable() -> nx_int
called by 1: main calls 2: parse_canonicalbufeq
108func e_benzene_stable() -> nx_int
called by 1: main calls 2: parse_canonicalbufeq
129func f_initial_invariant_distinct() -> nx_int
145func g_methane_rank() -> nx_int
158func h_cco_distinct_ranks() -> nx_int
177func i_benzene_one_class() -> nx_int
203func j_lead_canonical_byte_identical() -> nx_int
called by 1: main calls 1: parse_canonical
218func main() -> nx_exit