Definition
Simplified Forward Assignment
Under specific side conditions, the assignment rule can be simplified to:
Side Conditions:
does not occur in . does not occur in .
Intuition
This rule is a special case of Floyd’s rule. When the variable
Derivation from Floyd’s Rule
Applying the full Floyd’s rule
(since ) (since )
The postcondition becomes
Restricted Use
This rule is invalid if the side conditions are not met. For example,
is correct, but results in a contradiction ( ).