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 2257 - (download) (annotate)
Wed Mar 6 11:25:43 2013 UTC (6 years, 6 months ago) by glk
File size: 1013 byte(s)
path different now that its resolved
/*
** 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