Skip to content

Commit daef30f

Browse files
Splitting is_string and init_string parts of init
1 parent ad65847 commit daef30f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/java_bytecode/java_object_factory.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -629,11 +629,6 @@ static bool add_nondet_string_pointer_initialization(
629629
const source_locationt &loc,
630630
code_blockt &code)
631631
{
632-
if(
633-
!java_string_library_preprocesst::implements_java_char_sequence_pointer(
634-
expr.type()))
635-
return true;
636-
637632
const namespacet ns(symbol_table);
638633
const dereference_exprt obj(expr, expr.type().subtype());
639634
const struct_typet &struct_type =
@@ -786,12 +781,17 @@ void java_object_factoryt::gen_nondet_pointer_init(
786781
code_blockt non_null_inst;
787782

788783
if(
784+
java_string_library_preprocesst::implements_java_char_sequence_pointer(
785+
expr.type()))
786+
{
789787
add_nondet_string_pointer_initialization(
790788
expr,
791789
object_factory_parameters.max_nondet_string_length,
792790
symbol_table,
793791
loc,
794-
assignments))
792+
assignments);
793+
}
794+
else
795795
{
796796
gen_pointer_target_init(
797797
non_null_inst,

0 commit comments

Comments
 (0)