mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 19:05:51 +00:00
cleanup mostly, more asserts in tangent lemma
This commit is contained in:
parent
9c62b431e4
commit
1810d7e77d
8 changed files with 186 additions and 146 deletions
|
@ -35,12 +35,12 @@ public:
|
|||
m_explanation.push_back(std::make_pair(one_of_type<mpq>(), j));
|
||||
}
|
||||
|
||||
template <typename A>
|
||||
void add(const A& a) { for (auto j : a) add(j); }
|
||||
void add(const explanation& e) { for (auto j: e.m_set_of_ci) add(j); }
|
||||
|
||||
void add(unsigned ci) { push_justification(ci); }
|
||||
|
||||
void add(const std::pair<mpq, constraint_index>& j) { push_justification(j.second, j.first); }
|
||||
|
||||
void add(unsigned j) { push_justification(j); }
|
||||
bool empty() const { return m_explanation.empty(); }
|
||||
size_t size() const { return m_explanation.size(); }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue