a := 10+ 5; x := 10+5-y; y := a*x;(2) 画出DAG图优化;
时间: 2023-12-10 14:39:39 浏览: 65
编译原理DAG的优化
5星 · 资源好评率100%
以下是DAG图优化:
```
+-----+
| 15 |
+-----+
|
|
+-----+
| y |
+-----+
|
|
+-----+
| x |
+-----+
/ \
/ \
+-----+ +-----+
| 10 | | 5 |
+-----+ +-----+
| |
| |
+-----+ +-----+
| a | | y |
+-----+ +-----+
```
阅读全文