Skip to content

Commit

Permalink
Add test for general abs refinement
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Nov 28, 2023
1 parent 1730aa7 commit cdf0dee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/regression/39-signed-overflows/06-abs.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ int main() {
__goblint_check(-100 <= data);
int result = data * data; //NOWARN
}

if(abs(data) - 1 <= 99)
{
__goblint_check(data <= 100);
__goblint_check(-100 <= data);
int result = data * data; //NOWARN
}
}
return 8;
}

0 comments on commit cdf0dee

Please sign in to comment.