@@ -27,8 +27,6 @@ Author: Daniel Kroening, kroening@kroening.com
2727#include " simplify_expr_with_value_set.h"
2828#include " symex_target_equation.h"
2929
30- static void get_l1_name (exprt &expr);
31-
3230goto_symex_statet::goto_symex_statet (
3331 const symex_targett::sourcet &_source,
3432 std::size_t max_field_sensitive_array_size,
@@ -129,20 +127,7 @@ renamedt<ssa_exprt, L2> goto_symex_statet::assignment(
129127 else
130128 propagation.erase_if_exists (l1_identifier);
131129
132- {
133- // update value sets
134- exprt l1_rhs (rhs);
135- get_l1_name (l1_rhs);
136-
137- const ssa_exprt l1_lhs = remove_level_2 (lhs);
138- if (run_validation_checks)
139- {
140- DATA_INVARIANT (!check_renaming_l1 (l1_lhs), " lhs renaming failed on l1" );
141- DATA_INVARIANT (!check_renaming_l1 (l1_rhs), " rhs renaming failed on l1" );
142- }
143-
144- value_set.assign (l1_lhs, l1_rhs, ns, rhs_is_simplified, is_shared);
145- }
130+ value_set.assign (lhs, rhs, ns, rhs_is_simplified, is_shared);
146131
147132#ifdef DEBUG
148133 std::cout << " Assigning " << l1_identifier << ' \n ' ;
@@ -789,17 +774,6 @@ void goto_symex_statet::rename(
789774 l1_type_entry.first ->second =type;
790775}
791776
792- static void get_l1_name (exprt &expr)
793- {
794- // do not reset the type !
795-
796- if (is_ssa_expr (expr))
797- to_ssa_expr (expr).remove_level_2 ();
798- else
799- Forall_operands (it, expr)
800- get_l1_name (*it);
801- }
802-
803777// / Dumps the current state of symex, printing the function name and location
804778// / number for each stack frame in the currently active thread.
805779// / This is for use from the debugger or in debug code; please don't delete it
0 commit comments