Examples.Basics.BasicTests:f1 from sbv-4.4

Time bar (total: 669.0ms)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated

analyze0.0ms (0%)

Memory
1.0MiB live, 1.0MiB 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 7 computations (22.2% saved)

sample522.0ms (78.1%)

Memory
2.3MiB live, 936.2MiB allocated
Samples
310.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 154.0ms
ival-add: 56.0ms (36.3% of total)
ival-mult: 51.0ms (33.1% of total)
ival-sub: 40.0ms (25.9% of total)
ival-true: 6.0ms (3.9% of total)
ival-assert: 3.0ms (1.9% of total)
Bogosity

explain53.0ms (7.9%)

Memory
-2.4MiB live, 83.9MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-y
00-0-(*.f64 (+.f64 x y) (-.f64 x y))
00-0-(+.f64 x y)
00-0-(-.f64 x y)
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
25.0ms512×0valid
Compiler

Compiled 56 to 24 computations (57.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 13.0ms
ival-mult: 7.0ms (53.2% of total)
ival-sub: 3.0ms (22.8% of total)
ival-add: 3.0ms (22.8% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess3.0ms (0.4%)

Memory
5.2MiB live, 5.2MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(*.f64 (+.f64 x y) (-.f64 x y))
Outputs
(*.f64 (+.f64 x y) (-.f64 x y))
Compiler

Compiled 7 to 5 computations (28.6% 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 x y) (-.f64 x y))
Compiler

Compiled 7 to 5 computations (28.6% 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 y)
cost-diff0
(+.f64 x y)
cost-diff0
(*.f64 (+.f64 x y) (-.f64 x y))
Calls
Call 1
Inputs
(*.f64 (+.f64 x y) (-.f64 x y))
(+.f64 x y)
x
y
(-.f64 x y)
Outputs
(*.f64 (+.f64 x y) (-.f64 x y))
(+.f64 x y)
x
y
(-.f64 x y)

localize18.0ms (2.6%)

Memory
-15.3MiB live, 22.4MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(-.f64 x y)
accuracy0.0
(+.f64 x y)
accuracy0.0
(*.f64 (+.f64 x y) (-.f64 x y))
Samples
13.0ms256×0valid
Compiler

Compiled 32 to 12 computations (62.5% saved)

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

series3.0ms (0.4%)

Memory
4.6MiB live, 4.6MiB allocated
Counts
3 → 27
Calls
Call 1
Inputs
(*.f64 (+.f64 x y) (-.f64 x y))
(+.f64 x y)
(-.f64 x y)
Outputs
(* -1 (pow y 2))
(+ (* -1 (pow y 2)) (* x (+ y (* -1 y))))
(+ (* -1 (pow y 2)) (* x (+ x (+ y (* -1 y)))))
y
(+ x y)
(* -1 y)
(- x y)
(pow x 2)
(* (pow x 2) (+ 1 (+ (* -1 (/ y x)) (/ y x))))
(* (pow x 2) (+ 1 (+ (* -1 (/ y x)) (+ (* -1 (/ (pow y 2) (pow x 2))) (/ y x)))))
x
(* x (+ 1 (/ y x)))
(* x (+ 1 (* -1 (/ y x))))
(* (pow x 2) (+ 1 (* -1 (/ (+ (* -1 (+ y (* -1 y))) (/ (pow y 2) x)) x))))
(* -1 (* x (- (* -1 (/ y x)) 1)))
(* -1 (* x (- (/ y x) 1)))
(+ (* y (+ x (* -1 x))) (pow x 2))
(+ (* y (+ x (+ (* -1 x) (* -1 y)))) (pow x 2))
(+ x (* -1 y))
(* (pow y 2) (- (+ (* -1 (/ x y)) (/ x y)) 1))
(* (pow y 2) (- (+ (* -1 (/ x y)) (+ (/ x y) (/ (pow x 2) (pow y 2)))) 1))
(* y (+ 1 (/ x y)))
(* y (- (/ x y) 1))
(* (pow y 2) (- (* -1 (/ (+ x (* -1 x)) y)) 1))
(* (pow y 2) (- (* -1 (/ (+ x (+ (* -1 x) (* -1 (/ (pow x 2) y)))) y)) 1))
(* -1 (* y (- (* -1 (/ x y)) 1)))
(* -1 (* y (+ 1 (* -1 (/ x y)))))
Calls

6 calls:

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

simplify0.0ms (0.1%)

Memory
0.7MiB live, 0.7MiB allocated
Algorithm
egg-herbie
Counts
27 → 3
Calls
Call 1
Inputs
(* -1 (pow y 2))
(+ (* -1 (pow y 2)) (* x (+ y (* -1 y))))
(+ (* -1 (pow y 2)) (* x (+ x (+ y (* -1 y)))))
y
(+ x y)
(* -1 y)
(- x y)
(pow x 2)
(* (pow x 2) (+ 1 (+ (* -1 (/ y x)) (/ y x))))
(* (pow x 2) (+ 1 (+ (* -1 (/ y x)) (+ (* -1 (/ (pow y 2) (pow x 2))) (/ y x)))))
x
(* x (+ 1 (/ y x)))
(* x (+ 1 (* -1 (/ y x))))
(* (pow x 2) (+ 1 (* -1 (/ (+ (* -1 (+ y (* -1 y))) (/ (pow y 2) x)) x))))
(* -1 (* x (- (* -1 (/ y x)) 1)))
(* -1 (* x (- (/ y x) 1)))
(+ (* y (+ x (* -1 x))) (pow x 2))
(+ (* y (+ x (+ (* -1 x) (* -1 y)))) (pow x 2))
(+ x (* -1 y))
(* (pow y 2) (- (+ (* -1 (/ x y)) (/ x y)) 1))
(* (pow y 2) (- (+ (* -1 (/ x y)) (+ (/ x y) (/ (pow x 2) (pow y 2)))) 1))
(* y (+ 1 (/ x y)))
(* y (- (/ x y) 1))
(* (pow y 2) (- (* -1 (/ (+ x (* -1 x)) y)) 1))
(* (pow y 2) (- (* -1 (/ (+ x (+ (* -1 x) (* -1 (/ (pow x 2) y)))) y)) 1))
(* -1 (* y (- (* -1 (/ x y)) 1)))
(* -1 (* y (+ 1 (* -1 (/ x y)))))
Outputs
(* -1 (pow y 2))
(*.f64 (+.f64 x y) (-.f64 x y))
(+ (* -1 (pow y 2)) (* x (+ y (* -1 y))))
(+.f64 x y)
(+ (* -1 (pow y 2)) (* x (+ x (+ y (* -1 y)))))
(-.f64 x y)

rewrite0.0ms (0%)

Memory
0.6MiB live, 0.6MiB allocated
Counts
3 → 3
Calls
Call 1
Inputs
(*.f64 (+.f64 x y) (-.f64 x y))
(+.f64 x y)
(-.f64 x y)
Outputs
(*.f64 (+.f64 x y) (-.f64 x y))
(+.f64 x y)
(-.f64 x y)

eval1.0ms (0.1%)

Memory
1.4MiB live, 1.4MiB allocated
Compiler

Compiled 58 to 11 computations (81% saved)

prune1.0ms (0.2%)

Memory
2.6MiB live, 2.6MiB 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 x y) (-.f64 x y))
4.1%
#s(approx (* (+ x y) (- x y)) (-.f64 x y))
4.0%
#s(approx (* (+ x y) (- x y)) (+.f64 x y))
Compiler

Compiled 29 to 19 computations (34.5% saved)

simplify0.0ms (0%)

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

Found 4 expressions of interest:

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

localize19.0ms (2.8%)

Memory
-6.5MiB live, 31.6MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(-.f64 x y)
accuracy61.40411712972265
#s(approx (* (+ x y) (- x y)) (-.f64 x y))
accuracy0.0
(+.f64 x y)
accuracy61.416993899787606
#s(approx (* (+ x y) (- x y)) (+.f64 x y))
Samples
14.0ms256×0valid
Compiler

Compiled 58 to 16 computations (72.4% saved)

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

series1.0ms (0.2%)

Memory
2.2MiB live, 2.2MiB allocated
Counts
4 → 27
Calls
Call 1
Inputs
#s(approx (* (+ x y) (- x y)) (+.f64 x y))
(+.f64 x y)
#s(approx (* (+ x y) (- x y)) (-.f64 x y))
(-.f64 x y)
Outputs
(* -1 (pow y 2))
(+ (* -1 (pow y 2)) (* x (+ y (* -1 y))))
(+ (* -1 (pow y 2)) (* x (+ x (+ y (* -1 y)))))
y
(+ x y)
(* -1 y)
(- x y)
(pow x 2)
(* (pow x 2) (+ 1 (+ (* -1 (/ y x)) (/ y x))))
(* (pow x 2) (+ 1 (+ (* -1 (/ y x)) (+ (* -1 (/ (pow y 2) (pow x 2))) (/ y x)))))
x
(* x (+ 1 (/ y x)))
(* x (+ 1 (* -1 (/ y x))))
(* (pow x 2) (+ 1 (* -1 (/ (+ (* -1 (+ y (* -1 y))) (/ (pow y 2) x)) x))))
(* -1 (* x (- (* -1 (/ y x)) 1)))
(* -1 (* x (- (/ y x) 1)))
(+ (* y (+ x (* -1 x))) (pow x 2))
(+ (* y (+ x (+ (* -1 x) (* -1 y)))) (pow x 2))
(+ x (* -1 y))
(* (pow y 2) (- (+ (* -1 (/ x y)) (/ x y)) 1))
(* (pow y 2) (- (+ (* -1 (/ x y)) (+ (/ x y) (/ (pow x 2) (pow y 2)))) 1))
(* y (+ 1 (/ x y)))
(* y (- (/ x y) 1))
(* (pow y 2) (- (* -1 (/ (+ x (* -1 x)) y)) 1))
(* (pow y 2) (- (* -1 (/ (+ x (+ (* -1 x) (* -1 (/ (pow x 2) y)))) y)) 1))
(* -1 (* y (- (* -1 (/ x y)) 1)))
(* -1 (* y (+ 1 (* -1 (/ x y)))))
Calls

6 calls:

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

simplify0.0ms (0.1%)

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

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
1.4MiB live, 1.4MiB allocated
Compiler

Compiled 97 to 13 computations (86.6% saved)

prune3.0ms (0.4%)

Memory
4.2MiB live, 4.2MiB allocated
Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New707
Fresh000
Picked022
Done011
Total7310
Accuracy
100.0%
Counts
10 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 (+.f64 x y) (-.f64 x y))
4.1%
#s(approx (* (+ x y) (- x y)) (-.f64 x y))
4.0%
#s(approx (* (+ x y) (- x y)) (+.f64 x y))
Compiler

Compiled 58 to 29 computations (50% saved)

regimes5.0ms (0.8%)

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

3 calls:

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

Compiled 9 to 9 computations (0% saved)

regimes8.0ms (1.2%)

Memory
-32.3MiB live, 11.9MiB allocated
Counts
2 → 1
Calls
Call 1
Inputs
#s(approx (* (+ x y) (- x y)) (+.f64 x y))
#s(approx (* (+ x y) (- x y)) (-.f64 x y))
Outputs
#s(approx (* (+ x y) (- x y)) (-.f64 x y))
Calls

3 calls:

5.0ms
(*.f64 (+.f64 x y) (-.f64 x y))
1.0ms
y
1.0ms
x
Results
AccuracySegmentsBranch
4.1%1x
4.1%1y
4.1%1(*.f64 (+.f64 x y) (-.f64 x y))
Compiler

Compiled 9 to 9 computations (0% saved)

regimes4.0ms (0.5%)

Memory
9.0MiB live, 9.0MiB allocated
Accuracy

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

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

3 calls:

1.0ms
y
1.0ms
x
1.0ms
(*.f64 (+.f64 x y) (-.f64 x y))
Results
AccuracySegmentsBranch
4.0%1y
4.0%1(*.f64 (+.f64 x y) (-.f64 x y))
4.0%1x
Compiler

Compiled 9 to 9 computations (0% saved)

simplify4.0ms (0.6%)

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

soundness1.0ms (0.1%)

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

Compiled 29 to 10 computations (65.5% saved)

preprocess21.0ms (3.1%)

Memory
0.4MiB live, 38.3MiB allocated
Compiler

Compiled 72 to 30 computations (58.3% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...