Skip to content
This repository has been archived by the owner on Oct 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1186 from avritichauhan/master
Browse files Browse the repository at this point in the history
Fixes for Integer Overflows
  • Loading branch information
dbeyer authored Oct 27, 2020
2 parents b7fe5c3 + b918f8f commit e4b333f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c/array-cav19/array_tiling_poly6.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ int main()
{
int S=__VERIFIER_nondet_int();
assume_abort_if_not(S>1);
int i;
int a[S];
long long i;
long long a[S];

for(i=0;i<S;i++)
a[i]=((i-1)*(i+1));
Expand Down
1 change: 1 addition & 0 deletions c/array-cav19/array_tiling_tcpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ int main()
{
int S=__VERIFIER_nondet_int();
assume_abort_if_not(S>1);
assume_abort_if_not(S < 1073741823);
int i;
int a[2*S];
int acopy[2*S];
Expand Down

0 comments on commit e4b333f

Please sign in to comment.