3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 11:25:51 +00:00

work on order lemma

Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
Lev 2018-11-20 15:36:02 -08:00 committed by Lev Nachmanson
parent 6a1c2e4766
commit ca0ce579b1
8 changed files with 260 additions and 109 deletions

View file

@ -58,6 +58,21 @@ bool contains(const std::unordered_map<A, B> & map, const A& key) {
namespace lp {
template <typename K>
bool is_non_decreasing(const K& v) {
auto a = v.begin();
if (a == v.end())
return true; // v is empty
auto b = v.begin();
b++;
for (; b != v.end(); a++, b++) {
if (*a > *b)
return false;
}
return true;
}
template <typename T>
void print_linear_combination_of_column_indices_only(const T & coeffs, std::ostream & out) {
bool first = true;