// "Move 'return' closer to computation of the value of 'n'" "true-preview"
class T {
    int f(int a) {
        int n = -1;
        while (n <= 0) {
            n = g();
            if (n != 0) return n;
        }
        return n;
    }

    int g() {
        return 1;
    }
}