mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 17:44:08 +00:00
fix the crash
This commit is contained in:
parent
abf29b57aa
commit
3b22d3b19d
|
@ -4,8 +4,9 @@
|
||||||
#include "math/lp/lp_utils.h"
|
#include "math/lp/lp_utils.h"
|
||||||
|
|
||||||
namespace lp {
|
namespace lp {
|
||||||
struct imp {
|
|
||||||
|
class dioph_eq::imp {
|
||||||
|
public:
|
||||||
int_solver& lia;
|
int_solver& lia;
|
||||||
lar_solver& lra;
|
lar_solver& lra;
|
||||||
|
|
||||||
|
@ -13,9 +14,9 @@ namespace lp {
|
||||||
vector<lar_term> m_e;
|
vector<lar_term> m_e;
|
||||||
|
|
||||||
void init() {
|
void init() {
|
||||||
int n_of_rows = lra.r_basis().size();
|
unsigned n_of_rows = static_cast<unsigned>(lra.r_basis().size());
|
||||||
unsigned skipped = 0;
|
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);
|
auto & row = lra.get_row(i);
|
||||||
lar_term t;
|
lar_term t;
|
||||||
bool is_int = true;
|
bool is_int = true;
|
||||||
|
|
|
@ -19,9 +19,10 @@ Revision History:
|
||||||
#include "math/lp/lia_move.h"
|
#include "math/lp/lia_move.h"
|
||||||
|
|
||||||
namespace lp {
|
namespace lp {
|
||||||
struct imp;
|
|
||||||
class int_solver;
|
class int_solver;
|
||||||
class dioph_eq {
|
class dioph_eq {
|
||||||
|
class imp;
|
||||||
int_solver& lia;
|
int_solver& lia;
|
||||||
imp* m_imp;
|
imp* m_imp;
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -29,7 +29,8 @@ namespace lp {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct imp {
|
class int_solver::imp {
|
||||||
|
public:
|
||||||
int_solver& lia;
|
int_solver& lia;
|
||||||
lar_solver& lra;
|
lar_solver& lra;
|
||||||
lar_core_solver& lrac;
|
lar_core_solver& lrac;
|
||||||
|
|
|
@ -31,16 +31,17 @@ Revision History:
|
||||||
namespace lp {
|
namespace lp {
|
||||||
class lar_solver;
|
class lar_solver;
|
||||||
class lar_core_solver;
|
class lar_core_solver;
|
||||||
struct imp;
|
|
||||||
class int_solver {
|
class int_solver {
|
||||||
|
|
||||||
friend struct create_cut;
|
friend struct create_cut;
|
||||||
friend class gomory;
|
friend class gomory;
|
||||||
friend class int_cube;
|
friend class int_cube;
|
||||||
friend class int_branch;
|
friend class int_branch;
|
||||||
friend class int_gcd_test;
|
friend class int_gcd_test;
|
||||||
friend class hnf_cutter;
|
friend class hnf_cutter;
|
||||||
friend struct imp;
|
friend class imp;
|
||||||
friend class dioph_eq;
|
friend class dioph_eq;
|
||||||
|
class imp;
|
||||||
lar_solver& lra;
|
lar_solver& lra;
|
||||||
lar_core_solver& lrac;
|
lar_core_solver& lrac;
|
||||||
imp* m_imp;
|
imp* m_imp;
|
||||||
|
|
Loading…
Reference in a new issue