-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check bitvector types in
crucible_llvm_extract
(#567)
Because `crucible-llvm` merges integer and pointer types, it is not sufficient to look at Crucible types to determine whether a CFG coming from LLVM takes pointer arguments or returns a pointer. Instead, we have to look at the original LLVM types. This commit does that, and produces an error if `crucible_llvm_extract` is used with a function that has poiinter types anywhere in its signature. Fixes #521.
- Loading branch information
Aaron Tomb
authored
Oct 17, 2019
1 parent
f3badd0
commit 6adf6f1
Showing
5 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
unsigned int add(unsigned int *x, unsigned int *y) { | ||
return *x + *y; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
m <- llvm_load_module "ptr.bc"; | ||
fails (crucible_llvm_extract m "add"); |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
set -e | ||
|
||
$SAW test.saw |
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