summaryrefslogtreecommitdiff
path: root/Source/Provers
diff options
context:
space:
mode:
authorGravatar qadeer <qadeer@microsoft.com>2011-07-09 12:38:12 -0700
committerGravatar qadeer <qadeer@microsoft.com>2011-07-09 12:38:12 -0700
commitb1b84b22d16894e5ea2bc7d677eb83c011cb6964 (patch)
tree6fa7b6c9a35d63798dcb159810fc933bb065e39f /Source/Provers
parent574a0863cb34fb612ecf3d107416c955bdf889a8 (diff)
fixed bug in vcgen for bitvectors
Diffstat (limited to 'Source/Provers')
-rw-r--r--Source/Provers/Z3/TypeDeclCollector.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Provers/Z3/TypeDeclCollector.cs b/Source/Provers/Z3/TypeDeclCollector.cs
index 2e695215..19c88409 100644
--- a/Source/Provers/Z3/TypeDeclCollector.cs
+++ b/Source/Provers/Z3/TypeDeclCollector.cs
@@ -193,7 +193,12 @@ void ObjectInvariant()
// there are a couple cases where operators have to be
// registered by generating appropriate Z3 statements
- if (node.Op is VCExprBvConcatOp) {
+ if (node.Op is VCExprBvOp) {
+ if (NativeBv) {
+ RegisterType(node[0].Type);
+ RegisterType(node.Type);
+ }
+ } else if (node.Op is VCExprBvConcatOp) {
//
if (NativeBv) {
RegisterType(node[0].Type);