Skip to content

Commit d79f852

Browse files
Inline variables used immediatly after
Declaring variables for these values doesn't add clarity and makes the function longer.
1 parent af4cecc commit d79f852

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/goto-symex/symex_assign.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -480,15 +480,11 @@ void goto_symext::symex_assign_symbol(
480480
<< messaget::eom;
481481
});
482482

483-
const exprt assignment_guard =
484-
make_and(state.guard.as_expr(), conjunction(guard));
485-
486-
const exprt original_lhs = get_original_name(l2_full_lhs);
487483
target.assignment(
488-
assignment_guard,
484+
make_and(state.guard.as_expr(), conjunction(guard)),
489485
l2_lhs,
490486
l2_full_lhs,
491-
original_lhs,
487+
get_original_name(l2_full_lhs),
492488
assignment.rhs,
493489
state.source,
494490
assignment_type);

0 commit comments

Comments
 (0)