Main:bigenough3 from C

Time bar (total: 1.1s)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

analyze1.0ms (0.1%)

Memory
1.8MiB live, 1.8MiB allocated
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
66.7%50%25%0%0%25%0%3
80%50%12.5%0%0%37.5%0%4
88.9%50%6.2%0%0%43.7%0%5
94.1%50%3.1%0%0%46.9%0%6
97%50%1.6%0%0%48.4%0%7
98.5%50%0.8%0%0%49.2%0%8
99.2%50%0.4%0%0%49.6%0%9
99.6%50%0.2%0%0%49.8%0%10
99.8%50%0.1%0%0%49.9%0%11
99.9%50%0%0%0%49.9%0%12
Compiler

Compiled 9 to 8 computations (11.1% saved)

sample818.0ms (77.3%)

Memory
51.4MiB live, 1 223.7MiB allocated
Samples
383.0ms3 986×1valid
197.0ms4 270×0valid
0.0ms0invalid
Precisions
Click to see histograms. Total time spent on operations: 398.0ms
ival-sqrt: 163.0ms (40.9% of total)
ival-add: 86.0ms (21.6% of total)
adjust: 75.0ms (18.8% of total)
ival-sub: 63.0ms (15.8% of total)
ival-true: 5.0ms (1.3% of total)
exact: 4.0ms (1% of total)
ival-assert: 3.0ms (0.8% of total)
Bogosity

explain88.0ms (8.3%)

Memory
-11.5MiB live, 108.6MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1300-1(15.559854898977248)(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
00-0-(+.f64 x #s(literal 1 binary64))
00-0-(sqrt.f64 x)
00-0-#s(literal 1 binary64)
00-0-(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
-.f64(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))cancellation1291
Confusion
Predicted +Predicted -
+1291
-0126
Precision
1.0
Recall
0.9923076923076923
Confusion?
Predicted +Predicted MaybePredicted -
+12910
-00126
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0127
1129
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
28.0ms248×1valid
20.0ms264×0valid
Compiler

Compiled 65 to 28 computations (56.9% saved)

Precisions
Click to see histograms. Total time spent on operations: 23.0ms
ival-sqrt: 10.0ms (43.8% of total)
adjust: 4.0ms (17.5% of total)
ival-add: 4.0ms (17.5% of total)
ival-sub: 3.0ms (13.1% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

preprocess2.0ms (0.2%)

Memory
3.5MiB live, 3.5MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
Outputs
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
Compiler

Compiled 7 to 6 computations (14.3% saved)

eval0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated
Compiler

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.7MiB live, 0.7MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
53.0%
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
Compiler

Compiled 7 to 6 computations (14.3% saved)

simplify0.0ms (0%)

Memory
0.5MiB live, 0.5MiB allocated
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(sqrt.f64 x)
cost-diff0
(+.f64 x #s(literal 1 binary64))
cost-diff0
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
cost-diff0
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
Calls
Call 1
Inputs
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
(sqrt.f64 x)
Outputs
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
(sqrt.f64 x)

localize29.0ms (2.8%)

Memory
-4.2MiB live, 33.0MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(+.f64 x #s(literal 1 binary64))
accuracy0.0
(sqrt.f64 x)
accuracy0.0078125
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
accuracy30.0992022822747
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
Samples
12.0ms124×1valid
6.0ms132×0valid
Compiler

Compiled 38 to 14 computations (63.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 11.0ms
ival-sqrt: 5.0ms (44.1% of total)
adjust: 2.0ms (17.7% of total)
ival-add: 2.0ms (17.7% of total)
ival-sub: 2.0ms (17.7% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series8.0ms (0.8%)

Memory
11.6MiB live, 11.6MiB allocated
Counts
4 → 27
Calls
Call 1
Inputs
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
(sqrt.f64 x)
Outputs
(- 1 (sqrt x))
(- (+ 1 (* 1/2 x)) (sqrt x))
(- (+ 1 (* x (+ 1/2 (* -1/8 x)))) (sqrt x))
(- (+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) (sqrt x))
1
(+ 1 (* 1/2 x))
(+ 1 (* x (+ 1/2 (* -1/8 x))))
(+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8)))))
(+ 1 x)
(sqrt x)
(* 1/2 (sqrt (/ 1 x)))
(/ (+ (* -1/8 (sqrt (/ 1 x))) (* 1/2 (sqrt x))) x)
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x)))) x)
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* -5/128 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x))))) x)
(* x (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3))))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 7)))) (* 1/2 (sqrt (/ 1 (pow x 3))))))))
x
(* x (+ 1 (/ 1 x)))
(* -1/2 (sqrt (/ 1 x)))
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (* 1/2 (sqrt x))) x))
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x)))) x))
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* -5/128 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 6)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x))))) x))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(* -1 (* x (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 4)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
Calls

3 calls:

TimeVariablePointExpression
4.0ms
x
@-inf
((- (sqrt (+ x 1)) (sqrt x)) (sqrt (+ x 1)) (+ x 1) (sqrt x))
3.0ms
x
@inf
((- (sqrt (+ x 1)) (sqrt x)) (sqrt (+ x 1)) (+ x 1) (sqrt x))
1.0ms
x
@0
((- (sqrt (+ x 1)) (sqrt x)) (sqrt (+ x 1)) (+ x 1) (sqrt x))

simplify1.0ms (0.1%)

Memory
1.2MiB live, 1.2MiB allocated
Algorithm
egg-herbie
Counts
27 → 4
Calls
Call 1
Inputs
(- 1 (sqrt x))
(- (+ 1 (* 1/2 x)) (sqrt x))
(- (+ 1 (* x (+ 1/2 (* -1/8 x)))) (sqrt x))
(- (+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) (sqrt x))
1
(+ 1 (* 1/2 x))
(+ 1 (* x (+ 1/2 (* -1/8 x))))
(+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8)))))
(+ 1 x)
(sqrt x)
(* 1/2 (sqrt (/ 1 x)))
(/ (+ (* -1/8 (sqrt (/ 1 x))) (* 1/2 (sqrt x))) x)
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x)))) x)
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* -5/128 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x))))) x)
(* x (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3))))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 7)))) (* 1/2 (sqrt (/ 1 (pow x 3))))))))
x
(* x (+ 1 (/ 1 x)))
(* -1/2 (sqrt (/ 1 x)))
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (* 1/2 (sqrt x))) x))
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x)))) x))
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* -5/128 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 6)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x))))) x))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(* -1 (* x (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 4)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
Outputs
(- 1 (sqrt x))
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
(- (+ 1 (* 1/2 x)) (sqrt x))
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
(- (+ 1 (* x (+ 1/2 (* -1/8 x)))) (sqrt x))
(+.f64 x #s(literal 1 binary64))
(- (+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) (sqrt x))
(sqrt.f64 x)

rewrite1.0ms (0.1%)

Memory
0.8MiB live, 0.8MiB allocated
Counts
4 → 4
Calls
Call 1
Inputs
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
(sqrt.f64 x)
Outputs
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
(sqrt.f64 x)

eval1.0ms (0.1%)

Memory
2.2MiB live, 2.2MiB allocated
Compiler

Compiled 76 to 15 computations (80.3% saved)

prune3.0ms (0.2%)

Memory
3.7MiB live, 3.7MiB allocated
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New538
Fresh000
Picked011
Done000
Total549
Accuracy
53.6%
Counts
9 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
53.0%
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
48.6%
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))
49.1%
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
6.3%
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x))
Compiler

Compiled 40 to 33 computations (17.5% saved)

simplify1.0ms (0.1%)

Memory
1.1MiB live, 1.1MiB allocated
Algorithm
egg-herbie
Localize:

Found 7 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f64 x #s(literal 1 binary64))
cost-diff0
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))
cost-diff0
(+.f64 x #s(literal 1 binary64))
cost-diff0
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
cost-diff0
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
cost-diff0
(sqrt.f64 x)
cost-diff0
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x))
Calls
Call 1
Inputs
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x))
(sqrt.f64 x)
x
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
Outputs
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x))
(sqrt.f64 x)
x
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)

localize48.0ms (4.5%)

Memory
-23.4MiB live, 49.4MiB allocated
Localize:

Found 7 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(+.f64 x #s(literal 1 binary64))
accuracy32.89101360041371
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))
accuracy0.0
(+.f64 x #s(literal 1 binary64))
accuracy0.0078125
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
accuracy32.59351431729169
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
accuracy0.0
(sqrt.f64 x)
accuracy59.95493128951413
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x))
Samples
24.0ms124×1valid
16.0ms132×0valid
Compiler

Compiled 90 to 21 computations (76.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 28.0ms
ival-sqrt: 13.0ms (46% of total)
ival-add: 10.0ms (35.4% of total)
adjust: 3.0ms (10.6% of total)
ival-sub: 2.0ms (7.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.2%)

Memory
2.9MiB live, 2.9MiB allocated
Counts
6 → 27
Calls
Call 1
Inputs
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x))
(sqrt.f64 x)
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))
Outputs
(- 1 (sqrt x))
(- (+ 1 (* 1/2 x)) (sqrt x))
(- (+ 1 (* x (+ 1/2 (* -1/8 x)))) (sqrt x))
(- (+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) (sqrt x))
(sqrt x)
1
(+ 1 (* 1/2 x))
(+ 1 (* x (+ 1/2 (* -1/8 x))))
(+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8)))))
(+ 1 x)
(* 1/2 (sqrt (/ 1 x)))
(/ (+ (* -1/8 (sqrt (/ 1 x))) (* 1/2 (sqrt x))) x)
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x)))) x)
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* -5/128 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x))))) x)
(* x (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3))))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 7)))) (* 1/2 (sqrt (/ 1 (pow x 3))))))))
x
(* x (+ 1 (/ 1 x)))
(* -1/2 (sqrt (/ 1 x)))
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (* 1/2 (sqrt x))) x))
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x)))) x))
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* -5/128 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 6)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x))))) x))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(* -1 (* x (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 4)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
Calls

3 calls:

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

simplify0.0ms (0%)

Memory
1.0MiB live, 1.0MiB allocated
Algorithm
egg-herbie
Counts
27 → 6
Calls
Call 1
Inputs
(- 1 (sqrt x))
(- (+ 1 (* 1/2 x)) (sqrt x))
(- (+ 1 (* x (+ 1/2 (* -1/8 x)))) (sqrt x))
(- (+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) (sqrt x))
(sqrt x)
1
(+ 1 (* 1/2 x))
(+ 1 (* x (+ 1/2 (* -1/8 x))))
(+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8)))))
(+ 1 x)
(* 1/2 (sqrt (/ 1 x)))
(/ (+ (* -1/8 (sqrt (/ 1 x))) (* 1/2 (sqrt x))) x)
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x)))) x)
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* -5/128 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x))))) x)
(* x (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3))))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))))
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 7)))) (* 1/2 (sqrt (/ 1 (pow x 3))))))))
x
(* x (+ 1 (/ 1 x)))
(* -1/2 (sqrt (/ 1 x)))
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (* 1/2 (sqrt x))) x))
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x)))) x))
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* -5/128 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 6)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x))))) x))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(* -1 (* x (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 4)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
Outputs
(- 1 (sqrt x))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x))
(- (+ 1 (* 1/2 x)) (sqrt x))
(sqrt.f64 x)
(- (+ 1 (* x (+ 1/2 (* -1/8 x)))) (sqrt x))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
(- (+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) (sqrt x))
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
(sqrt x)
(+.f64 x #s(literal 1 binary64))
1
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))

rewrite0.0ms (0%)

Memory
0.7MiB live, 0.7MiB allocated
Counts
6 → 6
Calls
Call 1
Inputs
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x))
(sqrt.f64 x)
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))
Outputs
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x))
(sqrt.f64 x)
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
(sqrt.f64 (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))

eval1.0ms (0.1%)

Memory
2.3MiB live, 2.3MiB allocated
Compiler

Compiled 154 to 19 computations (87.7% saved)

prune3.0ms (0.3%)

Memory
7.0MiB live, 7.0MiB allocated
Pruning

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New11011
Fresh000
Picked033
Done011
Total11415
Accuracy
53.6%
Counts
15 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
53.0%
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
48.6%
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))
49.1%
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
6.3%
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x))
Compiler

Compiled 80 to 47 computations (41.3% saved)

regimes4.0ms (0.4%)

Memory
10.7MiB live, 10.8MiB allocated
Counts
4 → 1
Calls
Call 1
Inputs
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
Outputs
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
Calls

2 calls:

2.0ms
x
2.0ms
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
Results
AccuracySegmentsBranch
53.0%1x
53.0%1(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
Compiler

Compiled 8 to 7 computations (12.5% saved)

regimes10.0ms (0.9%)

Memory
-50.3MiB live, 9.8MiB allocated
Counts
3 → 1
Calls
Call 1
Inputs
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
Outputs
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
Calls

2 calls:

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

Compiled 8 to 7 computations (12.5% saved)

regimes3.0ms (0.3%)

Memory
8.0MiB live, 8.0MiB allocated
Accuracy

Total -27.4b remaining (-83.2%)

Threshold costs -27.4b (-83.2%)

Counts
2 → 1
Calls
Call 1
Inputs
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x))
Outputs
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))
Calls

2 calls:

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

Compiled 8 to 7 computations (12.5% saved)

simplify5.0ms (0.4%)

Memory
13.0MiB live, 13.0MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))
Outputs
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64))))
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64)))

soundness1.0ms (0.1%)

Memory
1.4MiB live, 1.4MiB allocated
Stop Event
done
Compiler

Compiled 30 to 13 computations (56.7% saved)

preprocess28.0ms (2.6%)

Memory
-5.5MiB live, 71.9MiB allocated
Compiler

Compiled 92 to 52 computations (43.5% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...