/*
 * This is a program to test three levels of function call.  The result should
 * be a value of 1 in memory location 0.
 */

int i;

void main() {
    i = f(3);
}

int f(int x) {
    return g(x)-1;
}

int g(int x) {
    return x-1;
}