@@ -70,27 +70,21 @@ void convert(
7070 xml_assignment.new_element ().swap (xml_location);
7171
7272 {
73- auto lhs_object=step.get_lhs_object ();
74-
7573 const symbolt *symbol;
7674
7775 if (
7876 lhs_object.has_value () &&
7977 !ns.lookup (lhs_object->get_identifier (), symbol))
8078 {
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;
9488 }
9589 }
9690
0 commit comments