Data.Random.Distribution.T:$ccdf from random-fu-0.2.6.2

Time bar (total: 2.2s)

analyze17.0ms (0.7%)

Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%99.9%0.1%0%0%0%0
0%0%99.9%0.1%0%0%0%1
0%0%99.9%0.1%0%0%0%2
50%50%50%0.1%0%0%0%3
50%50%50%0.1%0%0%0%4
75%74.9%25%0.1%0%0%0%5
75%74.9%25%0.1%0%0%0%6
87.5%87.4%12.5%0.1%0%0%0%7
87.5%87.4%12.5%0.1%0%0%0%8
93.8%93.7%6.2%0.1%0%0%0%9
93.8%93.7%6.2%0.1%0%0%0%10
96.9%96.8%3.1%0.1%0%0%0%11
96.9%96.8%3.1%0.1%0%0%0%12
Compiler

Compiled 10 to 6 computations (40% saved)

Precisions
Click to see histograms. Total time spent on operations: 4.0ms
ival-add: 2.0ms (52.7% of total)
ival-div: 1.0ms (26.4% of total)
const: 0.0ms (0% of total)
backward-pass: 0.0ms (0% of total)

sample693.0ms (31.3%)

Results
520.0ms8256×0valid
Precisions
Click to see histograms. Total time spent on operations: 240.0ms
ival-add: 151.0ms (63% of total)
ival-div: 78.0ms (32.5% of total)
const: 8.0ms (3.3% of total)
backward-pass: 3.0ms (1.3% of total)
Bogosity

preprocess75.0ms (3.4%)

Algorithm
egg-herbie
Rules
1700×fnmsub-define
1686×fmsub-define
1656×sum3-define
1554×fmm-def
914×times-frac
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01748
14442
211242
334942
4151238
5378837
6643337
7769436
057
187
2117
3137
0137
Stop Event
iter limit
saturated
node limit
Calls
Call 1
Inputs
(/ (+ x y) (+ y y))
Outputs
(/ (+ x y) (+ y y))
(/.f64 (+.f64 x y) (*.f64 y #s(literal 2 binary64)))
Call 2
Inputs
(/ (+ x y) (+ y y))
(/ (+ (neg x) y) (+ y y))
(/ (+ x (neg y)) (+ (neg y) (neg y)))
(neg (/ (+ (neg x) y) (+ y y)))
(neg (/ (+ x (neg y)) (+ (neg y) (neg y))))
(/ (+ y x) (+ x x))
Outputs
(/ (+ x y) (+ y y))
(fnmsub x (/ -1/2 y) -1/2)
(/ (+ (neg x) y) (+ y y))
(fnmsub x (/ 1/2 y) -1/2)
(/ (+ x (neg y)) (+ (neg y) (neg y)))
(fnmsub x (/ 1/2 y) -1/2)
(neg (/ (+ (neg x) y) (+ y y)))
(fnmsub x (/ -1/2 y) 1/2)
(neg (/ (+ x (neg y)) (+ (neg y) (neg y))))
(fnmsub x (/ -1/2 y) 1/2)
(/ (+ y x) (+ x x))
(fnmsub y (/ -1/2 x) -1/2)

explain70.0ms (3.2%)

FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-x
00-0-(+.f64 x y)
00-0-(/.f64 (+.f64 x y) (+.f64 y y))
00-0-y
00-0-(+.f64 y y)
Results
54.0ms512×0valid
Compiler

Compiled 45 to 17 computations (62.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 29.0ms
ival-div: 16.0ms (54.6% of total)
ival-add: 12.0ms (40.9% of total)
const: 0.0ms (0% of total)
backward-pass: 0.0ms (0% of total)

eval0.0ms (0%)

Compiler

Compiled 9 to 6 computations (33.3% saved)

prune1.0ms (0%)

Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(/.f64 (+.f64 x y) (+.f64 y y))
Compiler

Compiled 9 to 5 computations (44.4% saved)

simplify29.0ms (1.3%)

Algorithm
egg-herbie
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f64 y y)
cost-diff0
(+.f64 x y)
cost-diff0
(/.f64 (+.f64 x y) (+.f64 y y))
Rules
10×/-lowering-/.f32
10×/-lowering-/.f64
+-lowering-+.f64
+-lowering-+.f32
*-lowering-*.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0515
1815
21115
31315
01315
Stop Event
iter limit
saturated
Calls
Call 1
Inputs
(/ (+ x y) (+ y y))
(+ x y)
x
y
(+ y y)
Outputs
(/ (+ x y) (+ y y))
(/.f64 (+.f64 x y) (*.f64 y #s(literal 2 binary64)))
(+ x y)
(+.f64 x y)
x
y
(+ y y)
(*.f64 y #s(literal 2 binary64))

localize30.0ms (1.4%)

Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy100.0%
(+.f64 y y)
accuracy100.0%
(+.f64 x y)
accuracy100.0%
(/.f64 (+.f64 x y) (+.f64 y y))
Results
19.0ms256×0valid
Compiler

Compiled 18 to 6 computations (66.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 5.0ms
ival-add: 3.0ms (56% of total)
ival-div: 2.0ms (37.3% of total)
const: 0.0ms (0% of total)
backward-pass: 0.0ms (0% of total)

series5.0ms (0.2%)

Counts
3 → 60
Calls
Call 1
Inputs
#<alt (/ (+ x y) (+ y y))>
#<alt (+ x y)>
#<alt (+ y y)>
Outputs
#<alt 1/2>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (* 1/2 (/ x y))>
#<alt (* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))>
#<alt (* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))>
#<alt (* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))>
#<alt (* 1/2 (/ x y))>
#<alt (* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))>
#<alt (* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))>
#<alt (* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))>
#<alt (* 1/2 (/ x y))>
#<alt (/ (+ (* 1/2 x) (* 1/2 y)) y)>
#<alt (/ (+ (* 1/2 x) (* 1/2 y)) y)>
#<alt (/ (+ (* 1/2 x) (* 1/2 y)) y)>
#<alt 1/2>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt 1/2>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt y>
#<alt (+ x y)>
#<alt (+ x y)>
#<alt (+ x y)>
#<alt x>
#<alt (* x (+ 1 (/ y x)))>
#<alt (* x (+ 1 (/ y x)))>
#<alt (* x (+ 1 (/ y x)))>
#<alt x>
#<alt (* -1 (* x (- (* -1 (/ y x)) 1)))>
#<alt (* -1 (* x (- (* -1 (/ y x)) 1)))>
#<alt (* -1 (* x (- (* -1 (/ y x)) 1)))>
#<alt x>
#<alt (+ x y)>
#<alt (+ x y)>
#<alt (+ x y)>
#<alt y>
#<alt (* y (+ 1 (/ x y)))>
#<alt (* y (+ 1 (/ x y)))>
#<alt (* y (+ 1 (/ x y)))>
#<alt y>
#<alt (* -1 (* y (- (* -1 (/ x y)) 1)))>
#<alt (* -1 (* y (- (* -1 (/ x y)) 1)))>
#<alt (* -1 (* y (- (* -1 (/ x y)) 1)))>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
Calls

15 calls:

TimeVariablePointExpression
1.0ms
y
@0
(+ y y)
1.0ms
x
@inf
(/ (+ x y) (+ y y))
1.0ms
y
@0
(/ (+ x y) (+ y y))
0.0ms
x
@0
(/ (+ x y) (+ y y))
0.0ms
y
@inf
(/ (+ x y) (+ y y))

rewrite72.0ms (3.2%)

Algorithm
batch-egg-rewrite
Rules
150×/-lowering-/.f32
150×/-lowering-/.f64
128×*-lowering-*.f32
128×*-lowering-*.f64
80×+-lowering-+.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0513
13513
032513
Stop Event
iter limit
iter limit
iter limit
unsound
Counts
3 → 61
Calls
Call 1
Inputs
(/ (+ x y) (+ y y))
(+ x y)
(+ y y)
Outputs
(neg.f64 (*.f64 (/.f64 (+.f64 x y) #s(literal 0 binary64)) #s(literal 0 binary64)))
(/.f64 (+.f64 x y) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 (-.f64 #s(literal 0 binary64) (+.f64 x y)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 (+.f64 (*.f64 x (*.f64 x x)) (*.f64 y (*.f64 y y))) (*.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) (+.f64 (*.f64 x x) (*.f64 y (-.f64 y x)))))
(/.f64 #s(literal 1 binary64) (/.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) (+.f64 x y)))
(/.f64 #s(literal 1 binary64) (/.f64 (/.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) (+.f64 x y)) #s(literal 1 binary64)))
(/.f64 (-.f64 (*.f64 x x) (*.f64 y y)) (*.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) (-.f64 x y)))
(/.f64 #s(literal -1 binary64) (neg.f64 (/.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) (+.f64 x y))))
(/.f64 (*.f64 (+.f64 (*.f64 x (*.f64 x x)) (*.f64 y (*.f64 y y))) #s(literal 1 binary64)) (*.f64 (+.f64 (*.f64 x x) (*.f64 y (-.f64 y x))) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))))
(/.f64 (*.f64 (-.f64 (*.f64 x x) (*.f64 y y)) #s(literal 1 binary64)) (*.f64 (-.f64 x y) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))))
(/.f64 (neg.f64 (-.f64 #s(literal 0 binary64) (+.f64 x y))) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 (*.f64 (+.f64 x y) #s(literal 1 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 (*.f64 (+.f64 (*.f64 x (*.f64 x x)) (*.f64 y (*.f64 y y))) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) (+.f64 (*.f64 x x) (*.f64 y (-.f64 y x))))
(/.f64 (*.f64 (-.f64 (*.f64 x x) (*.f64 y y)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) (-.f64 x y))
(/.f64 (/.f64 (+.f64 x y) #s(literal 2 binary64)) y)
(pow.f64 (/.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) (+.f64 x y)) #s(literal -1 binary64))
(*.f64 (+.f64 x y) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(*.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) (+.f64 x y))
(*.f64 (-.f64 #s(literal 0 binary64) (+.f64 x y)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(*.f64 #s(literal 1 binary64) (*.f64 (/.f64 (+.f64 x y) #s(literal 0 binary64)) #s(literal 0 binary64)))
(*.f64 (/.f64 (+.f64 x y) (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y)))) (+.f64 (*.f64 y y) #s(literal 0 binary64)))
(*.f64 (/.f64 (+.f64 x y) #s(literal 0 binary64)) #s(literal 0 binary64))
(+.f64 x y)
(+.f64 y x)
(-.f64 (/.f64 (*.f64 x x) (-.f64 x y)) (/.f64 (*.f64 y y) (-.f64 x y)))
(/.f64 (+.f64 (*.f64 x (*.f64 x x)) (*.f64 y (*.f64 y y))) (+.f64 (*.f64 x x) (*.f64 y (-.f64 y x))))
(/.f64 (+.f64 (*.f64 x (*.f64 x x)) (*.f64 y (*.f64 y y))) (+.f64 (*.f64 y y) (-.f64 (*.f64 x x) (*.f64 x y))))
(/.f64 #s(literal 1 binary64) (/.f64 (+.f64 (*.f64 x x) (*.f64 y (-.f64 y x))) (+.f64 (*.f64 x (*.f64 x x)) (*.f64 y (*.f64 y y)))))
(/.f64 #s(literal 1 binary64) (/.f64 (-.f64 x y) (-.f64 (*.f64 x x) (*.f64 y y))))
(/.f64 (-.f64 (*.f64 x x) (*.f64 y y)) (-.f64 x y))
(/.f64 (neg.f64 (+.f64 (*.f64 x (*.f64 x x)) (*.f64 y (*.f64 y y)))) (neg.f64 (+.f64 (*.f64 x x) (*.f64 y (-.f64 y x)))))
(/.f64 (neg.f64 (-.f64 (*.f64 x x) (*.f64 y y))) (neg.f64 (-.f64 x y)))
(/.f64 (-.f64 (*.f64 y y) (*.f64 x x)) (-.f64 y x))
(*.f64 (+.f64 (*.f64 x (*.f64 x x)) (*.f64 y (*.f64 y y))) (/.f64 #s(literal 1 binary64) (+.f64 (*.f64 x x) (*.f64 y (-.f64 y x)))))
(*.f64 (-.f64 (*.f64 x x) (*.f64 y y)) (/.f64 #s(literal 1 binary64) (-.f64 x y)))
(+.f64 y y)
(+.f64 (neg.f64 y) (neg.f64 y))
(-.f64 #s(literal 0 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(-.f64 (/.f64 (*.f64 y y) #s(literal 0 binary64)) (/.f64 (*.f64 y y) #s(literal 0 binary64)))
(neg.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y))) (+.f64 (*.f64 y y) #s(literal 0 binary64)))
(/.f64 (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y))) (neg.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64))))
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64))
(/.f64 #s(literal 1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 #s(literal 1 binary64) (/.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1 binary64)))
(/.f64 #s(literal 1 binary64) (/.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64)) (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y)))))
(/.f64 #s(literal -1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 (neg.f64 (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y)))) (+.f64 (*.f64 y y) #s(literal 0 binary64)))
(/.f64 (neg.f64 (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y)))) (neg.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64))))
(/.f64 #s(literal 1/2 binary64) y)
(pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal -1 binary64))
(*.f64 y #s(literal 2 binary64))
(*.f64 (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y))) (/.f64 #s(literal 1 binary64) (+.f64 (*.f64 y y) #s(literal 0 binary64))))
(*.f64 #s(literal 0 binary64) (/.f64 #s(literal 1 binary64) #s(literal 0 binary64)))
(*.f64 #s(literal 1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(*.f64 #s(literal 2 binary64) y)
(*.f64 #s(literal 2 binary64) (neg.f64 y))
(*.f64 #s(literal -1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(*.f64 #s(literal -2 binary64) y)
(*.f64 (/.f64 #s(literal 1 binary64) (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y)))) (+.f64 (*.f64 y y) #s(literal 0 binary64)))
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 0 binary64)) #s(literal 0 binary64))

simplify179.0ms (8.1%)

Algorithm
egg-herbie
Rules
1732×*-lowering-*.f32
1732×*-lowering-*.f64
1516×times-frac
1452×fmsub-define
1444×fnmsub-define
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
034240
1103222
2224222
3607222
42820222
56905222
08033222
Stop Event
iter limit
node limit
Counts
60 → 60
Calls
Call 1
Inputs
1/2
(+ 1/2 (* 1/2 (/ x y)))
(+ 1/2 (* 1/2 (/ x y)))
(+ 1/2 (* 1/2 (/ x y)))
(* 1/2 (/ x y))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(* 1/2 (/ x y))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(* 1/2 (/ x y))
(/ (+ (* 1/2 x) (* 1/2 y)) y)
(/ (+ (* 1/2 x) (* 1/2 y)) y)
(/ (+ (* 1/2 x) (* 1/2 y)) y)
1/2
(+ 1/2 (* 1/2 (/ x y)))
(+ 1/2 (* 1/2 (/ x y)))
(+ 1/2 (* 1/2 (/ x y)))
1/2
(+ 1/2 (* 1/2 (/ x y)))
(+ 1/2 (* 1/2 (/ x y)))
(+ 1/2 (* 1/2 (/ x y)))
y
(+ x y)
(+ x y)
(+ x y)
x
(* x (+ 1 (/ y x)))
(* x (+ 1 (/ y x)))
(* x (+ 1 (/ y x)))
x
(* -1 (* x (- (* -1 (/ y x)) 1)))
(* -1 (* x (- (* -1 (/ y x)) 1)))
(* -1 (* x (- (* -1 (/ y x)) 1)))
x
(+ x y)
(+ x y)
(+ x y)
y
(* y (+ 1 (/ x y)))
(* y (+ 1 (/ x y)))
(* y (+ 1 (/ x y)))
y
(* -1 (* y (- (* -1 (/ x y)) 1)))
(* -1 (* y (- (* -1 (/ x y)) 1)))
(* -1 (* y (- (* -1 (/ x y)) 1)))
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
Outputs
1/2
#s(literal 1/2 binary64)
(+ 1/2 (* 1/2 (/ x y)))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(+ 1/2 (* 1/2 (/ x y)))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(+ 1/2 (* 1/2 (/ x y)))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(* 1/2 (/ x y))
(/.f64 #s(literal 1/2 binary64) (/.f64 y x))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(* 1/2 (/ x y))
(/.f64 #s(literal 1/2 binary64) (/.f64 y x))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(* 1/2 (/ x y))
(/.f64 #s(literal 1/2 binary64) (/.f64 y x))
(/ (+ (* 1/2 x) (* 1/2 y)) y)
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(/ (+ (* 1/2 x) (* 1/2 y)) y)
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(/ (+ (* 1/2 x) (* 1/2 y)) y)
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
1/2
#s(literal 1/2 binary64)
(+ 1/2 (* 1/2 (/ x y)))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(+ 1/2 (* 1/2 (/ x y)))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(+ 1/2 (* 1/2 (/ x y)))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
1/2
#s(literal 1/2 binary64)
(+ 1/2 (* 1/2 (/ x y)))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(+ 1/2 (* 1/2 (/ x y)))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(+ 1/2 (* 1/2 (/ x y)))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
y
(+ x y)
(+.f64 x y)
(+ x y)
(+.f64 x y)
(+ x y)
(+.f64 x y)
x
(* x (+ 1 (/ y x)))
(+.f64 x y)
(* x (+ 1 (/ y x)))
(+.f64 x y)
(* x (+ 1 (/ y x)))
(+.f64 x y)
x
(* -1 (* x (- (* -1 (/ y x)) 1)))
(+.f64 x y)
(* -1 (* x (- (* -1 (/ y x)) 1)))
(+.f64 x y)
(* -1 (* x (- (* -1 (/ y x)) 1)))
(+.f64 x y)
x
(+ x y)
(+.f64 x y)
(+ x y)
(+.f64 x y)
(+ x y)
(+.f64 x y)
y
(* y (+ 1 (/ x y)))
(+.f64 x y)
(* y (+ 1 (/ x y)))
(+.f64 x y)
(* y (+ 1 (/ x y)))
(+.f64 x y)
y
(* -1 (* y (- (* -1 (/ x y)) 1)))
(+.f64 x y)
(* -1 (* y (- (* -1 (/ x y)) 1)))
(+.f64 x y)
(* -1 (* y (- (* -1 (/ x y)) 1)))
(+.f64 x y)
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))

eval33.0ms (1.5%)

Compiler

Compiled 1196 to 166 computations (86.1% saved)

prune9.0ms (0.4%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New1183121
Fresh000
Picked101
Done000
Total1193122
Accuracy
100.0%
Counts
122 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
49.7%
(/.f64 x (+.f64 y y))
100.0%
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
52.4%
#s(literal 1/2 binary64)
Compiler

Compiled 19 to 14 computations (26.3% saved)

simplify73.0ms (3.3%)

Algorithm
egg-herbie
Localize:

Found 5 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f64 y y)
cost-diff0
(/.f64 x (+.f64 y y))
cost-diff0
(/.f64 x y)
cost-diff0
(*.f64 #s(literal -1/2 binary64) (/.f64 x y))
cost-diff0
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
Rules
1112×fnmadd-define
910×fmsub-define
878×fnmsub-define
836×fma-define
792×fmm-def
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0930
11930
24029
37329
412129
518129
627129
735329
846029
962429
1071629
1197829
12173329
13328229
14379429
15386729
16392229
17393029
0393029
Stop Event
iter limit
saturated
Calls
Call 1
Inputs
1/2
(- 1/2 (* -1/2 (/ x y)))
1/2
(* -1/2 (/ x y))
-1/2
(/ x y)
x
y
(/ x (+ y y))
x
(+ y y)
y
Outputs
1/2
#s(literal 1/2 binary64)
(- 1/2 (* -1/2 (/ x y)))
(+.f64 #s(literal 1/2 binary64) (/.f64 x (*.f64 y #s(literal 2 binary64))))
1/2
#s(literal 1/2 binary64)
(* -1/2 (/ x y))
(/.f64 x (*.f64 y #s(literal -2 binary64)))
-1/2
#s(literal -1/2 binary64)
(/ x y)
(/.f64 x y)
x
y
(/ x (+ y y))
(/.f64 x (*.f64 y #s(literal 2 binary64)))
x
(+ y y)
(*.f64 y #s(literal 2 binary64))
y

localize63.0ms (2.8%)

Localize:

Found 5 expressions of interest:

NewMetricScoreProgram
accuracy100.0%
(/.f64 x (+.f64 y y))
accuracy100.0%
(+.f64 y y)
accuracy100.0%
(/.f64 x y)
accuracy100.0%
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
accuracy100.0%
(*.f64 #s(literal -1/2 binary64) (/.f64 x y))
Results
48.0ms256×0valid
Compiler

Compiled 33 to 10 computations (69.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 25.0ms
ival-sub: 12.0ms (47.8% of total)
ival-div: 10.0ms (39.9% of total)
ival-mult: 2.0ms (8% of total)
ival-add: 1.0ms (4% of total)
const: 0.0ms (0% of total)
backward-pass: 0.0ms (0% of total)

series8.0ms (0.4%)

Counts
5 → 108
Calls
Call 1
Inputs
#<alt (- 1/2 (* -1/2 (/ x y)))>
#<alt (* -1/2 (/ x y))>
#<alt (/ x y)>
#<alt (/ x (+ y y))>
#<alt (+ y y)>
Outputs
#<alt 1/2>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (* 1/2 (/ x y))>
#<alt (* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))>
#<alt (* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))>
#<alt (* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))>
#<alt (* 1/2 (/ x y))>
#<alt (* x (+ (* 1/2 (/ 1 y)) (* 1/2 (/ 1 x))))>
#<alt (* x (+ (* 1/2 (/ 1 y)) (* 1/2 (/ 1 x))))>
#<alt (* x (+ (* 1/2 (/ 1 y)) (* 1/2 (/ 1 x))))>
#<alt (* 1/2 (/ x y))>
#<alt (/ (- (* 1/2 y) (* -1/2 x)) y)>
#<alt (/ (- (* 1/2 y) (* -1/2 x)) y)>
#<alt (/ (- (* 1/2 y) (* -1/2 x)) y)>
#<alt 1/2>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt 1/2>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (+ 1/2 (* 1/2 (/ x y)))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (* -1/2 (/ x y))>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (/ x y)>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 1/2 (/ x y))>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
Calls

27 calls:

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

rewrite82.0ms (3.7%)

Algorithm
batch-egg-rewrite
Rules
198×/-lowering-/.f32
198×/-lowering-/.f64
194×*-lowering-*.f32
194×*-lowering-*.f64
76×+-lowering-+.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0923
15623
042223
Stop Event
iter limit
iter limit
iter limit
unsound
Counts
5 → 81
Calls
Call 1
Inputs
(- 1/2 (* -1/2 (/ x y)))
(* -1/2 (/ x y))
(/ x y)
(/ x (+ y y))
(+ y y)
Outputs
(+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1/2 binary64) (/.f64 y x)))
(+.f64 (/.f64 #s(literal 1/2 binary64) (/.f64 y x)) #s(literal 1/2 binary64))
(-.f64 #s(literal 1/2 binary64) (/.f64 #s(literal -1/2 binary64) (/.f64 y x)))
(-.f64 (/.f64 #s(literal 1/8 binary64) (+.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 #s(literal -1/2 binary64) (/.f64 y x)) (+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal -1/2 binary64) (/.f64 y x)))))) (/.f64 (*.f64 (/.f64 #s(literal -1/2 binary64) (/.f64 y x)) (*.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 x y) (/.f64 x y)))) (+.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 #s(literal -1/2 binary64) (/.f64 y x)) (+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal -1/2 binary64) (/.f64 y x)))))))
(-.f64 (/.f64 #s(literal 1/4 binary64) (+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal -1/2 binary64) (/.f64 y x)))) (/.f64 (*.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 x y) (/.f64 x y))) (+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal -1/2 binary64) (/.f64 y x)))))
(/.f64 (-.f64 #s(literal 1/8 binary64) (*.f64 (/.f64 #s(literal -1/2 binary64) (/.f64 y x)) (*.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 x y) (/.f64 x y))))) (+.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 #s(literal -1/2 binary64) (/.f64 y x)) (+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal -1/2 binary64) (/.f64 y x))))))
(/.f64 #s(literal 1 binary64) (/.f64 (+.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 #s(literal -1/2 binary64) (/.f64 y x)) (+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal -1/2 binary64) (/.f64 y x))))) (-.f64 #s(literal 1/8 binary64) (*.f64 (/.f64 #s(literal -1/2 binary64) (/.f64 y x)) (*.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 x y) (/.f64 x y)))))))
(/.f64 #s(literal 1 binary64) (/.f64 (+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal -1/2 binary64) (/.f64 y x))) (-.f64 #s(literal 1/4 binary64) (*.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 x y) (/.f64 x y))))))
(/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 x y) (/.f64 x y)))) (+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal -1/2 binary64) (/.f64 y x))))
(/.f64 (neg.f64 (-.f64 #s(literal 1/8 binary64) (*.f64 (/.f64 #s(literal -1/2 binary64) (/.f64 y x)) (*.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 x y) (/.f64 x y)))))) (neg.f64 (+.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 #s(literal -1/2 binary64) (/.f64 y x)) (+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal -1/2 binary64) (/.f64 y x)))))))
(/.f64 (neg.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 x y) (/.f64 x y))))) (neg.f64 (+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal -1/2 binary64) (/.f64 y x)))))
(/.f64 (+.f64 #s(literal 1/8 binary64) (pow.f64 (/.f64 #s(literal 1/2 binary64) (/.f64 y x)) #s(literal 3 binary64))) (+.f64 #s(literal 1/4 binary64) (-.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) (/.f64 y x)) (/.f64 #s(literal 1/2 binary64) (/.f64 y x))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1/2 binary64) (/.f64 y x))))))
(/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 #s(literal 1/2 binary64) (/.f64 y x)) (/.f64 #s(literal 1/2 binary64) (/.f64 y x)))) (-.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1/2 binary64) (/.f64 y x))))
(*.f64 (-.f64 #s(literal 1/8 binary64) (*.f64 (/.f64 #s(literal -1/2 binary64) (/.f64 y x)) (*.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 x y) (/.f64 x y))))) (/.f64 #s(literal 1 binary64) (+.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 #s(literal -1/2 binary64) (/.f64 y x)) (+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal -1/2 binary64) (/.f64 y x)))))))
(*.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 #s(literal 1/4 binary64) (*.f64 (/.f64 x y) (/.f64 x y)))) (/.f64 #s(literal 1 binary64) (+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal -1/2 binary64) (/.f64 y x)))))
(/.f64 #s(literal -1/2 binary64) (/.f64 y x))
(/.f64 #s(literal 1 binary64) (/.f64 y (*.f64 #s(literal -1/2 binary64) x)))
(/.f64 (*.f64 #s(literal -1/2 binary64) x) y)
(/.f64 (neg.f64 (*.f64 #s(literal -1/2 binary64) x)) (-.f64 #s(literal 0 binary64) y))
(/.f64 (*.f64 #s(literal -1/2 binary64) (-.f64 #s(literal 0 binary64) x)) (-.f64 #s(literal 0 binary64) y))
(/.f64 (*.f64 (-.f64 #s(literal 0 binary64) x) #s(literal -1/2 binary64)) (-.f64 #s(literal 0 binary64) y))
(*.f64 #s(literal -1/2 binary64) (/.f64 x y))
(*.f64 x (*.f64 (/.f64 #s(literal 1 binary64) y) #s(literal -1/2 binary64)))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(*.f64 (*.f64 #s(literal -1/2 binary64) x) (/.f64 #s(literal 1 binary64) y))
(neg.f64 (/.f64 x (-.f64 #s(literal 0 binary64) y)))
(neg.f64 (/.f64 (-.f64 #s(literal 0 binary64) x) y))
(/.f64 x y)
(/.f64 (-.f64 #s(literal 0 binary64) x) (-.f64 #s(literal 0 binary64) y))
(/.f64 #s(literal 1 binary64) (/.f64 y x))
(/.f64 #s(literal 1 binary64) (/.f64 (/.f64 y x) #s(literal 1 binary64)))
(/.f64 #s(literal -1 binary64) (neg.f64 (/.f64 y x)))
(/.f64 (neg.f64 (-.f64 #s(literal 0 binary64) x)) (neg.f64 (-.f64 #s(literal 0 binary64) y)))
(/.f64 (*.f64 x #s(literal 1 binary64)) y)
(pow.f64 (/.f64 y x) #s(literal -1 binary64))
(*.f64 x (/.f64 #s(literal 1 binary64) y))
(*.f64 (-.f64 #s(literal 0 binary64) x) (/.f64 #s(literal 1 binary64) (-.f64 #s(literal 0 binary64) y)))
(*.f64 #s(literal 1 binary64) (/.f64 x y))
(*.f64 (/.f64 #s(literal 1 binary64) y) x)
(neg.f64 (/.f64 x (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))))
(/.f64 x (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 (-.f64 #s(literal 0 binary64) x) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 #s(literal 1 binary64) (/.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) x))
(/.f64 #s(literal 1 binary64) (/.f64 (/.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) x) #s(literal 1 binary64)))
(/.f64 #s(literal -1 binary64) (neg.f64 (/.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) x)))
(/.f64 (neg.f64 (-.f64 #s(literal 0 binary64) x)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 (*.f64 x #s(literal 1 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 (/.f64 x #s(literal 2 binary64)) y)
(pow.f64 (/.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) x) #s(literal -1 binary64))
(*.f64 x (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(*.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) x)
(*.f64 (-.f64 #s(literal 0 binary64) x) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(*.f64 #s(literal 1 binary64) (/.f64 x (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))))
(*.f64 (/.f64 x (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y)))) (+.f64 (*.f64 y y) #s(literal 0 binary64)))
(*.f64 (/.f64 x #s(literal 0 binary64)) #s(literal 0 binary64))
(+.f64 y y)
(+.f64 (-.f64 #s(literal 0 binary64) y) (-.f64 #s(literal 0 binary64) y))
(-.f64 #s(literal 0 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(-.f64 (/.f64 (*.f64 y y) #s(literal 0 binary64)) (/.f64 (*.f64 y y) #s(literal 0 binary64)))
(neg.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 #s(literal 1/2 binary64) y)
(/.f64 (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y))) (+.f64 (*.f64 y y) #s(literal 0 binary64)))
(/.f64 (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y))) (neg.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64))))
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64))
(/.f64 #s(literal 1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 #s(literal 1 binary64) (/.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64)) (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y)))))
(/.f64 #s(literal 1 binary64) (/.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1 binary64)))
(/.f64 #s(literal -1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 (neg.f64 (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y)))) (+.f64 (*.f64 y y) #s(literal 0 binary64)))
(/.f64 (neg.f64 (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y)))) (neg.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64))))
(pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal -1 binary64))
(*.f64 y #s(literal 2 binary64))
(*.f64 (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y))) (/.f64 #s(literal 1 binary64) (+.f64 (*.f64 y y) #s(literal 0 binary64))))
(*.f64 #s(literal 0 binary64) (/.f64 #s(literal 1 binary64) #s(literal 0 binary64)))
(*.f64 #s(literal 1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(*.f64 #s(literal 2 binary64) y)
(*.f64 #s(literal 2 binary64) (-.f64 #s(literal 0 binary64) y))
(*.f64 #s(literal -1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(*.f64 #s(literal -2 binary64) y)
(*.f64 (/.f64 #s(literal 1 binary64) (*.f64 #s(literal 2 binary64) (*.f64 y (*.f64 y y)))) (+.f64 (*.f64 y y) #s(literal 0 binary64)))
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 0 binary64)) #s(literal 0 binary64))

simplify148.0ms (6.7%)

Algorithm
egg-herbie
Rules
2950×fma-define
2630×fnmadd-define
1620×sum3-define
1196×fmsub-define
1006×fnmsub-define
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
023492
164474
2127474
3317474
4511474
5790474
61508474
72856474
84210474
95605474
107356474
117441474
127441474
137445474
07445474
Stop Event
iter limit
saturated
Counts
108 → 108
Calls
Call 1
Inputs
1/2
(+ 1/2 (* 1/2 (/ x y)))
(+ 1/2 (* 1/2 (/ x y)))
(+ 1/2 (* 1/2 (/ x y)))
(* 1/2 (/ x y))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(* 1/2 (/ x y))
(* x (+ (* 1/2 (/ 1 y)) (* 1/2 (/ 1 x))))
(* x (+ (* 1/2 (/ 1 y)) (* 1/2 (/ 1 x))))
(* x (+ (* 1/2 (/ 1 y)) (* 1/2 (/ 1 x))))
(* 1/2 (/ x y))
(/ (- (* 1/2 y) (* -1/2 x)) y)
(/ (- (* 1/2 y) (* -1/2 x)) y)
(/ (- (* 1/2 y) (* -1/2 x)) y)
1/2
(+ 1/2 (* 1/2 (/ x y)))
(+ 1/2 (* 1/2 (/ x y)))
(+ 1/2 (* 1/2 (/ x y)))
1/2
(+ 1/2 (* 1/2 (/ x y)))
(+ 1/2 (* 1/2 (/ x y)))
(+ 1/2 (* 1/2 (/ x y)))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(* -1/2 (/ x y))
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(/ x y)
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 1/2 (/ x y))
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
Outputs
1/2
#s(literal 1/2 binary64)
(+ 1/2 (* 1/2 (/ x y)))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(+ 1/2 (* 1/2 (/ x y)))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(+ 1/2 (* 1/2 (/ x y)))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(* x (+ (* 1/2 (/ 1 x)) (* 1/2 (/ 1 y))))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* x (+ (* 1/2 (/ 1 y)) (* 1/2 (/ 1 x))))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(* x (+ (* 1/2 (/ 1 y)) (* 1/2 (/ 1 x))))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(* x (+ (* 1/2 (/ 1 y)) (* 1/2 (/ 1 x))))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(/ (- (* 1/2 y) (* -1/2 x)) y)
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(/ (- (* 1/2 y) (* -1/2 x)) y)
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(/ (- (* 1/2 y) (* -1/2 x)) y)
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
1/2
#s(literal 1/2 binary64)
(+ 1/2 (* 1/2 (/ x y)))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(+ 1/2 (* 1/2 (/ x y)))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(+ 1/2 (* 1/2 (/ x y)))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
1/2
#s(literal 1/2 binary64)
(+ 1/2 (* 1/2 (/ x y)))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(+ 1/2 (* 1/2 (/ x y)))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(+ 1/2 (* 1/2 (/ x y)))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 x y)))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(* -1/2 (/ x y))
(*.f64 (/.f64 x y) #s(literal -1/2 binary64))
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(/ x y)
(/.f64 x y)
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 1/2 (/ x y))
(*.f64 #s(literal 1/2 binary64) (/.f64 x y))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))
(* 2 y)
(*.f64 y #s(literal 2 binary64))

eval16.0ms (0.7%)

Compiler

Compiled 1615 to 220 computations (86.4% saved)

prune12.0ms (0.6%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New1890189
Fresh000
Picked033
Done000
Total1893192
Accuracy
100.0%
Counts
192 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
49.7%
(/.f64 x (+.f64 y y))
100.0%
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
52.4%
#s(literal 1/2 binary64)
Compiler

Compiled 41 to 25 computations (39% saved)

regimes6.0ms (0.3%)

Counts
4 → 1
Calls
Call 1
Inputs
#s(literal 1/2 binary64)
(/.f64 x (+.f64 y y))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(/.f64 (+.f64 x y) (+.f64 y y))
Outputs
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
Calls

3 calls:

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

Compiled 15 to 9 computations (40% saved)

regimes3.0ms (0.2%)

Counts
2 → 3
Calls
Call 1
Inputs
#s(literal 1/2 binary64)
(/.f64 x (+.f64 y y))
Outputs
(/.f64 x (+.f64 y y))
#s(literal 1/2 binary64)
(/.f64 x (+.f64 y y))
Calls

2 calls:

2.0ms
y
2.0ms
x
Results
AccuracySegmentsBranch
80.0%3x
76.7%3y
Compiler

Compiled 6 to 4 computations (33.3% saved)

regimes22.0ms (1%)

Accuracy

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

Counts
1 → 1
Calls
Call 1
Inputs
#s(literal 1/2 binary64)
Outputs
#s(literal 1/2 binary64)
Calls

2 calls:

20.0ms
y
1.0ms
x
Results
AccuracySegmentsBranch
52.4%1y
52.4%1x
Compiler

Compiled 6 to 4 computations (33.3% saved)

bsearch11.0ms (0.5%)

Algorithm
binary-search
Stop Event
narrow-enough
narrow-enough
Steps
TimeLeftRight
4.0ms
2.570540101628655e-50
3.3247736621847546e-50
6.0ms
-8.039498808710765e+34
-4.887150158627437e+34
Results
6.0ms112×0valid
Compiler

Compiled 98 to 72 computations (26.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 2.0ms
ival-div: 1.0ms (42.6% of total)
ival-add: 1.0ms (42.6% of total)
const: 0.0ms (0% of total)
backward-pass: 0.0ms (0% of total)

simplify10.0ms (0.4%)

Algorithm
egg-herbie
Rules
12×*-commutative_binary64
12×+-commutative_binary64
12×sub-neg_binary64
10×neg-sub0_binary64
10×neg-mul-1_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01523
12423
23623
34623
45423
55923
66123
Stop Event
saturated
Calls
Call 1
Inputs
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(if (<=.f64 x #s(literal -74000000000000001737174616075403264 binary64)) (/.f64 x (+.f64 y y)) (if (<=.f64 x #s(literal 710857968762761/26328072917139296674479506920917608079723773850137277813577744384 binary64)) #s(literal 1/2 binary64) (/.f64 x (+.f64 y y))))
#s(literal 1/2 binary64)
Outputs
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 x y)))
(if (<=.f64 x #s(literal -74000000000000001737174616075403264 binary64)) (/.f64 x (+.f64 y y)) (if (<=.f64 x #s(literal 710857968762761/26328072917139296674479506920917608079723773850137277813577744384 binary64)) #s(literal 1/2 binary64) (/.f64 x (+.f64 y y))))
#s(literal 1/2 binary64)

soundness489.0ms (22.1%)

Rules
1732×*-lowering-*.f32
1732×*-lowering-*.f64
1516×times-frac
1452×fmsub-define
1444×fnmsub-define
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
034240
1103222
2224222
3607222
42820222
56905222
08033222
Stop Event
done
iter limit
node limit
Compiler

Compiled 51 to 32 computations (37.3% saved)

preprocess59.0ms (2.7%)

Compiler

Compiled 94 to 52 computations (44.7% saved)

end0.0ms (0%)

Profiling

Loading profile data...