Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Weakest precondition question
Closed Thread
Old 11-16-2004, 12:11 PM   #1 (permalink)
 
Newb Techie

Join Date: Oct 2004

Posts: 14

LauraP

Default Weakest precondition question

Can someone backtrack this for me

Find the weakest precondition for the following sequences of assignment statements and postconditions

1. a=2*(b-1)-1 {a>0}
2*(b-1)-1>0

My answer I got is b>2

2. b=(c+10)/3 {b>6}
(c+10)/3>6

*How do I figure this?*
LauraP is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On