Examples.Basics.BasicTests:f2 from sbv-4.4

Time bar (total: 2.9s)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated; 0ms collecting garbage

analyze0.0ms (0%)

Memory
0.6MiB live, 0.6MiB allocated; 0ms collecting garbage
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 9 to 7 computations (22.2% saved)

sample907.0ms (31.7%)

Memory
23.9MiB live, 1 189.9MiB allocated; 267ms collecting garbage
Samples
551.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 228.0ms
ival-mult: 169.0ms (74.1% of total)
ival-sub: 47.0ms (20.6% of total)
ival-true: 6.0ms (2.6% of total)
ival-assert: 4.0ms (1.8% of total)
adjust: 2.0ms (0.9% of total)
Bogosity

explain154.0ms (5.4%)

Memory
-14.0MiB live, 141.7MiB allocated; 34ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
110-0-(-.f64 (*.f64 x x) (*.f64 y y))
00-0-y
00-0-(*.f64 y y)
00-0-(*.f64 x x)
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
-.f64(-.f64 (*.f64 x x) (*.f64 y y))nan-rescue110
(*.f64 x x)overflow56
(*.f64 y y)overflow51
Confusion
Predicted +Predicted -
+110
-0245
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+1100
-00245
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0245
111
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
119.0ms512×0valid
Compiler

Compiled 41 to 19 computations (53.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 10.0ms
ival-mult: 7.0ms (68.2% of total)
ival-sub: 2.0ms (19.5% of total)
ival-true: 1.0ms (9.7% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess160.0ms (5.6%)

Memory
-1.7MiB live, 90.8MiB allocated; 13ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01338
14835
221535
337135
490935
5192335
6292635
7326935
8334735
9334735
10354635
057
087
1217
2817
32237
44037
58367
613857
720697
828987
932087
1032707
1132707
1233487
033487
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(-.f64 (*.f64 x x) (*.f64 y y))
Outputs
(-.f64 (*.f64 x x) (*.f64 y y))
(*.f64 (-.f64 x y) (+.f64 y x))
Symmetry

(abs y)

(abs x)

Compiler

Compiled 7 to 5 computations (28.6% saved)

eval0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated; 0ms collecting garbage
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.5MiB live, 0.5MiB allocated; 0ms collecting garbage
Alt Table
Click to see full alt table
StatusAccuracyProgram
95.7%
(-.f64 (*.f64 x x) (*.f64 y y))
Compiler

Compiled 7 to 5 computations (28.6% saved)

simplify96.0ms (3.3%)

Memory
19.8MiB live, 62.5MiB allocated; 16ms collecting garbage
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 y y)
cost-diff0
(*.f64 x x)
cost-diff0
(-.f64 (*.f64 x x) (*.f64 y y))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0515
0815
12115
28115
322315
440315
583615
6138515
7206915
8289815
9320815
10327015
11327015
12334815
0334815
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(-.f64 (*.f64 x x) (*.f64 y y))
(*.f64 x x)
x
(*.f64 y y)
y
Outputs
(-.f64 (*.f64 x x) (*.f64 y y))
(*.f64 (-.f64 x y) (+.f64 y x))
(*.f64 x x)
x
(*.f64 y y)
y

localize60.0ms (2.1%)

Memory
0.7MiB live, 51.9MiB allocated; 17ms collecting garbage
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 y y)
accuracy0.0
(*.f64 x x)
accuracy2.347650057490618
(-.f64 (*.f64 x x) (*.f64 y y))
Samples
56.0ms256×0valid
Compiler

Compiled 17 to 7 computations (58.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 42.0ms
ival-mult: 40.0ms (95.6% of total)
ival-sub: 1.0ms (2.4% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series8.0ms (0.3%)

Memory
-35.7MiB live, 9.6MiB allocated; 11ms collecting garbage
Counts
3 → 7
Calls
Call 1
Inputs
(-.f64 (*.f64 x x) (*.f64 y y))
(*.f64 x x)
(*.f64 y y)
Outputs
(* -1 (pow y 2))
(- (pow x 2) (pow y 2))
(pow x 2)
(* (pow x 2) (+ 1 (* -1 (/ (pow y 2) (pow x 2)))))
(+ (* -1 (pow y 2)) (pow x 2))
(pow y 2)
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 1))
Calls

6 calls:

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

simplify221.0ms (7.7%)

Memory
41.8MiB live, 311.0MiB allocated; 48ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01744
14044
215244
394344
4554144
0845843
Stop Event
iter limit
node limit
Counts
7 → 7
Calls
Call 1
Inputs
(* -1 (pow y 2))
(- (pow x 2) (pow y 2))
(pow x 2)
(* (pow x 2) (+ 1 (* -1 (/ (pow y 2) (pow x 2)))))
(+ (* -1 (pow y 2)) (pow x 2))
(pow y 2)
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 1))
Outputs
(* -1 (pow y 2))
(*.f64 (neg.f64 y) y)
(- (pow x 2) (pow y 2))
(fma.f64 (neg.f64 y) y (*.f64 x x))
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 (* -1 (/ (pow y 2) (pow x 2)))))
(fma.f64 (neg.f64 y) y (*.f64 x x))
(+ (* -1 (pow y 2)) (pow x 2))
(fma.f64 (neg.f64 y) y (*.f64 x x))
(pow y 2)
(*.f64 y y)
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 1))
(*.f64 (fma.f64 (/.f64 (/.f64 x y) y) x #s(literal -1 binary64)) (*.f64 y y))

rewrite98.0ms (3.4%)

Memory
-3.9MiB live, 148.0MiB allocated; 27ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0513
0813
13713
032913
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
3 → 73
Calls
Call 1
Inputs
(-.f64 (*.f64 x x) (*.f64 y y))
(*.f64 x x)
(*.f64 y y)
Outputs
(*.f64 (+.f64 (neg.f64 x) (neg.f64 y)) (-.f64 (neg.f64 x) (neg.f64 y)))
(*.f64 (+.f64 (neg.f64 x) (fabs.f64 y)) (-.f64 (neg.f64 x) (fabs.f64 y)))
(*.f64 (+.f64 (neg.f64 x) y) (-.f64 (neg.f64 x) y))
(*.f64 (+.f64 (fabs.f64 x) (neg.f64 y)) (-.f64 (fabs.f64 x) (neg.f64 y)))
(*.f64 (+.f64 (fabs.f64 x) (fabs.f64 y)) (-.f64 (fabs.f64 x) (fabs.f64 y)))
(*.f64 (+.f64 (fabs.f64 x) y) (-.f64 (fabs.f64 x) y))
(*.f64 (+.f64 x (neg.f64 y)) (-.f64 x (neg.f64 y)))
(*.f64 (+.f64 x (fabs.f64 y)) (-.f64 x (fabs.f64 y)))
(*.f64 (-.f64 x y) (+.f64 y x))
(*.f64 (+.f64 y x) (-.f64 x y))
(/.f64 (+.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 (*.f64 (neg.f64 y) y) #s(literal 3 binary64))) (+.f64 (pow.f64 x #s(literal 4 binary64)) (-.f64 (pow.f64 y #s(literal 4 binary64)) (*.f64 (*.f64 x x) (*.f64 (neg.f64 y) y)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64)))) (neg.f64 (fma.f64 y y (*.f64 x x))))
(/.f64 (neg.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 6 binary64)))) (neg.f64 (fma.f64 (*.f64 y y) (fma.f64 y y (*.f64 x x)) (pow.f64 x #s(literal 4 binary64)))))
(/.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (fma.f64 y y (*.f64 x x)))
(/.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 6 binary64))) (fma.f64 (*.f64 y y) (fma.f64 y y (*.f64 x x)) (pow.f64 x #s(literal 4 binary64))))
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) (*.f64 (neg.f64 (neg.f64 y)) (neg.f64 y)))
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) (*.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 y)))
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) (*.f64 (neg.f64 y) y))
(fma.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) (*.f64 (neg.f64 (neg.f64 y)) (neg.f64 y)))
(fma.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) (*.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 y)))
(fma.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) (*.f64 (neg.f64 y) y))
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) (*.f64 (neg.f64 (neg.f64 y)) (neg.f64 y)))
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) (*.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 y)))
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) (*.f64 (neg.f64 y) y))
(fma.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)) (*.f64 (neg.f64 (neg.f64 y)) (neg.f64 y)))
(fma.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)) (*.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 y)))
(fma.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)) (*.f64 (neg.f64 y) y))
(fma.f64 (neg.f64 y) y (*.f64 x x))
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 (neg.f64 (neg.f64 y)) (neg.f64 y)))
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 y)))
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 (neg.f64 y) y))
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 (neg.f64 (neg.f64 y)) (neg.f64 y)))
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 y)))
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 (neg.f64 y) y))
(fma.f64 y (neg.f64 y) (*.f64 x x))
(fma.f64 x x (*.f64 (neg.f64 (neg.f64 y)) (neg.f64 y)))
(fma.f64 x x (*.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 y)))
(fma.f64 x x (*.f64 (neg.f64 y) y))
(-.f64 (/.f64 (pow.f64 x #s(literal 4 binary64)) (fma.f64 y y (*.f64 x x))) (/.f64 (pow.f64 y #s(literal 4 binary64)) (fma.f64 y y (*.f64 x x))))
(-.f64 (/.f64 (pow.f64 x #s(literal 6 binary64)) (fma.f64 (*.f64 y y) (fma.f64 y y (*.f64 x x)) (pow.f64 x #s(literal 4 binary64)))) (/.f64 (pow.f64 y #s(literal 6 binary64)) (fma.f64 (*.f64 y y) (fma.f64 y y (*.f64 x x)) (pow.f64 x #s(literal 4 binary64)))))
(-.f64 (*.f64 x x) (*.f64 (neg.f64 (neg.f64 y)) y))
(-.f64 (*.f64 x x) (*.f64 y y))
(+.f64 (*.f64 (neg.f64 y) y) (*.f64 x x))
(+.f64 (*.f64 x x) (*.f64 (neg.f64 (neg.f64 y)) (neg.f64 y)))
(+.f64 (*.f64 x x) (*.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 y)))
(+.f64 (*.f64 x x) (*.f64 (neg.f64 y) y))
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(*.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)))
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)))
(*.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(*.f64 x x)
(pow.f64 (neg.f64 x) #s(literal 2 binary64))
(pow.f64 (fabs.f64 x) #s(literal 2 binary64))
(pow.f64 x #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 x) x))
(neg.f64 (*.f64 x (neg.f64 x)))
(fabs.f64 (*.f64 x x))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
(*.f64 (pow.f64 y #s(literal 1 binary64)) (pow.f64 y #s(literal 1 binary64)))
(*.f64 (neg.f64 (neg.f64 y)) (neg.f64 (neg.f64 y)))
(*.f64 (neg.f64 (fabs.f64 y)) (neg.f64 (fabs.f64 y)))
(*.f64 (fabs.f64 (fabs.f64 y)) (fabs.f64 (fabs.f64 y)))
(*.f64 (neg.f64 y) (neg.f64 y))
(*.f64 (fabs.f64 y) (fabs.f64 y))
(*.f64 y y)
(pow.f64 (neg.f64 y) #s(literal 2 binary64))
(pow.f64 (fabs.f64 y) #s(literal 2 binary64))
(pow.f64 y #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 y) y))
(fabs.f64 (*.f64 y y))
(exp.f64 (*.f64 (log.f64 y) #s(literal 2 binary64)))

eval9.0ms (0.3%)

Memory
-19.2MiB live, 28.1MiB allocated; 2ms collecting garbage
Compiler

Compiled 866 to 181 computations (79.1% saved)

prune2.0ms (0.1%)

Memory
10.0MiB live, 10.0MiB allocated; 0ms collecting garbage
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New76278
Fresh000
Picked101
Done000
Total77279
Accuracy
100.0%
Counts
79 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (-.f64 x y) (+.f64 y x))
51.3%
#s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y))
Compiler

Compiled 19 to 13 computations (31.6% saved)

simplify86.0ms (3%)

Memory
-30.3MiB live, 77.8MiB allocated; 24ms collecting garbage
Localize:

Found 6 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f64 y x)
cost-diff0
(-.f64 x y)
cost-diff0
(*.f64 (-.f64 x y) (+.f64 y x))
cost-diff0
(neg.f64 y)
cost-diff0
(*.f64 (neg.f64 y) y)
cost-diff0
#s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01134
01634
13534
210134
324834
443134
586134
6139934
7208334
8291334
9322334
10328534
11328534
12336334
0336334
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
#s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y))
(*.f64 (neg.f64 y) y)
(neg.f64 y)
y
(*.f64 (-.f64 x y) (+.f64 y x))
(-.f64 x y)
x
y
(+.f64 y x)
Outputs
#s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y))
(*.f64 (neg.f64 y) y)
(neg.f64 y)
y
(*.f64 (-.f64 x y) (+.f64 y x))
(*.f64 (+.f64 y x) (-.f64 x y))
(-.f64 x y)
x
y
(+.f64 y x)

localize69.0ms (2.4%)

Memory
5.1MiB live, 52.1MiB allocated; 2ms collecting garbage
Localize:

Found 6 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(-.f64 x y)
accuracy0.0
(+.f64 y x)
accuracy0.0
(*.f64 (-.f64 x y) (+.f64 y x))
accuracy0.0
(*.f64 (neg.f64 y) y)
accuracy0.0
(neg.f64 y)
accuracy31.15762438484035
#s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y))
Samples
18.0ms256×0valid
Compiler

Compiled 31 to 12 computations (61.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 11.0ms
ival-mult: 6.0ms (54.4% of total)
ival-sub: 2.0ms (18.1% of total)
ival-add: 1.0ms (9.1% of total)
ival-neg: 1.0ms (9.1% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series6.0ms (0.2%)

Memory
12.5MiB live, 12.5MiB allocated; 0ms collecting garbage
Counts
6 → 31
Calls
Call 1
Inputs
#s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y))
(*.f64 (neg.f64 y) y)
(neg.f64 y)
(*.f64 (-.f64 x y) (+.f64 y x))
(-.f64 x y)
(+.f64 y x)
Outputs
(* -1 (pow y 2))
(- (pow x 2) (pow y 2))
(+ (* -1 (pow y 2)) (* x (+ y (* -1 y))))
(+ (* -1 (pow y 2)) (* x (+ x (+ y (* -1 y)))))
(* -1 y)
(- x y)
y
(+ x y)
(pow x 2)
(* (pow x 2) (+ 1 (* -1 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (+ (* -1 (/ y x)) (/ y x))))
(* (pow x 2) (+ 1 (+ (* -1 (/ y x)) (+ (* -1 (/ (pow y 2) (pow x 2))) (/ y x)))))
x
(* x (+ 1 (* -1 (/ y x))))
(* x (+ 1 (/ y x)))
(* (pow x 2) (+ 1 (* -1 (/ (+ (* -1 (+ y (* -1 y))) (/ (pow y 2) x)) x))))
(* -1 (* x (- (/ y x) 1)))
(* -1 (* x (- (* -1 (/ y x)) 1)))
(+ (* -1 (pow y 2)) (pow x 2))
(+ (* y (+ x (* -1 x))) (pow x 2))
(+ (* y (+ x (+ (* -1 x) (* -1 y)))) (pow x 2))
(+ x (* -1 y))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 1))
(* (pow y 2) (- (+ (* -1 (/ x y)) (/ x y)) 1))
(* (pow y 2) (- (+ (* -1 (/ x y)) (+ (/ x y) (/ (pow x 2) (pow y 2)))) 1))
(* y (- (/ x y) 1))
(* y (+ 1 (/ x y)))
(* (pow y 2) (- (* -1 (/ (+ x (* -1 x)) y)) 1))
(* (pow y 2) (- (* -1 (/ (+ x (+ (* -1 x) (* -1 (/ (pow x 2) y)))) y)) 1))
(* -1 (* y (+ 1 (* -1 (/ x y)))))
(* -1 (* y (- (* -1 (/ x y)) 1)))
Calls

6 calls:

TimeVariablePointExpression
1.0ms
y
@-inf
((- (* x x) (* y y)) (* (neg y) y) (neg y) (* (- x y) (+ y x)) (- x y) (+ y x))
1.0ms
y
@inf
((- (* x x) (* y y)) (* (neg y) y) (neg y) (* (- x y) (+ y x)) (- x y) (+ y x))
1.0ms
x
@inf
((- (* x x) (* y y)) (* (neg y) y) (neg y) (* (- x y) (+ y x)) (- x y) (+ y x))
1.0ms
x
@-inf
((- (* x x) (* y y)) (* (neg y) y) (neg y) (* (- x y) (+ y x)) (- x y) (+ y x))
1.0ms
y
@0
((- (* x x) (* y y)) (* (neg y) y) (neg y) (* (- x y) (+ y x)) (- x y) (+ y x))

simplify221.0ms (7.7%)

Memory
-10.7MiB live, 271.9MiB allocated; 41ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
092205
1299200
21122200
08075193
Stop Event
iter limit
node limit
Counts
31 → 29
Calls
Call 1
Inputs
(* -1 (pow y 2))
(- (pow x 2) (pow y 2))
(+ (* -1 (pow y 2)) (* x (+ y (* -1 y))))
(+ (* -1 (pow y 2)) (* x (+ x (+ y (* -1 y)))))
(* -1 y)
(- x y)
y
(+ x y)
(pow x 2)
(* (pow x 2) (+ 1 (* -1 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (+ (* -1 (/ y x)) (/ y x))))
(* (pow x 2) (+ 1 (+ (* -1 (/ y x)) (+ (* -1 (/ (pow y 2) (pow x 2))) (/ y x)))))
x
(* x (+ 1 (* -1 (/ y x))))
(* x (+ 1 (/ y x)))
(* (pow x 2) (+ 1 (* -1 (/ (+ (* -1 (+ y (* -1 y))) (/ (pow y 2) x)) x))))
(* -1 (* x (- (/ y x) 1)))
(* -1 (* x (- (* -1 (/ y x)) 1)))
(+ (* -1 (pow y 2)) (pow x 2))
(+ (* y (+ x (* -1 x))) (pow x 2))
(+ (* y (+ x (+ (* -1 x) (* -1 y)))) (pow x 2))
(+ x (* -1 y))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 1))
(* (pow y 2) (- (+ (* -1 (/ x y)) (/ x y)) 1))
(* (pow y 2) (- (+ (* -1 (/ x y)) (+ (/ x y) (/ (pow x 2) (pow y 2)))) 1))
(* y (- (/ x y) 1))
(* y (+ 1 (/ x y)))
(* (pow y 2) (- (* -1 (/ (+ x (* -1 x)) y)) 1))
(* (pow y 2) (- (* -1 (/ (+ x (+ (* -1 x) (* -1 (/ (pow x 2) y)))) y)) 1))
(* -1 (* y (+ 1 (* -1 (/ x y)))))
(* -1 (* y (- (* -1 (/ x y)) 1)))
Outputs
(* -1 (pow y 2))
(*.f64 (neg.f64 y) y)
(- (pow x 2) (pow y 2))
(fma.f64 (neg.f64 y) y (*.f64 x x))
(+ (* -1 (pow y 2)) (* x (+ y (* -1 y))))
(*.f64 (neg.f64 y) y)
(+ (* -1 (pow y 2)) (* x (+ x (+ y (* -1 y)))))
(fma.f64 (neg.f64 y) y (*.f64 x x))
(* -1 y)
(neg.f64 y)
(- x y)
(-.f64 x y)
y
(+ x y)
(+.f64 y x)
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 (* -1 (/ (pow y 2) (pow x 2)))))
(*.f64 (neg.f64 (*.f64 x (fma.f64 (/.f64 y x) (/.f64 y x) #s(literal -1 binary64)))) x)
(* (pow x 2) (+ 1 (+ (* -1 (/ y x)) (/ y x))))
(*.f64 x x)
(* (pow x 2) (+ 1 (+ (* -1 (/ y x)) (+ (* -1 (/ (pow y 2) (pow x 2))) (/ y x)))))
(*.f64 (neg.f64 (*.f64 x (fma.f64 (/.f64 y x) (/.f64 y x) #s(literal -1 binary64)))) x)
x
(* x (+ 1 (* -1 (/ y x))))
(*.f64 (-.f64 #s(literal 1 binary64) (/.f64 y x)) x)
(* x (+ 1 (/ y x)))
(fma.f64 (/.f64 y x) x x)
(* (pow x 2) (+ 1 (* -1 (/ (+ (* -1 (+ y (* -1 y))) (/ (pow y 2) x)) x))))
(*.f64 (neg.f64 (*.f64 x (fma.f64 (/.f64 y x) (/.f64 y x) #s(literal -1 binary64)))) x)
(* -1 (* x (- (/ y x) 1)))
(*.f64 (-.f64 #s(literal 1 binary64) (/.f64 y x)) x)
(* -1 (* x (- (* -1 (/ y x)) 1)))
(fma.f64 (/.f64 y x) x x)
(+ (* -1 (pow y 2)) (pow x 2))
(fma.f64 (neg.f64 y) y (*.f64 x x))
(+ (* y (+ x (* -1 x))) (pow x 2))
(*.f64 x x)
(+ (* y (+ x (+ (* -1 x) (* -1 y)))) (pow x 2))
(fma.f64 (neg.f64 y) y (*.f64 x x))
(+ x (* -1 y))
(-.f64 x y)
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 1))
(*.f64 (fma.f64 (/.f64 (/.f64 x y) y) x #s(literal -1 binary64)) (*.f64 y y))
(* (pow y 2) (- (+ (* -1 (/ x y)) (/ x y)) 1))
(*.f64 (neg.f64 y) y)
(* (pow y 2) (- (+ (* -1 (/ x y)) (+ (/ x y) (/ (pow x 2) (pow y 2)))) 1))
(*.f64 (fma.f64 (/.f64 (/.f64 x y) y) x #s(literal -1 binary64)) (*.f64 y y))
(* y (- (/ x y) 1))
(*.f64 (-.f64 (/.f64 x y) #s(literal 1 binary64)) y)
(* y (+ 1 (/ x y)))
(fma.f64 (/.f64 x y) y y)
(* (pow y 2) (- (* -1 (/ (+ x (* -1 x)) y)) 1))
(*.f64 (neg.f64 y) y)
(* (pow y 2) (- (* -1 (/ (+ x (+ (* -1 x) (* -1 (/ (pow x 2) y)))) y)) 1))
(*.f64 (fma.f64 (/.f64 (/.f64 x y) y) x #s(literal -1 binary64)) (*.f64 y y))
(* -1 (* y (+ 1 (* -1 (/ x y)))))
(*.f64 (-.f64 (/.f64 x y) #s(literal 1 binary64)) y)
(* -1 (* y (- (* -1 (/ x y)) 1)))
(fma.f64 (/.f64 x y) y y)

rewrite48.0ms (1.7%)

Memory
41.4MiB live, 83.8MiB allocated; 7ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01131
01631
16831
061031
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
6 → 94
Calls
Call 1
Inputs
#s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y))
(*.f64 (neg.f64 y) y)
(neg.f64 y)
(*.f64 (-.f64 x y) (+.f64 y x))
(-.f64 x y)
(+.f64 y x)
Outputs
#s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y))
(*.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 y))
(*.f64 (neg.f64 (neg.f64 y)) (neg.f64 y))
(*.f64 (fabs.f64 y) (neg.f64 (fabs.f64 y)))
(*.f64 (neg.f64 y) (neg.f64 (neg.f64 y)))
(*.f64 (neg.f64 y) y)
(*.f64 y (neg.f64 y))
(neg.f64 (*.f64 y y))
(neg.f64 y)
(*.f64 (+.f64 (neg.f64 x) (fabs.f64 y)) (-.f64 (neg.f64 x) (fabs.f64 y)))
(*.f64 (+.f64 (neg.f64 x) (neg.f64 y)) (-.f64 (neg.f64 x) (neg.f64 y)))
(*.f64 (+.f64 (neg.f64 x) y) (-.f64 (neg.f64 x) y))
(*.f64 (+.f64 (fabs.f64 x) (fabs.f64 y)) (-.f64 (fabs.f64 x) (fabs.f64 y)))
(*.f64 (+.f64 (fabs.f64 x) (neg.f64 y)) (-.f64 (fabs.f64 x) (neg.f64 y)))
(*.f64 (+.f64 (fabs.f64 x) y) (-.f64 (fabs.f64 x) y))
(*.f64 (+.f64 x (fabs.f64 y)) (-.f64 x (fabs.f64 y)))
(*.f64 (+.f64 x (neg.f64 y)) (-.f64 x (neg.f64 y)))
(*.f64 (+.f64 y x) (-.f64 x y))
(*.f64 (-.f64 x y) (+.f64 y x))
(/.f64 (*.f64 (*.f64 (+.f64 y x) (-.f64 y x)) (-.f64 x y)) (-.f64 y x))
(/.f64 (*.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (-.f64 x y)) (fma.f64 (-.f64 x y) x (*.f64 y y)))
(/.f64 (*.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (+.f64 y x)) (fma.f64 y (+.f64 y x) (*.f64 x x)))
(/.f64 (*.f64 (*.f64 (+.f64 y x) (-.f64 x y)) (+.f64 y x)) (+.f64 y x))
(/.f64 (*.f64 (+.f64 y x) (-.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64)))) (fma.f64 y (+.f64 y x) (*.f64 x x)))
(/.f64 (*.f64 (+.f64 y x) (*.f64 (+.f64 y x) (-.f64 x y))) (+.f64 y x))
(/.f64 (*.f64 (-.f64 x y) (*.f64 (+.f64 y x) (-.f64 y x))) (-.f64 y x))
(/.f64 (*.f64 (-.f64 x y) (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64)))) (fma.f64 (-.f64 x y) x (*.f64 y y)))
(/.f64 (-.f64 (*.f64 (*.f64 (-.f64 x y) y) (*.f64 (-.f64 x y) y)) (*.f64 (*.f64 (-.f64 x y) x) (*.f64 (-.f64 x y) x))) (-.f64 (*.f64 (-.f64 x y) y) (*.f64 (-.f64 x y) x)))
(/.f64 (+.f64 (pow.f64 (*.f64 (-.f64 x y) y) #s(literal 3 binary64)) (pow.f64 (*.f64 (-.f64 x y) x) #s(literal 3 binary64))) (fma.f64 (*.f64 (-.f64 x y) y) (*.f64 (-.f64 x y) y) (-.f64 (*.f64 (*.f64 (-.f64 x y) x) (*.f64 (-.f64 x y) x)) (*.f64 (*.f64 (-.f64 x y) y) (*.f64 (-.f64 x y) x)))))
(/.f64 (+.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 (*.f64 (neg.f64 y) y) #s(literal 3 binary64))) (+.f64 (pow.f64 x #s(literal 4 binary64)) (-.f64 (pow.f64 y #s(literal 4 binary64)) (*.f64 (*.f64 x x) (*.f64 (neg.f64 y) y)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64)))) (neg.f64 (fma.f64 y y (*.f64 x x))))
(/.f64 (neg.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 6 binary64)))) (neg.f64 (fma.f64 (*.f64 y y) (fma.f64 y y (*.f64 x x)) (pow.f64 x #s(literal 4 binary64)))))
(/.f64 (*.f64 (*.f64 (+.f64 y x) (-.f64 y x)) (-.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64)))) (*.f64 (-.f64 y x) (fma.f64 y (+.f64 y x) (*.f64 x x))))
(/.f64 (*.f64 (*.f64 (+.f64 y x) (-.f64 y x)) (*.f64 (+.f64 y x) (-.f64 x y))) (*.f64 (-.f64 y x) (+.f64 y x)))
(/.f64 (*.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (-.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64)))) (*.f64 (fma.f64 (-.f64 x y) x (*.f64 y y)) (fma.f64 y (+.f64 y x) (*.f64 x x))))
(/.f64 (*.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (*.f64 (+.f64 y x) (-.f64 x y))) (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))))
(/.f64 (*.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (*.f64 (+.f64 y x) (-.f64 y x))) (*.f64 (fma.f64 y (+.f64 y x) (*.f64 x x)) (-.f64 y x)))
(/.f64 (*.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64)))) (*.f64 (fma.f64 y (+.f64 y x) (*.f64 x x)) (fma.f64 (-.f64 x y) x (*.f64 y y))))
(/.f64 (*.f64 (*.f64 (+.f64 y x) (-.f64 x y)) (*.f64 (+.f64 y x) (-.f64 y x))) (*.f64 (+.f64 y x) (-.f64 y x)))
(/.f64 (*.f64 (*.f64 (+.f64 y x) (-.f64 x y)) (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64)))) (*.f64 (+.f64 y x) (fma.f64 (-.f64 x y) x (*.f64 y y))))
(/.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (fma.f64 y y (*.f64 x x)))
(/.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 6 binary64))) (fma.f64 (*.f64 y y) (fma.f64 y y (*.f64 x x)) (pow.f64 x #s(literal 4 binary64))))
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) (*.f64 (neg.f64 y) y))
(fma.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) (*.f64 (neg.f64 y) y))
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) (*.f64 (neg.f64 y) y))
(fma.f64 (neg.f64 (fabs.f64 y)) (fabs.f64 y) (*.f64 x x))
(fma.f64 (neg.f64 (neg.f64 y)) (neg.f64 y) (*.f64 x x))
(fma.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)) (*.f64 (neg.f64 y) y))
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 (neg.f64 y) y))
(fma.f64 (fabs.f64 y) (neg.f64 (fabs.f64 y)) (*.f64 x x))
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 (neg.f64 y) y))
(fma.f64 (-.f64 x y) y (*.f64 (-.f64 x y) x))
(fma.f64 (-.f64 x y) x (*.f64 (-.f64 x y) y))
(fma.f64 (neg.f64 y) (neg.f64 (neg.f64 y)) (*.f64 x x))
(fma.f64 (neg.f64 y) y (*.f64 x x))
(fma.f64 y (-.f64 x y) (*.f64 (-.f64 x y) x))
(fma.f64 y (neg.f64 y) (*.f64 x x))
(fma.f64 x (-.f64 x y) (*.f64 (-.f64 x y) y))
(fma.f64 x x (*.f64 (neg.f64 y) y))
(-.f64 (/.f64 (pow.f64 x #s(literal 4 binary64)) (fma.f64 y y (*.f64 x x))) (/.f64 (pow.f64 y #s(literal 4 binary64)) (fma.f64 y y (*.f64 x x))))
(-.f64 (/.f64 (pow.f64 x #s(literal 6 binary64)) (fma.f64 (*.f64 y y) (fma.f64 y y (*.f64 x x)) (pow.f64 x #s(literal 4 binary64)))) (/.f64 (pow.f64 y #s(literal 6 binary64)) (fma.f64 (*.f64 y y) (fma.f64 y y (*.f64 x x)) (pow.f64 x #s(literal 4 binary64)))))
(-.f64 (*.f64 (-.f64 x y) y) (*.f64 (neg.f64 x) (-.f64 x y)))
(-.f64 (*.f64 (-.f64 x y) y) (*.f64 (neg.f64 (-.f64 x y)) x))
(-.f64 (*.f64 x x) (*.f64 (neg.f64 (neg.f64 y)) y))
(-.f64 (*.f64 x x) (*.f64 y y))
(+.f64 (*.f64 (-.f64 x y) x) (*.f64 (-.f64 x y) y))
(+.f64 (*.f64 (-.f64 x y) y) (*.f64 (-.f64 x y) x))
(+.f64 (*.f64 (neg.f64 y) y) (*.f64 x x))
(+.f64 (*.f64 x x) (*.f64 (neg.f64 y) y))
(*.f64 (/.f64 (*.f64 (+.f64 y x) (-.f64 x y)) (*.f64 (+.f64 y x) (-.f64 y x))) (-.f64 y x))
(*.f64 (/.f64 (*.f64 (+.f64 y x) (-.f64 x y)) (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64)))) (fma.f64 (-.f64 x y) x (*.f64 y y)))
(*.f64 (+.f64 y x) (/.f64 (-.f64 x y) (+.f64 y x)))
(*.f64 (-.f64 x y) (/.f64 (+.f64 y x) (+.f64 y x)))
(/.f64 (neg.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64)))) (neg.f64 (fma.f64 y (+.f64 y x) (*.f64 x x))))
(/.f64 (neg.f64 (*.f64 (+.f64 y x) (-.f64 x y))) (neg.f64 (+.f64 y x)))
(/.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) (*.f64 (fma.f64 y y (*.f64 x x)) (+.f64 y x)))
(/.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (fma.f64 y (+.f64 y x) (*.f64 x x)))
(/.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 y #s(literal 6 binary64))) (*.f64 (fma.f64 (*.f64 y y) (fma.f64 y y (*.f64 x x)) (pow.f64 x #s(literal 4 binary64))) (+.f64 y x)))
(/.f64 (*.f64 (+.f64 y x) (-.f64 x y)) (+.f64 y x))
(-.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 y (+.f64 y x) (*.f64 x x))) (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 y (+.f64 y x) (*.f64 x x))))
(-.f64 (/.f64 (*.f64 x x) (+.f64 y x)) (/.f64 (*.f64 y y) (+.f64 y x)))
(-.f64 x y)
(+.f64 (/.f64 (*.f64 (-.f64 x y) y) (+.f64 y x)) (/.f64 (*.f64 (-.f64 x y) x) (+.f64 y x)))
(+.f64 (/.f64 (*.f64 x x) (+.f64 y x)) (/.f64 (*.f64 (neg.f64 y) y) (+.f64 y x)))
(/.f64 (neg.f64 (*.f64 (+.f64 y x) (-.f64 y x))) (neg.f64 (-.f64 y x)))
(/.f64 (neg.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64)))) (neg.f64 (fma.f64 (-.f64 x y) x (*.f64 y y))))
(/.f64 (*.f64 (+.f64 y x) (-.f64 y x)) (-.f64 y x))
(/.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (fma.f64 x x (-.f64 (*.f64 y y) (*.f64 y x))))
(/.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 y #s(literal 3 binary64))) (fma.f64 (-.f64 x y) x (*.f64 y y)))
(/.f64 (*.f64 (+.f64 y x) (-.f64 x y)) (-.f64 x y))
(-.f64 (/.f64 (*.f64 y y) (-.f64 y x)) (/.f64 (*.f64 x x) (-.f64 y x)))
(+.f64 (/.f64 (pow.f64 y #s(literal 3 binary64)) (fma.f64 (-.f64 x y) x (*.f64 y y))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 x y) x (*.f64 y y))))
(+.f64 y x)
(+.f64 x y)

eval24.0ms (0.8%)

Memory
-5.1MiB live, 30.8MiB allocated; 19ms collecting garbage
Compiler

Compiled 1 761 to 296 computations (83.2% saved)

prune4.0ms (0.1%)

Memory
11.4MiB live, 11.4MiB allocated; 0ms collecting garbage
Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New1091110
Fresh000
Picked022
Done000
Total1093112
Accuracy
100.0%
Counts
112 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (-.f64 x y) (+.f64 y x))
51.3%
#s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y))
59.3%
#s(approx (- (* x x) (* y y)) (*.f64 x x))
Compiler

Compiled 30 to 20 computations (33.3% saved)

simplify108.0ms (3.8%)

Memory
1.0MiB live, 101.7MiB allocated; 53ms collecting garbage
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 x x)
cost-diff0
#s(approx (- (* x x) (* y y)) (*.f64 x x))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0715
0815
12115
28115
322315
440115
582815
6137915
7206315
8290015
9321015
10327215
11327215
12335015
0335015
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
#s(approx (- (* x x) (* y y)) (*.f64 x x))
(*.f64 x x)
x
Outputs
#s(approx (- (* x x) (* y y)) (*.f64 x x))
(*.f64 x x)
x

localize28.0ms (1%)

Memory
-7.7MiB live, 35.2MiB allocated; 16ms collecting garbage
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 x x)
accuracy26.0509222637776
#s(approx (- (* x x) (* y y)) (*.f64 x x))
Samples
24.0ms256×0valid
Compiler

Compiled 13 to 7 computations (46.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 18.0ms
ival-mult: 17.0ms (92.6% of total)
ival-sub: 1.0ms (5.4% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series2.0ms (0.1%)

Memory
4.8MiB live, 4.8MiB allocated; 0ms collecting garbage
Counts
2 → 6
Calls
Call 1
Inputs
#s(approx (- (* x x) (* y y)) (*.f64 x x))
(*.f64 x x)
Outputs
(* -1 (pow y 2))
(- (pow x 2) (pow y 2))
(pow x 2)
(* (pow x 2) (+ 1 (* -1 (/ (pow y 2) (pow x 2)))))
(+ (* -1 (pow y 2)) (pow x 2))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 1))
Calls

6 calls:

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

simplify252.0ms (8.8%)

Memory
-11.1MiB live, 187.3MiB allocated; 137ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01741
14041
215241
394341
4554141
0845840
Stop Event
iter limit
node limit
Counts
6 → 6
Calls
Call 1
Inputs
(* -1 (pow y 2))
(- (pow x 2) (pow y 2))
(pow x 2)
(* (pow x 2) (+ 1 (* -1 (/ (pow y 2) (pow x 2)))))
(+ (* -1 (pow y 2)) (pow x 2))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 1))
Outputs
(* -1 (pow y 2))
(*.f64 (neg.f64 y) y)
(- (pow x 2) (pow y 2))
(fma.f64 (neg.f64 y) y (*.f64 x x))
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 (* -1 (/ (pow y 2) (pow x 2)))))
(fma.f64 (neg.f64 y) y (*.f64 x x))
(+ (* -1 (pow y 2)) (pow x 2))
(fma.f64 (neg.f64 y) y (*.f64 x x))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 1))
(*.f64 (fma.f64 (/.f64 (/.f64 x y) y) x #s(literal -1 binary64)) (*.f64 y y))

rewrite39.0ms (1.4%)

Memory
22.8MiB live, 69.5MiB allocated; 3ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0714
0814
13714
032914
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
2 → 15
Calls
Call 1
Inputs
#s(approx (- (* x x) (* y y)) (*.f64 x x))
(*.f64 x x)
Outputs
#s(approx (- (* x x) (* y y)) (*.f64 x x))
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(*.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)))
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)))
(*.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(*.f64 x x)
(pow.f64 (neg.f64 x) #s(literal 2 binary64))
(pow.f64 (fabs.f64 x) #s(literal 2 binary64))
(pow.f64 x #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 x) x))
(neg.f64 (*.f64 x (neg.f64 x)))
(fabs.f64 (*.f64 x x))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))

eval39.0ms (1.4%)

Memory
-40.0MiB live, 6.9MiB allocated; 2ms collecting garbage
Compiler

Compiled 256 to 59 computations (77% saved)

prune2.0ms (0.1%)

Memory
4.6MiB live, 4.6MiB allocated; 0ms collecting garbage
Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New19019
Fresh000
Picked011
Done022
Total19322
Accuracy
100.0%
Counts
22 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (-.f64 x y) (+.f64 y x))
51.3%
#s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y))
59.3%
#s(approx (- (* x x) (* y y)) (*.f64 x x))
Compiler

Compiled 67 to 35 computations (47.8% saved)

regimes9.0ms (0.3%)

Memory
19.4MiB live, 19.4MiB allocated; 0ms collecting garbage
Counts
4 → 1
Calls
Call 1
Inputs
#s(approx (- (* x x) (* y y)) (*.f64 x x))
#s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y))
(*.f64 (-.f64 x y) (+.f64 y x))
(-.f64 (*.f64 x x) (*.f64 y y))
Outputs
(*.f64 (-.f64 x y) (+.f64 y x))
Calls

5 calls:

2.0ms
y
2.0ms
x
2.0ms
(-.f64 (*.f64 x x) (*.f64 y y))
2.0ms
(*.f64 x x)
1.0ms
(*.f64 y y)
Results
AccuracySegmentsBranch
100.0%1(*.f64 y y)
100.0%1(*.f64 x x)
100.0%1(-.f64 (*.f64 x x) (*.f64 y y))
100.0%1x
100.0%1y
Compiler

Compiled 15 to 15 computations (0% saved)

regimes6.0ms (0.2%)

Memory
18.7MiB live, 18.7MiB allocated; 0ms collecting garbage
Counts
2 → 2
Calls
Call 1
Inputs
#s(approx (- (* x x) (* y y)) (*.f64 x x))
#s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y))
Outputs
#s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y))
#s(approx (- (* x x) (* y y)) (*.f64 x x))
Calls

5 calls:

1.0ms
x
1.0ms
y
1.0ms
(*.f64 y y)
1.0ms
(-.f64 (*.f64 x x) (*.f64 y y))
1.0ms
(*.f64 x x)
Results
AccuracySegmentsBranch
77.7%2(*.f64 y y)
79.1%2(*.f64 x x)
98.6%2(-.f64 (*.f64 x x) (*.f64 y y))
79.1%2x
77.7%2y
Compiler

Compiled 15 to 15 computations (0% saved)

regimes36.0ms (1.2%)

Memory
-26.6MiB live, 28.4MiB allocated; 4ms collecting garbage
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

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

5 calls:

32.0ms
(-.f64 (*.f64 x x) (*.f64 y y))
1.0ms
x
1.0ms
y
1.0ms
(*.f64 x x)
1.0ms
(*.f64 y y)
Results
AccuracySegmentsBranch
59.3%1(*.f64 y y)
59.3%1y
59.3%1(*.f64 x x)
59.3%1x
59.3%1(-.f64 (*.f64 x x) (*.f64 y y))
Compiler

Compiled 15 to 15 computations (0% saved)

bsearch0.0ms (0%)

Memory
1.8MiB live, 1.8MiB allocated; 0ms collecting garbage
Algorithm
left-value
Steps
TimeLeftRight
0.0ms
-1.097e-321
0.0
Compiler

Compiled 10 to 10 computations (0% saved)

simplify63.0ms (2.2%)

Memory
-8.8MiB live, 80.2MiB allocated; 9ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01851
13951
210451
324751
442551
586051
6140951
7209351
8292451
9323451
10329651
11329651
12337451
Stop Event
saturated
Calls
Call 1
Inputs
(*.f64 (-.f64 x y) (+.f64 y x))
(if (<=.f64 (-.f64 (*.f64 x x) (*.f64 y y)) #s(literal -101/101201126653655309176247673359458653524778324882071059178450679013715169783997673445980191850718562247593538932158405955694904368692896738433506699970369254960758712138283180682233453871046608170619883839236372534281003741712346349309051677824579778170405028256179384776166707307615251266093163754323003131653853870546747392 binary64)) #s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y)) #s(approx (- (* x x) (* y y)) (*.f64 x x)))
#s(approx (- (* x x) (* y y)) (*.f64 x x))
Outputs
(*.f64 (-.f64 x y) (+.f64 y x))
(if (<=.f64 (-.f64 (*.f64 x x) (*.f64 y y)) #s(literal -101/101201126653655309176247673359458653524778324882071059178450679013715169783997673445980191850718562247593538932158405955694904368692896738433506699970369254960758712138283180682233453871046608170619883839236372534281003741712346349309051677824579778170405028256179384776166707307615251266093163754323003131653853870546747392 binary64)) #s(approx (- (* x x) (* y y)) (*.f64 (neg.f64 y) y)) #s(approx (- (* x x) (* y y)) (*.f64 x x)))
#s(approx (- (* x x) (* y y)) (*.f64 x x))

derivations89.0ms (3.1%)

Memory
4.5MiB live, 102.8MiB allocated; 10ms collecting garbage
Stop Event
done
Compiler

Compiled 51 to 18 computations (64.7% saved)

preprocess19.0ms (0.7%)

Memory
25.2MiB live, 67.5MiB allocated; 5ms collecting garbage
Remove

(abs x)

(abs y)

Compiler

Compiled 144 to 66 computations (54.2% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated; 0ms collecting garbage

Profiling

Loading profile data...