@@ -338,6 +338,7 @@ codet character_refine_preprocesst::convert_high_surrogate(
338
338
exprt character_refine_preprocesst::expr_of_is_ascii_lower_case (
339
339
const exprt &chr, const typet &type)
340
340
{
341
+ (void )type;
341
342
return in_interval_expr (chr, ' a' , ' z' );
342
343
}
343
344
@@ -348,6 +349,7 @@ exprt character_refine_preprocesst::expr_of_is_ascii_lower_case(
348
349
exprt character_refine_preprocesst::expr_of_is_ascii_upper_case (
349
350
const exprt &chr, const typet &type)
350
351
{
352
+ (void )type;
351
353
return in_interval_expr (chr, ' A' , ' Z' );
352
354
}
353
355
@@ -402,6 +404,7 @@ codet character_refine_preprocesst::convert_is_alphabetic(
402
404
exprt character_refine_preprocesst::expr_of_is_bmp_code_point (
403
405
const exprt &chr, const typet &type)
404
406
{
407
+ (void )type;
405
408
binary_relation_exprt is_bmp (chr, ID_le, from_integer (0xFFFF , chr.type ()));
406
409
return is_bmp;
407
410
}
@@ -423,6 +426,7 @@ codet character_refine_preprocesst::convert_is_bmp_code_point(
423
426
exprt character_refine_preprocesst::expr_of_is_defined (
424
427
const exprt &chr, const typet &type)
425
428
{
429
+ (void )type;
426
430
// The following intervals are undefined in unicode, according to
427
431
// the Unicode Character Database: http://www.unicode.org/Public/UCD/latest/
428
432
exprt::operandst intervals;
@@ -487,6 +491,7 @@ codet character_refine_preprocesst::convert_is_defined_int(
487
491
exprt character_refine_preprocesst::expr_of_is_digit (
488
492
const exprt &chr, const typet &type)
489
493
{
494
+ (void )type;
490
495
exprt latin_digit=in_interval_expr (chr, ' 0' , ' 9' );
491
496
exprt arabic_indic_digit=in_interval_expr (chr, 0x660 , 0x669 );
492
497
exprt extended_digit=in_interval_expr (chr, 0x6F0 , 0x6F9 );
@@ -525,6 +530,7 @@ codet character_refine_preprocesst::convert_is_digit_int(
525
530
exprt character_refine_preprocesst::expr_of_is_high_surrogate (
526
531
const exprt &chr, const typet &type)
527
532
{
533
+ (void )type;
528
534
return in_interval_expr (chr, 0xD800 , 0xDBFF );
529
535
}
530
536
@@ -549,6 +555,7 @@ codet character_refine_preprocesst::convert_is_high_surrogate(
549
555
exprt character_refine_preprocesst::expr_of_is_identifier_ignorable (
550
556
const exprt &chr, const typet &type)
551
557
{
558
+ (void )type;
552
559
or_exprt ignorable (
553
560
in_interval_expr (chr, 0x0000 , 0x0008 ),
554
561
or_exprt (
@@ -776,6 +783,7 @@ codet character_refine_preprocesst::convert_is_low_surrogate(
776
783
exprt character_refine_preprocesst::expr_of_is_mirrored (
777
784
const exprt &chr, const typet &type)
778
785
{
786
+ (void )type;
779
787
return in_list_expr (chr, {0x28 , 0x29 , 0x3C , 0x3E , 0x5B , 0x5D , 0x7B , 0x7D });
780
788
}
781
789
@@ -818,6 +826,7 @@ codet character_refine_preprocesst::convert_is_space(conversion_inputt &target)
818
826
exprt character_refine_preprocesst::expr_of_is_space_char (
819
827
const exprt &chr, const typet &type)
820
828
{
829
+ (void )type;
821
830
std::list<mp_integer> space_characters=
822
831
{0x20 , 0x00A0 , 0x1680 , 0x202F , 0x205F , 0x3000 , 0x2028 , 0x2029 };
823
832
exprt condition0=in_list_expr (chr, space_characters);
@@ -852,6 +861,7 @@ codet character_refine_preprocesst::convert_is_space_char_int(
852
861
exprt character_refine_preprocesst::expr_of_is_supplementary_code_point (
853
862
const exprt &chr, const typet &type)
854
863
{
864
+ (void )type;
855
865
return binary_relation_exprt (chr, ID_gt, from_integer (0xFFFF , chr.type ()));
856
866
}
857
867
@@ -872,6 +882,7 @@ codet character_refine_preprocesst::convert_is_supplementary_code_point(
872
882
exprt character_refine_preprocesst::expr_of_is_surrogate (
873
883
const exprt &chr, const typet &type)
874
884
{
885
+ (void )type;
875
886
return in_interval_expr (chr, 0xD800 , 0xDFFF );
876
887
}
877
888
@@ -908,6 +919,7 @@ codet character_refine_preprocesst::convert_is_surrogate_pair(
908
919
exprt character_refine_preprocesst::expr_of_is_title_case (
909
920
const exprt &chr, const typet &type)
910
921
{
922
+ (void )type;
911
923
std::list<mp_integer>title_case_chars=
912
924
{0x01C5 , 0x01C8 , 0x01CB , 0x01F2 , 0x1FBC , 0x1FCC , 0x1FFC };
913
925
exprt::operandst conditions;
@@ -945,6 +957,7 @@ codet character_refine_preprocesst::convert_is_title_case_int(
945
957
exprt character_refine_preprocesst::expr_of_is_letter_number (
946
958
const exprt &chr, const typet &type)
947
959
{
960
+ (void )type;
948
961
// The following set of characters is the general category "Nl" in the
949
962
// Unicode specification.
950
963
exprt cond0=in_interval_expr (chr, 0x16EE , 0x16F0 );
@@ -1058,6 +1071,7 @@ codet character_refine_preprocesst::convert_is_upper_case_int(
1058
1071
exprt character_refine_preprocesst::expr_of_is_valid_code_point (
1059
1072
const exprt &chr, const typet &type)
1060
1073
{
1074
+ (void )type;
1061
1075
return binary_relation_exprt (chr, ID_le, from_integer (0x10FFFF , chr.type ()));
1062
1076
}
1063
1077
@@ -1082,6 +1096,7 @@ codet character_refine_preprocesst::convert_is_valid_code_point(
1082
1096
exprt character_refine_preprocesst::expr_of_is_whitespace (
1083
1097
const exprt &chr, const typet &type)
1084
1098
{
1099
+ (void )type;
1085
1100
exprt::operandst conditions;
1086
1101
std::list<mp_integer> space_characters=
1087
1102
{0x20 , 0x1680 , 0x205F , 0x3000 , 0x2028 , 0x2029 };
0 commit comments