@@ -70,30 +70,21 @@ void convert(
70
70
xml_assignment.new_element ().swap (xml_location);
71
71
72
72
{
73
- auto lhs_object = step.get_lhs_object ();
74
-
75
73
const symbolt *symbol;
76
74
77
75
if (
78
76
lhs_object.has_value () &&
79
77
!ns.lookup (lhs_object->get_identifier (), symbol))
80
78
{
81
- const symbolt *symbol;
82
-
83
- if (
84
- lhs_object.has_value () &&
85
- !ns.lookup (lhs_object->get_identifier (), symbol))
86
- {
87
- std::string type_string = from_type (ns, symbol->name , symbol->type );
88
-
89
- xml_assignment.set_attribute (" mode" , id2string (symbol->mode ));
90
- xml_assignment.set_attribute (" identifier" , id2string (symbol->name ));
91
- xml_assignment.set_attribute (
92
- " base_name" , id2string (symbol->base_name ));
93
- xml_assignment.set_attribute (
94
- " display_name" , id2string (symbol->display_name ()));
95
- xml_assignment.new_element (" type" ).data = type_string;
96
- }
79
+ std::string type_string = from_type (ns, symbol->name , symbol->type );
80
+
81
+ xml_assignment.set_attribute (" mode" , id2string (symbol->mode ));
82
+ xml_assignment.set_attribute (" identifier" , id2string (symbol->name ));
83
+ xml_assignment.set_attribute (
84
+ " base_name" , id2string (symbol->base_name ));
85
+ xml_assignment.set_attribute (
86
+ " display_name" , id2string (symbol->display_name ()));
87
+ xml_assignment.new_element (" type" ).data = type_string;
97
88
}
98
89
}
99
90
0 commit comments