annotate paper/src/codeGearExample.cbc @ 11:831316a767e8

add hoare figure
author ryokka
date Mon, 10 Feb 2020 14:20:21 +0900
parents c7acb9211784
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
1 __code add(struct Integer* input1, struct Integer* input2, __code next(struct Integer* output, ...)) {
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
2 output->value = input1->value + input2->value;
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
3 goto next(output, ...);
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
4 }