[Swift-devel] [Bug 83] New: nested loops hung

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Fri Jul 13 13:34:34 CDT 2007


http://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=83

           Summary: nested loops hung
           Product: Swift
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General
        AssignedTo: hategan at mcs.anl.gov
        ReportedBy: nefedova at mcs.anl.gov
                CC: swift-devel at ci.uchicago.edu
OtherBugsDependingO 72
             nThis:


Workflows with nested loops freeze. Specifically, this construct:

foreach f in files{
do_something;
print(a);
foreach s in sfiles{
print(b);
something;
if (a=="blah"){
do_staff;
}else{
do_another_stuff;
}
} # close foreach s
} # close foreach f

(the full code could be found on terminable in ~nefedova/MolDyn.dtm)


Comments from Mihael:

It freezes because files[] is not used. In a sense. The compiler should tag all
data that is not an lvalue but appears as part of an expression as input data.
Apparently the compiler misses the part where the variable is used by a for
loop.

You can convince swift that files and sfiles are inputs by doing something like
print(files); print(sfiles);. Nonetheless, this should be fixed in the
compiler.


-- 
Configure bugmail: http://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Swift-devel mailing list