declare service SaveMenuChecks { fn verify() -> bool { let test=new ContinueState(new ContinueData(),0,0,false); let choice=test.advance(true,false); if test.selection!=1 { return false; } choice=test.advance(true,false); if test.selection!=2 { return false; } choice=test.advance(true,false); if test.selection!=0 { return false; } choice=test.advance(true,true); if test.selection!=0 || !test.confirming { return false; } for i: int from 0 until 63 { let pending_choice=test.advance(true,true); if pending_choice!= -1 { return false; } } let final_choice=test.advance(false,false); return final_choice==0; } }