Skip to content

Commit

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

#include <math.h>

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

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

}

0 comments on commit be4fdad

Please sign in to comment.