Expanding a square

Time bar (total: 3.2s)

start0.0ms (0%)

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

analyze0.0ms (0%)

Memory
0.2MiB live, 0.2MiB allocated; 0ms collecting garbage
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
100%100%0%0%0%0%0%1
Compiler

Compiled 11 to 7 computations (36.4% saved)

sample1.1s (35.3%)

Memory
59.5MiB live, 649.0MiB allocated; 919ms collecting garbage
Samples
279.0ms1 591×2valid
203.0ms2 422×1valid
148.0ms4 243×0valid
Precisions
Click to see histograms. Total time spent on operations: 383.0ms
adjust: 129.0ms (33.7% of total)
ival-mult: 96.0ms (25.1% of total)
ival-add: 81.0ms (21.1% of total)
ival-sub: 64.0ms (16.7% of total)
ival-true: 5.0ms (1.3% of total)
exact: 5.0ms (1.3% of total)
ival-assert: 3.0ms (0.8% of total)
Bogosity

explain88.0ms (2.7%)

Memory
-10.3MiB live, 88.2MiB allocated; 16ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1230-0-(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
00-0-(+.f64 x #s(literal 1 binary64))
00-0-(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
00-0-#s(literal 1 binary64)
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
-.f64(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))cancellation1230
Confusion
Predicted +Predicted -
+1230
-0133
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+12300
-00133
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0133
1123
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
22.0ms152×1valid
12.0ms88×2valid
11.0ms272×0valid
Compiler

Compiled 55 to 19 computations (65.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 31.0ms
ival-sub: 13.0ms (41.4% of total)
adjust: 8.0ms (25.5% of total)
ival-add: 5.0ms (15.9% of total)
ival-mult: 5.0ms (15.9% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

preprocess164.0ms (5.1%)

Memory
9.9MiB live, 100.3MiB allocated; 7ms collecting garbage
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0723
12319
29511
351010
4206210
059
089
1247
2885
34095
417815
082395
Stop Event
iter limit
node limit
iter limit
node limit
Calls
Call 1
Inputs
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
Outputs
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
(*.f64 (-.f64 x #s(literal -2 binary64)) x)
Compiler

Compiled 9 to 5 computations (44.4% saved)

eval0.0ms (0%)

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

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated; 0ms collecting garbage
Alt Table
Click to see full alt table
StatusAccuracyProgram
55.7%
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
Compiler

Compiled 9 to 5 computations (44.4% saved)

simplify150.0ms (4.7%)

Memory
-50.7MiB live, 66.0MiB allocated; 40ms collecting garbage
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f64 x #s(literal 1 binary64))
cost-diff1
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
cost-diff3
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0521
0821
12419
28817
340917
4178117
0823916
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
Outputs
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
(*.f64 (-.f64 x #s(literal -2 binary64)) x)
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
(fma.f64 (-.f64 x #s(literal -2 binary64)) x #s(literal 1 binary64))
(+.f64 x #s(literal 1 binary64))
(-.f64 x #s(literal -1 binary64))
x
#s(literal 1 binary64)

localize24.0ms (0.7%)

Memory
31.5MiB live, 31.5MiB allocated; 0ms collecting garbage
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(+.f64 x #s(literal 1 binary64))
accuracy0.0078125
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
accuracy28.332959113774468
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
Samples
7.0ms76×1valid
6.0ms44×2valid
5.0ms136×0valid
Compiler

Compiled 23 to 7 computations (69.6% saved)

Precisions
Click to see histograms. Total time spent on operations: 11.0ms
adjust: 4.0ms (35.9% of total)
ival-mult: 3.0ms (26.9% of total)
ival-add: 2.0ms (18% of total)
ival-sub: 2.0ms (18% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series2.0ms (0.1%)

Memory
1.2MiB live, 1.2MiB allocated; 0ms collecting garbage
Counts
3 → 14
Calls
Call 1
Inputs
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* 2 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* x (+ 2 x))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 1))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (+ 1 (* 2 x))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (+ 1 (* x (+ 2 x)))))
#s(approx (+ x 1) #s(hole binary64 1))
#s(approx (+ x 1) #s(hole binary64 (+ 1 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (pow x 2)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (pow x 2)))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (* (pow x 2) (+ 1 (+ (* 2 (/ 1 x)) (/ 1 (pow x 2)))))))
#s(approx (+ x 1) #s(hole binary64 x))
#s(approx (+ x 1) #s(hole binary64 (* x (+ 1 (/ 1 x)))))
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@-inf
((- (* (+ x 1) (+ x 1)) 1) (* (+ x 1) (+ x 1)) (+ x 1))
0.0ms
x
@0
((- (* (+ x 1) (+ x 1)) 1) (* (+ x 1) (+ x 1)) (+ x 1))
0.0ms
x
@inf
((- (* (+ x 1) (+ x 1)) 1) (* (+ x 1) (+ x 1)) (+ x 1))

simplify156.0ms (4.8%)

Memory
-25.9MiB live, 65.6MiB allocated; 7ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
037160
1100152
2305140
31332140
46540140
08255131
Stop Event
iter limit
node limit
Counts
14 → 14
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* 2 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* x (+ 2 x))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 1))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (+ 1 (* 2 x))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (+ 1 (* x (+ 2 x)))))
#s(approx (+ x 1) #s(hole binary64 1))
#s(approx (+ x 1) #s(hole binary64 (+ 1 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (pow x 2)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (pow x 2)))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (* (pow x 2) (+ 1 (+ (* 2 (/ 1 x)) (/ 1 (pow x 2)))))))
#s(approx (+ x 1) #s(hole binary64 x))
#s(approx (+ x 1) #s(hole binary64 (* x (+ 1 (/ 1 x)))))
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* 2 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* x (+ 2 x))))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 1))
#s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (+ 1 (* 2 x))))
#s(approx (* (+ x 1) (+ x 1)) (fma.f64 #s(literal 2 binary64) x #s(literal 1 binary64)))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (+ 1 (* x (+ 2 x)))))
#s(approx (* (+ x 1) (+ x 1)) (fma.f64 (-.f64 x #s(literal -2 binary64)) x #s(literal 1 binary64)))
#s(approx (+ x 1) #s(hole binary64 1))
#s(approx (+ x 1) #s(literal 1 binary64))
#s(approx (+ x 1) #s(hole binary64 (+ 1 x)))
#s(approx (+ x 1) (-.f64 x #s(literal -1 binary64)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (pow x 2)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (pow x 2)))
#s(approx (* (+ x 1) (+ x 1)) (*.f64 x x))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (* (+ x 1) (+ x 1)) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (* (pow x 2) (+ 1 (+ (* 2 (/ 1 x)) (/ 1 (pow x 2)))))))
#s(approx (* (+ x 1) (+ x 1)) (fma.f64 (-.f64 x #s(literal -2 binary64)) x #s(literal 1 binary64)))
#s(approx (+ x 1) #s(hole binary64 x))
#s(approx (+ x 1) x)
#s(approx (+ x 1) #s(hole binary64 (* x (+ 1 (/ 1 x)))))
#s(approx (+ x 1) (-.f64 x #s(literal -1 binary64)))

rewrite42.0ms (1.3%)

Memory
40.5MiB live, 40.5MiB allocated; 0ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0519
0815
15015
047613
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
3 → 84
Calls
Call 1
Inputs
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
Outputs
(*.f64 (+.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)) (-.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)))
(*.f64 (+.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)) (-.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)))
(*.f64 (+.f64 x #s(literal 0 binary64)) (+.f64 x #s(literal 2 binary64)))
(*.f64 (+.f64 x #s(literal 2 binary64)) (+.f64 x #s(literal 0 binary64)))
(/.f64 (neg.f64 (-.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 4 binary64)) #s(literal 1 binary64))) (neg.f64 (-.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)) #s(literal -1 binary64))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 6 binary64)) #s(literal 1 binary64))) (neg.f64 (+.f64 (+.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 4 binary64)) #s(literal 1 binary64)) (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 4 binary64)) #s(literal 1 binary64)) (-.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)) #s(literal -1 binary64)))
(/.f64 (-.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 6 binary64)) #s(literal 1 binary64)) (+.f64 (+.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 4 binary64)) #s(literal 1 binary64)) (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64))))
(fma.f64 (*.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)) (*.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)) #s(literal -1 binary64))
(fma.f64 (*.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)) (*.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)) #s(literal -1 binary64))
(fma.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 1 binary64)) (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 1 binary64)) #s(literal -1 binary64))
(fma.f64 (neg.f64 (neg.f64 (-.f64 x #s(literal -1 binary64)))) (neg.f64 (neg.f64 (-.f64 x #s(literal -1 binary64)))) #s(literal -1 binary64))
(fma.f64 (neg.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64)))) (neg.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64)))) #s(literal -1 binary64))
(fma.f64 (fabs.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64)))) (fabs.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64)))) #s(literal -1 binary64))
(fma.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) (*.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)) #s(literal -1 binary64))
(fma.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) (neg.f64 (-.f64 x #s(literal -1 binary64))) #s(literal -1 binary64))
(fma.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64))) (*.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)) #s(literal -1 binary64))
(fma.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64))) (fabs.f64 (-.f64 x #s(literal -1 binary64))) #s(literal -1 binary64))
(fma.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)) #s(literal 1 binary64) #s(literal -1 binary64))
(fma.f64 (-.f64 x #s(literal -1 binary64)) (-.f64 x #s(literal -1 binary64)) #s(literal -1 binary64))
(fma.f64 (-.f64 x #s(literal -1 binary64)) x (+.f64 x #s(literal 0 binary64)))
(fma.f64 #s(literal 1 binary64) (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)) #s(literal -1 binary64))
(fma.f64 x (-.f64 x #s(literal -1 binary64)) (+.f64 x #s(literal 0 binary64)))
(expm1.f64 (*.f64 (log1p.f64 x) #s(literal 2 binary64)))
(-.f64 (/.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 4 binary64)) (-.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)) #s(literal -1 binary64))) (/.f64 #s(literal 1 binary64) (-.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)) #s(literal -1 binary64))))
(-.f64 (/.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 6 binary64)) (+.f64 (+.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 4 binary64)) #s(literal 1 binary64)) (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)))) (/.f64 #s(literal 1 binary64) (+.f64 (+.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 4 binary64)) #s(literal 1 binary64)) (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)))))
(-.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)) #s(literal 1 binary64))
(+.f64 (fma.f64 x x x) (+.f64 x #s(literal 0 binary64)))
(+.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)) #s(literal -1 binary64))
(*.f64 (*.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)) (*.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)))
(*.f64 (*.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)) (*.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)))
(*.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 1 binary64)) (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 1 binary64)))
(*.f64 (neg.f64 (neg.f64 (-.f64 x #s(literal -1 binary64)))) (neg.f64 (neg.f64 (-.f64 x #s(literal -1 binary64)))))
(*.f64 (neg.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64)))) (neg.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64)))))
(*.f64 (fabs.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64)))) (fabs.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64)))))
(*.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) (*.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)))
(*.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) (neg.f64 (-.f64 x #s(literal -1 binary64))))
(*.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64))) (*.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)))
(*.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64))) (fabs.f64 (-.f64 x #s(literal -1 binary64))))
(*.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)) #s(literal 1 binary64))
(*.f64 (-.f64 x #s(literal -1 binary64)) (-.f64 x #s(literal -1 binary64)))
(*.f64 #s(literal 1 binary64) (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)))
(pow.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 2 binary64))
(pow.f64 (fabs.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 2 binary64))
(pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64))
(/.f64 (*.f64 (fma.f64 x x #s(literal -1 binary64)) (-.f64 x #s(literal -1 binary64))) (-.f64 x #s(literal 1 binary64)))
(/.f64 (*.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64)) (-.f64 x #s(literal -1 binary64))) (fma.f64 x x (-.f64 #s(literal 1 binary64) x)))
(/.f64 (*.f64 (-.f64 x #s(literal -1 binary64)) (fma.f64 x x #s(literal -1 binary64))) (-.f64 x #s(literal 1 binary64)))
(/.f64 (*.f64 (-.f64 x #s(literal -1 binary64)) (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64))) (fma.f64 x x (-.f64 #s(literal 1 binary64) x)))
(/.f64 (-.f64 (*.f64 (fma.f64 x x x) (fma.f64 x x x)) (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64))) (-.f64 (fma.f64 x x x) (-.f64 x #s(literal -1 binary64))))
(/.f64 (+.f64 (pow.f64 (fma.f64 x x x) #s(literal 3 binary64)) (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 3 binary64))) (fma.f64 (fma.f64 x x x) (fma.f64 x x x) (-.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)) (*.f64 (fma.f64 x x x) (-.f64 x #s(literal -1 binary64))))))
(/.f64 (*.f64 (fma.f64 x x #s(literal -1 binary64)) (fma.f64 x x #s(literal -1 binary64))) (*.f64 (-.f64 x #s(literal 1 binary64)) (-.f64 x #s(literal 1 binary64))))
(/.f64 (*.f64 (fma.f64 x x #s(literal -1 binary64)) (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64))) (*.f64 (-.f64 x #s(literal 1 binary64)) (fma.f64 x x (-.f64 #s(literal 1 binary64) x))))
(/.f64 (*.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64)) (fma.f64 x x #s(literal -1 binary64))) (*.f64 (fma.f64 x x (-.f64 #s(literal 1 binary64) x)) (-.f64 x #s(literal 1 binary64))))
(/.f64 (*.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64)) (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64))) (*.f64 (fma.f64 x x (-.f64 #s(literal 1 binary64) x)) (fma.f64 x x (-.f64 #s(literal 1 binary64) x))))
(neg.f64 (*.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) (-.f64 x #s(literal -1 binary64))))
(neg.f64 (*.f64 (-.f64 x #s(literal -1 binary64)) (neg.f64 (-.f64 x #s(literal -1 binary64)))))
(fma.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 1 binary64) (fma.f64 x x x))
(fma.f64 (-.f64 x #s(literal -1 binary64)) x (-.f64 x #s(literal -1 binary64)))
(fma.f64 #s(literal 1 binary64) (-.f64 x #s(literal -1 binary64)) (fma.f64 x x x))
(fma.f64 x (-.f64 x #s(literal -1 binary64)) (-.f64 x #s(literal -1 binary64)))
(-.f64 (fma.f64 x x x) (*.f64 #s(literal -1 binary64) (-.f64 x #s(literal -1 binary64))))
(-.f64 (fma.f64 x x x) (*.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)))
(fabs.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 2 binary64)))
(exp.f64 (*.f64 (log1p.f64 x) #s(literal 2 binary64)))
(+.f64 (fma.f64 x x x) (-.f64 x #s(literal -1 binary64)))
(+.f64 (-.f64 x #s(literal -1 binary64)) (fma.f64 x x x))
(*.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 1 binary64))
(*.f64 #s(literal 1 binary64) (-.f64 x #s(literal -1 binary64)))
(/.f64 (*.f64 (fma.f64 x x #s(literal -1 binary64)) #s(literal 1 binary64)) (-.f64 x #s(literal 1 binary64)))
(/.f64 (*.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64)) #s(literal 1 binary64)) (fma.f64 x x (-.f64 #s(literal 1 binary64) x)))
(/.f64 (*.f64 #s(literal 1 binary64) (fma.f64 x x #s(literal -1 binary64))) (-.f64 x #s(literal 1 binary64)))
(/.f64 (*.f64 #s(literal 1 binary64) (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64))) (fma.f64 x x (-.f64 #s(literal 1 binary64) x)))
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x)) (-.f64 #s(literal 1 binary64) x))
(/.f64 (neg.f64 (fma.f64 x x #s(literal -1 binary64))) (neg.f64 (-.f64 x #s(literal 1 binary64))))
(/.f64 (neg.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64))) (neg.f64 (fma.f64 x x (-.f64 #s(literal 1 binary64) x))))
(/.f64 (fma.f64 x x #s(literal -1 binary64)) (-.f64 x #s(literal 1 binary64)))
(/.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64)) (+.f64 #s(literal 1 binary64) (-.f64 (*.f64 x x) x)))
(/.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64)) (fma.f64 x x (-.f64 #s(literal 1 binary64) x)))
(-.f64 (/.f64 (*.f64 x x) (-.f64 x #s(literal 1 binary64))) (/.f64 #s(literal 1 binary64) (-.f64 x #s(literal 1 binary64))))
(-.f64 x #s(literal -1 binary64))
(+.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 x x (-.f64 #s(literal 1 binary64) x))) (/.f64 #s(literal 1 binary64) (fma.f64 x x (-.f64 #s(literal 1 binary64) x))))
(+.f64 #s(literal 1 binary64) x)
(+.f64 x #s(literal 1 binary64))

eval30.0ms (0.9%)

Memory
-24.6MiB live, 27.1MiB allocated; 6ms collecting garbage
Compiler

Compiled 1 599 to 311 computations (80.6% saved)

prune5.0ms (0.1%)

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

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New1105115
Fresh000
Picked101
Done000
Total1115116
Accuracy
100.0%
Counts
116 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(fma.f64 (-.f64 x #s(literal -1 binary64)) x (+.f64 x #s(literal 0 binary64)))
3.5%
(-.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64))
100.0%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
53.6%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
49.2%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
Compiler

Compiled 120 to 74 computations (38.3% saved)

simplify114.0ms (3.5%)

Memory
14.4MiB live, 61.0MiB allocated; 2ms collecting garbage
Localize:

Found 12 expressions of interest:

NewMetricScoreProgram
cost-diff0
(-.f64 x #s(literal -2 binary64))
cost-diff0
(*.f64 (-.f64 x #s(literal -2 binary64)) x)
cost-diff0
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
cost-diff0
(*.f64 x x)
cost-diff0
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
cost-diff0
(*.f64 #s(literal 2 binary64) x)
cost-diff0
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
cost-diff0
#s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64))
cost-diff0
(-.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64))
cost-diff0
(-.f64 x #s(literal -1 binary64))
cost-diff1
(fma.f64 (-.f64 x #s(literal -1 binary64)) x (+.f64 x #s(literal 0 binary64)))
cost-diff2
(+.f64 x #s(literal 0 binary64))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02198
03095
15981
220181
383781
4426881
0877179
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(fma.f64 (-.f64 x #s(literal -1 binary64)) x (+.f64 x #s(literal 0 binary64)))
(-.f64 x #s(literal -1 binary64))
x
#s(literal -1 binary64)
(+.f64 x #s(literal 0 binary64))
#s(literal 0 binary64)
(-.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64))
#s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64))
#s(literal 1 binary64)
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
(*.f64 #s(literal 2 binary64) x)
#s(literal 2 binary64)
x
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
(*.f64 x x)
x
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
(*.f64 (-.f64 x #s(literal -2 binary64)) x)
(-.f64 x #s(literal -2 binary64))
x
#s(literal -2 binary64)
Outputs
(fma.f64 (-.f64 x #s(literal -1 binary64)) x (+.f64 x #s(literal 0 binary64)))
(*.f64 (-.f64 x #s(literal -2 binary64)) x)
(-.f64 x #s(literal -1 binary64))
x
#s(literal -1 binary64)
(+.f64 x #s(literal 0 binary64))
x
#s(literal 0 binary64)
(-.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64))
#s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64))
#s(literal 1 binary64)
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
(*.f64 #s(literal 2 binary64) x)
#s(literal 2 binary64)
x
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
(*.f64 x x)
x
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
(*.f64 (-.f64 x #s(literal -2 binary64)) x)
(-.f64 x #s(literal -2 binary64))
x
#s(literal -2 binary64)

localize62.0ms (1.9%)

Memory
-37.5MiB live, 53.3MiB allocated; 6ms collecting garbage
Localize:

Found 12 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(-.f64 x #s(literal -2 binary64))
accuracy0.0
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
accuracy0.01171875
(*.f64 (-.f64 x #s(literal -2 binary64)) x)
accuracy0.0
(*.f64 x x)
accuracy29.703338164879497
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
accuracy0.0
(*.f64 #s(literal 2 binary64) x)
accuracy32.53777428560715
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
accuracy28.332959113774468
(-.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64))
accuracy32.432820716443395
#s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64))
accuracy0.0
(fma.f64 (-.f64 x #s(literal -1 binary64)) x (+.f64 x #s(literal 0 binary64)))
accuracy0.0
(-.f64 x #s(literal -1 binary64))
accuracy0.0
(+.f64 x #s(literal 0 binary64))
Samples
23.0ms76×1valid
13.0ms136×0valid
13.0ms44×2valid
Compiler

Compiled 83 to 19 computations (77.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 33.0ms
ival-sub: 10.0ms (30.7% of total)
adjust: 9.0ms (27.6% of total)
ival-mult: 9.0ms (27.6% of total)
ival-add: 4.0ms (12.3% of total)
exact: 1.0ms (3.1% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

series5.0ms (0.2%)

Memory
4.0MiB live, 4.0MiB allocated; 0ms collecting garbage
Counts
12 → 29
Calls
Call 1
Inputs
(+.f64 x #s(literal 0 binary64))
(fma.f64 (-.f64 x #s(literal -1 binary64)) x (+.f64 x #s(literal 0 binary64)))
(-.f64 x #s(literal -1 binary64))
(-.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64))
#s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
(*.f64 #s(literal 2 binary64) x)
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
(*.f64 x x)
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
(*.f64 (-.f64 x #s(literal -2 binary64)) x)
(-.f64 x #s(literal -2 binary64))
Outputs
#s(approx (+ x 0) #s(hole binary64 x))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* 2 x)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* x (+ 2 x))))
#s(approx (- x -1) #s(hole binary64 1))
#s(approx (- x -1) #s(hole binary64 (+ 1 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* 2 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* x (+ 2 x))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 1))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (+ 1 (* 2 x))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (+ 1 (* x (+ 2 x)))))
#s(approx (* 2 x) #s(hole binary64 (* 2 x)))
#s(approx (* x x) #s(hole binary64 (pow x 2)))
#s(approx (* (- x -2) x) #s(hole binary64 (* 2 x)))
#s(approx (* (- x -2) x) #s(hole binary64 (* x (+ 2 x))))
#s(approx (- x -2) #s(hole binary64 2))
#s(approx (- x -2) #s(hole binary64 (+ 2 x)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (pow x 2)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (- x -1) #s(hole binary64 x))
#s(approx (- x -1) #s(hole binary64 (* x (+ 1 (/ 1 x)))))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (pow x 2)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (pow x 2)))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (* (pow x 2) (+ 1 (+ (* 2 (/ 1 x)) (/ 1 (pow x 2)))))))
#s(approx (* (- x -2) x) #s(hole binary64 (pow x 2)))
#s(approx (* (- x -2) x) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (- x -2) #s(hole binary64 x))
#s(approx (- x -2) #s(hole binary64 (* x (+ 1 (* 2 (/ 1 x))))))
Calls

3 calls:

TimeVariablePointExpression
2.0ms
x
@-inf
((+ x 0) (+ (* (- x -1) x) (+ x 0)) (- x -1) (- (* (+ x 1) (+ x 1)) 1) (* (+ x 1) (+ x 1)) (- (* (+ x 1) (+ x 1)) 1) (* 2 x) (- (* (+ x 1) (+ x 1)) 1) (* x x) (- (* (+ x 1) (+ x 1)) 1) (* (- x -2) x) (- x -2))
1.0ms
x
@0
((+ x 0) (+ (* (- x -1) x) (+ x 0)) (- x -1) (- (* (+ x 1) (+ x 1)) 1) (* (+ x 1) (+ x 1)) (- (* (+ x 1) (+ x 1)) 1) (* 2 x) (- (* (+ x 1) (+ x 1)) 1) (* x x) (- (* (+ x 1) (+ x 1)) 1) (* (- x -2) x) (- x -2))
1.0ms
x
@inf
((+ x 0) (+ (* (- x -1) x) (+ x 0)) (- x -1) (- (* (+ x 1) (+ x 1)) 1) (* (+ x 1) (+ x 1)) (- (* (+ x 1) (+ x 1)) 1) (* 2 x) (- (* (+ x 1) (+ x 1)) 1) (* x x) (- (* (+ x 1) (+ x 1)) 1) (* (- x -2) x) (- x -2))

simplify117.0ms (3.6%)

Memory
-2.3MiB live, 89.3MiB allocated; 22ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
063289
1140261
2540261
33359261
08602252
Stop Event
iter limit
node limit
Counts
29 → 29
Calls
Call 1
Inputs
#s(approx (+ x 0) #s(hole binary64 x))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* 2 x)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* x (+ 2 x))))
#s(approx (- x -1) #s(hole binary64 1))
#s(approx (- x -1) #s(hole binary64 (+ 1 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* 2 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* x (+ 2 x))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 1))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (+ 1 (* 2 x))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (+ 1 (* x (+ 2 x)))))
#s(approx (* 2 x) #s(hole binary64 (* 2 x)))
#s(approx (* x x) #s(hole binary64 (pow x 2)))
#s(approx (* (- x -2) x) #s(hole binary64 (* 2 x)))
#s(approx (* (- x -2) x) #s(hole binary64 (* x (+ 2 x))))
#s(approx (- x -2) #s(hole binary64 2))
#s(approx (- x -2) #s(hole binary64 (+ 2 x)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (pow x 2)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (- x -1) #s(hole binary64 x))
#s(approx (- x -1) #s(hole binary64 (* x (+ 1 (/ 1 x)))))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (pow x 2)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (pow x 2)))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (* (pow x 2) (+ 1 (+ (* 2 (/ 1 x)) (/ 1 (pow x 2)))))))
#s(approx (* (- x -2) x) #s(hole binary64 (pow x 2)))
#s(approx (* (- x -2) x) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (- x -2) #s(hole binary64 x))
#s(approx (- x -2) #s(hole binary64 (* x (+ 1 (* 2 (/ 1 x))))))
Outputs
#s(approx (+ x 0) #s(hole binary64 x))
#s(approx (+ x 0) x)
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* 2 x)))
#s(approx (+ (* (- x -1) x) (+ x 0)) (*.f64 #s(literal 2 binary64) x))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* x (+ 2 x))))
#s(approx (+ (* (- x -1) x) (+ x 0)) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (- x -1) #s(hole binary64 1))
#s(approx (- x -1) #s(literal 1 binary64))
#s(approx (- x -1) #s(hole binary64 (+ 1 x)))
#s(approx (- x -1) (-.f64 x #s(literal -1 binary64)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* 2 x)))
#s(approx (+ (* (- x -1) x) (+ x 0)) (*.f64 #s(literal 2 binary64) x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* x (+ 2 x))))
#s(approx (+ (* (- x -1) x) (+ x 0)) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 1))
#s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (+ 1 (* 2 x))))
#s(approx (* (+ x 1) (+ x 1)) (fma.f64 #s(literal 2 binary64) x #s(literal 1 binary64)))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (+ 1 (* x (+ 2 x)))))
#s(approx (* (+ x 1) (+ x 1)) (fma.f64 (-.f64 x #s(literal -2 binary64)) x #s(literal 1 binary64)))
#s(approx (* 2 x) #s(hole binary64 (* 2 x)))
#s(approx (* 2 x) (*.f64 #s(literal 2 binary64) x))
#s(approx (* x x) #s(hole binary64 (pow x 2)))
#s(approx (* x x) (*.f64 x x))
#s(approx (* (- x -2) x) #s(hole binary64 (* 2 x)))
#s(approx (+ (* (- x -1) x) (+ x 0)) (*.f64 #s(literal 2 binary64) x))
#s(approx (* (- x -2) x) #s(hole binary64 (* x (+ 2 x))))
#s(approx (+ (* (- x -1) x) (+ x 0)) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (- x -2) #s(hole binary64 2))
#s(approx (- x -2) #s(literal 2 binary64))
#s(approx (- x -2) #s(hole binary64 (+ 2 x)))
#s(approx (- x -2) (-.f64 x #s(literal -2 binary64)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (pow x 2)))
#s(approx (+ (* (- x -1) x) (+ x 0)) (*.f64 x x))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (+ (* (- x -1) x) (+ x 0)) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (- x -1) #s(hole binary64 x))
#s(approx (- x -1) x)
#s(approx (- x -1) #s(hole binary64 (* x (+ 1 (/ 1 x)))))
#s(approx (- x -1) (-.f64 x #s(literal -1 binary64)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (pow x 2)))
#s(approx (+ (* (- x -1) x) (+ x 0)) (*.f64 x x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (+ (* (- x -1) x) (+ x 0)) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (pow x 2)))
#s(approx (* (+ x 1) (+ x 1)) (*.f64 x x))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (* (+ x 1) (+ x 1)) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (* (+ x 1) (+ x 1)) #s(hole binary64 (* (pow x 2) (+ 1 (+ (* 2 (/ 1 x)) (/ 1 (pow x 2)))))))
#s(approx (* (+ x 1) (+ x 1)) (fma.f64 (-.f64 x #s(literal -2 binary64)) x #s(literal 1 binary64)))
#s(approx (* (- x -2) x) #s(hole binary64 (pow x 2)))
#s(approx (+ (* (- x -1) x) (+ x 0)) (*.f64 x x))
#s(approx (* (- x -2) x) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (+ (* (- x -1) x) (+ x 0)) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (- x -2) #s(hole binary64 x))
#s(approx (- x -2) x)
#s(approx (- x -2) #s(hole binary64 (* x (+ 1 (* 2 (/ 1 x))))))
#s(approx (- x -2) (-.f64 x #s(literal -2 binary64)))

rewrite24.0ms (0.7%)

Memory
40.1MiB live, 40.1MiB allocated; 0ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02189
03075
014375
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
12 → 30
Calls
Call 1
Inputs
(+.f64 x #s(literal 0 binary64))
(fma.f64 (-.f64 x #s(literal -1 binary64)) x (+.f64 x #s(literal 0 binary64)))
(-.f64 x #s(literal -1 binary64))
(-.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64))
#s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
(*.f64 #s(literal 2 binary64) x)
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
(*.f64 x x)
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
(*.f64 (-.f64 x #s(literal -2 binary64)) x)
(-.f64 x #s(literal -2 binary64))
Outputs
x
(/.f64 (-.f64 (*.f64 (*.f64 (-.f64 x #s(literal -1 binary64)) x) (*.f64 (-.f64 x #s(literal -1 binary64)) x)) (*.f64 x x)) (-.f64 (*.f64 (-.f64 x #s(literal -1 binary64)) x) x))
(/.f64 (+.f64 (pow.f64 (*.f64 (-.f64 x #s(literal -1 binary64)) x) #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (fma.f64 (*.f64 (-.f64 x #s(literal -1 binary64)) x) (*.f64 (-.f64 x #s(literal -1 binary64)) x) (-.f64 (*.f64 x x) (*.f64 (*.f64 (-.f64 x #s(literal -1 binary64)) x) x))))
(fma.f64 (-.f64 x #s(literal -1 binary64)) x x)
(fma.f64 x (-.f64 x #s(literal -1 binary64)) x)
(+.f64 (fma.f64 (-.f64 x #s(literal -1 binary64)) x x) #s(literal 0 binary64))
(+.f64 (*.f64 (-.f64 x #s(literal -1 binary64)) x) x)
(+.f64 x (*.f64 (-.f64 x #s(literal -1 binary64)) x))
(/.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64)) (+.f64 x #s(literal -1 binary64)))
(/.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64)) (fma.f64 x x (+.f64 #s(literal 1 binary64) (*.f64 x #s(literal -1 binary64)))))
(-.f64 x #s(literal -1 binary64))
(/.f64 (-.f64 (*.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64))) #s(literal 1 binary64)) (+.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64)))
(/.f64 (-.f64 (pow.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 3 binary64)) #s(literal 1 binary64)) (fma.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) (+.f64 #s(literal 1 binary64) (*.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64)))))
(-.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64))
#s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
(*.f64 #s(literal 2 binary64) x)
(*.f64 x #s(literal 2 binary64))
(+.f64 x x)
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(*.f64 x x)
(pow.f64 x #s(literal 2 binary64))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
(*.f64 (-.f64 x #s(literal -2 binary64)) x)
(*.f64 x (-.f64 x #s(literal -2 binary64)))
(/.f64 (-.f64 (*.f64 x x) #s(literal 4 binary64)) (+.f64 x #s(literal -2 binary64)))
(/.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -8 binary64)) (fma.f64 x x (+.f64 #s(literal 4 binary64) (*.f64 x #s(literal -2 binary64)))))
(-.f64 x #s(literal -2 binary64))

eval23.0ms (0.7%)

Memory
-27.3MiB live, 14.1MiB allocated; 24ms collecting garbage
Compiler

Compiled 695 to 133 computations (80.9% saved)

prune3.0ms (0.1%)

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

5 alts after pruning (2 fresh and 3 done)

PrunedKeptTotal
New44246
Fresh000
Picked235
Done000
Total46551
Accuracy
100.0%
Counts
51 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
3.5%
(-.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64))
49.2%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
100.0%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
53.6%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
Compiler

Compiled 62 to 37 computations (40.3% saved)

simplify114.0ms (3.5%)

Memory
35.5MiB live, 78.1MiB allocated; 12ms collecting garbage
Localize:

Found 5 expressions of interest:

NewMetricScoreProgram
cost-diff0
#s(approx (+ x 0) x)
cost-diff0
(-.f64 x #s(literal -1 binary64))
cost-diff0
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
cost-diff0
(+.f64 x x)
cost-diff0
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01337
01733
13829
214229
365929
4315529
0821629
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
(+.f64 x x)
x
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
(-.f64 x #s(literal -1 binary64))
x
#s(literal -1 binary64)
#s(approx (+ x 0) x)
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
(+.f64 x x)
(*.f64 #s(literal 2 binary64) x)
x
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
(-.f64 x #s(literal -1 binary64))
x
#s(literal -1 binary64)
#s(approx (+ x 0) x)

localize51.0ms (1.6%)

Memory
-31.7MiB live, 33.1MiB allocated; 9ms collecting garbage
Localize:

Found 5 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
accuracy0.0
(-.f64 x #s(literal -1 binary64))
accuracy0.0
#s(approx (+ x 0) x)
accuracy0.0
(+.f64 x x)
accuracy32.53777428560715
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
Samples
24.0ms44×2valid
10.0ms76×1valid
9.0ms136×0valid
Compiler

Compiled 32 to 14 computations (56.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 27.0ms
adjust: 14.0ms (51.6% of total)
ival-add: 5.0ms (18.4% of total)
ival-mult: 4.0ms (14.8% of total)
ival-sub: 3.0ms (11.1% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series2.0ms (0.1%)

Memory
1.8MiB live, 1.8MiB allocated; 0ms collecting garbage
Counts
5 → 14
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
(+.f64 x x)
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
(-.f64 x #s(literal -1 binary64))
#s(approx (+ x 0) x)
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* 2 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* x (+ 2 x))))
#s(approx (+ x x) #s(hole binary64 (* 2 x)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* 2 x)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* x (+ 2 x))))
#s(approx (- x -1) #s(hole binary64 1))
#s(approx (- x -1) #s(hole binary64 (+ 1 x)))
#s(approx (+ x 0) #s(hole binary64 x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (pow x 2)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (pow x 2)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (- x -1) #s(hole binary64 x))
#s(approx (- x -1) #s(hole binary64 (* x (+ 1 (/ 1 x)))))
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@inf
((- (* (+ x 1) (+ x 1)) 1) (+ x x) (+ (* (- x -1) x) (+ x 0)) (- x -1) (+ x 0))
1.0ms
x
@-inf
((- (* (+ x 1) (+ x 1)) 1) (+ x x) (+ (* (- x -1) x) (+ x 0)) (- x -1) (+ x 0))
0.0ms
x
@0
((- (* (+ x 1) (+ x 1)) 1) (+ x x) (+ (* (- x -1) x) (+ x 0)) (- x -1) (+ x 0))

simplify142.0ms (4.4%)

Memory
5.1MiB live, 52.7MiB allocated; 4ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
038146
192114
2322114
31710114
47742114
08792114
Stop Event
iter limit
node limit
Counts
14 → 14
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* 2 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* x (+ 2 x))))
#s(approx (+ x x) #s(hole binary64 (* 2 x)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* 2 x)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* x (+ 2 x))))
#s(approx (- x -1) #s(hole binary64 1))
#s(approx (- x -1) #s(hole binary64 (+ 1 x)))
#s(approx (+ x 0) #s(hole binary64 x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (pow x 2)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (pow x 2)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (- x -1) #s(hole binary64 x))
#s(approx (- x -1) #s(hole binary64 (* x (+ 1 (/ 1 x)))))
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* 2 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* x (+ 2 x))))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (+ x x) #s(hole binary64 (* 2 x)))
#s(approx (+ x x) (*.f64 #s(literal 2 binary64) x))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* 2 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* x (+ 2 x))))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (- x -1) #s(hole binary64 1))
#s(approx (- x -1) #s(literal 1 binary64))
#s(approx (- x -1) #s(hole binary64 (+ 1 x)))
#s(approx (- x -1) (-.f64 x #s(literal -1 binary64)))
#s(approx (+ x 0) #s(hole binary64 x))
#s(approx (+ x 0) x)
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (pow x 2)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (pow x 2)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (- x -1) #s(hole binary64 x))
#s(approx (- x -1) x)
#s(approx (- x -1) #s(hole binary64 (* x (+ 1 (/ 1 x)))))
#s(approx (- x -1) (-.f64 x #s(literal -1 binary64)))

rewrite49.0ms (1.5%)

Memory
6.1MiB live, 6.1MiB allocated; 0ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01334
01728
110122
0115322
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
5 → 45
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
(+.f64 x x)
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
(-.f64 x #s(literal -1 binary64))
#s(approx (+ x 0) x)
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
#s(literal 0 binary64)
(/.f64 (-.f64 (pow.f64 #s(approx (+ x 0) x) #s(literal 2 binary64)) (pow.f64 (fma.f64 x x x) #s(literal 2 binary64))) (-.f64 #s(approx (+ x 0) x) (fma.f64 x x x)))
(/.f64 (neg.f64 (-.f64 (pow.f64 (fma.f64 x x x) #s(literal 2 binary64)) (pow.f64 #s(approx (+ x 0) x) #s(literal 2 binary64)))) (neg.f64 (-.f64 (fma.f64 x x x) #s(approx (+ x 0) x))))
(/.f64 (neg.f64 (+.f64 (pow.f64 #s(approx (+ x 0) x) #s(literal 3 binary64)) (pow.f64 (fma.f64 x x x) #s(literal 3 binary64)))) (neg.f64 (fma.f64 #s(approx (+ x 0) x) (-.f64 #s(approx (+ x 0) x) (fma.f64 x x x)) (pow.f64 (fma.f64 x x x) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (fma.f64 x x x) #s(literal 2 binary64)) (pow.f64 #s(approx (+ x 0) x) #s(literal 2 binary64))) (-.f64 (fma.f64 x x x) #s(approx (+ x 0) x)))
(/.f64 (+.f64 (pow.f64 #s(approx (+ x 0) x) #s(literal 3 binary64)) (pow.f64 (fma.f64 x x x) #s(literal 3 binary64))) (fma.f64 #s(approx (+ x 0) x) #s(approx (+ x 0) x) (-.f64 (pow.f64 (fma.f64 x x x) #s(literal 2 binary64)) (*.f64 (fma.f64 x x x) #s(approx (+ x 0) x)))))
(/.f64 (+.f64 (pow.f64 #s(approx (+ x 0) x) #s(literal 3 binary64)) (pow.f64 (fma.f64 x x x) #s(literal 3 binary64))) (fma.f64 #s(approx (+ x 0) x) (-.f64 #s(approx (+ x 0) x) (fma.f64 x x x)) (pow.f64 (fma.f64 x x x) #s(literal 2 binary64))))
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
(fma.f64 x (-.f64 x #s(literal -1 binary64)) #s(approx (+ x 0) x))
(-.f64 (/.f64 (pow.f64 (fma.f64 x x x) #s(literal 2 binary64)) (-.f64 (fma.f64 x x x) #s(approx (+ x 0) x))) (/.f64 (pow.f64 #s(approx (+ x 0) x) #s(literal 2 binary64)) (-.f64 (fma.f64 x x x) #s(approx (+ x 0) x))))
(-.f64 #s(approx (+ x 0) x) (*.f64 (neg.f64 (-.f64 x #s(literal -1 binary64))) x))
(-.f64 #s(approx (+ x 0) x) (*.f64 (neg.f64 x) (-.f64 x #s(literal -1 binary64))))
(+.f64 (/.f64 (pow.f64 (fma.f64 x x x) #s(literal 3 binary64)) (fma.f64 #s(approx (+ x 0) x) (-.f64 #s(approx (+ x 0) x) (fma.f64 x x x)) (pow.f64 (fma.f64 x x x) #s(literal 2 binary64)))) (/.f64 (pow.f64 #s(approx (+ x 0) x) #s(literal 3 binary64)) (fma.f64 #s(approx (+ x 0) x) (-.f64 #s(approx (+ x 0) x) (fma.f64 x x x)) (pow.f64 (fma.f64 x x x) #s(literal 2 binary64)))))
(+.f64 (fma.f64 x x x) #s(approx (+ x 0) x))
(+.f64 #s(approx (+ x 0) x) (fma.f64 x x x))
(*.f64 (*.f64 (-.f64 x #s(literal -1 binary64)) #s(literal -1 binary64)) #s(literal -1 binary64))
(*.f64 #s(literal -1 binary64) (*.f64 #s(literal -1 binary64) (-.f64 x #s(literal -1 binary64))))
(*.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 1 binary64))
(*.f64 #s(literal 1 binary64) (-.f64 x #s(literal -1 binary64)))
(/.f64 (*.f64 (fma.f64 x x #s(literal -1 binary64)) #s(literal 1 binary64)) (-.f64 x #s(literal 1 binary64)))
(/.f64 (*.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64)) #s(literal 1 binary64)) (fma.f64 x x (-.f64 #s(literal 1 binary64) x)))
(/.f64 (*.f64 #s(literal 1 binary64) (fma.f64 x x #s(literal -1 binary64))) (-.f64 x #s(literal 1 binary64)))
(/.f64 (*.f64 #s(literal 1 binary64) (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64))) (fma.f64 x x (-.f64 #s(literal 1 binary64) x)))
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x)) (-.f64 #s(literal 1 binary64) x))
(/.f64 (neg.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64))) (neg.f64 (fma.f64 x x (-.f64 #s(literal 1 binary64) x))))
(/.f64 (neg.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64))) (neg.f64 (fma.f64 x x (fma.f64 #s(literal -1 binary64) x #s(literal 1 binary64)))))
(/.f64 (neg.f64 (fma.f64 x x #s(literal -1 binary64))) (neg.f64 (-.f64 x #s(literal 1 binary64))))
(/.f64 (fma.f64 x x #s(literal -1 binary64)) (-.f64 x #s(literal 1 binary64)))
(/.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64)) (+.f64 #s(literal 1 binary64) (-.f64 (*.f64 x x) x)))
(/.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64)) (fma.f64 x x (fma.f64 #s(literal -1 binary64) x #s(literal 1 binary64))))
(/.f64 (-.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1 binary64)) (fma.f64 x x (-.f64 #s(literal 1 binary64) x)))
(fma.f64 (*.f64 (-.f64 x #s(literal -1 binary64)) #s(literal -1 binary64)) #s(literal -1 binary64) #s(literal 0 binary64))
(fma.f64 #s(literal -1 binary64) (*.f64 #s(literal -1 binary64) (-.f64 x #s(literal -1 binary64))) #s(literal 0 binary64))
(fma.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 1 binary64) #s(literal 0 binary64))
(fma.f64 #s(literal 1 binary64) (-.f64 x #s(literal -1 binary64)) #s(literal 0 binary64))
(-.f64 (/.f64 (*.f64 x x) (-.f64 x #s(literal 1 binary64))) (/.f64 #s(literal 1 binary64) (-.f64 x #s(literal 1 binary64))))
(-.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 x x (fma.f64 #s(literal -1 binary64) x #s(literal 1 binary64)))) (/.f64 #s(literal -1 binary64) (fma.f64 x x (fma.f64 #s(literal -1 binary64) x #s(literal 1 binary64)))))
(-.f64 x #s(literal -1 binary64))
(+.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 x x (-.f64 #s(literal 1 binary64) x))) (/.f64 #s(literal 1 binary64) (fma.f64 x x (-.f64 #s(literal 1 binary64) x))))
(+.f64 #s(literal 0 binary64) (-.f64 x #s(literal -1 binary64)))
(+.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 0 binary64))
(+.f64 #s(literal 1 binary64) x)
(+.f64 x #s(literal 1 binary64))
#s(approx (+ x 0) x)

eval5.0ms (0.2%)

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

Compiled 946 to 156 computations (83.5% saved)

prune3.0ms (0.1%)

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

6 alts after pruning (2 fresh and 4 done)

PrunedKeptTotal
New50252
Fresh000
Picked022
Done123
Total51657
Accuracy
100.0%
Counts
57 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
59.8%
(fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x))
49.2%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
100.0%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
53.6%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
3.5%
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
Compiler

Compiled 74 to 45 computations (39.2% saved)

simplify160.0ms (5%)

Memory
-39.3MiB live, 54.6MiB allocated; 4ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
#s(approx (+ x 0) x)
cost-diff0
#s(approx (- x -1) x)
cost-diff0
(fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x))
cost-diff0
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01335
01531
13427
212427
360927
4304027
0821827
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
#s(literal 0 binary64)
(fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x))
#s(approx (- x -1) x)
x
#s(approx (+ x 0) x)
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
#s(literal 0 binary64)
(fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x))
#s(approx (- x -1) x)
x
#s(approx (+ x 0) x)

localize34.0ms (1.1%)

Memory
17.9MiB live, 17.9MiB allocated; 0ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x))
accuracy0.0
#s(approx (+ x 0) x)
accuracy30.32362627452048
#s(approx (- x -1) x)
accuracy61.738477358517095
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
Samples
10.0ms76×1valid
9.0ms44×2valid
8.0ms136×0valid
Compiler

Compiled 28 to 13 computations (53.6% saved)

Precisions
Click to see histograms. Total time spent on operations: 19.0ms
adjust: 7.0ms (36.6% of total)
ival-add: 4.0ms (20.9% of total)
ival-mult: 4.0ms (20.9% of total)
ival-sub: 3.0ms (15.7% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series2.0ms (0%)

Memory
2.2MiB live, 2.2MiB allocated; 0ms collecting garbage
Counts
4 → 13
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
(fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x))
#s(approx (- x -1) x)
#s(approx (+ x 0) x)
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* 2 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* x (+ 2 x))))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* 2 x)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* x (+ 2 x))))
#s(approx (- x -1) #s(hole binary64 1))
#s(approx (- x -1) #s(hole binary64 (+ 1 x)))
#s(approx (+ x 0) #s(hole binary64 x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (pow x 2)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (pow x 2)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (- x -1) #s(hole binary64 x))
#s(approx (- x -1) #s(hole binary64 (* x (+ 1 (/ 1 x)))))
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@inf
((- (* (+ x 1) (+ x 1)) 1) (+ (* (- x -1) x) (+ x 0)) (- x -1) (+ x 0))
0.0ms
x
@-inf
((- (* (+ x 1) (+ x 1)) 1) (+ (* (- x -1) x) (+ x 0)) (- x -1) (+ x 0))
0.0ms
x
@0
((- (* (+ x 1) (+ x 1)) 1) (+ (* (- x -1) x) (+ x 0)) (- x -1) (+ x 0))

simplify161.0ms (5%)

Memory
4.5MiB live, 63.1MiB allocated; 14ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
036139
190107
2320107
31711107
47841107
08080107
Stop Event
iter limit
node limit
Counts
13 → 13
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* 2 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* x (+ 2 x))))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* 2 x)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* x (+ 2 x))))
#s(approx (- x -1) #s(hole binary64 1))
#s(approx (- x -1) #s(hole binary64 (+ 1 x)))
#s(approx (+ x 0) #s(hole binary64 x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (pow x 2)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (pow x 2)))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (- x -1) #s(hole binary64 x))
#s(approx (- x -1) #s(hole binary64 (* x (+ 1 (/ 1 x)))))
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* 2 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* x (+ 2 x))))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* 2 x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* x (+ 2 x))))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (- x -1) #s(hole binary64 1))
#s(approx (- x -1) #s(literal 1 binary64))
#s(approx (- x -1) #s(hole binary64 (+ 1 x)))
#s(approx (- x -1) (-.f64 x #s(literal -1 binary64)))
#s(approx (+ x 0) #s(hole binary64 x))
#s(approx (+ x 0) x)
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (pow x 2)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (pow x 2)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
#s(approx (+ (* (- x -1) x) (+ x 0)) #s(hole binary64 (* (pow x 2) (+ 1 (* 2 (/ 1 x))))))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
#s(approx (- x -1) #s(hole binary64 x))
#s(approx (- x -1) x)
#s(approx (- x -1) #s(hole binary64 (* x (+ 1 (/ 1 x)))))
#s(approx (- x -1) (-.f64 x #s(literal -1 binary64)))

rewrite46.0ms (1.4%)

Memory
-27.8MiB live, 19.1MiB allocated; 4ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01333
01527
19225
097725
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
4 → 17
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
(fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x))
#s(approx (- x -1) x)
#s(approx (+ x 0) x)
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
(/.f64 (-.f64 (pow.f64 #s(approx (+ x 0) x) #s(literal 2 binary64)) (pow.f64 (*.f64 #s(approx (- x -1) x) x) #s(literal 2 binary64))) (-.f64 #s(approx (+ x 0) x) (*.f64 #s(approx (- x -1) x) x)))
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 #s(approx (- x -1) x) x) #s(literal 2 binary64)) (pow.f64 #s(approx (+ x 0) x) #s(literal 2 binary64)))) (neg.f64 (-.f64 (*.f64 #s(approx (- x -1) x) x) #s(approx (+ x 0) x))))
(/.f64 (neg.f64 (+.f64 (pow.f64 #s(approx (+ x 0) x) #s(literal 3 binary64)) (pow.f64 (*.f64 #s(approx (- x -1) x) x) #s(literal 3 binary64)))) (neg.f64 (fma.f64 #s(approx (+ x 0) x) (-.f64 #s(approx (+ x 0) x) (*.f64 #s(approx (- x -1) x) x)) (pow.f64 (*.f64 #s(approx (- x -1) x) x) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (*.f64 #s(approx (- x -1) x) x) #s(literal 2 binary64)) (pow.f64 #s(approx (+ x 0) x) #s(literal 2 binary64))) (-.f64 (*.f64 #s(approx (- x -1) x) x) #s(approx (+ x 0) x)))
(/.f64 (+.f64 (pow.f64 #s(approx (+ x 0) x) #s(literal 3 binary64)) (pow.f64 (*.f64 #s(approx (- x -1) x) x) #s(literal 3 binary64))) (fma.f64 #s(approx (+ x 0) x) #s(approx (+ x 0) x) (-.f64 (pow.f64 (*.f64 #s(approx (- x -1) x) x) #s(literal 2 binary64)) (*.f64 (*.f64 #s(approx (- x -1) x) x) #s(approx (+ x 0) x)))))
(/.f64 (+.f64 (pow.f64 #s(approx (+ x 0) x) #s(literal 3 binary64)) (pow.f64 (*.f64 #s(approx (- x -1) x) x) #s(literal 3 binary64))) (fma.f64 #s(approx (+ x 0) x) (-.f64 #s(approx (+ x 0) x) (*.f64 #s(approx (- x -1) x) x)) (pow.f64 (*.f64 #s(approx (- x -1) x) x) #s(literal 2 binary64))))
(fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x))
(fma.f64 x #s(approx (- x -1) x) #s(approx (+ x 0) x))
(-.f64 (/.f64 (pow.f64 (*.f64 #s(approx (- x -1) x) x) #s(literal 2 binary64)) (-.f64 (*.f64 #s(approx (- x -1) x) x) #s(approx (+ x 0) x))) (/.f64 (pow.f64 #s(approx (+ x 0) x) #s(literal 2 binary64)) (-.f64 (*.f64 #s(approx (- x -1) x) x) #s(approx (+ x 0) x))))
(-.f64 #s(approx (+ x 0) x) (*.f64 (neg.f64 #s(approx (- x -1) x)) x))
(-.f64 #s(approx (+ x 0) x) (*.f64 (neg.f64 x) #s(approx (- x -1) x)))
(+.f64 (/.f64 (pow.f64 (*.f64 #s(approx (- x -1) x) x) #s(literal 3 binary64)) (fma.f64 #s(approx (+ x 0) x) (-.f64 #s(approx (+ x 0) x) (*.f64 #s(approx (- x -1) x) x)) (pow.f64 (*.f64 #s(approx (- x -1) x) x) #s(literal 2 binary64)))) (/.f64 (pow.f64 #s(approx (+ x 0) x) #s(literal 3 binary64)) (fma.f64 #s(approx (+ x 0) x) (-.f64 #s(approx (+ x 0) x) (*.f64 #s(approx (- x -1) x) x)) (pow.f64 (*.f64 #s(approx (- x -1) x) x) #s(literal 2 binary64)))))
(+.f64 (*.f64 #s(approx (- x -1) x) x) #s(approx (+ x 0) x))
(+.f64 #s(approx (+ x 0) x) (*.f64 #s(approx (- x -1) x) x))
#s(approx (- x -1) x)
#s(approx (+ x 0) x)

eval2.0ms (0.1%)

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

Compiled 541 to 70 computations (87.1% saved)

prune3.0ms (0.1%)

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

6 alts after pruning (0 fresh and 6 done)

PrunedKeptTotal
New22022
Fresh000
Picked022
Done044
Total22628
Accuracy
100.0%
Counts
28 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
59.8%
(fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x))
49.2%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
100.0%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
53.6%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
3.5%
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
Compiler

Compiled 189 to 81 computations (57.1% saved)

regimes11.0ms (0.4%)

Memory
15.7MiB live, 15.7MiB allocated; 0ms collecting garbage
Counts
10 → 1
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
(-.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
(fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
(fma.f64 (-.f64 x #s(literal -1 binary64)) x (+.f64 x #s(literal 0 binary64)))
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
Outputs
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
Calls

4 calls:

3.0ms
x
3.0ms
(+.f64 x #s(literal 1 binary64))
2.0ms
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
2.0ms
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
Results
AccuracySegmentsBranch
100.0%1(+.f64 x #s(literal 1 binary64))
100.0%1(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
100.0%1(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
100.0%1x
Compiler

Compiled 20 to 13 computations (35% saved)

regimes11.0ms (0.3%)

Memory
-31.3MiB live, 15.5MiB allocated; 2ms collecting garbage
Counts
7 → 1
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
(-.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
(fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
Calls

4 calls:

4.0ms
(+.f64 x #s(literal 1 binary64))
2.0ms
x
2.0ms
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
2.0ms
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
Results
AccuracySegmentsBranch
100.0%1(+.f64 x #s(literal 1 binary64))
100.0%1(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
100.0%1(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
100.0%1x
Compiler

Compiled 20 to 13 computations (35% saved)

regimes8.0ms (0.2%)

Memory
8.7MiB live, 8.7MiB allocated; 0ms collecting garbage
Counts
6 → 2
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
(-.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
(fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x))
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
(fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x))
Calls

4 calls:

2.0ms
x
2.0ms
(+.f64 x #s(literal 1 binary64))
2.0ms
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
2.0ms
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
Results
AccuracySegmentsBranch
98.1%3(+.f64 x #s(literal 1 binary64))
98.1%2(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
98.1%2(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
98.1%3x
Compiler

Compiled 20 to 13 computations (35% saved)

regimes4.0ms (0.1%)

Memory
3.0MiB live, 3.0MiB allocated; 0ms collecting garbage
Counts
5 → 2
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
(-.f64 #s(approx (* (+ x 1) (+ x 1)) #s(literal 1 binary64)) #s(literal 1 binary64))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 #s(literal 2 binary64) x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x))
Calls

2 calls:

2.0ms
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
2.0ms
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
Results
AccuracySegmentsBranch
98.0%2(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
98.0%2(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
Compiler

Compiled 16 to 9 computations (43.8% saved)

regimes6.0ms (0.2%)

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

4 calls:

2.0ms
x
1.0ms
(+.f64 x #s(literal 1 binary64))
1.0ms
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
1.0ms
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
Results
AccuracySegmentsBranch
49.2%1(+.f64 x #s(literal 1 binary64))
49.2%1x
49.2%1(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
49.2%1(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
Compiler

Compiled 20 to 13 computations (35% saved)

regimes4.0ms (0.1%)

Memory
4.9MiB live, 4.9MiB allocated; 0ms collecting garbage
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

Counts
1 → 1
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
Calls

4 calls:

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

Compiled 20 to 13 computations (35% saved)

bsearch0.0ms (0%)

Memory
0.2MiB live, 0.2MiB allocated; 0ms collecting garbage
Algorithm
left-value
Steps
TimeLeftRight
0.0ms
1.0774539635916742
2818254491582.0723
Compiler

Compiled 12 to 9 computations (25% saved)

bsearch0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated; 0ms collecting garbage
Algorithm
left-value
Steps
TimeLeftRight
0.0ms
1.0774539635916742
2818254491582.0723
Compiler

Compiled 12 to 9 computations (25% saved)

simplify34.0ms (1.1%)

Memory
8.6MiB live, 8.6MiB allocated; 0ms collecting garbage
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
030120
154120
214596
376696
4539596
Stop Event
node limit
Calls
Call 1
Inputs
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
(if (<=.f64 (-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64)) #s(literal 2 binary64)) #s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x)) (fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x)))
(if (<=.f64 (-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64)) #s(literal 2 binary64)) #s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x)) #s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))
Outputs
(fma.f64 (-.f64 x #s(literal -1 binary64)) x #s(approx (+ x 0) x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (-.f64 x #s(literal -2 binary64)) x))
(if (<=.f64 (-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64)) #s(literal 2 binary64)) #s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x)) (fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x)))
(if (<=.f64 (-.f64 (*.f64 (-.f64 x #s(literal -1 binary64)) (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)) #s(literal 2 binary64)) #s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x)) (fma.f64 #s(approx (- x -1) x) x #s(approx (+ x 0) x)))
(if (<=.f64 (-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64)) #s(literal 2 binary64)) #s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x)) #s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x)))
(if (<=.f64 (-.f64 (*.f64 (-.f64 x #s(literal -1 binary64)) (-.f64 x #s(literal -1 binary64))) #s(literal 1 binary64)) #s(literal 2 binary64)) #s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x)) #s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 x x)))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (+.f64 x x))
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(literal 0 binary64))

derivations198.0ms (6.2%)

Memory
-28.3MiB live, 69.6MiB allocated; 8ms collecting garbage
Stop Event
done
Compiler

Compiled 124 to 32 computations (74.2% saved)

preprocess25.0ms (0.8%)

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

Compiled 266 to 74 computations (72.2% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...