mirror of
https://github.com/Z3Prover/z3
synced 2025-06-29 01:18:45 +00:00
Merge pull request #1881 from Z3Prover/revert-1880-c++17
Revert "Made Z3 compile for C++17 with MSVC"
This commit is contained in:
commit
b301a59899
4 changed files with 6 additions and 10 deletions
|
@ -696,10 +696,9 @@ namespace datalog {
|
||||||
}
|
}
|
||||||
strats_index++;
|
strats_index++;
|
||||||
}
|
}
|
||||||
using namespace std::placeholders;
|
|
||||||
//we have managed to topologicaly order all the components
|
//we have managed to topologicaly order all the components
|
||||||
SASSERT(std::find_if(m_components.begin(), m_components.end(),
|
SASSERT(std::find_if(m_components.begin(), m_components.end(),
|
||||||
std::bind(std::not_equal_to<item_set*>(), (item_set*)0, _1)) == m_components.end());
|
std::bind1st(std::not_equal_to<item_set*>(), (item_set*)0)) == m_components.end());
|
||||||
|
|
||||||
//reverse the strats array, so that the only the later components would depend on earlier ones
|
//reverse the strats array, so that the only the later components would depend on earlier ones
|
||||||
std::reverse(m_strats.begin(), m_strats.end());
|
std::reverse(m_strats.begin(), m_strats.end());
|
||||||
|
|
|
@ -28,7 +28,6 @@ Notes:
|
||||||
#undef max
|
#undef max
|
||||||
#endif
|
#endif
|
||||||
#include <queue>
|
#include <queue>
|
||||||
#include <functional>
|
|
||||||
#include "util/scoped_ptr_vector.h"
|
#include "util/scoped_ptr_vector.h"
|
||||||
#include "muz/spacer/spacer_manager.h"
|
#include "muz/spacer/spacer_manager.h"
|
||||||
#include "muz/spacer/spacer_prop_solver.h"
|
#include "muz/spacer/spacer_prop_solver.h"
|
||||||
|
@ -190,7 +189,7 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct lemma_lt_proc : public std::function<bool(lemma*, lemma *)> {
|
struct lemma_lt_proc : public std::binary_function<lemma*, lemma *, bool> {
|
||||||
bool operator() (lemma *a, lemma *b) {
|
bool operator() (lemma *a, lemma *b) {
|
||||||
return (a->level () < b->level ()) ||
|
return (a->level () < b->level ()) ||
|
||||||
(a->level () == b->level () &&
|
(a->level () == b->level () &&
|
||||||
|
@ -728,11 +727,11 @@ inline std::ostream &operator<<(std::ostream &out, pob const &p) {
|
||||||
return p.display(out);
|
return p.display(out);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct pob_lt_proc : public std::function<bool(const pob*, const pob*)> {
|
struct pob_lt_proc : public std::binary_function<const pob*, const pob*, bool> {
|
||||||
bool operator() (const pob *pn1, const pob *pn2) const;
|
bool operator() (const pob *pn1, const pob *pn2) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct pob_gt_proc : public std::function<bool(const pob*, const pob*)> {
|
struct pob_gt_proc : public std::binary_function<const pob*, const pob*, bool> {
|
||||||
bool operator() (const pob *n1, const pob *n2) const {
|
bool operator() (const pob *n1, const pob *n2) const {
|
||||||
return pob_lt_proc()(n2, n1);
|
return pob_lt_proc()(n2, n1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,6 @@ Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
#include "muz/spacer/spacer_context.h"
|
#include "muz/spacer/spacer_context.h"
|
||||||
#include "muz/spacer/spacer_generalizers.h"
|
#include "muz/spacer/spacer_generalizers.h"
|
||||||
|
@ -37,7 +36,7 @@ Revision History:
|
||||||
using namespace spacer;
|
using namespace spacer;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
struct index_lt_proc : public std::function<bool(app*, app*)> {
|
struct index_lt_proc : public std::binary_function<app*, app *, bool> {
|
||||||
arith_util m_arith;
|
arith_util m_arith;
|
||||||
index_lt_proc(ast_manager &m) : m_arith(m) {}
|
index_lt_proc(ast_manager &m) : m_arith(m) {}
|
||||||
bool operator() (app *a, app *b) {
|
bool operator() (app *a, app *b) {
|
||||||
|
|
|
@ -21,10 +21,9 @@ Revision History:
|
||||||
|
|
||||||
#include "ast/ast.h"
|
#include "ast/ast.h"
|
||||||
#include "util/uint_set.h"
|
#include "util/uint_set.h"
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
// TBD: move under qe namespace
|
// TBD: move under qe namespace
|
||||||
class is_variable_proc : public std::function<bool(expr*)> {
|
class is_variable_proc : public std::unary_function<expr*,bool> {
|
||||||
public:
|
public:
|
||||||
virtual bool operator()(const expr* e) const = 0;
|
virtual bool operator()(const expr* e) const = 0;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue