view Paper/src/hello.cbc @ 16:661c35912701

no image version
author matac42 <matac@cr.ie.u-ryukyu.ac.jp>
date Mon, 17 Apr 2023 10:27:01 +0900
parents 466b958a3419
children
line wrap: on
line source

__code add1(int in_n) {
    int out_n = n + 1;
    goto add2(out_n);
}

__code add2(int in_n) {
    int out_n = n + 2;
    goto end(out_n);
}

__code end(int in_n) {
    printf("%d", n);
}

int main(int argc, char *arcv[]) {
    int n = 1;
    goto add1(n);
}