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:
parent
a3eb2ff58d
commit
ef58376c14
6 changed files with 15 additions and 21 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue