alt : http://old-courses.cn.ntua.gr/file.php/39/ch7hoare_h.pdf