mirror of
https://github.com/Z3Prover/z3
synced 2026-03-07 13:54:53 +00:00
refactor: use constructor delegation in dep_tracker to eliminate duplicate initialization
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
a70ff84d8c
commit
17894601ba
1 changed files with 1 additions and 3 deletions
|
|
@ -37,9 +37,7 @@ namespace seq {
|
|||
m_bits.resize(words, 0);
|
||||
}
|
||||
|
||||
dep_tracker::dep_tracker(unsigned num_bits, unsigned set_bit) {
|
||||
unsigned words = (num_bits + 31) / 32;
|
||||
m_bits.resize(words, 0);
|
||||
dep_tracker::dep_tracker(unsigned num_bits, unsigned set_bit) : dep_tracker(num_bits) {
|
||||
if (set_bit < num_bits) {
|
||||
unsigned word_idx = set_bit / 32;
|
||||
unsigned bit_idx = set_bit % 32;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue