about summary refs log tree commit diff homepage
path: root/lib/Solver
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-10-07 22:37:07 +0100
committerPeter Collingbourne <pcc@google.com>2014-04-15 22:57:20 -0700
commitaf76435053247adedb91219c5ae3cdd7ebbd4231 (patch)
tree91bf86f9221d2aa37f1dd637c3faa7c7b7da8df4 /lib/Solver
parent5e0682ee26e02c710abd284f9f965e7a2c9a9f32 (diff)
downloadklee-af76435053247adedb91219c5ae3cdd7ebbd4231.tar.gz
Associate a domain and range with each array
Diffstat (limited to 'lib/Solver')
-rw-r--r--lib/Solver/STPBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Solver/STPBuilder.cpp b/lib/Solver/STPBuilder.cpp
index ad0df3c2..ebc096df 100644
--- a/lib/Solver/STPBuilder.cpp
+++ b/lib/Solver/STPBuilder.cpp
@@ -439,7 +439,7 @@ ExprHandle STPBuilder::constructSDivByConstant(ExprHandle expr_n, unsigned width
     memmove(buf + space, buf, addrlen); // moving the address part to the end
     memcpy(buf, root->name.c_str(), space); // filling out the name part
     
-    array_expr = buildArray(buf, 32, 8);
+    array_expr = buildArray(buf, root->getDomain(), root->getRange());
     
     if (root->isConstantArray()) {
       // FIXME: Flush the concrete values into STP. Ideally we would do this