1994-06-24 11:31:16 +00:00
|
|
|
/* $Id$ */
|
1987-03-09 19:15:41 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1984-11-26 13:43:22 +00:00
|
|
|
/* C O N T R O L F L O W
|
|
|
|
*
|
|
|
|
* L O O P D E T E C T I O N
|
|
|
|
*/
|
|
|
|
|
2019-10-31 22:05:22 +00:00
|
|
|
void loop_detection(proc_p p); /*
|
1984-11-26 13:43:22 +00:00
|
|
|
* Detect all loops of procedure p.
|
|
|
|
* Every basic block of p is assigned
|
|
|
|
* a set of all loops it is part of.
|
|
|
|
* For every loop we record the number
|
|
|
|
* of blocks it contains, the loop entry
|
|
|
|
* block and its nesting level (0 = outer
|
|
|
|
* loop, 1 = loop within loop etc.).
|
|
|
|
*/
|