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

SCM Repository

[diderot] View of /branches/vis12/bugs/resolved/bug017.diderot
ViewVC logotype

View of /branches/vis12/bugs/resolved/bug017.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2217 - (download) (annotate)
Tue Feb 26 14:03:37 2013 UTC (7 years, 9 months ago) by jhr
File size: 1010 byte(s)
  Split bug 016 into two files (BUG A ==> bug016 and BUG B ==> bug017).  Bug017 is resolved
  by some previous fix.
/*
** compiles ok but the generated C code is broken
low-il DFA: cpu = 0.000 seconds, gc = 0.000 seconds, 10 nodes, 9 visits, 1 iterations
bug016.c:277:13: error: too many arguments to function call, expected 4, have 5
            *((Diderot_real_t *)Diderot_DynSeqAddr(sizeof(Diderot_real_t), glob->xyInit, l__t_5)));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bug016.c:75:1: note: 'LIC_InitState' declared here
static void LIC_InitState (Diderot_Globals_t *glob, Strand_LIC_t *self, Diderot_int_t p_ii_0, ...
^
1 error generated.
uncaught exception Fail [Fail: error compiling/linking]

**
*/
real {} xyInit = load("data/real.nrrd");
int xyNum = length(xyInit)/2;

strand LIC (int ii, real xx, real yy) {
    output vec2 pos = [0,0];
    int step = 0;

    update {
        pos = [xx,yy];
        print(ii, ": ", xx, " ",  yy, "\n");
        stabilize;
    }
}

initially [ LIC(ii, xyInit{0 + 2*ii}, xyInit{1 + 2*ii})
            | ii in 0..xyNum-1 ];

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