mirror of
https://github.com/Z3Prover/z3
synced 2025-08-07 19:51:22 +00:00
Investigating std::vector and #5178
This commit is contained in:
parent
385109d484
commit
c03fac8390
4 changed files with 19 additions and 8 deletions
|
@ -34,7 +34,7 @@ public:
|
|||
|
||||
void flush() {
|
||||
SASSERT(b.size() == A.size());
|
||||
unsigned sz = A.size();
|
||||
auto sz = A.size();
|
||||
for (unsigned i = 0; i < sz; i++) {
|
||||
svector<numeral> & as = A[i];
|
||||
m.del(b[i]);
|
||||
|
|
|
@ -133,7 +133,7 @@ namespace polynomial {
|
|||
/**
|
||||
\brief Number of distinct factors (not counting multiplicities).
|
||||
*/
|
||||
unsigned distinct_factors() const { return m_factors.size(); }
|
||||
size_t distinct_factors() const { return m_factors.size(); }
|
||||
|
||||
/**
|
||||
\brief Number of distinct factors (counting multiplicities).
|
||||
|
|
|
@ -39,8 +39,9 @@ namespace opt {
|
|||
class model_based_opt {
|
||||
public:
|
||||
struct var {
|
||||
unsigned m_id;
|
||||
unsigned m_id { 0 };
|
||||
rational m_coeff;
|
||||
var() {}
|
||||
var(unsigned id, rational const& c): m_id(id), m_coeff(c) {}
|
||||
struct compare {
|
||||
bool operator()(var x, var y) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue