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

SCM Repository

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

Diff of /branches/vis15/src/tests/new-tests/slice-test.diderot

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

revision 4126, Thu Jun 30 22:20:45 2016 UTC revision 4358, Thu Aug 4 01:30:05 2016 UTC
# Line 5  Line 5 
5  tensor[3,3] M = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ];  tensor[3,3] M = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ];
6  int g1 = 42;  int g1 = 42;
7  int g2 = g1 + 1;  int g2 = g1 + 1;
8  function bool foo (int x, int y)  int step = 0;
9  {  bool flag = false;
   if (x < y) { return false; } else { int z = x+y; if (z < 0) {return false;} }  
   return true;  
 }  
10    
11  {  {
12    print ("M = ", M, "\n");    print ("M = ", M, "\n");
# Line 19  Line 16 
16    output real w = x[0] + x[1] * (M[1,:] • M[:, 2]);    output real w = x[0] + x[1] * (M[1,:] • M[:, 2]);
17    
18    update {    update {
19      if (false) { print ("bye\n"); } else { print ("hi\n"); }      if (flag) { print ("bye\n"); } else { print ("hi\n"); }
20        if (step == 0) {
21            continue;
22        } else {
23          stabilize;
24        }
25      stabilize;      stabilize;
26    }    }
27    
28  }  }
29    
30  collection { S() | i in 1..2, j in 1..2 }  collection { S() | i in 1..2, j in 1..2 }
31    
32    update {
33      step += 1;
34    }

Legend:
Removed from v.4126  
changed lines
  Added in v.4358

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