Shinichi72
New member
- Joined
- Apr 2, 2021
- Messages
- 13
Hello guys, I have answered the weakest precondition. But my teacher told me that my answer is wrong and maybe I have not simplified it yet. Can someone help me to determine what is wrong with my solution
[8:36 PM]
x = 2 * y + x - 1 {x > 11}
Applying the assignment axiom we have the weakest precondition to be
{2 * y + x - 1 > 11}
{2 * y + x > 12}
{2 * y > 12 - x}
{y > 6 - (x/2)}
The weakest precondition is {y > 6 – (x/2)}. What is the simplified form of 6 - (x/2)
[8:36 PM]
x = 2 * y + x - 1 {x > 11}
Applying the assignment axiom we have the weakest precondition to be
{2 * y + x - 1 > 11}
{2 * y + x > 12}
{2 * y > 12 - x}
{y > 6 - (x/2)}
The weakest precondition is {y > 6 – (x/2)}. What is the simplified form of 6 - (x/2)