Skip to content

Commit a5d9a5f

Browse files
committed
Put default initialisation of bv_encodingt in its definition
So that `bv_encodingt` can be more easily used in multiple places without the need to explicitly initialise its members.
1 parent 59169c0 commit a5d9a5f

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/util/bv_encoding.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ Author: Diffblue Ltd
1414
struct bv_encodingt final
1515
{
1616
// number of bits to encode heap object addresses
17-
std::size_t object_bits;
18-
bool is_object_bits_default;
19-
20-
static const std::size_t default_object_bits = 8;
17+
std::size_t object_bits = 8;
18+
bool is_object_bits_default = true;
2119
};
2220

2321
#endif // CPROVER_UTIL_BV_ENCODING_H

src/util/config.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -771,10 +771,6 @@ bool configt::set(const cmdlinet &cmdline)
771771

772772
cpp.cpp_standard=cppt::default_cpp_standard();
773773

774-
bv_encoding.object_bits=bv_encoding.default_object_bits;
775-
// This will allow us to override by language defaults later.
776-
bv_encoding.is_object_bits_default=true;
777-
778774
ansi_c.single_precision_constant=false;
779775
ansi_c.for_has_scope=true; // C99 or later
780776
ansi_c.ts_18661_3_Floatn_types=false;

0 commit comments

Comments
 (0)