Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /tests/new-tests/test-new.diderot
ViewVC logotype

Diff of /tests/new-tests/test-new.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4640, Tue Sep 27 20:54:47 2016 UTC revision 4904, Tue Jan 24 19:47:59 2017 UTC
# Line 3  Line 3 
3  // test the "new" operation  // test the "new" operation
4  //  //
5    
6  const int MaxNumStrands = 15;  input int MaxNumStrands = 15;
7    
8  strand S (int i) {  strand S (int i) {
9      output int id = i;      output int id = i;
10      update {      update {
11          if (id < MaxNumStrands) {          if (id < MaxNumStrands) {
12              new S (2*i);              new S (2*id+1);
13              new S (2*i+1);              new S (2*id+2);
14          }          }
15          stabilize;          stabilize;
16      }      }

Legend:
Removed from v.4640  
changed lines
  Added in v.4904

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0