forked from diffblue/cbmc
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes the declaration in builtin_headers.h. Type checking actually ignored this declaration and would always generate the expression of the correct type.
- Loading branch information
1 parent
fdc7ba5
commit d984199
Showing
5 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
#include <assert.h> | ||
#include <stdlib.h> | ||
|
||
#include <limits.h> | ||
|
||
#ifndef __GNUC__ | ||
long long __builtin_llabs(long long); | ||
#endif | ||
|
||
int main() | ||
{ | ||
__builtin_llabs(); | ||
assert(0); | ||
assert(__builtin_llabs(LLONG_MIN + 1) == LLONG_MAX); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#include <assert.h> | ||
#include <stdlib.h> | ||
|
||
#include <limits.h> | ||
|
||
int main() | ||
{ | ||
llabs(); | ||
assert(0); | ||
assert(llabs(LLONG_MIN + 1) == LLONG_MAX); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters