@@ -707,9 +707,9 @@ void java_bytecode_convert_methodt::replace_goto_target(
707
707
code_blockt &java_bytecode_convert_methodt::get_block_for_pcrange (
708
708
block_tree_nodet &tree,
709
709
code_blockt &this_block,
710
- unsigned address_start,
711
- unsigned address_limit,
712
- unsigned next_block_start_address)
710
+ std:: size_t address_start,
711
+ std:: size_t address_limit,
712
+ std:: size_t next_block_start_address)
713
713
{
714
714
address_mapt dummy;
715
715
return get_or_create_block_for_pcrange (
@@ -739,9 +739,9 @@ code_blockt &java_bytecode_convert_methodt::get_block_for_pcrange(
739
739
code_blockt &java_bytecode_convert_methodt::get_or_create_block_for_pcrange (
740
740
block_tree_nodet &tree,
741
741
code_blockt &this_block,
742
- unsigned address_start,
743
- unsigned address_limit,
744
- unsigned next_block_start_address,
742
+ std:: size_t address_start,
743
+ std:: size_t address_limit,
744
+ std:: size_t next_block_start_address,
745
745
const address_mapt &amap,
746
746
bool allow_merge)
747
747
{
@@ -771,7 +771,7 @@ code_blockt &java_bytecode_convert_methodt::get_or_create_block_for_pcrange(
771
771
tree.branch_addresses .begin (),
772
772
tree.branch_addresses .end (),
773
773
address_limit);
774
- unsigned findlim_block_start_address=
774
+ const auto findlim_block_start_address =
775
775
findlim==tree.branch_addresses .end () ?
776
776
next_block_start_address :
777
777
(*findlim);
@@ -917,7 +917,7 @@ code_blockt &java_bytecode_convert_methodt::get_or_create_block_for_pcrange(
917
917
}
918
918
919
919
static void gather_symbol_live_ranges (
920
- unsigned pc,
920
+ std:: size_t pc,
921
921
const exprt &e,
922
922
std::map<irep_idt, java_bytecode_convert_methodt::variablet> &result)
923
923
{
@@ -974,11 +974,11 @@ codet java_bytecode_convert_methodt::get_clinit_call(
974
974
}
975
975
}
976
976
977
- static unsigned get_bytecode_type_width (const typet &ty)
977
+ static std:: size_t get_bytecode_type_width (const typet &ty)
978
978
{
979
979
if (ty.id ()==ID_pointer)
980
980
return 32 ;
981
- return ty.get_unsigned_int (ID_width);
981
+ return ty.get_size_t (ID_width);
982
982
}
983
983
984
984
codet java_bytecode_convert_methodt::convert_instructions (
@@ -1046,7 +1046,7 @@ codet java_bytecode_convert_methodt::convert_instructions(
1046
1046
{
1047
1047
const std::vector<unsigned int > handler =
1048
1048
try_catch_handler (i_it->address , method.exception_table );
1049
- std::list<unsigned int > &successors = a_entry.first ->second .successors ;
1049
+ std::list<std:: size_t > &successors = a_entry.first ->second .successors ;
1050
1050
successors.insert (successors.end (), handler.begin (), handler.end ());
1051
1051
targets.insert (handler.begin (), handler.end ());
1052
1052
}
@@ -1692,7 +1692,7 @@ codet java_bytecode_convert_methodt::convert_instructions(
1692
1692
push (results);
1693
1693
1694
1694
instruction.done = true ;
1695
- for (const unsigned address : instruction.successors )
1695
+ for (const auto address : instruction.successors )
1696
1696
{
1697
1697
address_mapt::iterator a_it2=address_map.find (address);
1698
1698
CHECK_RETURN (a_it2 != address_map.end ());
0 commit comments