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

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/lib/c-target/main.c
ViewVC logotype

Diff of /branches/pure-cfg/src/lib/c-target/main.c

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

revision 1279, Mon Jun 6 17:09:33 2011 UTC revision 1280, Mon Jun 6 17:34:42 2011 UTC
# Line 18  Line 18 
18  static bool     TimingFlg = false;  static bool     TimingFlg = false;
19    
20  struct struct_world {  struct struct_world {
21        const char          *name;          // the program name
22      bool                isArray;        // is the initialization an array or collection?      bool                isArray;        // is the initialization an array or collection?
23      uint32_t            nDims;          // depth of iteration nesting      uint32_t            nDims;          // depth of iteration nesting
24      int32_t             *base;          // nDims array of base indices      int32_t             *base;          // nDims array of base indices
# Line 103  Line 104 
104          printf ("usr=%f\n", totalTime);          printf ("usr=%f\n", totalTime);
105    
106    // here we have the final state of all of the strands in the "in" buffer    // here we have the final state of all of the strands in the "in" buffer
107      FILE *outS = fopen("mip.txt", "w");      int outFileNameLen = strlen(wrld->name) + 5;
108        char *outFileName = (char *)malloc(outFileNameLen);
109        snprintf (outFileName, outFileNameLen, "%s.txt", wrld->name);
110        FILE *outS = fopen(outFileName, "w");
111      if (outS == NULL) {      if (outS == NULL) {
112          fprintf (stderr, "Cannot open output file\n");          fprintf (stderr, "Cannot open output file %s\n", outFileName);
113          exit (8);          exit (8);
114      }      }
115    
# Line 130  Line 134 
134    
135  // block allocation of an initial collection of strands  // block allocation of an initial collection of strands
136  Diderot_World_t *Diderot_AllocInitially (  Diderot_World_t *Diderot_AllocInitially (
137        const char *name,           // the name of the program
138      Strand_t *strand,           // the type of strands being allocated      Strand_t *strand,           // the type of strands being allocated
139      bool isArray,               // is the initialization an array or collection?      bool isArray,               // is the initialization an array or collection?
140      uint32_t nDims,             // depth of iteration nesting      uint32_t nDims,             // depth of iteration nesting

Legend:
Removed from v.1279  
changed lines
  Added in v.1280

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