From af76435053247adedb91219c5ae3cdd7ebbd4231 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Fri, 7 Oct 2011 22:37:07 +0100 Subject: Associate a domain and range with each array --- lib/Solver/STPBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit 1.4.1