add coverity model for CHECK operation

This commit is contained in:
Valient Gough 2016-09-08 13:12:43 +02:00
parent 6f26a49e0e
commit 84073f7d90
No known key found for this signature in database
GPG Key ID: B515DCEB95967051

12
model/logging.c Normal file
View File

@ -0,0 +1,12 @@
void CHECK(bool cond) {
if (!cond) {
__coverity_panic__();
}
}
void CHECK_EQ(int l, int r) {
if (l != r) {
__coverity_panic__();
}
}