Linear.Projection:perspective from linear-1.19.1.3, B

Time bar (total: 930.0ms)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated

analyze14.0ms (1.5%)

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

Compiled 11 to 9 computations (18.2% saved)

sample659.0ms (70.9%)

Memory
43.6MiB live, 1 054.3MiB allocated
Samples
419.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 250.0ms
ival-mult: 132.0ms (52.9% of total)
ival-div: 57.0ms (22.8% of total)
ival-sub: 45.0ms (18% of total)
ival-true: 7.0ms (2.8% of total)
exact: 5.0ms (2% of total)
ival-assert: 4.0ms (1.6% of total)
Bogosity

explain79.0ms (8.5%)

Memory
-34.8MiB live, 139.3MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
600-4(-1.3012690575034303e-9 -5.206179116616449e-305)(/.f64 (*.f64 (*.f64 x #s(literal 2 binary64)) y) (-.f64 x y))
00-0-(*.f64 x #s(literal 2 binary64))
00-0-#s(literal 2 binary64)
00-0-y
00-0-(-.f64 x y)
00-0-(*.f64 (*.f64 x #s(literal 2 binary64)) y)
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
/.f64(/.f64 (*.f64 (*.f64 x #s(literal 2 binary64)) y) (-.f64 x y))u/n320
(*.f64 (*.f64 x #s(literal 2 binary64)) y)underflow32
/.f64(/.f64 (*.f64 (*.f64 x #s(literal 2 binary64)) y) (-.f64 x y))o/n240
(*.f64 (*.f64 x #s(literal 2 binary64)) y)overflow24
Confusion
Predicted +Predicted -
+564
-0196
Precision
1.0
Recall
0.9333333333333333
Confusion?
Predicted +Predicted MaybePredicted -
+5604
-00196
Precision?
1.0
Recall?
0.9333333333333333
Freqs
test
numberfreq
0200
156
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
30.0ms512×0valid
Compiler

Compiled 82 to 32 computations (61% saved)

Precisions
Click to see histograms. Total time spent on operations: 14.0ms
ival-mult: 7.0ms (50.5% of total)
ival-sub: 3.0ms (21.6% of total)
ival-div: 3.0ms (21.6% of total)
ival-true: 1.0ms (7.2% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess3.0ms (0.3%)

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

Compiled 9 to 7 computations (22.2% saved)

eval0.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

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

Compiled 9 to 7 computations (22.2% saved)

simplify0.0ms (0%)

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

Found 4 expressions of interest:

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

localize22.0ms (2.4%)

Memory
-28.4MiB live, 54.5MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(-.f64 x y)
accuracy0.0
(*.f64 (*.f64 x #s(literal 2 binary64)) y)
accuracy0.0
(*.f64 x #s(literal 2 binary64))
accuracy13.531712497605094
(/.f64 (*.f64 (*.f64 x #s(literal 2 binary64)) y) (-.f64 x y))
Samples
15.0ms256×0valid
Compiler

Compiled 48 to 16 computations (66.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 7.0ms
ival-mult: 3.0ms (43.7% of total)
ival-div: 2.0ms (29.1% of total)
ival-sub: 1.0ms (14.6% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series8.0ms (0.8%)

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

6 calls:

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

simplify1.0ms (0.1%)

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

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
5.0MiB live, 5.0MiB allocated
Compiler

Compiled 96 to 16 computations (83.3% saved)

prune3.0ms (0.3%)

Memory
-32.1MiB live, 6.3MiB allocated
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New538
Fresh000
Picked011
Done000
Total549
Accuracy
78.9%
Counts
9 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
78.9%
(/.f64 (*.f64 (*.f64 x #s(literal 2 binary64)) y) (-.f64 x y))
3.2%
#s(approx (/ (* (* x 2) y) (- x y)) (-.f64 x y))
4.4%
#s(approx (/ (* (* x 2) y) (- x y)) (*.f64 (*.f64 x #s(literal 2 binary64)) y))
3.5%
#s(approx (/ (* (* x 2) y) (- x y)) (*.f64 x #s(literal 2 binary64)))
Compiler

Compiled 50 to 37 computations (26% saved)

simplify1.0ms (0.1%)

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

Found 7 expressions of interest:

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

localize22.0ms (2.4%)

Memory
24.8MiB live, 64.2MiB allocated
Localize:

Found 7 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(-.f64 x y)
accuracy61.953240163069836
#s(approx (/ (* (* x 2) y) (- x y)) (-.f64 x y))
accuracy0.0
(*.f64 (*.f64 x #s(literal 2 binary64)) y)
accuracy0.0
(*.f64 x #s(literal 2 binary64))
accuracy61.186827157992695
#s(approx (/ (* (* x 2) y) (- x y)) (*.f64 (*.f64 x #s(literal 2 binary64)) y))
accuracy0.0
(*.f64 x #s(literal 2 binary64))
accuracy61.790488500999494
#s(approx (/ (* (* x 2) y) (- x y)) (*.f64 x #s(literal 2 binary64)))
Samples
16.0ms256×0valid
Compiler

Compiled 112 to 23 computations (79.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 7.0ms
ival-mult: 3.0ms (44.8% of total)
ival-div: 2.0ms (29.9% of total)
ival-sub: 1.0ms (14.9% 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.5%)

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

6 calls:

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

simplify1.0ms (0.1%)

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

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
3.5MiB live, 3.5MiB allocated
Compiler

Compiled 220 to 22 computations (90% saved)

prune3.0ms (0.3%)

Memory
8.5MiB live, 8.5MiB allocated
Pruning

5 alts after pruning (1 fresh and 4 done)

PrunedKeptTotal
New11112
Fresh000
Picked033
Done011
Total11516
Accuracy
79.0%
Counts
16 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
78.9%
(/.f64 (*.f64 (*.f64 x #s(literal 2 binary64)) y) (-.f64 x y))
3.2%
#s(approx (/ (* (* x 2) y) (- x y)) (-.f64 x y))
4.4%
#s(approx (/ (* (* x 2) y) (- x y)) (*.f64 (*.f64 x #s(literal 2 binary64)) y))
3.7%
#s(approx (/ (* (* x 2) y) (- x y)) (*.f64 #s(approx (* x 2) #s(approx (/ (* (* x 2) y) (- x y)) (-.f64 x y))) y))
3.5%
#s(approx (/ (* (* x 2) y) (- x y)) (*.f64 x #s(literal 2 binary64)))
Compiler

Compiled 79 to 49 computations (38% saved)

simplify0.0ms (0%)

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

Found 4 expressions of interest:

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

localize21.0ms (2.2%)

Memory
12.5MiB live, 54.9MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 #s(approx (* x 2) #s(approx (/ (* (* x 2) y) (- x y)) (-.f64 x y))) y)
accuracy61.186827157992695
#s(approx (/ (* (* x 2) y) (- x y)) (*.f64 #s(approx (* x 2) #s(approx (/ (* (* x 2) y) (- x y)) (-.f64 x y))) y))
accuracy61.790488500999494
#s(approx (* x 2) #s(approx (/ (* (* x 2) y) (- x y)) (-.f64 x y)))
accuracy61.953240163069836
#s(approx (/ (* (* x 2) y) (- x y)) (-.f64 x y))
Samples
15.0ms256×0valid
Compiler

Compiled 116 to 21 computations (81.9% saved)

Precisions
Click to see histograms. Total time spent on operations: 7.0ms
ival-mult: 3.0ms (44.6% of total)
ival-div: 2.0ms (29.7% of total)
ival-sub: 1.0ms (14.9% 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.4%)

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

6 calls:

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

simplify0.0ms (0%)

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

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
1.9MiB live, 1.9MiB allocated
Compiler

Compiled 205 to 15 computations (92.7% saved)

prune3.0ms (0.4%)

Memory
6.3MiB live, 6.3MiB allocated
Pruning

5 alts after pruning (0 fresh and 5 done)

PrunedKeptTotal
New707
Fresh000
Picked011
Done044
Total7512
Accuracy
79.0%
Counts
12 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
78.9%
(/.f64 (*.f64 (*.f64 x #s(literal 2 binary64)) y) (-.f64 x y))
3.2%
#s(approx (/ (* (* x 2) y) (- x y)) (-.f64 x y))
4.4%
#s(approx (/ (* (* x 2) y) (- x y)) (*.f64 (*.f64 x #s(literal 2 binary64)) y))
3.7%
#s(approx (/ (* (* x 2) y) (- x y)) (*.f64 #s(approx (* x 2) #s(approx (/ (* (* x 2) y) (- x y)) (-.f64 x y))) y))
3.5%
#s(approx (/ (* (* x 2) y) (- x y)) (*.f64 x #s(literal 2 binary64)))
Compiler

Compiled 158 to 67 computations (57.6% saved)

regimes7.0ms (0.8%)

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

3 calls:

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

Compiled 11 to 11 computations (0% saved)

regimes9.0ms (0.9%)

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

3 calls:

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

Compiled 11 to 11 computations (0% saved)

regimes6.0ms (0.6%)

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

3 calls:

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

Compiled 11 to 11 computations (0% saved)

regimes5.0ms (0.5%)

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

3 calls:

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

Compiled 11 to 11 computations (0% saved)

regimes4.0ms (0.4%)

Memory
9.5MiB live, 9.5MiB allocated
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

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

3 calls:

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

Compiled 11 to 11 computations (0% saved)

simplify7.0ms (0.7%)

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

soundness1.0ms (0.1%)

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

Compiled 79 to 18 computations (77.2% saved)

preprocess39.0ms (4.2%)

Memory
16.8MiB live, 55.9MiB allocated
Compiler

Compiled 246 to 82 computations (66.7% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...