File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
usvm-python/usvm-python-runner/src
main/kotlin/org/usvm/runner
test/kotlin/org/usvm/runner Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,8 @@ class PythonSymbolicAnalysisRunnerImpl(
74
74
): Thread() {
75
75
override fun run () {
76
76
val start = System .currentTimeMillis()
77
- while (System .currentTimeMillis() - start < runConfig.timeoutMs && readingThread.isAlive && process.isAlive) {
78
- if (isCancelled()) {
79
- readingThread.interrupt()
80
- }
81
- TimeUnit .MILLISECONDS .sleep(100 )
77
+ while (System .currentTimeMillis() - start < runConfig.timeoutMs && readingThread.isAlive && process.isAlive && ! isCancelled()) {
78
+ sleep(10 )
82
79
}
83
80
readingThread.interrupt()
84
81
}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import org.usvm.runner.venv.extractVenvConfig
4
4
import java.io.File
5
5
6
6
fun main () {
7
+ val start = System .currentTimeMillis()
7
8
val basePath = System .getProperty(" project.root" )
8
9
val layout = TestingLayout (basePath) // StandardLayout(File(basePath, "build/distributions/usvm-python"))
9
10
val mypyDir = File (basePath, " build/samples_build" )
@@ -22,7 +23,7 @@ fun main() {
22
23
" get_info" ,
23
24
" Point"
24
25
),
25
- 10_000 ,
26
+ 30_000 ,
26
27
3_000
27
28
)
28
29
/* val debugRunner = DebugRunner(config)
@@ -32,7 +33,7 @@ fun main() {
32
33
val receiver = PrintingResultReceiver ()
33
34
val runner = PythonSymbolicAnalysisRunnerImpl (config)
34
35
runner.use {
35
- val start = System .currentTimeMillis()
36
- it.analyze(runConfig, receiver) { System .currentTimeMillis() - start >= 20_000 }
36
+ it.analyze(runConfig, receiver) { System .currentTimeMillis() - start >= 5_000 }
37
37
}
38
+ println (" Time: ${System .currentTimeMillis() - start} " )
38
39
}
You can’t perform that action at this time.
0 commit comments