+/* Returns the scattering dimension for STMTFOR.
+
+ The relationship between dimension in scattering matrix
+ and the DEPTH of the loop is:
+ DIMENSION = 2*DEPTH - 1
+*/
+
+static inline int get_scattering_level (int depth)
+{
+ return 2 * depth - 1;
+}