3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 20:05:51 +00:00

fix a bug in factorization

Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
Lev 2018-12-13 12:32:45 -10:00 committed by Lev Nachmanson
parent ef87054fe0
commit 267457aaf4
4 changed files with 41 additions and 14 deletions

View file

@ -407,6 +407,18 @@ bool vectors_are_equal(const vector<T> & a, const buffer<T> &b);
template <typename T>
bool vectors_are_equal(const vector<T> & a, const vector<T> &b);
template <typename T, typename K >
bool vectors_are_equal_(const T & a, const K &b) {
if (a.size() != b.size())
return false;
for (unsigned i = 0; i < a.size(); i++){
if (a[i] != b[i]) {
return false;
}
}
return true;
}
template <typename T>
T abs (T const & v) { return v >= zero_of_type<T>() ? v : -v; }