3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +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

@ -114,9 +114,9 @@ class pattern_inference_cfg : public default_rewriter_cfg {
//
class collect {
struct entry {
expr * m_node;
unsigned m_delta;
entry():m_node(nullptr), m_delta(0) {}
expr * m_node = nullptr;
unsigned m_delta = 0;
entry() = default;
entry(expr * n, unsigned d):m_node(n), m_delta(d) {}
unsigned hash() const {
return hash_u_u(m_node->get_id(), m_delta);