File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
usvm-ts/src/test/kotlin/org/usvm/samples/checkers Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 11package org.usvm.samples.checkers
22
3+ import org.jacodb.ets.model.EtsScene
4+ import org.jacodb.ets.utils.loadEtsFileAutoConvert
35import org.jacodb.ets.utils.loadEtsProjectFromIR
46import org.junit.jupiter.api.Test
57import org.usvm.UMachineOptions
@@ -11,18 +13,15 @@ import org.usvm.util.getResourcePath
1113class 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 )
You can’t perform that action at this time.
0 commit comments