3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 11:25:51 +00:00

reduce number of redundant arguments and pointers

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-15 01:30:06 -07:00 committed by Lev Nachmanson
parent 44d2f6da6c
commit e8c3324c3f
9 changed files with 19 additions and 20 deletions

View file

@ -46,15 +46,14 @@ inline llc negate(llc cmp) {
class core;
class intervals;
struct common {
core* m_core;
core& m_core;
nex_creator m_nex_creator;
intervals* m_intervals;
common(core* c, intervals* i): m_core(c), m_intervals(i) {}
core& c() { return *m_core; }
const core& c() const { return *m_core; }
core& _() { return *m_core; }
const core& _() const { return *m_core; }
common(core* c): m_core(*c) {}
core& c() { return m_core; }
const core& c() const { return m_core; }
core& _() { return m_core; }
const core& _() const { return m_core; }
template <typename T> rational val(T const& t) const;
rational val(lpvar) const;