Changeset bbdb0c6 for tests/coroutine/fibonacci.cfa
- Timestamp:
- Mar 18, 2020, 3:41:01 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 778452d, d658183
- Parents:
- c4fd4ef (diff), 45f4147 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
tests/coroutine/fibonacci.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/coroutine/fibonacci.cfa
rc4fd4ef rbbdb0c6 22 22 int fn1, fn2; // retained between resumes 23 23 fn = 0; fn1 = fn; // 1st case 24 suspend (); // restart last resume24 suspend; // restart last resume 25 25 fn = 1; fn2 = fn1; fn1 = fn; // 2nd case 26 suspend (); // restart last resume26 suspend; // restart last resume 27 27 for () { 28 28 fn = fn1 + fn2; fn2 = fn1; fn1 = fn; // general case 29 suspend (); // restart last resume29 suspend; // restart last resume 30 30 } // for 31 31 }
Note:
See TracChangeset
for help on using the changeset viewer.