Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C

Time bar (total: 739.0ms)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated; 0ms collecting garbage

analyze20.0ms (2.7%)

Memory
-31.1MiB live, 12.6MiB allocated; 11ms collecting garbage
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%99.9%0.1%0%0%0%0
0%0%99.9%0.1%0%0%0%1
0%0%99.9%0.1%0%0%0%2
50%50%50%0.1%0%0%0%3
50%50%50%0.1%0%0%0%4
75%74.9%25%0.1%0%0%0%5
75%74.9%25%0.1%0%0%0%6
87.5%87.4%12.5%0.1%0%0%0%7
87.5%87.4%12.5%0.1%0%0%0%8
93.8%93.7%6.2%0.1%0%0%0%9
93.8%93.7%6.2%0.1%0%0%0%10
96.9%96.8%3.1%0.1%0%0%0%11
96.9%96.8%3.1%0.1%0%0%0%12
Compiler

Compiled 7 to 7 computations (0% saved)

sample516.0ms (69.9%)

Memory
35.9MiB live, 613.9MiB allocated; 153ms collecting garbage
Samples
295.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 102.0ms
ival-div!: 58.0ms (56.9% of total)
ival-mult!: 42.0ms (41.2% of total)
adjust: 2.0ms (2% of total)
Bogosity

preprocess24.0ms (3.3%)

Memory
-25.2MiB live, 23.3MiB allocated; 11ms collecting garbage
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01432
13830
29230
314830
415430
Stop Event
saturated
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.7%
(/.f64 x (*.f64 y #s(literal 3 binary64)))
Symmetry

(negabs x)

(negabs y)

Compiler

Compiled 10 to 10 computations (0% saved)

series6.0ms (0.8%)

Memory
8.1MiB live, 8.1MiB allocated; 0ms collecting garbage
Counts
5 → 4
Calls
Call 1
Inputs
(/.f64 x (*.f64 y #s(literal 3 binary64)))
x
(*.f64 y #s(literal 3 binary64))
y
#s(literal 3 binary64)
Outputs
#s(approx (/ x (* y 3)) #s(hole binary64 (* 1/3 (/ x y))))
#s(approx x #s(hole binary64 x))
#s(approx (* y 3) #s(hole binary64 (* 3 y)))
#s(approx y #s(hole binary64 y))
Calls

6 calls:

TimeVariablePointExpression
2.0ms
y
@inf
((/ x (* y 3)) x (* y 3) y 3)
1.0ms
x
@-inf
((/ x (* y 3)) x (* y 3) y 3)
1.0ms
x
@inf
((/ x (* y 3)) x (* y 3) y 3)
1.0ms
y
@-inf
((/ x (* y 3)) x (* y 3) y 3)
1.0ms
y
@0
((/ x (* y 3)) x (* y 3) y 3)

rewrite19.0ms (2.6%)

Memory
19.0MiB live, 19.0MiB allocated; 0ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01535
01635
12635
25735
312535
415435
516035
016035
Stop Event
iter-limit
saturated
iter-limit
Counts
9 → 19
Calls
Call 1
Inputs
(/.f64 x (*.f64 y #s(literal 3 binary64)))
x
(*.f64 y #s(literal 3 binary64))
y
#s(literal 3 binary64)
#s(approx (/ x (* y 3)) #s(hole binary64 (* 1/3 (/ x y))))
#s(approx x #s(hole binary64 x))
#s(approx (* y 3) #s(hole binary64 (* 3 y)))
#s(approx y #s(hole binary64 y))
Outputs
(/.f64 (/.f64 x #s(literal -3 binary64)) (neg.f64 y))
(/.f64 (/.f64 x #s(literal 3 binary64)) y)
(/.f64 (/.f64 (neg.f64 x) y) #s(literal -3 binary64))
(/.f64 (neg.f64 x) (*.f64 #s(literal -3 binary64) y))
(/.f64 (/.f64 x y) #s(literal 3 binary64))
(/.f64 x (*.f64 #s(literal 3 binary64) y))
(neg.f64 (/.f64 x (*.f64 #s(literal -3 binary64) y)))
x
(*.f64 #s(literal -3 binary64) (neg.f64 y))
(*.f64 (neg.f64 y) #s(literal -3 binary64))
(*.f64 #s(literal 3 binary64) y)
(*.f64 y #s(literal 3 binary64))
(neg.f64 (*.f64 #s(literal -3 binary64) y))
y
#s(literal 3 binary64)
#s(approx (/ x (* y 3)) (*.f64 (/.f64 x y) #s(literal 1/3 binary64)))
#s(approx x x)
#s(approx (* y 3) (*.f64 #s(literal 3 binary64) y))
#s(approx y y)

eval7.0ms (0.9%)

Memory
-44.5MiB live, 1.7MiB allocated; 5ms collecting garbage
Compiler

Compiled 96 to 40 computations (58.3% saved)

prune3.0ms (0.4%)

Memory
2.3MiB live, 2.3MiB allocated; 0ms collecting garbage
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New12315
Fresh000
Picked011
Done000
Total12416
Accuracy
100.0%
Counts
16 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.7%
(/.f64 (/.f64 x y) #s(literal 3 binary64))
99.7%
(/.f64 (/.f64 x #s(literal 3 binary64)) y)
99.7%
(/.f64 x (*.f64 y #s(literal 3 binary64)))
99.5%
#s(approx (/ x (* y 3)) (*.f64 (/.f64 x y) #s(literal 1/3 binary64)))
Compiler

Compiled 26 to 24 computations (7.7% saved)

series5.0ms (0.6%)

Memory
4.5MiB live, 4.5MiB allocated; 0ms collecting garbage
Counts
10 → 5
Calls
Call 1
Inputs
#s(approx (/ x (* y 3)) (*.f64 (/.f64 x y) #s(literal 1/3 binary64)))
(*.f64 (/.f64 x y) #s(literal 1/3 binary64))
(/.f64 x y)
x
y
#s(literal 1/3 binary64)
(/.f64 (/.f64 x #s(literal 3 binary64)) y)
(/.f64 x #s(literal 3 binary64))
#s(literal 3 binary64)
(/.f64 (/.f64 x y) #s(literal 3 binary64))
Outputs
#s(approx (/ x (* y 3)) #s(hole binary64 (* 1/3 (/ x y))))
#s(approx (/ x y) #s(hole binary64 (/ x y)))
#s(approx x #s(hole binary64 x))
#s(approx (/ x 3) #s(hole binary64 (* 1/3 x)))
#s(approx y #s(hole binary64 y))
Calls

6 calls:

TimeVariablePointExpression
1.0ms
x
@-inf
((/ x (* y 3)) (* (/ x y) 1/3) (/ x y) x y 1/3 (/ (/ x 3) y) (/ x 3) 3 (/ (/ x y) 3))
1.0ms
x
@inf
((/ x (* y 3)) (* (/ x y) 1/3) (/ x y) x y 1/3 (/ (/ x 3) y) (/ x 3) 3 (/ (/ x y) 3))
1.0ms
y
@-inf
((/ x (* y 3)) (* (/ x y) 1/3) (/ x y) x y 1/3 (/ (/ x 3) y) (/ x 3) 3 (/ (/ x y) 3))
1.0ms
x
@0
((/ x (* y 3)) (* (/ x y) 1/3) (/ x y) x y 1/3 (/ (/ x 3) y) (/ x 3) 3 (/ (/ x y) 3))
1.0ms
y
@inf
((/ x (* y 3)) (* (/ x y) 1/3) (/ x y) x y 1/3 (/ (/ x 3) y) (/ x 3) 3 (/ (/ x y) 3))

rewrite12.0ms (1.6%)

Memory
8.5MiB live, 8.5MiB allocated; 0ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02167
02767
14467
28767
314467
416667
517067
017067
Stop Event
iter-limit
saturated
iter-limit
Counts
15 → 41
Calls
Call 1
Inputs
#s(approx (/ x (* y 3)) (*.f64 (/.f64 x y) #s(literal 1/3 binary64)))
(*.f64 (/.f64 x y) #s(literal 1/3 binary64))
(/.f64 x y)
x
y
#s(literal 1/3 binary64)
(/.f64 (/.f64 x #s(literal 3 binary64)) y)
(/.f64 x #s(literal 3 binary64))
#s(literal 3 binary64)
(/.f64 (/.f64 x y) #s(literal 3 binary64))
#s(approx (/ x (* y 3)) #s(hole binary64 (* 1/3 (/ x y))))
#s(approx (/ x y) #s(hole binary64 (/ x y)))
#s(approx x #s(hole binary64 x))
#s(approx (/ x 3) #s(hole binary64 (* 1/3 x)))
#s(approx y #s(hole binary64 y))
Outputs
#s(approx (/ x (* y 3)) (*.f64 #s(literal 1/3 binary64) (/.f64 x y)))
(*.f64 (/.f64 #s(literal -1/3 binary64) y) (neg.f64 x))
(*.f64 #s(literal -1/3 binary64) (/.f64 (neg.f64 x) y))
(*.f64 (/.f64 #s(literal 1/3 binary64) y) x)
(*.f64 (/.f64 (neg.f64 x) y) #s(literal -1/3 binary64))
(*.f64 (neg.f64 x) (/.f64 #s(literal -1/3 binary64) y))
(*.f64 #s(literal 1/3 binary64) (/.f64 x y))
(*.f64 (/.f64 x y) #s(literal 1/3 binary64))
(*.f64 x (/.f64 #s(literal 1/3 binary64) y))
(/.f64 (*.f64 #s(literal -1/3 binary64) x) (neg.f64 y))
(/.f64 (*.f64 #s(literal 1/3 binary64) x) y)
(neg.f64 (*.f64 #s(literal -1/3 binary64) (/.f64 x y)))
(/.f64 (neg.f64 x) (neg.f64 y))
(/.f64 x y)
(neg.f64 (/.f64 (neg.f64 x) y))
x
y
#s(literal 1/3 binary64)
(/.f64 (/.f64 (neg.f64 x) y) #s(literal -3 binary64))
(/.f64 (/.f64 x #s(literal -3 binary64)) (neg.f64 y))
(/.f64 (neg.f64 x) (*.f64 #s(literal -3 binary64) y))
(/.f64 (/.f64 x #s(literal 3 binary64)) y)
(/.f64 (/.f64 x y) #s(literal 3 binary64))
(/.f64 x (*.f64 #s(literal 3 binary64) y))
(neg.f64 (/.f64 x (*.f64 #s(literal -3 binary64) y)))
(/.f64 (neg.f64 x) #s(literal -3 binary64))
(/.f64 x #s(literal 3 binary64))
(neg.f64 (/.f64 x #s(literal -3 binary64)))
#s(literal 3 binary64)
(/.f64 (/.f64 (neg.f64 x) y) #s(literal -3 binary64))
(/.f64 (/.f64 x #s(literal -3 binary64)) (neg.f64 y))
(/.f64 (neg.f64 x) (*.f64 #s(literal -3 binary64) y))
(/.f64 (/.f64 x #s(literal 3 binary64)) y)
(/.f64 (/.f64 x y) #s(literal 3 binary64))
(/.f64 x (*.f64 #s(literal 3 binary64) y))
(neg.f64 (/.f64 x (*.f64 #s(literal -3 binary64) y)))
#s(approx (/ x (* y 3)) (*.f64 #s(literal 1/3 binary64) (/.f64 x y)))
#s(approx (/ x y) (/.f64 x y))
#s(approx x x)
#s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x))
#s(approx y y)

eval3.0ms (0.3%)

Memory
5.4MiB live, 5.4MiB allocated; 0ms collecting garbage
Compiler

Compiled 295 to 81 computations (72.5% saved)

prune3.0ms (0.4%)

Memory
5.1MiB live, 5.1MiB allocated; 0ms collecting garbage
Pruning

6 alts after pruning (2 fresh and 4 done)

PrunedKeptTotal
New29231
Fresh000
Picked033
Done011
Total29635
Accuracy
100.0%
Counts
35 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.7%
(/.f64 (/.f64 x y) #s(literal 3 binary64))
99.7%
(/.f64 (/.f64 x #s(literal 3 binary64)) y)
99.6%
(/.f64 #s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x)) y)
99.7%
(/.f64 x (*.f64 y #s(literal 3 binary64)))
99.5%
#s(approx (/ x (* y 3)) (*.f64 (/.f64 x y) #s(literal 1/3 binary64)))
99.6%
#s(approx (/ x (* y 3)) (*.f64 (/.f64 #s(literal 1/3 binary64) y) x))
Compiler

Compiled 46 to 41 computations (10.9% saved)

series4.0ms (0.5%)

Memory
6.0MiB live, 6.0MiB allocated; 0ms collecting garbage
Counts
9 → 5
Calls
Call 1
Inputs
#s(approx (/ x (* y 3)) (*.f64 (/.f64 #s(literal 1/3 binary64) y) x))
(*.f64 (/.f64 #s(literal 1/3 binary64) y) x)
(/.f64 #s(literal 1/3 binary64) y)
#s(literal 1/3 binary64)
y
x
(/.f64 #s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x)) y)
#s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x))
(*.f64 #s(literal 1/3 binary64) x)
Outputs
#s(approx (/ x (* y 3)) #s(hole binary64 (* 1/3 (/ x y))))
#s(approx x #s(hole binary64 x))
#s(approx (/ x 3) #s(hole binary64 (* 1/3 x)))
#s(approx (/ 1/3 y) #s(hole binary64 (/ 1/3 y)))
#s(approx y #s(hole binary64 y))
Calls

6 calls:

TimeVariablePointExpression
1.0ms
x
@inf
((/ x (* y 3)) (* (/ 1/3 y) x) (/ 1/3 y) 1/3 y x (/ (/ x 3) y) (/ x 3) (* 1/3 x))
1.0ms
x
@-inf
((/ x (* y 3)) (* (/ 1/3 y) x) (/ 1/3 y) 1/3 y x (/ (/ x 3) y) (/ x 3) (* 1/3 x))
1.0ms
y
@-inf
((/ x (* y 3)) (* (/ 1/3 y) x) (/ 1/3 y) 1/3 y x (/ (/ x 3) y) (/ x 3) (* 1/3 x))
1.0ms
y
@inf
((/ x (* y 3)) (* (/ 1/3 y) x) (/ 1/3 y) 1/3 y x (/ (/ x 3) y) (/ x 3) (* 1/3 x))
1.0ms
x
@0
((/ x (* y 3)) (* (/ 1/3 y) x) (/ 1/3 y) 1/3 y x (/ (/ x 3) y) (/ x 3) (* 1/3 x))

rewrite11.0ms (1.5%)

Memory
14.3MiB live, 14.3MiB allocated; 0ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02272
02572
14472
29272
318772
420072
520072
020072
Stop Event
iter-limit
saturated
iter-limit
Counts
14 → 34
Calls
Call 1
Inputs
#s(approx (/ x (* y 3)) (*.f64 (/.f64 #s(literal 1/3 binary64) y) x))
(*.f64 (/.f64 #s(literal 1/3 binary64) y) x)
(/.f64 #s(literal 1/3 binary64) y)
#s(literal 1/3 binary64)
y
x
(/.f64 #s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x)) y)
#s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x))
(*.f64 #s(literal 1/3 binary64) x)
#s(approx (/ x (* y 3)) #s(hole binary64 (* 1/3 (/ x y))))
#s(approx x #s(hole binary64 x))
#s(approx (/ x 3) #s(hole binary64 (* 1/3 x)))
#s(approx (/ 1/3 y) #s(hole binary64 (/ 1/3 y)))
#s(approx y #s(hole binary64 y))
Outputs
#s(approx (/ x (* y 3)) (*.f64 (/.f64 x y) #s(literal 1/3 binary64)))
(*.f64 (/.f64 #s(literal -1/3 binary64) y) (neg.f64 x))
(*.f64 (/.f64 (neg.f64 x) y) #s(literal -1/3 binary64))
(*.f64 #s(literal -1/3 binary64) (/.f64 (neg.f64 x) y))
(*.f64 (neg.f64 x) (/.f64 #s(literal -1/3 binary64) y))
(*.f64 (/.f64 x y) #s(literal 1/3 binary64))
(*.f64 (/.f64 #s(literal 1/3 binary64) y) x)
(*.f64 #s(literal 1/3 binary64) (/.f64 x y))
(*.f64 x (/.f64 #s(literal 1/3 binary64) y))
(/.f64 (*.f64 #s(literal -1/3 binary64) x) (neg.f64 y))
(/.f64 (*.f64 #s(literal 1/3 binary64) x) y)
(neg.f64 (*.f64 (/.f64 #s(literal -1/3 binary64) y) x))
(/.f64 #s(literal -1/3 binary64) (neg.f64 y))
(/.f64 #s(literal 1/3 binary64) y)
(neg.f64 (/.f64 #s(literal -1/3 binary64) y))
#s(literal 1/3 binary64)
y
x
(/.f64 (neg.f64 #s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x))) (neg.f64 y))
(/.f64 #s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x)) y)
(neg.f64 (/.f64 #s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x)) (neg.f64 y)))
#s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x))
(neg.f64 (neg.f64 #s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x))))
(*.f64 #s(literal -1/3 binary64) (neg.f64 x))
(*.f64 (neg.f64 x) #s(literal -1/3 binary64))
(*.f64 #s(literal 1/3 binary64) x)
(*.f64 x #s(literal 1/3 binary64))
(neg.f64 (*.f64 #s(literal -1/3 binary64) x))
#s(approx (/ x (* y 3)) (*.f64 (/.f64 x y) #s(literal 1/3 binary64)))
#s(approx x x)
#s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x))
(neg.f64 (neg.f64 #s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x))))
#s(approx (/ 1/3 y) (/.f64 #s(literal 1/3 binary64) y))
#s(approx y y)

eval7.0ms (1%)

Memory
-42.0MiB live, 4.8MiB allocated; 2ms collecting garbage
Compiler

Compiled 264 to 76 computations (71.2% saved)

prune2.0ms (0.3%)

Memory
4.2MiB live, 4.2MiB allocated; 0ms collecting garbage
Pruning

6 alts after pruning (0 fresh and 6 done)

PrunedKeptTotal
New23023
Fresh000
Picked022
Done044
Total23629
Accuracy
100.0%
Counts
29 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.7%
(/.f64 (/.f64 x y) #s(literal 3 binary64))
99.7%
(/.f64 (/.f64 x #s(literal 3 binary64)) y)
99.6%
(/.f64 #s(approx (/ x 3) (*.f64 #s(literal 1/3 binary64) x)) y)
99.7%
(/.f64 x (*.f64 y #s(literal 3 binary64)))
99.5%
#s(approx (/ x (* y 3)) (*.f64 (/.f64 x y) #s(literal 1/3 binary64)))
99.6%
#s(approx (/ x (* y 3)) (*.f64 (/.f64 #s(literal 1/3 binary64) y) x))
Compiler

Compiled 46 to 41 computations (10.9% saved)

regimes39.0ms (5.3%)

Memory
2.7MiB live, 50.0MiB allocated; 1ms collecting garbage
Accuracy

Total -0.1b remaining (-19%)

Threshold costs -0.1b (-19%)

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

12 calls:

19.0ms
y
2.0ms
x
2.0ms
y
2.0ms
(*.f64 y #s(literal 3 binary64))
2.0ms
(/.f64 x (*.f64 y #s(literal 3 binary64)))
Results
AccuracySegmentsBranch
99.6%1(/.f64 x (*.f64 y #s(literal 3 binary64)))
99.6%1(*.f64 y #s(literal 3 binary64))
99.6%1y
99.6%1x
99.7%1(/.f64 x (*.f64 y #s(literal 3 binary64)))
99.7%1(*.f64 y #s(literal 3 binary64))
99.7%1y
99.7%1x
99.7%1(/.f64 x (*.f64 y #s(literal 3 binary64)))
99.7%1(*.f64 y #s(literal 3 binary64))
99.7%1y
99.7%1x
Compiler

Compiled 76 to 61 computations (19.7% saved)

derivations4.0ms (0.6%)

Memory
7.7MiB live, 7.7MiB allocated; 0ms collecting garbage
Stop Event
done
Compiler

Compiled 21 to 14 computations (33.3% saved)

preprocess54.0ms (7.3%)

Memory
13.1MiB live, 62.0MiB allocated; 7ms collecting garbage
Remove

(negabs y)

(negabs x)

Compiler

Compiled 110 to 95 computations (13.6% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated; 0ms collecting garbage

Profiling

Loading profile data...