-
Notifications
You must be signed in to change notification settings - Fork 273
Replace assert(...) by macros from invariant.h [blocks: #6749] #6754
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
Replace assert(...) by macros from invariant.h [blocks: #6749] #6754
Conversation
Codecov ReportBase: 78.38% // Head: 78.38% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #6754 +/- ##
========================================
Coverage 78.38% 78.38%
========================================
Files 1647 1647
Lines 190343 190334 -9
========================================
+ Hits 149196 149201 +5
+ Misses 41147 41133 -14
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
ef2f2de
to
e32eb8c
Compare
e32eb8c
to
1cc7fc1
Compare
1cc7fc1
to
800e30b
Compare
800e30b
to
c2c62d1
Compare
c2c62d1
to
8fde4ca
Compare
8fde4ca
to
d09ef2e
Compare
@@ -221,9 +221,9 @@ static void make_subtype(typet &dest, typet &src) | |||
break; | |||
} | |||
else if(p->is_nil()) | |||
assert(false); | |||
UNREACHABLE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A rare annotation but seems right in this case!
d09ef2e
to
4f30f4d
Compare
4f30f4d
to
cd49345
Compare
cd49345
to
fb0dd57
Compare
c8f5829
to
33eb2cc
Compare
33eb2cc
to
8934bb1
Compare
While new/modified code shouldn't use assert(...) anyway, we had several existing uses of assert. Once we remove nonstd/optional.h, we will no longer implicitly include cassert, implying that a lot of #include <cassert> changes will be necessary. Instead of adding these, go all the way and fix the undesired uses of assert.
8934bb1
to
f901919
Compare
While new/modified code shouldn't use assert(...) anyway, we had several
existing uses of assert. Once we remove nonstd/optional.h, we will no
longer implicitly include cassert, implying that a lot of #include
changes will be necessary. Instead of adding these, go all the
way and fix the undesired uses of assert.