Optimisation.CirclePacking:place from circle-packing-0.1.0.4, C

Time bar (total: 1.4s)

analyze0.0ms (0%)

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 8 to 6 computations (25% saved)

sample906.0ms (64.1%)

Results
896.0ms8256×body256valid
Bogosity

preprocess22.0ms (1.5%)

Algorithm
egg-herbie
Rules
130×fma-def
34×sub-neg
22×distribute-lft-neg-in
22×cancel-sign-sub-inv
22×cancel-sign-sub
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01983
13475
27275
315775
422375
525175
625575
Stop Event
saturated
Calls
Call 1
Inputs
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (fabs.f64 (-.f64 (neg.f64 x) y)))
(sqrt.f64 (fabs.f64 (-.f64 x (neg.f64 y))))
(sqrt.f64 (fabs.f64 (-.f64 y x)))
Outputs
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (fabs.f64 (-.f64 y x)))
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (fabs.f64 (-.f64 y x)))
(sqrt.f64 (fabs.f64 (-.f64 (neg.f64 x) y)))
(sqrt.f64 (fabs.f64 (-.f64 y (neg.f64 x))))
(sqrt.f64 (fabs.f64 (+.f64 x y)))
(sqrt.f64 (fabs.f64 (-.f64 x (neg.f64 y))))
(sqrt.f64 (fabs.f64 (-.f64 y (neg.f64 x))))
(sqrt.f64 (fabs.f64 (+.f64 x y)))
(sqrt.f64 (fabs.f64 (-.f64 y x)))
(sqrt.f64 (fabs.f64 (-.f64 x y)))
Compiler

Compiled 7 to 5 computations (28.6% saved)

eval0.0ms (0%)

Compiler

Compiled 7 to 5 computations (28.6% saved)

prune1.0ms (0.1%)

Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(sqrt.f64 (fabs.f64 (-.f64 y x)))
100.0%
(sqrt.f64 (fabs.f64 (-.f64 y x)))
Compiler

Compiled 14 to 10 computations (28.6% saved)

localize24.0ms (1.7%)

Localize:

Found 1 expressions with local error:

NewAccuracyProgram
100.0%
(sqrt.f64 (fabs.f64 (-.f64 y x)))
Compiler

Compiled 17 to 6 computations (64.7% saved)

series2.0ms (0.1%)

Counts
1 → 8
Calls

6 calls:

TimeVariablePointExpression
0.0ms
y
@0
(sqrt.f64 (fabs.f64 (-.f64 y x)))
0.0ms
x
@inf
(sqrt.f64 (fabs.f64 (-.f64 y x)))
0.0ms
y
@-inf
(sqrt.f64 (fabs.f64 (-.f64 y x)))
0.0ms
x
@-inf
(sqrt.f64 (fabs.f64 (-.f64 y x)))
0.0ms
y
@inf
(sqrt.f64 (fabs.f64 (-.f64 y x)))

rewrite57.0ms (4.1%)

Algorithm
batch-egg-rewrite
Rules
1678×pow1
1556×add-exp-log
1556×log1p-expm1-u
1556×expm1-log1p-u
1520×add-log-exp
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0815
117111
2234511
Stop Event
node limit
Counts
1 → 22
Calls
Call 1
Inputs
(sqrt.f64 (fabs.f64 (-.f64 y x)))
Outputs
(-.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) 1)
(*.f64 (sqrt.f64 (-.f64 y x)) 1)
(*.f64 1 (sqrt.f64 (-.f64 y x)))
(*.f64 (cbrt.f64 (sqrt.f64 (-.f64 y x))) (cbrt.f64 (-.f64 y x)))
(*.f64 (cbrt.f64 (-.f64 y x)) (cbrt.f64 (sqrt.f64 (-.f64 y x))))
(*.f64 (pow.f64 (-.f64 y x) 1/4) (pow.f64 (-.f64 y x) 1/4))
(*.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (-.f64 y x)) 2)) (sqrt.f64 (cbrt.f64 (-.f64 y x))))
(*.f64 (pow.f64 1 1/2) (sqrt.f64 (-.f64 y x)))
(*.f64 (pow.f64 (pow.f64 (cbrt.f64 (-.f64 y x)) 2) 1/2) (pow.f64 (cbrt.f64 (-.f64 y x)) 1/2))
(/.f64 (sqrt.f64 (-.f64 (pow.f64 y 3) (pow.f64 x 3))) (sqrt.f64 (fma.f64 y y (*.f64 x (+.f64 y x)))))
(/.f64 (sqrt.f64 (-.f64 (*.f64 y y) (*.f64 x x))) (sqrt.f64 (+.f64 y x)))
(pow.f64 (-.f64 y x) 1/2)
(pow.f64 (sqrt.f64 (-.f64 y x)) 1)
(pow.f64 (cbrt.f64 (sqrt.f64 (-.f64 y x))) 3)
(pow.f64 (pow.f64 (-.f64 y x) 3/2) 1/3)
(pow.f64 (pow.f64 (-.f64 y x) 1/4) 2)
(fabs.f64 (sqrt.f64 (-.f64 y x)))
(log.f64 (exp.f64 (sqrt.f64 (-.f64 y x))))
(cbrt.f64 (pow.f64 (-.f64 y x) 3/2))
(expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 y x))))
(exp.f64 (log.f64 (sqrt.f64 (-.f64 y x))))
(log1p.f64 (expm1.f64 (sqrt.f64 (-.f64 y x))))

simplify73.0ms (5.2%)

Algorithm
egg-herbie
Rules
786×fma-def
758×associate-*r*
658×associate-*l*
596×distribute-lft-in
554×distribute-rgt-in
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
075728
1156616
2371524
31170496
43994496
Stop Event
node limit
Counts
30 → 33
Calls
Call 1
Inputs
(sqrt.f64 (fabs.f64 (neg.f64 (+.f64 (*.f64 -1 y) x))))
(sqrt.f64 (fabs.f64 (neg.f64 (+.f64 (*.f64 -1 y) x))))
(sqrt.f64 (fabs.f64 (neg.f64 (+.f64 (*.f64 -1 y) x))))
(sqrt.f64 (fabs.f64 (neg.f64 (+.f64 (*.f64 -1 y) x))))
(sqrt.f64 (fabs.f64 (+.f64 y (*.f64 -1 x))))
(sqrt.f64 (fabs.f64 (+.f64 y (*.f64 -1 x))))
(sqrt.f64 (fabs.f64 (+.f64 y (*.f64 -1 x))))
(sqrt.f64 (fabs.f64 (+.f64 y (*.f64 -1 x))))
(-.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) 1)
(*.f64 (sqrt.f64 (-.f64 y x)) 1)
(*.f64 1 (sqrt.f64 (-.f64 y x)))
(*.f64 (cbrt.f64 (sqrt.f64 (-.f64 y x))) (cbrt.f64 (-.f64 y x)))
(*.f64 (cbrt.f64 (-.f64 y x)) (cbrt.f64 (sqrt.f64 (-.f64 y x))))
(*.f64 (pow.f64 (-.f64 y x) 1/4) (pow.f64 (-.f64 y x) 1/4))
(*.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (-.f64 y x)) 2)) (sqrt.f64 (cbrt.f64 (-.f64 y x))))
(*.f64 (pow.f64 1 1/2) (sqrt.f64 (-.f64 y x)))
(*.f64 (pow.f64 (pow.f64 (cbrt.f64 (-.f64 y x)) 2) 1/2) (pow.f64 (cbrt.f64 (-.f64 y x)) 1/2))
(/.f64 (sqrt.f64 (-.f64 (pow.f64 y 3) (pow.f64 x 3))) (sqrt.f64 (fma.f64 y y (*.f64 x (+.f64 y x)))))
(/.f64 (sqrt.f64 (-.f64 (*.f64 y y) (*.f64 x x))) (sqrt.f64 (+.f64 y x)))
(pow.f64 (-.f64 y x) 1/2)
(pow.f64 (sqrt.f64 (-.f64 y x)) 1)
(pow.f64 (cbrt.f64 (sqrt.f64 (-.f64 y x))) 3)
(pow.f64 (pow.f64 (-.f64 y x) 3/2) 1/3)
(pow.f64 (pow.f64 (-.f64 y x) 1/4) 2)
(fabs.f64 (sqrt.f64 (-.f64 y x)))
(log.f64 (exp.f64 (sqrt.f64 (-.f64 y x))))
(cbrt.f64 (pow.f64 (-.f64 y x) 3/2))
(expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 y x))))
(exp.f64 (log.f64 (sqrt.f64 (-.f64 y x))))
(log1p.f64 (expm1.f64 (sqrt.f64 (-.f64 y x))))
Outputs
(sqrt.f64 (fabs.f64 (neg.f64 (+.f64 (*.f64 -1 y) x))))
(sqrt.f64 (fabs.f64 (fma.f64 -1 y x)))
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (fabs.f64 (neg.f64 (+.f64 (*.f64 -1 y) x))))
(sqrt.f64 (fabs.f64 (fma.f64 -1 y x)))
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (fabs.f64 (neg.f64 (+.f64 (*.f64 -1 y) x))))
(sqrt.f64 (fabs.f64 (fma.f64 -1 y x)))
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (fabs.f64 (neg.f64 (+.f64 (*.f64 -1 y) x))))
(sqrt.f64 (fabs.f64 (fma.f64 -1 y x)))
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (fabs.f64 (+.f64 y (*.f64 -1 x))))
(sqrt.f64 (fabs.f64 (fma.f64 -1 y x)))
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (fabs.f64 (+.f64 y (*.f64 -1 x))))
(sqrt.f64 (fabs.f64 (fma.f64 -1 y x)))
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (fabs.f64 (+.f64 y (*.f64 -1 x))))
(sqrt.f64 (fabs.f64 (fma.f64 -1 y x)))
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (fabs.f64 (+.f64 y (*.f64 -1 x))))
(sqrt.f64 (fabs.f64 (fma.f64 -1 y x)))
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(-.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) 1)
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))
(*.f64 (sqrt.f64 (-.f64 y x)) 1)
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))
(*.f64 1 (sqrt.f64 (-.f64 y x)))
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))
(*.f64 (cbrt.f64 (sqrt.f64 (-.f64 y x))) (cbrt.f64 (-.f64 y x)))
(*.f64 (cbrt.f64 (-.f64 y x)) (cbrt.f64 (sqrt.f64 (-.f64 y x))))
(*.f64 (cbrt.f64 (sqrt.f64 (-.f64 y x))) (cbrt.f64 (-.f64 y x)))
(*.f64 (pow.f64 (-.f64 y x) 1/4) (pow.f64 (-.f64 y x) 1/4))
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))
(*.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (-.f64 y x)) 2)) (sqrt.f64 (cbrt.f64 (-.f64 y x))))
(*.f64 (fabs.f64 (cbrt.f64 (-.f64 y x))) (sqrt.f64 (cbrt.f64 (-.f64 y x))))
(*.f64 (cbrt.f64 (-.f64 y x)) (sqrt.f64 (cbrt.f64 (-.f64 y x))))
(pow.f64 (cbrt.f64 (-.f64 y x)) 3/2)
(*.f64 (pow.f64 1 1/2) (sqrt.f64 (-.f64 y x)))
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))
(*.f64 (pow.f64 (pow.f64 (cbrt.f64 (-.f64 y x)) 2) 1/2) (pow.f64 (cbrt.f64 (-.f64 y x)) 1/2))
(*.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (-.f64 y x)) 2)) (sqrt.f64 (cbrt.f64 (-.f64 y x))))
(*.f64 (fabs.f64 (cbrt.f64 (-.f64 y x))) (sqrt.f64 (cbrt.f64 (-.f64 y x))))
(*.f64 (cbrt.f64 (-.f64 y x)) (sqrt.f64 (cbrt.f64 (-.f64 y x))))
(pow.f64 (cbrt.f64 (-.f64 y x)) 3/2)
(/.f64 (sqrt.f64 (-.f64 (pow.f64 y 3) (pow.f64 x 3))) (sqrt.f64 (fma.f64 y y (*.f64 x (+.f64 y x)))))
(/.f64 (sqrt.f64 (-.f64 (pow.f64 y 3) (pow.f64 x 3))) (sqrt.f64 (fma.f64 y (+.f64 y x) (*.f64 x x))))
(/.f64 (sqrt.f64 (-.f64 (*.f64 y y) (*.f64 x x))) (sqrt.f64 (+.f64 y x)))
(pow.f64 (-.f64 y x) 1/2)
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))
(pow.f64 (sqrt.f64 (-.f64 y x)) 1)
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))
(pow.f64 (cbrt.f64 (sqrt.f64 (-.f64 y x))) 3)
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))
(pow.f64 (pow.f64 (-.f64 y x) 3/2) 1/3)
(cbrt.f64 (pow.f64 (-.f64 y x) 3/2))
(pow.f64 (pow.f64 (-.f64 y x) 1/4) 2)
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))
(fabs.f64 (sqrt.f64 (-.f64 y x)))
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))
(log.f64 (exp.f64 (sqrt.f64 (-.f64 y x))))
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))
(cbrt.f64 (pow.f64 (-.f64 y x) 3/2))
(expm1.f64 (log1p.f64 (sqrt.f64 (-.f64 y x))))
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))
(exp.f64 (log.f64 (sqrt.f64 (-.f64 y x))))
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))
(log1p.f64 (expm1.f64 (sqrt.f64 (-.f64 y x))))
(+.f64 (+.f64 1 (sqrt.f64 (-.f64 y x))) -1)
(+.f64 (sqrt.f64 (-.f64 y x)) 0)
(sqrt.f64 (-.f64 y x))

eval5.0ms (0.3%)

Compiler

Compiled 276 to 118 computations (57.2% saved)

prune5.0ms (0.4%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New32133
Fresh000
Picked011
Done000
Total32234
Accuracy
100.0%
Counts
34 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
51.6%
(sqrt.f64 (-.f64 y x))
100.0%
(sqrt.f64 (fabs.f64 (-.f64 y x)))
51.6%
(sqrt.f64 (-.f64 y x))
100.0%
(sqrt.f64 (fabs.f64 (-.f64 y x)))
Compiler

Compiled 26 to 18 computations (30.8% saved)

localize19.0ms (1.3%)

Compiler

Compiled 12 to 5 computations (58.3% saved)

eval0.0ms (0%)

Compiler

Compiled 2 to 2 computations (0% saved)

prune2.0ms (0.1%)

Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New000
Fresh000
Picked011
Done011
Total022
Accuracy
100.0%
Counts
2 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
51.6%
(sqrt.f64 (-.f64 y x))
100.0%
(sqrt.f64 (fabs.f64 (-.f64 y x)))
Compiler

Compiled 29 to 18 computations (37.9% saved)

regimes18.0ms (1.3%)

Counts
3 → 1
Calls
Call 1
Inputs
(sqrt.f64 (-.f64 y x))
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (fabs.f64 (-.f64 y x)))
Outputs
(sqrt.f64 (fabs.f64 (-.f64 x y)))
Calls

5 calls:

3.0ms
y
3.0ms
x
3.0ms
(sqrt.f64 (fabs.f64 (-.f64 x y)))
3.0ms
(fabs.f64 (-.f64 x y))
3.0ms
(-.f64 x y)
Results
AccuracySegmentsBranch
100.0%1x
100.0%1y
100.0%1(sqrt.f64 (fabs.f64 (-.f64 x y)))
100.0%1(fabs.f64 (-.f64 x y))
100.0%1(-.f64 x y)
Compiler

Compiled 40 to 25 computations (37.5% saved)

regimes7.0ms (0.5%)

Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

Counts
1 → 1
Calls
Call 1
Inputs
(sqrt.f64 (-.f64 y x))
Outputs
(sqrt.f64 (-.f64 y x))
Calls

2 calls:

3.0ms
y
3.0ms
x
Results
AccuracySegmentsBranch
51.6%1x
51.6%1y
Compiler

Compiled 12 to 8 computations (33.3% saved)

simplify4.0ms (0.3%)

Algorithm
egg-herbie
Rules
sub-neg
+-commutative
neg-mul-1
*-commutative
neg-sub0
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01026
11526
22326
32726
42926
Stop Event
done
saturated
Calls
Call 1
Inputs
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (-.f64 y x))
Outputs
(sqrt.f64 (fabs.f64 (-.f64 x y)))
(sqrt.f64 (-.f64 y x))
Compiler

Compiled 13 to 9 computations (30.8% saved)

soundness246.0ms (17.4%)

Rules
1678×pow1
1556×add-exp-log
1556×log1p-expm1-u
1556×expm1-log1p-u
1520×add-log-exp
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01983
13475
27275
315775
422375
525175
625575
0815
117111
2234511
075728
1156616
2371524
31170496
43994496
Stop Event
node limit
node limit
saturated
Compiler

Compiled 128 to 63 computations (50.8% saved)

end0.0ms (0%)

preprocess21.0ms (1.5%)

Compiler

Compiled 36 to 24 computations (33.3% saved)

Profiling

Loading profile data...