Skip to content

Commit ebce18a

Browse files
Merge pull request #3217 from romainbrenguier/bugfix/is_bmp_code_point
Fix is_bmp_code_point
2 parents db7bff3 + 8424f87 commit ebce18a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jbmc/src/java_bytecode/character_refine_preprocess.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,9 @@ codet character_refine_preprocesst::convert_is_alphabetic(
402402
exprt character_refine_preprocesst::expr_of_is_bmp_code_point(
403403
const exprt &chr, const typet &type)
404404
{
405-
binary_relation_exprt is_bmp(chr, ID_le, from_integer(0xFFFF, chr.type()));
406-
return is_bmp;
405+
return and_exprt(
406+
binary_relation_exprt(chr, ID_le, from_integer(0xFFFF, chr.type())),
407+
binary_relation_exprt(chr, ID_ge, from_integer(0, chr.type())));
407408
}
408409

409410
/// Converts function call to an assignment of an expression corresponding to

0 commit comments

Comments
 (0)