Difference of squares

Time bar (total: 1.8s)

start0.0ms (0%)

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

analyze0.0ms (0%)

Memory
0.1MiB live, 0.1MiB 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)

sample728.0ms (40.4%)

Memory
-5.7MiB live, 855.8MiB allocated; 210ms collecting garbage
Samples
496.0ms8 255×0valid
0.0ms1valid
Precisions
Click to see histograms. Total time spent on operations: 234.0ms
ival-mult: 151.0ms (64.5% of total)
ival-sub: 73.0ms (31.2% of total)
ival-true: 5.0ms (2.1% of total)
ival-assert: 3.0ms (1.3% of total)
adjust: 2.0ms (0.9% of total)
Bogosity

explain60.0ms (3.3%)

Memory
17.8MiB live, 122.4MiB allocated; 7ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
120-0-(-.f64 (*.f64 a a) (*.f64 b b))
00-0-(*.f64 a a)
00-0-a
00-0-b
00-0-(*.f64 b b)
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
-.f64(-.f64 (*.f64 a a) (*.f64 b b))nan-rescue120
(*.f64 a a)overflow45
(*.f64 b b)overflow66
Confusion
Predicted +Predicted -
+120
-0244
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+1200
-00244
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0244
112
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
25.0ms512×0valid
Compiler

Compiled 41 to 19 computations (53.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 12.0ms
ival-mult: 10.0ms (80.6% of total)
ival-sub: 2.0ms (16.1% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess198.0ms (11%)

Memory
-12.3MiB live, 174.7MiB allocated; 25ms 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 a a) (*.f64 b b))
Outputs
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (-.f64 a b) (+.f64 b a))
Symmetry

(abs b)

(abs a)

Compiler

Compiled 7 to 5 computations (28.6% saved)

eval0.0ms (0%)

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

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

Memory
1.7MiB live, 1.7MiB allocated; 0ms collecting garbage
Alt Table
Click to see full alt table
StatusAccuracyProgram
95.3%
(-.f64 (*.f64 a a) (*.f64 b b))
Compiler

Compiled 7 to 5 computations (28.6% saved)

series4.0ms (0.2%)

Memory
9.4MiB live, 9.4MiB allocated; 0ms collecting garbage
Counts
5 → 10
Calls
Call 1
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 a a)
a
(*.f64 b b)
b
Outputs
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* -1 (pow b 2))))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (- (pow a 2) (pow b 2))))
#s(approx (* a a) #s(hole binary64 (pow a 2)))
#s(approx a #s(hole binary64 a))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (pow a 2)))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (+ (* -1 (pow b 2)) (pow a 2))))
#s(approx (* b b) #s(hole binary64 (pow b 2)))
#s(approx b #s(hole binary64 b))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))))
Calls

6 calls:

TimeVariablePointExpression
1.0ms
a
@inf
((- (* a a) (* b b)) (* a a) a (* b b) b)
1.0ms
a
@-inf
((- (* a a) (* b b)) (* a a) a (* b b) b)
1.0ms
b
@inf
((- (* a a) (* b b)) (* a a) a (* b b) b)
1.0ms
b
@-inf
((- (* a a) (* b b)) (* a a) a (* b b) b)
1.0ms
a
@0
((- (* a a) (* b b)) (* a a) a (* b b) b)

simplify147.0ms (8.2%)

Memory
-21.9MiB live, 172.8MiB allocated; 21ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
030116
167115
2326115
32583115
08390114
Stop Event
iter limit
node limit
Counts
10 → 10
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* -1 (pow b 2))))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (- (pow a 2) (pow b 2))))
#s(approx (* a a) #s(hole binary64 (pow a 2)))
#s(approx a #s(hole binary64 a))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (pow a 2)))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (+ (* -1 (pow b 2)) (pow a 2))))
#s(approx (* b b) #s(hole binary64 (pow b 2)))
#s(approx b #s(hole binary64 b))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))))
Outputs
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* -1 (pow b 2))))
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (- (pow a 2) (pow b 2))))
#s(approx (- (* a a) (* b b)) (*.f64 (-.f64 a b) (+.f64 b a)))
#s(approx (* a a) #s(hole binary64 (pow a 2)))
#s(approx (* a a) (*.f64 a a))
#s(approx a #s(hole binary64 a))
#s(approx a a)
#s(approx (- (* a a) (* b b)) #s(hole binary64 (pow a 2)))
#s(approx (- (* a a) (* b b)) (*.f64 a a))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))))
#s(approx (- (* a a) (* b b)) (*.f64 (*.f64 (fma.f64 (/.f64 b a) (/.f64 b a) #s(literal -1 binary64)) a) (neg.f64 a)))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (+ (* -1 (pow b 2)) (pow a 2))))
#s(approx (- (* a a) (* b b)) (*.f64 (-.f64 a b) (+.f64 b a)))
#s(approx (* b b) #s(hole binary64 (pow b 2)))
#s(approx (* b b) (*.f64 b b))
#s(approx b #s(hole binary64 b))
#s(approx b b)
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))))
#s(approx (- (* a a) (* b b)) (*.f64 (fma.f64 (/.f64 (/.f64 a b) b) a #s(literal -1 binary64)) (*.f64 b b)))

rewrite45.0ms (2.5%)

Memory
29.5MiB live, 74.8MiB allocated; 4ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0515
0815
13715
032915
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
5 → 75
Calls
Call 1
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 a a)
a
(*.f64 b b)
b
Outputs
(*.f64 (+.f64 (neg.f64 a) (neg.f64 b)) (-.f64 (neg.f64 a) (neg.f64 b)))
(*.f64 (+.f64 (neg.f64 a) (fabs.f64 b)) (-.f64 (neg.f64 a) (fabs.f64 b)))
(*.f64 (+.f64 (neg.f64 a) b) (-.f64 (neg.f64 a) b))
(*.f64 (+.f64 (fabs.f64 a) (neg.f64 b)) (-.f64 (fabs.f64 a) (neg.f64 b)))
(*.f64 (+.f64 (fabs.f64 a) (fabs.f64 b)) (-.f64 (fabs.f64 a) (fabs.f64 b)))
(*.f64 (+.f64 (fabs.f64 a) b) (-.f64 (fabs.f64 a) b))
(*.f64 (+.f64 a (neg.f64 b)) (-.f64 a (neg.f64 b)))
(*.f64 (+.f64 a (fabs.f64 b)) (-.f64 a (fabs.f64 b)))
(*.f64 (-.f64 a b) (+.f64 b a))
(*.f64 (+.f64 b a) (-.f64 a b))
(/.f64 (+.f64 (pow.f64 a #s(literal 6 binary64)) (pow.f64 (*.f64 (neg.f64 b) b) #s(literal 3 binary64))) (+.f64 (pow.f64 a #s(literal 4 binary64)) (-.f64 (pow.f64 b #s(literal 4 binary64)) (*.f64 (*.f64 a a) (*.f64 (neg.f64 b) b)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 a #s(literal 4 binary64)) (pow.f64 b #s(literal 4 binary64)))) (neg.f64 (fma.f64 b b (*.f64 a a))))
(/.f64 (neg.f64 (-.f64 (pow.f64 a #s(literal 6 binary64)) (pow.f64 b #s(literal 6 binary64)))) (neg.f64 (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 a a)) (pow.f64 a #s(literal 4 binary64)))))
(/.f64 (-.f64 (pow.f64 a #s(literal 4 binary64)) (pow.f64 b #s(literal 4 binary64))) (fma.f64 b b (*.f64 a a)))
(/.f64 (-.f64 (pow.f64 a #s(literal 6 binary64)) (pow.f64 b #s(literal 6 binary64))) (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 a a)) (pow.f64 a #s(literal 4 binary64))))
(fma.f64 (pow.f64 a #s(literal 1 binary64)) (pow.f64 a #s(literal 1 binary64)) (*.f64 (neg.f64 (neg.f64 b)) (neg.f64 b)))
(fma.f64 (pow.f64 a #s(literal 1 binary64)) (pow.f64 a #s(literal 1 binary64)) (*.f64 (neg.f64 (fabs.f64 b)) (fabs.f64 b)))
(fma.f64 (pow.f64 a #s(literal 1 binary64)) (pow.f64 a #s(literal 1 binary64)) (*.f64 (neg.f64 b) b))
(fma.f64 (neg.f64 (neg.f64 a)) (neg.f64 (neg.f64 a)) (*.f64 (neg.f64 (neg.f64 b)) (neg.f64 b)))
(fma.f64 (neg.f64 (neg.f64 a)) (neg.f64 (neg.f64 a)) (*.f64 (neg.f64 (fabs.f64 b)) (fabs.f64 b)))
(fma.f64 (neg.f64 (neg.f64 a)) (neg.f64 (neg.f64 a)) (*.f64 (neg.f64 b) b))
(fma.f64 (neg.f64 (fabs.f64 a)) (neg.f64 (fabs.f64 a)) (*.f64 (neg.f64 (neg.f64 b)) (neg.f64 b)))
(fma.f64 (neg.f64 (fabs.f64 a)) (neg.f64 (fabs.f64 a)) (*.f64 (neg.f64 (fabs.f64 b)) (fabs.f64 b)))
(fma.f64 (neg.f64 (fabs.f64 a)) (neg.f64 (fabs.f64 a)) (*.f64 (neg.f64 b) b))
(fma.f64 (fabs.f64 (fabs.f64 a)) (fabs.f64 (fabs.f64 a)) (*.f64 (neg.f64 (neg.f64 b)) (neg.f64 b)))
(fma.f64 (fabs.f64 (fabs.f64 a)) (fabs.f64 (fabs.f64 a)) (*.f64 (neg.f64 (fabs.f64 b)) (fabs.f64 b)))
(fma.f64 (fabs.f64 (fabs.f64 a)) (fabs.f64 (fabs.f64 a)) (*.f64 (neg.f64 b) b))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(fma.f64 (neg.f64 a) (neg.f64 a) (*.f64 (neg.f64 (neg.f64 b)) (neg.f64 b)))
(fma.f64 (neg.f64 a) (neg.f64 a) (*.f64 (neg.f64 (fabs.f64 b)) (fabs.f64 b)))
(fma.f64 (neg.f64 a) (neg.f64 a) (*.f64 (neg.f64 b) b))
(fma.f64 (fabs.f64 a) (fabs.f64 a) (*.f64 (neg.f64 (neg.f64 b)) (neg.f64 b)))
(fma.f64 (fabs.f64 a) (fabs.f64 a) (*.f64 (neg.f64 (fabs.f64 b)) (fabs.f64 b)))
(fma.f64 (fabs.f64 a) (fabs.f64 a) (*.f64 (neg.f64 b) b))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(fma.f64 a a (*.f64 (neg.f64 (neg.f64 b)) (neg.f64 b)))
(fma.f64 a a (*.f64 (neg.f64 (fabs.f64 b)) (fabs.f64 b)))
(fma.f64 a a (*.f64 (neg.f64 b) b))
(-.f64 (/.f64 (pow.f64 a #s(literal 4 binary64)) (fma.f64 b b (*.f64 a a))) (/.f64 (pow.f64 b #s(literal 4 binary64)) (fma.f64 b b (*.f64 a a))))
(-.f64 (/.f64 (pow.f64 a #s(literal 6 binary64)) (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 a a)) (pow.f64 a #s(literal 4 binary64)))) (/.f64 (pow.f64 b #s(literal 6 binary64)) (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 a a)) (pow.f64 a #s(literal 4 binary64)))))
(-.f64 (*.f64 a a) (*.f64 (neg.f64 (neg.f64 b)) b))
(-.f64 (*.f64 a a) (*.f64 b b))
(+.f64 (*.f64 (neg.f64 b) b) (*.f64 a a))
(+.f64 (*.f64 a a) (*.f64 (neg.f64 (neg.f64 b)) (neg.f64 b)))
(+.f64 (*.f64 a a) (*.f64 (neg.f64 (fabs.f64 b)) (fabs.f64 b)))
(+.f64 (*.f64 a a) (*.f64 (neg.f64 b) b))
(*.f64 (pow.f64 a #s(literal 1 binary64)) (pow.f64 a #s(literal 1 binary64)))
(*.f64 (neg.f64 (neg.f64 a)) (neg.f64 (neg.f64 a)))
(*.f64 (neg.f64 (fabs.f64 a)) (neg.f64 (fabs.f64 a)))
(*.f64 (fabs.f64 (fabs.f64 a)) (fabs.f64 (fabs.f64 a)))
(*.f64 (neg.f64 a) (neg.f64 a))
(*.f64 (fabs.f64 a) (fabs.f64 a))
(*.f64 a a)
(pow.f64 (neg.f64 a) #s(literal 2 binary64))
(pow.f64 (fabs.f64 a) #s(literal 2 binary64))
(pow.f64 a #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 a) a))
(neg.f64 (*.f64 a (neg.f64 a)))
(fabs.f64 (*.f64 a a))
(exp.f64 (*.f64 (log.f64 a) #s(literal 2 binary64)))
a
(*.f64 (pow.f64 b #s(literal 1 binary64)) (pow.f64 b #s(literal 1 binary64)))
(*.f64 (neg.f64 (neg.f64 b)) (neg.f64 (neg.f64 b)))
(*.f64 (neg.f64 (fabs.f64 b)) (neg.f64 (fabs.f64 b)))
(*.f64 (fabs.f64 (fabs.f64 b)) (fabs.f64 (fabs.f64 b)))
(*.f64 (neg.f64 b) (neg.f64 b))
(*.f64 (fabs.f64 b) (fabs.f64 b))
(*.f64 b b)
(pow.f64 (neg.f64 b) #s(literal 2 binary64))
(pow.f64 (fabs.f64 b) #s(literal 2 binary64))
(pow.f64 b #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 b) b))
(fabs.f64 (*.f64 b b))
(exp.f64 (*.f64 (log.f64 b) #s(literal 2 binary64)))
b

eval41.0ms (2.3%)

Memory
-24.8MiB live, 21.5MiB allocated; 3ms collecting garbage
Compiler

Compiled 962 to 197 computations (79.5% saved)

prune3.0ms (0.1%)

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

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New85388
Fresh000
Picked101
Done000
Total86389
Accuracy
100.0%
Counts
89 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (-.f64 a b) (+.f64 b a))
54.4%
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
52.7%
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Compiler

Compiled 30 to 20 computations (33.3% saved)

series7.0ms (0.4%)

Memory
9.5MiB live, 9.5MiB allocated; 0ms collecting garbage
Counts
10 → 39
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
(*.f64 a a)
a
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
(*.f64 (neg.f64 b) b)
(neg.f64 b)
b
(*.f64 (-.f64 a b) (+.f64 b a))
(-.f64 a b)
(+.f64 b a)
Outputs
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* -1 (pow b 2))))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (- (pow a 2) (pow b 2))))
#s(approx (* a a) #s(hole binary64 (pow a 2)))
#s(approx a #s(hole binary64 a))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* -1 (pow b 2))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (+ (* -1 (pow b 2)) (* a (+ b (* -1 b))))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (+ (* -1 (pow b 2)) (* a (+ a (+ b (* -1 b)))))))
#s(approx (- a b) #s(hole binary64 (* -1 b)))
#s(approx (- a b) #s(hole binary64 (- a b)))
#s(approx (+ b a) #s(hole binary64 b))
#s(approx (+ b a) #s(hole binary64 (+ a b)))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (pow a 2)))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (pow a 2)))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (/ b a))))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (+ (* -1 (/ (pow b 2) (pow a 2))) (/ b a)))))))
#s(approx (- a b) #s(hole binary64 a))
#s(approx (- a b) #s(hole binary64 (* a (+ 1 (* -1 (/ b a))))))
#s(approx (+ b a) #s(hole binary64 a))
#s(approx (+ b a) #s(hole binary64 (* a (+ 1 (/ b a)))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow a 2) (+ 1 (* -1 (/ (+ (* -1 (+ b (* -1 b))) (/ (pow b 2) a)) a))))))
#s(approx (- a b) #s(hole binary64 (* -1 (* a (- (/ b a) 1)))))
#s(approx (+ b a) #s(hole binary64 (* -1 (* a (- (* -1 (/ b a)) 1)))))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (+ (* -1 (pow b 2)) (pow a 2))))
#s(approx (* (neg b) b) #s(hole binary64 (* -1 (pow b 2))))
#s(approx (neg b) #s(hole binary64 (* -1 b)))
#s(approx b #s(hole binary64 b))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (+ (* b (+ a (* -1 a))) (pow a 2))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (+ (* b (+ a (+ (* -1 a) (* -1 b)))) (pow a 2))))
#s(approx (- a b) #s(hole binary64 (+ a (* -1 b))))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow b 2) (- (+ (* -1 (/ a b)) (/ a b)) 1))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow b 2) (- (+ (* -1 (/ a b)) (+ (/ a b) (/ (pow a 2) (pow b 2)))) 1))))
#s(approx (- a b) #s(hole binary64 (* b (- (/ a b) 1))))
#s(approx (+ b a) #s(hole binary64 (* b (+ 1 (/ a b)))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow b 2) (- (* -1 (/ (+ a (* -1 a)) b)) 1))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow b 2) (- (* -1 (/ (+ a (+ (* -1 a) (* -1 (/ (pow a 2) b)))) b)) 1))))
#s(approx (- a b) #s(hole binary64 (* -1 (* b (+ 1 (* -1 (/ a b)))))))
#s(approx (+ b a) #s(hole binary64 (* -1 (* b (- (* -1 (/ a b)) 1)))))
Calls

6 calls:

TimeVariablePointExpression
2.0ms
b
@-inf
((- (* a a) (* b b)) (* a a) a (- (* a a) (* b b)) (* (neg b) b) (neg b) b (* (- a b) (+ b a)) (- a b) (+ b a))
1.0ms
a
@-inf
((- (* a a) (* b b)) (* a a) a (- (* a a) (* b b)) (* (neg b) b) (neg b) b (* (- a b) (+ b a)) (- a b) (+ b a))
1.0ms
b
@inf
((- (* a a) (* b b)) (* a a) a (- (* a a) (* b b)) (* (neg b) b) (neg b) b (* (- a b) (+ b a)) (- a b) (+ b a))
1.0ms
a
@inf
((- (* a a) (* b b)) (* a a) a (- (* a a) (* b b)) (* (neg b) b) (neg b) b (* (- a b) (+ b a)) (- a b) (+ b a))
1.0ms
a
@0
((- (* a a) (* b b)) (* a a) a (- (* a a) (* b b)) (* (neg b) b) (neg b) b (* (- a b) (+ b a)) (- a b) (+ b a))

simplify189.0ms (10.5%)

Memory
8.8MiB live, 281.3MiB allocated; 65ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0138452
1371447
21433447
08366440
Stop Event
iter limit
node limit
Counts
39 → 39
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* -1 (pow b 2))))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (- (pow a 2) (pow b 2))))
#s(approx (* a a) #s(hole binary64 (pow a 2)))
#s(approx a #s(hole binary64 a))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* -1 (pow b 2))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (+ (* -1 (pow b 2)) (* a (+ b (* -1 b))))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (+ (* -1 (pow b 2)) (* a (+ a (+ b (* -1 b)))))))
#s(approx (- a b) #s(hole binary64 (* -1 b)))
#s(approx (- a b) #s(hole binary64 (- a b)))
#s(approx (+ b a) #s(hole binary64 b))
#s(approx (+ b a) #s(hole binary64 (+ a b)))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (pow a 2)))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (pow a 2)))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (/ b a))))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (+ (* -1 (/ (pow b 2) (pow a 2))) (/ b a)))))))
#s(approx (- a b) #s(hole binary64 a))
#s(approx (- a b) #s(hole binary64 (* a (+ 1 (* -1 (/ b a))))))
#s(approx (+ b a) #s(hole binary64 a))
#s(approx (+ b a) #s(hole binary64 (* a (+ 1 (/ b a)))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow a 2) (+ 1 (* -1 (/ (+ (* -1 (+ b (* -1 b))) (/ (pow b 2) a)) a))))))
#s(approx (- a b) #s(hole binary64 (* -1 (* a (- (/ b a) 1)))))
#s(approx (+ b a) #s(hole binary64 (* -1 (* a (- (* -1 (/ b a)) 1)))))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (+ (* -1 (pow b 2)) (pow a 2))))
#s(approx (* (neg b) b) #s(hole binary64 (* -1 (pow b 2))))
#s(approx (neg b) #s(hole binary64 (* -1 b)))
#s(approx b #s(hole binary64 b))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (+ (* b (+ a (* -1 a))) (pow a 2))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (+ (* b (+ a (+ (* -1 a) (* -1 b)))) (pow a 2))))
#s(approx (- a b) #s(hole binary64 (+ a (* -1 b))))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow b 2) (- (+ (* -1 (/ a b)) (/ a b)) 1))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow b 2) (- (+ (* -1 (/ a b)) (+ (/ a b) (/ (pow a 2) (pow b 2)))) 1))))
#s(approx (- a b) #s(hole binary64 (* b (- (/ a b) 1))))
#s(approx (+ b a) #s(hole binary64 (* b (+ 1 (/ a b)))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow b 2) (- (* -1 (/ (+ a (* -1 a)) b)) 1))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow b 2) (- (* -1 (/ (+ a (+ (* -1 a) (* -1 (/ (pow a 2) b)))) b)) 1))))
#s(approx (- a b) #s(hole binary64 (* -1 (* b (+ 1 (* -1 (/ a b)))))))
#s(approx (+ b a) #s(hole binary64 (* -1 (* b (- (* -1 (/ a b)) 1)))))
Outputs
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* -1 (pow b 2))))
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (- (pow a 2) (pow b 2))))
#s(approx (- (* a a) (* b b)) (*.f64 (+.f64 b a) (-.f64 a b)))
#s(approx (* a a) #s(hole binary64 (pow a 2)))
#s(approx (* a a) (*.f64 a a))
#s(approx a #s(hole binary64 a))
#s(approx a a)
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* -1 (pow b 2))))
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (+ (* -1 (pow b 2)) (* a (+ b (* -1 b))))))
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (+ (* -1 (pow b 2)) (* a (+ a (+ b (* -1 b)))))))
#s(approx (- (* a a) (* b b)) (*.f64 (+.f64 b a) (-.f64 a b)))
#s(approx (- a b) #s(hole binary64 (* -1 b)))
#s(approx (- a b) (neg.f64 b))
#s(approx (- a b) #s(hole binary64 (- a b)))
#s(approx (- a b) (-.f64 a b))
#s(approx (+ b a) #s(hole binary64 b))
#s(approx (+ b a) b)
#s(approx (+ b a) #s(hole binary64 (+ a b)))
#s(approx (+ b a) (+.f64 b a))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (pow a 2)))
#s(approx (- (* a a) (* b b)) (*.f64 a a))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2)))))))
#s(approx (- (* a a) (* b b)) (*.f64 (*.f64 (neg.f64 a) a) (fma.f64 (/.f64 b a) (/.f64 b a) #s(literal -1 binary64))))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (pow a 2)))
#s(approx (- (* a a) (* b b)) (*.f64 a a))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (/ b a))))))
#s(approx (- (* a a) (* b b)) (*.f64 a a))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (+ (* -1 (/ (pow b 2) (pow a 2))) (/ b a)))))))
#s(approx (- (* a a) (* b b)) (*.f64 (*.f64 (neg.f64 a) a) (fma.f64 (/.f64 b a) (/.f64 b a) #s(literal -1 binary64))))
#s(approx (- a b) #s(hole binary64 a))
#s(approx (- a b) a)
#s(approx (- a b) #s(hole binary64 (* a (+ 1 (* -1 (/ b a))))))
#s(approx (- a b) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 b a)) a))
#s(approx (+ b a) #s(hole binary64 a))
#s(approx (+ b a) a)
#s(approx (+ b a) #s(hole binary64 (* a (+ 1 (/ b a)))))
#s(approx (+ b a) (fma.f64 (/.f64 b a) a a))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow a 2) (+ 1 (* -1 (/ (+ (* -1 (+ b (* -1 b))) (/ (pow b 2) a)) a))))))
#s(approx (- (* a a) (* b b)) (*.f64 (*.f64 (neg.f64 a) a) (fma.f64 (/.f64 b a) (/.f64 b a) #s(literal -1 binary64))))
#s(approx (- a b) #s(hole binary64 (* -1 (* a (- (/ b a) 1)))))
#s(approx (- a b) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 b a)) a))
#s(approx (+ b a) #s(hole binary64 (* -1 (* a (- (* -1 (/ b a)) 1)))))
#s(approx (+ b a) (fma.f64 (/.f64 b a) a a))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (+ (* -1 (pow b 2)) (pow a 2))))
#s(approx (- (* a a) (* b b)) (*.f64 (+.f64 b a) (-.f64 a b)))
#s(approx (* (neg b) b) #s(hole binary64 (* -1 (pow b 2))))
#s(approx (* (neg b) b) (*.f64 (neg.f64 b) b))
#s(approx (neg b) #s(hole binary64 (* -1 b)))
#s(approx (neg b) (neg.f64 b))
#s(approx b #s(hole binary64 b))
#s(approx b b)
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (+ (* b (+ a (* -1 a))) (pow a 2))))
#s(approx (- (* a a) (* b b)) (*.f64 a a))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (+ (* b (+ a (+ (* -1 a) (* -1 b)))) (pow a 2))))
#s(approx (- (* a a) (* b b)) (*.f64 (+.f64 b a) (-.f64 a b)))
#s(approx (- a b) #s(hole binary64 (+ a (* -1 b))))
#s(approx (- a b) (-.f64 a b))
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1))))
#s(approx (- (* a a) (* b b)) (*.f64 (fma.f64 (/.f64 a b) (/.f64 a b) #s(literal -1 binary64)) (*.f64 b b)))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow b 2) (- (+ (* -1 (/ a b)) (/ a b)) 1))))
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow b 2) (- (+ (* -1 (/ a b)) (+ (/ a b) (/ (pow a 2) (pow b 2)))) 1))))
#s(approx (- (* a a) (* b b)) (*.f64 (fma.f64 (/.f64 a b) (/.f64 a b) #s(literal -1 binary64)) (*.f64 b b)))
#s(approx (- a b) #s(hole binary64 (* b (- (/ a b) 1))))
#s(approx (- a b) (*.f64 (-.f64 (/.f64 a b) #s(literal 1 binary64)) b))
#s(approx (+ b a) #s(hole binary64 (* b (+ 1 (/ a b)))))
#s(approx (+ b a) (fma.f64 (/.f64 a b) b b))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow b 2) (- (* -1 (/ (+ a (* -1 a)) b)) 1))))
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
#s(approx (* (- a b) (+ b a)) #s(hole binary64 (* (pow b 2) (- (* -1 (/ (+ a (+ (* -1 a) (* -1 (/ (pow a 2) b)))) b)) 1))))
#s(approx (- (* a a) (* b b)) (*.f64 (fma.f64 (/.f64 a b) (/.f64 a b) #s(literal -1 binary64)) (*.f64 b b)))
#s(approx (- a b) #s(hole binary64 (* -1 (* b (+ 1 (* -1 (/ a b)))))))
#s(approx (- a b) (*.f64 (-.f64 (/.f64 a b) #s(literal 1 binary64)) b))
#s(approx (+ b a) #s(hole binary64 (* -1 (* b (- (* -1 (/ a b)) 1)))))
#s(approx (+ b a) (fma.f64 (/.f64 a b) b b))

rewrite47.0ms (2.6%)

Memory
27.7MiB live, 70.6MiB allocated; 11ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01347
01947
17147
061747
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
10 → 111
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
(*.f64 a a)
a
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
(*.f64 (neg.f64 b) b)
(neg.f64 b)
b
(*.f64 (-.f64 a b) (+.f64 b a))
(-.f64 a b)
(+.f64 b a)
Outputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
(*.f64 (pow.f64 a #s(literal 1 binary64)) (pow.f64 a #s(literal 1 binary64)))
(*.f64 (neg.f64 (neg.f64 a)) (neg.f64 (neg.f64 a)))
(*.f64 (neg.f64 (fabs.f64 a)) (neg.f64 (fabs.f64 a)))
(*.f64 (fabs.f64 (fabs.f64 a)) (fabs.f64 (fabs.f64 a)))
(*.f64 (neg.f64 a) (neg.f64 a))
(*.f64 (fabs.f64 a) (fabs.f64 a))
(*.f64 a a)
(pow.f64 (neg.f64 a) #s(literal 2 binary64))
(pow.f64 (fabs.f64 a) #s(literal 2 binary64))
(pow.f64 a #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 a) a))
(neg.f64 (*.f64 a (neg.f64 a)))
(fabs.f64 (*.f64 a a))
(exp.f64 (*.f64 (log.f64 a) #s(literal 2 binary64)))
a
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
(*.f64 (neg.f64 (fabs.f64 b)) (fabs.f64 b))
(*.f64 (neg.f64 (neg.f64 b)) (neg.f64 b))
(*.f64 (fabs.f64 b) (neg.f64 (fabs.f64 b)))
(*.f64 (neg.f64 b) (neg.f64 (neg.f64 b)))
(*.f64 (neg.f64 b) b)
(*.f64 b (neg.f64 b))
(neg.f64 (*.f64 b b))
(neg.f64 b)
b
(*.f64 (+.f64 (neg.f64 a) (fabs.f64 b)) (-.f64 (neg.f64 a) (fabs.f64 b)))
(*.f64 (+.f64 (neg.f64 a) (neg.f64 b)) (-.f64 (neg.f64 a) (neg.f64 b)))
(*.f64 (+.f64 (neg.f64 a) b) (-.f64 (neg.f64 a) b))
(*.f64 (+.f64 (fabs.f64 a) (fabs.f64 b)) (-.f64 (fabs.f64 a) (fabs.f64 b)))
(*.f64 (+.f64 (fabs.f64 a) (neg.f64 b)) (-.f64 (fabs.f64 a) (neg.f64 b)))
(*.f64 (+.f64 (fabs.f64 a) b) (-.f64 (fabs.f64 a) b))
(*.f64 (+.f64 a (fabs.f64 b)) (-.f64 a (fabs.f64 b)))
(*.f64 (+.f64 a (neg.f64 b)) (-.f64 a (neg.f64 b)))
(*.f64 (+.f64 b a) (-.f64 a b))
(*.f64 (-.f64 a b) (+.f64 b a))
(/.f64 (*.f64 (*.f64 (+.f64 b a) (-.f64 b a)) (-.f64 a b)) (-.f64 b a))
(/.f64 (*.f64 (+.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64))) (-.f64 a b)) (fma.f64 (-.f64 a b) a (*.f64 b b)))
(/.f64 (*.f64 (-.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64))) (+.f64 b a)) (fma.f64 b (+.f64 b a) (*.f64 a a)))
(/.f64 (*.f64 (*.f64 (+.f64 b a) (-.f64 a b)) (+.f64 b a)) (+.f64 b a))
(/.f64 (*.f64 (+.f64 b a) (-.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64)))) (fma.f64 b (+.f64 b a) (*.f64 a a)))
(/.f64 (*.f64 (+.f64 b a) (*.f64 (+.f64 b a) (-.f64 a b))) (+.f64 b a))
(/.f64 (*.f64 (-.f64 a b) (*.f64 (+.f64 b a) (-.f64 b a))) (-.f64 b a))
(/.f64 (*.f64 (-.f64 a b) (+.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64)))) (fma.f64 (-.f64 a b) a (*.f64 b b)))
(/.f64 (-.f64 (*.f64 (*.f64 (-.f64 a b) b) (*.f64 (-.f64 a b) b)) (*.f64 (*.f64 (-.f64 a b) a) (*.f64 (-.f64 a b) a))) (-.f64 (*.f64 (-.f64 a b) b) (*.f64 (-.f64 a b) a)))
(/.f64 (+.f64 (pow.f64 (*.f64 (-.f64 a b) b) #s(literal 3 binary64)) (pow.f64 (*.f64 (-.f64 a b) a) #s(literal 3 binary64))) (fma.f64 (*.f64 (-.f64 a b) b) (*.f64 (-.f64 a b) b) (-.f64 (*.f64 (*.f64 (-.f64 a b) a) (*.f64 (-.f64 a b) a)) (*.f64 (*.f64 (-.f64 a b) b) (*.f64 (-.f64 a b) a)))))
(/.f64 (+.f64 (pow.f64 a #s(literal 6 binary64)) (pow.f64 (*.f64 (neg.f64 b) b) #s(literal 3 binary64))) (+.f64 (pow.f64 a #s(literal 4 binary64)) (-.f64 (pow.f64 b #s(literal 4 binary64)) (*.f64 (*.f64 a a) (*.f64 (neg.f64 b) b)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 a #s(literal 4 binary64)) (pow.f64 b #s(literal 4 binary64)))) (neg.f64 (fma.f64 b b (*.f64 a a))))
(/.f64 (neg.f64 (-.f64 (pow.f64 a #s(literal 6 binary64)) (pow.f64 b #s(literal 6 binary64)))) (neg.f64 (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 a a)) (pow.f64 a #s(literal 4 binary64)))))
(/.f64 (*.f64 (*.f64 (+.f64 b a) (-.f64 b a)) (-.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64)))) (*.f64 (-.f64 b a) (fma.f64 b (+.f64 b a) (*.f64 a a))))
(/.f64 (*.f64 (*.f64 (+.f64 b a) (-.f64 b a)) (*.f64 (+.f64 b a) (-.f64 a b))) (*.f64 (-.f64 b a) (+.f64 b a)))
(/.f64 (*.f64 (+.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64))) (-.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64)))) (*.f64 (fma.f64 (-.f64 a b) a (*.f64 b b)) (fma.f64 b (+.f64 b a) (*.f64 a a))))
(/.f64 (*.f64 (+.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64))) (*.f64 (+.f64 b a) (-.f64 a b))) (+.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64))))
(/.f64 (*.f64 (-.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64))) (*.f64 (+.f64 b a) (-.f64 b a))) (*.f64 (fma.f64 b (+.f64 b a) (*.f64 a a)) (-.f64 b a)))
(/.f64 (*.f64 (-.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64))) (+.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64)))) (*.f64 (fma.f64 b (+.f64 b a) (*.f64 a a)) (fma.f64 (-.f64 a b) a (*.f64 b b))))
(/.f64 (*.f64 (*.f64 (+.f64 b a) (-.f64 a b)) (*.f64 (+.f64 b a) (-.f64 b a))) (*.f64 (+.f64 b a) (-.f64 b a)))
(/.f64 (*.f64 (*.f64 (+.f64 b a) (-.f64 a b)) (+.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64)))) (*.f64 (+.f64 b a) (fma.f64 (-.f64 a b) a (*.f64 b b))))
(/.f64 (-.f64 (pow.f64 a #s(literal 4 binary64)) (pow.f64 b #s(literal 4 binary64))) (fma.f64 b b (*.f64 a a)))
(/.f64 (-.f64 (pow.f64 a #s(literal 6 binary64)) (pow.f64 b #s(literal 6 binary64))) (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 a a)) (pow.f64 a #s(literal 4 binary64))))
(fma.f64 (pow.f64 a #s(literal 1 binary64)) (pow.f64 a #s(literal 1 binary64)) (*.f64 (neg.f64 b) b))
(fma.f64 (neg.f64 (neg.f64 a)) (neg.f64 (neg.f64 a)) (*.f64 (neg.f64 b) b))
(fma.f64 (neg.f64 (fabs.f64 a)) (neg.f64 (fabs.f64 a)) (*.f64 (neg.f64 b) b))
(fma.f64 (neg.f64 (fabs.f64 b)) (fabs.f64 b) (*.f64 a a))
(fma.f64 (neg.f64 (neg.f64 b)) (neg.f64 b) (*.f64 a a))
(fma.f64 (fabs.f64 (fabs.f64 a)) (fabs.f64 (fabs.f64 a)) (*.f64 (neg.f64 b) b))
(fma.f64 (neg.f64 a) (neg.f64 a) (*.f64 (neg.f64 b) b))
(fma.f64 (fabs.f64 b) (neg.f64 (fabs.f64 b)) (*.f64 a a))
(fma.f64 (fabs.f64 a) (fabs.f64 a) (*.f64 (neg.f64 b) b))
(fma.f64 (-.f64 a b) b (*.f64 (-.f64 a b) a))
(fma.f64 (-.f64 a b) a (*.f64 (-.f64 a b) b))
(fma.f64 (neg.f64 b) (neg.f64 (neg.f64 b)) (*.f64 a a))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(fma.f64 b (-.f64 a b) (*.f64 (-.f64 a b) a))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(fma.f64 a (-.f64 a b) (*.f64 (-.f64 a b) b))
(fma.f64 a a (*.f64 (neg.f64 b) b))
(-.f64 (/.f64 (pow.f64 a #s(literal 4 binary64)) (fma.f64 b b (*.f64 a a))) (/.f64 (pow.f64 b #s(literal 4 binary64)) (fma.f64 b b (*.f64 a a))))
(-.f64 (/.f64 (pow.f64 a #s(literal 6 binary64)) (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 a a)) (pow.f64 a #s(literal 4 binary64)))) (/.f64 (pow.f64 b #s(literal 6 binary64)) (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 a a)) (pow.f64 a #s(literal 4 binary64)))))
(-.f64 (*.f64 (-.f64 a b) b) (*.f64 (neg.f64 a) (-.f64 a b)))
(-.f64 (*.f64 (-.f64 a b) b) (*.f64 (neg.f64 (-.f64 a b)) a))
(-.f64 (*.f64 a a) (*.f64 (neg.f64 (neg.f64 b)) b))
(-.f64 (*.f64 a a) (*.f64 b b))
(+.f64 (*.f64 (-.f64 a b) a) (*.f64 (-.f64 a b) b))
(+.f64 (*.f64 (-.f64 a b) b) (*.f64 (-.f64 a b) a))
(+.f64 (*.f64 (neg.f64 b) b) (*.f64 a a))
(+.f64 (*.f64 a a) (*.f64 (neg.f64 b) b))
(*.f64 (/.f64 (*.f64 (+.f64 b a) (-.f64 a b)) (*.f64 (+.f64 b a) (-.f64 b a))) (-.f64 b a))
(*.f64 (/.f64 (*.f64 (+.f64 b a) (-.f64 a b)) (+.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64)))) (fma.f64 (-.f64 a b) a (*.f64 b b)))
(*.f64 (+.f64 b a) (/.f64 (-.f64 a b) (+.f64 b a)))
(*.f64 (-.f64 a b) (/.f64 (+.f64 b a) (+.f64 b a)))
(/.f64 (neg.f64 (-.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64)))) (neg.f64 (fma.f64 b (+.f64 b a) (*.f64 a a))))
(/.f64 (neg.f64 (*.f64 (+.f64 b a) (-.f64 a b))) (neg.f64 (+.f64 b a)))
(/.f64 (-.f64 (pow.f64 a #s(literal 4 binary64)) (pow.f64 b #s(literal 4 binary64))) (*.f64 (fma.f64 b b (*.f64 a a)) (+.f64 b a)))
(/.f64 (-.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64))) (fma.f64 b (+.f64 b a) (*.f64 a a)))
(/.f64 (-.f64 (pow.f64 a #s(literal 6 binary64)) (pow.f64 b #s(literal 6 binary64))) (*.f64 (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 a a)) (pow.f64 a #s(literal 4 binary64))) (+.f64 b a)))
(/.f64 (*.f64 (+.f64 b a) (-.f64 a b)) (+.f64 b a))
(-.f64 (/.f64 (pow.f64 a #s(literal 3 binary64)) (fma.f64 b (+.f64 b a) (*.f64 a a))) (/.f64 (pow.f64 b #s(literal 3 binary64)) (fma.f64 b (+.f64 b a) (*.f64 a a))))
(-.f64 (/.f64 (*.f64 a a) (+.f64 b a)) (/.f64 (*.f64 b b) (+.f64 b a)))
(-.f64 a b)
(+.f64 (/.f64 (*.f64 (-.f64 a b) b) (+.f64 b a)) (/.f64 (*.f64 (-.f64 a b) a) (+.f64 b a)))
(+.f64 (/.f64 (*.f64 a a) (+.f64 b a)) (/.f64 (*.f64 (neg.f64 b) b) (+.f64 b a)))
(/.f64 (neg.f64 (*.f64 (+.f64 b a) (-.f64 b a))) (neg.f64 (-.f64 b a)))
(/.f64 (neg.f64 (+.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64)))) (neg.f64 (fma.f64 (-.f64 a b) a (*.f64 b b))))
(/.f64 (*.f64 (+.f64 b a) (-.f64 b a)) (-.f64 b a))
(/.f64 (+.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64))) (fma.f64 a a (-.f64 (*.f64 b b) (*.f64 b a))))
(/.f64 (+.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64))) (fma.f64 (-.f64 a b) a (*.f64 b b)))
(/.f64 (*.f64 (+.f64 b a) (-.f64 a b)) (-.f64 a b))
(-.f64 (/.f64 (*.f64 b b) (-.f64 b a)) (/.f64 (*.f64 a a) (-.f64 b a)))
(+.f64 (/.f64 (pow.f64 b #s(literal 3 binary64)) (fma.f64 (-.f64 a b) a (*.f64 b b))) (/.f64 (pow.f64 a #s(literal 3 binary64)) (fma.f64 (-.f64 a b) a (*.f64 b b))))
(+.f64 b a)
(+.f64 a b)

eval34.0ms (1.9%)

Memory
-1.9MiB live, 39.5MiB allocated; 14ms collecting garbage
Compiler

Compiled 2 103 to 352 computations (83.3% saved)

prune69.0ms (3.8%)

Memory
-30.3MiB live, 36.5MiB allocated; 45ms collecting garbage
Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New1410141
Fresh000
Picked033
Done000
Total1413144
Accuracy
100.0%
Counts
144 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (-.f64 a b) (+.f64 b a))
54.4%
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
52.7%
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Compiler

Compiled 67 to 35 computations (47.8% saved)

regimes14.0ms (0.8%)

Memory
-9.3MiB live, 39.2MiB allocated; 7ms collecting garbage
Counts
4 → 1
Calls
Call 1
Inputs
#s(approx (- (* a a) (* b b)) (*.f64 a a))
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
(*.f64 (-.f64 a b) (+.f64 b a))
(-.f64 (*.f64 a a) (*.f64 b b))
Outputs
(*.f64 (-.f64 a b) (+.f64 b a))
Calls

5 calls:

6.0ms
(*.f64 a a)
2.0ms
b
2.0ms
a
2.0ms
(-.f64 (*.f64 a a) (*.f64 b b))
2.0ms
(*.f64 b b)
Results
AccuracySegmentsBranch
100.0%1(*.f64 b b)
100.0%1(*.f64 a a)
100.0%1(-.f64 (*.f64 a a) (*.f64 b b))
100.0%1a
100.0%1b
Compiler

Compiled 15 to 15 computations (0% saved)

regimes7.0ms (0.4%)

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

5 calls:

1.0ms
b
1.0ms
a
1.0ms
(-.f64 (*.f64 a a) (*.f64 b b))
1.0ms
(*.f64 b b)
1.0ms
(*.f64 a a)
Results
AccuracySegmentsBranch
80.2%2(*.f64 b b)
76.4%2(*.f64 a a)
97.9%2(-.f64 (*.f64 a a) (*.f64 b b))
76.4%2a
80.2%2b
Compiler

Compiled 15 to 15 computations (0% saved)

regimes7.0ms (0.4%)

Memory
-26.2MiB live, 20.5MiB allocated; 2ms collecting garbage
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

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

5 calls:

3.0ms
(-.f64 (*.f64 a a) (*.f64 b b))
1.0ms
b
1.0ms
a
1.0ms
(*.f64 b b)
1.0ms
(*.f64 a a)
Results
AccuracySegmentsBranch
52.7%1(*.f64 a a)
52.7%1a
52.7%1(*.f64 b b)
52.7%1b
52.7%1(-.f64 (*.f64 a a) (*.f64 b b))
Compiler

Compiled 15 to 15 computations (0% saved)

bsearch0.0ms (0%)

Memory
1.6MiB live, 1.6MiB allocated; 0ms collecting garbage
Algorithm
left-value
Steps
TimeLeftRight
0.0ms
-1.161646287e-315
0.0
Compiler

Compiled 10 to 10 computations (0% saved)

simplify99.0ms (5.5%)

Memory
-16.9MiB live, 82.0MiB allocated; 47ms 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 a b) (+.f64 b a))
(if (<=.f64 (-.f64 (*.f64 a a) (*.f64 b b)) #s(literal -202402253/202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 binary64)) #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #s(approx (- (* a a) (* b b)) (*.f64 a a)))
#s(approx (- (* a a) (* b b)) (*.f64 a a))
Outputs
(*.f64 (-.f64 a b) (+.f64 b a))
(if (<=.f64 (-.f64 (*.f64 a a) (*.f64 b b)) #s(literal -202402253/202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 binary64)) #s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b)) #s(approx (- (* a a) (* b b)) (*.f64 a a)))
#s(approx (- (* a a) (* b b)) (*.f64 a a))

derivations81.0ms (4.5%)

Memory
-1.7MiB live, 95.9MiB allocated; 7ms collecting garbage
Stop Event
done
Compiler

Compiled 51 to 18 computations (64.7% saved)

preprocess22.0ms (1.2%)

Memory
14.0MiB live, 59.7MiB allocated; 4ms collecting garbage
Remove

(abs a)

(abs b)

Compiler

Compiled 158 to 76 computations (51.9% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...