Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, A

Time bar (total: 1.4s)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated

analyze0.0ms (0%)

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

Compiled 13 to 12 computations (7.7% saved)

sample903.0ms (65.8%)

Memory
37.3MiB live, 1 530.2MiB allocated
Samples
621.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 433.0ms
const: 156.0ms (36% of total)
ival-mult: 116.0ms (26.8% of total)
ival-sub: 103.0ms (23.8% of total)
ival-add: 39.0ms (9% of total)
exact: 9.0ms (2.1% of total)
ival-true: 7.0ms (1.6% of total)
ival-assert: 4.0ms (0.9% of total)
Bogosity

explain120.0ms (8.7%)

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

Compiled 123 to 44 computations (64.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 30.0ms
ival-sub: 11.0ms (37% of total)
const: 9.0ms (30.3% of total)
ival-mult: 7.0ms (23.6% of total)
ival-add: 2.0ms (6.7% of total)
exact: 1.0ms (3.4% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess6.0ms (0.4%)

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

Compiled 11 to 10 computations (9.1% saved)

eval0.0ms (0%)

Memory
0.2MiB live, 0.2MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

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

Compiled 11 to 10 computations (9.1% saved)

simplify0.0ms (0%)

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

Found 4 expressions of interest:

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

localize29.0ms (2.1%)

Memory
-9.9MiB live, 74.9MiB allocated
Localize:

Found 4 expressions of interest:

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

Compiled 74 to 22 computations (70.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 12.0ms
const: 4.0ms (33.8% of total)
ival-sub: 3.0ms (25.3% of total)
ival-mult: 3.0ms (25.3% of total)
ival-add: 1.0ms (8.4% 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.4%)

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

6 calls:

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

simplify0.0ms (0%)

Memory
1.2MiB live, 1.2MiB allocated
Algorithm
egg-herbie
Counts
29 → 5
Calls
Call 1
Inputs
(- 918938533204673/1000000000000000 (* 1/2 y))
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y))
(* -1/2 y)
(- (* x (- y 1)) (* 1/2 y))
(* x (- y 1))
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x)))))
(* x (- (+ y (* -1/2 (/ y x))) 1))
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x)))))
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x)))))
(+ 918938533204673/1000000000000000 (* -1 x))
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2))))
(* -1 x)
(+ (* -1 x) (* y (- x 1/2)))
(+ (* -1 x) (* x y))
-1
(- y 1)
(* 1/2 y)
(* y (- x 1/2))
(* y (- (+ x (+ (* -1 (/ x y)) (* 918938533204673/1000000000000000 (/ 1 y)))) 1/2))
(* y (- (+ x (* -1 (/ x y))) 1/2))
(* x y)
(* y (+ x (* -1 (/ x y))))
y
(* y (- 1 (/ 1 y)))
(* -1 (* y (+ 1/2 (* -1 x))))
(* -1 (* y (+ 1/2 (+ (* -1 x) (* -1 (/ (+ 918938533204673/1000000000000000 (* -1 x)) y))))))
(* -1 (* y (+ 1/2 (+ (* -1 x) (/ x y)))))
(* -1 (* y (+ (* -1 x) (/ x y))))
(* -1 (* y (- (/ 1 y) 1)))
Outputs
(- 918938533204673/1000000000000000 (* 1/2 y))
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y))
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))
(* -1/2 y)
(*.f64 x (-.f64 y #s(literal 1 binary64)))
(- (* x (- y 1)) (* 1/2 y))
(-.f64 y #s(literal 1 binary64))
(* x (- y 1))
(*.f64 y #s(literal 1/2 binary64))

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
2.7MiB live, 2.7MiB allocated
Compiler

Compiled 146 to 27 computations (81.5% saved)

prune2.0ms (0.1%)

Memory
3.8MiB live, 3.8MiB allocated
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New7310
Fresh000
Picked011
Done000
Total7411
Accuracy
100.0%
Counts
11 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
2.0%
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
76.3%
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
72.9%
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))))
Compiler

Compiled 64 to 54 computations (15.6% saved)

simplify1.0ms (0.1%)

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

Found 11 expressions of interest:

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

localize34.0ms (2.5%)

Memory
-2.9MiB live, 75.2MiB allocated
Localize:

Found 11 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(-.f64 y #s(literal 1 binary64))
accuracy0.00390625
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
accuracy62.174489225089104
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))
accuracy0.0
(-.f64 y #s(literal 1 binary64))
accuracy0.00390625
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
accuracy0.01171875
(*.f64 x (-.f64 y #s(literal 1 binary64)))
accuracy25.12961400574452
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))
accuracy0.0
(*.f64 y #s(literal 1/2 binary64))
accuracy0.00390625
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))
accuracy0.01171875
(*.f64 x (-.f64 y #s(literal 1 binary64)))
accuracy17.360551641709236
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))))
Samples
25.0ms256×0valid
Compiler

Compiled 218 to 34 computations (84.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 13.0ms
const: 5.0ms (38.6% of total)
ival-sub: 3.0ms (23.1% of total)
ival-mult: 3.0ms (23.1% of total)
ival-add: 1.0ms (7.7% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series4.0ms (0.3%)

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

6 calls:

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

simplify1.0ms (0%)

Memory
1.2MiB live, 1.2MiB allocated
Algorithm
egg-herbie
Counts
29 → 9
Calls
Call 1
Inputs
(- 918938533204673/1000000000000000 (* 1/2 y))
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y))
(* -1/2 y)
(- (* x (- y 1)) (* 1/2 y))
(* x (- y 1))
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x)))))
(* x (- (+ y (* -1/2 (/ y x))) 1))
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x)))))
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x)))))
(+ 918938533204673/1000000000000000 (* -1 x))
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2))))
(* -1 x)
(+ (* -1 x) (* y (- x 1/2)))
(+ (* -1 x) (* x y))
-1
(- y 1)
(* 1/2 y)
(* y (- x 1/2))
(* y (- (+ x (+ (* -1 (/ x y)) (* 918938533204673/1000000000000000 (/ 1 y)))) 1/2))
(* y (- (+ x (* -1 (/ x y))) 1/2))
(* x y)
(* y (+ x (* -1 (/ x y))))
y
(* y (- 1 (/ 1 y)))
(* -1 (* y (+ 1/2 (* -1 x))))
(* -1 (* y (+ 1/2 (+ (* -1 x) (* -1 (/ (+ 918938533204673/1000000000000000 (* -1 x)) y))))))
(* -1 (* y (+ 1/2 (+ (* -1 x) (/ x y)))))
(* -1 (* y (+ (* -1 x) (/ x y))))
(* -1 (* y (- (/ 1 y) 1)))
Outputs
(- 918938533204673/1000000000000000 (* 1/2 y))
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))))
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y))
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))
(* -1/2 y)
(*.f64 x (-.f64 y #s(literal 1 binary64)))
(- (* x (- y 1)) (* 1/2 y))
(-.f64 y #s(literal 1 binary64))
(* x (- y 1))
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x)))))
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))
(* x (- (+ y (* -1/2 (/ y x))) 1))
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x)))))
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x)))))
(*.f64 y #s(literal 1/2 binary64))

rewrite1.0ms (0%)

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

eval5.0ms (0.3%)

Memory
-37.6MiB live, 3.4MiB allocated
Compiler

Compiled 459 to 34 computations (92.6% saved)

prune3.0ms (0.2%)

Memory
5.5MiB live, 5.5MiB allocated
Pruning

7 alts after pruning (4 fresh and 3 done)

PrunedKeptTotal
New15419
Fresh000
Picked123
Done011
Total16723
Accuracy
100.0%
Counts
23 → 7
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
76.3%
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
54.3%
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
72.9%
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))))
2.1%
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))))
2.5%
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))))
50.1%
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))))
Compiler

Compiled 161 to 101 computations (37.3% saved)

simplify1.0ms (0.1%)

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

Found 14 expressions of interest:

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

localize37.0ms (2.7%)

Memory
22.9MiB live, 61.3MiB allocated
Localize:

Found 14 expressions of interest:

NewMetricScoreProgram
accuracy0.01171875
(*.f64 x (-.f64 y #s(literal 1 binary64)))
accuracy25.12961400574452
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))
accuracy25.12961400574452
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))))
accuracy31.914755820404803
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))
accuracy0.0
(-.f64 y #s(literal 1 binary64))
accuracy17.360551641709236
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))))
accuracy62.174489225089104
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))
accuracy0.0
(*.f64 y #s(literal 1/2 binary64))
accuracy17.360551641709236
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))))
accuracy62.393134933280365
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))
accuracy0.0
(-.f64 y #s(literal 1 binary64))
accuracy0.01171875
(*.f64 x (-.f64 y #s(literal 1 binary64)))
accuracy17.360551641709236
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))))
accuracy25.12961400574452
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))
Samples
26.0ms256×0valid
Compiler

Compiled 414 to 38 computations (90.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 14.0ms
const: 4.0ms (28.6% of total)
ival-sub: 3.0ms (21.4% of total)
ival-add: 3.0ms (21.4% of total)
ival-mult: 3.0ms (21.4% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series7.0ms (0.5%)

Memory
-27.6MiB live, 10.9MiB allocated
Counts
13 → 29
Calls
Call 1
Inputs
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))))
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))
(*.f64 x (-.f64 y #s(literal 1 binary64)))
(-.f64 y #s(literal 1 binary64))
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))))
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))
(*.f64 y #s(literal 1/2 binary64))
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))))
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))))
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
Outputs
(- 918938533204673/1000000000000000 (* 1/2 y))
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y))
(* -1/2 y)
(- (* x (- y 1)) (* 1/2 y))
(* x (- y 1))
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x)))))
(* x (- (+ y (* -1/2 (/ y x))) 1))
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x)))))
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x)))))
(+ 918938533204673/1000000000000000 (* -1 x))
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2))))
(* -1 x)
(+ (* -1 x) (* y (- x 1/2)))
(+ (* -1 x) (* x y))
-1
(- y 1)
(* 1/2 y)
(* y (- x 1/2))
(* y (- (+ x (+ (* -1 (/ x y)) (* 918938533204673/1000000000000000 (/ 1 y)))) 1/2))
(* y (- (+ x (* -1 (/ x y))) 1/2))
(* x y)
(* y (+ x (* -1 (/ x y))))
y
(* y (- 1 (/ 1 y)))
(* -1 (* y (+ 1/2 (* -1 x))))
(* -1 (* y (+ 1/2 (+ (* -1 x) (* -1 (/ (+ 918938533204673/1000000000000000 (* -1 x)) y))))))
(* -1 (* y (+ 1/2 (+ (* -1 x) (/ x y)))))
(* -1 (* y (+ (* -1 x) (/ x y))))
(* -1 (* y (- (/ 1 y) 1)))
Calls

6 calls:

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

simplify1.0ms (0%)

Memory
1.1MiB live, 1.1MiB allocated
Algorithm
egg-herbie
Counts
29 → 13
Calls
Call 1
Inputs
(- 918938533204673/1000000000000000 (* 1/2 y))
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y))
(* -1/2 y)
(- (* x (- y 1)) (* 1/2 y))
(* x (- y 1))
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x)))))
(* x (- (+ y (* -1/2 (/ y x))) 1))
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x)))))
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x)))))
(+ 918938533204673/1000000000000000 (* -1 x))
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2))))
(* -1 x)
(+ (* -1 x) (* y (- x 1/2)))
(+ (* -1 x) (* x y))
-1
(- y 1)
(* 1/2 y)
(* y (- x 1/2))
(* y (- (+ x (+ (* -1 (/ x y)) (* 918938533204673/1000000000000000 (/ 1 y)))) 1/2))
(* y (- (+ x (* -1 (/ x y))) 1/2))
(* x y)
(* y (+ x (* -1 (/ x y))))
y
(* y (- 1 (/ 1 y)))
(* -1 (* y (+ 1/2 (* -1 x))))
(* -1 (* y (+ 1/2 (+ (* -1 x) (* -1 (/ (+ 918938533204673/1000000000000000 (* -1 x)) y))))))
(* -1 (* y (+ 1/2 (+ (* -1 x) (/ x y)))))
(* -1 (* y (+ (* -1 x) (/ x y))))
(* -1 (* y (- (/ 1 y) 1)))
Outputs
(- 918938533204673/1000000000000000 (* 1/2 y))
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))))
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y))
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))
(* -1/2 y)
(*.f64 x (-.f64 y #s(literal 1 binary64)))
(- (* x (- y 1)) (* 1/2 y))
(-.f64 y #s(literal 1 binary64))
(* x (- y 1))
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))))
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x)))))
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))
(* x (- (+ y (* -1/2 (/ y x))) 1))
(*.f64 y #s(literal 1/2 binary64))
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x)))))
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))))
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x)))))
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))
(+ 918938533204673/1000000000000000 (* -1 x))
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2))))
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))))
(* -1 x)
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))
(+ (* -1 x) (* y (- x 1/2)))
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))

rewrite1.0ms (0.1%)

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

eval3.0ms (0.2%)

Memory
8.2MiB live, 8.2MiB allocated
Compiler

Compiled 1 078 to 60 computations (94.4% saved)

prune6.0ms (0.5%)

Memory
14.0MiB live, 14.0MiB allocated
Pruning

8 alts after pruning (1 fresh and 7 done)

PrunedKeptTotal
New29130
Fresh000
Picked044
Done033
Total29837
Accuracy
100.0%
Counts
37 → 8
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
76.3%
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
8.0%
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
54.3%
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
72.9%
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))))
2.1%
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))))
2.5%
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))))
50.1%
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))))
Compiler

Compiled 194 to 117 computations (39.7% saved)

simplify1.0ms (0%)

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

Found 4 expressions of interest:

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

localize28.0ms (2%)

Memory
12.1MiB live, 51.0MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.00390625
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
accuracy25.12961400574452
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))))
accuracy31.914755820404803
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))
accuracy62.174489225089104
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))
Samples
21.0ms256×0valid
Compiler

Compiled 172 to 28 computations (83.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 13.0ms
ival-mult: 4.0ms (30.6% of total)
const: 4.0ms (30.6% of total)
ival-sub: 3.0ms (23% of total)
ival-add: 1.0ms (7.7% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series5.0ms (0.4%)

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

6 calls:

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

simplify0.0ms (0%)

Memory
1.3MiB live, 1.3MiB allocated
Algorithm
egg-herbie
Counts
23 → 5
Calls
Call 1
Inputs
(- 918938533204673/1000000000000000 (* 1/2 y))
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y))
(* -1/2 y)
(- (* x (- y 1)) (* 1/2 y))
(* x (- y 1))
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x)))))
(* x (- (+ y (* -1/2 (/ y x))) 1))
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x)))))
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x)))))
(+ 918938533204673/1000000000000000 (* -1 x))
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2))))
(* -1 x)
(+ (* -1 x) (* y (- x 1/2)))
(+ (* -1 x) (* x y))
(* y (- x 1/2))
(* y (- (+ x (+ (* -1 (/ x y)) (* 918938533204673/1000000000000000 (/ 1 y)))) 1/2))
(* y (- (+ x (* -1 (/ x y))) 1/2))
(* x y)
(* y (+ x (* -1 (/ x y))))
(* -1 (* y (+ 1/2 (* -1 x))))
(* -1 (* y (+ 1/2 (+ (* -1 x) (* -1 (/ (+ 918938533204673/1000000000000000 (* -1 x)) y))))))
(* -1 (* y (+ 1/2 (+ (* -1 x) (/ x y)))))
(* -1 (* y (+ (* -1 x) (/ x y))))
Outputs
(- 918938533204673/1000000000000000 (* 1/2 y))
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y))
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))))
(* -1/2 y)
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))
(- (* x (- y 1)) (* 1/2 y))
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
(* x (- y 1))
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
2.6MiB live, 2.6MiB allocated
Compiler

Compiled 311 to 25 computations (92% saved)

prune5.0ms (0.3%)

Memory
10.8MiB live, 10.8MiB allocated
Pruning

8 alts after pruning (0 fresh and 8 done)

PrunedKeptTotal
New909
Fresh000
Picked011
Done077
Total9817
Accuracy
100.0%
Counts
17 → 8
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
76.3%
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
8.0%
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
54.3%
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
72.9%
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))))
2.1%
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))))
2.5%
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))))
50.1%
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))))
Compiler

Compiled 403 to 150 computations (62.8% saved)

regimes15.0ms (1.1%)

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

4 calls:

5.0ms
y
3.0ms
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))
3.0ms
x
3.0ms
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1y
100.0%1(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
100.0%1(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))
Compiler

Compiled 22 to 22 computations (0% saved)

regimes13.0ms (1%)

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

4 calls:

4.0ms
x
3.0ms
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))
3.0ms
y
3.0ms
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
Results
AccuracySegmentsBranch
80.6%3x
98.8%3y
98.7%3(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
98.7%3(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))
Compiler

Compiled 22 to 22 computations (0% saved)

regimes11.0ms (0.8%)

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

4 calls:

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

Compiled 22 to 22 computations (0% saved)

regimes10.0ms (0.7%)

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

4 calls:

3.0ms
y
2.0ms
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))
2.0ms
x
2.0ms
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
Results
AccuracySegmentsBranch
54.8%3x
50.1%1y
55.3%3(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
55.3%3(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))
Compiler

Compiled 22 to 22 computations (0% saved)

regimes8.0ms (0.6%)

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

4 calls:

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

Compiled 22 to 22 computations (0% saved)

regimes14.0ms (1%)

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

4 calls:

8.0ms
x
2.0ms
y
2.0ms
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))
2.0ms
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
Results
AccuracySegmentsBranch
2.5%1(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
2.5%1(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))
2.5%1x
2.5%1y
Compiler

Compiled 22 to 22 computations (0% saved)

regimes5.0ms (0.4%)

Memory
13.7MiB live, 13.7MiB allocated
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

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

4 calls:

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

Compiled 22 to 22 computations (0% saved)

bsearch39.0ms (2.9%)

Memory
-4.4MiB live, 73.7MiB allocated
Algorithm
binary-search
Stop Event
narrow-enough
narrow-enough
Steps
TimeLeftRight
20.0ms
0.0015059668295491328
14012508113.596964
15.0ms
-253393000829.81818
-230401105.63611594
Samples
22.0ms288×0valid
Compiler

Compiled 698 to 609 computations (12.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 15.0ms
const: 6.0ms (39.8% of total)
ival-mult: 4.0ms (26.6% of total)
ival-sub: 3.0ms (19.9% of total)
ival-add: 1.0ms (6.6% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

bsearch1.0ms (0%)

Memory
1.1MiB live, 1.1MiB allocated
Algorithm
left-value
Steps
TimeLeftRight
0.0ms
0.020358408978926587
1.9725837408909304
0.0ms
-245868.84121125285
-0.0007529834147745664
Compiler

Compiled 14 to 15 computations (-7.1% saved)

simplify5.0ms (0.4%)

Memory
12.3MiB live, 12.3MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
(if (<=.f64 y #s(literal -235000000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) (if (<=.f64 y #s(literal 4165829655317709/2251799813685248 binary64)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))))))
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
(if (<=.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal -200000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) (if (<=.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 5764607523034235/144115188075855872 binary64)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))))))
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))))
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))))
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))))
Outputs
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64))
(if (<=.f64 y #s(literal -235000000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) (if (<=.f64 y #s(literal 4165829655317709/2251799813685248 binary64)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))))))
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))
(if (<=.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal -200000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) (if (<=.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 5764607523034235/144115188075855872 binary64)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))))))
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))))
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))))
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))))

soundness2.0ms (0.1%)

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

Compiled 283 to 42 computations (85.2% saved)

preprocess36.0ms (2.6%)

Memory
1.1MiB live, 82.1MiB allocated
Compiler

Compiled 588 to 104 computations (82.3% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...