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

SCM Repository

[diderot] View of /branches/vis15/src/tests/new-tests/test-new.diderot
ViewVC logotype

View of /branches/vis15/src/tests/new-tests/test-new.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4497 - (download) (annotate)
Sat Sep 3 14:12:36 2016 UTC (2 years, 9 months ago) by jhr
File size: 261 byte(s)
  working on merge: updating tests with new version 2 syntax
#version 2.0

// test the "new" operation
//

const int MaxNumStrands = 15;

strand S (int i) {
    output int id = i;
    update {
	if (id < MaxNumStrands) {
	    new S (2*i);
	    new S (2*i+1);
	}
	stabilize;
    }

}

create_collection { S(0) | i in 1..1 }

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