Hi, while I'm solving this problem, I got:
What is the weakest precondition for the entire code (aka, location L1)? z==0&&x<0||z!=0&&x>0or(z!=0^(x>0&&y==0)vFalse
What is the weakest precondition for the entire code (aka, location L2)? z!=&&x>=-2&&y==0||false
What is the weakest precondition for the code at location L3? false
What is the weakest precondition for the code at location L4? x>0&&y==0
Please double check your answer.