Graphics.Rasterific.QuadraticFormula:discriminant from Rasterific-0.6.1

Time bar (total: 884.0ms)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

analyze0.0ms (0%)

Memory
0.4MiB live, 0.4MiB 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 11 to 10 computations (9.1% saved)

sample681.0ms (77.1%)

Memory
-39.6MiB live, 1 046.9MiB allocated
Samples
443.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 253.0ms
ival-mult: 198.0ms (78.4% of total)
ival-sub: 39.0ms (15.4% of total)
ival-true: 6.0ms (2.4% of total)
exact: 5.0ms (2% of total)
ival-assert: 4.0ms (1.6% of total)
Bogosity

explain86.0ms (9.7%)

Memory
7.6MiB live, 128.2MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
30-0-(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) z))
00-0-y
00-0-(*.f64 y #s(literal 4 binary64))
00-0-#s(literal 4 binary64)
00-0-z
00-0-(*.f64 x x)
00-0-(*.f64 (*.f64 y #s(literal 4 binary64)) z)
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
-.f64(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) z))nan-rescue30
(*.f64 x x)overflow68
(*.f64 (*.f64 y #s(literal 4 binary64)) z)overflow34
Confusion
Predicted +Predicted -
+30
-0253
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+300
-00253
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0253
13
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
28.0ms512×0valid
Compiler

Compiled 85 to 36 computations (57.6% saved)

Precisions
Click to see histograms. Total time spent on operations: 13.0ms
ival-mult: 10.0ms (75.9% of total)
ival-sub: 2.0ms (15.2% 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.4%)

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

Compiled 9 to 8 computations (11.1% saved)

eval0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated
Compiler

Compiled 0 to 3 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.8MiB live, 0.8MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.8%
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) z))
Compiler

Compiled 9 to 8 computations (11.1% saved)

simplify0.0ms (0%)

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

Found 4 expressions of interest:

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

localize22.0ms (2.5%)

Memory
-6.8MiB live, 31.1MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 (*.f64 y #s(literal 4 binary64)) z)
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy0.0
(*.f64 x x)
accuracy0.7109333716604117
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) z))
Samples
17.0ms256×0valid
Compiler

Compiled 50 to 18 computations (64% saved)

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

series7.0ms (0.8%)

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

9 calls:

TimeVariablePointExpression
1.0ms
y
@0
((- (* x x) (* (* y 4) z)) (* x x) (* (* y 4) z) (* y 4))
1.0ms
z
@0
((- (* x x) (* (* y 4) z)) (* x x) (* (* y 4) z) (* y 4))
1.0ms
y
@inf
((- (* x x) (* (* y 4) z)) (* x x) (* (* y 4) z) (* y 4))
1.0ms
y
@-inf
((- (* x x) (* (* y 4) z)) (* x x) (* (* y 4) z) (* y 4))
1.0ms
x
@0
((- (* x x) (* (* y 4) z)) (* x x) (* (* y 4) z) (* y 4))

simplify0.0ms (0%)

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

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
1.5MiB live, 1.5MiB allocated
Compiler

Compiled 96 to 18 computations (81.3% saved)

prune1.0ms (0.1%)

Memory
2.5MiB live, 2.5MiB allocated
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New628
Fresh000
Picked011
Done000
Total639
Accuracy
99.2%
Counts
9 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.8%
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) z))
3.3%
#s(approx (- (* x x) (* (* y 4) z)) (*.f64 y #s(literal 4 binary64)))
52.4%
#s(approx (- (* x x) (* (* y 4) z)) (*.f64 x x))
Compiler

Compiled 35 to 29 computations (17.1% saved)

simplify0.0ms (0%)

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

Found 4 expressions of interest:

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

localize23.0ms (2.6%)

Memory
-8.3MiB live, 29.0MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy61.88958357861855
#s(approx (- (* x x) (* (* y 4) z)) (*.f64 y #s(literal 4 binary64)))
accuracy0.0
(*.f64 x x)
accuracy30.456797447892455
#s(approx (- (* x x) (* (* y 4) z)) (*.f64 x x))
Samples
17.0ms256×0valid
Compiler

Compiled 64 to 23 computations (64.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 6.0ms
ival-mult: 5.0ms (77% of total)
ival-sub: 1.0ms (15.4% 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
6.4MiB live, 6.4MiB allocated
Counts
4 → 10
Calls
Call 1
Inputs
#s(approx (- (* x x) (* (* y 4) z)) (*.f64 x x))
(*.f64 x x)
#s(approx (- (* x x) (* (* y 4) z)) (*.f64 y #s(literal 4 binary64)))
(*.f64 y #s(literal 4 binary64))
Outputs
(* -4 (* y z))
(- (pow x 2) (* 4 (* y z)))
(pow x 2)
(* (pow x 2) (+ 1 (* -4 (/ (* y z) (pow x 2)))))
(+ (* -4 (* y z)) (pow x 2))
(* 4 y)
(* y (- (/ (pow x 2) y) (* 4 z)))
(* -1 (* y (- (* -1 (/ (pow x 2) y)) (* -4 z))))
(* z (- (/ (pow x 2) z) (* 4 y)))
(* -1 (* z (- (* -1 (/ (pow x 2) z)) (* -4 y))))
Calls

9 calls:

TimeVariablePointExpression
0.0ms
x
@inf
((- (* x x) (* (* y 4) z)) (* x x) (- (* x x) (* (* y 4) z)) (* y 4))
0.0ms
x
@-inf
((- (* x x) (* (* y 4) z)) (* x x) (- (* x x) (* (* y 4) z)) (* y 4))
0.0ms
y
@-inf
((- (* x x) (* (* y 4) z)) (* x x) (- (* x x) (* (* y 4) z)) (* y 4))
0.0ms
y
@inf
((- (* x x) (* (* y 4) z)) (* x x) (- (* x x) (* (* y 4) z)) (* y 4))
0.0ms
x
@0
((- (* x x) (* (* y 4) z)) (* x x) (- (* x x) (* (* y 4) z)) (* y 4))

simplify0.0ms (0%)

Memory
0.6MiB live, 0.6MiB allocated
Algorithm
egg-herbie
Counts
10 → 4
Calls
Call 1
Inputs
(* -4 (* y z))
(- (pow x 2) (* 4 (* y z)))
(pow x 2)
(* (pow x 2) (+ 1 (* -4 (/ (* y z) (pow x 2)))))
(+ (* -4 (* y z)) (pow x 2))
(* 4 y)
(* y (- (/ (pow x 2) y) (* 4 z)))
(* -1 (* y (- (* -1 (/ (pow x 2) y)) (* -4 z))))
(* z (- (/ (pow x 2) z) (* 4 y)))
(* -1 (* z (- (* -1 (/ (pow x 2) z)) (* -4 y))))
Outputs
(* -4 (* y z))
#s(approx (- (* x x) (* (* y 4) z)) (*.f64 x x))
(- (pow x 2) (* 4 (* y z)))
(*.f64 x x)
(pow x 2)
#s(approx (- (* x x) (* (* y 4) z)) (*.f64 y #s(literal 4 binary64)))
(* (pow x 2) (+ 1 (* -4 (/ (* y z) (pow x 2)))))
(*.f64 y #s(literal 4 binary64))

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
1.4MiB live, 1.4MiB allocated
Compiler

Compiled 102 to 16 computations (84.3% saved)

prune2.0ms (0.2%)

Memory
4.5MiB live, 4.5MiB allocated
Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New606
Fresh000
Picked022
Done011
Total639
Accuracy
99.2%
Counts
9 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.8%
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) z))
3.3%
#s(approx (- (* x x) (* (* y 4) z)) (*.f64 y #s(literal 4 binary64)))
52.4%
#s(approx (- (* x x) (* (* y 4) z)) (*.f64 x x))
Compiler

Compiled 70 to 44 computations (37.1% saved)

regimes15.0ms (1.7%)

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

7 calls:

5.0ms
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) z))
2.0ms
(*.f64 y #s(literal 4 binary64))
2.0ms
(*.f64 (*.f64 y #s(literal 4 binary64)) z)
2.0ms
x
2.0ms
z
Results
AccuracySegmentsBranch
98.8%1x
98.8%1y
98.8%1z
98.8%1(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) z))
98.8%1(*.f64 x x)
98.8%1(*.f64 (*.f64 y #s(literal 4 binary64)) z)
98.8%1(*.f64 y #s(literal 4 binary64))
Compiler

Compiled 23 to 32 computations (-39.1% saved)

regimes10.0ms (1.1%)

Memory
24.1MiB live, 24.0MiB allocated
Accuracy

Total -31.8b remaining (-104.5%)

Threshold costs -31.8b (-104.5%)

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

7 calls:

1.0ms
(*.f64 y #s(literal 4 binary64))
1.0ms
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) z))
1.0ms
x
1.0ms
y
1.0ms
z
Results
AccuracySegmentsBranch
52.4%1x
52.4%1y
52.4%1z
52.4%1(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) z))
52.4%1(*.f64 x x)
52.4%1(*.f64 (*.f64 y #s(literal 4 binary64)) z)
52.4%1(*.f64 y #s(literal 4 binary64))
Compiler

Compiled 23 to 32 computations (-39.1% saved)

simplify8.0ms (0.9%)

Memory
-33.2MiB live, 11.9MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) z))
#s(approx (- (* x x) (* (* y 4) z)) (*.f64 x x))
Outputs
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) z))
#s(approx (- (* x x) (* (* y 4) z)) (*.f64 x x))

soundness0.0ms (0.1%)

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

Compiled 22 to 14 computations (36.4% saved)

preprocess18.0ms (2%)

Memory
-2.4MiB live, 35.7MiB allocated
Compiler

Compiled 62 to 44 computations (29% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...