mirror of
https://github.com/Z3Prover/z3
synced 2026-05-31 14:17:47 +00:00
Merge pull request #8872 from Z3Prover/copilot/simplify-dep-tracker-constructors
refactor(seq_nielsen): eliminate duplicate dep_tracker initialization via constructor delegation
This commit is contained in:
commit
7db00dad9d
1 changed files with 1 additions and 3 deletions
|
|
@ -37,9 +37,7 @@ namespace seq {
|
||||||
m_bits.resize(words, 0);
|
m_bits.resize(words, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
dep_tracker::dep_tracker(unsigned num_bits, unsigned set_bit) {
|
dep_tracker::dep_tracker(unsigned num_bits, unsigned set_bit) : dep_tracker(num_bits) {
|
||||||
unsigned words = (num_bits + 31) / 32;
|
|
||||||
m_bits.resize(words, 0);
|
|
||||||
if (set_bit < num_bits) {
|
if (set_bit < num_bits) {
|
||||||
unsigned word_idx = set_bit / 32;
|
unsigned word_idx = set_bit / 32;
|
||||||
unsigned bit_idx = set_bit % 32;
|
unsigned bit_idx = set_bit % 32;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue