//check the right hand of the declaration...
if(!(declaration.getAssignment().getRightHandSide() instanceof NewConstantArrayInstance)) {
return;
}
NewConstantArrayInstance ncai = (NewConstantArrayInstance)declaration.getAssignment().getRightHandSide();
Expression countExpression = ncai.getCount();
AbstractIntermediate current = line;
Map<Integer, Expression> values = new HashMap<Integer, Expression>();
collectConstantAssignments(current, values);
//create a new array...
Integer count = toInteger(countExpression);
List<Expression> expressions = new ArrayList<Expression>(count);
for(int i=0, j=count; i<j; i++) {
Expression exp = null;
if(values.containsKey(i)) {
exp = values.get(i);
}
else {
exp = new Resolved(ncai.getInstructionHandle(), Type.NULL, "null");