Difference of squares

Time bar (total: 1.1s)

start0.0ms (0%)

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

analyze0.0ms (0%)

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

sample557.0ms (53%)

Memory
55.5MiB live, 807.9MiB allocated; 152ms collecting garbage
Samples
378.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 122.0ms
ival-mult!: 97.0ms (79.2% of total)
ival-sub!: 25.0ms (20.4% of total)
adjust: 1.0ms (0.8% of total)
Bogosity

preprocess71.0ms (6.8%)

Memory
-39.4MiB live, 51.1MiB allocated; 16ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01445
15642
224042
343142
4117642
5384942
Stop Event
node-limit
Alt Table
Click to see full alt table
StatusAccuracyProgram
94.9%
(-.f64 (*.f64 a a) (*.f64 b b))
Symmetry

(abs a)

(abs b)

Compiler

Compiled 14 to 10 computations (28.6% saved)

series4.0ms (0.4%)

Memory
7.5MiB live, 7.5MiB allocated; 0ms 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)) #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) (+ 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)

rewrite60.0ms (5.7%)

Memory
34.7MiB live, 79.9MiB allocated; 6ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
032124
033120
1133119
01183118
Stop Event
iter-limit
iter-limit
node-limit
iter-limit
Counts
14 → 128
Calls
Call 1
Inputs
(-.f64 (*.f64 a a) (*.f64 b b))
(*.f64 a a)
a
(*.f64 b b)
b
#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) (+ 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
(*.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 (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 a (fabs.f64 b)) (-.f64 a (fabs.f64 b)))
(*.f64 (+.f64 a (neg.f64 b)) (-.f64 a (neg.f64 b)))
(*.f64 (-.f64 a b) (+.f64 b a))
(*.f64 (+.f64 b a) (-.f64 a b))
(/.f64 (neg.f64 (-.f64 (*.f64 (*.f64 (*.f64 b b) b) b) (*.f64 (*.f64 (*.f64 a a) a) a))) (neg.f64 (-.f64 (*.f64 (neg.f64 b) b) (*.f64 a a))))
(/.f64 (neg.f64 (fma.f64 (*.f64 (*.f64 (*.f64 b b) b) b) (*.f64 (neg.f64 b) b) (*.f64 (*.f64 (*.f64 (*.f64 a a) a) a) (*.f64 a a)))) (neg.f64 (fma.f64 (*.f64 (*.f64 b b) b) b (*.f64 (*.f64 a a) (fma.f64 b b (*.f64 a a))))))
(/.f64 (neg.f64 (*.f64 (fma.f64 b b (*.f64 a a)) (*.f64 (-.f64 a b) (+.f64 b a)))) (neg.f64 (fma.f64 b b (*.f64 a a))))
(/.f64 (neg.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 a a) a) a) (*.f64 a a)) (*.f64 (*.f64 (*.f64 (*.f64 b b) b) b) (*.f64 b b)))) (neg.f64 (fma.f64 (*.f64 (*.f64 a a) a) a (*.f64 (*.f64 b b) (fma.f64 b b (*.f64 a a))))))
(/.f64 (-.f64 (*.f64 (*.f64 (*.f64 b b) b) b) (*.f64 (*.f64 (*.f64 a a) a) a)) (-.f64 (*.f64 (neg.f64 b) b) (*.f64 a a)))
(/.f64 (*.f64 (fma.f64 b b (*.f64 a a)) (*.f64 (-.f64 a b) (+.f64 b a))) (fma.f64 b b (*.f64 a a)))
(/.f64 (fma.f64 (*.f64 (*.f64 (*.f64 b b) b) b) (*.f64 (neg.f64 b) b) (*.f64 (*.f64 (*.f64 (*.f64 a a) a) a) (*.f64 a a))) (fma.f64 (*.f64 (*.f64 a a) a) a (-.f64 (*.f64 (*.f64 (*.f64 b b) b) b) (*.f64 (*.f64 a a) (*.f64 (neg.f64 b) b)))))
(/.f64 (fma.f64 (*.f64 (*.f64 (*.f64 b b) b) b) (*.f64 (neg.f64 b) b) (*.f64 (*.f64 (*.f64 (*.f64 a a) a) a) (*.f64 a a))) (fma.f64 (*.f64 (*.f64 b b) b) b (*.f64 (*.f64 a a) (fma.f64 b b (*.f64 a a)))))
(/.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 a a) a) a) (*.f64 a a)) (*.f64 (*.f64 (*.f64 (*.f64 b b) b) b) (*.f64 b b))) (fma.f64 (*.f64 (*.f64 a a) a) a (*.f64 (*.f64 b b) (fma.f64 b b (*.f64 a a)))))
(fma.f64 (*.f64 #s(literal -1 binary64) (fabs.f64 b)) (fabs.f64 b) (*.f64 a a))
(fma.f64 (*.f64 #s(literal -1 binary64) (neg.f64 b)) (neg.f64 b) (*.f64 a a))
(fma.f64 (*.f64 #s(literal -1 binary64) b) b (*.f64 a a))
(fma.f64 (*.f64 #s(literal 1 binary64) (fabs.f64 a)) (*.f64 #s(literal 1 binary64) (fabs.f64 a)) (*.f64 (neg.f64 b) b))
(fma.f64 (*.f64 #s(literal 1 binary64) (fabs.f64 a)) (fabs.f64 a) (*.f64 (neg.f64 b) b))
(fma.f64 (*.f64 #s(literal 1 binary64) (neg.f64 a)) (*.f64 #s(literal 1 binary64) (neg.f64 a)) (*.f64 (neg.f64 b) b))
(fma.f64 (*.f64 #s(literal 1 binary64) (neg.f64 a)) (neg.f64 a) (*.f64 (neg.f64 b) b))
(fma.f64 (*.f64 #s(literal 1 binary64) a) (*.f64 #s(literal 1 binary64) a) (*.f64 (neg.f64 b) b))
(fma.f64 (*.f64 #s(literal 1 binary64) a) a (*.f64 (neg.f64 b) b))
(fma.f64 (*.f64 (fabs.f64 a) #s(literal 1 binary64)) (*.f64 (fabs.f64 a) #s(literal 1 binary64)) (*.f64 (neg.f64 b) b))
(fma.f64 (*.f64 (neg.f64 a) #s(literal 1 binary64)) (*.f64 (neg.f64 a) #s(literal 1 binary64)) (*.f64 (neg.f64 b) b))
(fma.f64 (*.f64 a #s(literal 1 binary64)) (*.f64 a #s(literal 1 binary64)) (*.f64 (neg.f64 b) b))
(fma.f64 (fabs.f64 (fabs.f64 a)) (fabs.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 (neg.f64 (fabs.f64 a)) (neg.f64 (fabs.f64 a)) (*.f64 (neg.f64 b) b))
(fma.f64 (neg.f64 (neg.f64 a)) (neg.f64 (neg.f64 a)) (*.f64 (neg.f64 b) b))
(fma.f64 (exp.f64 (log.f64 a)) (exp.f64 (log.f64 a)) (*.f64 (neg.f64 b) b))
(fma.f64 (fabs.f64 b) (*.f64 (fabs.f64 b) #s(literal -1 binary64)) (*.f64 a a))
(fma.f64 (fabs.f64 b) (neg.f64 (fabs.f64 b)) (*.f64 a a))
(fma.f64 (fabs.f64 a) (*.f64 (fabs.f64 a) #s(literal 1 binary64)) (*.f64 (neg.f64 b) b))
(fma.f64 (fabs.f64 a) (fabs.f64 a) (*.f64 (neg.f64 b) b))
(fma.f64 (neg.f64 b) (*.f64 (neg.f64 b) #s(literal -1 binary64)) (*.f64 a a))
(fma.f64 (neg.f64 b) (neg.f64 (neg.f64 b)) (*.f64 a a))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(fma.f64 (neg.f64 a) (*.f64 (neg.f64 a) #s(literal 1 binary64)) (*.f64 (neg.f64 b) b))
(fma.f64 (neg.f64 a) (neg.f64 a) (*.f64 (neg.f64 b) b))
(fma.f64 #s(literal 1 binary64) (*.f64 a a) (*.f64 (neg.f64 b) b))
(fma.f64 (*.f64 a a) #s(literal 1 binary64) (*.f64 (neg.f64 b) b))
(fma.f64 (*.f64 b b) #s(literal -1 binary64) (*.f64 a a))
(fma.f64 #s(literal -1 binary64) (*.f64 b b) (*.f64 a a))
(fma.f64 b (*.f64 b #s(literal -1 binary64)) (*.f64 a a))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(fma.f64 a (*.f64 a #s(literal 1 binary64)) (*.f64 (neg.f64 b) b))
(fma.f64 a a (*.f64 (neg.f64 b) b))
(-.f64 (/.f64 (*.f64 (*.f64 (*.f64 b b) b) b) (-.f64 (*.f64 (neg.f64 b) b) (*.f64 a a))) (/.f64 (*.f64 (*.f64 (*.f64 a a) a) a) (-.f64 (*.f64 (neg.f64 b) b) (*.f64 a a))))
(-.f64 (/.f64 (*.f64 (*.f64 (*.f64 a a) a) a) (fma.f64 b b (*.f64 a a))) (/.f64 (*.f64 (*.f64 (*.f64 b b) b) b) (fma.f64 b b (*.f64 a a))))
(-.f64 (/.f64 (*.f64 (*.f64 (*.f64 (*.f64 a a) a) a) (*.f64 a a)) (fma.f64 (*.f64 (*.f64 a a) a) a (*.f64 (*.f64 b b) (fma.f64 b b (*.f64 a a))))) (/.f64 (*.f64 (*.f64 (*.f64 (*.f64 b b) b) b) (*.f64 b b)) (fma.f64 (*.f64 (*.f64 a a) a) a (*.f64 (*.f64 b b) (fma.f64 b b (*.f64 a a))))))
(-.f64 (*.f64 a a) (*.f64 (*.f64 (neg.f64 b) b) #s(literal -1 binary64)))
(-.f64 (*.f64 a a) (*.f64 #s(literal 1 binary64) (*.f64 b b)))
(-.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 (neg.f64 a) a))
(+.f64 (/.f64 (*.f64 (*.f64 (*.f64 (*.f64 b b) b) b) (*.f64 (neg.f64 b) b)) (fma.f64 (*.f64 (*.f64 b b) b) b (*.f64 (*.f64 a a) (fma.f64 b b (*.f64 a a))))) (/.f64 (*.f64 (*.f64 (*.f64 (*.f64 a a) a) a) (*.f64 a a)) (fma.f64 (*.f64 (*.f64 b b) b) b (*.f64 (*.f64 a a) (fma.f64 b b (*.f64 a a))))))
(+.f64 (*.f64 a a) (*.f64 (neg.f64 b) b))
(+.f64 (*.f64 (neg.f64 b) b) (*.f64 a a))
(*.f64 (*.f64 #s(literal 1 binary64) (fabs.f64 a)) (*.f64 #s(literal 1 binary64) (fabs.f64 a)))
(*.f64 (*.f64 #s(literal 1 binary64) (fabs.f64 a)) (fabs.f64 a))
(*.f64 (*.f64 #s(literal 1 binary64) (neg.f64 a)) (*.f64 #s(literal 1 binary64) (neg.f64 a)))
(*.f64 (*.f64 #s(literal 1 binary64) (neg.f64 a)) (neg.f64 a))
(*.f64 (*.f64 #s(literal 1 binary64) a) (*.f64 #s(literal 1 binary64) a))
(*.f64 (*.f64 #s(literal 1 binary64) a) a)
(*.f64 (*.f64 (fabs.f64 a) #s(literal 1 binary64)) (*.f64 (fabs.f64 a) #s(literal 1 binary64)))
(*.f64 (*.f64 (neg.f64 a) #s(literal 1 binary64)) (*.f64 (neg.f64 a) #s(literal 1 binary64)))
(*.f64 (*.f64 a #s(literal 1 binary64)) (*.f64 a #s(literal 1 binary64)))
(*.f64 (fabs.f64 (fabs.f64 a)) (fabs.f64 (fabs.f64 a)))
(*.f64 (neg.f64 (fabs.f64 a)) (neg.f64 (fabs.f64 a)))
(*.f64 (neg.f64 (neg.f64 a)) (neg.f64 (neg.f64 a)))
(*.f64 (exp.f64 (log.f64 a)) (exp.f64 (log.f64 a)))
(*.f64 (fabs.f64 a) (*.f64 (fabs.f64 a) #s(literal 1 binary64)))
(*.f64 (fabs.f64 a) (fabs.f64 a))
(*.f64 (neg.f64 a) (*.f64 (neg.f64 a) #s(literal 1 binary64)))
(*.f64 (neg.f64 a) (neg.f64 a))
(*.f64 #s(literal 1 binary64) (*.f64 a a))
(*.f64 (*.f64 a a) #s(literal 1 binary64))
(*.f64 a (*.f64 a #s(literal 1 binary64)))
(*.f64 a a)
(pow.f64 (exp.f64 (log.f64 a)) #s(literal 2 binary64))
(pow.f64 (fabs.f64 a) #s(literal 2 binary64))
(pow.f64 (neg.f64 a) #s(literal 2 binary64))
(pow.f64 (*.f64 a a) #s(literal 1 binary64))
(pow.f64 a #s(literal 2 binary64))
(/.f64 (*.f64 #s(literal 2 binary64) (*.f64 a a)) #s(literal 2 binary64))
(/.f64 (*.f64 (*.f64 a a) #s(literal 2 binary64)) #s(literal 2 binary64))
(neg.f64 (*.f64 #s(literal -1 binary64) (*.f64 a a)))
(neg.f64 (*.f64 (*.f64 a a) #s(literal -1 binary64)))
(neg.f64 (*.f64 (neg.f64 a) a))
(fabs.f64 (*.f64 a a))
(exp.f64 (+.f64 #s(literal 0 binary64) (*.f64 (log.f64 a) #s(literal 2 binary64))))
(exp.f64 (fma.f64 (log.f64 a) #s(literal 2 binary64) #s(literal 0 binary64)))
(exp.f64 (*.f64 (log.f64 a) #s(literal 2 binary64)))
(+.f64 (cosh.f64 (*.f64 (log.f64 a) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 a) #s(literal 2 binary64))))
a
(*.f64 (fabs.f64 (fabs.f64 b)) (fabs.f64 (fabs.f64 b)))
(*.f64 (neg.f64 (fabs.f64 b)) (neg.f64 (fabs.f64 b)))
(*.f64 (neg.f64 (neg.f64 b)) (neg.f64 (neg.f64 b)))
(*.f64 (exp.f64 (log.f64 b)) (exp.f64 (log.f64 b)))
(*.f64 (fabs.f64 b) (fabs.f64 b))
(*.f64 (neg.f64 b) (neg.f64 b))
(*.f64 b b)
(pow.f64 (exp.f64 (log.f64 b)) #s(literal 2 binary64))
(pow.f64 (fabs.f64 b) #s(literal 2 binary64))
(pow.f64 (neg.f64 b) #s(literal 2 binary64))
(pow.f64 (*.f64 b b) #s(literal 1 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)))
(+.f64 (cosh.f64 (*.f64 (log.f64 b) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 b) #s(literal 2 binary64))))
b
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
#s(approx (- (* a a) (* b b)) (*.f64 (-.f64 a b) (+.f64 b a)))
#s(approx (* a a) (*.f64 a a))
#s(approx a a)
#s(approx (- (* a a) (* b b)) (*.f64 (-.f64 #s(literal 1 binary64) (*.f64 b (/.f64 b (*.f64 a a)))) (*.f64 a a)))
#s(approx (- (* a a) (* b b)) (*.f64 (-.f64 a b) (+.f64 b a)))
#s(approx (* b b) (*.f64 b b))
#s(approx b b)
#s(approx (- (* a a) (* b b)) (*.f64 (*.f64 (fma.f64 a (/.f64 a (*.f64 b b)) #s(literal -1 binary64)) b) b))

eval33.0ms (3.1%)

Memory
-17.9MiB live, 30.5MiB allocated; 14ms collecting garbage
Compiler

Compiled 1 599 to 294 computations (81.6% saved)

prune3.0ms (0.3%)

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

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New1202122
Fresh000
Picked101
Done000
Total1212123
Accuracy
100.0%
Counts
123 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (-.f64 a b) (+.f64 b a))
55.9%
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
Compiler

Compiled 19 to 13 computations (31.6% saved)

series6.0ms (0.6%)

Memory
11.9MiB live, 11.9MiB allocated; 0ms collecting garbage
Counts
8 → 31
Calls
Call 1
Inputs
#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)
a
(+.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 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 a #s(hole binary64 a))
#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) (+ 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 (+ 1 (* -1 (/ b 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 (* (- 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
1.0ms
b
@-inf
((- (* a a) (* b b)) (* (neg b) b) (neg b) b (* (- a b) (+ b a)) (- a b) a (+ b a))
1.0ms
b
@inf
((- (* a a) (* b b)) (* (neg b) b) (neg b) b (* (- a b) (+ b a)) (- a b) a (+ b a))
1.0ms
a
@-inf
((- (* a a) (* b b)) (* (neg b) b) (neg b) b (* (- a b) (+ b a)) (- a b) a (+ b a))
1.0ms
a
@0
((- (* a a) (* b b)) (* (neg b) b) (neg b) b (* (- a b) (+ b a)) (- a b) a (+ b a))
1.0ms
a
@inf
((- (* a a) (* b b)) (* (neg b) b) (neg b) b (* (- a b) (+ b a)) (- a b) a (+ b a))

rewrite68.0ms (6.5%)

Memory
-14.3MiB live, 79.1MiB allocated; 5ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0134556
0138506
0807497
Stop Event
iter-limit
iter-limit
node-limit
iter-limit
Counts
39 → 72
Calls
Call 1
Inputs
#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)
a
(+.f64 b a)
#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 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 a #s(hole binary64 a))
#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) (+ 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 (+ 1 (* -1 (/ b 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 (* (- 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 b) (+ b a)) (*.f64 (neg.f64 b) b))
(*.f64 (neg.f64 b) b)
(*.f64 (*.f64 b b) #s(literal -1 binary64))
(*.f64 #s(literal -1 binary64) (*.f64 b b))
(*.f64 b (neg.f64 b))
(neg.f64 (*.f64 b b))
(*.f64 #s(literal -1 binary64) b)
(*.f64 b #s(literal -1 binary64))
(neg.f64 b)
b
(*.f64 (+.f64 b a) (-.f64 a b))
(*.f64 (-.f64 a b) (+.f64 b a))
(/.f64 (-.f64 (*.f64 (*.f64 (neg.f64 b) b) (*.f64 (neg.f64 b) b)) (*.f64 (*.f64 a a) (*.f64 a a))) (-.f64 (*.f64 (neg.f64 b) b) (*.f64 a a)))
(/.f64 (-.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (*.f64 (*.f64 b b) (*.f64 b b))) (fma.f64 a a (*.f64 b b)))
(/.f64 (+.f64 (pow.f64 (*.f64 (neg.f64 b) b) #s(literal 3 binary64)) (pow.f64 (*.f64 a a) #s(literal 3 binary64))) (fma.f64 (*.f64 (neg.f64 b) b) (*.f64 (neg.f64 b) b) (-.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (*.f64 (*.f64 (neg.f64 b) b) (*.f64 a a)))))
(/.f64 (-.f64 (pow.f64 (*.f64 a a) #s(literal 3 binary64)) (pow.f64 (*.f64 b b) #s(literal 3 binary64))) (fma.f64 (*.f64 a a) (*.f64 a a) (fma.f64 (*.f64 b b) (*.f64 b b) (*.f64 (*.f64 a a) (*.f64 b b)))))
(fma.f64 (pow.f64 a #s(literal 1 binary64)) (pow.f64 a #s(literal 1 binary64)) (*.f64 (neg.f64 b) b))
(fma.f64 (fabs.f64 a) (fabs.f64 a) (*.f64 (neg.f64 b) b))
(fma.f64 (neg.f64 a) (neg.f64 a) (*.f64 (neg.f64 b) b))
(fma.f64 (neg.f64 b) b (*.f64 a a))
(fma.f64 (-.f64 a b) b (*.f64 (-.f64 a b) a))
(fma.f64 (*.f64 b b) #s(literal -1 binary64) (*.f64 a a))
(fma.f64 #s(literal -1 binary64) (*.f64 b b) (*.f64 a a))
(fma.f64 b (neg.f64 b) (*.f64 a a))
(fma.f64 b (-.f64 a b) (*.f64 a (-.f64 a b)))
(fma.f64 a a (*.f64 (neg.f64 b) b))
(-.f64 (*.f64 a a) (*.f64 b b))
(+.f64 (*.f64 (-.f64 a b) b) (*.f64 (-.f64 a b) a))
(+.f64 (*.f64 b (-.f64 a b)) (*.f64 a (-.f64 a b)))
(+.f64 (*.f64 a a) (*.f64 (neg.f64 b) b))
(+.f64 (*.f64 (neg.f64 b) b) (*.f64 a a))
(/.f64 (-.f64 (pow.f64 a #s(literal 3 binary64)) (pow.f64 b #s(literal 3 binary64))) (fma.f64 a a (fma.f64 b b (*.f64 a b))))
(/.f64 (*.f64 (+.f64 b a) (-.f64 a b)) (+.f64 b a))
(-.f64 a b)
a
(/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (-.f64 b a))
(/.f64 (+.f64 (pow.f64 b #s(literal 3 binary64)) (pow.f64 a #s(literal 3 binary64))) (fma.f64 b b (-.f64 (*.f64 a 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 a b))))
(/.f64 (*.f64 (+.f64 b a) (-.f64 a b)) (-.f64 a b))
(+.f64 b a)
(+.f64 a b)
#s(approx (* (- a b) (+ b a)) (*.f64 (neg.f64 b) b))
#s(approx (* (- a b) (+ b a)) (*.f64 (+.f64 b a) (-.f64 a b)))
#s(approx (* (- a b) (+ b a)) (fma.f64 (neg.f64 b) b (*.f64 (*.f64 #s(literal 0 binary64) b) a)))
#s(approx (* (- a b) (+ b a)) (fma.f64 (neg.f64 b) b (*.f64 (fma.f64 #s(literal 0 binary64) b a) a)))
#s(approx (- a b) (neg.f64 b))
#s(approx (- a b) (-.f64 a b))
#s(approx a a)
#s(approx (+ b a) b)
#s(approx (+ b a) (+.f64 b a))
#s(approx (* (- a b) (+ b a)) (*.f64 a a))
#s(approx (* (- a b) (+ b a)) (*.f64 (+.f64 (/.f64 (*.f64 (neg.f64 b) b) (*.f64 a a)) #s(literal 1 binary64)) (*.f64 a a)))
#s(approx (* (- a b) (+ b a)) (*.f64 (fma.f64 #s(literal 0 binary64) (/.f64 b a) #s(literal 1 binary64)) (*.f64 a a)))
#s(approx (* (- a b) (+ b a)) (*.f64 (+.f64 (+.f64 (+.f64 (/.f64 (neg.f64 b) a) (/.f64 (*.f64 (neg.f64 b) b) (*.f64 a a))) (/.f64 b a)) #s(literal 1 binary64)) (*.f64 a a)))
#s(approx (- a b) (*.f64 (+.f64 (/.f64 (neg.f64 b) a) #s(literal 1 binary64)) a))
#s(approx (+ b a) (*.f64 (+.f64 (/.f64 b a) #s(literal 1 binary64)) a))
#s(approx (* (- a b) (+ b a)) (*.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 (*.f64 b b) a) (neg.f64 (*.f64 #s(literal 0 binary64) b))) a)) #s(literal 1 binary64)) (*.f64 a a)))
#s(approx (- a b) (*.f64 (neg.f64 a) (-.f64 (/.f64 b a) #s(literal 1 binary64))))
#s(approx (+ b a) (*.f64 (neg.f64 a) (-.f64 (/.f64 (neg.f64 b) a) #s(literal 1 binary64))))
#s(approx (* (- a b) (+ b a)) (*.f64 (+.f64 b a) (-.f64 a b)))
#s(approx (* (- a b) (+ b a)) (fma.f64 (*.f64 #s(literal 0 binary64) a) b (*.f64 a a)))
#s(approx (* (- a b) (+ b a)) (fma.f64 (fma.f64 #s(literal 0 binary64) a (neg.f64 b)) b (*.f64 a a)))
#s(approx (- a b) (+.f64 (neg.f64 b) a))
#s(approx (* (- a b) (+ b a)) (*.f64 (-.f64 (/.f64 (*.f64 a a) (*.f64 b b)) #s(literal 1 binary64)) (*.f64 b b)))
#s(approx (* (- a b) (+ b a)) (*.f64 (-.f64 (*.f64 #s(literal 0 binary64) (/.f64 a b)) #s(literal 1 binary64)) (*.f64 b b)))
#s(approx (* (- a b) (+ b a)) (*.f64 (-.f64 (fma.f64 #s(literal 0 binary64) (/.f64 a b) (/.f64 (*.f64 a a) (*.f64 b b))) #s(literal 1 binary64)) (*.f64 b b)))
#s(approx (- a b) (*.f64 (-.f64 (/.f64 a b) #s(literal 1 binary64)) b))
#s(approx (+ b a) (*.f64 (+.f64 (/.f64 a b) #s(literal 1 binary64)) b))
#s(approx (* (- a b) (+ b a)) (*.f64 (-.f64 (neg.f64 (*.f64 #s(literal 0 binary64) (/.f64 a b))) #s(literal 1 binary64)) (*.f64 b b)))
#s(approx (* (- a b) (+ b a)) (*.f64 (-.f64 (neg.f64 (/.f64 (fma.f64 #s(literal 0 binary64) a (neg.f64 (/.f64 (*.f64 a a) b))) b)) #s(literal 1 binary64)) (*.f64 b b)))
#s(approx (- a b) (*.f64 (neg.f64 b) (+.f64 (/.f64 (neg.f64 a) b) #s(literal 1 binary64))))
#s(approx (+ b a) (*.f64 (neg.f64 b) (-.f64 (/.f64 (neg.f64 a) b) #s(literal 1 binary64))))

eval6.0ms (0.6%)

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

Compiled 959 to 218 computations (77.3% saved)

prune20.0ms (1.9%)

Memory
-38.8MiB live, 7.3MiB allocated; 3ms collecting garbage
Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New61263
Fresh000
Picked022
Done000
Total61465
Accuracy
100.0%
Counts
65 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (-.f64 a b) (+.f64 b a))
55.3%
(*.f64 #s(approx (- a b) (neg.f64 b)) (+.f64 b a))
55.9%
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
54.4%
#s(approx (* (- a b) (+ b a)) (*.f64 a a))
Compiler

Compiled 40 to 27 computations (32.5% saved)

series3.0ms (0.3%)

Memory
8.3MiB live, 8.3MiB allocated; 0ms collecting garbage
Counts
8 → 27
Calls
Call 1
Inputs
#s(approx (* (- a b) (+ b a)) (*.f64 a a))
(*.f64 a a)
a
(*.f64 #s(approx (- a b) (neg.f64 b)) (+.f64 b a))
#s(approx (- a b) (neg.f64 b))
(neg.f64 b)
b
(+.f64 b a)
Outputs
#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 a) #s(hole binary64 (pow a 2)))
#s(approx a #s(hole binary64 a))
#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 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 (+ 1 (* -1 (/ b 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 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 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
1.0ms
a
@-inf
((* (- a b) (+ b a)) (* a a) a (* (- a b) (+ b a)) (- a b) (neg b) b (+ b a))
1.0ms
a
@inf
((* (- a b) (+ b a)) (* a a) a (* (- a b) (+ b a)) (- a b) (neg b) b (+ b a))
0.0ms
b
@-inf
((* (- a b) (+ b a)) (* a a) a (* (- a b) (+ b a)) (- a b) (neg b) b (+ b a))
0.0ms
a
@0
((* (- a b) (+ b a)) (* a a) a (* (- a b) (+ b a)) (- a b) (neg b) b (+ b a))
0.0ms
b
@inf
((* (- a b) (+ b a)) (* a a) a (* (- a b) (+ b a)) (- a b) (neg b) b (+ b a))

rewrite61.0ms (5.8%)

Memory
3.7MiB live, 99.4MiB allocated; 11ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0122480
0127433
0739424
Stop Event
iter-limit
iter-limit
node-limit
iter-limit
Counts
35 → 52
Calls
Call 1
Inputs
#s(approx (* (- a b) (+ b a)) (*.f64 a a))
(*.f64 a a)
a
(*.f64 #s(approx (- a b) (neg.f64 b)) (+.f64 b a))
#s(approx (- a b) (neg.f64 b))
(neg.f64 b)
b
(+.f64 b 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 a) #s(hole binary64 (pow a 2)))
#s(approx a #s(hole binary64 a))
#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 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 (+ 1 (* -1 (/ b 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 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 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 b) (+ b a)) (*.f64 a a))
(*.f64 (pow.f64 a #s(literal 1 binary64)) (pow.f64 a #s(literal 1 binary64)))
(*.f64 (fabs.f64 a) (fabs.f64 a))
(*.f64 (neg.f64 a) (neg.f64 a))
(*.f64 a a)
(pow.f64 a #s(literal 2 binary64))
(exp.f64 (*.f64 (log.f64 a) #s(literal 2 binary64)))
a
(*.f64 #s(approx (- a b) (neg.f64 b)) (+.f64 b a))
(*.f64 (+.f64 b a) #s(approx (- a b) (neg.f64 b)))
(fma.f64 #s(approx (- a b) (neg.f64 b)) b (*.f64 #s(approx (- a b) (neg.f64 b)) a))
(fma.f64 b #s(approx (- a b) (neg.f64 b)) (*.f64 a #s(approx (- a b) (neg.f64 b))))
(+.f64 (*.f64 #s(approx (- a b) (neg.f64 b)) b) (*.f64 #s(approx (- a b) (neg.f64 b)) a))
(+.f64 (*.f64 b #s(approx (- a b) (neg.f64 b))) (*.f64 a #s(approx (- a b) (neg.f64 b))))
#s(approx (- a b) (neg.f64 b))
(*.f64 #s(literal -1 binary64) b)
(*.f64 b #s(literal -1 binary64))
(neg.f64 b)
b
(/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (-.f64 b a))
(/.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (-.f64 a b))
(/.f64 (+.f64 (pow.f64 b #s(literal 3 binary64)) (pow.f64 a #s(literal 3 binary64))) (fma.f64 b b (-.f64 (*.f64 a 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 a b))))
(+.f64 b a)
(+.f64 a b)
#s(approx (* (- a b) (+ b a)) (neg.f64 (*.f64 b b)))
#s(approx (* (- a b) (+ b a)) (fma.f64 (*.f64 #s(literal 0 binary64) b) a (neg.f64 (*.f64 b b))))
#s(approx (* (- a b) (+ b a)) (fma.f64 (fma.f64 #s(literal 0 binary64) b a) a (neg.f64 (*.f64 b b))))
#s(approx (* a a) (*.f64 a a))
#s(approx a a)
#s(approx (- a b) (neg.f64 b))
#s(approx (- a b) (-.f64 a b))
#s(approx (+ b a) b)
#s(approx (+ b a) (+.f64 b a))
#s(approx (* (- a b) (+ b a)) (*.f64 (fma.f64 #s(literal 0 binary64) (/.f64 b a) #s(literal 1 binary64)) (*.f64 a a)))
#s(approx (* (- a b) (+ b a)) (*.f64 (+.f64 (+.f64 (+.f64 (/.f64 (neg.f64 b) a) (/.f64 (neg.f64 (*.f64 b b)) (*.f64 a a))) (/.f64 b a)) #s(literal 1 binary64)) (*.f64 a a)))
#s(approx (- a b) (*.f64 (+.f64 (/.f64 (neg.f64 b) a) #s(literal 1 binary64)) a))
#s(approx (+ b a) (*.f64 (+.f64 (/.f64 b a) #s(literal 1 binary64)) a))
#s(approx (* (- a b) (+ b a)) (*.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 (*.f64 b b) a) (neg.f64 (*.f64 #s(literal 0 binary64) b))) a)) #s(literal 1 binary64)) (*.f64 a a)))
#s(approx (- a b) (*.f64 (neg.f64 a) (-.f64 (/.f64 b a) #s(literal 1 binary64))))
#s(approx (+ b a) (*.f64 (neg.f64 a) (-.f64 (/.f64 (neg.f64 b) a) #s(literal 1 binary64))))
#s(approx (* (- a b) (+ b a)) (fma.f64 (*.f64 #s(literal 0 binary64) a) b (*.f64 a a)))
#s(approx (* (- a b) (+ b a)) (fma.f64 (fma.f64 #s(literal 0 binary64) a (neg.f64 b)) b (*.f64 a a)))
#s(approx (- a b) (+.f64 (neg.f64 b) a))
#s(approx (* (- a b) (+ b a)) (*.f64 (-.f64 (*.f64 #s(literal 0 binary64) (/.f64 a b)) #s(literal 1 binary64)) (*.f64 b b)))
#s(approx (* (- a b) (+ b a)) (*.f64 (-.f64 (fma.f64 #s(literal 0 binary64) (/.f64 a b) (/.f64 (*.f64 a a) (*.f64 b b))) #s(literal 1 binary64)) (*.f64 b b)))
#s(approx (- a b) (*.f64 (-.f64 (/.f64 a b) #s(literal 1 binary64)) b))
#s(approx (+ b a) (*.f64 (+.f64 (/.f64 a b) #s(literal 1 binary64)) b))
#s(approx (* (- a b) (+ b a)) (*.f64 (-.f64 (neg.f64 (*.f64 #s(literal 0 binary64) (/.f64 a b))) #s(literal 1 binary64)) (*.f64 b b)))
#s(approx (* (- a b) (+ b a)) (*.f64 (-.f64 (neg.f64 (/.f64 (fma.f64 #s(literal 0 binary64) a (neg.f64 (/.f64 (*.f64 a a) b))) b)) #s(literal 1 binary64)) (*.f64 b b)))
#s(approx (- a b) (*.f64 (neg.f64 b) (+.f64 (/.f64 (neg.f64 a) b) #s(literal 1 binary64))))
#s(approx (+ b a) (*.f64 (neg.f64 b) (-.f64 (/.f64 (neg.f64 a) b) #s(literal 1 binary64))))

eval4.0ms (0.4%)

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

Compiled 738 to 174 computations (76.4% saved)

prune3.0ms (0.3%)

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

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New44044
Fresh000
Picked022
Done022
Total44448
Accuracy
100.0%
Counts
48 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (-.f64 a b) (+.f64 b a))
55.3%
(*.f64 #s(approx (- a b) (neg.f64 b)) (+.f64 b a))
55.9%
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
54.4%
#s(approx (* (- a b) (+ b a)) (*.f64 a a))
Compiler

Compiled 87 to 47 computations (46% saved)

regimes49.0ms (4.6%)

Memory
-14.2MiB live, 32.2MiB allocated; 5ms collecting garbage
Counts
5 → 1
Calls
Call 1
Inputs
#s(approx (* (- a b) (+ b a)) (*.f64 a a))
#s(approx (- (* a a) (* b b)) (*.f64 (neg.f64 b) b))
(*.f64 #s(approx (- a b) (neg.f64 b)) (+.f64 b a))
(*.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:

2.0ms
b
2.0ms
a
2.0ms
(-.f64 (*.f64 a a) (*.f64 b b))
2.0ms
(*.f64 a a)
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.7%)

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

5 calls:

1.0ms
a
1.0ms
b
1.0ms
(-.f64 (*.f64 a a) (*.f64 b b))
1.0ms
(*.f64 a a)
1.0ms
(*.f64 b b)
Results
AccuracySegmentsBranch
83.4%2(*.f64 b b)
81.3%2(*.f64 a a)
96.8%2(-.f64 (*.f64 a a) (*.f64 b b))
81.3%2a
83.4%2b
Compiler

Compiled 15 to 15 computations (0% saved)

regimes7.0ms (0.7%)

Memory
-27.6MiB live, 19.2MiB allocated; 2ms collecting garbage
Accuracy

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

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

5 calls:

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

Compiled 15 to 15 computations (0% saved)

bsearch0.0ms (0%)

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

Compiled 10 to 10 computations (0% saved)

derivations29.0ms (2.7%)

Memory
-12.7MiB live, 53.5MiB allocated; 13ms collecting garbage
Stop Event
done
Compiler

Compiled 51 to 21 computations (58.8% saved)

preprocess60.0ms (5.7%)

Memory
26.0MiB live, 114.8MiB allocated; 8ms collecting garbage
Remove

(abs b)

(abs a)

Compiler

Compiled 269 to 151 computations (43.9% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...