Skip to content

Commit 57a52d3

Browse files
committed
bv_utilst::sign_extension, zero_extension and zeros can be static
These methods do not use any state of bv_utilst and can therefore be static.
1 parent da7edc5 commit 57a52d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/solvers/flattening/bv_utils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,17 +179,17 @@ class bv_utilst
179179
static bvt
180180
extension(const bvt &bv, std::size_t new_size, representationt rep);
181181

182-
bvt sign_extension(const bvt &bv, std::size_t new_size)
182+
static bvt sign_extension(const bvt &bv, std::size_t new_size)
183183
{
184184
return extension(bv, new_size, representationt::SIGNED);
185185
}
186186

187-
bvt zero_extension(const bvt &bv, std::size_t new_size)
187+
static bvt zero_extension(const bvt &bv, std::size_t new_size)
188188
{
189189
return extension(bv, new_size, representationt::UNSIGNED);
190190
}
191191

192-
bvt zeros(std::size_t new_size) const
192+
static bvt zeros(std::size_t new_size)
193193
{
194194
bvt result;
195195
result.resize(new_size, const_literal(false));

0 commit comments

Comments
 (0)