Skip to content

Commit b2cd358

Browse files
committed
Cleanup of float_bvt
There is no intend for it to be inherited from, thus make members private.
1 parent c749b8f commit b2cd358

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/solvers/floatbv/float_bv.h

+2-11
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ Author: Daniel Kroening, [email protected]
1818
class float_bvt
1919
{
2020
public:
21-
float_bvt()
22-
{
23-
}
24-
25-
~float_bvt()
26-
{
27-
}
28-
2921
exprt operator()(const exprt &src)
3022
{
3123
return convert(src);
@@ -101,7 +93,7 @@ class float_bvt
10193
const exprt &,
10294
const ieee_float_spect &);
10395

104-
protected:
96+
private:
10597
// helpers
10698
ieee_float_spect get_spec(const exprt &);
10799
// still biased
@@ -116,7 +108,6 @@ class float_bvt
116108

117109
struct rounding_mode_bitst
118110
{
119-
public:
120111
// these are mutually exclusive, obviously
121112
exprt round_to_even;
122113
exprt round_to_zero;
@@ -168,7 +159,7 @@ class float_bvt
168159
biased_floatt bias(const unbiased_floatt &, const ieee_float_spect &);
169160

170161
// this takes unpacked format, and returns packed
171-
virtual exprt rounder(
162+
exprt rounder(
172163
const unbiased_floatt &,
173164
const exprt &rm,
174165
const ieee_float_spect &);

0 commit comments

Comments
 (0)