mirror of
https://github.com/Z3Prover/z3
synced 2025-08-17 00:32:16 +00:00
use iterators
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
f16dcef7e2
commit
a7db118ebc
2 changed files with 27 additions and 37 deletions
|
@ -98,7 +98,6 @@ namespace sat {
|
|||
literal_vector m_literals;
|
||||
constraint(unsigned k) : m_k(k), m_slack(0), m_size(0) {}
|
||||
void push(literal l) { m_literals.push_back(l); ++m_size; }
|
||||
void seal() { m_literals.push_back(null_literal); }
|
||||
unsigned size() const { return m_size; }
|
||||
literal const& operator[](unsigned idx) const { return m_literals[idx]; }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue