mirror of
https://github.com/Z3Prover/z3
synced 2026-07-27 17:32:45 +00:00
Move get_max_generation to smt::context
This commit is contained in:
parent
dc241b85b9
commit
39dc236e01
2 changed files with 10 additions and 10 deletions
|
|
@ -635,6 +635,16 @@ namespace smt {
|
|||
return *generation;
|
||||
}
|
||||
|
||||
unsigned get_max_generation(unsigned num_enodes, enode * const * enodes) {
|
||||
unsigned max = 0;
|
||||
for (unsigned i = 0; i < num_enodes; ++i) {
|
||||
unsigned curr = get_generation(enodes[i]);
|
||||
if (curr > max)
|
||||
max = curr;
|
||||
}
|
||||
return max;
|
||||
}
|
||||
|
||||
void set_generation(enode * e, unsigned generation);
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -293,16 +293,6 @@ namespace smt {
|
|||
}
|
||||
}
|
||||
|
||||
unsigned get_max_generation(context & ctx, unsigned num_enodes, enode * const * enodes) {
|
||||
unsigned max = 0;
|
||||
for (unsigned i = 0; i < num_enodes; ++i) {
|
||||
unsigned curr = ctx.get_generation(enodes[i]);
|
||||
if (curr > max)
|
||||
max = curr;
|
||||
}
|
||||
return max;
|
||||
}
|
||||
|
||||
void unmark_enodes(unsigned num_enodes, enode * const * enodes) {
|
||||
for (unsigned i = 0; i < num_enodes; ++i)
|
||||
enodes[i]->unset_mark();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue