treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / tools / testing / selftests / rcutorture / formal / srcu-cbmc / src / assume.h
blob570a49d9da7e2bbd6237bc80d3ee758f02aacb53
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef ASSUME_H
3 #define ASSUME_H
5 /* Provide an assumption macro that can be disabled for gcc. */
6 #ifdef RUN
7 #define assume(x) \
8 do { \
9 /* Evaluate x to suppress warnings. */ \
10 (void) (x); \
11 } while (0)
13 #else
14 #define assume(x) __CPROVER_assume(x)
15 #endif
17 #endif