InChI
 
Loading...
Searching...
No Matches
strutil.h
Go to the documentation of this file.
1/*
2 * International Chemical Identifier (InChI)
3 * Version 1
4 * Software version 1.07
5 * April 30, 2024
6 *
7 * MIT License
8 *
9 * Copyright (c) 2024 IUPAC and InChI Trust
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a copy
12 * of this software and associated documentation files (the "Software"), to deal
13 * in the Software without restriction, including without limitation the rights
14 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 * copies of the Software, and to permit persons to whom the Software is
16 * furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included in all
19 * copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27 * SOFTWARE.
28 *
29 * The InChI library and programs are free software developed under the
30 * auspices of the International Union of Pure and Applied Chemistry (IUPAC).
31 * Originally developed at NIST.
32 * Modifications and additions by IUPAC and the InChI Trust.
33 * Some portions of code were developed/changed by external contributors
34 * (either contractor or volunteer) which are listed in the file
35 * 'External-contributors' included in this distribution.
36 *
37 * info@inchi-trust.org
38 *
39 */
40
41#ifndef _STRUTIL_H_
42#define _STRUTIL_H_
43
44/* Mol structure utlities */
45
46#include "inpdef.h"
47#include "ichi.h"
48#include "util.h" /* (@nnuk : Nauman Ullah Khan) :: utilizing defined macros */
49#include "incomdef.h"
50
51#ifndef COMPILE_ALL_CPP
52#ifdef __cplusplus
53extern "C"
54{
55#endif
56#endif
57
58 /*(@nnuk : Nauman Ullah Khan)
59 * Metal definitions for molecular inorganics (MolInOrg)
60 */
61#define MolInOrg1 1 /* takes the lowest valence of an element */
62#define MolInOrg2 3 /* takes the two lowest valences of an element */
63#define MolInOrg3 7 /* takes the three lowest valences of an element */
64#define MolInOrg4 15 /* takes the four lowest valences of an element */
65
66 /* forward declaration */
68 struct tagCANON_GLOBALS;
69
70 /*(@nnuk : Nauman Ullah Khan)
71 * CHEMICAL ELEMENTS & ATOMIC VALENCE MODEL FOR VARIOUS OXIDATION STATES
72 */
74 {
75 /* Element chemical symbol */
76 const char* szElName;
77 /* Average atomic mass from the Periodic Chart of the Elements
78 (Fisher cat. no. 05-702-10) */
80 /* (not used currently) Atomic mass of the most abundant isotope */
82 /* (not used currently) Exact mw of the most abundant isotope (not used) */
83 double dAtMass;
84 /* MolInOrg1, MolInOrg2, MolInOrg3 or MolInOrg4 */
85 int nType;
86 /* (not used currently) Pauling electronegativity x 10; 0 means unknown */
88 /* InChI does not add implicit H to atoms that have non-zero bSkipAddingH */
89 /* NB: was called bDoNotAddH, renamed to avoid confusion with other procedures */
93
94 /*(@nnuk : Nauman Ullah Khan) :: Structure to hold variables for the array of all chemical elements, further used by MolecularInorganics function*/
96 {
98 char symbol[3]; /* Fixed length for symbol, up to 2 characters + null terminator */
99
101
102 /* (@nnuk : Nauman Ullah Khan) :: Main function for molecular inorganics */
104 /* (@nnuk : Nauman Ullah Khan) :: Function related to molecular inorganics, for getting the binary value of the electronegativity difference between any two elements */
105 int shouldBondBeCut(int atom1, int atom2);
106 /* (@nnuk : Nauman Ullah Khan) :: Function related to molecular inorganics, for updating the neighbour's list in the main molecular inorganics function processing */
107 void updateNeighborListMolecularInorganics(inp_ATOM* at, int atom_idx, int neighbor_idx);
108 /* (@nnuk : Nauman Ullah Khan) :: Function related to molecular inorganics, decides for the specific metal bonds to be kept or disconnected. */
110 /* Function retrieves valence values for molecular inorganics functionality*/
111 int getElValenceforMolecularInorganics(int nPeriodicNum, int charge, int val_num);
112 /* Function retrieves element type value for molecular inorganics functionality*/
113 int getElTypeforMolecularInorganics(int nPeriodicNum);
114
123 int set_EnhancedStereo_t_m_layers(const ORIG_ATOM_DATA *orig_inp_data,
124 const INChI *inchi,
125 const INChI_Aux *aux);
126
134 int get_canonical_atom_number( const INChI_Aux *aux,
135 int orig_atom_num);
136
145 int get_parity_idx_from_canonical_atom_number( int canon_atom_num,
146 const AT_NUMB *nNumber,
147 int nof_atoms);
148
160 int invert_parities(const INChI *inchi,
161 const INChI_Aux *aux,
162 int **list_atoms,
163 int nof_lists,
164 int is_absolute);
165
175 int ExtractConnectedComponent(inp_ATOM *at, int num_at,
176 int component_number,
177 inp_ATOM *component_at);
186 int SetConnectedComponentNumber(inp_ATOM *at, int num_at, int component_number);
187
198 INChI *Alloc_INChI(inp_ATOM *at, int num_at, int *found_num_bonds,
199 int *found_num_isotopic, int nAllocMode);
200
207 int Free_INChI(INChI **ppINChI);
208
215 int Free_INChI_Members(INChI *pINChI);
216
223 int Free_INChI_Stereo(INChI_Stereo *pINChI_Stereo);
224
234 INChI_Aux *Alloc_INChI_Aux(int num_at, int num_isotopic_atoms,
235 int nAllocMode, int bOrigData);
236
243 int Free_INChI_Aux(INChI_Aux **ppINChI_Aux);
244
265 int Create_INChI(struct tagCANON_GLOBALS *pCG,
266 struct tagINCHI_CLOCK *ic,
267 INPUT_PARMS *ip,
268 INChI **ppINChI,
269 INChI_Aux **ppINChI_Aux,
270 ORIG_ATOM_DATA *orig_inp_data,
271 inp_ATOM *inp_at,
272 INP_ATOM_DATA *inp_norm_data[2],
273 int num_inp_at,
274 INCHI_MODE nUserMode,
275 INCHI_MODE *pbTautFlags,
276 INCHI_MODE *pbTautFlagsDone,
277 struct tagInchiTime *ulMaxTime,
278 struct tagTautomerGroupsInfo *ti_out,
279 char *pStrErrStruct);
280
300 inp_ATOM *norm_at,
301 INF_ATOM_DATA *inf_norm_at_data,
302 int init_num_at,
303 int num_removed_H,
304 int bAdd_DT_to_num_H,
305 int nNumRemovedProtons,
306 NUM_H *nNumRemovedProtonsIsotopic,
307 int bIsotopic,
308 INChI *pINChI,
309 INChI_Aux *pINChI_Aux,
310 int bAbcNumbers,
311 INCHI_MODE nMode);
312
328 COMP_ATOM_DATA *composite_norm_data,
329 INF_ATOM_DATA *inf_norm_at_data,
330 int bIsotopic,
331 int bTautomeric,
332 PINChI2 *pINChI2,
333 PINChI_Aux2 *pINChI_Aux2,
334 int bAbcNumbers,
335 INCHI_MODE nMode);
336
337#if (FIX_DALKE_BUGS == 1)
344 char *AllocateAndFillHillFormula(INChI *pINChI);
345#endif
346
347 typedef enum tagInchiDiffBits
348 {
349 IDIF_PROBLEM = 0x00000001, /* severe: at least one InChI does not exist */
350 IDIF_NUM_AT = 0x00000001, /* severe: different number of atoms in the skeleton */
351 IDIF_ATOMS = 0x00000001, /* severe: diiferent types of skeleton atoms */
352 IDIF_NUM_EL = 0x00000001, /* severe: formulas differ in another element */
353 IDIF_CON_LEN = 0x00000001, /* severe: different connection table lengths */
354 IDIF_CON_TBL = 0x00000001, /* severe: different connection tables */
355 IDIF_POSITION_H = 0x00000002, /* difference in non-taut (Mobile-H) or all H (Fixed-H) location/number */
356 IDIF_MORE_FH = 0x00000004, /* extra fixed H */
357 IDIF_LESS_FH = 0x00000008, /* missing fixed H */
358 IDIF_MORE_H = 0x00000010, /* formulas differ in number of H */
359 IDIF_LESS_H = 0x00000020, /* formulas differ in number of H */
360 /*IDIF_TAUT_LEN = 0x00000008,*/ /* different lengths of tautomer lists */
361 IDIF_NO_TAUT = 0x00000040, /* restored structure has no taut groups while the original InChI has some */
362 IDIF_WRONG_TAUT = 0x00000080, /* restored has tautomerism while the original does not have it */
363 IDIF_SINGLE_TG = 0x00000100, /* restored has 1 taut. group while the original InChI has multiple tg */
364 IDIF_MULTIPLE_TG = 0x00000200, /* restored has multiple tg while the original InChI has only one tg */
365 IDIF_NUM_TG = 0x00000400, /* different number of tautomeric groups */
366 /*IDIF_LESS_TG_ENDP = 0x00000200,*/ /* restores structure has less taut. endpoints */
367 /*IDIF_MORE_TG_ENDP = 0x00000400,*/ /* restores structure has more taut. endpoints */
368 IDIF_EXTRA_TG_ENDP = 0x00000800, /* extra tautomeric endpoint(s) in restored structure */
369 IDIF_MISS_TG_ENDP = 0x00001000, /* one or more tg endpoint is not in the restored structure */
370 IDIF_DIFF_TG_ENDP = 0x00002000, /* lists of tg endpoints are different */
371 IDIF_TG = 0x00004000, /* different tautomeric groups */
372 IDIF_NUM_ISO_AT = 0x00008000, /* ?severe: restored struct. has different number of isotopic atoms */
373 IDIF_ISO_AT = 0x00010000, /* ?severe: restored struct. has different locations/isotopes of isotopic atoms */
374 IDIF_CHARGE = 0x00020000, /* restored structure has different charge */
375 IDIF_REM_PROT = 0x00040000, /* proton(s) removed/added from the restored structure */
376 IDIF_REM_ISO_H = 0x00080000, /* isotopic H removed */
377 IDIF_SC_INV = 0x00100000, /* restores structure has different inversion stereocenter mark */
378 IDIF_SC_PARITY = 0x00200000, /* restored structure has stereoatoms or allenes with different parity */
379 IDIF_SC_EXTRA_UNDF = 0x00400000, /* restored structure has extra undefined stereocenter(s) */
380 IDIF_SC_EXTRA = 0x00800000, /* restored structure has extra stereocenter(s) */
381 IDIF_SC_MISS_UNDF = 0x01000000, /* restored structure has not some undefined stereocenter(s) */
382 IDIF_SC_MISS = 0x02000000, /* restored structure has not some stereocenters that are not undefined */
383 IDIF_SB_PARITY = 0x04000000, /* restored structure has stereobonds or cumulenes with different parity */
384 IDIF_SB_EXTRA_UNDF = 0x08000000, /* restored structure has extra undefined stereobond(s) */
385 IDIF_SB_EXTRA = 0x10000000, /* restored structure has extra stereobond(s) */
386 IDIF_SB_MISS_UNDF = 0x20000000, /* restored structure has not some undefined stereocenters */
387 IDIF_SB_MISS = 0x40000000 /* restored structure has not some stereobonds that are not undefined */
389
390#define IDIFF_SB (IDIF_SB_PARITY | IDIF_SB_EXTRA_UNDF | IDIF_SB_EXTRA | IDIF_SB_MISS_UNDF | IDIF_SB_MISS)
391#define IDIFF_SC (IDIF_SC_PARITY | IDIF_SC_EXTRA_UNDF | IDIF_SC_EXTRA | IDIF_SC_MISS_UNDF | IDIF_SC_MISS)
392
393#define IDIFF_CONSTIT (IDIF_POSITION_H | IDIF_MORE_FH | IDIF_LESS_FH | IDIF_MORE_H | IDIF_LESS_H | \
394 IDIF_NO_TAUT | IDIF_WRONG_TAUT | IDIF_SINGLE_TG | IDIF_MULTIPLE_TG | \
395 IDIF_NUM_TG | IDIF_EXTRA_TG_ENDP | IDIF_MISS_TG_ENDP | IDIF_TG | \
396 IDIF_NUM_ISO_AT | IDIF_ISO_AT | IDIF_CHARGE | IDIF_REM_PROT | IDIF_REM_ISO_H | \
397 IDIF_DIFF_TG_ENDP)
398#define IDIFF_STEREO (IDIF_SC_INV | IDIF_SC_PARITY | IDIF_SC_EXTRA_UNDF | IDIF_SC_EXTRA | \
399 IDIF_SC_MISS_UNDF | IDIF_SC_MISS | IDIF_SB_PARITY | IDIF_SB_EXTRA_UNDF | \
400 IDIF_SB_EXTRA | IDIF_SB_MISS_UNDF | IDIF_SB_MISS)
401
402 /*************************************************************************************/
403#define ICR_MAX_ENDP_IN1_ONLY 32
404#define ICR_MAX_ENDP_IN2_ONLY 32
405#define ICR_MAX_DIFF_FIXED_H 32
406#define ICR_MAX_SB_IN1_ONLY 32
407#define ICR_MAX_SB_IN2_ONLY 32
408#define ICR_MAX_SC_IN1_ONLY 32
409#define ICR_MAX_SC_IN2_ONLY 32
410#define ICR_MAX_SB_UNDF 32
411#define ICR_MAX_SC_UNDF 32
412
414 {
416
423
424 /* 1 => InChI from reversed struct. 2 => input InChI */
425
426 AT_NUMB endp_in1_only[ICR_MAX_ENDP_IN1_ONLY]; /* endpoint canonical number = index+1 */
428
429 AT_NUMB endp_in2_only[ICR_MAX_ENDP_IN2_ONLY]; /* endpoint canonical number = index+1 */
431
435
439
443
448
453
458
463 } ICR; /* tagInChICompareResults */
464
476 INCHI_MODE CompareReversedINChI2(INChI *i1 /* InChI from reversed struct */,
477 INChI *i2 /* input InChI */,
478 INChI_Aux *a1, INChI_Aux *a2,
479 ICR *picr, int *err);
480
491 int CompareIcr(ICR *picr1, ICR *picr2, INCHI_MODE *pin1, INCHI_MODE *pin2, INCHI_MODE mask);
492
502 int CompareReversedINChI(INChI *i1, INChI *i2, INChI_Aux *a1, INChI_Aux *a2);
503
504 // Where is this function?
505 const char *CompareReversedInchiMsg(int code);
506
507#define EQL_EXISTS 1
508#define EQL_SP3 2
509#define EQL_SP3_INV 4
510#define EQL_SP2 8
511
522 int Eql_INChI_Stereo(INChI_Stereo *s1, int eql1, INChI_Stereo *s2, int eql2, int bRelRac);
523
531 int Eql_INChI_Isotopic(INChI *i1, INChI *i2);
532
533#define EQL_EQU 0
534#define EQL_EQU_TG 1
535#define EQL_EQU_ISO 2
536
546 int Eql_INChI_Aux_Equ(INChI_Aux *a1, int eql1, INChI_Aux *a2, int eql2);
547
548#define EQL_NUM 0
549#define EQL_NUM_INV 1
550#define EQL_NUM_ISO 2
551
561 int Eql_INChI_Aux_Num(INChI_Aux *a1, int eql1, INChI_Aux *a2, int eql2);
562
570 int bHasEquString(AT_NUMB *LinearCT, int nLenCT);
571
579 int CompINChINonTaut2(const void *p1, const void *p2);
580
588 int CompINChITaut2(const void *p1, const void *p2);
589
599 int CompINChI2(const INCHI_SORT *p1, const INCHI_SORT *p2, int bTaut, int bCompareIsotopic);
600
609 int CompINChITautVsNonTaut(const INCHI_SORT *p1, const INCHI_SORT *p2, int bCompareIsotopic);
610
612 { /* r = repetitive, n = non-repetitive */
613 DIFS_f_FORMULA, /* 0 r; fixed-H <-> mobile-H */
614 DIFS_c_CONNECT, /* 1 n; connection table; mobile-H only */
615 DIFS_h_H_ATOMS, /* 2 n; hydrogen atoms: mobile-H and Fixed-H; have different meanings */
616 DIFS_q_CHARGE, /* 3 r; charge; fixed-H <-> mobile-H */
617 DIFS_p_PROTONS, /* 4 n; protons; mobile-H only */
618 DIFS_b_SBONDS, /* 5 r: stereobonds: fixed-H <-> mobile-H * isotopic <-> non-isotopic */
619 DIFS_t_SATOMS, /* 6 r: stereoatoms: fixed-H <-> mobile-H * isotopic <-> non-isotopic */
620 DIFS_m_SP3INV, /* 7 r: stereo-abs-inv: fixed-H <-> mobile-H * isotopic <-> non-isotopic */
621 DIFS_s_STYPE, /* 8 r: stereo-type: fixed-H <-> mobile-H * isotopic <-> non-isotopic */
622 DIFS_i_IATOMS, /* 9 r: isotopic atoms: fixed-H <-> mobile-H * isotopic <-> non-isotopic */
623 DIFS_o_TRANSP, /* 10 n: Fixed-H transposition */
624 DIFS_idf_LENGTH, /* 11 length of the array relevant to the INChI Identifier */
625 /* later elements referring to AuxInfo may be added */
626 DIFS_LENGTH = DIFS_idf_LENGTH /* length of the array */
628
630 {
631 DIFL_M, /* 0 main layer */
632 DIFL_MI, /* 1 main isotopic */
633 DIFL_F, /* 2 fixed-H */
634 DIFL_FI, /* 3 fixed-H isotopic */
635 DIFL_LENGTH /* number of layers */
637
638 /* Value meaning */
639 typedef enum tagMarkDiff
640 {
641 DIFV_BOTH_EMPTY = 0, /* both this and the component in the preceding namesake segment are empty */
642 DIFV_EQL2PRECED = 1, /* equal to the component in the preceding namesake segment */
643 DIFV_NEQ2PRECED = 2, /* different from the component in the preceding namesake segment */
644 DIFV_IS_EMPTY = 4, /* is empty while the preceding namesake segment is not empty */
645 DIFV_FI_EQ_MI = 8, /* FI stereo component is equal to the component in the MI namesake segment */
646 /* while M and F components are empty */
647 /* decision_F = bitmask: bits that should not be present */
648 /* decision_T = bitmask: at least one of the bits should be present */
649 /* decision = true if( !( BITS & decision_F ) && ( BITS & decision_F ) ) */
650 DIFV_OUTPUT_EMPTY_T = (DIFV_IS_EMPTY), /* bits present for empty segment output */
652
653 DIFV_OUTPUT_OMIT_F = (DIFV_NEQ2PRECED | DIFV_IS_EMPTY), /* bits NOT present for omitting */
654
657
659 {
661 INCHI_SEGM_FILL = 1, /* the value is used in str_LineEnd() */
662 INCHI_SEGM_EMPTY = 2 /* the value is used in str_LineEnd() */
664
674 int CompINChILayers(const INCHI_SORT *p1, const INCHI_SORT *p2,
675 char sDifSegs[][DIFS_LENGTH], int bFixTranspChargeBug);
676
683 int MarkUnusedAndEmptyLayers(char sDifSegs[][DIFS_LENGTH]);
684
691 int INChI_SegmentAction(char cDifSegs);
692
693#define FLAG_SORT_PRINT_TRANSPOS_BAS 1 /* transposition in the main InChI layer */
694#define FLAG_SORT_PRINT_TRANSPOS_REC 2 /* transposition in the reconnected InChI layer */
695#define FLAG_SORT_PRINT_NO_NFIX_H_BAS 4 /* no fixed H non-isotopic in the main InChI layer */
696#define FLAG_SORT_PRINT_NO_NFIX_H_REC 8 /* no fixed H non-isotopic in the reconnected InChI layer */
697#define FLAG_SORT_PRINT_NO_IFIX_H_BAS 16 /* no fixed H isotopic in the main InChI layer */
698#define FLAG_SORT_PRINT_NO_IFIX_H_REC 32 /* no fixed H isotopic in the the reconnected InChI layer */
699#define FLAG_SORT_PRINT_ReChI_PREFIX 64 /* Output ReChI instead of InChI */
700
701 struct tagCANON_GLOBALS;
702
726 int OutputINChI1(struct tagCANON_GLOBALS *pCG,
727 INCHI_IOS_STRING *strbuf,
728 INCHI_SORT *pINChISortTautAndNonTaut2[][TAUT_NUM],
729 int iINChI,
730 ORIG_ATOM_DATA *orig_inp_data,
731 ORIG_STRUCT *pOrigStruct,
732 INPUT_PARMS *ip,
733 int bDisconnectedCoord,
734 int bOutputType,
735 int bINChIOutputOptions,
736 int num_components2[],
737 int num_non_taut2[],
738 int num_taut2[],
739 INCHI_IOSTREAM *out_file,
740 INCHI_IOSTREAM *log_file,
741 int num_input_struct,
742 int *pSortPrintINChIFlags,
743 unsigned char save_opt_bits);
744
745 int OutputINChI2(struct tagCANON_GLOBALS *pCG,
746 INCHI_IOS_STRING *strbuf,
747 INCHI_SORT *pINChISortTautAndNonTaut2[][TAUT_NUM],
748 int INCHI_basic_or_INCHI_reconnected,
749 ORIG_ATOM_DATA *orig_inp_data,
750 ORIG_STRUCT *pOrigStruct,
751 INPUT_PARMS *ip,
752 int bDisconnectedCoord,
753 int bOutputType,
754 int bINChIOutputOptions,
755 int num_components2[],
756 int num_non_taut2[],
757 int num_taut2[],
758 INCHI_IOSTREAM *out_file,
759 INCHI_IOSTREAM *log_file,
760 int num_input_struct,
761 int *pSortPrintINChIFlags,
762 unsigned char save_opt_bits);
763
777 INCHI_SORT *pINChISort[TAUT_NUM],
778 int *num_components,
779 ORIG_ATOM_DATA *orig_inp_data,
780 ORIG_ATOM_DATA *prep_inp_data,
781 COMP_ATOM_DATA composite_norm_data[TAUT_NUM + 1],
782 int bCompareComponents); /* djb-rwth: matching composite_norm_data bounds */
783
793 char *pErrorText,
794 int bError);
795
805 int GetInpStructErrorType(INPUT_PARMS *ip, int err, char *pStrErrStruct, int num_inp_atoms);
806
819 INCHI_IOSTREAM *log_file,
820 char *pStrErrStruct,
821 int nErrorType,
822 long num_inp,
823 INPUT_PARMS *ip);
824
832 int bNumHeterAtomHasIsotopicH(inp_ATOM *atom, int num_atoms);
833
834 // does this function exist?
835 int WriteToSDfile(const INP_ATOM_DATA *inp_at_data, INCHI_IOSTREAM *fcb, const char *name, const char *comment,
836 const char *szLabel, const char *szValue);
837
845 int bIsMetalSalt(inp_ATOM *at, int i);
846
856 int bIsSameBond(int a1, int a2, int b1, int b2);
857
858 extern const char gsMissing[];
859 extern const char gsEmpty[];
860 extern const char gsSpace[];
861 extern const char gsEqual[];
862
863#define SDF_LBL_VAL(L, V) ((L) && (L)[0]) ? gsSpace : gsEmpty, ((L) && (L)[0]) ? L : gsEmpty, ((L) && (L)[0]) ? (((V) && (V)[0]) ? gsEqual : gsSpace) : gsEmpty, ((V) && (V)[0]) ? V : ((L) && (L)[0]) ? gsMissing \
864 : gsEmpty
865
866 /* Handle integer matrix [mxn] */
875 int imat_new(int m, int n, int ***a);
876
883 void imat_free(int m, int **a);
884
885 /* Light-weight {nodes, connections} subgraph of molecule, subgraf
886 refers to parent structure via orig atom numbers stored internally
887 nodes and edges: are living in 0-based node numbers domain
888 atoms and bonds: are living in 1-based orig atom numbers domain
889 */
890
891 /* subgraf_edge is node connections element */
892 typedef struct subgraf_edge
893 {
894 int nbr; /* node neighbor */
895 int etype; /* edge type echoing corresponding bond type */
897 /* subgraf is set of nodes and their connections */
898 typedef struct subgraf
899 {
900 int nnodes; /* number of nodes (atoms) */
901 int *nodes; /* nodes[i] is 1-based orig atom number of node #i */
902 /* (i = 0 to nnodes) */
903 int *degrees; /* degrees of nodes */
904 int *orig2node; /* orig2node[k] is 0-based node number for orig #k */
905 subgraf_edge **adj; /* node connections representing adjacency relation */
906 /* adj[i] is vector[0-degree] of edges at node #i */
908 /* helper structure for finding paths in subgraf*/
909 typedef struct subgraf_pathfinder
910 {
911 subgraf *sg; /* base subgraf */
912 int start; /* start node of path, 0-based */
913 int end; /* end node of path */
914 int maxbonds; /* max number of bonds in path */
915 int nbonds; /* actual number of bonds in path */
916 int nseen; /* number of nodes of found path(s) */
917 int *seen; /* nodes of found path(s) */
919
928 subgraf *subgraf_new(ORIG_ATOM_DATA *orig_inp_data,
929 int nnodes,
930 int *nodes);
931
938 void subgraf_free(subgraf *sg);
945
956 ORIG_ATOM_DATA *orig_inp_data,
957 int start,
958 int end);
959
967
980 int nforbidden,
981 int *forbidden_orig,
982 int *nbonds, int **bonds,
983 int *natoms, int *atoms);
984
995 int nforbidden,
996 int *forbidden,
997 int *atnums);
998
999 void CompAtomData_GetNumMapping(COMP_ATOM_DATA *adata, int *orig_num, int *curr_num);
1000
1001#ifndef COMPILE_ALL_CPP
1002#ifdef __cplusplus
1003}
1004#endif
1005#endif
1006
1007#endif /* _STRUTIL_H_ */
INChI * PINChI2[TAUT_NUM]
Definition ichi.h:259
INChI_Aux * PINChI_Aux2[TAUT_NUM]
Definition ichi.h:302
#define NUM_ATOM_CHARGES
#define MAX_NUM_VALENCES
unsigned short AT_NUMB
Definition ichisize.h:45
signed short NUM_H
Definition ichisize.h:49
unsigned long INCHI_MODE
Definition ichisize.h:60
signed char S_CHAR
Definition inchi_api.h:113
#define TAUT_NUM
Definition mode.h:595
Definition strutil.h:893
int etype
Definition strutil.h:895
int nbr
Definition strutil.h:894
Definition strutil.h:910
int * seen
Definition strutil.h:917
int nseen
Definition strutil.h:916
int end
Definition strutil.h:913
subgraf * sg
Definition strutil.h:911
int start
Definition strutil.h:912
int nbonds
Definition strutil.h:915
int maxbonds
Definition strutil.h:914
Definition strutil.h:899
int * nodes
Definition strutil.h:901
int * degrees
Definition strutil.h:903
int * orig2node
Definition strutil.h:904
subgraf_edge ** adj
Definition strutil.h:905
int nnodes
Definition strutil.h:900
Definition ichicant.h:338
Structure describing composite atom data for InChI generation.
Definition inpdef.h:647
Definition strutil.h:96
int atomic_number
Definition strutil.h:97
char symbol[3]
Definition strutil.h:98
Definition ichitime.h:85
Definition ichi.h:267
Definition ichi.h:122
Definition ichi.h:209
Definition ichi.h:305
Definition strutil.h:414
int num_fixed_H2_more
Definition strutil.h:442
AT_NUMB sc_in2_only[ICR_MAX_SC_IN2_ONLY]
Definition strutil.h:446
int num_sb_in2_only
Definition strutil.h:452
AT_NUMB fixed_H_at1_more[ICR_MAX_DIFF_FIXED_H]
Definition strutil.h:436
int num_sc_in1_only
Definition strutil.h:445
int tot_num_H2
Definition strutil.h:418
AT_NUMB sc_undef_in2_only[ICR_MAX_SB_UNDF]
Definition strutil.h:461
AT_NUMB sb_undef_in1_only[ICR_MAX_SC_UNDF]
Definition strutil.h:454
int num_endp_in2_only
Definition strutil.h:430
int tot_num_H1
Definition strutil.h:417
S_CHAR fixed_H_nH2_more[ICR_MAX_DIFF_FIXED_H]
Definition strutil.h:441
int num_sc_in2_only
Definition strutil.h:447
int num_sb_undef_in2_only
Definition strutil.h:457
INCHI_MODE flags
Definition strutil.h:415
int num_sb_undef_in1_only
Definition strutil.h:455
int num_sb_in1_only
Definition strutil.h:450
AT_NUMB sb_undef_in2_only[ICR_MAX_SC_UNDF]
Definition strutil.h:456
AT_NUMB diff_pos_H_at[ICR_MAX_DIFF_FIXED_H]
Definition strutil.h:432
int num_diff_pos_H
Definition strutil.h:434
AT_NUMB sb_in2_only[ICR_MAX_SB_IN2_ONLY]
Definition strutil.h:451
int num_fixed_H1_more
Definition strutil.h:438
AT_NUMB sc_in1_only[ICR_MAX_SC_IN1_ONLY]
Definition strutil.h:444
int num_sc_undef_in2_only
Definition strutil.h:462
AT_NUMB fixed_H_at2_more[ICR_MAX_DIFF_FIXED_H]
Definition strutil.h:440
AT_NUMB endp_in1_only[ICR_MAX_ENDP_IN1_ONLY]
Definition strutil.h:426
AT_NUMB sb_in1_only[ICR_MAX_SB_IN1_ONLY]
Definition strutil.h:449
int num_taut_M2
Definition strutil.h:422
int num_endp_in1_only
Definition strutil.h:427
int num_taut_M1
Definition strutil.h:421
int num_sc_undef_in1_only
Definition strutil.h:460
AT_NUMB sc_undef_in1_only[ICR_MAX_SB_UNDF]
Definition strutil.h:459
AT_NUMB endp_in2_only[ICR_MAX_ENDP_IN2_ONLY]
Definition strutil.h:429
int num_taut_H1
Definition strutil.h:419
int num_taut_H2
Definition strutil.h:420
S_CHAR fixed_H_nH1_more[ICR_MAX_DIFF_FIXED_H]
Definition strutil.h:437
S_CHAR diff_pos_H_nH[ICR_MAX_DIFF_FIXED_H]
Definition strutil.h:433
Definition ichitime.h:69
Structure describing information about atoms for InChI generation.
Definition inpdef.h:553
Structure describing input atom data for InChI generation.
Definition inpdef.h:588
Structure describing an input atom.
Definition inpdef.h:142
Definition ichidrp.h:120
Definition strutil.h:74
int nType
Definition strutil.h:85
int nNormAtMass
Definition strutil.h:81
const char * szElName
Definition strutil.h:76
int nElNegPauling10
Definition strutil.h:87
double dAtMass
Definition strutil.h:83
int nAtMass
Definition strutil.h:79
S_CHAR cValence[NUM_ATOM_CHARGES][MAX_NUM_VALENCES]
Definition strutil.h:91
int bSkipAddingH
Definition strutil.h:90
Structure describing original atom data.
Definition inpdef.h:433
Structure describing the original structure.
Definition inpdef.h:478
Definition mode.h:1034
Definition mode.h:1020
Definition ichitaut.h:222
int OutputINChI2(struct tagCANON_GLOBALS *pCG, INCHI_IOS_STRING *strbuf, INCHI_SORT *pINChISortTautAndNonTaut2[][TAUT_NUM], int INCHI_basic_or_INCHI_reconnected, ORIG_ATOM_DATA *orig_inp_data, ORIG_STRUCT *pOrigStruct, INPUT_PARMS *ip, int bDisconnectedCoord, int bOutputType, int bINChIOutputOptions, int num_components2[], int num_non_taut2[], int num_taut2[], INCHI_IOSTREAM *out_file, INCHI_IOSTREAM *log_file, int num_input_struct, int *pSortPrintINChIFlags, unsigned char save_opt_bits)
Definition ichiprt1.c:959
#define ICR_MAX_SC_IN2_ONLY
Definition strutil.h:409
int imat_new(int m, int n, int ***a)
Allocate integer matrix.
Definition strutil.c:7874
struct tagInChICompareResults ICR
int CompINChITaut2(const void *p1, const void *p2)
Compare function for qsort (tautomeric structures)
Definition ichimake.c:2063
int GetInpStructErrorType(INPUT_PARMS *ip, int err, char *pStrErrStruct, int num_inp_atoms)
Get the input struct error type.
Definition ichimake.c:2479
const char gsMissing[]
Definition runichi.c:207
void updateNeighborListMolecularInorganics(inp_ATOM *at, int atom_idx, int neighbor_idx)
Definition strutil.c:6410
enum tagMarkDiff DIF_VALUES
int Free_INChI_Stereo(INChI_Stereo *pINChI_Stereo)
Free INChI_Stereo data structure.
Definition strutil.c:7489
struct tagElementsMolecularInorganics ElementsMolecularInorganics
tagDiffINChISegments
Definition strutil.h:612
@ DIFS_t_SATOMS
Definition strutil.h:619
@ DIFS_idf_LENGTH
Definition strutil.h:624
@ DIFS_m_SP3INV
Definition strutil.h:620
@ DIFS_h_H_ATOMS
Definition strutil.h:615
@ DIFS_f_FORMULA
Definition strutil.h:613
@ DIFS_q_CHARGE
Definition strutil.h:616
@ DIFS_p_PROTONS
Definition strutil.h:617
@ DIFS_b_SBONDS
Definition strutil.h:618
@ DIFS_o_TRANSP
Definition strutil.h:623
@ DIFS_i_IATOMS
Definition strutil.h:622
@ DIFS_s_STYPE
Definition strutil.h:621
@ DIFS_LENGTH
Definition strutil.h:626
@ DIFS_c_CONNECT
Definition strutil.h:614
enum tagDiffINChISegments DIF_SEGMENTS
int shouldBondBeCut(int atom1, int atom2)
Definition strutil.c:6388
int Free_INChI_Aux(INChI_Aux **ppINChI_Aux)
Free INChI_Aux data structure.
Definition strutil.c:7716
void imat_free(int m, int **a)
Free integer matrix.
Definition strutil.c:7905
int Eql_INChI_Isotopic(INChI *i1, INChI *i2)
Compares isotopic information of two InChIs.
Definition ichiprt2.c:203
int get_canonical_atom_number(const INChI_Aux *aux, int orig_atom_num)
Get the canonical atom number object.
Definition strutil.c:6971
int subgraf_pathfinder_collect_all(subgraf_pathfinder *spf, int nforbidden, int *forbidden, int *atnums)
Collects atom numbers along path.
Definition strutil.c:8284
int FillOutInfAtom(struct tagCANON_GLOBALS *pCG, inp_ATOM *norm_at, INF_ATOM_DATA *inf_norm_at_data, int init_num_at, int num_removed_H, int bAdd_DT_to_num_H, int nNumRemovedProtons, NUM_H *nNumRemovedProtonsIsotopic, int bIsotopic, INChI *pINChI, INChI_Aux *pINChI_Aux, int bAbcNumbers, INCHI_MODE nMode)
Fill out.
subgraf * subgraf_new(ORIG_ATOM_DATA *orig_inp_data, int nnodes, int *nodes)
Create graph from atom data.
Definition strutil.c:7931
#define ICR_MAX_SC_IN1_ONLY
Definition strutil.h:408
const char * CompareReversedInchiMsg(int code)
int Free_INChI(INChI **ppINChI)
Free INChI data structure.
Definition strutil.c:7551
int CompINChI2(const INCHI_SORT *p1, const INCHI_SORT *p2, int bTaut, int bCompareIsotopic)
Compares two INChI data structures (qsort)
Definition ichimake.c:1711
enum tagINChISegmAction INCHI_SEGM_ACTION
int set_EnhancedStereo_t_m_layers(const ORIG_ATOM_DATA *orig_inp_data, const INChI *inchi, const INChI_Aux *aux)
Set the enhanced stereochemistry for t- and m-layers.
Definition strutil.c:7113
#define ICR_MAX_SB_UNDF
Definition strutil.h:410
int ProcessStructError(INCHI_IOSTREAM *out_file, INCHI_IOSTREAM *log_file, char *pStrErrStruct, int nErrorType, long num_inp, INPUT_PARMS *ip)
Definition ichimake.c:2510
INCHI_MODE CompareReversedINChI2(INChI *i1, INChI *i2, INChI_Aux *a1, INChI_Aux *a2, ICR *picr, int *err)
Compares two InChIs (2)
Definition ichimake.c:3261
tagMarkDiff
Definition strutil.h:640
@ DIFV_OUTPUT_OMIT_F
Definition strutil.h:653
@ DIFV_OUTPUT_FILL_T
Definition strutil.h:655
@ DIFV_NEQ2PRECED
Definition strutil.h:643
@ DIFV_OUTPUT_EMPTY_T
Definition strutil.h:650
@ DIFV_BOTH_EMPTY
Definition strutil.h:641
@ DIFV_EQL2PRECED
Definition strutil.h:642
@ DIFV_OUTPUT_EMPTY_F
Definition strutil.h:651
@ DIFV_FI_EQ_MI
Definition strutil.h:645
@ DIFV_IS_EMPTY
Definition strutil.h:644
void subgraf_free(subgraf *sg)
Free graph data structure.
Definition strutil.c:8021
#define ICR_MAX_ENDP_IN1_ONLY
Definition strutil.h:403
#define ICR_MAX_SB_IN2_ONLY
Definition strutil.h:407
void subgraf_pathfinder_run(subgraf_pathfinder *spf, int nforbidden, int *forbidden_orig, int *nbonds, int **bonds, int *natoms, int *atoms)
Find path(s) from subgraf node spf->start to spf->end and fill bonds[nbonds] and atoms[natoms]....
Definition strutil.c:8137
const char gsEmpty[]
Definition runichi.c:208
int bHasEquString(AT_NUMB *LinearCT, int nLenCT)
Checks if a given array of equivalence numbers (LinearCT) contains any repetitions.
Definition ichiprt2.c:398
int CompareReversedINChI(INChI *i1, INChI *i2, INChI_Aux *a1, INChI_Aux *a2)
Compares two InChIs (1)
Definition ichimake.c:2935
int MolecularInorganicsIsMetalToDisconnect(inp_ATOM *at, int atom_idx)
Definition strutil.c:6208
int INChI_SegmentAction(char cDifSegs)
Action to take per segment (?)
Definition ichimake.c:1485
int bIsSameBond(int a1, int a2, int b1, int b2)
Check if two bonds are the same.
Definition runichi2.c:1293
int Eql_INChI_Aux_Num(INChI_Aux *a1, int eql1, INChI_Aux *a2, int eql2)
Compares two InChI AuxInfo objects in terms of numbering.
Definition ichiprt2.c:305
int Create_INChI(struct tagCANON_GLOBALS *pCG, struct tagINCHI_CLOCK *ic, INPUT_PARMS *ip, INChI **ppINChI, INChI_Aux **ppINChI_Aux, ORIG_ATOM_DATA *orig_inp_data, inp_ATOM *inp_at, INP_ATOM_DATA *inp_norm_data[2], int num_inp_at, INCHI_MODE nUserMode, INCHI_MODE *pbTautFlags, INCHI_MODE *pbTautFlagsDone, struct tagInchiTime *ulMaxTime, struct tagTautomerGroupsInfo *ti_out, char *pStrErrStruct)
Create INChI.
Definition ichimake.c:3706
subgraf_pathfinder * subgraf_pathfinder_new(subgraf *sg, ORIG_ATOM_DATA *orig_inp_data, int start, int end)
Allocate new graph pathfinder data structure.
Definition strutil.c:8086
void CompAtomData_GetNumMapping(COMP_ATOM_DATA *adata, int *orig_num, int *curr_num)
Definition strutil.c:7856
void subgraf_debug_trace(subgraf *sg)
Debug graph data structure.
Definition strutil.c:8058
#define ICR_MAX_DIFF_FIXED_H
Definition strutil.h:405
int MolecularInorganicsPreprocessing(ORIG_ATOM_DATA *orig_at_data, INPUT_PARMS *ip)
Definition strutil.c:6445
int CompINChITautVsNonTaut(const INCHI_SORT *p1, const INCHI_SORT *p2, int bCompareIsotopic)
Compare tautomeric vs non-tautomeric information.
Definition ichimake.c:341
int MarkUnusedAndEmptyLayers(char sDifSegs[][DIFS_LENGTH])
Mark unused and empty layers.
Definition ichimake.c:1524
int bIsMetalSalt(inp_ATOM *at, int i)
Check if atom is a metal salt.
Definition strutil.c:2525
int bNumHeterAtomHasIsotopicH(inp_ATOM *atom, int num_atoms)
Check if hetero atoms has isotopic hydrogens.
Definition strutil.c:6827
int CompINChILayers(const INCHI_SORT *p1, const INCHI_SORT *p2, char sDifSegs[][DIFS_LENGTH], int bFixTranspChargeBug)
Compare InChI layers.
Definition ichimake.c:644
int invert_parities(const INChI *inchi, const INChI_Aux *aux, int **list_atoms, int nof_lists, int is_absolute)
Invert the parities for enhanced stereochemistry t- and m-layers.
Definition strutil.c:7028
const char gsEqual[]
Definition runichi.c:210
enum tagInchiDiffBits IDIF
INChI_Aux * Alloc_INChI_Aux(int num_at, int num_isotopic_atoms, int nAllocMode, int bOrigData)
Allocate AuxInfo data structure.
Definition strutil.c:7756
int getElTypeforMolecularInorganics(int nPeriodicNum)
Definition strutil.c:6198
enum tagDiffINChILayers DIF_LAYERS
int ExtractConnectedComponent(inp_ATOM *at, int num_at, int component_number, inp_ATOM *component_at)
Extract one (connected) component.
Definition strutil.c:7438
int SaveEquComponentsInfoAndSortOrder(int iINChI, INCHI_SORT *pINChISort[TAUT_NUM], int *num_components, ORIG_ATOM_DATA *orig_inp_data, ORIG_ATOM_DATA *prep_inp_data, COMP_ATOM_DATA composite_norm_data[TAUT_NUM+1], int bCompareComponents)
Save equivalent components information and sort order (not used ?)
#define ICR_MAX_ENDP_IN2_ONLY
Definition strutil.h:404
tagDiffINChILayers
Definition strutil.h:630
@ DIFL_LENGTH
Definition strutil.h:635
@ DIFL_FI
Definition strutil.h:634
@ DIFL_M
Definition strutil.h:631
@ DIFL_MI
Definition strutil.h:632
@ DIFL_F
Definition strutil.h:633
INChI * Alloc_INChI(inp_ATOM *at, int num_at, int *found_num_bonds, int *found_num_isotopic, int nAllocMode)
Allocate INChI data structure.
Definition strutil.c:7596
tagINChISegmAction
Definition strutil.h:659
@ INCHI_SEGM_OMIT
Definition strutil.h:660
@ INCHI_SEGM_FILL
Definition strutil.h:661
@ INCHI_SEGM_EMPTY
Definition strutil.h:662
struct tagMolecularInorganicsArray MolecularInorganicsElData
int SetConnectedComponentNumber(inp_ATOM *at, int num_at, int component_number)
Set the Connected Component Number object.
Definition strutil.c:7477
const char gsSpace[]
Definition runichi.c:209
int CompareIcr(ICR *picr1, ICR *picr2, INCHI_MODE *pin1, INCHI_MODE *pin2, INCHI_MODE mask)
Compares results from InChI comparison.
Definition ichimake.c:3188
int Eql_INChI_Aux_Equ(INChI_Aux *a1, int eql1, INChI_Aux *a2, int eql2)
Compares two InChI AuxInfo objects.
Definition ichiprt2.c:227
int FillOutCompositeCanonInfAtom(struct tagCANON_GLOBALS *pCG, COMP_ATOM_DATA *composite_norm_data, INF_ATOM_DATA *inf_norm_at_data, int bIsotopic, int bTautomeric, PINChI2 *pINChI2, PINChI_Aux2 *pINChI_Aux2, int bAbcNumbers, INCHI_MODE nMode)
Fill out composite canonical info atom data structure.
#define ICR_MAX_SC_UNDF
Definition strutil.h:411
int OutputINChIPlainError(INCHI_IOSTREAM *out_file, char *pErrorText, int bError)
Print error message (plain text)
Definition ichiprt1.c:509
int get_parity_idx_from_canonical_atom_number(int canon_atom_num, const AT_NUMB *nNumber, int nof_atoms)
Get the parity index from canonical atom number.
Definition strutil.c:6998
void subgraf_pathfinder_free(subgraf_pathfinder *spf)
Frees subgraph pathfinder data structure.
Definition strutil.c:8117
tagInchiDiffBits
Definition strutil.h:348
@ IDIF_SC_EXTRA_UNDF
Definition strutil.h:379
@ IDIF_MULTIPLE_TG
Definition strutil.h:364
@ IDIF_CON_TBL
Definition strutil.h:354
@ IDIF_REM_ISO_H
Definition strutil.h:376
@ IDIF_SB_MISS_UNDF
Definition strutil.h:386
@ IDIF_NUM_ISO_AT
Definition strutil.h:372
@ IDIF_REM_PROT
Definition strutil.h:375
@ IDIF_POSITION_H
Definition strutil.h:355
@ IDIF_SB_MISS
Definition strutil.h:387
@ IDIF_MISS_TG_ENDP
Definition strutil.h:369
@ IDIF_TG
Definition strutil.h:371
@ IDIF_SC_INV
Definition strutil.h:377
@ IDIF_SC_PARITY
Definition strutil.h:378
@ IDIF_SINGLE_TG
Definition strutil.h:363
@ IDIF_SB_EXTRA
Definition strutil.h:385
@ IDIF_MORE_FH
Definition strutil.h:356
@ IDIF_NUM_EL
Definition strutil.h:352
@ IDIF_ISO_AT
Definition strutil.h:373
@ IDIF_NUM_AT
Definition strutil.h:350
@ IDIF_CON_LEN
Definition strutil.h:353
@ IDIF_EXTRA_TG_ENDP
Definition strutil.h:368
@ IDIF_SB_EXTRA_UNDF
Definition strutil.h:384
@ IDIF_LESS_H
Definition strutil.h:359
@ IDIF_ATOMS
Definition strutil.h:351
@ IDIF_DIFF_TG_ENDP
Definition strutil.h:370
@ IDIF_SC_MISS
Definition strutil.h:382
@ IDIF_CHARGE
Definition strutil.h:374
@ IDIF_SC_EXTRA
Definition strutil.h:380
@ IDIF_LESS_FH
Definition strutil.h:357
@ IDIF_PROBLEM
Definition strutil.h:349
@ IDIF_NO_TAUT
Definition strutil.h:361
@ IDIF_WRONG_TAUT
Definition strutil.h:362
@ IDIF_SB_PARITY
Definition strutil.h:383
@ IDIF_NUM_TG
Definition strutil.h:365
@ IDIF_MORE_H
Definition strutil.h:358
@ IDIF_SC_MISS_UNDF
Definition strutil.h:381
int getElValenceforMolecularInorganics(int nPeriodicNum, int charge, int val_num)
Definition strutil.c:6184
int WriteToSDfile(const INP_ATOM_DATA *inp_at_data, INCHI_IOSTREAM *fcb, const char *name, const char *comment, const char *szLabel, const char *szValue)
int OutputINChI1(struct tagCANON_GLOBALS *pCG, INCHI_IOS_STRING *strbuf, INCHI_SORT *pINChISortTautAndNonTaut2[][TAUT_NUM], int iINChI, ORIG_ATOM_DATA *orig_inp_data, ORIG_STRUCT *pOrigStruct, INPUT_PARMS *ip, int bDisconnectedCoord, int bOutputType, int bINChIOutputOptions, int num_components2[], int num_non_taut2[], int num_taut2[], INCHI_IOSTREAM *out_file, INCHI_IOSTREAM *log_file, int num_input_struct, int *pSortPrintINChIFlags, unsigned char save_opt_bits)
Main actual worker which serializes InChI to string (called from OutputINChI2( ......
Definition ichiprt1.c:1051
int CompINChINonTaut2(const void *p1, const void *p2)
Compare function for qsort (normal structure)
Definition ichimake.c:2041
int Free_INChI_Members(INChI *pINChI)
Free INChI members.
Definition strutil.c:7573
#define ICR_MAX_SB_IN1_ONLY
Definition strutil.h:406
char * AllocateAndFillHillFormula(INChI *pINChI)
Allocate and fill hill formula.
Definition ichimak2.c:402
int Eql_INChI_Stereo(INChI_Stereo *s1, int eql1, INChI_Stereo *s2, int eql2, int bRelRac)
Compares stereo information of two structures.
Definition ichiprt2.c:54