Difference of squares

Time bar (total: 1.8s)

start0.0ms (0%)

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

analyze0.0ms (0%)

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

sample640.0ms (36%)

Memory
-25.1MiB live, 596.6MiB allocated; 169ms collecting garbage
Samples
456.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 144.0ms
ival-mult!: 110.0ms (76.6% of total)
ival-sub!: 32.0ms (22.3% of total)
adjust: 2.0ms (1.4% of total)
Bogosity

preprocess69.0ms (3.9%)

Memory
-8.9MiB live, 37.6MiB allocated; 6ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01442
16242
226742
346642
4111042
5369742
Stop Event
node-limit
Alt Table
Click to see full alt table
StatusAccuracyProgram
94.1%
(-.f64 (*.f64 a a) (*.f64 b b))
Symmetry

(abs a)

(abs b)

Compiler

Compiled 14 to 10 computations (28.6% saved)

series76.0ms (4.3%)

Memory
0.0MiB live, 46.7MiB allocated; 4ms collecting garbage
Counts
5 → 9
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)) (*.f64 #s(literal -1 binary64) (pow.f64 b #s(literal 2 binary64))))
#s(approx (- (* a a) (* b b)) (-.f64 (pow.f64 a #s(literal 2 binary64)) (pow.f64 b #s(literal 2 binary64))))
#s(approx (* a a) (pow.f64 a #s(literal 2 binary64)))
#s(approx a a)
#s(approx (- (* a a) (* b b)) (*.f64 (pow.f64 a #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))))))
#s(approx (- (* a a) (* b b)) (fma.f64 #s(literal -1 binary64) (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64))))
#s(approx (* b b) (pow.f64 b #s(literal 2 binary64)))
#s(approx b b)
#s(approx (- (* a a) (* b b)) (*.f64 (pow.f64 b #s(literal 2 binary64)) (-.f64 (/.f64 (pow.f64 a #s(literal 2 binary64)) (pow.f64 b #s(literal 2 binary64))) #s(literal 1 binary64))))
Calls

6 calls:

TimeVariablePoint
1.0ms
a
inf
1.0ms
a
-inf
1.0ms
b
inf
1.0ms
b
-inf
1.0ms
a
0

rewrite120.0ms (6.8%)

Memory
5.5MiB live, 149.1MiB allocated; 13ms collecting garbage
Counts
5 → 21
Calls
Call 1
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 a a)
a
(*.f64 b b)
b
Outputs
(*.f64 (+.f64 a b) (-.f64 a b))
(+.f64 (*.f64 a a) (neg.f64 (*.f64 b b)))
(+.f64 (*.f64 a a) (*.f64 (neg.f64 b) b))
(-.f64 (*.f64 a a) (*.f64 b b))
(fma.f64 a a (neg.f64 (*.f64 b b)))
(fma.f64 (neg.f64 a) (neg.f64 a) (neg.f64 (*.f64 b b)))
(fma.f64 (fabs.f64 a) (fabs.f64 a) (neg.f64 (*.f64 b b)))
(fma.f64 a a (*.f64 (neg.f64 b) 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 b) b))
(neg.f64 (-.f64 (*.f64 b b) (*.f64 a a)))
(*.f64 a a)
(*.f64 (neg.f64 a) (neg.f64 a))
(*.f64 (fabs.f64 a) (fabs.f64 a))
(pow.f64 a #s(literal 2 binary64))
a
(*.f64 b b)
(*.f64 (neg.f64 b) (neg.f64 b))
(*.f64 (fabs.f64 b) (fabs.f64 b))
(pow.f64 b #s(literal 2 binary64))
b

eval4.0ms (0.3%)

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

Compiled 263 to 66 computations (74.9% saved)

prune2.0ms (0.1%)

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

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New24125
Fresh000
Picked101
Done000
Total25126
Accuracy
100.0%
Counts
26 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (+.f64 a b) (-.f64 a b))
Compiler

Compiled 7 to 5 computations (28.6% saved)

series98.0ms (5.5%)

Memory
30.3MiB live, 76.3MiB allocated; 14ms collecting garbage
Counts
5 → 27
Calls
Call 1
Inputs
(*.f64 (+.f64 a b) (-.f64 a b))
(+.f64 a b)
a
b
(-.f64 a b)
Outputs
#s(approx (* (+ a b) (- a b)) (*.f64 #s(literal -1 binary64) (pow.f64 b #s(literal 2 binary64))))
#s(approx (* (+ a b) (- a b)) (fma.f64 #s(literal -1 binary64) (pow.f64 b #s(literal 2 binary64)) (*.f64 a (+.f64 b (*.f64 #s(literal -1 binary64) b)))))
#s(approx (* (+ a b) (- a b)) (fma.f64 #s(literal -1 binary64) (pow.f64 b #s(literal 2 binary64)) (*.f64 a (+.f64 a (+.f64 b (*.f64 #s(literal -1 binary64) b))))))
#s(approx (+ a b) b)
#s(approx (+ a b) (+.f64 a b))
#s(approx a a)
#s(approx (- a b) (*.f64 #s(literal -1 binary64) b))
#s(approx (- a b) (-.f64 a b))
#s(approx (* (+ a b) (- a b)) (pow.f64 a #s(literal 2 binary64)))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 a #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1 binary64) (/.f64 b a) (/.f64 b a)))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 a #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1 binary64) (/.f64 b a) (fma.f64 #s(literal -1 binary64) (/.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64))) (/.f64 b a))))))
#s(approx (+ a b) (*.f64 a (+.f64 #s(literal 1 binary64) (/.f64 b a))))
#s(approx (- a b) (*.f64 a (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 b a)))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 a #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 (fma.f64 #s(literal -1 binary64) (+.f64 b (*.f64 #s(literal -1 binary64) b)) (/.f64 (pow.f64 b #s(literal 2 binary64)) a)) a)))))
#s(approx (+ a b) (*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 b a)) #s(literal 1 binary64)))))
#s(approx (- a b) (*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64)))))
#s(approx (* (+ a b) (- a b)) (fma.f64 b (+.f64 a (*.f64 #s(literal -1 binary64) a)) (pow.f64 a #s(literal 2 binary64))))
#s(approx (* (+ a b) (- a b)) (fma.f64 b (+.f64 a (fma.f64 #s(literal -1 binary64) a (*.f64 #s(literal -1 binary64) b))) (pow.f64 a #s(literal 2 binary64))))
#s(approx (- a b) (+.f64 a (*.f64 #s(literal -1 binary64) b)))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 b #s(literal 2 binary64)) (-.f64 (fma.f64 #s(literal -1 binary64) (/.f64 a b) (/.f64 a b)) #s(literal 1 binary64))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 b #s(literal 2 binary64)) (-.f64 (fma.f64 #s(literal -1 binary64) (/.f64 a b) (+.f64 (/.f64 a b) (/.f64 (pow.f64 a #s(literal 2 binary64)) (pow.f64 b #s(literal 2 binary64))))) #s(literal 1 binary64))))
#s(approx (+ a b) (*.f64 b (+.f64 #s(literal 1 binary64) (/.f64 a b))))
#s(approx (- a b) (*.f64 b (-.f64 (/.f64 a b) #s(literal 1 binary64))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 b #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 (+.f64 a (*.f64 #s(literal -1 binary64) a)) b)) #s(literal 1 binary64))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 b #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 (+.f64 a (fma.f64 #s(literal -1 binary64) a (*.f64 #s(literal -1 binary64) (/.f64 (pow.f64 a #s(literal 2 binary64)) b)))) b)) #s(literal 1 binary64))))
#s(approx (+ a b) (*.f64 #s(literal -1 binary64) (*.f64 b (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 a b)) #s(literal 1 binary64)))))
#s(approx (- a b) (*.f64 #s(literal -1 binary64) (*.f64 b (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 a b))))))
Calls

6 calls:

TimeVariablePoint
1.0ms
a
-inf
1.0ms
a
0
1.0ms
b
-inf
1.0ms
a
inf
1.0ms
b
inf

rewrite177.0ms (10%)

Memory
-27.5MiB live, 119.0MiB allocated; 15ms collecting garbage
Counts
5 → 11
Calls
Call 1
Inputs
(*.f64 (+.f64 a b) (-.f64 a b))
(+.f64 a b)
a
b
(-.f64 a b)
Outputs
(*.f64 (+.f64 a b) (-.f64 a b))
(*.f64 (-.f64 a b) (+.f64 a b))
(-.f64 (*.f64 a a) (*.f64 b b))
(+.f64 a b)
(+.f64 b a)
(-.f64 a (neg.f64 b))
a
b
(+.f64 a (neg.f64 b))
(-.f64 a b)
(neg.f64 (-.f64 b a))

eval3.0ms (0.2%)

Memory
5.6MiB live, 5.5MiB allocated; 0ms collecting garbage
Compiler

Compiled 540 to 142 computations (73.7% saved)

prune2.0ms (0.1%)

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

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New31233
Fresh000
Picked011
Done000
Total31334
Accuracy
100.0%
Counts
34 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (+.f64 a b) (-.f64 a b))
97.1%
(*.f64 (+.f64 a b) #s(approx (- a b) (*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64))))))
60.0%
(*.f64 #s(approx (+ a b) b) (-.f64 a b))
Compiler

Compiled 33 to 23 computations (30.3% saved)

series101.0ms (5.7%)

Memory
-34.2MiB live, 66.9MiB allocated; 18ms collecting garbage
Counts
14 → 39
Calls
Call 1
Inputs
(*.f64 #s(approx (+ a b) b) (-.f64 a b))
#s(approx (+ a b) b)
b
(-.f64 a b)
a
(*.f64 (+.f64 a b) #s(approx (- a b) (*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64))))))
(+.f64 a b)
#s(approx (- a b) (*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64)))))
(*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64))))
#s(literal -1 binary64)
(*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64)))
(-.f64 (/.f64 b a) #s(literal 1 binary64))
(/.f64 b a)
#s(literal 1 binary64)
Outputs
#s(approx (* (+ a b) (- a b)) (*.f64 #s(literal -1 binary64) (pow.f64 b #s(literal 2 binary64))))
#s(approx (* (+ a b) (- a b)) (fma.f64 #s(literal -1 binary64) (pow.f64 b #s(literal 2 binary64)) (*.f64 a (+.f64 b (*.f64 #s(literal -1 binary64) b)))))
#s(approx (* (+ a b) (- a b)) (fma.f64 #s(literal -1 binary64) (pow.f64 b #s(literal 2 binary64)) (*.f64 a (+.f64 a (+.f64 b (*.f64 #s(literal -1 binary64) b))))))
#s(approx (+ a b) b)
#s(approx (+ a b) (+.f64 a b))
#s(approx (- a b) (*.f64 #s(literal -1 binary64) b))
#s(approx (- a b) (-.f64 a b))
#s(approx a a)
#s(approx (* -1 (* a (- (/ b a) 1))) (+.f64 a (*.f64 #s(literal -1 binary64) b)))
#s(approx (* a (- (/ b a) 1)) (+.f64 b (*.f64 #s(literal -1 binary64) a)))
#s(approx (- (/ b a) 1) (/.f64 b a))
#s(approx (- (/ b a) 1) (/.f64 (+.f64 b (*.f64 #s(literal -1 binary64) a)) a))
#s(approx (* (+ a b) (- a b)) (pow.f64 a #s(literal 2 binary64)))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 a #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1 binary64) (/.f64 b a) (/.f64 b a)))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 a #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1 binary64) (/.f64 b a) (fma.f64 #s(literal -1 binary64) (/.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64))) (/.f64 b a))))))
#s(approx (+ a b) (*.f64 a (+.f64 #s(literal 1 binary64) (/.f64 b a))))
#s(approx (- a b) (*.f64 a (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 b a)))))
#s(approx (* a (- (/ b a) 1)) (*.f64 #s(literal -1 binary64) a))
#s(approx (* a (- (/ b a) 1)) (*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64))))
#s(approx (- (/ b a) 1) #s(literal -1 binary64))
#s(approx (- (/ b a) 1) (-.f64 (/.f64 b a) #s(literal 1 binary64)))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 a #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 (fma.f64 #s(literal -1 binary64) (+.f64 b (*.f64 #s(literal -1 binary64) b)) (/.f64 (pow.f64 b #s(literal 2 binary64)) a)) a)))))
#s(approx (+ a b) (*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 b a)) #s(literal 1 binary64)))))
#s(approx (- a b) (*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64)))))
#s(approx (* a (- (/ b a) 1)) (*.f64 #s(literal -1 binary64) (*.f64 a (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 b a))))))
#s(approx (* (+ a b) (- a b)) (fma.f64 b (+.f64 a (*.f64 #s(literal -1 binary64) a)) (pow.f64 a #s(literal 2 binary64))))
#s(approx (* (+ a b) (- a b)) (fma.f64 b (+.f64 a (fma.f64 #s(literal -1 binary64) a (*.f64 #s(literal -1 binary64) b))) (pow.f64 a #s(literal 2 binary64))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 b #s(literal 2 binary64)) (-.f64 (fma.f64 #s(literal -1 binary64) (/.f64 a b) (/.f64 a b)) #s(literal 1 binary64))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 b #s(literal 2 binary64)) (-.f64 (fma.f64 #s(literal -1 binary64) (/.f64 a b) (+.f64 (/.f64 a b) (/.f64 (pow.f64 a #s(literal 2 binary64)) (pow.f64 b #s(literal 2 binary64))))) #s(literal 1 binary64))))
#s(approx (+ a b) (*.f64 b (+.f64 #s(literal 1 binary64) (/.f64 a b))))
#s(approx (- a b) (*.f64 b (-.f64 (/.f64 a b) #s(literal 1 binary64))))
#s(approx (* a (- (/ b a) 1)) (*.f64 b (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 a b)))))
#s(approx (- (/ b a) 1) (*.f64 b (-.f64 (/.f64 #s(literal 1 binary64) a) (/.f64 #s(literal 1 binary64) b))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 b #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 (+.f64 a (*.f64 #s(literal -1 binary64) a)) b)) #s(literal 1 binary64))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 b #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 (+.f64 a (fma.f64 #s(literal -1 binary64) a (*.f64 #s(literal -1 binary64) (/.f64 (pow.f64 a #s(literal 2 binary64)) b)))) b)) #s(literal 1 binary64))))
#s(approx (+ a b) (*.f64 #s(literal -1 binary64) (*.f64 b (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 a b)) #s(literal 1 binary64)))))
#s(approx (- a b) (*.f64 #s(literal -1 binary64) (*.f64 b (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 a b))))))
#s(approx (* a (- (/ b a) 1)) (*.f64 #s(literal -1 binary64) (*.f64 b (-.f64 (/.f64 a b) #s(literal 1 binary64)))))
#s(approx (- (/ b a) 1) (*.f64 #s(literal -1 binary64) (*.f64 b (-.f64 (/.f64 #s(literal 1 binary64) b) (/.f64 #s(literal 1 binary64) a)))))
Calls

6 calls:

TimeVariablePoint
2.0ms
b
-inf
1.0ms
a
0
1.0ms
a
-inf
1.0ms
b
inf
1.0ms
a
inf

rewrite124.0ms (7%)

Memory
41.7MiB live, 133.8MiB allocated; 8ms collecting garbage
Counts
14 → 30
Calls
Call 1
Inputs
(*.f64 #s(approx (+ a b) b) (-.f64 a b))
#s(approx (+ a b) b)
b
(-.f64 a b)
a
(*.f64 (+.f64 a b) #s(approx (- a b) (*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64))))))
(+.f64 a b)
#s(approx (- a b) (*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64)))))
(*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64))))
#s(literal -1 binary64)
(*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64)))
(-.f64 (/.f64 b a) #s(literal 1 binary64))
(/.f64 b a)
#s(literal 1 binary64)
Outputs
(*.f64 #s(approx (+ a b) b) (-.f64 a b))
#s(approx (+ a b) b)
b
(+.f64 a (neg.f64 b))
(-.f64 a b)
(neg.f64 (-.f64 b a))
a
(*.f64 (+.f64 a b) #s(approx (- a b) (neg.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a))))
(+.f64 a b)
(+.f64 b a)
(-.f64 a (neg.f64 b))
#s(approx (- a b) (neg.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a)))
(*.f64 (*.f64 #s(literal -1 binary64) a) (-.f64 (/.f64 b a) #s(literal 1 binary64)))
(*.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a) #s(literal -1 binary64))
(*.f64 #s(literal -1 binary64) (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a))
(neg.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a))
#s(literal -1 binary64)
(neg.f64 #s(literal 1 binary64))
(*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a)
(*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64)))
(+.f64 (/.f64 b a) #s(literal -1 binary64))
(-.f64 (/.f64 b a) #s(literal 1 binary64))
(fma.f64 b (/.f64 #s(literal 1 binary64) a) #s(literal -1 binary64))
(neg.f64 (-.f64 #s(literal 1 binary64) (/.f64 b a)))
(*.f64 b (/.f64 #s(literal 1 binary64) a))
(/.f64 b a)
(/.f64 (neg.f64 b) (neg.f64 a))
#s(literal 1 binary64)
(cosh.f64 #s(literal 0 binary64))
(exp.f64 #s(literal 0 binary64))

eval9.0ms (0.5%)

Memory
-31.1MiB live, 14.8MiB allocated; 5ms collecting garbage
Compiler

Compiled 1 143 to 274 computations (76% saved)

prune2.0ms (0.1%)

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

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New56258
Fresh000
Picked112
Done011
Total57461
Accuracy
100.0%
Counts
61 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (+.f64 a b) (-.f64 a b))
97.1%
(*.f64 (+.f64 a b) #s(approx (- a b) (neg.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a))))
60.0%
(*.f64 #s(approx (+ a b) b) (-.f64 a b))
51.8%
(*.f64 #s(approx (+ a b) b) #s(approx (- a b) (*.f64 #s(literal -1 binary64) b)))
Compiler

Compiled 45 to 31 computations (31.1% saved)

series108.0ms (6.1%)

Memory
15.4MiB live, 136.2MiB allocated; 51ms collecting garbage
Counts
15 → 40
Calls
Call 1
Inputs
(*.f64 #s(approx (+ a b) b) #s(approx (- a b) (*.f64 #s(literal -1 binary64) b)))
#s(approx (+ a b) b)
b
#s(approx (- a b) (*.f64 #s(literal -1 binary64) b))
(*.f64 #s(literal -1 binary64) b)
#s(literal -1 binary64)
(*.f64 (+.f64 a b) #s(approx (- a b) (neg.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a))))
(+.f64 a b)
a
#s(approx (- a b) (neg.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a)))
(neg.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a))
(*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a)
(-.f64 (/.f64 b a) #s(literal 1 binary64))
(/.f64 b a)
#s(literal 1 binary64)
Outputs
#s(approx (* (+ a b) (- a b)) (*.f64 #s(literal -1 binary64) (pow.f64 b #s(literal 2 binary64))))
#s(approx (* (+ a b) (- a b)) (fma.f64 #s(literal -1 binary64) (pow.f64 b #s(literal 2 binary64)) (*.f64 a (+.f64 b (*.f64 #s(literal -1 binary64) b)))))
#s(approx (* (+ a b) (- a b)) (fma.f64 #s(literal -1 binary64) (pow.f64 b #s(literal 2 binary64)) (*.f64 a (+.f64 a (+.f64 b (*.f64 #s(literal -1 binary64) b))))))
#s(approx (+ a b) b)
#s(approx (+ a b) (+.f64 a b))
#s(approx (- a b) (*.f64 #s(literal -1 binary64) b))
#s(approx (- a b) (-.f64 a b))
#s(approx a a)
#s(approx (* (- (/ b a) 1) a) (+.f64 b (*.f64 #s(literal -1 binary64) a)))
#s(approx (- (/ b a) 1) (/.f64 b a))
#s(approx (- (/ b a) 1) (/.f64 (+.f64 b (*.f64 #s(literal -1 binary64) a)) a))
#s(approx (* (+ a b) (- a b)) (pow.f64 a #s(literal 2 binary64)))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 a #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1 binary64) (/.f64 b a) (/.f64 b a)))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 a #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1 binary64) (/.f64 b a) (fma.f64 #s(literal -1 binary64) (/.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64))) (/.f64 b a))))))
#s(approx (+ a b) (*.f64 a (+.f64 #s(literal 1 binary64) (/.f64 b a))))
#s(approx (- a b) (*.f64 a (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 b a)))))
#s(approx (* (- (/ b a) 1) a) (*.f64 #s(literal -1 binary64) a))
#s(approx (* (- (/ b a) 1) a) (*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64))))
#s(approx (- (/ b a) 1) #s(literal -1 binary64))
#s(approx (- (/ b a) 1) (-.f64 (/.f64 b a) #s(literal 1 binary64)))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 a #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 (fma.f64 #s(literal -1 binary64) (+.f64 b (*.f64 #s(literal -1 binary64) b)) (/.f64 (pow.f64 b #s(literal 2 binary64)) a)) a)))))
#s(approx (+ a b) (*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 b a)) #s(literal 1 binary64)))))
#s(approx (- a b) (*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64)))))
#s(approx (* (- (/ b a) 1) a) (*.f64 #s(literal -1 binary64) (*.f64 a (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 b a))))))
#s(approx (* (+ a b) (- a b)) (fma.f64 b (+.f64 a (*.f64 #s(literal -1 binary64) a)) (pow.f64 a #s(literal 2 binary64))))
#s(approx (* (+ a b) (- a b)) (fma.f64 b (+.f64 a (fma.f64 #s(literal -1 binary64) a (*.f64 #s(literal -1 binary64) b))) (pow.f64 a #s(literal 2 binary64))))
#s(approx (- a b) (+.f64 a (*.f64 #s(literal -1 binary64) b)))
#s(approx (neg (* (- (/ b a) 1) a)) (-.f64 (*.f64 #s(literal -1 binary64) b) (*.f64 #s(literal -1 binary64) a)))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 b #s(literal 2 binary64)) (-.f64 (fma.f64 #s(literal -1 binary64) (/.f64 a b) (/.f64 a b)) #s(literal 1 binary64))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 b #s(literal 2 binary64)) (-.f64 (fma.f64 #s(literal -1 binary64) (/.f64 a b) (+.f64 (/.f64 a b) (/.f64 (pow.f64 a #s(literal 2 binary64)) (pow.f64 b #s(literal 2 binary64))))) #s(literal 1 binary64))))
#s(approx (+ a b) (*.f64 b (+.f64 #s(literal 1 binary64) (/.f64 a b))))
#s(approx (- a b) (*.f64 b (-.f64 (/.f64 a b) #s(literal 1 binary64))))
#s(approx (* (- (/ b a) 1) a) (*.f64 b (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 a b)))))
#s(approx (- (/ b a) 1) (*.f64 b (-.f64 (/.f64 #s(literal 1 binary64) a) (/.f64 #s(literal 1 binary64) b))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 b #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 (+.f64 a (*.f64 #s(literal -1 binary64) a)) b)) #s(literal 1 binary64))))
#s(approx (* (+ a b) (- a b)) (*.f64 (pow.f64 b #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 (+.f64 a (fma.f64 #s(literal -1 binary64) a (*.f64 #s(literal -1 binary64) (/.f64 (pow.f64 a #s(literal 2 binary64)) b)))) b)) #s(literal 1 binary64))))
#s(approx (+ a b) (*.f64 #s(literal -1 binary64) (*.f64 b (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 a b)) #s(literal 1 binary64)))))
#s(approx (- a b) (*.f64 #s(literal -1 binary64) (*.f64 b (+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1 binary64) (/.f64 a b))))))
#s(approx (* (- (/ b a) 1) a) (*.f64 #s(literal -1 binary64) (*.f64 b (-.f64 (/.f64 a b) #s(literal 1 binary64)))))
#s(approx (- (/ b a) 1) (*.f64 #s(literal -1 binary64) (*.f64 b (-.f64 (/.f64 #s(literal 1 binary64) b) (/.f64 #s(literal 1 binary64) a)))))
Calls

6 calls:

TimeVariablePoint
1.0ms
b
-inf
1.0ms
b
inf
1.0ms
a
-inf
1.0ms
a
inf
1.0ms
b
0

rewrite131.0ms (7.4%)

Memory
8.5MiB live, 150.7MiB allocated; 78ms collecting garbage
Counts
15 → 30
Calls
Call 1
Inputs
(*.f64 #s(approx (+ a b) b) #s(approx (- a b) (*.f64 #s(literal -1 binary64) b)))
#s(approx (+ a b) b)
b
#s(approx (- a b) (*.f64 #s(literal -1 binary64) b))
(*.f64 #s(literal -1 binary64) b)
#s(literal -1 binary64)
(*.f64 (+.f64 a b) #s(approx (- a b) (neg.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a))))
(+.f64 a b)
a
#s(approx (- a b) (neg.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a)))
(neg.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a))
(*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a)
(-.f64 (/.f64 b a) #s(literal 1 binary64))
(/.f64 b a)
#s(literal 1 binary64)
Outputs
(*.f64 #s(approx (+ a b) b) #s(approx (- a b) (neg.f64 b)))
#s(approx (+ a b) b)
b
#s(approx (- a b) (neg.f64 b))
(*.f64 #s(literal -1 binary64) b)
(*.f64 b #s(literal -1 binary64))
(neg.f64 b)
#s(literal -1 binary64)
(neg.f64 #s(literal 1 binary64))
(*.f64 (+.f64 a b) #s(approx (- a b) (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) (neg.f64 a))))
(+.f64 a b)
(+.f64 b a)
(-.f64 a (neg.f64 b))
a
#s(approx (- a b) (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) (neg.f64 a)))
(*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) (neg.f64 a))
(*.f64 (neg.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64))) a)
(neg.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a))
(*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a)
(*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64)))
(+.f64 (/.f64 b a) #s(literal -1 binary64))
(-.f64 (/.f64 b a) #s(literal 1 binary64))
(fma.f64 b (/.f64 #s(literal 1 binary64) a) #s(literal -1 binary64))
(neg.f64 (-.f64 #s(literal 1 binary64) (/.f64 b a)))
(*.f64 b (/.f64 #s(literal 1 binary64) a))
(/.f64 b a)
(/.f64 (neg.f64 b) (neg.f64 a))
#s(literal 1 binary64)
(cosh.f64 #s(literal 0 binary64))
(exp.f64 #s(literal 0 binary64))

eval6.0ms (0.3%)

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

Compiled 1 122 to 273 computations (75.7% saved)

prune11.0ms (0.6%)

Memory
-29.5MiB live, 12.5MiB allocated; 12ms collecting garbage
Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New56157
Fresh000
Picked112
Done022
Total57461
Accuracy
100.0%
Counts
61 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (+.f64 a b) (-.f64 a b))
97.1%
(*.f64 (+.f64 a b) #s(approx (- a b) (neg.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a))))
60.0%
(*.f64 #s(approx (+ a b) b) (-.f64 a b))
51.8%
(*.f64 #s(approx (+ a b) b) #s(approx (- a b) (neg.f64 b)))
Compiler

Compiled 44 to 30 computations (31.8% saved)

regimes30.0ms (1.7%)

Memory
41.3MiB live, 86.0MiB allocated; 7ms collecting garbage
Accuracy

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

Counts
1 → 1
3 → 1
7 → 1
Calls
Call 1
Inputs
(*.f64 #s(approx (+ a b) b) #s(approx (- a b) (neg.f64 b)))
Outputs
(*.f64 #s(approx (+ a b) b) #s(approx (- a b) (neg.f64 b)))
Call 2
Inputs
(*.f64 #s(approx (+ a b) b) #s(approx (- a b) (neg.f64 b)))
(*.f64 #s(approx (+ a b) b) (-.f64 a b))
(*.f64 #s(approx (+ a b) b) #s(approx (- a b) (*.f64 #s(literal -1 binary64) b)))
Outputs
(*.f64 #s(approx (+ a b) b) (-.f64 a b))
Call 3
Inputs
(*.f64 #s(approx (+ a b) b) #s(approx (- a b) (neg.f64 b)))
(*.f64 #s(approx (+ a b) b) (-.f64 a b))
(*.f64 #s(approx (+ a b) b) #s(approx (- a b) (*.f64 #s(literal -1 binary64) b)))
(*.f64 (+.f64 a b) (-.f64 a b))
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 (+.f64 a b) #s(approx (- a b) (neg.f64 (*.f64 (-.f64 (/.f64 b a) #s(literal 1 binary64)) a))))
(*.f64 (+.f64 a b) #s(approx (- a b) (*.f64 #s(literal -1 binary64) (*.f64 a (-.f64 (/.f64 b a) #s(literal 1 binary64))))))
Outputs
(*.f64 (+.f64 a b) (-.f64 a b))
Calls

15 calls:

8.0ms
b
2.0ms
b
2.0ms
a
2.0ms
(-.f64 (*.f64 a a) (*.f64 b b))
2.0ms
(*.f64 a a)
Results
AccuracySegmentsBranch
51.8%1b
51.8%1(*.f64 a a)
51.8%1(-.f64 (*.f64 a a) (*.f64 b b))
51.8%1a
51.8%1(*.f64 b b)
60.0%1(*.f64 b b)
60.0%1(*.f64 a a)
60.0%1(-.f64 (*.f64 a a) (*.f64 b b))
60.0%1a
60.0%1b
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 126 to 75 computations (40.5% saved)

derivations1.0ms (0%)

Memory
2.8MiB live, 2.8MiB allocated; 0ms collecting garbage
Stop Event
fuel
Compiler

Compiled 28 to 12 computations (57.1% saved)

preprocess62.0ms (3.5%)

Memory
-6.2MiB live, 44.9MiB allocated; 41ms collecting garbage
Remove

(abs b)

(abs a)

Compiler

Compiled 154 to 98 computations (36.4% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...