sqrt sqr

Time bar (total: 3.0s)

start0.0ms (0%)

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

analyze2.0ms (0.1%)

Memory
3.1MiB live, 3.1MiB allocated; 0ms collecting garbage
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
0%0%100%0%0%0%0%1
50%50%50%0%0%0%0%2
75%75%25%0%0%0%0%3
87.5%87.5%12.5%0%0%0%0%4
93.8%93.7%6.2%0%0%0%0%5
96.9%96.8%3.1%0%0%0%0%6
98.4%98.4%1.6%0%0%0%0%7
99.2%99.2%0.8%0%0%0%0%8
99.6%99.6%0.4%0%0%0%0%9
99.8%99.8%0.2%0%0%0%0%10
99.9%99.9%0.1%0%0%0%0%11
100%99.9%0%0%0%0%0%12
Compiler

Compiled 14 to 10 computations (28.6% saved)

sample1.6s (54.7%)

Memory
79.3MiB live, 1 462.5MiB allocated; 955ms collecting garbage
Samples
698.0ms4 167×2valid
315.0ms4 089×0valid
Precisions
Click to see histograms. Total time spent on operations: 792.0ms
ival-mult: 244.0ms (30.8% of total)
ival-div: 181.0ms (22.9% of total)
adjust: 180.0ms (22.7% of total)
ival-sub: 88.0ms (11.1% of total)
ival-sqrt: 86.0ms (10.9% of total)
ival-true: 5.0ms (0.6% of total)
exact: 5.0ms (0.6% of total)
ival-assert: 3.0ms (0.4% of total)
Bogosity

explain181.0ms (6%)

Memory
-26.0MiB live, 183.8MiB allocated; 33ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1320-4(-3.1747645779673693e-162)(sqrt.f64 (*.f64 x x))
00-0-(/.f64 #s(literal 1 binary64) x)
00-0-#s(literal 1 binary64)
00-0-(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
00-0-(/.f64 x x)
00-0-(*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))
00-0-(*.f64 x x)
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
sqrt.f64(sqrt.f64 (*.f64 x x))uflow-rescue650
(*.f64 x x)underflow65
sqrt.f64(sqrt.f64 (*.f64 x x))oflow-rescue630
(*.f64 x x)overflow63
Confusion
Predicted +Predicted -
+12811
-0117
Precision
1.0
Recall
0.920863309352518
Confusion?
Predicted +Predicted MaybePredicted -
+128011
-00117
Precision?
1.0
Recall?
0.920863309352518
Freqs
test
numberfreq
0128
1128
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
47.0ms268×2valid
30.0ms244×0valid
Compiler

Compiled 86 to 28 computations (67.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 53.0ms
ival-sqrt: 17.0ms (32% of total)
ival-div: 11.0ms (20.7% of total)
ival-mult: 11.0ms (20.7% of total)
adjust: 8.0ms (15.1% of total)
ival-sub: 5.0ms (9.4% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

preprocess161.0ms (5.3%)

Memory
-6.4MiB live, 98.0MiB allocated; 18ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01021
13814
210612
324412
4125312
5591312
0812
0148
1306
2646
31846
410616
569556
080616
Stop Event
iter limit
node limit
iter limit
node limit
Calls
Call 1
Inputs
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
Outputs
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
(-.f64 #s(literal 1 binary64) (/.f64 (fabs.f64 x) x))
Compiler

Compiled 12 to 8 computations (33.3% 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.4MiB live, 0.4MiB allocated; 0ms collecting garbage
Alt Table
Click to see full alt table
StatusAccuracyProgram
49.6%
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
Compiler

Compiled 12 to 8 computations (33.3% saved)

simplify96.0ms (3.2%)

Memory
-1.3MiB live, 87.7MiB allocated; 8ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
cost-diff2
(sqrt.f64 (*.f64 x x))
cost-diff2
(*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))
cost-diff2
(/.f64 x x)
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0835
01425
13021
26421
318421
4106121
5695521
0806121
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
(/.f64 x x)
x
(*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))
(/.f64 #s(literal 1 binary64) x)
#s(literal 1 binary64)
(sqrt.f64 (*.f64 x x))
(*.f64 x x)
Outputs
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
(-.f64 #s(literal 1 binary64) (/.f64 (fabs.f64 x) x))
(/.f64 x x)
#s(literal 1 binary64)
x
(*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))
(/.f64 (fabs.f64 x) x)
(/.f64 #s(literal 1 binary64) x)
#s(literal 1 binary64)
(sqrt.f64 (*.f64 x x))
(fabs.f64 x)
(*.f64 x x)

localize72.0ms (2.4%)

Memory
-37.2MiB live, 64.3MiB allocated; 12ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
accuracy0.0
(*.f64 x x)
accuracy0.14453125
(*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))
accuracy30.308605584304225
(sqrt.f64 (*.f64 x x))
Samples
24.0ms134×2valid
8.0ms122×0valid
Compiler

Compiled 37 to 10 computations (73% saved)

Precisions
Click to see histograms. Total time spent on operations: 23.0ms
adjust: 7.0ms (31% of total)
ival-div: 5.0ms (22.2% of total)
ival-mult: 5.0ms (22.2% of total)
ival-sqrt: 3.0ms (13.3% of total)
ival-sub: 2.0ms (8.9% 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.5MiB live, 1.5MiB allocated; 0ms collecting garbage
Counts
5 → 7
Calls
Call 1
Inputs
(/.f64 x x)
(*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))
(sqrt.f64 (*.f64 x x))
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
(*.f64 x x)
Outputs
1
x
0
(pow x 2)
-1
(* -1 x)
2
Calls

3 calls:

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

simplify115.0ms (3.8%)

Memory
36.4MiB live, 81.4MiB allocated; 6ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0710
11210
22110
35410
418610
5103810
0819810
Stop Event
iter limit
node limit
Counts
7 → 6
Calls
Call 1
Inputs
1
x
0
(pow x 2)
-1
(* -1 x)
2
Outputs
1
#s(literal 1 binary64)
x
0
#s(literal 0 binary64)
(pow x 2)
(*.f64 x x)
-1
#s(literal -1 binary64)
(* -1 x)
(neg.f64 x)
2
#s(literal 2 binary64)

rewrite53.0ms (1.8%)

Memory
10.5MiB live, 53.7MiB allocated; 7ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0830
01415
1597
04387
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
5 → 18
Calls
Call 1
Inputs
(/.f64 x x)
(*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))
(sqrt.f64 (*.f64 x x))
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
(*.f64 x x)
Outputs
#s(literal 1 binary64)
#s(literal 1 binary64)
x
#s(literal 0 binary64)
(*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))
(*.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) x))
(*.f64 x x)
(pow.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/2 binary64))
(pow.f64 (neg.f64 x) #s(literal 2 binary64))
(pow.f64 (*.f64 x x) #s(literal 1 binary64))
(pow.f64 x #s(literal 2 binary64))
(neg.f64 (*.f64 x (neg.f64 x)))
(neg.f64 (*.f64 (neg.f64 x) x))
(sqrt.f64 (*.f64 (*.f64 x x) (*.f64 x x)))
(fabs.f64 (*.f64 x x))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))

eval7.0ms (0.2%)

Memory
-33.6MiB live, 7.7MiB allocated; 8ms collecting garbage
Compiler

Compiled 310 to 97 computations (68.7% saved)

prune2.0ms (0.1%)

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

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New21223
Fresh000
Picked101
Done000
Total22224
Accuracy
100.0%
Counts
24 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
49.3%
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64))
53.8%
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))
Compiler

Compiled 28 to 20 computations (28.6% saved)

simplify94.0ms (3.1%)

Memory
18.5MiB live, 79.8MiB allocated; 5ms collecting garbage
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
cost-diff0
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64))
cost-diff0
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01230
01222
12918
26618
319118
4112118
5610918
0821618
Stop Event
iter limit
node limit
saturated
Calls
Call 1
Inputs
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))
#s(literal 0 binary64)
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64))
#s(literal 2 binary64)
Outputs
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))
#s(literal 0 binary64)
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64))
#s(literal 2 binary64)

localize73.0ms (2.4%)

Memory
-2.6MiB live, 44.0MiB allocated; 7ms collecting garbage
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
accuracy32.45312500000001
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64))
accuracy29.546875000000004
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))
Samples
45.0ms122×0valid
20.0ms134×2valid
Compiler

Compiled 28 to 12 computations (57.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 58.0ms
ival-sqrt: 34.0ms (58.8% of total)
ival-mult: 11.0ms (19% of total)
ival-div: 5.0ms (8.6% of total)
adjust: 4.0ms (6.9% of total)
ival-sub: 2.0ms (3.5% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated; 0ms collecting garbage
Counts
2 → 2
Calls
Call 1
Inputs
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64))
Outputs
0
2
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@0
((- (/ x x) (* (/ 1 x) (sqrt (* x x)))) (- (/ x x) (* (/ 1 x) (sqrt (* x x)))))
0.0ms
x
@inf
((- (/ x x) (* (/ 1 x) (sqrt (* x x)))) (- (/ x x) (* (/ 1 x) (sqrt (* x x)))))
0.0ms
x
@-inf
((- (/ x x) (* (/ 1 x) (sqrt (* x x)))) (- (/ x x) (* (/ 1 x) (sqrt (* x x)))))

simplify171.0ms (5.7%)

Memory
-3.3MiB live, 86.7MiB allocated; 10ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
022
142
262
3112
4312
51082
65612
746752
084082
Stop Event
iter limit
node limit
Counts
2 → 2
Calls
Call 1
Inputs
0
2
Outputs
0
#s(literal 0 binary64)
2
#s(literal 2 binary64)

rewrite97.0ms (3.2%)

Memory
8.2MiB live, 64.2MiB allocated; 11ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01228
01220
1586
04386
Stop Event
iter limit
iter limit
iter limit
unsound
saturated
Counts
2 → 2
Calls
Call 1
Inputs
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64))
Outputs
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64))

eval0.0ms (0%)

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

Compiled 28 to 12 computations (57.1% saved)

prune1.0ms (0%)

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

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New202
Fresh000
Picked022
Done000
Total224
Accuracy
100.0%
Counts
4 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
49.3%
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64))
53.8%
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))
Compiler

Compiled 68 to 39 computations (42.6% saved)

regimes37.0ms (1.2%)

Memory
-32.1MiB live, 11.7MiB allocated; 6ms collecting garbage
Counts
3 → 2
Calls
Call 1
Inputs
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64))
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
Outputs
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64))
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))
Calls

2 calls:

35.0ms
x
1.0ms
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
Results
AccuracySegmentsBranch
87.9%2(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
100.0%2x
Compiler

Compiled 13 to 9 computations (30.8% saved)

regimes2.0ms (0.1%)

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

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

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

2 calls:

1.0ms
x
1.0ms
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
Results
AccuracySegmentsBranch
53.8%1(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))))
53.8%1x
Compiler

Compiled 13 to 9 computations (30.8% saved)

bsearch27.0ms (0.9%)

Memory
14.4MiB live, 57.7MiB allocated; 5ms collecting garbage
Algorithm
binary-search
Stop Event
narrow-enough
Steps
TimeLeftRight
24.0ms
-8.92899617083093e-307
5.244613611365673e-307
Samples
18.0ms96×2valid
2.0ms32×0valid
Compiler

Compiled 239 to 188 computations (21.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 12.0ms
ival-div: 3.0ms (24.3% of total)
adjust: 3.0ms (24.3% of total)
ival-mult: 3.0ms (24.3% of total)
ival-sqrt: 2.0ms (16.2% of total)
ival-sub: 1.0ms (8.1% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

simplify45.0ms (1.5%)

Memory
-3.3MiB live, 41.8MiB allocated; 5ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01534
13228
26828
321728
4145628
5629928
Stop Event
node limit
Calls
Call 1
Inputs
(if (<=.f64 x #s(literal -101201126653655/202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 binary64)) #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)))
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))
Outputs
(if (<=.f64 x #s(literal -101201126653655/202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 binary64)) #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)))
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))

derivations110.0ms (3.7%)

Memory
-25.4MiB live, 33.5MiB allocated; 5ms collecting garbage
Stop Event
done
Compiler

Compiled 46 to 15 computations (67.4% saved)

preprocess15.0ms (0.5%)

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

Compiled 128 to 56 computations (56.3% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...