ECOOP 2009 Program Verification using Spec# Rosemary.Monahan@NUIM.ie138 Modifies clause expanded public void SetSpeed(int kmph) requires 0 <= kmph; modifies this.*, r.*, locks[*]; { expose (this) { if (kmph > 0) { locks[0] = true; } speed = kmph; r.soundBoosterSetting = 2 * kmph; }
{}