Skip to content

Commit 5ce5218

Browse files
Use non-deprecation function for hex printing
add_axioms_from_int_hex is deprecated, we use add_axioms_for_string_of_int_with_radix instead.
1 parent e0f8b7a commit 5ce5218

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
@@ -281,7 +281,8 @@ add_axioms_for_format_specifier(
281281
return_code = add_axioms_for_string_of_int(res, get_arg(ID_int), 0, ns);
282282
return {res, std::move(return_code.second)};
283283
case format_specifiert::HEXADECIMAL_INTEGER:
284-
return_code = add_axioms_from_int_hex(res, get_arg(ID_int));
284+
return_code = add_axioms_for_string_of_int_with_radix(
285+
res, get_arg(ID_int), from_integer(16, index_type), 32, ns);
285286
return {res, std::move(return_code.second)};
286287
case format_specifiert::SCIENTIFIC:
287288
return_code = add_axioms_from_float_scientific_notation(

0 commit comments

Comments
 (0)