Skip to content

Commit 4ddf046

Browse files
committed
Use logger in WOODState to reduce console spam
1 parent 3a7e9f9 commit 4ddf046

4 files changed

Lines changed: 138 additions & 132 deletions

File tree

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ dependencies {
2929
// Needed for AssemblyScript source mapping:
3030
//implementation("com.atlassian.sourcemap:sourcemap:2.0.0")
3131
implementation("com.google.code.gson:gson:2.11.0")
32+
33+
// Logging
34+
implementation("ch.qos.logback:logback-classic:1.5.32")
3235
}
3336

3437
tasks.test {

src/main/kotlin/be/ugent/topl/mio/concolic/Analyse.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fun process(r: ConcolicAnalysisResult): MultiverseNode {
5555
}
5656

5757
fun processPaths(paths: List<SymbolicValueMapping>, currentTimeStep: Int = 0): MultiverseNode {
58-
println("" + currentTimeStep + " " + paths[0].time_step)
58+
//println("" + currentTimeStep + " " + paths[0].time_step)
5959
var currentNode: MultiverseNode
6060
val primitiveNode = PrimitiveNode(paths[0].primitive, paths[0].arg)
6161
val startNode = if (currentTimeStep != paths[0].time_step) {

src/main/kotlin/be/ugent/topl/mio/debugger/Debugger.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,14 @@ open class Debugger(private val connection: Connection, start: Boolean = true, p
395395
fun reset() = send(13)
396396

397397
fun snapshot(): String {
398+
println("Taking snapshot")
398399
send(60)
399400
return messageQueue.waitForResponse {
400401
WOODState.fromLine(it)
401402
}.first
402403
}
403404
fun snapshotFull(): Pair<String, WOODDumpResponse> {
405+
println("Taking snapshot")
404406
send(60)
405407
return messageQueue.waitForResponse {
406408
WOODState.parseSnapshot(it)

0 commit comments

Comments
 (0)