616fc2cbd5522137b78097c247feb04e266ff780.patch 1.1 KB

123456789101112131415161718192021222324
  1. From 616fc2cbd5522137b78097c247feb04e266ff780 Mon Sep 17 00:00:00 2001
  2. From: Nikolaj Bjorner <nbjorner@microsoft.com>
  3. Date: Sun, 4 Sep 2022 16:22:11 -0700
  4. Subject: [PATCH] fix #6314
  5. Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  6. ---
  7. src/solver/assertions/asserted_formulas.cpp | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/src/solver/assertions/asserted_formulas.cpp b/src/solver/assertions/asserted_formulas.cpp
  10. index 5780ef227e..5dec90ba7a 100644
  11. --- a/src/solver/assertions/asserted_formulas.cpp
  12. +++ b/src/solver/assertions/asserted_formulas.cpp
  13. @@ -732,7 +732,7 @@ void asserted_formulas::bv_size_reduce_fn::simplify(justified_expr const& j, exp
  14. auto check_reduce = [&](expr* a, expr* b) {
  15. if (bv.is_extract(a, lo, hi, x) && lo > 0 && hi + 1 == bv.get_bv_size(x) && bv.is_numeral(b, r) && r == 0) {
  16. // insert x -> x[0,lo-1] ++ n into sub
  17. - new_term = bv.mk_concat(bv.mk_extract(lo - 1, 0, x), b);
  18. + new_term = bv.mk_concat(b, bv.mk_extract(lo - 1, 0, x));
  19. m_sub.insert(x, new_term);
  20. n = j.get_fml();
  21. return true;