Closed Geoffrey1014 closed 1 year ago
https://godbolt.org/z/13qs345fY
<source>:9:7
should not be reported warning: FALSE
, but only warning: UNKNOWN
.
Output:
<source>: In function 'b':
<source>:8:7: warning: implicit declaration of function '__analyzer_eval' [-Wimplicit-function-declaration]
8 | __analyzer_eval((a() <= 0)==true);
| ^~~~~~~~~~~~~~~
<source>:8:7: warning: UNKNOWN
8 | __analyzer_eval((a() <= 0)==true);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<source>:9:7: warning: FALSE
9 | __analyzer_eval((((a())>=(0))&&((a())!=(0)))==false);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<source>:9:7: warning: UNKNOWN
Compiler returned: 0
called_unknown_fn
date: 2023-1-10 commit: 8c8ca873216387bc26046615c806b96f0345ff9d args: -O0 -fanalyzer test:
report: fix: original: