@@ -615,26 +615,27 @@ void c_typecheck_baset::typecheck_array_type(array_typet &type)
615
615
}
616
616
617
617
// Need to pull out! We insert new symbol.
618
- unsigned count = 0 ;
618
+ unsigned count= 0 ;
619
619
irep_idt temp_identifier;
620
620
std::string suffix;
621
621
622
622
do
623
623
{
624
- suffix = " $array_size" + std::to_string (count);
625
- temp_identifier = id2string (current_symbol.name ) + suffix;
624
+ suffix= " $array_size" + std::to_string (count);
625
+ temp_identifier= id2string (current_symbol.name )+ suffix;
626
626
count++;
627
- } while (symbol_table.symbols .find (temp_identifier) !=
628
- symbol_table.symbols .end ());
627
+ }
628
+ while (symbol_table.symbols .find (temp_identifier)!=
629
+ symbol_table.symbols .end ());
629
630
630
631
// add the symbol to symbol table
631
632
auxiliary_symbolt new_symbol;
632
- new_symbol.name = temp_identifier;
633
- new_symbol.pretty_name = id2string (current_symbol.pretty_name ) + suffix;
634
- new_symbol.base_name = id2string (current_symbol.base_name ) + suffix;
635
- new_symbol.type = size.type ();
633
+ new_symbol.name = temp_identifier;
634
+ new_symbol.pretty_name = id2string (current_symbol.pretty_name )+ suffix;
635
+ new_symbol.base_name = id2string (current_symbol.base_name )+ suffix;
636
+ new_symbol.type = size.type ();
636
637
new_symbol.type .set (ID_C_constant, true );
637
- new_symbol.value = size;
638
+ new_symbol.value = size;
638
639
new_symbol.location = size_source_location;
639
640
new_symbol.mode = mode;
640
641
@@ -648,7 +649,7 @@ void c_typecheck_baset::typecheck_array_type(array_typet &type)
648
649
649
650
code_assignt assignment;
650
651
assignment.lhs ()=symbol_expr;
651
- assignment.rhs () = size;
652
+ assignment.rhs ()= size;
652
653
assignment.add_source_location () = size_source_location;
653
654
654
655
// store the code
0 commit comments