Skip to content

Commit

Permalink
Return empty list of entries in empty CFG (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lipen authored Aug 16, 2024
1 parent fce4d81 commit 27245da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jacodb-ets/src/main/kotlin/org/jacodb/ets/graph/EtsCfg.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class EtsCfg(
get() = stmts

override val entries: List<EtsStmt>
get() = listOf(stmts.first())
get() = listOfNotNull(stmts.firstOrNull())

override val exits: List<EtsTerminatingStmt>
get() = instructions.filterIsInstance<EtsTerminatingStmt>()
Expand Down

0 comments on commit 27245da

Please sign in to comment.