pet_scop_collect_{reads,writes}: take arguments into account
commit9ac78a1f8c302b9886322c80f03fa0aa5b485a8f
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 2 Jul 2013 10:48:16 +0000 (2 12:48 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 11 Aug 2013 10:35:35 +0000 (11 12:35 +0200)
tree4a4b143933737dbb47364773856ea43c7d5a2cff
parentd77e098f5a40be703aa945ef75d2a803983ddf95
pet_scop_collect_{reads,writes}: take arguments into account

The original functions did not take into account that statements and
accesses may have arguments that make the statement or access depend
on values only known at run-time.  That is, we would assume that all
accesses are static and would silently drop accesses in case of such
arguments.

Instead, we now allow for the collection of "may" writes, where the
dynamic values are projected out and of "must" writes, where dynamic
accesses are ignored.  Since there is usually no need to know about
any "must" reads, we only provide a function to collect the "may" reads.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
include/pet.h
scop.c