3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-04 22:36:10 +00:00

Fix inadvertent formatting changes.

This commit is contained in:
David Detlefs 2026-06-18 19:36:55 -07:00
parent 4bc4a9afae
commit d6d0d4e45a
3 changed files with 12 additions and 12 deletions

View file

@ -115,7 +115,7 @@ public:
} }
entry * find_core(key const & k) const { entry * find_core(key const & k) const {
return m_table.find_core(key_data{k, value()}); return m_table.find_core(key_data{k, value{}});
} }
bool find(key const & k, value & v) const { bool find(key const & k, value & v) const {
@ -137,7 +137,7 @@ public:
} }
iterator find_iterator(key const & k) const { iterator find_iterator(key const & k) const {
return m_table.find(key_data{k, value()}); return m_table.find(key_data{k, value{}});
} }
value const & find(key const& k) const { value const & find(key const& k) const {
@ -161,8 +161,8 @@ public:
return find_core(k) != nullptr; return find_core(k) != nullptr;
} }
void remove(key const &k) { void remove(key const & k) {
m_table.remove(key_data{k, value()}); m_table.remove(key_data{k, value{}});
} }
void erase(key const & k) { void erase(key const & k) {
@ -184,7 +184,7 @@ public:
} }
return true; return true;
} }
#ifdef Z3DEBUG #ifdef Z3DEBUG
bool check_invariant() { bool check_invariant() {

View file

@ -65,7 +65,7 @@ public:
key_data() : m_key(nullptr), m_value(Value()) {} key_data() : m_key(nullptr), m_value(Value()) {}
key_data(Key * key) : m_key(key), m_value(Value()) {} key_data(Key * key) : m_key(key), m_value(Value()) {}
key_data(Key * key, const Value& value) : m_key(key), m_value(value) {} key_data(Key * key, const Value & value) : m_key(key), m_value(value) {}
Value const & get_value() const { return m_value; } Value const & get_value() const { return m_value; }
Key & get_key () const { return *m_key; } Key & get_key () const { return *m_key; }
@ -162,7 +162,7 @@ public:
return m_table.insert_if_not_there2({k, v}); return m_table.insert_if_not_there2({k, v});
} }
obj_map_entry *find_core(Key *k) const { obj_map_entry *find_core(Key * k) const {
return m_table.find_core({k}); return m_table.find_core({k});
} }
@ -194,7 +194,7 @@ public:
return find(k); return find(k);
} }
iterator find_iterator(Key *k) const { iterator find_iterator(Key * k) const {
return m_table.find(key_data{k}); return m_table.find(key_data{k});
} }
@ -202,7 +202,7 @@ public:
return find_core(k) != nullptr; return find_core(k) != nullptr;
} }
void remove(Key *k) { void remove(Key * k) {
m_table.remove(key_data{k, value()}); m_table.remove(key_data{k, value()});
} }

View file

@ -32,8 +32,8 @@ class symbol_table {
T m_data; T m_data;
key_data() {} key_data() {}
key_data(const symbol &key) : m_key(key) {} key_data(const symbol & key) : m_key(key) {}
key_data(const symbol &key, const T &data) : m_key(key), m_data(data) {} key_data(const symbol & key, const T & data) : m_key(key), m_data(data) {}
}; };
struct key_data_hash_proc { struct key_data_hash_proc {
@ -120,7 +120,7 @@ public:
result = e->get_data().m_data; result = e->get_data().m_data;
return true; return true;
} }
bool contains(symbol key) const { bool contains(symbol key) const {
return m_sym_table.contains(key_data{key}); return m_sym_table.contains(key_data{key});
} }