Skip to content

Commit

Permalink
fix bap loader with missing proc address
Browse files Browse the repository at this point in the history
- this occurs when bap emits intrinsic functions (e.g. AtomicStart)
  • Loading branch information
ailrst committed Dec 11, 2024
1 parent 4cb64c0 commit 8ab1002
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 8ab1002

Please sign in to comment.