induction variable of for loop should be considered a parameter inside the loop
commit8cc7f267c23c1a2f9d4f0c7253d997722ca4c7d3
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 3 Nov 2011 13:11:45 +0000 (3 14:11 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 6 Nov 2011 08:56:28 +0000 (6 09:56 +0100)
tree77e347e8d1bc6956a0b6023445d23374c67e248d
parenta0a72a3a2b9e9ba85a7255e36a4576dd6e13c9d7
induction variable of for loop should be considered a parameter inside the loop

Before, we would mark the induction variable as having an unknown
value, even during the analysis of the loop and even if no assignments
were being performed to that variable inside the loop body.

Instead, we should consider the variable as a parameter during the
analysis of the loop (unless it is assigned somewhere inside the
loop body).  Only after the loop should we consider the induction
variable to have some unknown value.  In principle, we can turn
this into a known value in some cases.  We may consider that later.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc