Question: Formal Specification Homework 3 1 0 Marks Using Dafny language answer the following questions Question 1 : Write a method Max that takes two integer
Formal Specification
Homework
Marks
Using Dafny language answer the following questions
Question : Write a method Max that takes two integer parameters and returns their maximum. Add appropriate annotations and make sure your code verifies.Question : Write a test method that calls your Max method from Exercise and then asserts something about the result.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
