We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
topological_sort
1 parent 4426e88 commit 9c0c27cCopy full SHA for 9c0c27c
test/cse.jl
@@ -45,4 +45,12 @@ end
45
let_expr = cse(expr)
46
@test isempty(let_expr.pairs)
47
@test isequal(let_expr.body, a)
48
+
49
+ # array symbolics
50
+ # https://github.com/JuliaSymbolics/SymbolicUtils.jl/pull/688#pullrequestreview-2554931739
51
+ @syms c
52
+ function foo end
53
+ ex = term(foo, [a^2 + b^2, b^2 + c], c; type = Real)
54
+ sorted_nodes = topological_sort(ex)
55
+ @test length(sorted_nodes) == 6
56
end
0 commit comments