mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
define setter and getter for var2var in pdd_eval
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
a9f09beb8e
commit
f22d4b50cc
|
@ -30,8 +30,9 @@ public:
|
|||
|
||||
pdd_eval(pdd_manager& m): m(m) {}
|
||||
|
||||
void operator=(std::function<rational (unsigned)>& i2v) { m_var2val = i2v; }
|
||||
|
||||
std::function<rational (unsigned)>& var2val() { return m_var2val; } // setter
|
||||
const std::function<rational (unsigned)>& var2val() const { return m_var2val; } // getter
|
||||
|
||||
rational operator()(pdd const& p) {
|
||||
if (p.is_val()) {
|
||||
return p.val();
|
||||
|
|
Loading…
Reference in a new issue