📄 9.5.5_3.htm
字号:
<html>
<head>
<title>编译原理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link type="text/css" rel="stylesheet" href="../css/specification.css">
</head>
<BODY>
<table align=right width=300>
<tr>
<td><img src="../images/previous.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='9.5.5.htm'" ></td>
<td>
<img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='9.5.6.htm'" ></img></td>
</tr>
</table>
<br><br>
<table>
<tr>
<td>    </td>
<td class="content">
<p>
<p> 计算图2(c)的in和out </p>
<p><span style="FONT-SIZE: large">
<img border="0" src="images/9_25_3.gif" align="left"></span><b><font size="4">in[S1]=in[S]
</font></b>
</p>
<p><b><font size="4">in[S2]=in[S] </font></b> </p>
<p><b><font size="4">out[S]=out[S1]∪out[S2] </font></b> </p>
<p>解析:可以看出,一个定值到达S的结束点,当且仅当它到达一个或两个分语句的结束点。即:out[S]= out[S1] ∪out[S2] </p>
<p>这样,我们可以使用这些方程,从in[S]计算in[S1]和in[S2],递归地计算out[S1] 和out[S2],再用它们计算out[S]。
</td>
</tr>
</table>
<table align=right width=300>
<tr>
<td><img src="../images/previous.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='9.5.5.htm'" ></td>
<td>
<img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='9.5.6.htm'" ></img></td>
</tr>
</table>
<br><br>
</BODY>
<html><script language="JavaScript">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -