3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-18 14:44:21 +00:00

replace a few old-school constructors for a 0.5% reduction in code size

don't waste those 128 KB!
This commit is contained in:
Nuno Lopes 2024-09-02 16:13:46 +01:00
parent a3eb2ff58d
commit ef58376c14
6 changed files with 15 additions and 21 deletions

View file

@ -31,8 +31,7 @@ class symbol_table {
symbol m_key;
T m_data;
key_data() {
}
key_data() = default;
explicit key_data(symbol k):
m_key(k) {
@ -59,10 +58,12 @@ class symbol_table {
struct hash_entry {
typedef key_data data;
key_data m_data;
#if 0
hash_entry() {
SASSERT(m_data.m_key == symbol::null);
}
#endif
unsigned get_hash() const {
return m_data.m_key.hash();