Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sav08:semantics_of_field_reads_and_writes [2008/04/08 20:16] vkuncak |
sav08:semantics_of_field_reads_and_writes [2009/03/18 10:19] vkuncak |
||
---|---|---|---|
Line 7: | Line 7: | ||
Use function update construct: | Use function update construct: | ||
\[ | \[ | ||
- | f := f(x:=y) | + | f = f(x:=y) |
\] | \] | ||
+ | State variable $f$, which denotes a function, is assigned an updated version of this function. | ||
++++ | ++++ | ||
- | |||
- | What about null pointer checks? | ||
- | |||
- | Examples: | ||
- | y = x.next.next | ||
- | x.next.next.prev = y | ||
- | (x = null | x.next == y) | ||
- | |||
- | Statement simplification. | ||