Skip to content

Commit 5b9fdcf

Browse files
fix #6997
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
1 parent f1a39b8 commit 5b9fdcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/math/lp/gomory.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class create_cut {
316316
lar_term t = lia.lra.unfold_nested_subterms(m_t);
317317
auto pol = t.coeffs_as_vector();
318318
m_t.clear();
319-
if (pol.size() == 1) {
319+
if (pol.size() == 1 && is_int(pol[0].second)) {
320320
TRACE("gomory_cut_detail", tout << "pol.size() is 1" << std::endl;);
321321
auto const& [a, v] = pol[0];
322322
lp_assert(is_int(v));

0 commit comments

Comments
 (0)