Skip to content

Commit 6de886c

Browse files
Inline variable used immediatly after
Declaring variables for this values doesn't add clarity and makes the function longer.
1 parent caff079 commit 6de886c

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
@@ -475,15 +475,11 @@ void goto_symext::symex_assign_symbol(
475475
<< messaget::eom;
476476
});
477477

478-
const exprt assignment_guard =
479-
make_and(state.guard.as_expr(), conjunction(guard));
480-
481-
const exprt original_lhs = get_original_name(l2_full_lhs);
482478
target.assignment(
483-
assignment_guard,
479+
make_and(state.guard.as_expr(), conjunction(guard)),
484480
l2_lhs,
485481
l2_full_lhs,
486-
original_lhs,
482+
get_original_name(l2_full_lhs),
487483
assignment.rhs,
488484
state.source,
489485
assignment_type);

0 commit comments

Comments
 (0)