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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4904 - (view) (download)

1 : glk 4640 #version 2.0
2 :    
3 :     // test the "new" operation
4 :     //
5 :    
6 : jhr 4904 input int MaxNumStrands = 15;
7 : glk 4640
8 :     strand S (int i) {
9 :     output int id = i;
10 :     update {
11 :     if (id < MaxNumStrands) {
12 : jhr 4904 new S (2*id+1);
13 :     new S (2*id+2);
14 : glk 4640 }
15 :     stabilize;
16 :     }
17 :    
18 :     }
19 :    
20 :     create_collection { S(0) | i in 1..1 }

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