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

SCM Repository

[diderot] Annotation of /tests/vis12-bugs/src/bug015.diderot
ViewVC logotype

Annotation of /tests/vis12-bugs/src/bug015.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4640 - (view) (download)

1 : glk 4640
2 :     /*
3 :     ** BUG? compiler doesn't check on existence of argument to load(),
4 :     ** unlike how it does check on argument to image()
5 :     ** This program compiles ok but segfaults when it runs
6 :     */
7 :     real {} xyInit = load("foobar");
8 :     int xyNum = length(xyInit)/2;
9 :    
10 :     strand LIC (int ii, real xx, real yy) {
11 :     output vec2 pos = [0,0];
12 :     int step = 0;
13 :    
14 :     update {
15 :     pos = [xx,yy];
16 :     print(ii, ": ", xx, " ", yy, "\n");
17 :     stabilize;
18 :     }
19 :     }
20 :    
21 :     initially [ LIC(ii, xyInit{0 + 2*ii}, xyInit{1 + 2*ii})
22 :     | ii in 0..xyNum-1 ];

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