Skip to content

Commit 278adbd

Browse files
Use non-deprecated function for hex printing
add_axioms_from_int_hex is deprecated, we use add_axioms_for_string_of_int_with_radix instead.
1 parent 8c3a4f4 commit 278adbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/solvers/strings/string_constraint_generator_format.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ add_axioms_for_format_specifier(
285285
return_code = add_axioms_for_string_of_int(res, get_arg(ID_int), 0, ns);
286286
return {res, std::move(return_code.second)};
287287
case format_specifiert::HEXADECIMAL_INTEGER:
288-
return_code = add_axioms_from_int_hex(res, get_arg(ID_int));
288+
return_code = add_axioms_for_string_of_int_with_radix(
289+
res, get_arg(ID_int), from_integer(16, index_type), 16, ns);
289290
return {res, std::move(return_code.second)};
290291
case format_specifiert::SCIENTIFIC:
291292
return_code = add_axioms_from_float_scientific_notation(

0 commit comments

Comments
 (0)