Data.Colour.RGB:hslsv from colour-2.3.3, C

Time bar (total: 882.0ms)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

analyze20.0ms (2.3%)

Memory
-17.4MiB live, 20.9MiB 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
25%25%74.9%0.1%0%0%0%3
37.5%37.5%62.4%0.1%0%0%0%4
56.3%56.2%43.7%0.1%0%0%0%5
65.6%65.6%34.3%0.1%0%0%0%6
79.7%79.6%20.3%0.1%0%0%0%7
83.6%83.5%16.4%0.1%0%0%0%8
90.2%90.1%9.8%0.1%0%0%0%9
92%91.9%8%0.1%0%0%0%10
95.2%95.1%4.8%0.1%0%0%0%11
96%96%4%0.1%0%0%0%12
Compiler

Compiled 11 to 9 computations (18.2% saved)

sample643.0ms (72.9%)

Memory
33.6MiB live, 969.2MiB allocated
Samples
376.0ms8 255×0valid
0.0ms1valid
Precisions
Click to see histograms. Total time spent on operations: 208.0ms
ival-sub: 87.0ms (41.8% of total)
ival-div: 55.0ms (26.4% of total)
ival-add: 51.0ms (24.5% of total)
ival-true: 7.0ms (3.4% of total)
exact: 5.0ms (2.4% of total)
ival-assert: 4.0ms (1.9% of total)
adjust: 0.0ms (0% of total)
Bogosity

explain74.0ms (8.4%)

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

Compiled 82 to 32 computations (61% saved)

Precisions
Click to see histograms. Total time spent on operations: 14.0ms
ival-sub: 5.0ms (37% of total)
ival-div: 5.0ms (37% of total)
ival-add: 3.0ms (22.2% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess3.0ms (0.3%)

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

Compiled 9 to 7 computations (22.2% saved)

eval0.0ms (0%)

Memory
0.2MiB live, 0.2MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

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

Compiled 9 to 7 computations (22.2% saved)

simplify0.0ms (0%)

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

Found 4 expressions of interest:

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

localize20.0ms (2.2%)

Memory
0.2MiB live, 38.6MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(-.f64 x y)
accuracy0.0
(-.f64 #s(literal 2 binary64) (+.f64 x y))
accuracy0.0
(+.f64 x y)
accuracy0.015625
(/.f64 (-.f64 x y) (-.f64 #s(literal 2 binary64) (+.f64 x y)))
Samples
14.0ms256×0valid
Compiler

Compiled 48 to 16 computations (66.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 8.0ms
ival-sub: 4.0ms (52.6% of total)
ival-div: 2.0ms (26.3% of total)
ival-add: 1.0ms (13.2% 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.7%)

Memory
-29.6MiB live, 9.0MiB allocated
Counts
4 → 44
Calls
Call 1
Inputs
(/.f64 (-.f64 x y) (-.f64 #s(literal 2 binary64) (+.f64 x y)))
(-.f64 x y)
(-.f64 #s(literal 2 binary64) (+.f64 x y))
(+.f64 x y)
Outputs
(* -1 (/ y (- 2 y)))
(+ (* -1 (/ y (- 2 y))) (* x (- (/ 1 (- 2 y)) (/ y (pow (- 2 y) 2)))))
(+ (* -1 (/ y (- 2 y))) (* x (- (+ (/ 1 (- 2 y)) (/ (* x (- (/ 1 (- 2 y)) (/ y (pow (- 2 y) 2)))) (- 2 y))) (/ y (pow (- 2 y) 2)))))
(+ (* -1 (/ y (- 2 y))) (* x (- (+ (* x (- (/ (* x (- (/ 1 (- 2 y)) (/ y (pow (- 2 y) 2)))) (pow (- 2 y) 2)) (* -1 (/ (- (/ 1 (- 2 y)) (/ y (pow (- 2 y) 2))) (- 2 y))))) (/ 1 (- 2 y))) (/ y (pow (- 2 y) 2)))))
(* -1 y)
(- x y)
(- 2 y)
(- (+ 2 (* -1 x)) y)
y
(+ x y)
-1
(- (* 2 (/ y x)) (+ 1 (* 2 (/ 1 x))))
(- (+ (* 2 (/ y x)) (/ (* (- 2 y) (- (* 2 y) 2)) (pow x 2))) (+ 1 (* 2 (/ 1 x))))
(- (+ (* 2 (/ y x)) (/ (* (pow (- 2 y) 2) (- (* 2 y) 2)) (pow x 3))) (+ 1 (+ (* -1 (/ (* (- 2 y) (- (* 2 y) 2)) (pow x 2))) (* 2 (/ 1 x)))))
x
(* x (+ 1 (* -1 (/ y x))))
(* -1 x)
(* x (- (* 2 (/ 1 x)) (+ 1 (/ y x))))
(* x (+ 1 (/ y x)))
(- (* -1 (/ (+ (* -1 (- (* 2 y) 2)) (* -1 (/ (* (- 2 y) (- (* 2 y) 2)) x))) x)) 1)
(- (* -1 (/ (+ (* -1 (- (* 2 y) 2)) (* -1 (/ (+ (* (- 2 y) (- (* 2 y) 2)) (/ (* (pow (- 2 y) 2) (- (* 2 y) 2)) x)) x))) x)) 1)
(* -1 (* x (- (/ y x) 1)))
(* -1 (* x (+ 1 (* -1 (/ (- 2 y) x)))))
(* -1 (* x (- (* -1 (/ y x)) 1)))
(/ x (- 2 x))
(+ (* -1 (* y (+ (* -1 (/ x (pow (- 2 x) 2))) (/ 1 (- 2 x))))) (/ x (- 2 x)))
(+ (* y (- (* -1 (* y (+ (* -1 (/ x (pow (- 2 x) 3))) (/ 1 (pow (- 2 x) 2))))) (+ (* -1 (/ x (pow (- 2 x) 2))) (/ 1 (- 2 x))))) (/ x (- 2 x)))
(+ (* y (- (* y (- (* -1 (* y (+ (* -1 (/ x (pow (- 2 x) 4))) (/ 1 (pow (- 2 x) 3))))) (+ (* -1 (/ x (pow (- 2 x) 3))) (/ 1 (pow (- 2 x) 2))))) (+ (* -1 (/ x (pow (- 2 x) 2))) (/ 1 (- 2 x))))) (/ x (- 2 x)))
(+ x (* -1 y))
(- 2 x)
(- (+ 2 (* -1 y)) x)
1
(- (+ 1 (* -1 (/ x y))) (* -1 (/ (- 2 x) y)))
(- (+ 1 (+ (* -1 (/ x y)) (/ (* (- 2 x) (- (* -1 x) (* -1 (- 2 x)))) (pow y 2)))) (* -1 (/ (- 2 x) y)))
(- (+ 1 (+ (* -1 (/ x y)) (/ (* (pow (- 2 x) 2) (- (* -1 x) (* -1 (- 2 x)))) (pow y 3)))) (+ (* -1 (/ (* (- 2 x) (- (* -1 x) (* -1 (- 2 x)))) (pow y 2))) (* -1 (/ (- 2 x) y))))
(* y (- (/ x y) 1))
(* y (- (* 2 (/ 1 y)) (+ 1 (/ x y))))
(* y (+ 1 (/ x y)))
(+ 1 (* -1 (/ (- (* 2 x) 2) y)))
(+ 1 (* -1 (/ (- (+ (* 2 x) (/ (* (- 2 x) (- (* 2 x) 2)) y)) 2) y)))
(+ 1 (* -1 (/ (- (+ (* -1 (/ (- (* -1 (/ (* (pow (- 2 x) 2) (- (* 2 x) 2)) y)) (* (- 2 x) (- (* 2 x) 2))) y)) (* 2 x)) 2) y)))
(* -1 (* y (+ 1 (* -1 (/ x y)))))
(* -1 (* y (+ 1 (* -1 (/ (- 2 x) y)))))
(* -1 (* y (- (* -1 (/ x y)) 1)))
Calls

6 calls:

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

simplify1.0ms (0.1%)

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

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
1.9MiB live, 1.9MiB allocated
Compiler

Compiled 96 to 16 computations (83.3% saved)

prune2.0ms (0.2%)

Memory
3.5MiB live, 3.5MiB allocated
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New538
Fresh000
Picked011
Done000
Total549
Accuracy
100.0%
Counts
9 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(/.f64 (-.f64 x y) (-.f64 #s(literal 2 binary64) (+.f64 x y)))
7.3%
#s(approx (/ (- x y) (- 2 (+ x y))) (-.f64 x y))
3.4%
#s(approx (/ (- x y) (- 2 (+ x y))) (-.f64 #s(literal 2 binary64) (+.f64 x y)))
5.1%
#s(approx (/ (- x y) (- 2 (+ x y))) (+.f64 x y))
Compiler

Compiled 50 to 36 computations (28% saved)

simplify0.0ms (0.1%)

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

Found 7 expressions of interest:

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

localize28.0ms (3.1%)

Memory
-34.7MiB live, 38.8MiB allocated
Localize:

Found 7 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(-.f64 x y)
accuracy59.35466055177565
#s(approx (/ (- x y) (- 2 (+ x y))) (-.f64 x y))
accuracy0.0
(-.f64 #s(literal 2 binary64) (+.f64 x y))
accuracy0.0
(+.f64 x y)
accuracy61.812984185054354
#s(approx (/ (- x y) (- 2 (+ x y))) (-.f64 #s(literal 2 binary64) (+.f64 x y)))
accuracy0.0
(+.f64 x y)
accuracy60.73828389970906
#s(approx (/ (- x y) (- 2 (+ x y))) (+.f64 x y))
Samples
22.0ms256×0valid
Compiler

Compiled 112 to 23 computations (79.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 13.0ms
ival-div: 9.0ms (67.3% of total)
ival-sub: 3.0ms (22.4% of total)
ival-add: 1.0ms (7.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.2%)

Memory
4.0MiB live, 4.0MiB allocated
Counts
6 → 44
Calls
Call 1
Inputs
#s(approx (/ (- x y) (- 2 (+ x y))) (+.f64 x y))
(+.f64 x y)
#s(approx (/ (- x y) (- 2 (+ x y))) (-.f64 #s(literal 2 binary64) (+.f64 x y)))
(-.f64 #s(literal 2 binary64) (+.f64 x y))
#s(approx (/ (- x y) (- 2 (+ x y))) (-.f64 x y))
(-.f64 x y)
Outputs
(* -1 (/ y (- 2 y)))
(+ (* -1 (/ y (- 2 y))) (* x (- (/ 1 (- 2 y)) (/ y (pow (- 2 y) 2)))))
(+ (* -1 (/ y (- 2 y))) (* x (- (+ (/ 1 (- 2 y)) (/ (* x (- (/ 1 (- 2 y)) (/ y (pow (- 2 y) 2)))) (- 2 y))) (/ y (pow (- 2 y) 2)))))
(+ (* -1 (/ y (- 2 y))) (* x (- (+ (* x (- (/ (* x (- (/ 1 (- 2 y)) (/ y (pow (- 2 y) 2)))) (pow (- 2 y) 2)) (* -1 (/ (- (/ 1 (- 2 y)) (/ y (pow (- 2 y) 2))) (- 2 y))))) (/ 1 (- 2 y))) (/ y (pow (- 2 y) 2)))))
y
(+ x y)
(- 2 y)
(- (+ 2 (* -1 x)) y)
(* -1 y)
(- x y)
-1
(- (* 2 (/ y x)) (+ 1 (* 2 (/ 1 x))))
(- (+ (* 2 (/ y x)) (/ (* (- 2 y) (- (* 2 y) 2)) (pow x 2))) (+ 1 (* 2 (/ 1 x))))
(- (+ (* 2 (/ y x)) (/ (* (pow (- 2 y) 2) (- (* 2 y) 2)) (pow x 3))) (+ 1 (+ (* -1 (/ (* (- 2 y) (- (* 2 y) 2)) (pow x 2))) (* 2 (/ 1 x)))))
x
(* x (+ 1 (/ y x)))
(* -1 x)
(* x (- (* 2 (/ 1 x)) (+ 1 (/ y x))))
(* x (+ 1 (* -1 (/ y x))))
(- (* -1 (/ (+ (* -1 (- (* 2 y) 2)) (* -1 (/ (* (- 2 y) (- (* 2 y) 2)) x))) x)) 1)
(- (* -1 (/ (+ (* -1 (- (* 2 y) 2)) (* -1 (/ (+ (* (- 2 y) (- (* 2 y) 2)) (/ (* (pow (- 2 y) 2) (- (* 2 y) 2)) x)) x))) x)) 1)
(* -1 (* x (- (* -1 (/ y x)) 1)))
(* -1 (* x (+ 1 (* -1 (/ (- 2 y) x)))))
(* -1 (* x (- (/ y x) 1)))
(/ x (- 2 x))
(+ (* -1 (* y (+ (* -1 (/ x (pow (- 2 x) 2))) (/ 1 (- 2 x))))) (/ x (- 2 x)))
(+ (* y (- (* -1 (* y (+ (* -1 (/ x (pow (- 2 x) 3))) (/ 1 (pow (- 2 x) 2))))) (+ (* -1 (/ x (pow (- 2 x) 2))) (/ 1 (- 2 x))))) (/ x (- 2 x)))
(+ (* y (- (* y (- (* -1 (* y (+ (* -1 (/ x (pow (- 2 x) 4))) (/ 1 (pow (- 2 x) 3))))) (+ (* -1 (/ x (pow (- 2 x) 3))) (/ 1 (pow (- 2 x) 2))))) (+ (* -1 (/ x (pow (- 2 x) 2))) (/ 1 (- 2 x))))) (/ x (- 2 x)))
(- 2 x)
(- (+ 2 (* -1 y)) x)
(+ x (* -1 y))
1
(- (+ 1 (* -1 (/ x y))) (* -1 (/ (- 2 x) y)))
(- (+ 1 (+ (* -1 (/ x y)) (/ (* (- 2 x) (- (* -1 x) (* -1 (- 2 x)))) (pow y 2)))) (* -1 (/ (- 2 x) y)))
(- (+ 1 (+ (* -1 (/ x y)) (/ (* (pow (- 2 x) 2) (- (* -1 x) (* -1 (- 2 x)))) (pow y 3)))) (+ (* -1 (/ (* (- 2 x) (- (* -1 x) (* -1 (- 2 x)))) (pow y 2))) (* -1 (/ (- 2 x) y))))
(* y (+ 1 (/ x y)))
(* y (- (* 2 (/ 1 y)) (+ 1 (/ x y))))
(* y (- (/ x y) 1))
(+ 1 (* -1 (/ (- (* 2 x) 2) y)))
(+ 1 (* -1 (/ (- (+ (* 2 x) (/ (* (- 2 x) (- (* 2 x) 2)) y)) 2) y)))
(+ 1 (* -1 (/ (- (+ (* -1 (/ (- (* -1 (/ (* (pow (- 2 x) 2) (- (* 2 x) 2)) y)) (* (- 2 x) (- (* 2 x) 2))) y)) (* 2 x)) 2) y)))
(* -1 (* y (- (* -1 (/ x y)) 1)))
(* -1 (* y (+ 1 (* -1 (/ (- 2 x) y)))))
(* -1 (* y (+ 1 (* -1 (/ x y)))))
Calls

6 calls:

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

simplify1.0ms (0.1%)

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

rewrite0.0ms (0%)

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

eval1.0ms (0.2%)

Memory
4.7MiB live, 4.7MiB allocated
Compiler

Compiled 237 to 24 computations (89.9% saved)

prune3.0ms (0.3%)

Memory
9.0MiB live, 9.0MiB allocated
Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New12113
Fresh000
Picked123
Done011
Total13417
Accuracy
100.0%
Counts
17 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(/.f64 (-.f64 x y) (-.f64 #s(literal 2 binary64) (+.f64 x y)))
7.3%
#s(approx (/ (- x y) (- 2 (+ x y))) (-.f64 x y))
3.4%
#s(approx (/ (- x y) (- 2 (+ x y))) (-.f64 #s(literal 2 binary64) #s(approx (+ x y) (-.f64 x y))))
5.1%
#s(approx (/ (- x y) (- 2 (+ x y))) (+.f64 x y))
Compiler

Compiled 54 to 37 computations (31.5% saved)

simplify0.0ms (0%)

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

Found 4 expressions of interest:

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

localize19.0ms (2.1%)

Memory
-7.0MiB live, 31.9MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(-.f64 x y)
accuracy0.0
(-.f64 #s(literal 2 binary64) #s(approx (+ x y) (-.f64 x y)))
accuracy29.68475318573984
#s(approx (+ x y) (-.f64 x y))
accuracy61.812984185054354
#s(approx (/ (- x y) (- 2 (+ x y))) (-.f64 #s(literal 2 binary64) #s(approx (+ x y) (-.f64 x y))))
Samples
13.0ms256×0valid
Compiler

Compiled 66 to 21 computations (68.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 6.0ms
ival-sub: 3.0ms (51.3% of total)
ival-div: 2.0ms (34.2% of total)
ival-add: 1.0ms (17.1% 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.2%)

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

6 calls:

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

simplify1.0ms (0.1%)

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

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
1.5MiB live, 1.5MiB allocated
Compiler

Compiled 135 to 15 computations (88.9% saved)

prune3.0ms (0.3%)

Memory
4.5MiB live, 4.5MiB allocated
Pruning

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New707
Fresh000
Picked011
Done033
Total7411
Accuracy
100.0%
Counts
11 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(/.f64 (-.f64 x y) (-.f64 #s(literal 2 binary64) (+.f64 x y)))
7.3%
#s(approx (/ (- x y) (- 2 (+ x y))) (-.f64 x y))
3.4%
#s(approx (/ (- x y) (- 2 (+ x y))) (-.f64 #s(literal 2 binary64) #s(approx (+ x y) (-.f64 x y))))
5.1%
#s(approx (/ (- x y) (- 2 (+ x y))) (+.f64 x y))
Compiler

Compiled 123 to 55 computations (55.3% saved)

regimes8.0ms (1%)

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

3 calls:

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

Compiled 11 to 11 computations (0% saved)

regimes6.0ms (0.7%)

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

3 calls:

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

Compiled 11 to 11 computations (0% saved)

regimes4.0ms (0.4%)

Memory
7.7MiB live, 7.7MiB allocated
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

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

3 calls:

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

Compiled 11 to 11 computations (0% saved)

simplify4.0ms (0.5%)

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

soundness1.0ms (0.1%)

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

Compiled 35 to 14 computations (60% saved)

preprocess29.0ms (3.3%)

Memory
7.0MiB live, 44.5MiB allocated
Compiler

Compiled 118 to 58 computations (50.8% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...