@@ -70,27 +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 (lhs_object.has_value () &&
84
- !ns.lookup (lhs_object->get_identifier (), symbol))
85
- {
86
- std::string type_string=from_type (ns, symbol->name , symbol->type );
87
-
88
- xml_assignment.set_attribute (" mode" , id2string (symbol->mode ));
89
- xml_assignment.set_attribute (" identifier" , id2string (symbol->name ));
90
- xml_assignment.set_attribute (" base_name" , id2string (symbol->base_name ));
91
- xml_assignment.set_attribute (" display_name" , id2string (symbol->display_name ()));
92
- xml_assignment.new_element (" type" ).data =type_string;
93
- }
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;
94
88
}
95
89
}
96
90
0 commit comments