Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
sav08:semantics_of_field_reads_and_writes [2008/04/08 20:16] vkuncak |
sav08:semantics_of_field_reads_and_writes [2008/04/08 23:42] 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. | ||
++++ | ++++ | ||
Line 18: | Line 19: | ||
(x = null | x.next == y) | (x = null | x.next == y) | ||
- | Intermediate representation. | + | Statement simplification. |
+ | |||
+ | Short-circuit evaluation. | ||
+ | |||
+ | Type and definition sketch of a (Scala) function that simplifies expressions and statements. | ||