handle extraction of scops inside a loop
commit0ff84fb9c58fe94790ff11b2d13dd867ad78b3e9
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 21 Sep 2011 10:27:11 +0000 (21 12:27 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 21 Sep 2011 10:27:11 +0000 (21 12:27 +0200)
treeb8318321a10e1e8a6d2f797ffdcac5c80ef4271c
parentadac8d361d4bd07b55d40afbf082152c7a0061d1
handle extraction of scops inside a loop

The children of a ForStmt include the condition variable, which
may be NULL.  While scanning for the designated scop, we therefore
need to handle the case where some of the children are NULL.

Reported-by: Carlos Juega Reimundez <cjuega@fdi.ucm.es>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc
tests/loop_body.c [new file with mode: 0644]
tests/loop_body.scop [new file with mode: 0644]