ESBMC
Efficient SMT-based Context-Bounded Model Checker
Loading...
Searching...
No Matches
stdbool.h
Go to the documentation of this file.
1#ifndef __ESBMC_HEADERS_STDBOOL_H_
2#define __ESBMC_HEADERS_STDBOOL_H_
3
4#ifndef __cplusplus
5/* C11 7.18 requires bool to expand to _Bool. Typedef'ing it to int skipped the
6 * conversion to 0 or 1 of C11 6.3.1.2, so `(bool)2 == true` was false. C23
7 * makes the three names predefined, so the header must not redefine them. */
8#if !defined(__STDC_VERSION__) || __STDC_VERSION__ <= 201710L
9#define bool _Bool
10#define false 0
11#define true 1
12#endif
13#endif
14
15#define __bool_true_false_are_defined 1
16
17#endif /* __ESBMC_HEADERS_STDBOOL_H_ */