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:
parent
237db5cb3d
commit
08d891891e
5 changed files with 32 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue