Diagrams.TwoD.Arc:arcBetween from diagrams-lib-1.3.0.3

Time bar (total: 1.4s)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated

analyze2.0ms (0.1%)

Memory
2.9MiB live, 2.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
75%74.9%25%0.1%0%0%0%3
87.5%87.4%12.5%0.1%0%0%0%4
93.8%93.7%6.2%0.1%0%0%0%5
96.9%96.8%3.1%0.1%0%0%0%6
98.4%98.3%1.6%0.1%0%0%0%7
99.2%99.1%0.8%0.1%0%0%0%8
99.6%99.5%0.4%0.1%0%0%0%9
99.8%99.7%0.2%0.1%0%0%0%10
99.9%99.8%0.1%0.1%0%0%0%11
100%99.9%0%0.1%0%0%0%12
Compiler

Compiled 21 to 11 computations (47.6% saved)

sample997.0ms (70.4%)

Memory
-94.5MiB live, 1 114.4MiB allocated
Samples
729.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 555.0ms
ival-div: 305.0ms (54.9% of total)
ival-mult: 157.0ms (28.3% of total)
ival-add: 41.0ms (7.4% of total)
ival-sub: 38.0ms (6.8% of total)
ival-true: 6.0ms (1.1% of total)
exact: 5.0ms (0.9% of total)
ival-assert: 3.0ms (0.5% of total)
Bogosity

explain118.0ms (8.3%)

Memory
3.8MiB live, 243.3MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1300-1(-1.5929102754669245e-161 -4.516435492720055e-162)(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
160-0-(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
00-0-(*.f64 (*.f64 y #s(literal 4 binary64)) y)
00-0-(*.f64 y #s(literal 4 binary64))
00-0-#s(literal 4 binary64)
00-0-(*.f64 x x)
00-0-(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
00-0-y
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
/.f64(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))o/o1180
(*.f64 (*.f64 y #s(literal 4 binary64)) y)overflow68
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))overflow118
(*.f64 x x)overflow66
(*.f64 (*.f64 y #s(literal 4 binary64)) y)overflow68
(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))overflow118
(*.f64 x x)overflow66
-.f64(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))nan-rescue160
(*.f64 x x)overflow66
(*.f64 (*.f64 y #s(literal 4 binary64)) y)overflow68
/.f64(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))u/u110
(*.f64 (*.f64 y #s(literal 4 binary64)) y)underflow52
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))underflow11
(*.f64 x x)underflow57
(*.f64 (*.f64 y #s(literal 4 binary64)) y)underflow52
(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))underflow11
(*.f64 x x)underflow57
Confusion
Predicted +Predicted -
+1291
-0126
Precision
1.0
Recall
0.9923076923076923
Confusion?
Predicted +Predicted MaybePredicted -
+12901
-00126
Precision?
1.0
Recall?
0.9923076923076923
Freqs
test
numberfreq
0127
1113
216
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
33.0ms512×0valid
Compiler

Compiled 176 to 40 computations (77.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 18.0ms
ival-mult: 9.0ms (49.9% of total)
ival-div: 4.0ms (22.2% of total)
ival-sub: 2.0ms (11.1% of total)
ival-add: 2.0ms (11.1% 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.2%)

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

Compiled 19 to 9 computations (52.6% saved)

eval0.0ms (0%)

Memory
0.1MiB live, 0.2MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

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

Compiled 19 to 9 computations (52.6% saved)

simplify0.0ms (0%)

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

Found 4 expressions of interest:

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

localize25.0ms (1.7%)

Memory
3.0MiB live, 44.3MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy0.0
(*.f64 x x)
accuracy3.4531146791510294
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
accuracy31.809846151677654
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
Samples
18.0ms256×0valid
Compiler

Compiled 104 to 20 computations (80.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-mult: 5.0ms (58.8% of total)
ival-sub: 1.0ms (11.8% of total)
ival-div: 1.0ms (11.8% of total)
ival-add: 1.0ms (11.8% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series8.0ms (0.6%)

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

6 calls:

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

simplify1.0ms (0%)

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

rewrite0.0ms (0%)

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

eval2.0ms (0.2%)

Memory
-36.0MiB live, 2.9MiB allocated
Compiler

Compiled 291 to 22 computations (92.4% saved)

prune2.0ms (0.1%)

Memory
4.9MiB live, 4.9MiB allocated
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New9413
Fresh000
Picked011
Done000
Total9514
Accuracy
51.2%
Counts
14 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
49.3%
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
3.4%
(/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
4.1%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
2.9%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
3.4%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
Compiler

Compiled 119 to 62 computations (47.9% saved)

simplify1.0ms (0.1%)

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

Found 13 expressions of interest:

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

localize31.0ms (2.2%)

Memory
27.2MiB live, 66.1MiB allocated
Localize:

Found 13 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy0.0
(*.f64 x x)
accuracy31.809846151677654
(/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
accuracy61.78886927163445
#s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64)))
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy0.0
(*.f64 x x)
accuracy3.4531146791510294
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
accuracy61.263604218900056
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
accuracy0.0
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy62.1660864596463
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
accuracy0.0
(*.f64 x x)
accuracy61.802893794706115
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
Samples
21.0ms256×0valid
Compiler

Compiled 320 to 31 computations (90.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-mult: 5.0ms (57.7% of total)
ival-sub: 1.0ms (11.5% of total)
ival-div: 1.0ms (11.5% of total)
ival-add: 1.0ms (11.5% 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
-26.5MiB live, 12.1MiB allocated
Counts
10 → 25
Calls
Call 1
Inputs
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
(*.f64 x x)
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
(*.f64 y #s(literal 4 binary64))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
#s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64)))
(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
Outputs
-1
(- (* 1/2 (/ (pow x 2) (pow y 2))) 1)
(- (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 4))) (* 1/2 (/ 1 (pow y 2))))) 1)
(- (* (pow x 2) (+ (* (pow x 2) (- (* 1/32 (/ (pow x 2) (pow y 6))) (* 1/8 (/ 1 (pow y 4))))) (* 1/2 (/ 1 (pow y 2))))) 1)
(pow x 2)
(* -4 (pow y 2))
(- (pow x 2) (* 4 (pow y 2)))
(* 4 (pow y 2))
(+ (* 4 (pow y 2)) (pow x 2))
1
(- (+ 1 (* -4 (/ (pow y 2) (pow x 2)))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* -4 (/ (pow y 2) (pow x 2))))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (pow y 2) (pow x 2))) (* 16 (/ (* (pow y 4) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 6))))) (+ (* 4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* 4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* -4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* 4 (/ (pow y 2) (pow x 2)))))
(+ 1 (* -8 (/ (pow y 2) (pow x 2))))
(+ 1 (* (pow y 2) (- (* 32 (/ (pow y 2) (pow x 4))) (* 8 (/ 1 (pow x 2))))))
(+ 1 (* (pow y 2) (- (* (pow y 2) (+ (* -128 (/ (pow y 2) (pow x 6))) (* 32 (/ 1 (pow x 4))))) (* 8 (/ 1 (pow x 2))))))
(* 4 y)
(+ (* -4 (pow y 2)) (pow x 2))
(- (* 1/4 (/ (pow x 2) (pow y 2))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* -1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* 1/16 (/ (* (pow x 4) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 6))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (+ (* -1/4 (/ (pow x 2) (pow y 2))) (* 1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))))))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 4))
(* (pow y 2) (+ 4 (/ (pow x 2) (pow y 2))))
Calls

6 calls:

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

simplify1.0ms (0%)

Memory
1.2MiB live, 1.2MiB allocated
Algorithm
egg-herbie
Counts
25 → 10
Calls
Call 1
Inputs
-1
(- (* 1/2 (/ (pow x 2) (pow y 2))) 1)
(- (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 4))) (* 1/2 (/ 1 (pow y 2))))) 1)
(- (* (pow x 2) (+ (* (pow x 2) (- (* 1/32 (/ (pow x 2) (pow y 6))) (* 1/8 (/ 1 (pow y 4))))) (* 1/2 (/ 1 (pow y 2))))) 1)
(pow x 2)
(* -4 (pow y 2))
(- (pow x 2) (* 4 (pow y 2)))
(* 4 (pow y 2))
(+ (* 4 (pow y 2)) (pow x 2))
1
(- (+ 1 (* -4 (/ (pow y 2) (pow x 2)))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* -4 (/ (pow y 2) (pow x 2))))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (pow y 2) (pow x 2))) (* 16 (/ (* (pow y 4) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 6))))) (+ (* 4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* 4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* -4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* 4 (/ (pow y 2) (pow x 2)))))
(+ 1 (* -8 (/ (pow y 2) (pow x 2))))
(+ 1 (* (pow y 2) (- (* 32 (/ (pow y 2) (pow x 4))) (* 8 (/ 1 (pow x 2))))))
(+ 1 (* (pow y 2) (- (* (pow y 2) (+ (* -128 (/ (pow y 2) (pow x 6))) (* 32 (/ 1 (pow x 4))))) (* 8 (/ 1 (pow x 2))))))
(* 4 y)
(+ (* -4 (pow y 2)) (pow x 2))
(- (* 1/4 (/ (pow x 2) (pow y 2))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* -1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* 1/16 (/ (* (pow x 4) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 6))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (+ (* -1/4 (/ (pow x 2) (pow y 2))) (* 1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))))))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 4))
(* (pow y 2) (+ 4 (/ (pow x 2) (pow y 2))))
Outputs
-1
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
(- (* 1/2 (/ (pow x 2) (pow y 2))) 1)
(*.f64 x x)
(- (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 4))) (* 1/2 (/ 1 (pow y 2))))) 1)
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(- (* (pow x 2) (+ (* (pow x 2) (- (* 1/32 (/ (pow x 2) (pow y 6))) (* 1/8 (/ 1 (pow y 4))))) (* 1/2 (/ 1 (pow y 2))))) 1)
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
(pow x 2)
(*.f64 y #s(literal 4 binary64))
(* -4 (pow y 2))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(- (pow x 2) (* 4 (pow y 2)))
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(* 4 (pow y 2))
(/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(+ (* 4 (pow y 2)) (pow x 2))
#s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64)))
1
(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))

rewrite1.0ms (0%)

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

eval3.0ms (0.2%)

Memory
13.2MiB live, 13.2MiB allocated
Compiler

Compiled 813 to 37 computations (95.4% saved)

prune17.0ms (1.2%)

Memory
-36.5MiB live, 17.0MiB allocated
Pruning

9 alts after pruning (4 fresh and 5 done)

PrunedKeptTotal
New23427
Fresh000
Picked044
Done011
Total23932
Accuracy
75.8%
Counts
32 → 9
Alt Table
Click to see full alt table
StatusAccuracyProgram
49.3%
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
3.4%
(/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
51.2%
(/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) #s(approx (+ (* x x) (* (* y 4) y)) #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64)))))
4.1%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
3.4%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
2.9%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
2.9%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
3.4%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
3.4%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
Compiler

Compiled 245 to 118 computations (51.8% saved)

simplify1.0ms (0.1%)

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

Found 15 expressions of interest:

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

localize34.0ms (2.4%)

Memory
30.7MiB live, 67.2MiB allocated
Localize:

Found 15 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy29.610356991914717
#s(approx (+ (* x x) (* (* y 4) y)) #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))))
accuracy31.809846151677654
(/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) #s(approx (+ (* x x) (* (* y 4) y)) #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64)))))
accuracy61.78886927163445
#s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64)))
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy3.4531146791510294
(-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
accuracy61.263604218900056
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
accuracy61.97097606612495
#s(approx (* x x) (*.f64 y #s(literal 4 binary64)))
accuracy0.0
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy0.0
(*.f64 x x)
accuracy62.170096670721186
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy61.802893794706115
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
accuracy61.97097606612495
#s(approx (* x x) (*.f64 y #s(literal 4 binary64)))
Samples
23.0ms256×0valid
Compiler

Compiled 386 to 33 computations (91.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 8.0ms
ival-mult: 5.0ms (58.9% of total)
ival-sub: 1.0ms (11.8% of total)
ival-div: 1.0ms (11.8% of total)
ival-add: 1.0ms (11.8% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series9.0ms (0.7%)

Memory
-25.3MiB live, 12.4MiB allocated
Counts
12 → 25
Calls
Call 1
Inputs
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
#s(approx (* x x) (*.f64 y #s(literal 4 binary64)))
(*.f64 y #s(literal 4 binary64))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(*.f64 x x)
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) #s(approx (+ (* x x) (* (* y 4) y)) #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64)))))
#s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64)))
#s(approx (+ (* x x) (* (* y 4) y)) #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))))
Outputs
-1
(- (* 1/2 (/ (pow x 2) (pow y 2))) 1)
(- (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 4))) (* 1/2 (/ 1 (pow y 2))))) 1)
(- (* (pow x 2) (+ (* (pow x 2) (- (* 1/32 (/ (pow x 2) (pow y 6))) (* 1/8 (/ 1 (pow y 4))))) (* 1/2 (/ 1 (pow y 2))))) 1)
(pow x 2)
(* 4 (pow y 2))
(+ (* 4 (pow y 2)) (pow x 2))
(* -4 (pow y 2))
(- (pow x 2) (* 4 (pow y 2)))
1
(- (+ 1 (* -4 (/ (pow y 2) (pow x 2)))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* -4 (/ (pow y 2) (pow x 2))))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (pow y 2) (pow x 2))) (* 16 (/ (* (pow y 4) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 6))))) (+ (* 4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* 4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* 4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* -4 (/ (pow y 2) (pow x 2)))))
(+ 1 (* -8 (/ (pow y 2) (pow x 2))))
(+ 1 (* (pow y 2) (- (* 32 (/ (pow y 2) (pow x 4))) (* 8 (/ 1 (pow x 2))))))
(+ 1 (* (pow y 2) (- (* (pow y 2) (+ (* -128 (/ (pow y 2) (pow x 6))) (* 32 (/ 1 (pow x 4))))) (* 8 (/ 1 (pow x 2))))))
(* 4 y)
(+ (* -4 (pow y 2)) (pow x 2))
(- (* 1/4 (/ (pow x 2) (pow y 2))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* -1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* 1/16 (/ (* (pow x 4) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 6))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (+ (* -1/4 (/ (pow x 2) (pow y 2))) (* 1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))))))
(* (pow y 2) (+ 4 (/ (pow x 2) (pow y 2))))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 4))
Calls

6 calls:

TimeVariablePointExpression
5.0ms
y
@-inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (+ (* x x) (* (* y 4) y)) (* x x) (* (* y 4) y) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y)))
1.0ms
y
@inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (+ (* x x) (* (* y 4) y)) (* x x) (* (* y 4) y) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y)))
1.0ms
x
@inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (+ (* x x) (* (* y 4) y)) (* x x) (* (* y 4) y) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y)))
1.0ms
x
@-inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (+ (* x x) (* (* y 4) y)) (* x x) (* (* y 4) y) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y)))
1.0ms
y
@0
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (+ (* x x) (* (* y 4) y)) (* x x) (* (* y 4) y) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y)))

simplify1.0ms (0.1%)

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

rewrite1.0ms (0.1%)

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

eval3.0ms (0.2%)

Memory
8.2MiB live, 8.2MiB allocated
Compiler

Compiled 1 144 to 40 computations (96.5% saved)

prune7.0ms (0.5%)

Memory
16.7MiB live, 16.7MiB allocated
Pruning

9 alts after pruning (0 fresh and 9 done)

PrunedKeptTotal
New32032
Fresh000
Picked044
Done055
Total32941
Accuracy
75.8%
Counts
41 → 9
Alt Table
Click to see full alt table
StatusAccuracyProgram
49.3%
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
3.4%
(/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
51.2%
(/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) #s(approx (+ (* x x) (* (* y 4) y)) #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64)))))
4.1%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
3.4%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
2.9%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
2.9%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
3.4%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
3.4%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
Compiler

Compiled 490 to 146 computations (70.2% saved)

regimes19.0ms (1.4%)

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

5 calls:

6.0ms
(*.f64 x x)
3.0ms
x
3.0ms
y
3.0ms
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
2.0ms
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
Results
AccuracySegmentsBranch
73.0%3x
63.0%4y
75.3%2(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
73.0%2(*.f64 x x)
62.0%3(*.f64 (*.f64 y #s(literal 4 binary64)) y)
Compiler

Compiled 29 to 21 computations (27.6% saved)

regimes20.0ms (1.4%)

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

5 calls:

8.0ms
x
3.0ms
y
3.0ms
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
3.0ms
(*.f64 x x)
2.0ms
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
Results
AccuracySegmentsBranch
51.2%1y
51.2%1(*.f64 (*.f64 y #s(literal 4 binary64)) y)
51.2%1x
51.2%1(*.f64 x x)
51.2%1(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
Compiler

Compiled 29 to 21 computations (27.6% saved)

regimes15.0ms (1.1%)

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

5 calls:

5.0ms
x
2.0ms
y
2.0ms
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
2.0ms
(*.f64 x x)
2.0ms
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
Results
AccuracySegmentsBranch
4.1%1x
4.1%1y
4.1%1(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
4.1%1(*.f64 x x)
4.1%1(*.f64 (*.f64 y #s(literal 4 binary64)) y)
Compiler

Compiled 29 to 21 computations (27.6% saved)

regimes11.0ms (0.7%)

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

5 calls:

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

Compiled 29 to 21 computations (27.6% saved)

regimes12.0ms (0.9%)

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

5 calls:

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

Compiled 29 to 21 computations (27.6% saved)

regimes6.0ms (0.4%)

Memory
16.0MiB live, 16.0MiB allocated
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

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

5 calls:

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

Compiled 29 to 21 computations (27.6% saved)

bsearch0.0ms (0%)

Memory
0.8MiB live, 0.8MiB allocated
Algorithm
left-value
Steps
TimeLeftRight
0.0ms
0.9999999999999996
1.0
Compiler

Compiled 22 to 14 computations (36.4% saved)

simplify8.0ms (0.5%)

Memory
-26.2MiB live, 12.5MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(if (<=.f64 (/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))) #s(literal 2251799813685247/2251799813685248 binary64)) (/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))) (/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) #s(approx (+ (* x x) (* (* y 4) y)) #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))))))
(/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) #s(approx (+ (* x x) (* (* y 4) y)) #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64)))))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
Outputs
(if (<=.f64 (/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))) #s(literal 2251799813685247/2251799813685248 binary64)) (/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))) (/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) #s(approx (+ (* x x) (* (* y 4) y)) #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))))))
(/.f64 #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64))) #s(approx (+ (* x x) (* (* y 4) y)) #s(approx (- (* x x) (* (* y 4) y)) (*.f64 y #s(literal 4 binary64)))))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))

soundness1.0ms (0.1%)

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

Compiled 227 to 28 computations (87.7% saved)

preprocess49.0ms (3.5%)

Memory
19.7MiB live, 100.0MiB allocated
Compiler

Compiled 654 to 120 computations (81.7% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...