@@ -27,7 +27,7 @@ codet character_refine_preprocesst::convert_char_function(
27
27
conversion_inputt &target)
28
28
{
29
29
const code_function_callt &function_call=target;
30
- assert (function_call.arguments ().size ()== 1 );
30
+ PRECONDITION (function_call.arguments ().size () == 1 );
31
31
const exprt &arg=function_call.arguments ()[0 ];
32
32
const exprt &result=function_call.lhs ();
33
33
const typet &type=result.type ();
@@ -111,7 +111,7 @@ codet character_refine_preprocesst::convert_char_value(
111
111
codet character_refine_preprocesst::convert_compare (conversion_inputt &target)
112
112
{
113
113
const code_function_callt &function_call=target;
114
- assert (function_call.arguments ().size ()== 2 );
114
+ PRECONDITION (function_call.arguments ().size () == 2 );
115
115
const exprt &char1=function_call.arguments ()[0 ];
116
116
const exprt &char2=function_call.arguments ()[1 ];
117
117
const exprt &result=function_call.lhs ();
@@ -223,7 +223,7 @@ codet character_refine_preprocesst::convert_digit_int(conversion_inputt &target)
223
223
codet character_refine_preprocesst::convert_for_digit (conversion_inputt &target)
224
224
{
225
225
const code_function_callt &function_call=target;
226
- assert (function_call.arguments ().size ()== 2 );
226
+ PRECONDITION (function_call.arguments ().size () == 2 );
227
227
const exprt &digit=function_call.arguments ()[0 ];
228
228
const exprt &result=function_call.lhs ();
229
229
const typet &type=result.type ();
@@ -586,7 +586,7 @@ codet character_refine_preprocesst::convert_is_ideographic(
586
586
conversion_inputt &target)
587
587
{
588
588
const code_function_callt &function_call=target;
589
- assert (function_call.arguments ().size ()== 1 );
589
+ PRECONDITION (function_call.arguments ().size () == 1 );
590
590
const exprt &arg=function_call.arguments ()[0 ];
591
591
const exprt &result=function_call.lhs ();
592
592
exprt is_ideograph=in_interval_expr (arg, 0x4E00 , 0x9FFF );
@@ -600,7 +600,7 @@ codet character_refine_preprocesst::convert_is_ISO_control_char(
600
600
conversion_inputt &target)
601
601
{
602
602
const code_function_callt &function_call=target;
603
- assert (function_call.arguments ().size ()== 1 );
603
+ PRECONDITION (function_call.arguments ().size () == 1 );
604
604
const exprt &arg=function_call.arguments ()[0 ];
605
605
const exprt &result=function_call.lhs ();
606
606
or_exprt iso (
@@ -758,7 +758,7 @@ codet character_refine_preprocesst::convert_is_low_surrogate(
758
758
conversion_inputt &target)
759
759
{
760
760
const code_function_callt &function_call=target;
761
- assert (function_call.arguments ().size ()== 1 );
761
+ PRECONDITION (function_call.arguments ().size () == 1 );
762
762
const exprt &arg=function_call.arguments ()[0 ];
763
763
const exprt &result=function_call.lhs ();
764
764
exprt is_low_surrogate=in_interval_expr (arg, 0xDC00 , 0xDFFF );
@@ -895,7 +895,7 @@ codet character_refine_preprocesst::convert_is_surrogate_pair(
895
895
conversion_inputt &target)
896
896
{
897
897
const code_function_callt &function_call=target;
898
- assert (function_call.arguments ().size ()== 2 );
898
+ PRECONDITION (function_call.arguments ().size () == 2 );
899
899
const exprt &arg0=function_call.arguments ()[0 ];
900
900
const exprt &arg1=function_call.arguments ()[1 ];
901
901
const exprt &result=function_call.lhs ();
0 commit comments