Expanding a square

Time bar (total: 958.0ms)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

analyze0.0ms (0%)

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

sample739.0ms (77.2%)

Memory
37.2MiB live, 716.1MiB allocated
Samples
172.0ms2 386×1valid
167.0ms1 581×2valid
165.0ms4 289×0valid
Precisions
Click to see histograms. Total time spent on operations: 317.0ms
ival-mult: 89.0ms (28% of total)
adjust: 76.0ms (23.9% of total)
ival-add: 76.0ms (23.9% of total)
ival-sub: 64.0ms (20.2% of total)
ival-true: 5.0ms (1.6% of total)
exact: 5.0ms (1.6% of total)
ival-assert: 3.0ms (0.9% of total)
Bogosity

explain82.0ms (8.5%)

Memory
-24.0MiB live, 106.0MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1190-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))cancellation1190
Confusion
Predicted +Predicted -
+1190
-0137
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+11900
-00137
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0137
1119
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
14.0ms116×2valid
11.0ms278×0valid
9.0ms118×1valid
Compiler

Compiled 76 to 24 computations (68.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 19.0ms
adjust: 5.0ms (25.8% of total)
ival-add: 5.0ms (25.8% of total)
ival-mult: 5.0ms (25.8% of total)
ival-sub: 4.0ms (20.7% 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
2.3MiB live, 2.3MiB allocated
Algorithm
egg-herbie
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))
Compiler

Compiled 9 to 5 computations (44.4% saved)

eval0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated
Compiler

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
56.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)

simplify0.0ms (0%)

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

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f64 x #s(literal 1 binary64))
cost-diff0
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
cost-diff0
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
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 1 binary64)) (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)

localize21.0ms (2.2%)

Memory
15.0MiB live, 15.0MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(+.f64 x #s(literal 1 binary64))
accuracy0.01953125
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
accuracy27.65332348129161
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
Samples
6.0ms58×2valid
5.0ms139×0valid
4.0ms59×1valid
Compiler

Compiled 44 to 12 computations (72.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-mult: 3.0ms (32.1% of total)
adjust: 2.0ms (21.4% of total)
ival-add: 2.0ms (21.4% of total)
ival-sub: 2.0ms (21.4% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series1.0ms (0.2%)

Memory
1.1MiB live, 1.1MiB allocated
Counts
3 → 11
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
(* 2 x)
(* x (+ 2 x))
1
(+ 1 (* 2 x))
(+ 1 (* x (+ 2 x)))
(+ 1 x)
(pow x 2)
(* (pow x 2) (+ 1 (* 2 (/ 1 x))))
(* (pow x 2) (+ 1 (+ (* 2 (/ 1 x)) (/ 1 (pow x 2)))))
x
(* x (+ 1 (/ 1 x)))
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@-inf
((- (* (+ 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))
0.0ms
x
@0
((- (* (+ x 1) (+ x 1)) 1) (* (+ x 1) (+ x 1)) (+ x 1))

simplify0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated
Algorithm
egg-herbie
Counts
11 → 3
Calls
Call 1
Inputs
(* 2 x)
(* x (+ 2 x))
1
(+ 1 (* 2 x))
(+ 1 (* x (+ 2 x)))
(+ 1 x)
(pow x 2)
(* (pow x 2) (+ 1 (* 2 (/ 1 x))))
(* (pow x 2) (+ 1 (+ (* 2 (/ 1 x)) (/ 1 (pow x 2)))))
x
(* x (+ 1 (/ 1 x)))
Outputs
(* 2 x)
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
(* x (+ 2 x))
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
1
(+.f64 x #s(literal 1 binary64))

rewrite0.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated
Counts
3 → 3
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 (+.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))

eval1.0ms (0.1%)

Memory
0.8MiB live, 0.8MiB allocated
Compiler

Compiled 85 to 13 computations (84.7% saved)

prune1.0ms (0.1%)

Memory
1.3MiB live, 1.3MiB allocated
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New527
Fresh000
Picked011
Done000
Total538
Accuracy
56.9%
Counts
8 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
56.7%
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
5.0%
(-.f64 #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
54.0%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))))
Compiler

Compiled 39 to 22 computations (43.6% saved)

simplify0.0ms (0%)

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

Found 6 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f64 x #s(literal 1 binary64))
cost-diff0
#s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64)))
cost-diff0
(-.f64 #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
cost-diff0
(+.f64 x #s(literal 1 binary64))
cost-diff0
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
cost-diff0
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))))
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #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)
(-.f64 #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
#s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #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)
(-.f64 #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
#s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)

localize25.0ms (2.7%)

Memory
-13.1MiB live, 17.5MiB allocated
Localize:

Found 6 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(+.f64 x #s(literal 1 binary64))
accuracy27.65332348129161
(-.f64 #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
accuracy33.123326713206815
#s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64)))
accuracy0.0
(+.f64 x #s(literal 1 binary64))
accuracy0.01953125
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
accuracy29.44392939219655
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))))
Samples
7.0ms58×2valid
7.0ms139×0valid
5.0ms59×1valid
Compiler

Compiled 102 to 18 computations (82.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-mult: 3.0ms (32% of total)
adjust: 2.0ms (21.3% of total)
ival-add: 2.0ms (21.3% of total)
ival-sub: 2.0ms (21.3% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series1.0ms (0.1%)

Memory
0.9MiB live, 0.9MiB allocated
Counts
5 → 11
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))))
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
(-.f64 #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
#s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64)))
Outputs
(* 2 x)
(* x (+ 2 x))
1
(+ 1 (* 2 x))
(+ 1 (* x (+ 2 x)))
(+ 1 x)
(pow x 2)
(* (pow x 2) (+ 1 (* 2 (/ 1 x))))
(* (pow x 2) (+ 1 (+ (* 2 (/ 1 x)) (/ 1 (pow x 2)))))
x
(* x (+ 1 (/ 1 x)))
Calls

3 calls:

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

simplify0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated
Algorithm
egg-herbie
Counts
11 → 5
Calls
Call 1
Inputs
(* 2 x)
(* x (+ 2 x))
1
(+ 1 (* 2 x))
(+ 1 (* x (+ 2 x)))
(+ 1 x)
(pow x 2)
(* (pow x 2) (+ 1 (* 2 (/ 1 x))))
(* (pow x 2) (+ 1 (+ (* 2 (/ 1 x)) (/ 1 (pow x 2)))))
x
(* x (+ 1 (/ 1 x)))
Outputs
(* 2 x)
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))))
(* x (+ 2 x))
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
1
(+.f64 x #s(literal 1 binary64))
(+ 1 (* 2 x))
(-.f64 #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
(+ 1 (* x (+ 2 x)))
#s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64)))

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
1.2MiB live, 1.2MiB allocated
Compiler

Compiled 202 to 17 computations (91.6% saved)

prune2.0ms (0.2%)

Memory
2.1MiB live, 2.1MiB allocated
Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New9110
Fresh000
Picked022
Done011
Total9413
Accuracy
56.9%
Counts
13 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
56.7%
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
5.0%
(-.f64 #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
54.0%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))))
3.7%
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))))
Compiler

Compiled 60 to 31 computations (48.3% saved)

simplify0.0ms (0%)

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

Found 3 expressions of interest:

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

localize22.0ms (2.3%)

Memory
-16.0MiB live, 14.8MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(+.f64 x #s(literal 1 binary64))
accuracy29.44392939219655
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))))
accuracy33.123326713206815
#s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64)))
Samples
8.0ms58×2valid
5.0ms139×0valid
4.0ms59×1valid
Compiler

Compiled 60 to 16 computations (73.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 10.0ms
adjust: 4.0ms (38.1% of total)
ival-add: 2.0ms (19.1% of total)
ival-mult: 2.0ms (19.1% of total)
ival-sub: 2.0ms (19.1% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series1.0ms (0.1%)

Memory
0.7MiB live, 0.7MiB allocated
Counts
3 → 11
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))))
#s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
Outputs
(* 2 x)
(* x (+ 2 x))
1
(+ 1 (* 2 x))
(+ 1 (* x (+ 2 x)))
(+ 1 x)
(pow x 2)
(* (pow x 2) (+ 1 (* 2 (/ 1 x))))
(* (pow x 2) (+ 1 (+ (* 2 (/ 1 x)) (/ 1 (pow x 2)))))
x
(* x (+ 1 (/ 1 x)))
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@inf
((- (* (+ 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))
0.0ms
x
@0
((- (* (+ x 1) (+ x 1)) 1) (* (+ x 1) (+ x 1)) (+ x 1))

simplify0.0ms (0%)

Memory
0.2MiB live, 0.2MiB allocated
Algorithm
egg-herbie
Counts
11 → 3
Calls
Call 1
Inputs
(* 2 x)
(* x (+ 2 x))
1
(+ 1 (* 2 x))
(+ 1 (* x (+ 2 x)))
(+ 1 x)
(pow x 2)
(* (pow x 2) (+ 1 (* 2 (/ 1 x))))
(* (pow x 2) (+ 1 (+ (* 2 (/ 1 x)) (/ 1 (pow x 2)))))
x
(* x (+ 1 (/ 1 x)))
Outputs
(* 2 x)
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))))
(* x (+ 2 x))
#s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64)))
1
(+.f64 x #s(literal 1 binary64))

rewrite0.0ms (0%)

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

eval0.0ms (0.1%)

Memory
0.5MiB live, 0.5MiB allocated
Compiler

Compiled 94 to 10 computations (89.4% saved)

prune3.0ms (0.3%)

Memory
2.6MiB live, 2.6MiB allocated
Pruning

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New404
Fresh000
Picked011
Done033
Total448
Accuracy
56.9%
Counts
8 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
56.7%
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
5.0%
(-.f64 #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
54.0%
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))))
3.7%
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))))
Compiler

Compiled 120 to 44 computations (63.3% saved)

regimes8.0ms (0.8%)

Memory
8.4MiB live, 8.4MiB allocated
Counts
4 → 1
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))))
(-.f64 #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
#s(approx (- (* (+ x 1) (+ x 1)) 1) (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))))
(-.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))
Calls

4 calls:

2.0ms
x
2.0ms
(+.f64 x #s(literal 1 binary64))
2.0ms
(*.f64 (+.f64 x #s(literal 1 binary64)) (+.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))
Results
AccuracySegmentsBranch
56.7%1x
56.7%1(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
56.7%1(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
56.7%1(+.f64 x #s(literal 1 binary64))
Compiler

Compiled 20 to 13 computations (35% saved)

regimes6.0ms (0.7%)

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

4 calls:

2.0ms
x
2.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
54.0%1x
54.0%1(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
54.0%1(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
54.0%1(+.f64 x #s(literal 1 binary64))
Compiler

Compiled 20 to 13 computations (35% saved)

regimes5.0ms (0.6%)

Memory
7.0MiB live, 7.0MiB allocated
Counts
2 → 1
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))))
(-.f64 #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
Outputs
(-.f64 #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 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
5.0%1x
5.0%1(+.f64 x #s(literal 1 binary64))
5.0%1(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
5.0%1(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
Compiler

Compiled 20 to 13 computations (35% saved)

regimes5.0ms (0.5%)

Memory
-24.9MiB live, 6.4MiB allocated
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(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))))
Outputs
#s(approx (- (* (+ x 1) (+ x 1)) 1) #s(approx (* (+ x 1) (+ x 1)) (+.f64 x #s(literal 1 binary64))))
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
3.7%1(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64))
3.7%1(*.f64 (+.f64 x #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
3.7%1(+.f64 x #s(literal 1 binary64))
3.7%1x
Compiler

Compiled 20 to 13 computations (35% saved)

simplify4.0ms (0.4%)

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

soundness1.0ms (0.1%)

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

Compiled 60 to 13 computations (78.3% saved)

preprocess22.0ms (2.3%)

Memory
-9.9MiB live, 22.2MiB allocated
Compiler

Compiled 138 to 36 computations (73.9% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...