浏览代码

change Fig 5.12 so the code on LHS is in L^mon_if instead of L_if

Jeremy Siek 3 周之前
父节点
当前提交
c2bdaf733d
共有 1 个文件被更改,包括 9 次插入8 次删除
  1. 9 8
      book.tex

+ 9 - 8
book.tex

@@ -9201,11 +9201,12 @@ block_3:
 \begin{lstlisting}
 x = input_int()
 y = input_int()
-print(y + 2             \
-      if (x == 0        \
-          if x < 1      \
-          else x == 2) \
-      else y + 10)
+tmp_0 = y + 2            \
+        if (x == 0       \
+            if x < 1     \
+            else x == 2) \
+        else y + 10
+print(tmp_0)
 \end{lstlisting}
 \end{minipage}
 &
@@ -9231,13 +9232,13 @@ block_7:
     else:
       goto block_5
 block_4:
-    tmp.82 = (y + 2)
+    tmp_0 = (y + 2)
     goto block_3
 block_5:
-    tmp.82 = (y + 10)
+    tmp_0 = (y + 10)
     goto block_3
 block_3:
-    print(tmp.82)
+    print(tmp_0)
     return 0
 \end{lstlisting}
 \end{minipage}