Examples.Basics.BasicTests:f1 from sbv-4.4

Time bar (total: 674.0ms)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated

analyze1.0ms (0.1%)

Memory
1.2MiB live, 1.2MiB 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 (77.5%)

Memory
33.5MiB live, 887.2MiB allocated
Samples
329.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 170.0ms
ival-mult: 57.0ms (33.5% of total)
ival-sub: 53.0ms (31.2% of total)
ival-add: 50.0ms (29.4% of total)
ival-true: 6.0ms (3.5% of total)
ival-assert: 3.0ms (1.8% of total)
Bogosity

explain55.0ms (8.1%)

Memory
2.8MiB live, 88.7MiB 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
24.0ms512×0valid
Compiler

Compiled 56 to 24 computations (57.1% saved)

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

preprocess3.0ms (0.4%)

Memory
6.3MiB live, 6.3MiB 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.2MiB live, 0.2MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0.1%)

Memory
1.0MiB live, 1.0MiB 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.7%)

Memory
-14.5MiB live, 23.6MiB 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
10.0ms256×0valid
Compiler

Compiled 32 to 12 computations (62.5% saved)

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

series3.0ms (0.4%)

Memory
4.1MiB live, 4.1MiB 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.5MiB live, 0.5MiB 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.1MiB live, 1.1MiB allocated
Compiler

Compiled 58 to 11 computations (81% saved)

prune1.0ms (0.2%)

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

Compiled 29 to 19 computations (34.5% saved)

simplify0.0ms (0.1%)

Memory
0.6MiB live, 0.6MiB 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
-15.2MiB live, 22.6MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(-.f64 x y)
accuracy61.47323940194017
#s(approx (* (+ x y) (- x y)) (-.f64 x y))
accuracy0.0
(+.f64 x y)
accuracy61.650398131709096
#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: 8.0ms
ival-mult: 5.0ms (65.3% of total)
ival-sub: 1.0ms (13.1% of total)
ival-add: 1.0ms (13.1% of total)
ival-true: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series1.0ms (0.2%)

Memory
2.3MiB live, 2.3MiB 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.6MiB live, 0.6MiB 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.6MiB live, 0.6MiB 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.4MiB live, 4.4MiB 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))
3.9%
#s(approx (* (+ x y) (- x y)) (-.f64 x y))
3.7%
#s(approx (* (+ x y) (- x y)) (+.f64 x y))
Compiler

Compiled 58 to 29 computations (50% saved)

regimes5.0ms (0.8%)

Memory
10.4MiB live, 10.4MiB 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
1.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)

regimes4.0ms (0.6%)

Memory
9.5MiB live, 9.5MiB 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:

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

Compiled 9 to 9 computations (0% saved)

regimes10.0ms (1.5%)

Memory
-43.5MiB live, 8.2MiB 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:

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

Compiled 9 to 9 computations (0% saved)

simplify4.0ms (0.6%)

Memory
8.3MiB live, 8.2MiB 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.0MiB live, 1.0MiB allocated
Stop Event
done
Compiler

Compiled 29 to 10 computations (65.5% saved)

preprocess20.0ms (2.9%)

Memory
-0.2MiB live, 38.0MiB allocated
Compiler

Compiled 72 to 30 computations (58.3% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...