Skip to content

Commit a53ad56

Browse files
committed
Comment logging of inferred types
1 parent 4e2e161 commit a53ad56

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

usvm-dataflow-ts/src/main/kotlin/org/usvm/dataflow/ts/infer/TypeInferenceManager.kt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -370,14 +370,14 @@ class TypeInferenceManager(
370370
}
371371
}.toMap()
372372
}
373-
logger.info {
374-
buildString {
375-
appendLine("Return types:")
376-
for ((method, type) in inferredReturnTypes) {
377-
appendLine("Return type for ${method.signature.enclosingClass.file}::${method.signature.enclosingClass.name}::${method.name}: ${type.toPrettyString()}")
378-
}
379-
}
380-
}
373+
// logger.info {
374+
// buildString {
375+
// appendLine("Return types:")
376+
// for ((method, type) in inferredReturnTypes) {
377+
// appendLine("Return type for ${method.signature.enclosingClass.file}::${method.signature.enclosingClass.name}::${method.name}: ${type.toPrettyString()}")
378+
// }
379+
// }
380+
// }
381381

382382
val inferredLocalTypes: Map<EtsMethod, Map<AccessPathBase, EtsTypeFact>>? = if (doInferAllLocals) {
383383
forwardSummaries.asSequence().map { (method, summaries) ->
@@ -411,17 +411,17 @@ class TypeInferenceManager(
411411
}
412412

413413
if (inferredLocalTypes != null) {
414-
logger.info {
415-
buildString {
416-
appendLine("Local types:")
417-
for ((method, localTypes) in inferredLocalTypes) {
418-
appendLine("Local types for ${method.signature.enclosingClass.name}::${method.name} in ${method.signature.enclosingClass.file}:")
419-
for ((base, fact) in localTypes.entries.sortedBy { (it.key as AccessPathBase.Local).name }) {
420-
appendLine("$base: ${fact.toPrettyString()}")
421-
}
422-
}
423-
}
424-
}
414+
// logger.info {
415+
// buildString {
416+
// appendLine("Local types:")
417+
// for ((method, localTypes) in inferredLocalTypes) {
418+
// appendLine("Local types for ${method.signature.enclosingClass.name}::${method.name} in ${method.signature.enclosingClass.file}:")
419+
// for ((base, fact) in localTypes.entries.sortedBy { (it.key as AccessPathBase.Local).name }) {
420+
// appendLine("$base: ${fact.toPrettyString()}")
421+
// }
422+
// }
423+
// }
424+
// }
425425

426426
for ((method, localFacts) in inferredLocalTypes) {
427427
val facts = refinedTypes[method]

0 commit comments

Comments
 (0)