|
27 | 27 | #include "simplify_expr_with_value_set.h" |
28 | 28 | #include "symex_target_equation.h" |
29 | 29 |
|
30 | | -static void get_l1_name(exprt &expr); |
31 | | - |
32 | 30 | goto_symex_statet::goto_symex_statet( |
33 | 31 | const symex_targett::sourcet &_source, |
34 | 32 | std::size_t max_field_sensitive_array_size, |
@@ -129,20 +127,7 @@ renamedt<ssa_exprt, L2> goto_symex_statet::assignment( |
129 | 127 | else |
130 | 128 | propagation.erase_if_exists(l1_identifier); |
131 | 129 |
|
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); |
146 | 131 |
|
147 | 132 | #ifdef DEBUG |
148 | 133 | std::cout << "Assigning " << l1_identifier << '\n'; |
@@ -789,17 +774,6 @@ void goto_symex_statet::rename( |
789 | 774 | l1_type_entry.first->second=type; |
790 | 775 | } |
791 | 776 |
|
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 | | - |
803 | 777 | /// Dumps the current state of symex, printing the function name and location |
804 | 778 | /// number for each stack frame in the currently active thread. |
805 | 779 | /// This is for use from the debugger or in debug code; please don't delete it |
|
0 commit comments