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:
parent
6a1c2e4766
commit
ca0ce579b1
8 changed files with 260 additions and 109 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue