Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wiswesser #2591

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

Wiswesser #2591

wants to merge 20 commits into from

Conversation

Mblakey
Copy link
Contributor

@Mblakey Mblakey commented May 10, 2023

Apologies! learning how SWIG works so i've refactored this commit, i've also updated the test to be stricter on the SMILES
ordering.

valgrind test - no leaks

Wiswesser Reader Release Notes

The following are sections from Elbert G. Smiths rule book that were used to create
the wln reader. Note that not all chapters are listed here, only the ones where compound
types were introduced

Rules fully supported

  • Unbranched and Branched Chains
  • Systematic Contractions
  • Organic Salts
  • Benzene Derivatives
  • Multisubstituted Benzene Rings
  • Benzene Rings in Branching Chains
  • Monocyclic Rings
  • Bicyclic Rings
  • Polycyclic Rings
  • Perifused Rings
  • Chains of Rings other than Benzene
  • Sprio Rings
  • Bicyclic Bridged Rings
  • Rings with Pseudo Bridges
  • Ring Structures with Crossed Bonds and Unbranched Bridges
  • Rings of Rings Contraction
  • Metallocenes and Catanenes
  • Chelete Compounds
  • Ionic Charges, Free Radicals and Isotopes

Rules unsupported

  • Multipliers
  • Ring Contractions and Multipliers
  • All Special Problems Rules

WLNSymbol *prev = head;
for(unsigned int i=0;i<size-1;i++){
WLNSymbol* carbon = AllocateWLNSymbol('1',graph);
carbon->set_edge_and_type(4); // allows hydrogen resolve
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

16% of developers fix this issue

NULL_DEREFERENCE: pointer carbon last assigned on line 1293 could be null and is dereferenced at line 1294, column 5.

❗❗ 7 similar findings have been found in this PR

🔎 Expand here to view all instances of this finding
File Path Line Number
src/formats/wlnread.cpp 379
src/formats/wlnread.cpp 1587
src/formats/wlnread.cpp 1262
src/formats/wlnread.cpp 2954
src/formats/wlnread.cpp 1266
src/formats/wlnread.cpp 1316
src/formats/wlnread.cpp 1310

Visit the Lift Web Console to find more details in your report.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant