We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5110f18 commit e525d5bCopy full SHA for e525d5b
src/java_bytecode/character_refine_preprocess.cpp
@@ -132,9 +132,13 @@ codet character_refine_preprocesst::convert_digit_char(
132
conversion_inputt &target)
133
{
134
const code_function_callt &function_call=target;
135
- assert(function_call.arguments().size()==2);
+ PRECONDITION(function_call.arguments().size()>=1);
136
const exprt &arg=function_call.arguments()[0];
137
- const exprt &radix=function_call.arguments()[1];
+ // If there is no radix argument we set it to 36 which is the maximum possible
138
+ const exprt &radix=
139
+ function_call.arguments().size()>1?
140
+ function_call.arguments()[1]:
141
+ from_integer(36, arg.type());
142
const exprt &result=function_call.lhs();
143
const typet &type=result.type();
144
0 commit comments