| Summary: | FOR statements generating incorrect SMAP lines | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Justin Spadea <jspadea> |
| Component: | EDT | Assignee: | Jeff Douglas <jeffdouglas> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mheitz |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
Code needed to be added to the for statement to keep the smap processing flag on, indicating that there are multiple statements as part of the statement. There might be other complex statements that also need this, but none come to mind. Verified |
function main() for (i int from 1 to 3) // LINE 8 syslib.writestdout(i); end end The generated code is: int i = 0; // LINE 29 for (i = (short) 1; i <= (short) 3; i += 1) { The SMAP entry is: 8#1:29 The entry should be: 8#1:29,2 So the SMAP is only including the line for the counter declaration. Neither of these problems exist if I declare the counter variable outside the for loop.