From 8ab100262505af32c31a26d3028de2f13813e3ab Mon Sep 17 00:00:00 2001 From: Alistair Michael Date: Wed, 11 Dec 2024 13:19:45 +1000 Subject: [PATCH] fix bap loader with missing proc address - this occurs when bap emits intrinsic functions (e.g. AtomicStart) --- src/main/scala/translating/BAPToIR.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/translating/BAPToIR.scala b/src/main/scala/translating/BAPToIR.scala index 9793022cb..46e8daa87 100644 --- a/src/main/scala/translating/BAPToIR.scala +++ b/src/main/scala/translating/BAPToIR.scala @@ -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)