Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void convertMatchesToGlobalAlignment(....)
- {
- ....
- TContigPos rBegin = _min((*j).beginPos, (*j).endPos);
- TContigPos rEnd = _max((*j).beginPos, (*j).endPos);
- if (rBegin < insPos && insPos < rEnd)
- {
- if (rBegin < insPos)
- {
- TReadGaps gaps(....);
- insertGap(gaps, insPos - rBegin);
- } else
- {
- if ((*j).beginPos < (*j).endPos)
- ++(*j).beginPos;
- else
- ++(*j).endPos;
- }
- ....
- }
- This suspicious code was found in SeqAn project by PVS-Studio static code analyzer.
- Warning message is:
- V571 Recurring check. The 'rBegin < insPos' condition was already verified in line 2073. store_all.h 2079
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement