about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorRaimondas Sasnauskas <rsas@cs.utah.edu>2014-12-02 12:59:27 -0700
committerRaimondas Sasnauskas <rsas@cs.utah.edu>2014-12-12 13:37:42 -0700
commit41e56526a598316c634d29e5ef56aa71c9e38a05 (patch)
tree232048d8bafce377a4d08da3bd5ea05a02a8e9e6
parent3ab04308ff9bf756284a773137254fe0240d2cab (diff)
downloadklee-41e56526a598316c634d29e5ef56aa71c9e38a05.tar.gz
Print nested let-abbreviations in ExprSMTLIBPrinter
This patch introduces nested let-abbreviations in the ExprSMTLIBPrinter
to reduce the size of the SMTLIBv2 queries and the corresponding processing
time (bugfix for #170).

The current implementation of the let abbreviation mode does not consider
expression intra-dependencies and prints all abbreviations in the same
let scope. For a (simplified) example, it prints

(assert (let ( (?B1 (A + B)) (?B2 (A + B + C)) ) (= ?B1 ?B2) ) ).

This is extremely inefficient if the expressions (and there many of these!)
extensively reuse their subexpressions. Therefore, it's better to print
the query with nested let-expressions by reusing existing expression bindings
in the new let scope:

(assert (let ( (?B1 (A + B)) ) (let ( (?B2 (?B1 + C)) ) (= ?B1 ?B2) ) ) ).

This patch adds a new function ExprSMTLIBPrinter::scanBindingExprDeps() that
scans bindings for expression dependencies. The result is a vector of
new bindings (orderedBindings) that represents the expression dependency tree.

When printing in the let-abbreviation mode, the new code starts with
abbreviating expressions that have no dependencies and then gradually makes
these new bindings available in the upcoming let-scopes where expressions
with dependencies reuse them.

The effect of nested let-abbreviations is comparable to :named abbreviations.
However, the latter mode is not supported by the majority of the solvers.
-rw-r--r--include/klee/util/ExprSMTLIBPrinter.h10
-rw-r--r--lib/Expr/ExprSMTLIBPrinter.cpp156
-rw-r--r--test/Expr/print-smt-let.smt2.good14
3 files changed, 149 insertions, 31 deletions
diff --git a/include/klee/util/ExprSMTLIBPrinter.h b/include/klee/util/ExprSMTLIBPrinter.h
index 48d300eb..a27d2bbc 100644
--- a/include/klee/util/ExprSMTLIBPrinter.h
+++ b/include/klee/util/ExprSMTLIBPrinter.h
@@ -223,6 +223,11 @@ protected:
   /// emitted, so it may be used.
   BindingMap bindings;
 
+  /// An ordered list of expression bindings.
+  /// Exprs in BindingMap at index i depend on Exprs in BindingMap at i-1.
+  /// Exprs in orderedBindings[0] have no dependencies.
+  std::vector<BindingMap> orderedBindings;
+
   /// Output stream to write to
   llvm::raw_ostream *o;
 
@@ -287,6 +292,11 @@ protected:
   /// the usedArrays vector.
   void scan(const ref<Expr> &e);
 
+  /// Scan bindings for expression intra-dependencies. The result is written
+  /// to the orderedBindings vector that is later used for nested expression
+  /// printing in the let abbreviation mode.
+  void scanBindingExprDeps();
+
   /* Rules of recursion for "Special Expression handlers" and
    *printSortArgsExpr()
    *
diff --git a/lib/Expr/ExprSMTLIBPrinter.cpp b/lib/Expr/ExprSMTLIBPrinter.cpp
index 1f6c4588..b5fefc92 100644
--- a/lib/Expr/ExprSMTLIBPrinter.cpp
+++ b/lib/Expr/ExprSMTLIBPrinter.cpp
@@ -10,6 +10,8 @@
 #include "llvm/Support/CommandLine.h"
 #include "klee/util/ExprSMTLIBPrinter.h"
 
+#include <stack>
+
 namespace ExprSMTLIBOptions {
 // Command line options
 llvm::cl::opt<klee::ExprSMTLIBPrinter::ConstantDisplayMode>
@@ -78,6 +80,7 @@ void ExprSMTLIBPrinter::setQuery(const Query &q) {
 
 void ExprSMTLIBPrinter::reset() {
   bindings.clear();
+  orderedBindings.clear();
   seenExprs.clear();
   usedArrays.clear();
   haveConstantArray = false;
@@ -466,6 +469,10 @@ void ExprSMTLIBPrinter::scanAll() {
 
   // Scan the query too
   scan(query->expr);
+
+  // Scan bindings for expression intra-dependencies
+  if (abbrMode == ABBR_LET)
+    scanBindingExprDeps();
 }
 
 void ExprSMTLIBPrinter::generateOutput() {
@@ -683,6 +690,92 @@ void ExprSMTLIBPrinter::scan(const ref<Expr> &e) {
   }
 }
 
+void ExprSMTLIBPrinter::scanBindingExprDeps() {
+  if (!bindings.size())
+    return;
+  // Mutual dependency storage
+  typedef std::map<const ref<Expr>, std::set<ref<Expr> > > ExprDepMap;
+  // A map from binding Expr (need abbreviating) "e" to the set of binding Expr
+  // that are sub expressions of "e" (i.e. "e" uses these sub expressions).
+  // usesSubExprMap[a].count(b) == 1  means that binding Expr "a" uses
+  // sub Expr "b" (also a binding Expr).
+  // One can think of this map representing the "depends on" edges
+  // in a "dependency graph" where nodes are binding Expr roots
+  ExprDepMap usesSubExprMap;
+  // A map from Binding Expr "e" to the set of binding Expr that use "e"
+  // subExprOfMap[a].count(b) == 1 means that binding Expr "a" is a sub Expr
+  // of binding Expr "b".
+  // One can think of this map as representing the edges in the previously
+  // mentioned "dependency graph" except the direction of the edges
+  // has been reversed
+  ExprDepMap subExprOfMap;
+  // Working queue holding expressions with no dependencies
+  std::vector<ref<Expr> > nonDepBindings;
+  // Iterate over bindings and collect dependencies
+  for (BindingMap::const_iterator it = bindings.begin();
+       it != bindings.end(); ++it) {
+    std::stack<ref<Expr> > childQueue;
+    childQueue.push(it->first);
+    // Non-recursive expression parsing
+    while (childQueue.size()) {
+      Expr *ep = childQueue.top().get();
+      childQueue.pop();
+      for (unsigned i = 0; i < ep->getNumKids(); ++i) {
+        ref<Expr> e = ep->getKid(i);
+        if (isa<ConstantExpr>(e))
+          continue;
+        // Are there any dependencies in the bindings?
+        if (bindings.count(e)) {
+          usesSubExprMap[it->first].insert(e);
+          subExprOfMap[e].insert(it->first);
+        } else {
+          childQueue.push(e);
+        }
+      }
+    }
+    // Store expressions with zero deps
+    if (!usesSubExprMap.count(it->first))
+      nonDepBindings.push_back(it->first);
+  }
+  assert(nonDepBindings.size() && "there must be expr bindings with no deps");
+  // Unroll the dependency tree starting with zero-dep expressions
+  // and redefine bindings
+  unsigned counter = 1;
+  // nonDepBindings always holds expressions with no dependencies
+  while (nonDepBindings.size()) {
+    BindingMap levelExprs;
+    std::vector<ref<Expr> > tmp(nonDepBindings);
+    nonDepBindings.clear();
+    for (std::vector<ref<Expr> >::const_iterator nonDepExprIt = tmp.begin();
+         nonDepExprIt != tmp.end(); ++nonDepExprIt) {
+      // Save to the level expression bindings
+      levelExprs.insert(std::make_pair(*nonDepExprIt, counter++));
+      // Who is dependent on me?
+      ExprDepMap::iterator depsIt = subExprOfMap.find(*nonDepExprIt);
+      if (depsIt != subExprOfMap.end()) {
+        for (std::set<ref<Expr> >::iterator exprIt = depsIt->second.begin();
+             exprIt != depsIt->second.end(); ) {
+          // Erase dependency
+          ExprDepMap::iterator subExprIt = usesSubExprMap.find(*exprIt);
+          assert(subExprIt != usesSubExprMap.end());
+          assert(subExprIt->second.count(*nonDepExprIt));
+          subExprIt->second.erase(*nonDepExprIt);
+          // If the expression *exprIt does not have any
+          // dependencies anymore, add it to the queue
+          if (!subExprIt->second.size()) {
+            nonDepBindings.push_back(*exprIt);
+            depsIt->second.erase(exprIt++);
+          } else {
+            ++exprIt;
+          }
+        }
+      }
+    }
+    // Store level bindings
+    orderedBindings.push_back(levelExprs);
+  }
+}
+
 void ExprSMTLIBPrinter::scanUpdates(const UpdateNode *un) {
   while (un != NULL) {
     scan(un->index);
@@ -730,7 +823,7 @@ void ExprSMTLIBPrinter::printAssert(const ref<Expr> &e) {
   p->pushIndent();
   printSeperator();
 
-  if (abbrMode == ABBR_LET && bindings.size() != 0) {
+  if (abbrMode == ABBR_LET && orderedBindings.size() != 0) {
     // Only print let expression if we have bindings to use.
     *p << "(let";
     p->pushIndent();
@@ -738,37 +831,52 @@ void ExprSMTLIBPrinter::printAssert(const ref<Expr> &e) {
     *p << "(";
     p->pushIndent();
 
-    // Disable abbreviations so none are used here.
-    abbrMode = ABBR_NONE;
-
-    // Print each binding
-    for (BindingMap::const_iterator i = bindings.begin(); i != bindings.end();
-         ++i) {
+    // Clear original bindings, we'll be using orderedBindings
+    // to print nested let expressions
+    bindings.clear();
+
+    // Print each binding on it's level
+    for (unsigned i = 0; i < orderedBindings.size(); ++i) {
+      BindingMap levelBindings = orderedBindings[i];
+      for (BindingMap::const_iterator j = levelBindings.begin();
+           j != levelBindings.end(); ++j) {
+        printSeperator();
+        *p << "(?B" << j->second;
+        p->pushIndent();
+        printSeperator();
+
+        // We can abbreviate SORT_BOOL or SORT_BITVECTOR in let expressions
+        printExpression(j->first, getSort(j->first));
+
+        p->popIndent();
+        printSeperator();
+        *p << ")";
+      }
+      p->popIndent();
       printSeperator();
-      *p << "(?B" << i->second;
-      p->pushIndent();
+      *p << ")";
       printSeperator();
 
-      // We can abbreviate SORT_BOOL or SORT_BITVECTOR in let expressions
-      printExpression(i->first, getSort(i->first));
+      // Add nested let expressions (if any)
+      if (i < orderedBindings.size()-1) {
+        *p << "(let";
+        p->pushIndent();
+        printSeperator();
+        *p << "(";
+        p->pushIndent();
+      }
+      // Insert current level bindings so that they can be used
+      // in the next level during expression printing
+      bindings.insert(levelBindings.begin(), levelBindings.end());
+    }
+
+    printExpression(e, SORT_BOOL);
 
+    for (unsigned i = 0; i < orderedBindings.size(); ++i) {
       p->popIndent();
       printSeperator();
       *p << ")";
     }
-
-    // Re-enable printing abbreviations.
-    abbrMode = ABBR_LET;
-
-    p->popIndent();
-    printSeperator();
-    *p << ")";
-    printSeperator();
-
-    printExpression(e, SORT_BOOL);
-    p->popIndent();
-    printSeperator();
-    *p << ")";
   } else {
     printExpression(e, SORT_BOOL);
   }
diff --git a/test/Expr/print-smt-let.smt2.good b/test/Expr/print-smt-let.smt2.good
index 3fb9b35c..cb387fef 100644
--- a/test/Expr/print-smt-let.smt2.good
+++ b/test/Expr/print-smt-let.smt2.good
@@ -866,7 +866,7 @@
 (assert (=  (select const_arr2 (_ bv1 32) ) (_ bv101 8) ) )
 (assert (=  (select const_arr2 (_ bv2 32) ) (_ bv115 8) ) )
 (assert (=  (select const_arr2 (_ bv3 32) ) (_ bv0 8) ) )
-(assert (let ( (?B3 ((_ extract 31  0)  (bvadd  (_ bv31312 64) (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) ) (?B2 (bvadd  (_ bv31312 64) (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (and  (and  (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  const_arr2 (bvadd  (_ bv3 32) ?B3 ) ) (concat  (select  const_arr2 (bvadd  (_ bv2 32) ?B3 ) ) (concat  (select  const_arr2 (bvadd  (_ bv1 32) ?B3 ) ) (select  const_arr2 ?B3 ) ) ) ) ) (=  false (bvult  ?B1 (_ bv13 64) ) ) ) (bvult  ?B2 (_ bv1 64) ) ) ) )
+(assert (let ( (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (let ( (?B2 (bvadd  (_ bv31312 64) ?B1 ) ) ) (let ( (?B3 ((_ extract 31  0)  ?B2 ) ) ) (and  (and  (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  const_arr2 (bvadd  (_ bv3 32) ?B3 ) ) (concat  (select  const_arr2 (bvadd  (_ bv2 32) ?B3 ) ) (concat  (select  const_arr2 (bvadd  (_ bv1 32) ?B3 ) ) (select  const_arr2 ?B3 ) ) ) ) ) (=  false (bvult  ?B1 (_ bv13 64) ) ) ) (bvult  ?B2 (_ bv1 64) ) ) ) ) ) )
 (check-sat)
 (get-value ( (select unnamed (_ bv0 32) ) ) )
 (get-value ( (select unnamed (_ bv1 32) ) ) )
@@ -883,7 +883,7 @@
 (set-logic QF_AUFBV )
 (declare-fun unnamed () (Array (_ BitVec 32) (_ BitVec 8) ) )
 (declare-fun unnamed_1 () (Array (_ BitVec 32) (_ BitVec 8) ) )
-(assert (let ( (?B3 ((_ extract 31  0)  (bvadd  (_ bv18446744073709533360 64) (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) ) (?B2 (bvadd  (_ bv18446744073709533360 64) (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (and  (and  (and  (and  (and  (=  false (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  unnamed (bvadd  (_ bv3 32) ?B3 ) ) (concat  (select  unnamed (bvadd  (_ bv2 32) ?B3 ) ) (concat  (select  unnamed (bvadd  (_ bv1 32) ?B3 ) ) (select  unnamed ?B3 ) ) ) ) ) ) (=  false (bvult  ?B1 (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31312 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31760 64) ?B1 ) (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv111120 64) ?B1 ) (_ bv1 64) ) ) ) (bvult  ?B2 (_ bv1 64) ) ) ) )
+(assert (let ( (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (let ( (?B2 (bvadd  (_ bv18446744073709533360 64) ?B1 ) ) ) (let ( (?B3 ((_ extract 31  0)  ?B2 ) ) ) (and  (and  (and  (and  (and  (=  false (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  unnamed (bvadd  (_ bv3 32) ?B3 ) ) (concat  (select  unnamed (bvadd  (_ bv2 32) ?B3 ) ) (concat  (select  unnamed (bvadd  (_ bv1 32) ?B3 ) ) (select  unnamed ?B3 ) ) ) ) ) ) (=  false (bvult  ?B1 (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31312 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31760 64) ?B1 ) (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv111120 64) ?B1 ) (_ bv1 64) ) ) ) (bvult  ?B2 (_ bv1 64) ) ) ) ) ) )
 (check-sat)
 (get-value ( (select unnamed_1 (_ bv0 32) ) ) )
 (get-value ( (select unnamed_1 (_ bv1 32) ) ) )
@@ -905,7 +905,7 @@
 (assert (=  (select const_arr5 (_ bv1 32) ) (_ bv171 8) ) )
 (assert (=  (select const_arr5 (_ bv2 32) ) (_ bv171 8) ) )
 (assert (=  (select const_arr5 (_ bv3 32) ) (_ bv171 8) ) )
-(assert (let ( (?B3 ((_ extract 31  0)  (bvadd  (_ bv18446744073709533328 64) (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) ) (?B2 (bvadd  (_ bv18446744073709533328 64) (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (and  (and  (and  (and  (and  (and  (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  const_arr5 (bvadd  (_ bv3 32) ?B3 ) ) (concat  (select  const_arr5 (bvadd  (_ bv2 32) ?B3 ) ) (concat  (select  const_arr5 (bvadd  (_ bv1 32) ?B3 ) ) (select  const_arr5 ?B3 ) ) ) ) ) (=  false (bvult  ?B1 (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31312 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31760 64) ?B1 ) (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv111120 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv18446744073709533360 64) ?B1 ) (_ bv1 64) ) ) ) (bvult  ?B2 (_ bv1 64) ) ) ) )
+(assert (let ( (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (let ( (?B2 (bvadd  (_ bv18446744073709533328 64) ?B1 ) ) ) (let ( (?B3 ((_ extract 31  0)  ?B2 ) ) ) (and  (and  (and  (and  (and  (and  (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  const_arr5 (bvadd  (_ bv3 32) ?B3 ) ) (concat  (select  const_arr5 (bvadd  (_ bv2 32) ?B3 ) ) (concat  (select  const_arr5 (bvadd  (_ bv1 32) ?B3 ) ) (select  const_arr5 ?B3 ) ) ) ) ) (=  false (bvult  ?B1 (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31312 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31760 64) ?B1 ) (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv111120 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv18446744073709533360 64) ?B1 ) (_ bv1 64) ) ) ) (bvult  ?B2 (_ bv1 64) ) ) ) ) ) )
 (check-sat)
 (get-value ( (select unnamed_1 (_ bv0 32) ) ) )
 (get-value ( (select unnamed_1 (_ bv1 32) ) ) )
@@ -939,7 +939,7 @@
 (assert (=  (select const_arr1 (_ bv13 32) ) (_ bv0 8) ) )
 (assert (=  (select const_arr1 (_ bv14 32) ) (_ bv0 8) ) )
 (assert (=  (select const_arr1 (_ bv15 32) ) (_ bv0 8) ) )
-(assert (let ( (?B2 ((_ extract 31  0)  (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (and  (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  const_arr1 (bvadd  (_ bv3 32) ?B2 ) ) (concat  (select  const_arr1 (bvadd  (_ bv2 32) ?B2 ) ) (concat  (select  const_arr1 (bvadd  (_ bv1 32) ?B2 ) ) (select  const_arr1 ?B2 ) ) ) ) ) (bvult  ?B1 (_ bv13 64) ) ) ) )
+(assert (let ( (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (let ( (?B2 ((_ extract 31  0)  ?B1 ) ) ) (and  (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  const_arr1 (bvadd  (_ bv3 32) ?B2 ) ) (concat  (select  const_arr1 (bvadd  (_ bv2 32) ?B2 ) ) (concat  (select  const_arr1 (bvadd  (_ bv1 32) ?B2 ) ) (select  const_arr1 ?B2 ) ) ) ) ) (bvult  ?B1 (_ bv13 64) ) ) ) ) )
 (check-sat)
 (get-value ( (select unnamed (_ bv0 32) ) ) )
 (get-value ( (select unnamed (_ bv1 32) ) ) )
@@ -961,7 +961,7 @@
 (assert (=  (select const_arr4 (_ bv1 32) ) (_ bv171 8) ) )
 (assert (=  (select const_arr4 (_ bv2 32) ) (_ bv171 8) ) )
 (assert (=  (select const_arr4 (_ bv3 32) ) (_ bv171 8) ) )
-(assert (let ( (?B3 ((_ extract 31  0)  (bvadd  (_ bv111120 64) (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) ) (?B2 (bvadd  (_ bv111120 64) (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (and  (and  (and  (and  (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  const_arr4 (bvadd  (_ bv3 32) ?B3 ) ) (concat  (select  const_arr4 (bvadd  (_ bv2 32) ?B3 ) ) (concat  (select  const_arr4 (bvadd  (_ bv1 32) ?B3 ) ) (select  const_arr4 ?B3 ) ) ) ) ) (=  false (bvult  ?B1 (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31312 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31760 64) ?B1 ) (_ bv13 64) ) ) ) (bvult  ?B2 (_ bv1 64) ) ) ) )
+(assert (let ( (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (let ( (?B2 (bvadd  (_ bv111120 64) ?B1 ) ) ) (let ( (?B3 ((_ extract 31  0)  ?B2 ) ) ) (and  (and  (and  (and  (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  const_arr4 (bvadd  (_ bv3 32) ?B3 ) ) (concat  (select  const_arr4 (bvadd  (_ bv2 32) ?B3 ) ) (concat  (select  const_arr4 (bvadd  (_ bv1 32) ?B3 ) ) (select  const_arr4 ?B3 ) ) ) ) ) (=  false (bvult  ?B1 (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31312 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31760 64) ?B1 ) (_ bv13 64) ) ) ) (bvult  ?B2 (_ bv1 64) ) ) ) ) ) )
 (check-sat)
 (get-value ( (select unnamed_1 (_ bv0 32) ) ) )
 (get-value ( (select unnamed_1 (_ bv1 32) ) ) )
@@ -995,7 +995,7 @@
 (assert (=  (select const_arr3 (_ bv13 32) ) (_ bv0 8) ) )
 (assert (=  (select const_arr3 (_ bv14 32) ) (_ bv0 8) ) )
 (assert (=  (select const_arr3 (_ bv15 32) ) (_ bv0 8) ) )
-(assert (let ( (?B3 ((_ extract 31  0)  (bvadd  (_ bv31760 64) (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) ) (?B2 (bvadd  (_ bv31760 64) (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (and  (and  (and  (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  const_arr3 (bvadd  (_ bv3 32) ?B3 ) ) (concat  (select  const_arr3 (bvadd  (_ bv2 32) ?B3 ) ) (concat  (select  const_arr3 (bvadd  (_ bv1 32) ?B3 ) ) (select  const_arr3 ?B3 ) ) ) ) ) (=  false (bvult  ?B1 (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31312 64) ?B1 ) (_ bv1 64) ) ) ) (bvult  ?B2 (_ bv13 64) ) ) ) )
+(assert (let ( (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (let ( (?B2 (bvadd  (_ bv31760 64) ?B1 ) ) ) (let ( (?B3 ((_ extract 31  0)  ?B2 ) ) ) (and  (and  (and  (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  const_arr3 (bvadd  (_ bv3 32) ?B3 ) ) (concat  (select  const_arr3 (bvadd  (_ bv2 32) ?B3 ) ) (concat  (select  const_arr3 (bvadd  (_ bv1 32) ?B3 ) ) (select  const_arr3 ?B3 ) ) ) ) ) (=  false (bvult  ?B1 (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31312 64) ?B1 ) (_ bv1 64) ) ) ) (bvult  ?B2 (_ bv13 64) ) ) ) ) ) )
 (check-sat)
 (get-value ( (select unnamed (_ bv0 32) ) ) )
 (get-value ( (select unnamed (_ bv1 32) ) ) )
@@ -1012,7 +1012,7 @@
 (set-logic QF_AUFBV )
 (declare-fun unnamed () (Array (_ BitVec 32) (_ BitVec 8) ) )
 (declare-fun unnamed_1 () (Array (_ BitVec 32) (_ BitVec 8) ) )
-(assert (let ( (?B3 ((_ extract 31  0)  (bvadd  (_ bv18446744073709532800 64) (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) ) (?B2 (bvadd  (_ bv18446744073709532800 64) (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (and  (and  (and  (and  (and  (and  (and  (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  unnamed_1 (bvadd  (_ bv3 32) ?B3 ) ) (concat  (select  unnamed_1 (bvadd  (_ bv2 32) ?B3 ) ) (concat  (select  unnamed_1 (bvadd  (_ bv1 32) ?B3 ) ) (select  unnamed_1 ?B3 ) ) ) ) ) (=  false (bvult  ?B1 (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31312 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31760 64) ?B1 ) (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv111120 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv18446744073709533360 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv18446744073709533328 64) ?B1 ) (_ bv1 64) ) ) ) (bvult  ?B2 (_ bv1 64) ) ) ) )
+(assert (let ( (?B1 (bvmul  (_ bv4 64) ((_ sign_extend 32)  (concat  (select  unnamed_1 (_ bv3 32) ) (concat  (select  unnamed_1 (_ bv2 32) ) (concat  (select  unnamed_1 (_ bv1 32) ) (select  unnamed_1 (_ bv0 32) ) ) ) ) ) ) ) ) (let ( (?B2 (bvadd  (_ bv18446744073709532800 64) ?B1 ) ) ) (let ( (?B3 ((_ extract 31  0)  ?B2 ) ) ) (and  (and  (and  (and  (and  (and  (and  (=  (concat  (select  unnamed (_ bv3 32) ) (concat  (select  unnamed (_ bv2 32) ) (concat  (select  unnamed (_ bv1 32) ) (select  unnamed (_ bv0 32) ) ) ) ) (concat  (select  unnamed_1 (bvadd  (_ bv3 32) ?B3 ) ) (concat  (select  unnamed_1 (bvadd  (_ bv2 32) ?B3 ) ) (concat  (select  unnamed_1 (bvadd  (_ bv1 32) ?B3 ) ) (select  unnamed_1 ?B3 ) ) ) ) ) (=  false (bvult  ?B1 (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31312 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv31760 64) ?B1 ) (_ bv13 64) ) ) ) (=  false (bvult  (bvadd  (_ bv111120 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv18446744073709533360 64) ?B1 ) (_ bv1 64) ) ) ) (=  false (bvult  (bvadd  (_ bv18446744073709533328 64) ?B1 ) (_ bv1 64) ) ) ) (bvult  ?B2 (_ bv1 64) ) ) ) ) ) )
 (check-sat)
 (get-value ( (select unnamed_1 (_ bv0 32) ) ) )
 (get-value ( (select unnamed_1 (_ bv1 32) ) ) )