diff options
| author | Dan Liew <delcypher@gmail.com> | 2014-02-14 18:49:42 +0000 |
|---|---|---|
| committer | Dan Liew <delcypher@gmail.com> | 2014-02-14 18:49:42 +0000 |
| commit | 66c064d482160e6c31ccf8ecb0aa93a7529d3da1 (patch) | |
| tree | 1ed4ba4cc639b178f16d8a56bd75799d5033904e /test/Solver/overshift-left-by-constant.kquery | |
| parent | d2f1684355e9a99545aa864e3eac81b259712a6f (diff) | |
| parent | 6e4e74b99a199ead458b0b919286d667bd8e8f28 (diff) | |
| download | klee-66c064d482160e6c31ccf8ecb0aa93a7529d3da1.tar.gz | |
Merge pull request #64 from delcypher/overshift-fix
Overshift fixes
Diffstat (limited to 'test/Solver/overshift-left-by-constant.kquery')
| -rw-r--r-- | test/Solver/overshift-left-by-constant.kquery | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Solver/overshift-left-by-constant.kquery b/test/Solver/overshift-left-by-constant.kquery new file mode 100644 index 00000000..e0709100 --- /dev/null +++ b/test/Solver/overshift-left-by-constant.kquery @@ -0,0 +1,14 @@ +# RUN: %kleaver %s > %t +# RUN: not grep INVALID %t +array x[4] : w32 -> w8 = symbolic +# ∀ x. x > 0 → ( x << 32 = 0 ) +# Check we overshift to zero for when shifting for all 32-bit values >0 + +(query [ (Ult (w32 0) (ReadLSB w32 (w32 0) x)) ] + (Eq + (Shl w32 + (ReadLSB w32 (w32 0) x) + (w32 32) + ) + (w32 0) + ) [ ] [x] ) |
