// "Move 'return' closer to computation of the value of 'n'" "true-preview"
class T {
    int f(int a[]) {
        int n = 0;
        for (int i=0; i<a.length; i++) {
            if (n < a[i]) n = a[i];
            if (n > 100) {
                break; // at the end 1
            }
            if (n < 0) {
                n = 0; // at the end 2
                break; /* inline */
            }
        }
        ret<caret>urn /* return 1 */ n /* return 2 */;
    }
}