Question: Write a denotational semantics mapping function for an if statement. M if (if B then L, s) where B is a boolean expression, L is
Write a denotational semantics mapping function for an if statement.
Mif(if B then L, s) where B is a boolean expression, L is the list of statements, and s is the current program state.
Assume Mb(B,s) is the denotational semantics function that returns the boolean value of B calculated at the program state, and ML(L,s) is the denotational semantics function that returns the new program state after performing the list of statements L, starting at the program state s.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
