Fix slugs and add example of constant propagation
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
parent
c1b27a13ae
commit
f6b347eb05
|
@ -106,5 +106,5 @@ Here are the posts that I’ve written so far for this series:
|
||||||
* {{< draftlink "Our Programming Language" "05_spa_agda_semantics" >}}
|
* {{< draftlink "Our Programming Language" "05_spa_agda_semantics" >}}
|
||||||
* {{< draftlink "Control Flow Graphs" "06_spa_agda_cfg" >}}
|
* {{< draftlink "Control Flow Graphs" "06_spa_agda_cfg" >}}
|
||||||
* {{< draftlink "Connecting Semantics and Control Flow Graphs" "07_spa_agda_semantics_and_cfg" >}}
|
* {{< draftlink "Connecting Semantics and Control Flow Graphs" "07_spa_agda_semantics_and_cfg" >}}
|
||||||
* {{< draftlink "Forward Analysis" "08_spa_forward" >}}
|
* {{< draftlink "Forward Analysis" "08_spa_agda_forward" >}}
|
||||||
* {{< draftlink "Verifying the Forward Analysis" "09_spa_verified_forward" >}}
|
* {{< draftlink "Verifying the Forward Analysis" "09_spa_agda_verified_forward" >}}
|
||||||
|
|
|
@ -415,6 +415,10 @@ plus [ z₁ ]ᶜ [ z₂ ]ᶜ = [ z₁ Int.+ z₂ ]ᶜ
|
||||||
|
|
||||||
we can defined a constant-propagation analysis.
|
we can defined a constant-propagation analysis.
|
||||||
|
|
||||||
|
```
|
||||||
|
{"neg" ↦ -1, "pos" ↦ 1, "unknown" ↦ 0, "zero" ↦ 0, }
|
||||||
|
```
|
||||||
|
|
||||||
However, we haven't proved our analysis correct, and we haven't yet made use of
|
However, we haven't proved our analysis correct, and we haven't yet made use of
|
||||||
the CFG-semantics equivalence that we
|
the CFG-semantics equivalence that we
|
||||||
[proved in the previous section]({{< relref "07_spa_agda_semantics_and_cfg" >}}).
|
[proved in the previous section]({{< relref "07_spa_agda_semantics_and_cfg" >}}).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user