code wiki / (root) / nx_chem_valence_test.nx

nx_chem_valence_test.nx

buildroot/runtime/nx_chem_valence_test.nx

15449 B361 linesdepth 9pulls 12 transitivereach 0 importersview sourcekind gate/prooftopic chem
docsdependenciesstructsconstsfunctions

about

nx_chem_valence_test.nx -- C2.3a KAT for implicit-H + molecular weight. Tests verify implicit-H inference matches Daylight 1988 organic-subset rules; molecular weights are checked against NIST WebBook standard values (atomic weights from IUPAC 2021 abridged). expect_exit: 0 license_tier: ORIGINAL

dependencies 5 imports · 0 importers

nx_chem.nx nx_chem_molecule.nx nx_chem_smiles.nx nx_chem_periodic.nx nx_chem_valence.nx nx_chem_valence_test.nx

imports: nx_chem.nxnx_chem_molecule.nxnx_chem_smiles.nxnx_chem_periodic.nxnx_chem_valence.nx

imported by: nobody (leaf or entry point)

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

main println sys_write strlen sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ a_default_valence nx_chem_default_valence b_methane_h 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

20func a_default_valence() -> nx_int
called by 1: main calls 1: nx_chem_default_valence
42func b_methane_h() -> nx_int
56func c_water_h() -> nx_int
69func d_ethanol_h() -> nx_int
88func e_ethene_h() -> nx_int
103func f_ethyne_h() -> nx_int
118func g_benzene_h() -> nx_int
141func h_bracket_preserved() -> nx_int
155func i_methane_mw() -> nx_int
169func j_water_mw() -> nx_int
184func k_ethanol_mw() -> nx_int
200func l_benzene_mw() -> nx_int
224func m_branched_olefin_mw() -> nx_int
256func n_nacl_mw() -> nx_int
275func o_lead_mw() -> nx_int
287func main() -> nx_exit