-
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.
Merge pull request #1695 from GaloisInc/T1691
Fix #1691 by bringing in GaloisInc/crucible#1004
- Loading branch information
Showing
8 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
Submodule llvm-pretty
updated
from 34c95e to 64d43d
Submodule llvm-pretty-bc-parser
updated
5 files
+4 −0 | disasm-test/tests/atomicrmw.ll | |
+40 −0 | disasm-test/tests/callbr.ll | |
+4 −13 | doc/developing.md | |
+1 −1 | llvm-pretty | |
+108 −44 | src/Data/LLVM/BitCode/IR/Function.hs |
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,11 @@ | ||
CC = clang | ||
CFLAGS = -g -emit-llvm -frecord-command-line -O0 | ||
|
||
all: test.bc | ||
|
||
test.bc: test.c | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -f test.bc |
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,8 @@ | ||
struct s { | ||
unsigned x:1; | ||
unsigned y:1; | ||
}; | ||
|
||
int f(const struct s *ss) { | ||
return ss->x == ss->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,17 @@ | ||
enable_experimental; | ||
enable_lax_loads_and_stores; | ||
|
||
let f_spec = do { | ||
ss <- llvm_alloc_readonly (llvm_alias "struct.s"); | ||
x <- llvm_fresh_var "x" (llvm_int 1); | ||
y <- llvm_fresh_var "y" (llvm_int 1); | ||
llvm_points_to_bitfield ss "x" (llvm_term x); | ||
llvm_points_to_bitfield ss "y" (llvm_term y); | ||
|
||
llvm_execute_func [ss]; | ||
|
||
llvm_return (llvm_term {{ if x == y then 1 else 0 : [32] }}); | ||
}; | ||
|
||
m <- llvm_load_module "test.bc"; | ||
ov <- llvm_verify m "f" [] false f_spec (w4_unint_yices []); |
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 |