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.
1 parent 5f1f8ff commit b38a2a6Copy full SHA for b38a2a6
test/cse.jl
@@ -6,9 +6,9 @@ using SymbolicUtils.Code: topological_sort
6
t = cse(hypot(hypot(cos(x), sin(x)), atan(cos(x), sin(x))))
7
8
@test t isa Let
9
- @test length(t.pairs) == 2
10
- @test occursin(t.pairs[1].lhs, t.body)
11
- @test occursin(t.pairs[2].lhs, t.body)
+ @test length(t.pairs) == 4
+ @test occursin(t.pairs[3].lhs, t.body)
+ @test occursin(t.pairs[4].lhs, t.body)
12
end
13
14
@testset "DAG CSE" begin
0 commit comments