How to detect

How we can detect before executing program, that loop would be infinite or not ?

Thanks.
closed account (SECMoG1T)
infinite loops are run-time errors.
This is undecidable problem.
http://en.wikipedia.org/wiki/Halting_problem
infinite loops are not necessarily run-time errors. In fact, most useful software programs employ some sort of infinite loop - most operating systems, most bare-metal embedded systems, tcp server applications, politicians, ...
Topic archived. No new replies allowed.