-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array copy set prep #1515
Merged
Merged
Array copy set prep #1515
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
d5d1c68
Use correct llvm mem in matchArg.
andreistefanescu 6e5e014
Change SMT solver for symbolic execution to Z3. Add timeout.
andreistefanescu b12e9e6
Translate a SAWCore constant to a What4 constant in mkUninterpretedSA…
andreistefanescu 48872d2
Add option for SAWCore to What4 translation for Crucible symbolic exe…
andreistefanescu e6c168d
Refactor SAWScript.Crucible.LLVM.X86.
andreistefanescu 9e1cb40
Add llvm_alloc_sym_init SAW command.
andreistefanescu 42899bb
Match arrays at non-zero offsets.
andreistefanescu 349d001
Fix typo.
andreistefanescu 7fbf5dd
Add W4EvalTactic newtype.
andreistefanescu 16ab2b0
Add LLVMAllocSpecInit datatype.
andreistefanescu 83580ed
Add set_crucible_timeout command.
andreistefanescu 8041408
Edit changelog.
andreistefanescu 2c05dbc
Merge branch 'master' into array-copy-set-prep
andreistefanescu 31321c2
Set crucible timeout in saw-remote-api.
andreistefanescu ddbba7b
Merge branch 'master' into array-copy-set-prep
andreistefanescu 4cd4aa3
Handle llvm_alloc_sym_init in LLVM X86.
andreistefanescu b41fa9e
Add disable_alloc_sym_init_check command.
andreistefanescu eb83fb1
Improve documentation.
andreistefanescu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,19 @@ | ||
#include <stdlib.h> | ||
|
||
int f(int *x) | ||
{ | ||
return *x; | ||
} | ||
|
||
int test_f_calloc() | ||
{ | ||
int *x = (int *) calloc(1, sizeof(int)); | ||
return f(x); | ||
} | ||
|
||
int test_f_malloc() | ||
{ | ||
int *x = (int *) malloc(sizeof(int)); | ||
return f(x); | ||
} | ||
|
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,25 @@ | ||
enable_experimental; | ||
|
||
m <- llvm_load_module "test.bc"; | ||
|
||
let f_spec = do { | ||
x_ptr <- llvm_alloc_sym_init (llvm_int 32); | ||
llvm_execute_func [x_ptr]; | ||
x <- llvm_fresh_var "x" (llvm_int 32); | ||
llvm_return (llvm_term x); | ||
}; | ||
|
||
let test_spec = do { | ||
llvm_execute_func []; | ||
x <- llvm_fresh_var "x" (llvm_int 32); | ||
llvm_return (llvm_term x); | ||
}; | ||
|
||
f_ov <- llvm_verify m "f" [] false f_spec trivial; | ||
llvm_verify m "test_f_calloc" [f_ov] false test_spec trivial; | ||
fails (llvm_verify m "test_f_malloc" [f_ov] false test_spec trivial); | ||
disable_alloc_sym_init_check; | ||
llvm_verify m "test_f_malloc" [f_ov] false test_spec trivial; | ||
enable_alloc_sym_init_check; | ||
fails (llvm_verify m "test_f_malloc" [f_ov] false test_spec trivial); | ||
|
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's open ticket about plumbing this new option through the RPC server.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For what it's worth, it's fairly easy to add support for toggling options like this in
saw-remote-api
. You basically just add a new constructor here, and then update the code insetOption
,parseOption
, andinstance Doc.DescribedMethod SetOptionParams OK
accordingly.