Closed podhrmic closed 6 days ago
Do you also get the error with cerberus
? Can would provide a translation unit causing the issue?
Looks like #include <stdlib.h>
triggers this error in CN. # cerberus -I src/include --include=src/include/wars.h src/common.c
returns 0.
Here is the source file triggering the error: https://github.com/GaloisInc/VERSE-OpenSUT/blob/main/components/mission_protection_system/src/common.c#L19
the issue comes from the following definition in wars.h
:
#define double unsigned long long
which doesn't work for occurences of long double
.
Btw, macro define named like a keyword are UB when they precede the include of a standard header (C11 §7.1.2#4).
CN throws this error referring to its own header file: