@@ -382,7 +382,7 @@ void goto_symext::constant_propagate_empty_string(
382
382
symex_assignt &symex_assign,
383
383
const function_application_exprt &f_l1)
384
384
{
385
- const auto &f_type = to_mathematical_function_type ( f_l1.function (). type () );
385
+ const auto &f_type = f_l1.function_type ( );
386
386
const auto &length_type = f_type.domain ().at (0 );
387
387
const auto &char_type = to_pointer_type (f_type.domain ().at (1 )).subtype ();
388
388
@@ -410,7 +410,7 @@ bool goto_symext::constant_propagate_string_concat(
410
410
symex_assignt &symex_assign,
411
411
const function_application_exprt &f_l1)
412
412
{
413
- const auto &f_type = to_mathematical_function_type ( f_l1.function (). type () );
413
+ const auto &f_type = f_l1.function_type ( );
414
414
const auto &length_type = f_type.domain ().at (0 );
415
415
const auto &char_type = to_pointer_type (f_type.domain ().at (1 )).subtype ();
416
416
@@ -465,7 +465,7 @@ bool goto_symext::constant_propagate_string_substring(
465
465
PRECONDITION (num_operands >= 4 );
466
466
PRECONDITION (num_operands <= 5 );
467
467
468
- const auto &f_type = to_mathematical_function_type ( f_l1.function (). type () );
468
+ const auto &f_type = f_l1.function_type ( );
469
469
const auto &length_type = f_type.domain ().at (0 );
470
470
const auto &char_type = to_pointer_type (f_type.domain ().at (1 )).subtype ();
471
471
@@ -557,7 +557,7 @@ bool goto_symext::constant_propagate_integer_to_string(
557
557
PRECONDITION (num_operands >= 3 );
558
558
PRECONDITION (num_operands <= 4 );
559
559
560
- const auto &f_type = to_mathematical_function_type ( f_l1.function (). type () );
560
+ const auto &f_type = f_l1.function_type ( );
561
561
const auto &length_type = f_type.domain ().at (0 );
562
562
const auto &char_type = to_pointer_type (f_type.domain ().at (1 )).subtype ();
563
563
@@ -633,7 +633,7 @@ bool goto_symext::constant_propagate_delete_char_at(
633
633
// - index of char to delete
634
634
PRECONDITION (f_l1.arguments ().size () == 4 );
635
635
636
- const auto &f_type = to_mathematical_function_type ( f_l1.function (). type () );
636
+ const auto &f_type = f_l1.function_type ( );
637
637
const auto &length_type = f_type.domain ().at (0 );
638
638
const auto &char_type = to_pointer_type (f_type.domain ().at (1 )).subtype ();
639
639
@@ -707,7 +707,7 @@ bool goto_symext::constant_propagate_delete(
707
707
// - index of end of substring to delete (exclusive)
708
708
PRECONDITION (f_l1.arguments ().size () == 5 );
709
709
710
- const auto &f_type = to_mathematical_function_type ( f_l1.function (). type () );
710
+ const auto &f_type = f_l1.function_type ( );
711
711
const auto &length_type = f_type.domain ().at (0 );
712
712
const auto &char_type = to_pointer_type (f_type.domain ().at (1 )).subtype ();
713
713
@@ -800,7 +800,7 @@ bool goto_symext::constant_propagate_set_length(
800
800
// - new length of the string
801
801
PRECONDITION (f_l1.arguments ().size () == 4 );
802
802
803
- const auto &f_type = to_mathematical_function_type ( f_l1.function (). type () );
803
+ const auto &f_type = f_l1.function_type ( );
804
804
const auto &length_type = f_type.domain ().at (0 );
805
805
const auto &char_type = to_pointer_type (f_type.domain ().at (1 )).subtype ();
806
806
@@ -882,7 +882,7 @@ bool goto_symext::constant_propagate_set_char_at(
882
882
// - new char
883
883
PRECONDITION (f_l1.arguments ().size () == 5 );
884
884
885
- const auto &f_type = to_mathematical_function_type ( f_l1.function (). type () );
885
+ const auto &f_type = f_l1.function_type ( );
886
886
const auto &length_type = f_type.domain ().at (0 );
887
887
const auto &char_type = to_pointer_type (f_type.domain ().at (1 )).subtype ();
888
888
@@ -945,7 +945,7 @@ bool goto_symext::constant_propagate_case_change(
945
945
const function_application_exprt &f_l1,
946
946
bool to_upper)
947
947
{
948
- const auto &f_type = to_mathematical_function_type ( f_l1.function (). type () );
948
+ const auto &f_type = f_l1.function_type ( );
949
949
const auto &length_type = f_type.domain ().at (0 );
950
950
const auto &char_type = to_pointer_type (f_type.domain ().at (1 )).subtype ();
951
951
@@ -1006,7 +1006,7 @@ bool goto_symext::constant_propagate_replace(
1006
1006
symex_assignt &symex_assign,
1007
1007
const function_application_exprt &f_l1)
1008
1008
{
1009
- const auto &f_type = to_mathematical_function_type ( f_l1.function (). type () );
1009
+ const auto &f_type = f_l1.function_type ( );
1010
1010
const auto &length_type = f_type.domain ().at (0 );
1011
1011
const auto &char_type = to_pointer_type (f_type.domain ().at (1 )).subtype ();
1012
1012
@@ -1114,7 +1114,7 @@ bool goto_symext::constant_propagate_trim(
1114
1114
symex_assignt &symex_assign,
1115
1115
const function_application_exprt &f_l1)
1116
1116
{
1117
- const auto &f_type = to_mathematical_function_type ( f_l1.function (). type () );
1117
+ const auto &f_type = f_l1.function_type ( );
1118
1118
const auto &length_type = f_type.domain ().at (0 );
1119
1119
const auto &char_type = to_pointer_type (f_type.domain ().at (1 )).subtype ();
1120
1120
0 commit comments