We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96d572d commit 49799cbCopy full SHA for 49799cb
jbmc/src/java_bytecode/java_string_library_preprocess.cpp
@@ -831,16 +831,8 @@ void java_string_library_preprocesst::code_assign_java_string_to_string_expr(
831
{
832
PRECONDITION(implements_java_char_sequence_pointer(rhs.type()));
833
834
- typet deref_type;
835
- if(rhs.type().subtype().id() == ID_struct_tag)
836
- deref_type =
837
- symbol_table
838
- .lookup_ref(to_struct_tag_type(rhs.type().subtype()).get_identifier())
839
- .type;
840
- else
841
- deref_type=rhs.type().subtype();
842
-
843
- const dereference_exprt deref = checked_dereference(rhs, deref_type);
+ const dereference_exprt deref =
+ checked_dereference(rhs, rhs.type().subtype());
844
845
// Although we should not reach this code if rhs is null, the association
846
// `pointer -> length` is added to the solver anyway, so we have to make sure
0 commit comments