We will review some of these IMP Programs during lecture.
You may also be interested in similar Dafny code.