summaryrefslogtreecommitdiff
path: root/Test/bitvectors/bv8.bpl
diff options
context:
space:
mode:
authorGravatar rustanleino <unknown>2009-09-29 06:39:10 +0000
committerGravatar rustanleino <unknown>2009-09-29 06:39:10 +0000
commit75cdf16714372ec03f1697450c135acdd3df9db3 (patch)
treec218a23b5f4030241dd419d170d274d7e26399c7 /Test/bitvectors/bv8.bpl
parent84121f913cd1e4f78847bb246c2a83ac116a1a1b (diff)
Fixed some bugs in the generation of bitvector input for Z3.
Deleted/ignored some binaries in the Binaries directory.
Diffstat (limited to 'Test/bitvectors/bv8.bpl')
-rw-r--r--Test/bitvectors/bv8.bpl23
1 files changed, 23 insertions, 0 deletions
diff --git a/Test/bitvectors/bv8.bpl b/Test/bitvectors/bv8.bpl
new file mode 100644
index 00000000..7295f684
--- /dev/null
+++ b/Test/bitvectors/bv8.bpl
@@ -0,0 +1,23 @@
+// This file includes some tests for which Boogie once generated bad Z3 input
+
+procedure foo()
+{
+ var r: bv3;
+ var s: bv6;
+ var u: bv15;
+ var t: bv24;
+
+ t := t[8: 0] ++ t[10: 0] ++ t[24: 18];
+ t := (r ++ s) ++ u;
+ t := t[16: 0] ++ t[8: 0];
+}
+
+procedure bar()
+{
+ var a: bv64;
+ var b: bv32;
+ var c: bv8;
+
+ c := a[8:0];
+ c := b[8:0];
+}