Difference of squares

Time bar (total: 4.3s)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

analyze0.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%99.9%0.1%0%0%0%0
100%99.9%0%0.1%0%0%0%1
Compiler

Compiled 9 to 7 computations (22.2% saved)

sample744.0ms (17.4%)

Memory
-10.2MiB live, 697.7MiB allocated
Samples
482.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 274.0ms
ival-mult: 174.0ms (63.6% of total)
ival-sub: 91.0ms (33.2% of total)
ival-true: 5.0ms (1.8% of total)
ival-assert: 3.0ms (1.1% of total)
Bogosity

explain87.0ms (2%)

Memory
2.7MiB live, 41.6MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
170-0-(-.f64 (*.f64 a a) (*.f64 b b))
00-0-(*.f64 a a)
00-0-a
00-0-b
00-0-(*.f64 b b)
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
-.f64(-.f64 (*.f64 a a) (*.f64 b b))nan-rescue170
(*.f64 a a)overflow68
(*.f64 b b)overflow70
Confusion
Predicted +Predicted -
+170
-0239
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+1700
-00239
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0239
117
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
20.0ms512×0valid
Compiler

Compiled 41 to 19 computations (53.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-mult: 7.0ms (75.2% of total)
ival-sub: 2.0ms (21.5% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess614.0ms (14.4%)

Memory
-1.1MiB live, 154.4MiB allocated
Algorithm
egg-herbie
Rules
24 584×lower-fma.f64
24 584×lower-fma.f32
5 200×lower-+.f64
5 200×lower-+.f32
3 934×associate-+r+
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01338
15135
214435
336635
489235
5122335
6175435
7234035
8415235
9472735
10484035
11495435
12503435
13503435
14641535
15739335
16787735
17789335
18789335
057
087
1167
2277
3537
41147
53157
65677
712387
824957
941247
1049977
1153667
1255967
1357107
1457107
1566707
1668307
1771507
1871507
1975507
2077107
2177907
2277907
2377907
0102687
Stop Event
iter limit
node limit
iter limit
node limit
Calls
Call 1
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
Outputs
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 (neg.f64 b) b (*.f64 a a))
Symmetry

(abs b)

(abs a)

Compiler

Compiled 7 to 5 computations (28.6% saved)

eval0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.8MiB live, 0.8MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
93.3%
(-.f64 (*.f64 a a) (*.f64 b b))
Compiler

Compiled 7 to 5 computations (28.6% saved)

simplify570.0ms (13.3%)

Memory
0.4MiB live, 252.1MiB allocated
Algorithm
egg-herbie
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 b b)
cost-diff0
(*.f64 a a)
cost-diff0
(-.f64 (*.f64 a a) (*.f64 b b))
Rules
24 584×lower-fma.f64
24 584×lower-fma.f32
5 200×lower-+.f64
5 200×lower-+.f32
3 934×associate-+r+
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0515
0815
11615
22715
35315
411415
531515
656715
7123815
8249515
9412415
10499715
11536615
12559615
13571015
14571015
15667015
16683015
17715015
18715015
19755015
20771015
21779015
22779015
23779015
01026815
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 a a)
a
(*.f64 b b)
b
Outputs
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(*.f64 a a)
a
(*.f64 b b)
b

localize30.0ms (0.7%)

Memory
-12.6MiB live, 25.9MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0
(*.f64 b b)
accuracy0
(*.f64 a a)
accuracy3.800764736641647
(-.f64 (*.f64 a a) (*.f64 b b))
Samples
27.0ms256×0valid
Compiler

Compiled 17 to 7 computations (58.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 21.0ms
ival-mult: 20.0ms (94.2% of total)
ival-sub: 1.0ms (4.7% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series4.0ms (0.1%)

Memory
7.4MiB live, 7.4MiB allocated
Counts
3 → 48
Calls
Call 1
Inputs
#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())
#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())
#s(alt (*.f64 b b) (patch (*.f64 b b) #<representation binary64>) () ())
Outputs
#s(alt (pow a 2) (taylor 0 b) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (+ (* -1 (pow b 2)) (pow a 2)) (taylor 0 b) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (+ (* -1 (pow b 2)) (pow a 2)) (taylor 0 b) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (+ (* -1 (pow b 2)) (pow a 2)) (taylor 0 b) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (pow b 2) (taylor 0 b) (#s(alt (*.f64 b b) (patch (*.f64 b b) #<representation binary64>) () ())) ())
#s(alt (pow b 2) (taylor 0 b) (#s(alt (*.f64 b b) (patch (*.f64 b b) #<representation binary64>) () ())) ())
#s(alt (pow b 2) (taylor 0 b) (#s(alt (*.f64 b b) (patch (*.f64 b b) #<representation binary64>) () ())) ())
#s(alt (pow b 2) (taylor 0 b) (#s(alt (*.f64 b b) (patch (*.f64 b b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor inf b) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor inf b) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor inf b) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor inf b) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (pow b 2) (taylor inf b) (#s(alt (*.f64 b b) (patch (*.f64 b b) #<representation binary64>) () ())) ())
#s(alt (pow b 2) (taylor inf b) (#s(alt (*.f64 b b) (patch (*.f64 b b) #<representation binary64>) () ())) ())
#s(alt (pow b 2) (taylor inf b) (#s(alt (*.f64 b b) (patch (*.f64 b b) #<representation binary64>) () ())) ())
#s(alt (pow b 2) (taylor inf b) (#s(alt (*.f64 b b) (patch (*.f64 b b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor -inf b) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor -inf b) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor -inf b) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor -inf b) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (pow b 2) (taylor -inf b) (#s(alt (*.f64 b b) (patch (*.f64 b b) #<representation binary64>) () ())) ())
#s(alt (pow b 2) (taylor -inf b) (#s(alt (*.f64 b b) (patch (*.f64 b b) #<representation binary64>) () ())) ())
#s(alt (pow b 2) (taylor -inf b) (#s(alt (*.f64 b b) (patch (*.f64 b b) #<representation binary64>) () ())) ())
#s(alt (pow b 2) (taylor -inf b) (#s(alt (*.f64 b b) (patch (*.f64 b b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor 0 a) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (- (pow a 2) (pow b 2)) (taylor 0 a) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (- (pow a 2) (pow b 2)) (taylor 0 a) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (- (pow a 2) (pow b 2)) (taylor 0 a) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor 0 a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor 0 a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor 0 a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor 0 a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor inf a) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor inf a) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor inf a) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor inf a) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor -inf a) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor -inf a) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor -inf a) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor -inf a) (#s(alt (-.f64 (*.f64 a a) (*.f64 b b)) (patch (-.f64 (*.f64 a a) (*.f64 b b)) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor -inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor -inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor -inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor -inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
Calls

6 calls:

TimeVariablePointExpression
1.0ms
b
@inf
((- (* a a) (* b b)) (* a a) (* b b))
1.0ms
b
@0
((- (* a a) (* b b)) (* a a) (* b b))
0.0ms
b
@-inf
((- (* a a) (* b b)) (* a a) (* b b))
0.0ms
a
@inf
((- (* a a) (* b b)) (* a a) (* b b))
0.0ms
a
@-inf
((- (* a a) (* b b)) (* a a) (* b b))

simplify460.0ms (10.8%)

Memory
3.3MiB live, 158.9MiB allocated
Algorithm
egg-herbie
Rules
12 540×lower-fma.f64
12 540×lower-fma.f32
3 658×lower-*.f64
3 658×lower-*.f32
1 136×lower-neg.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
017219
139219
2113219
3469219
41679219
52846219
65006219
08448219
Stop Event
iter limit
node limit
Counts
48 → 48
Calls
Call 1
Inputs
(pow a 2)
(+ (* -1 (pow b 2)) (pow a 2))
(+ (* -1 (pow b 2)) (pow a 2))
(+ (* -1 (pow b 2)) (pow a 2))
(pow b 2)
(pow b 2)
(pow b 2)
(pow b 2)
(* -1 (pow b 2))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(pow b 2)
(pow b 2)
(pow b 2)
(pow b 2)
(* -1 (pow b 2))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(pow b 2)
(pow b 2)
(pow b 2)
(pow b 2)
(* -1 (pow b 2))
(- (pow a 2) (pow b 2))
(- (pow a 2) (pow b 2))
(- (pow a 2) (pow b 2))
(pow a 2)
(pow a 2)
(pow a 2)
(pow a 2)
(pow a 2)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(pow a 2)
(pow a 2)
(pow a 2)
(pow a 2)
(pow a 2)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(pow a 2)
(pow a 2)
(pow a 2)
(pow a 2)
Outputs
(pow a 2)
(*.f64 a a)
(+ (* -1 (pow b 2)) (pow a 2))
(*.f64 (-.f64 a b) (+.f64 b a))
(+ (* -1 (pow b 2)) (pow a 2))
(*.f64 (-.f64 a b) (+.f64 b a))
(+ (* -1 (pow b 2)) (pow a 2))
(*.f64 (-.f64 a b) (+.f64 b a))
(pow b 2)
(*.f64 b b)
(pow b 2)
(*.f64 b b)
(pow b 2)
(*.f64 b b)
(pow b 2)
(*.f64 b b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(*.f64 (-.f64 a b) (+.f64 b a))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(*.f64 (-.f64 a b) (+.f64 b a))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(*.f64 (-.f64 a b) (+.f64 b a))
(pow b 2)
(*.f64 b b)
(pow b 2)
(*.f64 b b)
(pow b 2)
(*.f64 b b)
(pow b 2)
(*.f64 b b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(*.f64 (-.f64 a b) (+.f64 b a))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(*.f64 (-.f64 a b) (+.f64 b a))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(*.f64 (-.f64 a b) (+.f64 b a))
(pow b 2)
(*.f64 b b)
(pow b 2)
(*.f64 b b)
(pow b 2)
(*.f64 b b)
(pow b 2)
(*.f64 b b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(- (pow a 2) (pow b 2))
(*.f64 (-.f64 a b) (+.f64 b a))
(- (pow a 2) (pow b 2))
(*.f64 (-.f64 a b) (+.f64 b a))
(- (pow a 2) (pow b 2))
(*.f64 (-.f64 a b) (+.f64 b a))
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(*.f64 (-.f64 a b) (+.f64 b a))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(*.f64 (-.f64 a b) (+.f64 b a))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(*.f64 (-.f64 a b) (+.f64 b a))
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(*.f64 (-.f64 a b) (+.f64 b a))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(*.f64 (-.f64 a b) (+.f64 b a))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(*.f64 (-.f64 a b) (+.f64 b a))
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)

rewrite344.0ms (8%)

Memory
8.1MiB live, 259.1MiB allocated
Rules
8 026×lower-fma.f64
8 026×lower-fma.f32
4 450×lower-/.f64
4 450×lower-/.f32
3 184×lower-*.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0513
0813
13213
221613
3196713
0877813
Stop Event
iter limit
node limit
iter limit
Counts
3 → 252
Calls
Call 1
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 a a)
(*.f64 b b)
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval80.0ms (1.9%)

Memory
-10.6MiB live, 64.5MiB allocated
Compiler

Compiled 8 583 to 756 computations (91.2% saved)

prune5.0ms (0.1%)

Memory
17.9MiB live, 17.9MiB allocated
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New2973300
Fresh000
Picked101
Done000
Total2983301
Accuracy
100.0%
Counts
301 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (-.f64 a b) (+.f64 b a))
54.1%
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
53.0%
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Compiler

Compiled 16 to 14 computations (12.5% saved)

simplify260.0ms (6.1%)

Memory
0.9MiB live, 279.0MiB allocated
Algorithm
egg-herbie
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f64 b a)
cost-diff0
(-.f64 a b)
cost-diff0
(*.f64 (-.f64 a b) (+.f64 b a))
cost-diff0
(neg.f64 b)
cost-diff0
(*.f64 (neg.f64 b) b)
cost-diff0
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
cost-diff0
(*.f64 a a)
cost-diff0
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Rules
31 184×lower-fma.f64
31 184×lower-fma.f32
7 084×lower-+.f32
7 082×lower-+.f64
3 784×lower-*.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01349
01949
13749
26449
314449
428549
559049
6149049
7288349
8399149
9455849
10479749
11492749
12494949
13494949
14494949
0868349
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
(*.f64 a a)
a
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
(*.f64 (neg.f64 b) b)
(neg.f64 b)
b
(*.f64 (-.f64 a b) (+.f64 b a))
(-.f64 a b)
a
b
(+.f64 b a)
Outputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
(*.f64 a a)
a
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
(*.f64 (neg.f64 b) b)
(neg.f64 b)
b
(*.f64 (-.f64 a b) (+.f64 b a))
(*.f64 (+.f64 b a) (-.f64 a b))
(-.f64 a b)
a
b
(+.f64 b a)

localize27.0ms (0.6%)

Memory
-21.2MiB live, 56.0MiB allocated
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
accuracy0
(-.f64 a b)
accuracy0
(+.f64 b a)
accuracy0
(*.f64 (-.f64 a b) (+.f64 b a))
accuracy0
(*.f64 (neg.f64 b) b)
accuracy0
(neg.f64 b)
accuracy29.37962229645946
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
accuracy0
(*.f64 a a)
accuracy30.11055415660807
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Samples
20.0ms256×0valid
Compiler

Compiled 42 to 12 computations (71.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 11.0ms
ival-mult: 6.0ms (55.9% of total)
ival-sub: 2.0ms (18.6% of total)
ival-add: 1.0ms (9.3% of total)
ival-neg: 1.0ms (9.3% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series8.0ms (0.2%)

Memory
21.4MiB live, 21.4MiB allocated
Counts
8 → 156
Calls
Call 1
Inputs
#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())
#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())
#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())
#s(alt (*.f64 (neg.f64 b) b) (patch (*.f64 (neg.f64 b) b) #<representation binary64>) () ())
#s(alt (neg.f64 b) (patch (neg.f64 b) #<representation binary64>) () ())
#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())
#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())
#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())
Outputs
#s(alt (pow a 2) (taylor 0 b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (+ (* -1 (pow b 2)) (pow a 2)) (taylor 0 b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (+ (* -1 (pow b 2)) (pow a 2)) (taylor 0 b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (+ (* -1 (pow b 2)) (pow a 2)) (taylor 0 b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor 0 b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (+ (* -1 (pow b 2)) (pow a 2)) (taylor 0 b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (+ (* -1 (pow b 2)) (pow a 2)) (taylor 0 b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (+ (* -1 (pow b 2)) (pow a 2)) (taylor 0 b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor 0 b) (#s(alt (*.f64 (neg.f64 b) b) (patch (*.f64 (neg.f64 b) b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor 0 b) (#s(alt (*.f64 (neg.f64 b) b) (patch (*.f64 (neg.f64 b) b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor 0 b) (#s(alt (*.f64 (neg.f64 b) b) (patch (*.f64 (neg.f64 b) b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor 0 b) (#s(alt (*.f64 (neg.f64 b) b) (patch (*.f64 (neg.f64 b) b) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor 0 b) (#s(alt (neg.f64 b) (patch (neg.f64 b) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor 0 b) (#s(alt (neg.f64 b) (patch (neg.f64 b) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor 0 b) (#s(alt (neg.f64 b) (patch (neg.f64 b) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor 0 b) (#s(alt (neg.f64 b) (patch (neg.f64 b) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor 0 b) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (+ (* b (+ a (* -1 a))) (pow a 2)) (taylor 0 b) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (+ (* b (+ a (+ (* -1 a) (* -1 b)))) (pow a 2)) (taylor 0 b) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (+ (* b (+ a (+ (* -1 a) (* -1 b)))) (pow a 2)) (taylor 0 b) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt a (taylor 0 b) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (+ a (* -1 b)) (taylor 0 b) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (+ a (* -1 b)) (taylor 0 b) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (+ a (* -1 b)) (taylor 0 b) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt a (taylor 0 b) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (+ a b) (taylor 0 b) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (+ a b) (taylor 0 b) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (+ a b) (taylor 0 b) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor inf b) (#s(alt (*.f64 (neg.f64 b) b) (patch (*.f64 (neg.f64 b) b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor inf b) (#s(alt (*.f64 (neg.f64 b) b) (patch (*.f64 (neg.f64 b) b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor inf b) (#s(alt (*.f64 (neg.f64 b) b) (patch (*.f64 (neg.f64 b) b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor inf b) (#s(alt (*.f64 (neg.f64 b) b) (patch (*.f64 (neg.f64 b) b) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor inf b) (#s(alt (neg.f64 b) (patch (neg.f64 b) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor inf b) (#s(alt (neg.f64 b) (patch (neg.f64 b) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor inf b) (#s(alt (neg.f64 b) (patch (neg.f64 b) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor inf b) (#s(alt (neg.f64 b) (patch (neg.f64 b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor inf b) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (+ (* -1 (/ a b)) (/ a b)) 1)) (taylor inf b) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (+ (* -1 (/ a b)) (+ (/ a b) (/ (pow a 2) (pow b 2)))) 1)) (taylor inf b) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (+ (* -1 (/ a b)) (+ (/ a b) (/ (pow a 2) (pow b 2)))) 1)) (taylor inf b) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor inf b) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (* b (- (/ a b) 1)) (taylor inf b) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (* b (- (/ a b) 1)) (taylor inf b) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (* b (- (/ a b) 1)) (taylor inf b) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt b (taylor inf b) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* b (+ 1 (/ a b))) (taylor inf b) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* b (+ 1 (/ a b))) (taylor inf b) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* b (+ 1 (/ a b))) (taylor inf b) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor -inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor -inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor -inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor -inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor -inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor -inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor -inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)) (taylor -inf b) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor -inf b) (#s(alt (*.f64 (neg.f64 b) b) (patch (*.f64 (neg.f64 b) b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor -inf b) (#s(alt (*.f64 (neg.f64 b) b) (patch (*.f64 (neg.f64 b) b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor -inf b) (#s(alt (*.f64 (neg.f64 b) b) (patch (*.f64 (neg.f64 b) b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor -inf b) (#s(alt (*.f64 (neg.f64 b) b) (patch (*.f64 (neg.f64 b) b) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor -inf b) (#s(alt (neg.f64 b) (patch (neg.f64 b) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor -inf b) (#s(alt (neg.f64 b) (patch (neg.f64 b) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor -inf b) (#s(alt (neg.f64 b) (patch (neg.f64 b) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor -inf b) (#s(alt (neg.f64 b) (patch (neg.f64 b) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor -inf b) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (* -1 (/ (+ a (* -1 a)) b)) 1)) (taylor -inf b) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (* -1 (/ (+ a (+ (* -1 a) (* -1 (/ (pow a 2) b)))) b)) 1)) (taylor -inf b) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* (pow b 2) (- (* -1 (/ (+ a (+ (* -1 a) (* -1 (/ (pow a 2) b)))) b)) 1)) (taylor -inf b) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor -inf b) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (* -1 (* b (+ 1 (* -1 (/ a b))))) (taylor -inf b) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (* -1 (* b (+ 1 (* -1 (/ a b))))) (taylor -inf b) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (* -1 (* b (+ 1 (* -1 (/ a b))))) (taylor -inf b) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt b (taylor -inf b) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* -1 (* b (- (* -1 (/ a b)) 1))) (taylor -inf b) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* -1 (* b (- (* -1 (/ a b)) 1))) (taylor -inf b) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* -1 (* b (- (* -1 (/ a b)) 1))) (taylor -inf b) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor 0 a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (- (pow a 2) (pow b 2)) (taylor 0 a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (- (pow a 2) (pow b 2)) (taylor 0 a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (- (pow a 2) (pow b 2)) (taylor 0 a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor 0 a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor 0 a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor 0 a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor 0 a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor 0 a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (- (pow a 2) (pow b 2)) (taylor 0 a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (- (pow a 2) (pow b 2)) (taylor 0 a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (- (pow a 2) (pow b 2)) (taylor 0 a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* -1 (pow b 2)) (taylor 0 a) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (+ (* -1 (pow b 2)) (* a (+ b (* -1 b)))) (taylor 0 a) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (+ (* -1 (pow b 2)) (* a (+ a (+ b (* -1 b))))) (taylor 0 a) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (+ (* -1 (pow b 2)) (* a (+ a (+ b (* -1 b))))) (taylor 0 a) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* -1 b) (taylor 0 a) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (- a b) (taylor 0 a) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (- a b) (taylor 0 a) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (- a b) (taylor 0 a) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt b (taylor 0 a) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (+ a b) (taylor 0 a) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (+ a b) (taylor 0 a) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (+ a b) (taylor 0 a) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor inf a) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (/ b a)))) (taylor inf a) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (+ (* -1 (/ (pow b 2) (pow a 2))) (/ b a))))) (taylor inf a) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (+ (* -1 (/ (pow b 2) (pow a 2))) (/ b a))))) (taylor inf a) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt a (taylor inf a) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (* a (+ 1 (* -1 (/ b a)))) (taylor inf a) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (* a (+ 1 (* -1 (/ b a)))) (taylor inf a) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (* a (+ 1 (* -1 (/ b a)))) (taylor inf a) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt a (taylor inf a) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* a (+ 1 (/ b a))) (taylor inf a) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* a (+ 1 (/ b a))) (taylor inf a) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* a (+ 1 (/ b a))) (taylor inf a) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor -inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor -inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor -inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor -inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 a a)) (patch #s(approx (- (* a a) (* b b)) (*.f64 a a)) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor -inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor -inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor -inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor -inf a) (#s(alt (*.f64 a a) (patch (*.f64 a a) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor -inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor -inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor -inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))) (taylor -inf a) (#s(alt #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) (patch #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #<representation binary64>) () ())) ())
#s(alt (pow a 2) (taylor -inf a) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (/ b a)))) (taylor -inf a) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (+ (* -1 (+ b (* -1 b))) (/ (pow b 2) a)) a)))) (taylor -inf a) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt (* (pow a 2) (+ 1 (* -1 (/ (+ (* -1 (+ b (* -1 b))) (/ (pow b 2) a)) a)))) (taylor -inf a) (#s(alt (*.f64 (-.f64 a b) (+.f64 b a)) (patch (*.f64 (-.f64 a b) (+.f64 b a)) #<representation binary64>) () ())) ())
#s(alt a (taylor -inf a) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (* -1 (* a (- (/ b a) 1))) (taylor -inf a) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (* -1 (* a (- (/ b a) 1))) (taylor -inf a) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt (* -1 (* a (- (/ b a) 1))) (taylor -inf a) (#s(alt (-.f64 a b) (patch (-.f64 a b) #<representation binary64>) () ())) ())
#s(alt a (taylor -inf a) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* -1 (* a (- (* -1 (/ b a)) 1))) (taylor -inf a) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* -1 (* a (- (* -1 (/ b a)) 1))) (taylor -inf a) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
#s(alt (* -1 (* a (- (* -1 (/ b a)) 1))) (taylor -inf a) (#s(alt (+.f64 b a) (patch (+.f64 b a) #<representation binary64>) () ())) ())
Calls

6 calls:

TimeVariablePointExpression
1.0ms
a
@-inf
((- (* a a) (* b b)) (* a a) (- (* a a) (* b b)) (* (neg b) b) (neg b) (* (- a b) (+ b a)) (- a b) (+ b a))
1.0ms
b
@inf
((- (* a a) (* b b)) (* a a) (- (* a a) (* b b)) (* (neg b) b) (neg b) (* (- a b) (+ b a)) (- a b) (+ b a))
1.0ms
b
@0
((- (* a a) (* b b)) (* a a) (- (* a a) (* b b)) (* (neg b) b) (neg b) (* (- a b) (+ b a)) (- a b) (+ b a))
1.0ms
b
@-inf
((- (* a a) (* b b)) (* a a) (- (* a a) (* b b)) (* (neg b) b) (neg b) (* (- a b) (+ b a)) (- a b) (+ b a))
1.0ms
a
@inf
((- (* a a) (* b b)) (* a a) (- (* a a) (* b b)) (* (neg b) b) (neg b) (* (- a b) (+ b a)) (- a b) (+ b a))

simplify197.0ms (4.6%)

Memory
-10.2MiB live, 273.2MiB allocated
Algorithm
egg-herbie
Rules
15 540×lower-fma.f64
15 540×lower-fma.f32
2 570×lower--.f64
2 570×lower--.f32
2 510×lower-*.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
092651
1281651
2829651
33560651
08744651
Stop Event
iter limit
node limit
Counts
156 → 147
Calls
Call 1
Inputs
(pow a 2)
(+ (* -1 (pow b 2)) (pow a 2))
(+ (* -1 (pow b 2)) (pow a 2))
(+ (* -1 (pow b 2)) (pow a 2))
(pow a 2)
(+ (* -1 (pow b 2)) (pow a 2))
(+ (* -1 (pow b 2)) (pow a 2))
(+ (* -1 (pow b 2)) (pow a 2))
(* -1 (pow b 2))
(* -1 (pow b 2))
(* -1 (pow b 2))
(* -1 (pow b 2))
(* -1 b)
(* -1 b)
(* -1 b)
(* -1 b)
(pow a 2)
(+ (* b (+ a (* -1 a))) (pow a 2))
(+ (* b (+ a (+ (* -1 a) (* -1 b)))) (pow a 2))
(+ (* b (+ a (+ (* -1 a) (* -1 b)))) (pow a 2))
a
(+ a (* -1 b))
(+ a (* -1 b))
(+ a (* -1 b))
a
(+ a b)
(+ a b)
(+ a b)
(* -1 (pow b 2))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* -1 (pow b 2))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* -1 (pow b 2))
(* -1 (pow b 2))
(* -1 (pow b 2))
(* -1 (pow b 2))
(* -1 b)
(* -1 b)
(* -1 b)
(* -1 b)
(* -1 (pow b 2))
(* (pow b 2) (- (+ (* -1 (/ a b)) (/ a b)) 1))
(* (pow b 2) (- (+ (* -1 (/ a b)) (+ (/ a b) (/ (pow a 2) (pow b 2)))) 1))
(* (pow b 2) (- (+ (* -1 (/ a b)) (+ (/ a b) (/ (pow a 2) (pow b 2)))) 1))
(* -1 b)
(* b (- (/ a b) 1))
(* b (- (/ a b) 1))
(* b (- (/ a b) 1))
b
(* b (+ 1 (/ a b)))
(* b (+ 1 (/ a b)))
(* b (+ 1 (/ a b)))
(* -1 (pow b 2))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* -1 (pow b 2))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(* -1 (pow b 2))
(* -1 (pow b 2))
(* -1 (pow b 2))
(* -1 (pow b 2))
(* -1 b)
(* -1 b)
(* -1 b)
(* -1 b)
(* -1 (pow b 2))
(* (pow b 2) (- (* -1 (/ (+ a (* -1 a)) b)) 1))
(* (pow b 2) (- (* -1 (/ (+ a (+ (* -1 a) (* -1 (/ (pow a 2) b)))) b)) 1))
(* (pow b 2) (- (* -1 (/ (+ a (+ (* -1 a) (* -1 (/ (pow a 2) b)))) b)) 1))
(* -1 b)
(* -1 (* b (+ 1 (* -1 (/ a b)))))
(* -1 (* b (+ 1 (* -1 (/ a b)))))
(* -1 (* b (+ 1 (* -1 (/ a b)))))
b
(* -1 (* b (- (* -1 (/ a b)) 1)))
(* -1 (* b (- (* -1 (/ a b)) 1)))
(* -1 (* b (- (* -1 (/ a b)) 1)))
(* -1 (pow b 2))
(- (pow a 2) (pow b 2))
(- (pow a 2) (pow b 2))
(- (pow a 2) (pow b 2))
(pow a 2)
(pow a 2)
(pow a 2)
(pow a 2)
(* -1 (pow b 2))
(- (pow a 2) (pow b 2))
(- (pow a 2) (pow b 2))
(- (pow a 2) (pow b 2))
(* -1 (pow b 2))
(+ (* -1 (pow b 2)) (* a (+ b (* -1 b))))
(+ (* -1 (pow b 2)) (* a (+ a (+ b (* -1 b)))))
(+ (* -1 (pow b 2)) (* a (+ a (+ b (* -1 b)))))
(* -1 b)
(- a b)
(- a b)
(- a b)
b
(+ a b)
(+ a b)
(+ a b)
(pow a 2)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(pow a 2)
(pow a 2)
(pow a 2)
(pow a 2)
(pow a 2)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(pow a 2)
(* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (/ b a))))
(* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (+ (* -1 (/ (pow b 2) (pow a 2))) (/ b a)))))
(* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (+ (* -1 (/ (pow b 2) (pow a 2))) (/ b a)))))
a
(* a (+ 1 (* -1 (/ b a))))
(* a (+ 1 (* -1 (/ b a))))
(* a (+ 1 (* -1 (/ b a))))
a
(* a (+ 1 (/ b a)))
(* a (+ 1 (/ b a)))
(* a (+ 1 (/ b a)))
(pow a 2)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(pow a 2)
(pow a 2)
(pow a 2)
(pow a 2)
(pow a 2)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(pow a 2)
(* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (/ b a))))
(* (pow a 2) (+ 1 (* -1 (/ (+ (* -1 (+ b (* -1 b))) (/ (pow b 2) a)) a))))
(* (pow a 2) (+ 1 (* -1 (/ (+ (* -1 (+ b (* -1 b))) (/ (pow b 2) a)) a))))
a
(* -1 (* a (- (/ b a) 1)))
(* -1 (* a (- (/ b a) 1)))
(* -1 (* a (- (/ b a) 1)))
a
(* -1 (* a (- (* -1 (/ b a)) 1)))
(* -1 (* a (- (* -1 (/ b a)) 1)))
(* -1 (* a (- (* -1 (/ b a)) 1)))
Outputs
(pow a 2)
(*.f64 a a)
(+ (* -1 (pow b 2)) (pow a 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(+ (* -1 (pow b 2)) (pow a 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(+ (* -1 (pow b 2)) (pow a 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(pow a 2)
(*.f64 a a)
(+ (* -1 (pow b 2)) (pow a 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(+ (* -1 (pow b 2)) (pow a 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(+ (* -1 (pow b 2)) (pow a 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* -1 b)
(neg.f64 b)
(* -1 b)
(neg.f64 b)
(* -1 b)
(neg.f64 b)
(* -1 b)
(neg.f64 b)
(pow a 2)
(*.f64 a a)
(+ (* b (+ a (* -1 a))) (pow a 2))
(*.f64 a a)
(+ (* b (+ a (+ (* -1 a) (* -1 b)))) (pow a 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(+ (* b (+ a (+ (* -1 a) (* -1 b)))) (pow a 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
a
(+ a (* -1 b))
(-.f64 a b)
(+ a (* -1 b))
(-.f64 a b)
(+ a (* -1 b))
(-.f64 a b)
a
(+ a b)
(+.f64 b a)
(+ a b)
(+.f64 b a)
(+ a b)
(+.f64 b a)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* -1 b)
(neg.f64 b)
(* -1 b)
(neg.f64 b)
(* -1 b)
(neg.f64 b)
(* -1 b)
(neg.f64 b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* (pow b 2) (- (+ (* -1 (/ a b)) (/ a b)) 1))
(*.f64 (neg.f64 b) b)
(* (pow b 2) (- (+ (* -1 (/ a b)) (+ (/ a b) (/ (pow a 2) (pow b 2)))) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow b 2) (- (+ (* -1 (/ a b)) (+ (/ a b) (/ (pow a 2) (pow b 2)))) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* -1 b)
(neg.f64 b)
(* b (- (/ a b) 1))
(-.f64 a b)
(* b (- (/ a b) 1))
(-.f64 a b)
(* b (- (/ a b) 1))
(-.f64 a b)
b
(* b (+ 1 (/ a b)))
(+.f64 b a)
(* b (+ 1 (/ a b)))
(+.f64 b a)
(* b (+ 1 (/ a b)))
(+.f64 b a)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* -1 b)
(neg.f64 b)
(* -1 b)
(neg.f64 b)
(* -1 b)
(neg.f64 b)
(* -1 b)
(neg.f64 b)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(* (pow b 2) (- (* -1 (/ (+ a (* -1 a)) b)) 1))
(*.f64 (neg.f64 b) b)
(* (pow b 2) (- (* -1 (/ (+ a (+ (* -1 a) (* -1 (/ (pow a 2) b)))) b)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow b 2) (- (* -1 (/ (+ a (+ (* -1 a) (* -1 (/ (pow a 2) b)))) b)) 1))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* -1 b)
(neg.f64 b)
(* -1 (* b (+ 1 (* -1 (/ a b)))))
(-.f64 a b)
(* -1 (* b (+ 1 (* -1 (/ a b)))))
(-.f64 a b)
(* -1 (* b (+ 1 (* -1 (/ a b)))))
(-.f64 a b)
b
(* -1 (* b (- (* -1 (/ a b)) 1)))
(+.f64 b a)
(* -1 (* b (- (* -1 (/ a b)) 1)))
(+.f64 b a)
(* -1 (* b (- (* -1 (/ a b)) 1)))
(+.f64 b a)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(- (pow a 2) (pow b 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(- (pow a 2) (pow b 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(- (pow a 2) (pow b 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(- (pow a 2) (pow b 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(- (pow a 2) (pow b 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(- (pow a 2) (pow b 2))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* -1 (pow b 2))
(*.f64 (neg.f64 b) b)
(+ (* -1 (pow b 2)) (* a (+ b (* -1 b))))
(*.f64 (neg.f64 b) b)
(+ (* -1 (pow b 2)) (* a (+ a (+ b (* -1 b)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(+ (* -1 (pow b 2)) (* a (+ a (+ b (* -1 b)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* -1 b)
(neg.f64 b)
(- a b)
(-.f64 a b)
(- a b)
(-.f64 a b)
(- a b)
(-.f64 a b)
b
(+ a b)
(+.f64 b a)
(+ a b)
(+.f64 b a)
(+ a b)
(+.f64 b a)
(pow a 2)
(*.f64 a a)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(pow a 2)
(*.f64 a a)
(* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (/ b a))))
(*.f64 a a)
(* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (+ (* -1 (/ (pow b 2) (pow a 2))) (/ b a)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (+ (* -1 (/ (pow b 2) (pow a 2))) (/ b a)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
a
(* a (+ 1 (* -1 (/ b a))))
(-.f64 a b)
(* a (+ 1 (* -1 (/ b a))))
(-.f64 a b)
(* a (+ 1 (* -1 (/ b a))))
(-.f64 a b)
a
(* a (+ 1 (/ b a)))
(+.f64 b a)
(* a (+ 1 (/ b a)))
(+.f64 b a)
(* a (+ 1 (/ b a)))
(+.f64 b a)
(pow a 2)
(*.f64 a a)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(pow a 2)
(*.f64 a a)
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(pow a 2)
(*.f64 a a)
(* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (/ b a))))
(*.f64 a a)
(* (pow a 2) (+ 1 (* -1 (/ (+ (* -1 (+ b (* -1 b))) (/ (pow b 2) a)) a))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(* (pow a 2) (+ 1 (* -1 (/ (+ (* -1 (+ b (* -1 b))) (/ (pow b 2) a)) a))))
(fma.f64 (neg.f64 b) b (*.f64 a a))
a
(* -1 (* a (- (/ b a) 1)))
(-.f64 a b)
(* -1 (* a (- (/ b a) 1)))
(-.f64 a b)
(* -1 (* a (- (/ b a) 1)))
(-.f64 a b)
a
(* -1 (* a (- (* -1 (/ b a)) 1)))
(+.f64 b a)
(* -1 (* a (- (* -1 (/ b a)) 1)))
(+.f64 b a)
(* -1 (* a (- (* -1 (/ b a)) 1)))
(+.f64 b a)

rewrite184.0ms (4.3%)

Memory
12.4MiB live, 252.5MiB allocated
Rules
4 964×lower-fma.f64
4 964×lower-fma.f32
3 312×lower-*.f32
3 306×lower-*.f64
2 364×lower-/.f64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01345
01945
17045
251145
3676336
0929036
Stop Event
iter limit
node limit
iter limit
Counts
8 → 733
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
(*.f64 a a)
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
(*.f64 (neg.f64 b) b)
(neg.f64 b)
(*.f64 (-.f64 a b) (+.f64 b a))
(-.f64 a b)
(+.f64 b a)
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval152.0ms (3.6%)

Memory
-16.7MiB live, 296.6MiB allocated
Compiler

Compiled 17 707 to 1 561 computations (91.2% saved)

prune24.0ms (0.6%)

Memory
0.9MiB live, 79.2MiB allocated
Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New8800880
Fresh000
Picked033
Done000
Total8803883
Accuracy
100.0%
Counts
883 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (-.f64 a b) (+.f64 b a))
54.1%
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
53.0%
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Compiler

Compiled 39 to 26 computations (33.3% saved)

regimes12.0ms (0.3%)

Memory
-4.1MiB live, 34.2MiB allocated
Counts
4 → 1
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
(*.f64 (-.f64 a b) (+.f64 b a))
(-.f64 (*.f64 a a) (*.f64 b b))
Outputs
(*.f64 (-.f64 a b) (+.f64 b a))
Calls

5 calls:

3.0ms
a
2.0ms
b
2.0ms
(*.f64 b b)
2.0ms
(-.f64 (*.f64 a a) (*.f64 b b))
2.0ms
(*.f64 a a)
Results
AccuracySegmentsBranch
100.0%1a
100.0%1b
100.0%1(-.f64 (*.f64 a a) (*.f64 b b))
100.0%1(*.f64 a a)
100.0%1(*.f64 b b)
Compiler

Compiled 15 to 15 computations (0% saved)

regimes8.0ms (0.2%)

Memory
31.8MiB live, 31.8MiB allocated
Counts
2 → 2
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
Outputs
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Calls

5 calls:

2.0ms
b
2.0ms
a
2.0ms
(*.f64 b b)
1.0ms
(-.f64 (*.f64 a a) (*.f64 b b))
1.0ms
(*.f64 a a)
Results
AccuracySegmentsBranch
79.3%2a
82.2%4b
96.5%2(-.f64 (*.f64 a a) (*.f64 b b))
79.3%2(*.f64 a a)
82.2%4(*.f64 b b)
Compiler

Compiled 15 to 15 computations (0% saved)

regimes10.0ms (0.2%)

Memory
-20.5MiB live, 22.9MiB allocated
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

Counts
1 → 1
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Outputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Calls

5 calls:

4.0ms
(-.f64 (*.f64 a a) (*.f64 b b))
1.0ms
a
1.0ms
b
1.0ms
(*.f64 b b)
1.0ms
(*.f64 a a)
Results
AccuracySegmentsBranch
53.0%1b
53.0%1(*.f64 b b)
53.0%1a
53.0%1(*.f64 a a)
53.0%1(-.f64 (*.f64 a a) (*.f64 b b))
Compiler

Compiled 15 to 15 computations (0% saved)

bsearch0.0ms (0%)

Memory
1.3MiB live, 1.3MiB allocated
Algorithm
left-value
Steps
TimeLeftRight
0.0ms
-1.3536540217102466e-287
0.0
Compiler

Compiled 10 to 10 computations (0% saved)

simplify24.0ms (0.6%)

Memory
10.7MiB live, 88.4MiB allocated
Algorithm
egg-herbie
Rules
10×+-commutative-binary64-+.f64
*-commutative-binary64-*.f64
sub-neg-binary64-neg.f64-+.f64--.f64
neg-sub0-binary64--.f64-neg.f64
neg-mul-1-binary64-*.f64-neg.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01851
12951
23551
33851
43951
Stop Event
saturated
Calls
Call 1
Inputs
(*.f64 (-.f64 a b) (+.f64 b a))
(if (<=.f64 (-.f64 (*.f64 a a) (*.f64 b b)) #s(literal -6857655085992111/685765508599211085406992031398401158759299079491541508764000248557024672719959118395646962442045349201660590667234013968119772982843080987903012964780708787451812337588750783066948774723991753080189067657794974398949244241113521123786594812548932026532556574571938698730267509225767960757581162756440064 binary64)) #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #s(approx (- (* a a) (* b b)) (*.f64 a a)))
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Outputs
(*.f64 (-.f64 a b) (+.f64 b a))
(*.f64 (+.f64 b a) (-.f64 a b))
(if (<=.f64 (-.f64 (*.f64 a a) (*.f64 b b)) #s(literal -6857655085992111/685765508599211085406992031398401158759299079491541508764000248557024672719959118395646962442045349201660590667234013968119772982843080987903012964780708787451812337588750783066948774723991753080189067657794974398949244241113521123786594812548932026532556574571938698730267509225767960757581162756440064 binary64)) #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #s(approx (- (* a a) (* b b)) (*.f64 a a)))
#s(approx (- (* a a) (* b b)) (*.f64 a a))

soundness372.0ms (8.7%)

Memory
-17.0MiB live, 262.5MiB allocated
Rules
12 540×lower-fma.f64
12 540×lower-fma.f32
8 026×lower-fma.f64
8 026×lower-fma.f32
4 450×lower-/.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
017219
139219
2113219
3469219
41679219
52846219
65006219
08448219
0513
0813
13213
221613
3196713
0877813
Stop Event
done
iter limit
node limit
iter limit
iter limit
node limit
Compiler

Compiled 54 to 33 computations (38.9% saved)

preprocess58.0ms (1.4%)

Memory
1.3MiB live, 169.2MiB allocated
Remove

(abs a)

(abs b)

Compiler

Compiled 144 to 90 computations (37.5% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...