Skip to content

Commit

Permalink
improved output
Browse files Browse the repository at this point in the history
  • Loading branch information
morbitzer committed Nov 10, 2023
1 parent 74e7203 commit f77c6e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ fun max(n: Node?, eval: ValueEvaluator = MultiValueEvaluator()): QueryTree<Numbe
fun dataFlow(from: Node, to: Node): QueryTree<Boolean> {
val evalRes = from.followNextDFGEdgesUntilHit { it == to }
val allPaths = evalRes.fulfilled.map { QueryTree(it) }.toMutableList()
allPaths.addAll(evalRes.failed.map { QueryTree(it) })
// allPaths.addAll(evalRes.failed.map { QueryTree(it) })
return QueryTree(
evalRes.fulfilled.isNotEmpty(),
allPaths.toMutableList(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ open class QueryTree<T>(
fun printNicely(depth: Int = 0): String {
var res =
" ".repeat(depth) +
"$stringRepresentation (==> $value)\n" +
"$stringRepresentation (==> ${if (value is List<*>) (value as List<*>).joinToString("\n","[", "]") else value})\n" +
"--------".repeat(depth + 1)
if (children.isNotEmpty()) {
res += "\n"
Expand Down

0 comments on commit f77c6e4

Please sign in to comment.