|
|
|
|
|
by DannyBee
4479 days ago
|
|
You'd have to use annotations or asserts.
Or rely on literal whole program analysis to prove upper bounds of parameters/etc (which still may not be possible statically) Otherwise, given as something as simple as for (unsigned i = 0; i < N; i+=2) You can't say it iterates N/2 times |
|
The results: http://ideone.com/7vidIs
Generated code http://tinyurl.com/le72k4o