File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -430,6 +430,14 @@ array_string_exprt array_poolt::of_argument(const exprt &arg)
430
430
return find (string_argument.op1 (), string_argument.op0 ());
431
431
}
432
432
433
+ static irep_idt get_function_name (const function_application_exprt &expr)
434
+ {
435
+ const exprt &name = expr.function ();
436
+ PRECONDITION (name.id () == ID_symbol);
437
+ return is_ssa_expr (name) ? to_ssa_expr (name).get_object_name ()
438
+ : to_symbol_expr (name).get_identifier ();
439
+ }
440
+
433
441
// / strings contained in this call are converted to objects of type
434
442
// / `string_exprt`, through adding axioms. Axioms are then added to enforce that
435
443
// / the result corresponds to the function application.
@@ -438,12 +446,7 @@ array_string_exprt array_poolt::of_argument(const exprt &arg)
438
446
exprt string_constraint_generatort::add_axioms_for_function_application (
439
447
const function_application_exprt &expr)
440
448
{
441
- const exprt &name=expr.function ();
442
- PRECONDITION (name.id ()==ID_symbol);
443
-
444
- const irep_idt &id=is_ssa_expr (name)?to_ssa_expr (name).get_object_name ():
445
- to_symbol_expr (name).get_identifier ();
446
-
449
+ const irep_idt &id = get_function_name (expr);
447
450
exprt res;
448
451
449
452
if (id==ID_cprover_char_literal_func)
You can’t perform that action at this time.
0 commit comments