@@ -30,7 +30,7 @@ class bv_utilst
3030
3131 enum class representationt { SIGNED, UNSIGNED };
3232
33- bvt build_constant (const mp_integer &i, std::size_t width);
33+ static bvt build_constant (const mp_integer &i, std::size_t width);
3434
3535 bvt incrementer (const bvt &op, literalt carry_in);
3636 bvt inc (const bvt &op) { return incrementer (op, const_literal (true )); }
@@ -44,7 +44,7 @@ class bv_utilst
4444 literalt overflow_negate (const bvt &op);
4545
4646 // bit-wise negation
47- bvt inverted (const bvt &op);
47+ static bvt inverted (const bvt &op);
4848
4949 literalt full_adder (
5050 const literalt a,
@@ -73,7 +73,7 @@ class bv_utilst
7373 SHIFT_LEFT, SHIFT_LRIGHT, SHIFT_ARIGHT, ROTATE_LEFT, ROTATE_RIGHT
7474 };
7575
76- bvt shift (const bvt &op, const shiftt shift, std::size_t distance);
76+ static bvt shift (const bvt &op, const shiftt shift, std::size_t distance);
7777 bvt shift (const bvt &op, const shiftt shift, const bvt &distance);
7878
7979 bvt unsigned_multiplier (const bvt &op0, const bvt &op1);
@@ -172,9 +172,10 @@ class bv_utilst
172172 literalt unsigned_less_than (const bvt &bv0, const bvt &bv1);
173173 literalt signed_less_than (const bvt &bv0, const bvt &bv1);
174174
175- bool is_constant (const bvt &bv);
175+ static bool is_constant (const bvt &bv);
176176
177- bvt extension (const bvt &bv, std::size_t new_size, representationt rep);
177+ static bvt
178+ extension (const bvt &bv, std::size_t new_size, representationt rep);
178179
179180 bvt sign_extension (const bvt &bv, std::size_t new_size)
180181 {
@@ -212,10 +213,10 @@ class bv_utilst
212213 static bvt extract_lsb (const bvt &a, std::size_t n);
213214
214215 // put a and b together, where a comes first (lower indices)
215- bvt concatenate (const bvt &a, const bvt &b) const ;
216+ static bvt concatenate (const bvt &a, const bvt &b);
216217
217218 literalt verilog_bv_has_x_or_z (const bvt &);
218- bvt verilog_bv_normal_bits (const bvt &);
219+ static bvt verilog_bv_normal_bits (const bvt &);
219220
220221protected:
221222 propt ∝
0 commit comments