File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ symbol_exprt get_or_create_string_literal_symbol(
84
84
symbolt new_symbol;
85
85
new_symbol.name = escaped_symbol_name_with_prefix;
86
86
new_symbol.type = string_type;
87
+ new_symbol.type .set (ID_C_constant, true );
87
88
new_symbol.base_name = escaped_symbol_name;
88
89
new_symbol.pretty_name = value;
89
90
new_symbol.mode = ID_java;
@@ -131,6 +132,7 @@ symbol_exprt get_or_create_string_literal_symbol(
131
132
array_symbol.is_state_var = true ;
132
133
array_symbol.value = data;
133
134
array_symbol.type = array_symbol.value .type ();
135
+ array_symbol.type .set (ID_C_constant, true );
134
136
135
137
if (symbol_table.add (array_symbol))
136
138
throw " failed to add constarray symbol to symbol table" ;
@@ -161,6 +163,7 @@ symbol_exprt get_or_create_string_literal_symbol(
161
163
java_int_type (),
162
164
symbol_table);
163
165
return_symbol.type = return_symbol.value .type ();
166
+ return_symbol.type .set (ID_C_constant, true );
164
167
if (symbol_table.add (return_symbol))
165
168
throw " failed to add return symbol to symbol table" ;
166
169
You can’t perform that action at this time.
0 commit comments