Expression 3, p15

Time bar (total: 2.6s)

start0.0ms (0%)

Memory
0.2MiB live, 0.2MiB allocated

analyze0.0ms (0%)

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

Compiled 17 to 10 computations (41.2% saved)

sample958.0ms (36.3%)

Memory
36.7MiB live, 1 030.3MiB allocated
Samples
594.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 382.0ms
ival-mult: 214.0ms (56% of total)
ival-<=: 98.0ms (25.6% of total)
ival-add: 46.0ms (12% of total)
ival-and: 10.0ms (2.6% of total)
exact: 10.0ms (2.6% of total)
ival-assert: 3.0ms (0.8% of total)
Bogosity

explain68.0ms (2.6%)

Memory
14.7MiB live, 129.0MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
00-0-(*.f64 x (*.f64 x x))
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
19.0ms512×0valid
Compiler

Compiled 49 to 16 computations (67.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-mult: 6.0ms (65% of total)
ival-add: 2.0ms (21.7% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess44.0ms (1.7%)

Memory
-33.7MiB live, 16.3MiB allocated
Algorithm
egg-herbie
Rules
68×associate-*r*
62×distribute-lft-neg-in
54×sub-neg
42×lower-*.f32
38×lower-*.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0617
13114
211314
330914
441814
542214
049
077
1167
2247
3337
4417
5517
6547
0546
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
Outputs
(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
Compiler

Compiled 9 to 4 computations (55.6% saved)

eval0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated
Compiler

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.5MiB live, 0.5MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
Compiler

Compiled 9 to 4 computations (55.6% saved)

simplify4.0ms (0.2%)

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

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff-5824
(*.f64 x (*.f64 x x))
cost-diff0
(*.f64 x x)
cost-diff128
(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
Rules
42×lower-*.f32
38×lower-*.f64
28×lower-fma.f64
28×lower-fma.f32
18×associate-*r*
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0418
0714
11614
22414
33314
44114
55114
65414
05413
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
(*.f64 x (*.f64 x x))
x
(*.f64 x x)
Outputs
(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(*.f64 x (*.f64 x x))
(pow.f64 x #s(literal 3 binary64))
x
(*.f64 x x)

localize16.0ms (0.6%)

Memory
-10.2MiB live, 26.8MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0
(*.f64 x x)
accuracy0.0078125
(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
accuracy0.0859375
(*.f64 x (*.f64 x x))
Samples
10.0ms256×0valid
Compiler

Compiled 20 to 6 computations (70% saved)

Precisions
Click to see histograms. Total time spent on operations: 6.0ms
ival-mult: 4.0ms (70.7% of total)
ival-add: 1.0ms (17.7% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series3.0ms (0.1%)

Memory
7.4MiB live, 7.4MiB allocated
Counts
3 → 36
Calls
Call 1
Inputs
#s(alt (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) (patch (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) #<representation binary64>) () ())
#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())
#s(alt (*.f64 x (*.f64 x x)) (patch (*.f64 x (*.f64 x x)) #<representation binary64>) () ())
Outputs
#s(alt (pow x 2) (taylor 0 x) (#s(alt (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) (patch (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 x)) (taylor 0 x) (#s(alt (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) (patch (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 x)) (taylor 0 x) (#s(alt (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) (patch (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 x)) (taylor 0 x) (#s(alt (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) (patch (+.f64 (*.f64 x (*.f64 x x)) (*.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 (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor 0 x) (#s(alt (*.f64 x (*.f64 x x)) (patch (*.f64 x (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor 0 x) (#s(alt (*.f64 x (*.f64 x x)) (patch (*.f64 x (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor 0 x) (#s(alt (*.f64 x (*.f64 x x)) (patch (*.f64 x (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor 0 x) (#s(alt (*.f64 x (*.f64 x x)) (patch (*.f64 x (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) (patch (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) (patch (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) (patch (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) (patch (+.f64 (*.f64 x (*.f64 x x)) (*.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 (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (*.f64 x (*.f64 x x)) (patch (*.f64 x (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (*.f64 x (*.f64 x x)) (patch (*.f64 x (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (*.f64 x (*.f64 x x)) (patch (*.f64 x (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (*.f64 x (*.f64 x x)) (patch (*.f64 x (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) (patch (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) (patch (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) (patch (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x)) (patch (+.f64 (*.f64 x (*.f64 x x)) (*.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 (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (*.f64 x (*.f64 x x)) (patch (*.f64 x (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (*.f64 x (*.f64 x x)) (patch (*.f64 x (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (*.f64 x (*.f64 x x)) (patch (*.f64 x (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (*.f64 x (*.f64 x x)) (patch (*.f64 x (*.f64 x x)) #<representation binary64>) () ())) ())
Calls

3 calls:

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

simplify173.0ms (6.5%)

Memory
16.9MiB live, 170.5MiB allocated
Algorithm
egg-herbie
Rules
5 604×lower-*.f64
5 604×lower-*.f32
3 550×cube-prod
2 370×lower-/.f32
2 370×lower-/.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
011144
130144
264144
3103144
4286144
51326144
62335144
73183144
83904144
94731144
105074144
115337144
125549144
135769144
145852144
156642144
167744144
08032135
Stop Event
iter limit
node limit
Counts
36 → 36
Calls
Call 1
Inputs
(pow x 2)
(* (pow x 2) (+ 1 x))
(* (pow x 2) (+ 1 x))
(* (pow x 2) (+ 1 x))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 3)
(pow x 3)
(pow x 3)
(pow x 3)
(pow x 3)
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 3)
(pow x 3)
(pow x 3)
(pow x 3)
(pow x 3)
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 3)
(pow x 3)
(pow x 3)
(pow x 3)
Outputs
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 x))
(*.f64 (fma.f64 x x x) x)
(* (pow x 2) (+ 1 x))
(*.f64 (fma.f64 x x x) x)
(* (pow x 2) (+ 1 x))
(*.f64 (fma.f64 x x x) x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(* (pow x 3) (+ 1 (/ 1 x)))
(*.f64 (fma.f64 x x x) x)
(* (pow x 3) (+ 1 (/ 1 x)))
(*.f64 (fma.f64 x x x) x)
(* (pow x 3) (+ 1 (/ 1 x)))
(*.f64 (fma.f64 x x x) x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(* (pow x 3) (+ 1 (/ 1 x)))
(*.f64 (fma.f64 x x x) x)
(* (pow x 3) (+ 1 (/ 1 x)))
(*.f64 (fma.f64 x x x) x)
(* (pow x 3) (+ 1 (/ 1 x)))
(*.f64 (fma.f64 x x x) x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))

rewrite220.0ms (8.4%)

Memory
-9.4MiB live, 269.0MiB allocated
Rules
10 118×lower-fma.f64
10 118×lower-fma.f32
4 498×lower-/.f64
4 498×lower-/.f32
3 492×lower-*.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0417
0713
13013
219913
3176813
0845012
Stop Event
iter limit
node limit
iter limit
Counts
3 → 243
Calls
Call 1
Inputs
(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
(*.f64 x x)
(*.f64 x (*.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>

eval45.0ms (1.7%)

Memory
-2.4MiB live, 33.2MiB allocated
Compiler

Compiled 6 488 to 692 computations (89.3% saved)

prune5.0ms (0.2%)

Memory
15.7MiB live, 15.7MiB allocated
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New3013304
Fresh000
Picked101
Done000
Total3023305
Accuracy
100.0%
Counts
305 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (fma.f64 x x x) x)
100.0%
(*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x))
99.6%
#s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x))
Compiler

Compiled 17 to 11 computations (35.3% saved)

simplify5.0ms (0.2%)

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

Found 7 expressions of interest:

NewMetricScoreProgram
cost-diff-6144
(*.f64 (fma.f64 x x x) x)
cost-diff0
(fma.f64 x x x)
cost-diff-6016
(*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x))
cost-diff0
(*.f64 x x)
cost-diff0
(+.f64 #s(literal 1 binary64) x)
cost-diff0
(*.f64 x x)
cost-diff0
#s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x))
Rules
42×lower-*.f32
36×lower-*.f64
28×lower-fma.f32
26×lower-fma.f64
16×associate-*r*
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01143
01739
13139
24039
34839
45839
56039
06039
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
#s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x))
(*.f64 x x)
x
(*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x))
(+.f64 #s(literal 1 binary64) x)
#s(literal 1 binary64)
x
(*.f64 x x)
(*.f64 (fma.f64 x x x) x)
(fma.f64 x x x)
x
Outputs
#s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x))
(*.f64 x x)
x
(*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(+.f64 #s(literal 1 binary64) x)
#s(literal 1 binary64)
x
(*.f64 x x)
(*.f64 (fma.f64 x x x) x)
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(fma.f64 x x x)
x

localize29.0ms (1.1%)

Memory
-6.6MiB live, 29.9MiB allocated
Localize:

Found 7 expressions of interest:

NewMetricScoreProgram
accuracy0
(fma.f64 x x x)
accuracy0.0078125
(*.f64 (fma.f64 x x x) x)
accuracy0
(+.f64 #s(literal 1 binary64) x)
accuracy0
(*.f64 x x)
accuracy0.00390625
(*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x))
accuracy0
(*.f64 x x)
accuracy0.27062942137803464
#s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x))
Samples
22.0ms256×0valid
Compiler

Compiled 43 to 11 computations (74.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 10.0ms
ival-mult: 6.0ms (59.5% of total)
ival-add: 3.0ms (29.8% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series5.0ms (0.2%)

Memory
5.2MiB live, 5.2MiB allocated
Counts
6 → 72
Calls
Call 1
Inputs
#s(alt #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) (patch #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) #<representation binary64>) () ())
#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())
#s(alt (+.f64 #s(literal 1 binary64) x) (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())
#s(alt (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) (patch (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) #<representation binary64>) () ())
#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())
#s(alt (*.f64 (fma.f64 x x x) x) (patch (*.f64 (fma.f64 x x x) x) #<representation binary64>) () ())
Outputs
#s(alt (pow x 2) (taylor 0 x) (#s(alt #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) (patch #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 x)) (taylor 0 x) (#s(alt #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) (patch #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 x)) (taylor 0 x) (#s(alt #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) (patch #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 x)) (taylor 0 x) (#s(alt #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) (patch #s(approx (+ (* x (* x x)) (* x x)) (*.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 (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 (+.f64 #s(literal 1 binary64) x) (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (+ 1 x) (taylor 0 x) (#s(alt (+.f64 #s(literal 1 binary64) x) (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (+ 1 x) (taylor 0 x) (#s(alt (+.f64 #s(literal 1 binary64) x) (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (+ 1 x) (taylor 0 x) (#s(alt (+.f64 #s(literal 1 binary64) x) (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) (patch (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 x)) (taylor 0 x) (#s(alt (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) (patch (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 x)) (taylor 0 x) (#s(alt (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) (patch (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 x)) (taylor 0 x) (#s(alt (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) (patch (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt x (taylor 0 x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 x)) (taylor 0 x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 x)) (taylor 0 x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 x)) (taylor 0 x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 (fma.f64 x x x) x) (patch (*.f64 (fma.f64 x x x) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 x)) (taylor 0 x) (#s(alt (*.f64 (fma.f64 x x x) x) (patch (*.f64 (fma.f64 x x x) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 x)) (taylor 0 x) (#s(alt (*.f64 (fma.f64 x x x) x) (patch (*.f64 (fma.f64 x x x) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 x)) (taylor 0 x) (#s(alt (*.f64 (fma.f64 x x x) x) (patch (*.f64 (fma.f64 x x x) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) (patch #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) (patch #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) (patch #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) (patch #s(approx (+ (* x (* x x)) (* x x)) (*.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 (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt x (taylor inf x) (#s(alt (+.f64 #s(literal 1 binary64) x) (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (+.f64 #s(literal 1 binary64) x) (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (+.f64 #s(literal 1 binary64) x) (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (+.f64 #s(literal 1 binary64) x) (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) (patch (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) (patch (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) (patch (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) (patch (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (*.f64 (fma.f64 x x x) x) (patch (*.f64 (fma.f64 x x x) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (*.f64 (fma.f64 x x x) x) (patch (*.f64 (fma.f64 x x x) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (*.f64 (fma.f64 x x x) x) (patch (*.f64 (fma.f64 x x x) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (*.f64 (fma.f64 x x x) x) (patch (*.f64 (fma.f64 x x x) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) (patch #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) (patch #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) (patch #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt #s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x)) (patch #s(approx (+ (* x (* x x)) (* x x)) (*.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 (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt x (taylor -inf x) (#s(alt (+.f64 #s(literal 1 binary64) x) (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (+.f64 #s(literal 1 binary64) x) (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (+.f64 #s(literal 1 binary64) x) (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (+.f64 #s(literal 1 binary64) x) (patch (+.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) (patch (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) (patch (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) (patch (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) (patch (*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (*.f64 (fma.f64 x x x) x) (patch (*.f64 (fma.f64 x x x) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (*.f64 (fma.f64 x x x) x) (patch (*.f64 (fma.f64 x x x) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (*.f64 (fma.f64 x x x) x) (patch (*.f64 (fma.f64 x x x) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (*.f64 (fma.f64 x x x) x) (patch (*.f64 (fma.f64 x x x) x) #<representation binary64>) () ())) ())
Calls

3 calls:

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

simplify286.0ms (10.8%)

Memory
-29.9MiB live, 142.4MiB allocated
Algorithm
egg-herbie
Rules
5 588×lower-*.f64
5 588×lower-*.f32
3 540×cube-prod
2 370×lower-/.f32
2 370×lower-/.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
014334
148334
268334
3217334
41311334
52296334
63141334
73889334
84698334
95041334
105306334
115518334
125738334
135821334
146610334
157705334
08001298
Stop Event
iter limit
node limit
Counts
72 → 69
Calls
Call 1
Inputs
(pow x 2)
(* (pow x 2) (+ 1 x))
(* (pow x 2) (+ 1 x))
(* (pow x 2) (+ 1 x))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
1
(+ 1 x)
(+ 1 x)
(+ 1 x)
(pow x 2)
(* (pow x 2) (+ 1 x))
(* (pow x 2) (+ 1 x))
(* (pow x 2) (+ 1 x))
x
(* x (+ 1 x))
(* x (+ 1 x))
(* x (+ 1 x))
(pow x 2)
(* (pow x 2) (+ 1 x))
(* (pow x 2) (+ 1 x))
(* (pow x 2) (+ 1 x))
(pow x 3)
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
x
(* x (+ 1 (/ 1 x)))
(* x (+ 1 (/ 1 x)))
(* x (+ 1 (/ 1 x)))
(pow x 3)
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(pow x 2)
(* (pow x 2) (+ 1 (/ 1 x)))
(* (pow x 2) (+ 1 (/ 1 x)))
(* (pow x 2) (+ 1 (/ 1 x)))
(pow x 3)
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(pow x 3)
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
x
(* x (+ 1 (/ 1 x)))
(* x (+ 1 (/ 1 x)))
(* x (+ 1 (/ 1 x)))
(pow x 3)
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(pow x 2)
(* (pow x 2) (+ 1 (/ 1 x)))
(* (pow x 2) (+ 1 (/ 1 x)))
(* (pow x 2) (+ 1 (/ 1 x)))
(pow x 3)
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
(* (pow x 3) (+ 1 (/ 1 x)))
Outputs
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 x))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 2) (+ 1 x))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 2) (+ 1 x))
(fma.f64 x x (pow.f64 x #s(literal 3 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)
(+ 1 x)
(+.f64 #s(literal 1 binary64) x)
(+ 1 x)
(+.f64 #s(literal 1 binary64) x)
(+ 1 x)
(+.f64 #s(literal 1 binary64) x)
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 x))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 2) (+ 1 x))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 2) (+ 1 x))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
x
(* x (+ 1 x))
(fma.f64 x x x)
(* x (+ 1 x))
(fma.f64 x x x)
(* x (+ 1 x))
(fma.f64 x x x)
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 x))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 2) (+ 1 x))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 2) (+ 1 x))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 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)
x
(* x (+ 1 (/ 1 x)))
(+.f64 #s(literal 1 binary64) x)
(* x (+ 1 (/ 1 x)))
(+.f64 #s(literal 1 binary64) x)
(* x (+ 1 (/ 1 x)))
(+.f64 #s(literal 1 binary64) x)
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 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)
x
(* x (+ 1 (/ 1 x)))
(+.f64 #s(literal 1 binary64) x)
(* x (+ 1 (/ 1 x)))
(+.f64 #s(literal 1 binary64) x)
(* x (+ 1 (/ 1 x)))
(+.f64 #s(literal 1 binary64) x)
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))
(* (pow x 3) (+ 1 (/ 1 x)))
(fma.f64 x x (pow.f64 x #s(literal 3 binary64)))

rewrite186.0ms (7.1%)

Memory
43.5MiB live, 313.7MiB allocated
Rules
7 292×lower-fma.f32
7 290×lower-fma.f64
4 916×lower-*.f32
4 910×lower-*.f64
3 112×lower-/.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01136
01732
16332
238932
3381632
0898432
Stop Event
iter limit
node limit
iter limit
Counts
6 → 508
Calls
Call 1
Inputs
#s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x))
(*.f64 x x)
(+.f64 #s(literal 1 binary64) x)
(*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x))
(fma.f64 x x x)
(*.f64 (fma.f64 x x 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>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval63.0ms (2.4%)

Memory
3.3MiB live, 198.7MiB allocated
Compiler

Compiled 10 242 to 1 054 computations (89.7% saved)

prune27.0ms (1%)

Memory
-70.1MiB live, 47.5MiB allocated
Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New6010601
Fresh000
Picked033
Done000
Total6013604
Accuracy
100.0%
Counts
604 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (fma.f64 x x x) x)
100.0%
(*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x))
99.6%
#s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x))
Compiler

Compiled 43 to 21 computations (51.2% saved)

regimes4.0ms (0.2%)

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

2 calls:

2.0ms
x
2.0ms
(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
Compiler

Compiled 10 to 5 computations (50% saved)

regimes3.0ms (0.1%)

Memory
9.6MiB live, 9.6MiB allocated
Counts
2 → 1
Calls
Call 1
Inputs
#s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x))
(*.f64 (fma.f64 x x x) x)
Outputs
(*.f64 (fma.f64 x x x) x)
Calls

2 calls:

1.0ms
x
1.0ms
(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
Compiler

Compiled 10 to 5 computations (50% saved)

regimes2.0ms (0.1%)

Memory
8.5MiB live, 8.5MiB allocated
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

Counts
1 → 1
Calls
Call 1
Inputs
#s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x))
Outputs
#s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x))
Calls

2 calls:

1.0ms
x
1.0ms
(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
Results
AccuracySegmentsBranch
99.6%1x
99.6%1(+.f64 (*.f64 x (*.f64 x x)) (*.f64 x x))
Compiler

Compiled 10 to 5 computations (50% saved)

simplify79.0ms (3%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01126
11726
Stop Event
saturated
Calls
Call 1
Inputs
(*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x))
(*.f64 (fma.f64 x x x) x)
#s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x))
Outputs
(*.f64 (+.f64 #s(literal 1 binary64) x) (*.f64 x x))
(*.f64 (*.f64 x x) (+.f64 x #s(literal 1 binary64)))
(*.f64 (fma.f64 x x x) x)
#s(approx (+ (* x (* x x)) (* x x)) (*.f64 x x))

soundness353.0ms (13.4%)

Memory
6.4MiB live, 193.9MiB allocated
Rules
10 118×lower-fma.f64
10 118×lower-fma.f32
5 604×lower-*.f64
5 604×lower-*.f32
4 498×lower-/.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0417
0713
13013
219913
3176813
0845012
011144
130144
264144
3103144
4286144
51326144
62335144
73183144
83904144
94731144
105074144
115337144
125549144
135769144
145852144
156642144
167744144
08032135
Stop Event
done
iter limit
node limit
iter limit
node limit
iter limit
Compiler

Compiled 51 to 23 computations (54.9% saved)

preprocess59.0ms (2.2%)

Memory
12.2MiB live, 92.7MiB allocated
Compiler

Compiled 66 to 34 computations (48.5% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...