Skip to content

Commit 5b42bc7

Browse files
committed
Initialise variables in symex_target_equation.h
1 parent 1f8b504 commit 5b42bc7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/goto-symex/symex_target_equation.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class symex_target_equationt:public symex_targett
204204
bool is_atomic_end() const { return type==goto_trace_stept::typet::ATOMIC_END; }
205205

206206
// we may choose to hide
207-
bool hidden;
207+
bool hidden=false;
208208

209209
exprt guard;
210210
literalt guard_literal;
@@ -213,7 +213,7 @@ class symex_target_equationt:public symex_targett
213213
ssa_exprt ssa_lhs;
214214
exprt ssa_full_lhs, original_full_lhs;
215215
exprt ssa_rhs;
216-
assignment_typet assignment_type;
216+
assignment_typet assignment_type=assignment_typet::STATE;
217217

218218
// for ASSUME/ASSERT/GOTO/CONSTRAINT
219219
exprt cond_expr;
@@ -222,18 +222,18 @@ class symex_target_equationt:public symex_targett
222222

223223
// for INPUT/OUTPUT
224224
irep_idt format_string, io_id;
225-
bool formatted;
225+
bool formatted=false;
226226
std::list<exprt> io_args;
227227
std::list<exprt> converted_io_args;
228228

229229
// for function call/return
230230
irep_idt identifier;
231231

232232
// for SHARED_READ/SHARED_WRITE and ATOMIC_BEGIN/ATOMIC_END
233-
unsigned atomic_section_id;
233+
unsigned atomic_section_id=0;
234234

235235
// for slicing
236-
bool ignore;
236+
bool ignore=false;
237237

238238
SSA_stept():
239239
type(goto_trace_stept::typet::NONE),

0 commit comments

Comments
 (0)