Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, C

Time bar (total: 3.9s)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated

analyze0.0ms (0%)

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

Compiled 7 to 7 computations (0% saved)

sample725.0ms (18.5%)

Memory
-16.9MiB live, 953.8MiB allocated
Samples
438.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 170.0ms
ival-mult: 113.0ms (66.4% of total)
ival-sub: 43.0ms (25.3% of total)
ival-true: 5.0ms (2.9% of total)
exact: 5.0ms (2.9% of total)
ival-assert: 3.0ms (1.8% of total)
Bogosity

explain342.0ms (8.7%)

Memory
33.0MiB live, 111.5MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-(-.f64 (*.f64 x #s(literal 2 binary64)) y)
00-0-(*.f64 x #s(literal 2 binary64))
00-0-#s(literal 2 binary64)
00-0-y
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 42 to 24 computations (42.9% saved)

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

preprocess61.0ms (1.5%)

Memory
-29.3MiB live, 50.0MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01329
13125
27925
317025
424725
527525
628125
055
075
1105
2155
3215
4365
5555
61015
71435
81945
92115
102195
02195
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(-.f64 (*.f64 x #s(literal 2 binary64)) y)
Outputs
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
Compiler

Compiled 5 to 5 computations (0% saved)

eval0.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

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

Compiled 5 to 5 computations (0% saved)

simplify7.0ms (0.2%)

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

Found 2 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 x #s(literal 2 binary64))
cost-diff0
(-.f64 (*.f64 x #s(literal 2 binary64)) y)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0511
0711
11011
21511
32111
43611
55511
610111
714311
819411
921111
1021911
021911
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(-.f64 (*.f64 x #s(literal 2 binary64)) y)
(*.f64 x #s(literal 2 binary64))
x
#s(literal 2 binary64)
y
Outputs
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(*.f64 #s(literal 2 binary64) x)
x
#s(literal 2 binary64)
y

localize44.0ms (1.1%)

Memory
-15.8MiB live, 21.6MiB allocated
Localize:

Found 2 expressions of interest:

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

Compiled 24 to 12 computations (50% saved)

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

series4.0ms (0.1%)

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

6 calls:

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

simplify172.0ms (4.4%)

Memory
14.9MiB live, 94.4MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
025141
168141
2170141
3436141
4958141
51949141
63052141
74444141
84922141
95132141
105186141
115951141
126890141
137332141
147914141
08242141
Stop Event
iter limit
node limit
Counts
36 → 36
Calls
Call 1
Inputs
(* 2 x)
(+ (* -1 y) (* 2 x))
(+ (* -1 y) (* 2 x))
(+ (* -1 y) (* 2 x))
(* -1 y)
(* y (- (* 2 (/ x y)) 1))
(* y (- (* 2 (/ x y)) 1))
(* y (- (* 2 (/ x y)) 1))
(* -1 y)
(* -1 (* y (+ 1 (* -2 (/ x y)))))
(* -1 (* y (+ 1 (* -2 (/ x y)))))
(* -1 (* y (+ 1 (* -2 (/ x y)))))
(* -1 y)
(- (* 2 x) y)
(- (* 2 x) y)
(- (* 2 x) y)
(* 2 x)
(* 2 x)
(* 2 x)
(* 2 x)
(* 2 x)
(* x (+ 2 (* -1 (/ y x))))
(* x (+ 2 (* -1 (/ y x))))
(* x (+ 2 (* -1 (/ y x))))
(* 2 x)
(* 2 x)
(* 2 x)
(* 2 x)
(* 2 x)
(* -1 (* x (- (/ y x) 2)))
(* -1 (* x (- (/ y x) 2)))
(* -1 (* x (- (/ y x) 2)))
(* 2 x)
(* 2 x)
(* 2 x)
(* 2 x)
Outputs
(*.f64 #s(literal 2 binary64) x)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(neg.f64 y)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(neg.f64 y)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(neg.f64 y)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)

rewrite258.0ms (6.6%)

Memory
-20.0MiB live, 257.9MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
058
078
1238
21618
315768
093557
Stop Event
iter limit
node limit
iter limit
Counts
2 → 372
Calls
Call 1
Inputs
(-.f64 (*.f64 x #s(literal 2 binary64)) y)
(*.f64 x #s(literal 2 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>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval49.0ms (1.2%)

Memory
24.2MiB live, 108.4MiB allocated
Compiler

Compiled 12 729 to 819 computations (93.6% saved)

prune25.0ms (0.6%)

Memory
-12.3MiB live, 24.6MiB allocated
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New4062408
Fresh000
Picked011
Done000
Total4063409
Accuracy
100.0%
Counts
409 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(-.f64 (*.f64 x #s(literal 2 binary64)) y)
49.8%
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x))
52.2%
#s(approx (- (* x 2) y) (neg.f64 y))
Compiler

Compiled 22 to 20 computations (9.1% saved)

simplify9.0ms (0.2%)

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

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 #s(literal 2 binary64) x)
cost-diff0
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x))
cost-diff0
(neg.f64 y)
cost-diff0
#s(approx (- (* x 2) y) (neg.f64 y))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0925
01125
11725
22225
32925
44525
56625
610525
714825
819925
921625
1022425
022425
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
#s(approx (- (* x 2) y) (neg.f64 y))
(neg.f64 y)
y
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x))
(*.f64 #s(literal 2 binary64) x)
#s(literal 2 binary64)
x
Outputs
#s(approx (- (* x 2) y) (neg.f64 y))
(neg.f64 y)
y
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x))
(*.f64 #s(literal 2 binary64) x)
#s(literal 2 binary64)
x

localize41.0ms (1%)

Memory
-2.2MiB live, 36.9MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0
(*.f64 #s(literal 2 binary64) x)
accuracy32.156724772183
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x))
accuracy0
(neg.f64 y)
accuracy30.60756406629879
#s(approx (- (* x 2) y) (neg.f64 y))
Samples
14.0ms256×0valid
Compiler

Compiled 45 to 19 computations (57.8% saved)

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

series4.0ms (0.1%)

Memory
9.3MiB live, 9.3MiB allocated
Counts
4 → 72
Calls
Call 1
Inputs
#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())
#s(alt #<batchref> (patch (neg.f64 y) #<representation binary64>) () ())
#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())
#s(alt #<batchref> (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())
Outputs
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch (neg.f64 y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch (neg.f64 y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch (neg.f64 y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch (neg.f64 y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch (neg.f64 y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch (neg.f64 y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch (neg.f64 y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch (neg.f64 y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch (neg.f64 y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch (neg.f64 y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch (neg.f64 y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch (neg.f64 y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ())
Calls

6 calls:

TimeVariablePointExpression
0.0ms
x
@-inf
((- (* x 2) y) (neg y) (- (* x 2) y) (* 2 x))
0.0ms
y
@inf
((- (* x 2) y) (neg y) (- (* x 2) y) (* 2 x))
0.0ms
x
@inf
((- (* x 2) y) (neg y) (- (* x 2) y) (* 2 x))
0.0ms
y
@-inf
((- (* x 2) y) (neg y) (- (* x 2) y) (* 2 x))
0.0ms
x
@0
((- (* x 2) y) (neg y) (- (* x 2) y) (* 2 x))

simplify154.0ms (3.9%)

Memory
-11.4MiB live, 72.7MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
025270
168270
2170270
3436270
4958270
51949270
63052270
74440270
84914270
95126270
105180270
115934270
126873270
137315270
147897270
08225270
Stop Event
iter limit
node limit
Counts
72 → 72
Calls
Call 1
Inputs
(* 2 x)
(+ (* -1 y) (* 2 x))
(+ (* -1 y) (* 2 x))
(+ (* -1 y) (* 2 x))
(* -1 y)
(* -1 y)
(* -1 y)
(* -1 y)
(* 2 x)
(+ (* -1 y) (* 2 x))
(+ (* -1 y) (* 2 x))
(+ (* -1 y) (* 2 x))
(* -1 y)
(* y (- (* 2 (/ x y)) 1))
(* y (- (* 2 (/ x y)) 1))
(* y (- (* 2 (/ x y)) 1))
(* -1 y)
(* -1 y)
(* -1 y)
(* -1 y)
(* -1 y)
(* y (- (* 2 (/ x y)) 1))
(* y (- (* 2 (/ x y)) 1))
(* y (- (* 2 (/ x y)) 1))
(* -1 y)
(* -1 (* y (+ 1 (* -2 (/ x y)))))
(* -1 (* y (+ 1 (* -2 (/ x y)))))
(* -1 (* y (+ 1 (* -2 (/ x y)))))
(* -1 y)
(* -1 y)
(* -1 y)
(* -1 y)
(* -1 y)
(* -1 (* y (+ 1 (* -2 (/ x y)))))
(* -1 (* y (+ 1 (* -2 (/ x y)))))
(* -1 (* y (+ 1 (* -2 (/ x y)))))
(* -1 y)
(- (* 2 x) y)
(- (* 2 x) y)
(- (* 2 x) y)
(* -1 y)
(- (* 2 x) y)
(- (* 2 x) y)
(- (* 2 x) y)
(* 2 x)
(* 2 x)
(* 2 x)
(* 2 x)
(* 2 x)
(* x (+ 2 (* -1 (/ y x))))
(* x (+ 2 (* -1 (/ y x))))
(* x (+ 2 (* -1 (/ y x))))
(* 2 x)
(* x (+ 2 (* -1 (/ y x))))
(* x (+ 2 (* -1 (/ y x))))
(* x (+ 2 (* -1 (/ y x))))
(* 2 x)
(* 2 x)
(* 2 x)
(* 2 x)
(* 2 x)
(* -1 (* x (- (/ y x) 2)))
(* -1 (* x (- (/ y x) 2)))
(* -1 (* x (- (/ y x) 2)))
(* 2 x)
(* -1 (* x (- (/ y x) 2)))
(* -1 (* x (- (/ y x) 2)))
(* -1 (* x (- (/ y x) 2)))
(* 2 x)
(* 2 x)
(* 2 x)
(* 2 x)
Outputs
(*.f64 #s(literal 2 binary64) x)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(neg.f64 y)
(neg.f64 y)
(neg.f64 y)
(neg.f64 y)
(*.f64 #s(literal 2 binary64) x)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(neg.f64 y)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(neg.f64 y)
(neg.f64 y)
(neg.f64 y)
(neg.f64 y)
(neg.f64 y)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(neg.f64 y)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(neg.f64 y)
(neg.f64 y)
(neg.f64 y)
(neg.f64 y)
(neg.f64 y)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(neg.f64 y)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(neg.f64 y)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(*.f64 #s(literal 2 binary64) x)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(*.f64 #s(literal 2 binary64) x)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)
(*.f64 #s(literal 2 binary64) x)

rewrite131.0ms (3.3%)

Memory
11.8MiB live, 205.5MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0922
01122
13022
217822
3177320
0944818
Stop Event
iter limit
node limit
iter limit
Counts
4 → 68
Calls
Call 1
Inputs
#s(approx (- (* x 2) y) (neg.f64 y))
(neg.f64 y)
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x))
(*.f64 #s(literal 2 binary64) 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>

eval15.0ms (0.4%)

Memory
-6.0MiB live, 32.1MiB allocated
Compiler

Compiled 1 745 to 211 computations (87.9% saved)

prune51.0ms (1.3%)

Memory
4.6MiB live, 53.0MiB allocated
Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New1391140
Fresh000
Picked022
Done011
Total1394143
Accuracy
100.0%
Counts
143 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(-.f64 (*.f64 x #s(literal 2 binary64)) y)
49.8%
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x))
52.2%
#s(approx (- (* x 2) y) (neg.f64 y))
2.1%
#s(approx (- (* x 2) y) y)
Compiler

Compiled 29 to 26 computations (10.3% saved)

simplify12.0ms (0.3%)

Memory
-19.1MiB live, 16.0MiB allocated
Algorithm
egg-herbie
Localize:

Found 1 expressions of interest:

NewMetricScoreProgram
cost-diff0
#s(approx (- (* x 2) y) y)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
068
068
198
2148
3208
4368
5558
61018
71438
81938
92108
102188
02188
Stop Event
iter limit
saturated
saturated
Calls
Call 1
Inputs
#s(approx (- (* x 2) y) y)
y
Outputs
#s(approx (- (* x 2) y) y)
y

localize15.0ms (0.4%)

Memory
5.0MiB live, 43.2MiB allocated
Localize:

Found 1 expressions of interest:

NewMetricScoreProgram
accuracy62.6295417574193
#s(approx (- (* x 2) y) y)
Samples
10.0ms256×0valid
Compiler

Compiled 16 to 13 computations (18.8% saved)

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

series2.0ms (0%)

Memory
7.0MiB live, 7.0MiB allocated
Counts
1 → 24
Calls
Call 1
Inputs
#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())
Outputs
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf y) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ())
Calls

6 calls:

TimeVariablePointExpression
0.0ms
y
@inf
((- (* x 2) y))
0.0ms
x
@inf
((- (* x 2) y))
0.0ms
x
@-inf
((- (* x 2) y))
0.0ms
y
@-inf
((- (* x 2) y))
0.0ms
y
@0
((- (* x 2) y))

simplify486.0ms (12.4%)

Memory
9.4MiB live, 131.7MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
025105
168105
2170105
3436105
4958105
51949105
63052105
74440105
84914105
95126105
105180105
115934105
126873105
137315105
147897105
08225105
Stop Event
iter limit
node limit
Counts
24 → 24
Calls
Call 1
Inputs
(* 2 x)
(+ (* -1 y) (* 2 x))
(+ (* -1 y) (* 2 x))
(+ (* -1 y) (* 2 x))
(* -1 y)
(* y (- (* 2 (/ x y)) 1))
(* y (- (* 2 (/ x y)) 1))
(* y (- (* 2 (/ x y)) 1))
(* -1 y)
(* -1 (* y (+ 1 (* -2 (/ x y)))))
(* -1 (* y (+ 1 (* -2 (/ x y)))))
(* -1 (* y (+ 1 (* -2 (/ x y)))))
(* -1 y)
(- (* 2 x) y)
(- (* 2 x) y)
(- (* 2 x) y)
(* 2 x)
(* x (+ 2 (* -1 (/ y x))))
(* x (+ 2 (* -1 (/ y x))))
(* x (+ 2 (* -1 (/ y x))))
(* 2 x)
(* -1 (* x (- (/ y x) 2)))
(* -1 (* x (- (/ y x) 2)))
(* -1 (* x (- (/ y x) 2)))
Outputs
(*.f64 #s(literal 2 binary64) x)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(neg.f64 y)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(neg.f64 y)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(neg.f64 y)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(*.f64 #s(literal 2 binary64) x)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(*.f64 #s(literal 2 binary64) x)
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))
(fma.f64 #s(literal 2 binary64) x (neg.f64 y))

rewrite351.0ms (8.9%)

Memory
-18.5MiB live, 134.8MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
067
067
1227
21607
315707
093666
Stop Event
iter limit
node limit
saturated
Counts
1 → 1
Calls
Call 1
Inputs
#s(approx (- (* x 2) y) y)
Outputs
#<batchref>

eval2.0ms (0.1%)

Memory
3.4MiB live, 3.4MiB allocated
Compiler

Compiled 256 to 13 computations (94.9% saved)

prune3.0ms (0.1%)

Memory
4.7MiB live, 4.7MiB allocated
Pruning

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New25025
Fresh000
Picked011
Done033
Total25429
Accuracy
100.0%
Counts
29 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(-.f64 (*.f64 x #s(literal 2 binary64)) y)
49.8%
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x))
52.2%
#s(approx (- (* x 2) y) (neg.f64 y))
2.1%
#s(approx (- (* x 2) y) y)
Compiler

Compiled 58 to 39 computations (32.8% saved)

regimes10.0ms (0.3%)

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

4 calls:

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

Compiled 10 to 13 computations (-30% saved)

regimes8.0ms (0.2%)

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

4 calls:

2.0ms
y
2.0ms
(*.f64 x #s(literal 2 binary64))
2.0ms
(-.f64 (*.f64 x #s(literal 2 binary64)) y)
2.0ms
x
Results
AccuracySegmentsBranch
76.8%3x
76.2%3y
59.1%4(-.f64 (*.f64 x #s(literal 2 binary64)) y)
76.8%3(*.f64 x #s(literal 2 binary64))
Compiler

Compiled 10 to 13 computations (-30% saved)

regimes35.0ms (0.9%)

Memory
-24.1MiB live, 14.6MiB allocated
Counts
2 → 1
Calls
Call 1
Inputs
#s(approx (- (* x 2) y) y)
#s(approx (- (* x 2) y) (neg.f64 y))
Outputs
#s(approx (- (* x 2) y) (neg.f64 y))
Calls

4 calls:

30.0ms
(*.f64 x #s(literal 2 binary64))
2.0ms
(-.f64 (*.f64 x #s(literal 2 binary64)) y)
2.0ms
x
2.0ms
y
Results
AccuracySegmentsBranch
52.2%1(-.f64 (*.f64 x #s(literal 2 binary64)) y)
52.2%1y
52.2%1x
52.2%1(*.f64 x #s(literal 2 binary64))
Compiler

Compiled 10 to 13 computations (-30% saved)

regimes6.0ms (0.1%)

Memory
12.7MiB live, 12.7MiB allocated
Accuracy

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

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

4 calls:

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

Compiled 10 to 13 computations (-30% saved)

bsearch1.0ms (0%)

Memory
1.0MiB live, 1.0MiB allocated
Algorithm
left-value
Steps
TimeLeftRight
0.0ms
3.629818187428831e+66
5.829047954460358e+81
0.0ms
-9.813108952775886e-6
-2.7976343078233124e-6
Compiler

Compiled 8 to 10 computations (-25% saved)

simplify26.0ms (0.7%)

Memory
-1.1MiB live, 36.3MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01858
12458
22758
32858
Stop Event
saturated
Calls
Call 1
Inputs
(-.f64 (*.f64 x #s(literal 2 binary64)) y)
(if (<=.f64 (*.f64 x #s(literal 2 binary64)) #s(literal -5902958103587057/1180591620717411303424 binary64)) #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (if (<=.f64 (*.f64 x #s(literal 2 binary64)) #s(literal 4999999999999999913683878919592799158619891437790466139288573575168 binary64)) #s(approx (- (* x 2) y) (neg.f64 y)) #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x))))
#s(approx (- (* x 2) y) (neg.f64 y))
#s(approx (- (* x 2) y) y)
Outputs
(-.f64 (*.f64 #s(literal 2 binary64) x) y)
(if (<=.f64 (*.f64 #s(literal 2 binary64) x) #s(literal -5902958103587057/1180591620717411303424 binary64)) #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (if (<=.f64 (*.f64 #s(literal 2 binary64) x) #s(literal 4999999999999999913683878919592799158619891437790466139288573575168 binary64)) #s(approx (- (* x 2) y) (neg.f64 y)) #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x))))
#s(approx (- (* x 2) y) (neg.f64 y))
#s(approx (- (* x 2) y) y)

soundness720.0ms (18.3%)

Memory
-33.1MiB live, 194.6MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0922
01122
13022
217822
3177320
0944818
025141
168141
2170141
3436141
4958141
51949141
63052141
74444141
84922141
95132141
105186141
115951141
126890141
137332141
147914141
08242141
Stop Event
done
iter limit
node limit
iter limit
node limit
iter limit
Compiler

Compiled 75 to 38 computations (49.3% saved)

preprocess158.0ms (4%)

Memory
-12.9MiB live, 61.4MiB allocated
Compiler

Compiled 126 to 46 computations (63.5% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...