3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

build errors/warnings

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-02-07 10:09:10 -08:00
parent bd444f8ec7
commit 88374a15d0
8 changed files with 31 additions and 38 deletions

View file

@ -22,13 +22,12 @@ Revision History:
namespace dd {
// calculates the value of a pdd expression based on the given values of the variables
class pdd_eval {
pdd_manager& m;
std::function<rational (unsigned)> m_var2val;
public:
pdd_eval(pdd_manager& m): m(m) {}
pdd_eval() {}
std::function<rational (unsigned)>& var2val() { return m_var2val; } // setter
const std::function<rational (unsigned)>& var2val() const { return m_var2val; } // getter

View file

@ -25,13 +25,12 @@ typedef dep_intervals::interval interval;
typedef dep_intervals::with_deps_t w_dep;
// calculates the interval of a pdd expression based on the given intervals of the variables
class pdd_interval {
pdd_manager& m;
dep_intervals m_dep_intervals;
std::function<interval (unsigned, bool)> m_var2interval;
public:
pdd_interval(pdd_manager& m, reslimit& lim): m(m), m_dep_intervals(lim) {}
pdd_interval(reslimit& lim): m_dep_intervals(lim) {}
std::function<interval (unsigned, bool)>& var2interval() { return m_var2interval; } // setter
const std::function<interval (unsigned, bool)>& var2interval() const { return m_var2interval; } // getter

View file

@ -1463,7 +1463,7 @@ std::ostream& core::diagnose_pdd_miss(std::ostream& out) {
// m_pdd_grobner.display(out);
dd::pdd_eval eval(m_pdd_manager);
dd::pdd_eval eval;
eval.var2val() = [&](unsigned j){ return val(j); };
for (auto* e : m_pdd_grobner.equations()) {
dd::pdd p = e->poly();
@ -1486,7 +1486,7 @@ std::ostream& core::diagnose_pdd_miss(std::ostream& out) {
}
bool core::check_pdd_eq(const dd::solver::equation* e) {
dd::pdd_interval eval(m_pdd_manager, m_reslim);
dd::pdd_interval eval(m_reslim);
eval.var2interval() =
[this](lpvar j, bool deps) {
intervals::interval a;