@@ -30,7 +30,7 @@ class bv_utilst
30
30
31
31
enum class representationt { SIGNED, UNSIGNED };
32
32
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);
34
34
35
35
bvt incrementer (const bvt &op, literalt carry_in);
36
36
bvt inc (const bvt &op) { return incrementer (op, const_literal (true )); }
@@ -44,7 +44,7 @@ class bv_utilst
44
44
literalt overflow_negate (const bvt &op);
45
45
46
46
// bit-wise negation
47
- bvt inverted (const bvt &op);
47
+ static bvt inverted (const bvt &op);
48
48
49
49
literalt full_adder (
50
50
const literalt a,
@@ -73,7 +73,7 @@ class bv_utilst
73
73
SHIFT_LEFT, SHIFT_LRIGHT, SHIFT_ARIGHT, ROTATE_LEFT, ROTATE_RIGHT
74
74
};
75
75
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);
77
77
bvt shift (const bvt &op, const shiftt shift, const bvt &distance);
78
78
79
79
bvt unsigned_multiplier (const bvt &op0, const bvt &op1);
@@ -172,9 +172,10 @@ class bv_utilst
172
172
literalt unsigned_less_than (const bvt &bv0, const bvt &bv1);
173
173
literalt signed_less_than (const bvt &bv0, const bvt &bv1);
174
174
175
- bool is_constant (const bvt &bv);
175
+ static bool is_constant (const bvt &bv);
176
176
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);
178
179
179
180
bvt sign_extension (const bvt &bv, std::size_t new_size)
180
181
{
@@ -212,10 +213,10 @@ class bv_utilst
212
213
static bvt extract_lsb (const bvt &a, std::size_t n);
213
214
214
215
// 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);
216
217
217
218
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 &);
219
220
220
221
protected:
221
222
propt ∝
0 commit comments