Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Science School of Computing Clemson University Reasoning with Queues and Web Interface Demo.

Similar presentations


Presentation on theme: "Computer Science School of Computing Clemson University Reasoning with Queues and Web Interface Demo."— Presentation transcript:

1 Computer Science School of Computing Clemson University Reasoning with Queues and Web Interface Demo

2 School of Computing Clemson University A Second Web Interface Demo  Select Queue_Template under Concepts  Notice that queues also happen to be modeled using mathematical strings How does the specification of Enqueue differ from Push, if any? How does the specification of Dequeue differ from Pop, if any?

3 School of Computing Clemson University A Second Web Interface Demo  Select Queue_Template under Concepts  Select Append_Capability under the tab Enhancements  Select Iterative_Realiz under the Tab Enhancement Realizations  The loop is annotated with two assertions for verification an invariant (maintaining clause) A progress metric (decreasing clause)

4 School of Computing Clemson University A Second Web Interface Demo  Select Queue_Template under Concepts  Select Append_Capability under the tab Enhancements  Select Reursive_Realiz under the Tab Enhancement Realizations  Click on Generate VCs  Prove each VC

5 School of Computing Clemson University Wrong Code Demo  Go back to Recursive_Realiz by clicking on the RESOLVE tab to the left  Click the Edit button  Do each of the following and see if the VCs are provable in each case! Comment out the Dequeue operation (use –- at the front of the line) Change the decreasing metric from |Q| to |P|; now our termination reason is wrong!

6 School of Computing Clemson University Iterative Code Demo  Select Queue_Template under Concepts  Select Append_Capability under the tab Enhancements  Select Iterative_Realiz under the Tab Enhancement Realizations Loops are annotated with invariants, progress metrics  Click on Verify button  The VCs here turn out to be provable automatically


Download ppt "Computer Science School of Computing Clemson University Reasoning with Queues and Web Interface Demo."

Similar presentations


Ads by Google