Skip to content

Commit 2a1069f

Browse files
committed
Fix un-initialised fields in decision_procedure_objectt
The resolves a potential issue which clang-tidy warns about.
1 parent 4cb3bff commit 2a1069f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solvers/smt2_incremental/object_tracking.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ struct decision_procedure_objectt
4343
/// to deferencing a pointer to this object with a zero offset.
4444
exprt base_expression;
4545
/// Number which uniquely identifies this particular object.
46-
std::size_t unique_id;
46+
std::size_t unique_id = 0;
4747
/// Expression which evaluates to the size of the object in bytes.
4848
exprt size;
4949
/// This is true for heap allocated objects and false for stack allocated.
50-
bool is_dynamic;
50+
bool is_dynamic = false;
5151
};
5252

5353
/// The model of addresses we use consists of a unique object identifier and an

0 commit comments

Comments
 (0)