mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 03:57:51 +00:00
fixing up missing dependencies during resolution
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1264fe462d
commit
0677eb1c05
6 changed files with 67 additions and 35 deletions
|
@ -122,18 +122,24 @@ namespace polysat {
|
|||
class iterator {
|
||||
entry* curr = nullptr;
|
||||
bool visited = false;
|
||||
unsigned idx = 0;
|
||||
public:
|
||||
iterator(entry* curr, bool visited) :
|
||||
curr(curr), visited(visited || !curr) {}
|
||||
|
||||
iterator& operator++() {
|
||||
visited = true;
|
||||
curr = curr->next();
|
||||
if (idx < curr->side_cond.size())
|
||||
++idx;
|
||||
else {
|
||||
idx = 0;
|
||||
visited = true;
|
||||
curr = curr->next();
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
signed_constraint& operator*() {
|
||||
return curr->src;
|
||||
return idx < curr->side_cond.size() ? curr->side_cond[idx] : curr->src;
|
||||
}
|
||||
|
||||
bool operator==(iterator const& other) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue