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

handle unsorted monomials

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2018-08-22 11:03:32 +08:00
parent 237db5cb3d
commit 08d891891e
5 changed files with 32 additions and 12 deletions

View file

@ -29,6 +29,14 @@ void print_vector(const C & t, std::ostream & out) {
out << std::endl;
}
template <typename C>
void print_vector(const C * t, unsigned size, std::ostream & out) {
for (unsigned i = 0; i < size; i++ )
out << t[i] << " ";
out << std::endl;
}
template <typename A, typename B>
bool try_get_value(const std::unordered_map<A,B> & map, const A& key, B & val) {
const auto it = map.find(key);