Consider the space S defined by integer variables x,y,z. Compute the detector sets for partial correctness and total cor
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Consider the space S defined by integer variables x,y,z. Compute the detector sets for partial correctness and total cor
Consider the space S defined by integer variables x,y,z. Compute the detector sets for partial correctness and total correctness of the following programs and specifications. - Programs: o p1: \{while (y!=0){z=z+x;y=y−1;}} o p2: \{while (y!=0){z=z+x;y=y−1;}} - Specifications: R0={(s,s′)∣z′=xy}R1={(s,s′)∣z′=z+xy}R2={(s,s′)∣y≥0∧z′=xy} In other words, fill out the following tables:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!