Analysis: foreach- and incomplete for-loop