Skip to content

Commit

Permalink
Merge pull request #287 from UQ-PAC/bap-missing-addr
Browse files Browse the repository at this point in the history
fix bap loader with missing proc address
  • Loading branch information
ailrst authored Dec 11, 2024
2 parents 4d3f703 + 8ab1002 commit d2df5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/translating/BAPToIR.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class BAPToIR(var program: BAPProgram, mainAddress: BigInt) {
for (p <- s.out) {
procedure.out.append(translateParameter(p))
}
if (s.address.get == mainAddress) {
if (s.address.contains(mainAddress)) {
mainProcedure = Some(procedure)
}
procedures.append(procedure)
Expand Down

0 comments on commit d2df5db

Please sign in to comment.