Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
stilscher committed Nov 23, 2023
1 parent a7265c8 commit fde7d4d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/regression/39-signed-overflows/11-cos-noninf-nonnan.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// PARAM: --enable ana.int.interval --enable ana.float.interval --set ana.activated[+] tmpSpecial --html

#include <math.h>

int main() /* check_lower_bound */
{
float x;

if(!(!__builtin_isnan (x) && !__builtin_isinf_sign (x))) abort();
float y = cosf(x);
if(!(__builtin_isgreaterequal(y, -1.0f)))
__goblint_check(0); // NOWARN (unreachable)
return 0;

}

0 comments on commit fde7d4d

Please sign in to comment.