Skip to content

Commit 047c065

Browse files
committed
bv_utilst::zeros: use the most appropriate constructor
There is no need to first create an empty bit vector and then populate it. Use RAII instead.
1 parent 320ab53 commit 047c065

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/solvers/flattening/bv_utils.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,7 @@ class bv_utilst
191191

192192
static bvt zeros(std::size_t new_size)
193193
{
194-
bvt result;
195-
result.resize(new_size, const_literal(false));
196-
return result;
194+
return bvt(new_size, const_literal(false));
197195
}
198196

199197
void set_equal(const bvt &a, const bvt &b);

0 commit comments

Comments
 (0)