code wiki / (root) / nx_chem_molecule_test.nx

nx_chem_molecule_test.nx

buildroot/runtime/nx_chem_molecule_test.nx

11527 B279 linesdepth 7pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic chem
docsdependenciesstructsconstsfunctions

about

nx_chem_molecule_test.nx -- C2.0 KAT for MolGraph struct + builder. All molecules constructed by hand (no SMILES parser yet -- that's C2.1). Verifies: struct layout, atom + bond adders, bounded lookups, error-code path on overflow, count-by-Z helper, and the convenience builders for the canonical reference molecules. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_chem_molecule.nx nx_chem_molecule_test.nx

imports: nx_chem_molecule.nx

imported by: nobody (leaf or entry point)

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

main a_new_empty nx_chem_mol_new nx_chem_mol_atom nx_chem_mol_bond b_atom_add nx_chem_mol_new ↻ nx_chem_mol_atom_add nx_chem_mol_atom ↻ c_bond_add nx_chem_mol_new ↻ nx_chem_mol_atom_add ↻ nx_chem_mol_bond_add nx_chem_mol_bond ↻ d_atom_overflow nx_chem_mol_new ↻ nx_chem_mol_atom_add ↻ e_bond_bad_atom nx_chem_mol_new ↻ nx_chem_mol_atom_add ↻ nx_chem_mol_bond_add ↻ f_bond_bad_order nx_chem_mol_new ↻ nx_chem_mol_atom_add ↻ nx_chem_mol_bond_add ↻ g_water nx_chem_mol_water nx_chem_mol_new ↻ nx_chem_mol_atom_add ↻ nx_chem_mol_atom ↻ nx_chem_mol_count_z h_methane nx_chem_mol_methane nx_chem_mol_new ↻ nx_chem_mol_atom_add ↻ nx_chem_mol_atom ↻ i_ethanol nx_chem_mol_ethanol nx_chem_mol_new ↻ nx_chem_mol_atom_add ↻

structs

none

consts

none

functions

17func a_new_empty() -> nx_int
35func b_atom_add() -> nx_int
59func c_bond_add() -> nx_int
78func d_atom_overflow() -> nx_int
92func e_bond_bad_atom() -> nx_int
106func f_bond_bad_order() -> nx_int
119func g_water() -> nx_int
133func h_methane() -> nx_int
144func i_ethanol() -> nx_int
164func j_ethene() -> nx_int
176func k_ethyne() -> nx_int
190func l_benzene() -> nx_int
221func main() -> nx_exit