Data.Colour.SRGB:transferFunction from colour-2.3.3

Time bar (total: 777.0ms)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated

analyze0.0ms (0%)

Memory
0.7MiB live, 0.7MiB allocated
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%99.9%0.1%0%0%0%0
100%99.9%0%0.1%0%0%0%1
Compiler

Compiled 9 to 8 computations (11.1% saved)

sample537.0ms (69%)

Memory
20.5MiB live, 878.1MiB allocated
Samples
337.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 159.0ms
ival-add: 55.0ms (34.5% of total)
ival-mult: 54.0ms (33.9% of total)
ival-sub: 37.0ms (23.2% of total)
ival-true: 6.0ms (3.8% of total)
exact: 5.0ms (3.1% of total)
ival-assert: 3.0ms (1.9% of total)
Bogosity

explain65.0ms (8.4%)

Memory
-21.5MiB live, 97.8MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-(+.f64 x #s(literal 1 binary64))
00-0-(*.f64 (+.f64 x #s(literal 1 binary64)) y)
00-0-y
00-0-(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) y) x)
00-0-#s(literal 1 binary64)
00-0-x
Confusion
Predicted +Predicted -
+00
-0256
Precision
0/0
Recall
0/0
Confusion?
Predicted +Predicted MaybePredicted -
+000
-00256
Precision?
0/0
Recall?
0/0
Freqs
test
numberfreq
0256
Total Confusion?
Predicted +Predicted MaybePredicted -
+000
-001
Precision?
0/0
Recall?
0/0
Samples
24.0ms512×0valid
Compiler

Compiled 65 to 28 computations (56.9% saved)

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

preprocess3.0ms (0.3%)

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

Compiled 7 to 6 computations (14.3% saved)

eval0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0.1%)

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

Compiled 7 to 6 computations (14.3% saved)

simplify0.0ms (0%)

Memory
0.6MiB live, 0.6MiB 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)) y)
cost-diff0
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) y) x)
Calls
Call 1
Inputs
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) y) x)
(*.f64 (+.f64 x #s(literal 1 binary64)) y)
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
y
Outputs
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) y) x)
(*.f64 (+.f64 x #s(literal 1 binary64)) y)
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
y

localize20.0ms (2.5%)

Memory
-15.2MiB live, 21.5MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(+.f64 x #s(literal 1 binary64))
accuracy0.00390625
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) y) x)
accuracy0.01171875
(*.f64 (+.f64 x #s(literal 1 binary64)) y)
Samples
11.0ms256×0valid
Compiler

Compiled 38 to 14 computations (63.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 5.0ms
ival-mult: 2.0ms (42% of total)
ival-sub: 1.0ms (21% of total)
ival-add: 1.0ms (21% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series3.0ms (0.4%)

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

6 calls:

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

simplify0.0ms (0%)

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

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
1.1MiB live, 1.1MiB allocated
Compiler

Compiled 60 to 14 computations (76.7% saved)

prune1.0ms (0.1%)

Memory
2.1MiB live, 2.1MiB allocated
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New426
Fresh000
Picked011
Done000
Total437
Accuracy
100.0%
Counts
7 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) y) x)
2.9%
(-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x)
67.0%
#s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y))
Compiler

Compiled 31 to 25 computations (19.4% saved)

simplify0.0ms (0.1%)

Memory
0.7MiB live, 0.7MiB 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) y) (+.f64 x #s(literal 1 binary64)))
cost-diff0
(-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x)
cost-diff0
(+.f64 x #s(literal 1 binary64))
cost-diff0
(*.f64 (+.f64 x #s(literal 1 binary64)) y)
cost-diff0
#s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y))
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y))
(*.f64 (+.f64 x #s(literal 1 binary64)) y)
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
y
(-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x)
#s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
Outputs
#s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y))
(*.f64 (+.f64 x #s(literal 1 binary64)) y)
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
y
(-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x)
#s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)

localize18.0ms (2.3%)

Memory
25.0MiB live, 25.0MiB allocated
Localize:

Found 6 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(+.f64 x #s(literal 1 binary64))
accuracy0.00390625
(-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x)
accuracy61.65157842461315
#s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64)))
accuracy0.0
(+.f64 x #s(literal 1 binary64))
accuracy0.01171875
(*.f64 (+.f64 x #s(literal 1 binary64)) y)
accuracy21.139151363336303
#s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y))
Samples
12.0ms256×0valid
Compiler

Compiled 86 to 20 computations (76.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 5.0ms
ival-mult: 2.0ms (42.2% of total)
ival-sub: 1.0ms (21.1% of total)
ival-add: 1.0ms (21.1% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series2.0ms (0.3%)

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

6 calls:

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

simplify4.0ms (0.6%)

Memory
-36.4MiB live, 0.6MiB allocated
Algorithm
egg-herbie
Counts
19 → 5
Calls
Call 1
Inputs
y
(+ y (* x (- y 1)))
(+ y (* x y))
1
(+ 1 x)
(* x (- y 1))
(* x (- (+ y (/ y x)) 1))
(* x y)
(* x (+ y (/ y x)))
x
(* x (+ 1 (/ 1 x)))
(* -1 (* x (+ 1 (* -1 y))))
(* -1 (* x (+ 1 (+ (* -1 y) (* -1 (/ y x))))))
(* -1 (* x (+ (* -1 y) (* -1 (/ y x)))))
(* -1 x)
(- (* y (+ 1 x)) x)
(* y (+ 1 x))
(* y (+ 1 (+ x (* -1 (/ x y)))))
(* -1 (* y (+ (* -1 (+ 1 x)) (/ x y))))
Outputs
y
#s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y))
(+ y (* x (- y 1)))
(*.f64 (+.f64 x #s(literal 1 binary64)) y)
(+ y (* x y))
(+.f64 x #s(literal 1 binary64))
1
(-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x)
(+ 1 x)
#s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64)))

rewrite0.0ms (0.1%)

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

eval1.0ms (0.1%)

Memory
2.3MiB live, 2.3MiB allocated
Compiler

Compiled 191 to 24 computations (87.4% saved)

prune2.0ms (0.3%)

Memory
4.1MiB live, 4.1MiB allocated
Pruning

5 alts after pruning (2 fresh and 3 done)

PrunedKeptTotal
New9211
Fresh000
Picked022
Done011
Total9514
Accuracy
100.0%
Counts
14 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) y) x)
2.9%
(-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x)
24.3%
(-.f64 #s(approx (* (+ x 1) y) #s(approx (+ x 1) (-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x))) x)
67.0%
#s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y))
3.1%
#s(approx (- (* (+ x 1) y) x) #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))))
Compiler

Compiled 71 to 47 computations (33.8% saved)

simplify1.0ms (0.1%)

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

Found 7 expressions of interest:

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

localize19.0ms (2.5%)

Memory
27.6MiB live, 27.6MiB allocated
Localize:

Found 7 expressions of interest:

NewMetricScoreProgram
accuracy0.00390625
(-.f64 #s(approx (* (+ x 1) y) #s(approx (+ x 1) (-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x))) x)
accuracy61.65157842461315
#s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64)))
accuracy61.65157842461315
#s(approx (* (+ x 1) y) #s(approx (+ x 1) (-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x)))
accuracy61.9907351661858
#s(approx (+ x 1) (-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x))
accuracy0.0
(+.f64 x #s(literal 1 binary64))
accuracy21.139151363336303
#s(approx (- (* (+ x 1) y) x) #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))))
accuracy61.65157842461315
#s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64)))
Samples
12.0ms256×0valid
Compiler

Compiled 166 to 22 computations (86.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 5.0ms
ival-add: 2.0ms (41.7% of total)
ival-mult: 2.0ms (41.7% of total)
ival-sub: 1.0ms (20.8% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series2.0ms (0.3%)

Memory
3.5MiB live, 3.5MiB allocated
Counts
7 → 19
Calls
Call 1
Inputs
#s(approx (- (* (+ x 1) y) x) #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))))
#s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64)))
(+.f64 x #s(literal 1 binary64))
(-.f64 #s(approx (* (+ x 1) y) #s(approx (+ x 1) (-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x))) x)
#s(approx (* (+ x 1) y) #s(approx (+ x 1) (-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x)))
#s(approx (+ x 1) (-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x))
(-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x)
Outputs
y
(+ y (* x (- y 1)))
(+ y (* x y))
1
(+ 1 x)
(* x (- y 1))
(* x (- (+ y (/ y x)) 1))
(* x y)
(* x (+ y (/ y x)))
x
(* x (+ 1 (/ 1 x)))
(* -1 (* x (+ 1 (* -1 y))))
(* -1 (* x (+ 1 (+ (* -1 y) (* -1 (/ y x))))))
(* -1 (* x (+ (* -1 y) (* -1 (/ y x)))))
(* -1 x)
(- (* y (+ 1 x)) x)
(* y (+ 1 x))
(* y (+ 1 (+ x (* -1 (/ x y)))))
(* -1 (* y (+ (* -1 (+ 1 x)) (/ x y))))
Calls

6 calls:

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

simplify5.0ms (0.7%)

Memory
-40.8MiB live, 0.6MiB allocated
Algorithm
egg-herbie
Counts
19 → 7
Calls
Call 1
Inputs
y
(+ y (* x (- y 1)))
(+ y (* x y))
1
(+ 1 x)
(* x (- y 1))
(* x (- (+ y (/ y x)) 1))
(* x y)
(* x (+ y (/ y x)))
x
(* x (+ 1 (/ 1 x)))
(* -1 (* x (+ 1 (* -1 y))))
(* -1 (* x (+ 1 (+ (* -1 y) (* -1 (/ y x))))))
(* -1 (* x (+ (* -1 y) (* -1 (/ y x)))))
(* -1 x)
(- (* y (+ 1 x)) x)
(* y (+ 1 x))
(* y (+ 1 (+ x (* -1 (/ x y)))))
(* -1 (* y (+ (* -1 (+ 1 x)) (/ x y))))
Outputs
y
#s(approx (- (* (+ x 1) y) x) #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))))
(+ y (* x (- y 1)))
#s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64)))
(+ y (* x y))
(+.f64 x #s(literal 1 binary64))
1
(-.f64 #s(approx (* (+ x 1) y) #s(approx (+ x 1) (-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x))) x)
(+ 1 x)
#s(approx (* (+ x 1) y) #s(approx (+ x 1) (-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x)))
(* x (- y 1))
#s(approx (+ x 1) (-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x))
(* x (- (+ y (/ y x)) 1))
(-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x)

rewrite1.0ms (0.1%)

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

eval2.0ms (0.2%)

Memory
3.3MiB live, 3.3MiB allocated
Compiler

Compiled 428 to 31 computations (92.8% saved)

prune4.0ms (0.5%)

Memory
6.2MiB live, 6.2MiB allocated
Pruning

5 alts after pruning (0 fresh and 5 done)

PrunedKeptTotal
New16016
Fresh000
Picked022
Done033
Total16521
Accuracy
100.0%
Counts
21 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) y) x)
2.9%
(-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x)
24.3%
(-.f64 #s(approx (* (+ x 1) y) #s(approx (+ x 1) (-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x))) x)
67.0%
#s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y))
3.1%
#s(approx (- (* (+ x 1) y) x) #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))))
Compiler

Compiled 142 to 64 computations (54.9% saved)

regimes7.0ms (0.9%)

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

3 calls:

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

Compiled 9 to 10 computations (-11.1% saved)

regimes6.0ms (0.8%)

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

3 calls:

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

Compiled 9 to 10 computations (-11.1% saved)

regimes6.0ms (0.8%)

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

2 calls:

4.0ms
x
2.0ms
y
Results
AccuracySegmentsBranch
67.0%1x
67.0%1y
Compiler

Compiled 2 to 4 computations (-100% saved)

regimes5.0ms (0.6%)

Memory
9.1MiB live, 9.1MiB allocated
Accuracy

Total -0.5b remaining (-0.8%)

Threshold costs -0.5b (-0.8%)

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

3 calls:

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

Compiled 9 to 10 computations (-11.1% saved)

bsearch27.0ms (3.5%)

Memory
-7.0MiB live, 30.4MiB allocated
Algorithm
binary-search
Stop Event
narrow-enough
narrow-enough
Steps
TimeLeftRight
9.0ms
9.713926903933424e-26
2.9971598031699905e-23
12.0ms
-8.822717096308599e-147
-5.2782494987578534e-160
Samples
11.0ms288×0valid
Compiler

Compiled 658 to 443 computations (32.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 5.0ms
ival-add: 2.0ms (37.9% of total)
ival-mult: 2.0ms (37.9% of total)
ival-sub: 1.0ms (18.9% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

simplify5.0ms (0.6%)

Memory
10.5MiB live, 10.5MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) y) x)
(if (<=.f64 y #s(literal -3824076725361717/449891379454319638281053850768598185886969711830191663310075557261183758067148787031904068610389085714992091063352089512320826605549429968900851518086516385513472 binary64)) #s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y)) (if (<=.f64 y #s(literal 2007665964833537/170141183460469231731687303715884105728 binary64)) (-.f64 #s(approx (* (+ x 1) y) #s(approx (+ x 1) (-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x))) x) #s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y))))
#s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y))
#s(approx (- (* (+ x 1) y) x) #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))))
Outputs
(-.f64 (*.f64 (+.f64 x #s(literal 1 binary64)) y) x)
(if (<=.f64 y #s(literal -3824076725361717/449891379454319638281053850768598185886969711830191663310075557261183758067148787031904068610389085714992091063352089512320826605549429968900851518086516385513472 binary64)) #s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y)) (if (<=.f64 y #s(literal 2007665964833537/170141183460469231731687303715884105728 binary64)) (-.f64 #s(approx (* (+ x 1) y) #s(approx (+ x 1) (-.f64 #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))) x))) x) #s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y))))
#s(approx (- (* (+ x 1) y) x) (*.f64 (+.f64 x #s(literal 1 binary64)) y))
#s(approx (- (* (+ x 1) y) x) #s(approx (* (+ x 1) y) (+.f64 x #s(literal 1 binary64))))

soundness1.0ms (0.1%)

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

Compiled 94 to 23 computations (75.5% saved)

preprocess27.0ms (3.5%)

Memory
10.5MiB live, 46.5MiB allocated
Compiler

Compiled 202 to 58 computations (71.3% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...