Reports done and fixed handling of do-while loops