@@ -705,15 +705,15 @@ void java_bytecode_parsert::rconstant_pool()
705
705
break ;
706
706
707
707
case CONSTANT_Utf8:
708
- {
709
- const u2 bytes = read<u2>();
710
- std::string s;
711
- s.resize (bytes);
712
- for (auto &ch : s)
713
- ch = read<std::string::value_type>();
714
- it->s = s; // Add to string table
715
- }
708
+ {
709
+ const u2 bytes = read<u2>();
710
+ std::string s;
711
+ s.resize (bytes);
712
+ for (auto &ch : s)
713
+ ch = read<std::string::value_type>();
714
+ it->s = s; // Add to string table
716
715
break ;
716
+ }
717
717
718
718
case CONSTANT_MethodHandle:
719
719
it->ref1 = read<u1>();
@@ -951,34 +951,34 @@ void java_bytecode_parsert::rbytecode(std::vector<instructiont> &instructions)
951
951
break ;
952
952
953
953
case ' b' : // a signed byte
954
- {
955
- const s1 c = read<s1>();
956
- instruction.args .push_back (from_integer (c, signedbv_typet (8 )));
957
- }
954
+ {
955
+ const s1 c = read<s1>();
956
+ instruction.args .push_back (from_integer (c, signedbv_typet (8 )));
958
957
address+=1 ;
959
958
break ;
959
+ }
960
960
961
961
case ' o' : // two byte branch offset, signed
962
- {
963
- const s2 offset = read<s2>();
964
- // By converting the signed offset into an absolute address (by adding
965
- // the current address) the number represented becomes unsigned.
966
- instruction.args .push_back (
967
- from_integer (address+offset, unsignedbv_typet (16 )));
968
- }
962
+ {
963
+ const s2 offset = read<s2>();
964
+ // By converting the signed offset into an absolute address (by adding
965
+ // the current address) the number represented becomes unsigned.
966
+ instruction.args .push_back (
967
+ from_integer (address + offset, unsignedbv_typet (16 )));
969
968
address+=2 ;
970
969
break ;
970
+ }
971
971
972
972
case ' O' : // four byte branch offset, signed
973
- {
974
- const s4 offset = read<s4>();
975
- // By converting the signed offset into an absolute address (by adding
976
- // the current address) the number represented becomes unsigned.
977
- instruction.args .push_back (
978
- from_integer (address+offset, unsignedbv_typet (32 )));
979
- }
973
+ {
974
+ const s4 offset = read<s4>();
975
+ // By converting the signed offset into an absolute address (by adding
976
+ // the current address) the number represented becomes unsigned.
977
+ instruction.args .push_back (
978
+ from_integer (address + offset, unsignedbv_typet (32 )));
980
979
address+=4 ;
981
980
break ;
981
+ }
982
982
983
983
case ' v' : // local variable index (one byte)
984
984
{
@@ -1140,8 +1140,8 @@ void java_bytecode_parsert::rbytecode(std::vector<instructiont> &instructions)
1140
1140
1141
1141
case ' s' : // a signed short
1142
1142
{
1143
- const s2 s = read<s2>();
1144
- instruction.args .push_back (from_integer (s, signedbv_typet (16 )));
1143
+ const s2 s = read<s2>();
1144
+ instruction.args .push_back (from_integer (s, signedbv_typet (16 )));
1145
1145
}
1146
1146
address+=2 ;
1147
1147
break ;
0 commit comments