Numeric.SpecFunctions:logGammaCorrection from math-functions-0.1.5.2

Time bar (total: 2.5s)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

analyze0.0ms (0%)

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

Compiled 9 to 8 computations (11.1% saved)

sample861.0ms (34%)

Memory
29.5MiB live, 880.2MiB allocated
Samples
355.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 193.0ms
ival-mult: 127.0ms (65.8% of total)
ival-sub: 49.0ms (25.4% of total)
exact: 8.0ms (4.1% of total)
ival-true: 6.0ms (3.1% of total)
ival-assert: 3.0ms (1.6% of total)
Bogosity

explain96.0ms (3.8%)

Memory
-27.9MiB live, 93.1MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
00-0-#s(literal 2 binary64)
00-0-#s(literal 1 binary64)
00-0-(*.f64 (*.f64 x x) #s(literal 2 binary64))
00-0-(*.f64 x x)
00-0-x
Confusion
Predicted +Predicted -
+00
-0256
Precision
0/0
Recall
0/0
Confusion?
Predicted +Predicted MaybePredicted -
+000
-00256
Precision?
0/0
Recall?
0/0
Freqs
test
numberfreq
0256
Total Confusion?
Predicted +Predicted MaybePredicted -
+000
-001
Precision?
0/0
Recall?
0/0
Samples
21.0ms512×0valid
Compiler

Compiled 47 to 22 computations (53.2% saved)

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

preprocess16.0ms (0.6%)

Memory
27.7MiB live, 27.7MiB allocated
Algorithm
egg-herbie
Rules
40×associate-*r*
36×distribute-lft-neg-in
30×associate-*l*
28×distribute-rgt-neg-in
24×distribute-lft-in
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0815
12515
27214
317814
425514
528014
628414
067
097
1177
2217
0216
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
Outputs
(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
(fma.f64 #s(literal 2 binary64) (*.f64 x x) #s(literal -1 binary64))
Symmetry

(abs x)

Compiler

Compiled 7 to 6 computations (14.3% saved)

eval0.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated
Compiler

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
1.1MiB live, 1.1MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
Compiler

Compiled 7 to 6 computations (14.3% saved)

simplify3.0ms (0.1%)

Memory
5.3MiB live, 5.3MiB allocated
Algorithm
egg-herbie
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 x x)
cost-diff0
(*.f64 (*.f64 x x) #s(literal 2 binary64))
cost-diff128
(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
Rules
14×lower-*.f32
10×lower-*.f64
lower-fma.f64
lower-fma.f32
*-commutative
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0618
0918
11718
22118
02117
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(*.f64 x x)
x
#s(literal 2 binary64)
#s(literal 1 binary64)
Outputs
(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
(fma.f64 #s(literal 2 binary64) (*.f64 x x) #s(literal -1 binary64))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(*.f64 #s(literal 2 binary64) (*.f64 x x))
(*.f64 x x)
x
#s(literal 2 binary64)
#s(literal 1 binary64)

localize19.0ms (0.8%)

Memory
-9.6MiB live, 26.5MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0
(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
accuracy0
(*.f64 (*.f64 x x) #s(literal 2 binary64))
accuracy0
(*.f64 x x)
Samples
10.0ms256×0valid
Compiler

Compiled 20 to 8 computations (60% saved)

Precisions
Click to see histograms. Total time spent on operations: 5.0ms
ival-mult: 3.0ms (61.4% of total)
ival-sub: 1.0ms (20.5% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series3.0ms (0.1%)

Memory
4.7MiB live, 4.7MiB allocated
Counts
3 → 36
Calls
Call 1
Inputs
#s(alt (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) (patch (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) #<representation binary64>) () ())
#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())
#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())
Outputs
#s(alt -1 (taylor 0 x) (#s(alt (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) (patch (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt (- (* 2 (pow x 2)) 1) (taylor 0 x) (#s(alt (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) (patch (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt (- (* 2 (pow x 2)) 1) (taylor 0 x) (#s(alt (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) (patch (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt (- (* 2 (pow x 2)) 1) (taylor 0 x) (#s(alt (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) (patch (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor 0 x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor 0 x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor 0 x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor 0 x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor inf x) (#s(alt (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) (patch (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor inf x) (#s(alt (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) (patch (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor inf x) (#s(alt (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) (patch (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor inf x) (#s(alt (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) (patch (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor -inf x) (#s(alt (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) (patch (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor -inf x) (#s(alt (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) (patch (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor -inf x) (#s(alt (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) (patch (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor -inf x) (#s(alt (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) (patch (-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor -inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor -inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor -inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor -inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@inf
((- (* (* x x) 2) 1) (* (* x x) 2) (* x x))
1.0ms
x
@0
((- (* (* x x) 2) 1) (* (* x x) 2) (* x x))
1.0ms
x
@-inf
((- (* (* x x) 2) 1) (* (* x x) 2) (* x x))

simplify93.0ms (3.7%)

Memory
-10.5MiB live, 79.4MiB allocated
Algorithm
egg-herbie
Rules
4 322×lower-*.f64
4 322×lower-*.f32
2 742×lower-fma.f64
2 742×lower-fma.f32
1 600×div-sub
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
010170
119170
240170
385170
4201170
5342170
6835170
72313170
83232170
95538170
08305161
Stop Event
iter limit
node limit
Counts
36 → 36
Calls
Call 1
Inputs
-1
(- (* 2 (pow x 2)) 1)
(- (* 2 (pow x 2)) 1)
(- (* 2 (pow x 2)) 1)
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(* 2 (pow x 2))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(* 2 (pow x 2))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
Outputs
-1
#s(literal -1 binary64)
(- (* 2 (pow x 2)) 1)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(- (* 2 (pow x 2)) 1)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(- (* 2 (pow x 2)) 1)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)

rewrite185.0ms (7.3%)

Memory
11.6MiB live, 233.8MiB allocated
Rules
12 208×lower-fma.f64
12 208×lower-fma.f32
3 996×lower-*.f32
3 992×lower-*.f64
3 976×lower-/.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0615
0915
13115
217315
3156315
0853914
Stop Event
iter limit
node limit
iter limit
Counts
3 → 244
Calls
Call 1
Inputs
(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(*.f64 x x)
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>

eval82.0ms (3.2%)

Memory
-18.8MiB live, 64.3MiB allocated
Compiler

Compiled 7 299 to 642 computations (91.2% saved)

prune5.0ms (0.2%)

Memory
19.7MiB live, 19.7MiB allocated
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New2773280
Fresh000
Picked101
Done000
Total2783281
Accuracy
100.0%
Counts
281 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
47.7%
#s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64)))
52.1%
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))
Compiler

Compiled 14 to 13 computations (7.1% saved)

simplify4.0ms (0.2%)

Memory
8.0MiB live, 8.0MiB allocated
Algorithm
egg-herbie
Localize:

Found 6 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 x x)
cost-diff0
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
cost-diff0
(*.f64 x x)
cost-diff0
(*.f64 (*.f64 x x) #s(literal 2 binary64))
cost-diff0
#s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64)))
cost-diff0
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))
Rules
14×lower-*.f32
10×lower-*.f64
lower-fma.f32
*-commutative
lower-fma.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01245
01543
12243
22543
02543
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))
#s(literal -1 binary64)
#s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64)))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(*.f64 x x)
x
#s(literal 2 binary64)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(*.f64 x x)
x
#s(literal 2 binary64)
#s(literal -1 binary64)
Outputs
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))
#s(literal -1 binary64)
#s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64)))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(*.f64 x x)
x
#s(literal 2 binary64)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(fma.f64 (*.f64 #s(literal 2 binary64) x) x #s(literal -1 binary64))
(*.f64 x x)
x
#s(literal 2 binary64)
#s(literal -1 binary64)

localize22.0ms (0.9%)

Memory
6.6MiB live, 43.6MiB allocated
Localize:

Found 6 expressions of interest:

NewMetricScoreProgram
accuracy0
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
accuracy0
(*.f64 x x)
accuracy0
(*.f64 (*.f64 x x) #s(literal 2 binary64))
accuracy0
(*.f64 x x)
accuracy33.488109835428055
#s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64)))
accuracy30.678100623210465
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))
Samples
16.0ms256×0valid
Compiler

Compiled 40 to 10 computations (75% saved)

Precisions
Click to see histograms. Total time spent on operations: 7.0ms
ival-mult: 4.0ms (61.1% of total)
ival-sub: 1.0ms (15.3% of total)
ival-add: 1.0ms (15.3% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series6.0ms (0.2%)

Memory
-29.7MiB live, 6.8MiB allocated
Counts
5 → 60
Calls
Call 1
Inputs
#s(alt #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) (patch #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #<representation binary64>) () ())
#s(alt #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) (patch #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) #<representation binary64>) () ())
#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())
#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())
#s(alt (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) (patch (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) #<representation binary64>) () ())
Outputs
#s(alt -1 (taylor 0 x) (#s(alt #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) (patch #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (- (* 2 (pow x 2)) 1) (taylor 0 x) (#s(alt #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) (patch #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (- (* 2 (pow x 2)) 1) (taylor 0 x) (#s(alt #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) (patch #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (- (* 2 (pow x 2)) 1) (taylor 0 x) (#s(alt #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) (patch #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt -1 (taylor 0 x) (#s(alt #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) (patch #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) #<representation binary64>) () ())) ())
#s(alt (- (* 2 (pow x 2)) 1) (taylor 0 x) (#s(alt #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) (patch #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) #<representation binary64>) () ())) ())
#s(alt (- (* 2 (pow x 2)) 1) (taylor 0 x) (#s(alt #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) (patch #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) #<representation binary64>) () ())) ())
#s(alt (- (* 2 (pow x 2)) 1) (taylor 0 x) (#s(alt #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) (patch #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor 0 x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor 0 x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor 0 x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor 0 x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt -1 (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) (patch (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (- (* 2 (pow x 2)) 1) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) (patch (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (- (* 2 (pow x 2)) 1) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) (patch (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (- (* 2 (pow x 2)) 1) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) (patch (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) (patch #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) (patch #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) (patch #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) (patch #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) (patch #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) (patch #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) (patch #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) (patch #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) (patch (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) (patch (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) (patch (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) (patch (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor -inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) (patch #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor -inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) (patch #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor -inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) (patch #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor -inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) (patch #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor -inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) (patch #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor -inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) (patch #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor -inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) (patch #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor -inf x) (#s(alt #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) (patch #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor -inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor -inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor -inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor -inf x) (#s(alt (*.f64 (*.f64 x x) #s(literal 2 binary64)) (patch (*.f64 (*.f64 x x) #s(literal 2 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (* 2 (pow x 2)) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) (patch (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) (patch (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) (patch (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (- 2 (/ 1 (pow x 2)))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) (patch (fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
3.0ms
x
@0
((- (* (* x x) 2) 1) (- (* (* x x) 2) 1) (* (* x x) 2) (* x x) (+ (* (* x x) 2) -1))
1.0ms
x
@inf
((- (* (* x x) 2) 1) (- (* (* x x) 2) 1) (* (* x x) 2) (* x x) (+ (* (* x x) 2) -1))
1.0ms
x
@-inf
((- (* (* x x) 2) 1) (- (* (* x x) 2) 1) (* (* x x) 2) (* x x) (+ (* (* x x) 2) -1))

simplify377.0ms (14.9%)

Memory
-152.0MiB live, 160.6MiB allocated
Algorithm
egg-herbie
Rules
4 322×lower-*.f64
4 322×lower-*.f32
2 742×lower-fma.f64
2 742×lower-fma.f32
1 600×div-sub
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
010318
119318
240318
385318
4201318
5342318
6835318
72313318
83232318
95538318
08305291
Stop Event
iter limit
node limit
Counts
60 → 60
Calls
Call 1
Inputs
-1
(- (* 2 (pow x 2)) 1)
(- (* 2 (pow x 2)) 1)
(- (* 2 (pow x 2)) 1)
-1
(- (* 2 (pow x 2)) 1)
(- (* 2 (pow x 2)) 1)
(- (* 2 (pow x 2)) 1)
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
-1
(- (* 2 (pow x 2)) 1)
(- (* 2 (pow x 2)) 1)
(- (* 2 (pow x 2)) 1)
(* 2 (pow x 2))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* 2 (pow x 2))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(* 2 (pow x 2))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* 2 (pow x 2))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* 2 (pow x 2))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(* 2 (pow x 2))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(* 2 (pow x 2))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
Outputs
-1
#s(literal -1 binary64)
(- (* 2 (pow x 2)) 1)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(- (* 2 (pow x 2)) 1)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(- (* 2 (pow x 2)) 1)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
-1
#s(literal -1 binary64)
(- (* 2 (pow x 2)) 1)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(- (* 2 (pow x 2)) 1)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(- (* 2 (pow x 2)) 1)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
-1
#s(literal -1 binary64)
(- (* 2 (pow x 2)) 1)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(- (* 2 (pow x 2)) 1)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(- (* 2 (pow x 2)) 1)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(* (pow x 2) (- 2 (/ 1 (pow x 2))))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))

rewrite159.0ms (6.3%)

Memory
14.8MiB live, 206.6MiB allocated
Rules
10 184×lower-fma.f32
10 182×lower-fma.f64
3 586×lower-*.f32
3 582×lower-*.f64
2 994×lower-/.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01236
01534
14534
224934
3236534
0930634
Stop Event
iter limit
node limit
iter limit
Counts
5 → 288
Calls
Call 1
Inputs
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))
#s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64)))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(*.f64 x x)
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
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>

eval45.0ms (1.8%)

Memory
15.6MiB live, 101.8MiB allocated
Compiler

Compiled 7 217 to 737 computations (89.8% saved)

prune11.0ms (0.4%)

Memory
-4.6MiB live, 32.4MiB allocated
Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New3700370
Fresh000
Picked033
Done000
Total3703373
Accuracy
100.0%
Counts
373 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
47.7%
#s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64)))
52.1%
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))
Compiler

Compiled 35 to 23 computations (34.3% saved)

regimes9.0ms (0.4%)

Memory
-17.4MiB live, 21.2MiB allocated
Counts
4 → 1
Calls
Call 1
Inputs
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))
#s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64)))
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
Outputs
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
Calls

4 calls:

3.0ms
(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
2.0ms
x
2.0ms
(*.f64 (*.f64 x x) #s(literal 2 binary64))
2.0ms
(*.f64 x x)
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
100.0%1(*.f64 (*.f64 x x) #s(literal 2 binary64))
100.0%1(*.f64 x x)
Compiler

Compiled 16 to 13 computations (18.8% saved)

regimes6.0ms (0.2%)

Memory
17.5MiB live, 17.5MiB allocated
Counts
2 → 2
Calls
Call 1
Inputs
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))
#s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64)))
Outputs
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))
#s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64)))
Calls

4 calls:

2.0ms
x
1.0ms
(*.f64 (*.f64 x x) #s(literal 2 binary64))
1.0ms
(*.f64 x x)
1.0ms
(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
Results
AccuracySegmentsBranch
97.9%2x
97.9%2(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
97.9%2(*.f64 (*.f64 x x) #s(literal 2 binary64))
97.9%2(*.f64 x x)
Compiler

Compiled 16 to 13 computations (18.8% saved)

regimes9.0ms (0.4%)

Memory
-27.8MiB live, 15.2MiB allocated
Accuracy

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

Counts
1 → 1
Calls
Call 1
Inputs
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))
Outputs
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))
Calls

4 calls:

5.0ms
x
1.0ms
(*.f64 (*.f64 x x) #s(literal 2 binary64))
1.0ms
(*.f64 x x)
1.0ms
(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
Results
AccuracySegmentsBranch
52.1%1x
52.1%1(-.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1 binary64))
52.1%1(*.f64 (*.f64 x x) #s(literal 2 binary64))
52.1%1(*.f64 x x)
Compiler

Compiled 16 to 13 computations (18.8% saved)

bsearch11.0ms (0.4%)

Memory
26.7MiB live, 26.7MiB allocated
Algorithm
binary-search
Stop Event
narrow-enough
Steps
TimeLeftRight
9.0ms
0.0035891072538425427
690.9357297908474
Samples
4.0ms144×0valid
Compiler

Compiled 64 to 91 computations (-42.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 2.0ms
ival-sub: 1.0ms (54.9% of total)
ival-mult: 1.0ms (54.9% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

simplify22.0ms (0.9%)

Memory
12.3MiB live, 50.7MiB allocated
Algorithm
egg-herbie
Rules
1-exp-binary32-exp.f32
*-commutative-binary64-*.f64
1-exp-binary64-exp.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01543
11943
Stop Event
saturated
Calls
Call 1
Inputs
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(if (<=.f64 (*.f64 x x) #s(literal 1/2 binary64)) #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))))
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))
Outputs
(fma.f64 (*.f64 x x) #s(literal 2 binary64) #s(literal -1 binary64))
(if (<=.f64 (*.f64 x x) #s(literal 1/2 binary64)) #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #s(approx (- (* (* x x) 2) 1) (*.f64 (*.f64 x x) #s(literal 2 binary64))))
(if (<=.f64 (*.f64 x x) #s(literal 1/2 binary64)) #s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64)) #s(approx (- (* (* x x) 2) 1) (*.f64 #s(literal 2 binary64) (*.f64 x x))))
#s(approx (- (* (* x x) 2) 1) #s(literal -1 binary64))

soundness380.0ms (15%)

Memory
-25.4MiB live, 202.0MiB allocated
Rules
12 208×lower-fma.f64
12 208×lower-fma.f32
4 322×lower-*.f64
4 322×lower-*.f32
3 996×lower-*.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
010170
119170
240170
385170
4201170
5342170
6835170
72313170
83232170
95538170
08305161
0615
0915
13115
217315
3156315
0853914
Stop Event
done
iter limit
node limit
iter limit
iter limit
node limit
Compiler

Compiled 42 to 27 computations (35.7% saved)

preprocess108.0ms (4.3%)

Memory
6.7MiB live, 96.6MiB allocated
Remove

(abs x)

Compiler

Compiled 70 to 44 computations (37.1% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...