Skip to content

Commit acb505b

Browse files
committed
Fix tests
1 parent 80734b6 commit acb505b

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

usvm-ts/src/test/kotlin/org/usvm/samples/checkers/UnreachableCodeDetector.kt

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.usvm.samples.checkers
22

3+
import org.jacodb.ets.model.EtsScene
4+
import org.jacodb.ets.utils.loadEtsFileAutoConvert
35
import org.jacodb.ets.utils.loadEtsProjectFromIR
46
import org.junit.jupiter.api.Test
57
import org.usvm.UMachineOptions
@@ -11,18 +13,15 @@ import org.usvm.util.getResourcePath
1113
class UnreachableCodeDetectorTest {
1214
@Test
1315
fun testUnreachableCode() {
14-
// val scene = run {
15-
// val name = "UnreachableCode.ts"
16-
// val path = getResourcePath("/samples/checkers/$name")
17-
// val file = loadEtsFileAutoConvert(
18-
// path,
19-
// useArkAnalyzerTypeInference = 1
20-
// )
21-
// EtsScene(listOf(file))
22-
// }
23-
24-
val path = getResourcePath("/projects/Demo_Calc/etsir")
25-
val scene = loadEtsProjectFromIR(path, null)
16+
val scene = run {
17+
val name = "UnreachableCode.ts"
18+
val path = getResourcePath("/samples/checkers/$name")
19+
val file = loadEtsFileAutoConvert(
20+
path,
21+
useArkAnalyzerTypeInference = 1
22+
)
23+
EtsScene(listOf(file))
24+
}
2625

2726
val options = UMachineOptions()
2827
val tsOptions = TsOptions(interproceduralAnalysis = false)

0 commit comments

Comments
 (0)