Skip to content

Commit

Permalink
BASIL-19: Fixed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggyfish committed Oct 5, 2023
1 parent 3109458 commit e96fdcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/scala/analysis/NonReturningFunctions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class NonReturningFunctions {
case directCall: DirectCall =>
directCall.returnTarget match {
case Some(t) =>

blocksToRemove.enqueue(t.label)
case _ =>
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/util/RunUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ object RunUtils {

val IRTranslator = BAPToIR(bapProgram, mainAddress, externalFunctions)
var IRProgram = IRTranslator.translate
NonReturningFunctions().transform(IRProgram.procedures, externalFunctions)
NonReturningFunctions().transform(IRProgram.procedures)

val specification = loadSpecification(specFileName, IRProgram, globals)

Expand Down

0 comments on commit e96fdcb

Please sign in to comment.