Open
Conversation
…sed by assertions in Release mode for some compilers
yuleisui
reviewed
Nov 11, 2022
| if (Bits[i] != 0) | ||
| return i * BITWORD_SIZE + countTrailingZeros(Bits[i]); | ||
| assert(false && "SBV: find_first: SBV cannot be empty"); | ||
| return -1; // Unreachable. Make the compiler happy |
| countLeadingZeros(Bits[Idx]) - 1; | ||
| } | ||
| assert(false && "SBV: find_last: SBV cannot be empty"); | ||
| return -1; // Unreachable. Make the compiler happy |
| (void) node; // Make compiler happy | ||
| if (!SVFModule::pagReadFromTXT()) | ||
| { | ||
| assert(!SVFUtil::isa<DummyValVar>(node) && "a dummy node??"); |
| assert(added && "not added??"); | ||
| if (!AddrCGEdgeSet.insert(edge).second) | ||
| { | ||
| assert(!"new AddrCGEdge not added??"); |
| bool added = directEdgeSet.insert(edge).second; | ||
| assert(added && "not added??"); | ||
| if (!directEdgeSet.insert(edge).second) { | ||
| assert(!"new CopyCGEdge not added??"); |
| assert(added && "not added??"); | ||
| if (!directEdgeSet.insert(edge).second) | ||
| { | ||
| assert(!"new NormalGepCGEdge not added??"); |
| assert(added && "not added??"); | ||
| if (!directEdgeSet.insert(edge).second) | ||
| { | ||
| assert(!"new VariantGepCGEdge not added??"); |
| assert(added && "not added??"); | ||
| if (!LoadCGEdgeSet.insert(edge).second) | ||
| { | ||
| assert(!"new LoadCGEdge not added??"); |
| assert(added && "not added??"); | ||
| if (!StoreCGEdgeSet.insert(edge).second) | ||
| { | ||
| assert(!"new StoreCGEdge not added??"); |
| checkIntraEdgeParents(srcNode, dstNode); | ||
| if(ICFGEdge* edge = hasIntraICFGEdge(srcNode,dstNode, ICFGEdge::IntraCF)) | ||
| ICFGEdge* edge = hasIntraICFGEdge(srcNode, dstNode, ICFGEdge::IntraCF); | ||
| if (edge != nullptr) |
Collaborator
There was a problem hiding this comment.
see above and all below code needs to be revised and remove if
Contributor
Author
|
updated accordingly. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #901 +/- ##
==========================================
- Coverage 63.62% 63.57% -0.05%
==========================================
Files 219 219
Lines 22026 20142 -1884
==========================================
- Hits 14014 12806 -1208
+ Misses 8012 7336 -676
|
Contributor
Collaborator
|
The current repo should be able to work on top of llvm-15. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes: