PetScan::resolve_nested: handle presence of arguments in access expressions
commite499c437e70560a30e9e358ee867607808dd29aa
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 26 Feb 2014 18:25:11 +0000 (26 19:25 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 24 Mar 2014 16:32:10 +0000 (24 17:32 +0100)
tree77dce2eb27ff97da87044a71d33ae92353dc02ff
parent625a7cb420ce00164db5e443f16c96aa970fdb4c
PetScan::resolve_nested: handle presence of arguments in access expressions

The original implementation would assume that access expressions
do not have any arguments and would simply populate the list of
arguments from nested accesses.
When we change the extraction of access expressions to not convert
the indices to affine expressions first, the access expressions
may already have arguments and we need to take this into account.

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