Skip to content

Commit 64d5683

Browse files
committed
Improve style (braces around multi-line if/else cases/conditions)
1 parent 8358828 commit 64d5683

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/goto-symex/build_goto_trace.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,14 @@ void build_goto_trace(
285285
goto_trace_step.pc=SSA_step.source.pc;
286286
goto_trace_step.comment=SSA_step.comment;
287287
if(SSA_step.ssa_lhs.is_not_nil())
288+
{
288289
goto_trace_step.lhs_object=
289290
ssa_exprt(SSA_step.ssa_lhs.get_original_expr());
291+
}
290292
else
293+
{
291294
goto_trace_step.lhs_object.make_nil();
295+
}
292296
goto_trace_step.type=SSA_step.type;
293297
goto_trace_step.hidden=SSA_step.hidden;
294298
goto_trace_step.format_string=SSA_step.format_string;
@@ -309,9 +313,11 @@ void build_goto_trace(
309313
goto_trace_stept::assignment_typet::STATE;
310314

311315
if(SSA_step.original_full_lhs.is_not_nil())
316+
{
312317
goto_trace_step.full_lhs=
313318
build_full_lhs_rec(
314319
prop_conv, ns, SSA_step.original_full_lhs, SSA_step.ssa_full_lhs);
320+
}
315321

316322
if(SSA_step.ssa_lhs.is_not_nil())
317323
goto_trace_step.lhs_object_value=prop_conv.get(SSA_step.ssa_lhs);
@@ -326,7 +332,9 @@ void build_goto_trace(
326332
{
327333
if(j.is_constant() ||
328334
j.id()==ID_string_constant)
335+
{
329336
goto_trace_step.io_args.push_back(j);
337+
}
330338
else
331339
{
332340
exprt tmp=prop_conv.get(j);

0 commit comments

Comments
 (0)