@@ -293,10 +293,17 @@ exprt::operandst java_string_library_preprocesst::process_parameters(
293
293
// / sequence
294
294
// / \param loc: location in the source
295
295
// / \param symbol_table: symbol table
296
- // / \param init_code: code block, in which declaration of some arguments may be
297
- // / added
298
- // / \return the processed operand
299
- exprt java_string_library_preprocesst::convert_exprt_to_string_exprt (
296
+ // / \param init_code: code block, in which declaration will be added:
297
+ // / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
298
+ // / char *cprover_string_content;
299
+ // / int cprover_string_length;
300
+ // / cprover_string_length = a->length;
301
+ // / cprover_string_content = a->data;
302
+ // / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
303
+ // / \return the processed operand:
304
+ // / {content=cprover_string_content, length=cprover_string_length}
305
+ refined_string_exprt
306
+ java_string_library_preprocesst::convert_exprt_to_string_exprt (
300
307
const exprt &expr_to_process,
301
308
const source_locationt &loc,
302
309
symbol_tablet &symbol_table,
@@ -358,6 +365,7 @@ exprt::operandst
358
365
code_blockt &init_code)
359
366
{
360
367
PRECONDITION (operands.size ()==2 );
368
+ exprt::operandst ops;
361
369
const exprt &op0=operands[0 ];
362
370
const exprt &op1 = operands[1 ];
363
371
PRECONDITION (implements_java_char_sequence_pointer (op0.type ()));
@@ -650,8 +658,8 @@ exprt make_nondet_infinite_char_array(
650
658
java_char_type (), infinity_exprt (java_int_type ()));
651
659
const symbolt data_sym = get_fresh_aux_symbol (
652
660
array_type,
653
- " nondet_inifinite_array " ,
654
- " nondet_inifinite_array " ,
661
+ " nondet_infinite_array " ,
662
+ " nondet_infinite_array " ,
655
663
loc,
656
664
ID_java,
657
665
symbol_table);
0 commit comments