* we deal with <code>JSR</code> as a non-branch instruction.
*/
public static class Block extends BasicBlock {
+ /**
+ * A field that can be freely used for storing extra data.
+ * A client program of this control-flow analyzer can append
+ * an additional attribute to a <code>Block</code> object.
+ */
+ public Object clientData = null;
+
int index;
MethodInfo method;
Block[] entrances;
}
return array[0];
}
+
+ public int dummy2(int n, int[] array) {
+ int i = 0;
+ while (i < n) {
+ if (array[i] > 0)
+ break;
+ if (array[i++] > -1)
+ continue;
+ array[0]++;
+ array[1]++;
+ }
+ return array[0];
+ }
+
+ public int dummy3(int n, int[] array) {
+ int i = 0;
+ do {
+ if (array[i] > 0)
+ break;
+ if (array[i++] > -1)
+ continue;
+ array[0]++;
+ array[1]++;
+ } while (i < n);
+ return array[0];
+ }
}