3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-17 20:54:45 +00:00

fix the crash

This commit is contained in:
Lev Nachmanson 2024-08-15 18:18:22 -10:00 committed by Lev Nachmanson
parent abf29b57aa
commit 3b22d3b19d
4 changed files with 12 additions and 8 deletions

View file

@ -4,8 +4,9 @@
#include "math/lp/lp_utils.h"
namespace lp {
struct imp {
class dioph_eq::imp {
public:
int_solver& lia;
lar_solver& lra;
@ -13,9 +14,9 @@ namespace lp {
vector<lar_term> m_e;
void init() {
int n_of_rows = lra.r_basis().size();
unsigned n_of_rows = static_cast<unsigned>(lra.r_basis().size());
unsigned skipped = 0;
for (unsigned i = 0; i < lra.r_basis().size(); i++) {
for (unsigned i = 0; i < n_of_rows; i++) {
auto & row = lra.get_row(i);
lar_term t;
bool is_int = true;