EclipseTAC tac = new EclipseTAC(m.resolveBinding());
Assignment write = (Assignment) ((ExpressionStatement) EclipseTACSimpleTestDriver.getLastStatement(m)).getExpression();
TACInstruction instr = tac.instruction(write);
Assert.assertTrue(instr != null);
Assert.assertTrue(instr instanceof StoreArrayInstruction);
StoreArrayInstruction store = (StoreArrayInstruction) instr;
EclipseTACSimpleTestDriver.assertMethodParameter(store.getDestinationArray(), m, 0, tac);
EclipseTACSimpleTestDriver.assertMethodParameter(store.getArrayIndex(), m, 1, tac);
Assert.assertEquals(tac.variable(write.getRightHandSide()), store.getSourceOperand());
EclipseTACSimpleTestDriver.assertMethodParameter(store.getSourceOperand(), m, 2, tac);
// Make sure there's no ArrayLoad generated for the assigned-to array
Assert.assertNull("Load generated for array assignment", tac.instruction(write.getLeftHandSide()));
}