about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorDan Liew <delcypher@gmail.com>2014-04-16 17:15:32 +0100
committerDan Liew <delcypher@gmail.com>2014-04-16 17:15:32 +0100
commit5cfeffaa50050cda735de24fb6a821dacd157d26 (patch)
tree91bf86f9221d2aa37f1dd637c3faa7c7b7da8df4 /lib
parent5e0682ee26e02c710abd284f9f965e7a2c9a9f32 (diff)
parentaf76435053247adedb91219c5ae3cdd7ebbd4231 (diff)
downloadklee-5cfeffaa50050cda735de24fb6a821dacd157d26.tar.gz
Merge pull request #110 from pcc/domain-range
Associate a domain and range with each array
Diffstat (limited to 'lib')
-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