From 13a107e13f52c6418328eb798da315ca2fa1a1ca Mon Sep 17 00:00:00 2001 From: Aina Niemetz Date: Fri, 20 Nov 2020 13:55:42 -0800 Subject: [PATCH] Fix #5493. (#5495) --- src/theory/arith/theory_arith_private.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/theory/arith/theory_arith_private.cpp b/src/theory/arith/theory_arith_private.cpp index 109ffe63c..153b8e379 100644 --- a/src/theory/arith/theory_arith_private.cpp +++ b/src/theory/arith/theory_arith_private.cpp @@ -3478,7 +3478,9 @@ bool TheoryArithPrivate::postCheck(Theory::Effort effortLevel) } d_statistics.d_avgUnknownsInARow.addEntry(d_unknownsInARow); - for (std::size_t i = 0; i < d_fcSimplex.getPivots(); ++i) + size_t nPivots = + options::useFC() ? d_fcSimplex.getPivots() : d_dualSimplex.getPivots(); + for (std::size_t i = 0; i < nPivots; ++i) { d_containing.d_out->spendResource( ResourceManager::Resource::ArithPivotStep); -- 2.30.2