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 475fe20 commit f5b465dCopy full SHA for f5b465d
src/solvers/flattening/boolbv_get.cpp
@@ -222,10 +222,8 @@ exprt boolbvt::bv_get_rec(
222
223
for(std::size_t bit_nr=offset; bit_nr<offset+width; bit_nr++)
224
{
225
- char ch;
226
- if(unknown[bit_nr])
227
- ch='0';
228
- else
+ char ch = '0';
+ if(!unknown[bit_nr])
229
230
switch(prop.l_get(bv[bit_nr]).get_value())
231
@@ -249,7 +247,7 @@ exprt boolbvt::bv_get_rec(
249
247
if(int_value>=string_numbering.size())
250
248
s=irep_idt();
251
else
252
- s=string_numbering[int_value.to_long()];
+ s = string_numbering[numeric_cast_v<std::size_t>(int_value)];
253
254
return constant_exprt(s, type);
255
}
0 commit comments