Data.Number.Erf:$cinvnormcdf from erf-2.0.0.0, B

Time bar (total: 1.1s)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated

analyze23.0ms (2.2%)

Memory
1.2MiB live, 39.7MiB allocated
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
62.5%62.4%37.5%0.1%0%0%0%5
68.8%68.7%31.2%0.1%0%0%0%6
78.1%78%21.9%0.1%0%0%0%7
82.8%82.7%17.2%0.1%0%0%0%8
88.3%88.2%11.7%0.1%0%0%0%9
91%90.9%9%0.1%0%0%0%10
93.9%93.9%6%0.1%0%0%0%11
95.4%95.3%4.6%0.1%0%0%0%12
Compiler

Compiled 13 to 11 computations (15.4% saved)

sample715.0ms (68%)

Memory
-7.7MiB live, 1 119.1MiB allocated
Samples
461.0ms8 254×0valid
0.0ms1valid
Precisions
Click to see histograms. Total time spent on operations: 271.0ms
ival-div: 108.0ms (39.8% of total)
ival-mult: 62.0ms (22.9% of total)
ival-add: 42.0ms (15.5% of total)
ival-sub: 41.0ms (15.1% of total)
exact: 8.0ms (2.9% of total)
ival-true: 7.0ms (2.6% of total)
ival-assert: 3.0ms (1.1% of total)
adjust: 0.0ms (0% of total)
Bogosity

explain117.0ms (11.1%)

Memory
3.9MiB live, 166.2MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
280-0-(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
00-0-(/.f64 (*.f64 x y) #s(literal 2 binary64))
00-0-#s(literal 1 binary64)
00-0-(*.f64 x y)
00-0-(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
00-0-(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #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
34.0ms512×0valid
Compiler

Compiled 132 to 40 computations (69.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 19.0ms
ival-div: 9.0ms (47.2% of total)
ival-mult: 4.0ms (21% of total)
ival-sub: 2.0ms (10.5% of total)
ival-add: 2.0ms (10.5% of total)
exact: 1.0ms (5.2% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess3.0ms (0.2%)

Memory
4.4MiB live, 4.4MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
Outputs
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
Compiler

Compiled 11 to 9 computations (18.2% saved)

eval0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

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

Compiled 11 to 9 computations (18.2% saved)

simplify0.0ms (0%)

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

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(/.f64 (*.f64 x y) #s(literal 2 binary64))
cost-diff0
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
cost-diff0
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
cost-diff0
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
Calls
Call 1
Inputs
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
x
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
y
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
#s(literal 1 binary64)
(/.f64 (*.f64 x y) #s(literal 2 binary64))
(*.f64 x y)
#s(literal 2 binary64)
Outputs
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
x
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
y
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
#s(literal 1 binary64)
(/.f64 (*.f64 x y) #s(literal 2 binary64))
(*.f64 x y)
#s(literal 2 binary64)

localize28.0ms (2.7%)

Memory
-7.1MiB live, 28.8MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
accuracy0.0
(*.f64 x y)
accuracy0.00390625
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
accuracy6.664012333241889
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
Samples
22.0ms256×0valid
Compiler

Compiled 80 to 20 computations (75% saved)

Precisions
Click to see histograms. Total time spent on operations: 15.0ms
ival-sub: 8.0ms (54% of total)
ival-div: 3.0ms (20.3% of total)
ival-mult: 2.0ms (13.5% of total)
ival-add: 1.0ms (6.8% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series8.0ms (0.8%)

Memory
10.2MiB live, 10.2MiB allocated
Counts
5 → 47
Calls
Call 1
Inputs
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
(/.f64 (*.f64 x y) #s(literal 2 binary64))
(*.f64 x y)
Outputs
(* -1 y)
(- (* x (+ 1 (* 1/2 (pow y 2)))) y)
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y)
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y)
y
(+ y (* -1/2 (* x (pow y 2))))
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2)))))
(+ y (* x (- (* x (- (* -1/8 (* x (pow y 4))) (* -1/4 (pow y 3)))) (* 1/2 (pow y 2)))))
1
(+ 1 (* 1/2 (* x y)))
(* 1/2 (* x y))
(* x y)
x
(* x (- 1 (* 2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (/ 4 (* (pow x 3) y))) (* 2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (* 4 (/ 1 (* (pow x 3) y)))) (+ (* 8 (/ 1 (* (pow x 4) (pow y 2)))) (* 2 (/ 1 (pow x 2))))))
(/ 2 x)
(/ (- 2 (* 4 (/ 1 (* x y)))) x)
(/ (- (+ 2 (/ 8 (* (pow x 2) (pow y 2)))) (/ 4 (* x y))) x)
(/ (- (+ 2 (* 8 (/ 1 (* (pow x 2) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 3) (pow y 3)))) (/ 4 (* x y)))) x)
(* x (+ (* 1/2 y) (/ 1 x)))
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) 1)))
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) (+ 1 (/ 4 (* (pow x 3) y))))))
(* -1 (* x (- (+ (* -1 (/ (- (* 4 (/ 1 y)) (* 8 (/ 1 (* x (pow y 2))))) (pow x 3))) (* 2 (/ 1 (pow x 2)))) 1)))
(* -1 (/ (- (* 4 (/ 1 (* x y))) 2) x))
(* -1 (/ (- (* -1 (/ (- (* 8 (/ 1 (* x (pow y 2)))) (* 4 (/ 1 y))) x)) 2) x))
(* -1 (/ (- (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* x (pow y 3)))) (* 8 (/ 1 (pow y 2)))) x)) (* 4 (/ 1 y))) x)) 2) x))
(* -1 (* x (- (* -1/2 y) (/ 1 x))))
(+ x (* -1 y))
(+ x (* y (- (* 1/2 (* x y)) 1)))
(+ x (* y (- (* y (+ (* -1/4 (* (pow x 2) y)) (* 1/2 x))) 1)))
(* y (+ 1 (* -1/2 (* x y))))
(* y (+ 1 (* y (- (* 1/4 (* (pow x 2) y)) (* 1/2 x)))))
(* y (+ 1 (* y (- (* y (- (* -1/8 (* (pow x 3) y)) (* -1/4 (pow x 2)))) (* 1/2 x)))))
(- x (* 2 (/ 1 x)))
(- (+ x (* 4 (/ 1 (* (pow x 2) y)))) (* 2 (/ 1 x)))
(- (+ x (/ 4 (* (pow x 2) y))) (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))))
(- (+ x (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))))
(- (* 2 (/ 1 x)) (* 4 (/ 1 (* (pow x 2) y))))
(- (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))) (/ 4 (* (pow x 2) y)))
(- (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y))))
(* y (+ (* 1/2 x) (/ 1 y)))
(- (+ x (* -1 (/ (- (* 8 (/ 1 (* (pow x 3) y))) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x)))
(- (+ x (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* (pow x 4) y))) (* 8 (/ 1 (pow x 3)))) y)) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x)))
(+ (* -1 (/ (- (* 4 (/ 1 (pow x 2))) (* 8 (/ 1 (* (pow x 3) y)))) y)) (* 2 (/ 1 x)))
(+ (* -1 (/ (+ (* -1 (/ (- (* 8 (/ 1 (pow x 3))) (* 16 (/ 1 (* (pow x 4) y)))) y)) (* 4 (/ 1 (pow x 2)))) y)) (* 2 (/ 1 x)))
(* -1 (* y (- (* -1/2 x) (/ 1 y))))
Calls

6 calls:

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

simplify1.0ms (0.1%)

Memory
1.1MiB live, 1.1MiB allocated
Algorithm
egg-herbie
Counts
47 → 5
Calls
Call 1
Inputs
(* -1 y)
(- (* x (+ 1 (* 1/2 (pow y 2)))) y)
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y)
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y)
y
(+ y (* -1/2 (* x (pow y 2))))
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2)))))
(+ y (* x (- (* x (- (* -1/8 (* x (pow y 4))) (* -1/4 (pow y 3)))) (* 1/2 (pow y 2)))))
1
(+ 1 (* 1/2 (* x y)))
(* 1/2 (* x y))
(* x y)
x
(* x (- 1 (* 2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (/ 4 (* (pow x 3) y))) (* 2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (* 4 (/ 1 (* (pow x 3) y)))) (+ (* 8 (/ 1 (* (pow x 4) (pow y 2)))) (* 2 (/ 1 (pow x 2))))))
(/ 2 x)
(/ (- 2 (* 4 (/ 1 (* x y)))) x)
(/ (- (+ 2 (/ 8 (* (pow x 2) (pow y 2)))) (/ 4 (* x y))) x)
(/ (- (+ 2 (* 8 (/ 1 (* (pow x 2) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 3) (pow y 3)))) (/ 4 (* x y)))) x)
(* x (+ (* 1/2 y) (/ 1 x)))
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) 1)))
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) (+ 1 (/ 4 (* (pow x 3) y))))))
(* -1 (* x (- (+ (* -1 (/ (- (* 4 (/ 1 y)) (* 8 (/ 1 (* x (pow y 2))))) (pow x 3))) (* 2 (/ 1 (pow x 2)))) 1)))
(* -1 (/ (- (* 4 (/ 1 (* x y))) 2) x))
(* -1 (/ (- (* -1 (/ (- (* 8 (/ 1 (* x (pow y 2)))) (* 4 (/ 1 y))) x)) 2) x))
(* -1 (/ (- (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* x (pow y 3)))) (* 8 (/ 1 (pow y 2)))) x)) (* 4 (/ 1 y))) x)) 2) x))
(* -1 (* x (- (* -1/2 y) (/ 1 x))))
(+ x (* -1 y))
(+ x (* y (- (* 1/2 (* x y)) 1)))
(+ x (* y (- (* y (+ (* -1/4 (* (pow x 2) y)) (* 1/2 x))) 1)))
(* y (+ 1 (* -1/2 (* x y))))
(* y (+ 1 (* y (- (* 1/4 (* (pow x 2) y)) (* 1/2 x)))))
(* y (+ 1 (* y (- (* y (- (* -1/8 (* (pow x 3) y)) (* -1/4 (pow x 2)))) (* 1/2 x)))))
(- x (* 2 (/ 1 x)))
(- (+ x (* 4 (/ 1 (* (pow x 2) y)))) (* 2 (/ 1 x)))
(- (+ x (/ 4 (* (pow x 2) y))) (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))))
(- (+ x (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))))
(- (* 2 (/ 1 x)) (* 4 (/ 1 (* (pow x 2) y))))
(- (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))) (/ 4 (* (pow x 2) y)))
(- (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y))))
(* y (+ (* 1/2 x) (/ 1 y)))
(- (+ x (* -1 (/ (- (* 8 (/ 1 (* (pow x 3) y))) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x)))
(- (+ x (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* (pow x 4) y))) (* 8 (/ 1 (pow x 3)))) y)) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x)))
(+ (* -1 (/ (- (* 4 (/ 1 (pow x 2))) (* 8 (/ 1 (* (pow x 3) y)))) y)) (* 2 (/ 1 x)))
(+ (* -1 (/ (+ (* -1 (/ (- (* 8 (/ 1 (pow x 3))) (* 16 (/ 1 (* (pow x 4) y)))) y)) (* 4 (/ 1 (pow x 2)))) y)) (* 2 (/ 1 x)))
(* -1 (* y (- (* -1/2 x) (/ 1 y))))
Outputs
(* -1 y)
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
(- (* x (+ 1 (* 1/2 (pow y 2)))) y)
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y)
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y)
(/.f64 (*.f64 x y) #s(literal 2 binary64))
y
(*.f64 x y)

rewrite0.0ms (0%)

Memory
0.6MiB live, 0.6MiB allocated
Counts
5 → 5
Calls
Call 1
Inputs
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
(/.f64 (*.f64 x y) #s(literal 2 binary64))
(*.f64 x y)
Outputs
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
(/.f64 (*.f64 x y) #s(literal 2 binary64))
(*.f64 x y)

eval1.0ms (0.1%)

Memory
1.9MiB live, 1.9MiB allocated
Compiler

Compiled 150 to 22 computations (85.3% saved)

prune2.0ms (0.2%)

Memory
3.3MiB live, 3.3MiB allocated
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New6410
Fresh000
Picked011
Done000
Total6511
Accuracy
99.9%
Counts
11 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.9%
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
42.2%
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
3.6%
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
2.9%
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
3.5%
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
Compiler

Compiled 83 to 64 computations (22.9% saved)

simplify1.0ms (0.1%)

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

Found 14 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 x y)
cost-diff0
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))
cost-diff0
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
cost-diff0
(*.f64 x y)
cost-diff0
(/.f64 (*.f64 x y) #s(literal 2 binary64))
cost-diff0
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
cost-diff0
(/.f64 (*.f64 x y) #s(literal 2 binary64))
cost-diff0
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
cost-diff0
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
cost-diff0
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
cost-diff0
(*.f64 x y)
cost-diff0
(/.f64 (*.f64 x y) #s(literal 2 binary64))
cost-diff0
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
cost-diff0
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
Calls
Call 1
Inputs
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
#s(literal 1 binary64)
(/.f64 (*.f64 x y) #s(literal 2 binary64))
(*.f64 x y)
x
y
#s(literal 2 binary64)
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
y
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
#s(literal 1 binary64)
(/.f64 (*.f64 x y) #s(literal 2 binary64))
(*.f64 x y)
x
#s(literal 2 binary64)
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
(/.f64 (*.f64 x y) #s(literal 2 binary64))
(*.f64 x y)
x
y
#s(literal 2 binary64)
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
x
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))
(*.f64 x y)
y
Outputs
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
#s(literal 1 binary64)
(/.f64 (*.f64 x y) #s(literal 2 binary64))
(*.f64 x y)
x
y
#s(literal 2 binary64)
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
y
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
#s(literal 1 binary64)
(/.f64 (*.f64 x y) #s(literal 2 binary64))
(*.f64 x y)
x
#s(literal 2 binary64)
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
(/.f64 (*.f64 x y) #s(literal 2 binary64))
(*.f64 x y)
x
y
#s(literal 2 binary64)
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
x
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))
(*.f64 x y)
y

localize35.0ms (3.4%)

Memory
3.8MiB live, 39.9MiB allocated
Localize:

Found 14 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 x y)
accuracy0.00390625
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
accuracy61.518645248072964
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))
accuracy0.0
(/.f64 (*.f64 x y) #s(literal 2 binary64))
accuracy0.0
(*.f64 x y)
accuracy61.704256600608986
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
accuracy0.0
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
accuracy0.0
(*.f64 x y)
accuracy6.664012333241889
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
accuracy62.06717333779006
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
accuracy0.0
(/.f64 (*.f64 x y) #s(literal 2 binary64))
accuracy0.0
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
accuracy0.0
(*.f64 x y)
accuracy61.777629662850565
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
Samples
26.0ms256×0valid
Compiler

Compiled 266 to 31 computations (88.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 14.0ms
ival-mult: 8.0ms (57% of total)
ival-div: 3.0ms (21.4% of total)
ival-sub: 1.0ms (7.1% of total)
ival-add: 1.0ms (7.1% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series11.0ms (1%)

Memory
-39.5MiB live, 6.0MiB allocated
Counts
9 → 47
Calls
Call 1
Inputs
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
(/.f64 (*.f64 x y) #s(literal 2 binary64))
(*.f64 x y)
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))
Outputs
(* -1 y)
(- (* x (+ 1 (* 1/2 (pow y 2)))) y)
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y)
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y)
1
(+ 1 (* 1/2 (* x y)))
(* 1/2 (* x y))
(* x y)
y
(+ y (* -1/2 (* x (pow y 2))))
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2)))))
(+ y (* x (- (* x (- (* -1/8 (* x (pow y 4))) (* -1/4 (pow y 3)))) (* 1/2 (pow y 2)))))
x
(* x (- 1 (* 2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (/ 4 (* (pow x 3) y))) (* 2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (* 4 (/ 1 (* (pow x 3) y)))) (+ (* 8 (/ 1 (* (pow x 4) (pow y 2)))) (* 2 (/ 1 (pow x 2))))))
(* x (+ (* 1/2 y) (/ 1 x)))
(/ 2 x)
(/ (- 2 (* 4 (/ 1 (* x y)))) x)
(/ (- (+ 2 (/ 8 (* (pow x 2) (pow y 2)))) (/ 4 (* x y))) x)
(/ (- (+ 2 (* 8 (/ 1 (* (pow x 2) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 3) (pow y 3)))) (/ 4 (* x y)))) x)
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) 1)))
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) (+ 1 (/ 4 (* (pow x 3) y))))))
(* -1 (* x (- (+ (* -1 (/ (- (* 4 (/ 1 y)) (* 8 (/ 1 (* x (pow y 2))))) (pow x 3))) (* 2 (/ 1 (pow x 2)))) 1)))
(* -1 (* x (- (* -1/2 y) (/ 1 x))))
(* -1 (/ (- (* 4 (/ 1 (* x y))) 2) x))
(* -1 (/ (- (* -1 (/ (- (* 8 (/ 1 (* x (pow y 2)))) (* 4 (/ 1 y))) x)) 2) x))
(* -1 (/ (- (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* x (pow y 3)))) (* 8 (/ 1 (pow y 2)))) x)) (* 4 (/ 1 y))) x)) 2) x))
(+ x (* -1 y))
(+ x (* y (- (* 1/2 (* x y)) 1)))
(+ x (* y (- (* y (+ (* -1/4 (* (pow x 2) y)) (* 1/2 x))) 1)))
(* y (+ 1 (* -1/2 (* x y))))
(* y (+ 1 (* y (- (* 1/4 (* (pow x 2) y)) (* 1/2 x)))))
(* y (+ 1 (* y (- (* y (- (* -1/8 (* (pow x 3) y)) (* -1/4 (pow x 2)))) (* 1/2 x)))))
(- x (* 2 (/ 1 x)))
(- (+ x (* 4 (/ 1 (* (pow x 2) y)))) (* 2 (/ 1 x)))
(- (+ x (/ 4 (* (pow x 2) y))) (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))))
(- (+ x (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))))
(* y (+ (* 1/2 x) (/ 1 y)))
(- (* 2 (/ 1 x)) (* 4 (/ 1 (* (pow x 2) y))))
(- (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))) (/ 4 (* (pow x 2) y)))
(- (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y))))
(- (+ x (* -1 (/ (- (* 8 (/ 1 (* (pow x 3) y))) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x)))
(- (+ x (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* (pow x 4) y))) (* 8 (/ 1 (pow x 3)))) y)) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x)))
(* -1 (* y (- (* -1/2 x) (/ 1 y))))
(+ (* -1 (/ (- (* 4 (/ 1 (pow x 2))) (* 8 (/ 1 (* (pow x 3) y)))) y)) (* 2 (/ 1 x)))
(+ (* -1 (/ (+ (* -1 (/ (- (* 8 (/ 1 (pow x 3))) (* 16 (/ 1 (* (pow x 4) y)))) y)) (* 4 (/ 1 (pow x 2)))) y)) (* 2 (/ 1 x)))
Calls

6 calls:

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

simplify1.0ms (0.1%)

Memory
1.5MiB live, 1.5MiB allocated
Algorithm
egg-herbie
Counts
47 → 9
Calls
Call 1
Inputs
(* -1 y)
(- (* x (+ 1 (* 1/2 (pow y 2)))) y)
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y)
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y)
1
(+ 1 (* 1/2 (* x y)))
(* 1/2 (* x y))
(* x y)
y
(+ y (* -1/2 (* x (pow y 2))))
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2)))))
(+ y (* x (- (* x (- (* -1/8 (* x (pow y 4))) (* -1/4 (pow y 3)))) (* 1/2 (pow y 2)))))
x
(* x (- 1 (* 2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (/ 4 (* (pow x 3) y))) (* 2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (* 4 (/ 1 (* (pow x 3) y)))) (+ (* 8 (/ 1 (* (pow x 4) (pow y 2)))) (* 2 (/ 1 (pow x 2))))))
(* x (+ (* 1/2 y) (/ 1 x)))
(/ 2 x)
(/ (- 2 (* 4 (/ 1 (* x y)))) x)
(/ (- (+ 2 (/ 8 (* (pow x 2) (pow y 2)))) (/ 4 (* x y))) x)
(/ (- (+ 2 (* 8 (/ 1 (* (pow x 2) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 3) (pow y 3)))) (/ 4 (* x y)))) x)
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) 1)))
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) (+ 1 (/ 4 (* (pow x 3) y))))))
(* -1 (* x (- (+ (* -1 (/ (- (* 4 (/ 1 y)) (* 8 (/ 1 (* x (pow y 2))))) (pow x 3))) (* 2 (/ 1 (pow x 2)))) 1)))
(* -1 (* x (- (* -1/2 y) (/ 1 x))))
(* -1 (/ (- (* 4 (/ 1 (* x y))) 2) x))
(* -1 (/ (- (* -1 (/ (- (* 8 (/ 1 (* x (pow y 2)))) (* 4 (/ 1 y))) x)) 2) x))
(* -1 (/ (- (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* x (pow y 3)))) (* 8 (/ 1 (pow y 2)))) x)) (* 4 (/ 1 y))) x)) 2) x))
(+ x (* -1 y))
(+ x (* y (- (* 1/2 (* x y)) 1)))
(+ x (* y (- (* y (+ (* -1/4 (* (pow x 2) y)) (* 1/2 x))) 1)))
(* y (+ 1 (* -1/2 (* x y))))
(* y (+ 1 (* y (- (* 1/4 (* (pow x 2) y)) (* 1/2 x)))))
(* y (+ 1 (* y (- (* y (- (* -1/8 (* (pow x 3) y)) (* -1/4 (pow x 2)))) (* 1/2 x)))))
(- x (* 2 (/ 1 x)))
(- (+ x (* 4 (/ 1 (* (pow x 2) y)))) (* 2 (/ 1 x)))
(- (+ x (/ 4 (* (pow x 2) y))) (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))))
(- (+ x (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))))
(* y (+ (* 1/2 x) (/ 1 y)))
(- (* 2 (/ 1 x)) (* 4 (/ 1 (* (pow x 2) y))))
(- (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))) (/ 4 (* (pow x 2) y)))
(- (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y))))
(- (+ x (* -1 (/ (- (* 8 (/ 1 (* (pow x 3) y))) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x)))
(- (+ x (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* (pow x 4) y))) (* 8 (/ 1 (pow x 3)))) y)) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x)))
(* -1 (* y (- (* -1/2 x) (/ 1 y))))
(+ (* -1 (/ (- (* 4 (/ 1 (pow x 2))) (* 8 (/ 1 (* (pow x 3) y)))) y)) (* 2 (/ 1 x)))
(+ (* -1 (/ (+ (* -1 (/ (- (* 8 (/ 1 (pow x 3))) (* 16 (/ 1 (* (pow x 4) y)))) y)) (* 4 (/ 1 (pow x 2)))) y)) (* 2 (/ 1 x)))
Outputs
(* -1 y)
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
(- (* x (+ 1 (* 1/2 (pow y 2)))) y)
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y)
(/.f64 (*.f64 x y) #s(literal 2 binary64))
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y)
(*.f64 x y)
1
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
(+ 1 (* 1/2 (* x y)))
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
(* 1/2 (* x y))
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
(* x y)
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
y
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))

rewrite1.0ms (0.1%)

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

eval3.0ms (0.3%)

Memory
5.1MiB live, 5.1MiB allocated
Compiler

Compiled 749 to 47 computations (93.7% saved)

prune4.0ms (0.4%)

Memory
8.1MiB live, 8.1MiB allocated
Pruning

8 alts after pruning (3 fresh and 5 done)

PrunedKeptTotal
New26329
Fresh000
Picked044
Done011
Total26834
Accuracy
99.9%
Counts
34 → 8
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.9%
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
42.2%
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
3.4%
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))))
3.6%
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
10.0%
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)))
2.9%
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
3.5%
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
3.6%
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y))
Compiler

Compiled 162 to 105 computations (35.2% saved)

simplify1.0ms (0.1%)

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

Found 10 expressions of interest:

NewMetricScoreProgram
cost-diff0
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
cost-diff0
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))
cost-diff0
#s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))
cost-diff0
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))))
cost-diff0
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
cost-diff0
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))
cost-diff0
(/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))
cost-diff0
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)))
cost-diff0
(*.f64 x y)
cost-diff0
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y))
Calls
Call 1
Inputs
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y))
(*.f64 x y)
x
y
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)))
(/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
x
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))
(*.f64 x y)
y
#s(literal 2 binary64)
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))))
x
#s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))
(*.f64 x y)
y
Outputs
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y))
(*.f64 x y)
x
y
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)))
(/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
x
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))
(*.f64 x y)
y
#s(literal 2 binary64)
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))))
x
#s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))
(*.f64 x y)
y

localize30.0ms (2.9%)

Memory
23.4MiB live, 61.4MiB allocated
Localize:

Found 10 expressions of interest:

NewMetricScoreProgram
accuracy0.00390625
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))))
accuracy61.518645248072964
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))
accuracy61.518645248072964
#s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))
accuracy61.70323213879182
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))
accuracy0.00390625
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
accuracy61.518645248072964
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))
accuracy61.70323213879182
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))
accuracy61.704256600608986
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)))
accuracy0.0
(*.f64 x y)
accuracy61.70323213879182
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y))
Samples
21.0ms256×0valid
Compiler

Compiled 350 to 30 computations (91.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 8.0ms
ival-div: 3.0ms (35.6% of total)
ival-mult: 2.0ms (23.8% of total)
ival-sub: 1.0ms (11.9% of total)
ival-add: 1.0ms (11.9% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series6.0ms (0.6%)

Memory
-28.3MiB live, 10.0MiB allocated
Counts
9 → 41
Calls
Call 1
Inputs
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y))
(*.f64 x y)
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)))
(/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))))
#s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))
Outputs
(* -1 y)
(- (* x (+ 1 (* 1/2 (pow y 2)))) y)
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y)
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y)
(* x y)
(* 1/2 (* x y))
y
(+ y (* -1/2 (* x (pow y 2))))
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2)))))
(+ y (* x (- (* x (- (* -1/8 (* x (pow y 4))) (* -1/4 (pow y 3)))) (* 1/2 (pow y 2)))))
x
(* x (- 1 (* 2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (/ 4 (* (pow x 3) y))) (* 2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (* 4 (/ 1 (* (pow x 3) y)))) (+ (* 8 (/ 1 (* (pow x 4) (pow y 2)))) (* 2 (/ 1 (pow x 2))))))
(/ 2 x)
(/ (- 2 (* 4 (/ 1 (* x y)))) x)
(/ (- (+ 2 (/ 8 (* (pow x 2) (pow y 2)))) (/ 4 (* x y))) x)
(/ (- (+ 2 (* 8 (/ 1 (* (pow x 2) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 3) (pow y 3)))) (/ 4 (* x y)))) x)
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) 1)))
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) (+ 1 (/ 4 (* (pow x 3) y))))))
(* -1 (* x (- (+ (* -1 (/ (- (* 4 (/ 1 y)) (* 8 (/ 1 (* x (pow y 2))))) (pow x 3))) (* 2 (/ 1 (pow x 2)))) 1)))
(* -1 (/ (- (* 4 (/ 1 (* x y))) 2) x))
(* -1 (/ (- (* -1 (/ (- (* 8 (/ 1 (* x (pow y 2)))) (* 4 (/ 1 y))) x)) 2) x))
(* -1 (/ (- (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* x (pow y 3)))) (* 8 (/ 1 (pow y 2)))) x)) (* 4 (/ 1 y))) x)) 2) x))
(+ x (* -1 y))
(+ x (* y (- (* 1/2 (* x y)) 1)))
(+ x (* y (- (* y (+ (* -1/4 (* (pow x 2) y)) (* 1/2 x))) 1)))
(* y (+ 1 (* -1/2 (* x y))))
(* y (+ 1 (* y (- (* 1/4 (* (pow x 2) y)) (* 1/2 x)))))
(* y (+ 1 (* y (- (* y (- (* -1/8 (* (pow x 3) y)) (* -1/4 (pow x 2)))) (* 1/2 x)))))
(- x (* 2 (/ 1 x)))
(- (+ x (* 4 (/ 1 (* (pow x 2) y)))) (* 2 (/ 1 x)))
(- (+ x (/ 4 (* (pow x 2) y))) (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))))
(- (+ x (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))))
(- (* 2 (/ 1 x)) (* 4 (/ 1 (* (pow x 2) y))))
(- (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))) (/ 4 (* (pow x 2) y)))
(- (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y))))
(- (+ x (* -1 (/ (- (* 8 (/ 1 (* (pow x 3) y))) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x)))
(- (+ x (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* (pow x 4) y))) (* 8 (/ 1 (pow x 3)))) y)) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x)))
(+ (* -1 (/ (- (* 4 (/ 1 (pow x 2))) (* 8 (/ 1 (* (pow x 3) y)))) y)) (* 2 (/ 1 x)))
(+ (* -1 (/ (+ (* -1 (/ (- (* 8 (/ 1 (pow x 3))) (* 16 (/ 1 (* (pow x 4) y)))) y)) (* 4 (/ 1 (pow x 2)))) y)) (* 2 (/ 1 x)))
Calls

6 calls:

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

simplify1.0ms (0.1%)

Memory
2.0MiB live, 2.0MiB allocated
Algorithm
egg-herbie
Counts
41 → 9
Calls
Call 1
Inputs
(* -1 y)
(- (* x (+ 1 (* 1/2 (pow y 2)))) y)
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y)
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y)
(* x y)
(* 1/2 (* x y))
y
(+ y (* -1/2 (* x (pow y 2))))
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2)))))
(+ y (* x (- (* x (- (* -1/8 (* x (pow y 4))) (* -1/4 (pow y 3)))) (* 1/2 (pow y 2)))))
x
(* x (- 1 (* 2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (/ 4 (* (pow x 3) y))) (* 2 (/ 1 (pow x 2)))))
(* x (- (+ 1 (* 4 (/ 1 (* (pow x 3) y)))) (+ (* 8 (/ 1 (* (pow x 4) (pow y 2)))) (* 2 (/ 1 (pow x 2))))))
(/ 2 x)
(/ (- 2 (* 4 (/ 1 (* x y)))) x)
(/ (- (+ 2 (/ 8 (* (pow x 2) (pow y 2)))) (/ 4 (* x y))) x)
(/ (- (+ 2 (* 8 (/ 1 (* (pow x 2) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 3) (pow y 3)))) (/ 4 (* x y)))) x)
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) 1)))
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) (+ 1 (/ 4 (* (pow x 3) y))))))
(* -1 (* x (- (+ (* -1 (/ (- (* 4 (/ 1 y)) (* 8 (/ 1 (* x (pow y 2))))) (pow x 3))) (* 2 (/ 1 (pow x 2)))) 1)))
(* -1 (/ (- (* 4 (/ 1 (* x y))) 2) x))
(* -1 (/ (- (* -1 (/ (- (* 8 (/ 1 (* x (pow y 2)))) (* 4 (/ 1 y))) x)) 2) x))
(* -1 (/ (- (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* x (pow y 3)))) (* 8 (/ 1 (pow y 2)))) x)) (* 4 (/ 1 y))) x)) 2) x))
(+ x (* -1 y))
(+ x (* y (- (* 1/2 (* x y)) 1)))
(+ x (* y (- (* y (+ (* -1/4 (* (pow x 2) y)) (* 1/2 x))) 1)))
(* y (+ 1 (* -1/2 (* x y))))
(* y (+ 1 (* y (- (* 1/4 (* (pow x 2) y)) (* 1/2 x)))))
(* y (+ 1 (* y (- (* y (- (* -1/8 (* (pow x 3) y)) (* -1/4 (pow x 2)))) (* 1/2 x)))))
(- x (* 2 (/ 1 x)))
(- (+ x (* 4 (/ 1 (* (pow x 2) y)))) (* 2 (/ 1 x)))
(- (+ x (/ 4 (* (pow x 2) y))) (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))))
(- (+ x (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))))
(- (* 2 (/ 1 x)) (* 4 (/ 1 (* (pow x 2) y))))
(- (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))) (/ 4 (* (pow x 2) y)))
(- (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y))))
(- (+ x (* -1 (/ (- (* 8 (/ 1 (* (pow x 3) y))) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x)))
(- (+ x (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* (pow x 4) y))) (* 8 (/ 1 (pow x 3)))) y)) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x)))
(+ (* -1 (/ (- (* 4 (/ 1 (pow x 2))) (* 8 (/ 1 (* (pow x 3) y)))) y)) (* 2 (/ 1 x)))
(+ (* -1 (/ (+ (* -1 (/ (- (* 8 (/ 1 (pow x 3))) (* 16 (/ 1 (* (pow x 4) y)))) y)) (* 4 (/ 1 (pow x 2)))) y)) (* 2 (/ 1 x)))
Outputs
(* -1 y)
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y))
(- (* x (+ 1 (* 1/2 (pow y 2)))) y)
(*.f64 x y)
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y)
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)))
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y)
(/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))
(* x y)
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))
(* 1/2 (* x y))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
y
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))))
(+ y (* -1/2 (* x (pow y 2))))
#s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2)))))
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))

rewrite1.0ms (0.1%)

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

eval2.0ms (0.2%)

Memory
7.7MiB live, 7.8MiB allocated
Compiler

Compiled 767 to 38 computations (95% saved)

prune5.0ms (0.5%)

Memory
14.6MiB live, 14.6MiB allocated
Pruning

8 alts after pruning (0 fresh and 8 done)

PrunedKeptTotal
New23023
Fresh000
Picked033
Done055
Total23831
Accuracy
99.9%
Counts
31 → 8
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.9%
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
42.2%
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
3.4%
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))))
3.6%
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
10.0%
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)))
2.9%
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
3.5%
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
3.6%
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y))
Compiler

Compiled 324 to 132 computations (59.3% saved)

regimes11.0ms (1%)

Memory
-15.2MiB live, 23.7MiB allocated
Counts
8 → 1
Calls
Call 1
Inputs
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))))
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)))
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
Outputs
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
Calls

3 calls:

4.0ms
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
3.0ms
y
3.0ms
x
Results
AccuracySegmentsBranch
99.9%1x
99.9%1y
99.9%1(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
Compiler

Compiled 13 to 13 computations (0% saved)

regimes10.0ms (0.9%)

Memory
-21.1MiB live, 24.0MiB allocated
Counts
7 → 1
Calls
Call 1
Inputs
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))))
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64)))
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)))
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
Outputs
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
Calls

3 calls:

4.0ms
x
3.0ms
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
3.0ms
y
Results
AccuracySegmentsBranch
42.2%1x
42.2%1y
42.2%1(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
Compiler

Compiled 13 to 13 computations (0% saved)

regimes4.0ms (0.4%)

Memory
9.8MiB live, 9.8MiB allocated
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

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

3 calls:

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

Compiled 13 to 13 computations (0% saved)

simplify4.0ms (0.4%)

Memory
10.4MiB live, 10.4MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y))
Outputs
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))))
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y))

soundness1.0ms (0.1%)

Memory
1.3MiB live, 1.3MiB allocated
Stop Event
done
Compiler

Compiled 41 to 19 computations (53.7% saved)

preprocess22.0ms (2.1%)

Memory
-20.8MiB live, 56.8MiB allocated
Compiler

Compiled 104 to 56 computations (46.2% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...