Skip to content

Commit d0e1b69

Browse files
committed
Whitespace formatting
1 parent 57a0c1c commit d0e1b69

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

jbmc/src/java_bytecode/java_bytecode_parser.cpp

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -705,15 +705,15 @@ void java_bytecode_parsert::rconstant_pool()
705705
break;
706706

707707
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
716715
break;
716+
}
717717

718718
case CONSTANT_MethodHandle:
719719
it->ref1 = read<u1>();
@@ -951,34 +951,34 @@ void java_bytecode_parsert::rbytecode(std::vector<instructiont> &instructions)
951951
break;
952952

953953
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)));
958957
address+=1;
959958
break;
959+
}
960960

961961
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)));
969968
address+=2;
970969
break;
970+
}
971971

972972
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)));
980979
address+=4;
981980
break;
981+
}
982982

983983
case 'v': // local variable index (one byte)
984984
{
@@ -1140,8 +1140,8 @@ void java_bytecode_parsert::rbytecode(std::vector<instructiont> &instructions)
11401140

11411141
case 's': // a signed short
11421142
{
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)));
11451145
}
11461146
address+=2;
11471147
break;

0 commit comments

Comments
 (0)