+1 vote
in Software Engineering by

1 Answer

+1 vote
selected by (user.guest)
Best answer

The following are the sequence of steps that can be followed to systematically develop the axiomatic specifications of a function:  

  1. Establish the range of input values over which the function should behave correctly. Also find out other constraints on the input parameters and write it in the form of a predicate.  
  2. Specify a predicate defining the conditions which must hold on the output of the function if it behaved properly.  
  3. Establish the changes made to the function’s input parameters after execution of the function. Pure mathematical functions do not change their input and therefore this type of assertion is not necessary for pure functions.  
  4. Combine all of the above into pre and post conditions of the function.

Related questions

+2 votes
1 answer 1.3k views
+1 vote
1 answer 196 views
Welcome to CPENTalk.com
Solution-oriented students of computer engineering on one platform to get you that