annotate Paper/src/CbC_sample.cbc @ 10:7573c185aecf

add impl
author ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
date Tue, 25 Jan 2022 22:27:17 +0900
parents 3d8fcd42a513
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 __code CG2(int num3){
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 printf("num = %d\n", num3);
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 exit(0);
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 }
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 __code CG1(int num, int num1){
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 int num2 = num + num1;
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 goto CG2(num2);
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 }
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 int main(){
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 int a = 2;
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 int b = 3;
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 goto CG1(a, b);
3d8fcd42a513 first commit
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 }