changeset 68:1399414ea3f6

modify explanation of Generic Tree
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Thu, 29 Dec 2011 16:01:24 +0900
parents 1bc732d13326
children 9dc6013b0559
files presen/index.html presen/omni/STATEMENT_LIST_1.graffle
diffstat 2 files changed, 118 insertions(+), 545 deletions(-) [+]
line wrap: on
line diff
--- a/presen/index.html	Thu Dec 29 01:53:43 2011 +0900
+++ b/presen/index.html	Thu Dec 29 16:01:24 2011 +0900
@@ -166,10 +166,8 @@
 	<p style=" margin-right:auto; margin-left:auto;">
 	  <table width=90% class="center" border=1>
 	    <tr>
-	      <small>
-	      <td>Cの関数呼び出し</td>
-	      <td>CbCの継続</td>
-	      </small>
+	      <td><small>Cの関数呼び出し</small></td>
+	      <td><small>CbCの継続</></small></td>
 	    </tr>
 	    <tr>
 	    <td>
@@ -186,7 +184,7 @@
       <div class="slide">
 	<h1>Continuation based C </h1>
 	<small>
-<table width=100% >
+<table width=100% border=1>
 <tr>
 <caption>階乗を求めるCbCのプログラム</caption>
 <td width=50%>
@@ -227,12 +225,95 @@
       </div>
       <!-- PAGE -->
       <div class="slide">
-	<h1>GCC によるコンパイル</h1>
+	<h1>GCC</h1>
+	<li>本来はGnu Compiler Collectionのことを指すが、
+	  <br>ここで扱うのはGnu C Compilerになる。</li>
+	<li>GCCでは次の4つの内部表現が扱われる。</li>
+	<ol>
+	  <li>Generic Tree</li>
+	  <li>GIMPLE</li>
+	  <li>Tree SSA</li>
+	  <li>RTL</li>
+	</ol>
+      </div>
+      <!-- PAGE -->
+      <div class="slide">
+	<h1>GCC</h1>
+	<li>Generic Tree:ソースコードを構文木の形に直したもの</li>
+	<li>GIMPLE: Generic Treeの命令を簡単にした構文木</li>
+	<li>Tree SSA: GIMPLEの中で変数代入を一度しか行わせない形にした構文木</li>
+	<li>RTL: レジスタの割り当てといった低レベルの表現でアセンブラとほぼ同じ命令の表現ができる。</li>
+      </div>
+      <!-- PAGE -->
+      <div class="slide">
+	<h1>GCC</h1>
+	<li>CbCの実装においてはGeneric Tree生成部分とRTLへの変換部分に修正が加えられる。</li>
+	<p class="center">
+	<img src="./pix/ir.png" style="height: 6em;">
+	</p>
+	<li class="incremental">Generic Tree生成部分について触れてみる。</li>
+      </div>
+      <!-- PAGE -->
+      <div class="slide">
+	<h1>GCC:Generic Tree</h1>
+	<li>Generic Treeではソースコードの内容が FUNCTION_TYPE, CALL_EXPR, MODIFY_EXPR 等と言った形で表される。</li>
+	<table class="center" width=100%  border=1>
+	  <tr>
+	    <td><small>値の代入:MODIFY_EXPR</small></td>
+	    <td><small>関数呼び出し:CALL_EXPR</small></td>
+	  </t>
+	  <tr>
+	  <td>
+	    <img src="./pix/MODIFY_EXPR.png" style="height: 6em;">
+	  </td>
+	  <td>
+	    <img src="./pix/CALL_EXPR.png" style="height: 7em;">
+	  </td>
+	  </tr>
+	</table>
+	  <p class="center"><small>Generic Treeでの表現</small></p>
+      </div>
+      <!-- PAGE -->
+      <div class="slide">
+	<h1>GCC:Generic Tree</h1>
+	<li>それぞれの命令はSTATEMENT_LISTでまとめて保持される。</li>
+	<table width=100% border=1>
+	  <tr>
+	    <td class="center"><small>ソースコード</small></td>
+	    <td class="center"><small>Generic Treeでの表現</small></td>
+	  </tr>
+	  <tr>
+	    <td>
+	<small>
+	<pre>
+int main() {
+  int a, b;
+  a = 3;
+  b = func(a, 10);
+  return b;
+}
+	</pre>
+	</small>
+	</td>
+	    <td>
+	<p class="center">
+	  <img src="./pix/STATEMENT_LIST.png" style="height: 6em;">
+	  </p>
+	  </td>
+	  </tr>
+	    </table>
+	  <li>CbCの実装においてこのGeneric Treeの生成を意識していくことになる。</li>
+      </div>
+      <!-- PAGE -->
+<!--
+      <div class="slide">
+	<h1>GCC</h1>
 	<li>GCC についての簡単な説明を行う...</li>
 	<li>TODO: NEXT_PASS() の把握</li>
 	<img src="./pix/ir.png" style="height: 6em;">
 	<li>CbCの実装は主に Parser の部分と RTL を生成する部分に行われる。</li>
       </div>
+-->
       <!-- PAGE -->
       <div class="slide">
 	<h1>CbCの実装</h1>
@@ -281,8 +362,8 @@
 	</pre>
 	</small>
 	<small>
-	<li>CALL_EXPR_TAILCALLマクロでtail callフラグを立て。</li>
 	<li>cbc_replace_arguments関数は引数のデータを一時的な変数へ避難させる。</li>
+	<li>CALL_EXPR_TAILCALLマクロでtail callフラグを立てる。</li>
 	<li>最後にc_finish_return関数によりreturn文を生成している。</li>
 	</small>
       </div>
@@ -319,7 +400,7 @@
 	<h1>CbCの実装:引数渡し</h1>
 	<li>GCC版コンパイラー開発当初、コンパイルしたCbCのプログラムはMicro-C版に速度面で勝てなかった。</li>
 	<ul>
-	  <li>Micro-Cでは関数呼び出しの際にできるだけレジスタを使うようにしていた。</li>
+	  <li class="incremental">Micro-Cでは関数呼び出しの際にできるだけレジスタを使うようにしていた。</li>
 	</ul>
 	<li class="incremental">そこで、GCC版CbCコンパイラの引数渡しもできるだけレジスタで行うことに。</li>
       </div>
@@ -399,23 +480,27 @@
 	  </ul>
 	</ul>
 	  <li>次の条件を満たしていないとtry_tail_callフラグを落とす。</li>
-	<ul>
+	  <small>
+	<ol>
 	  <li>caller側とcallee側の戻値の型の一致している。</li>
 	  <li>関数呼び出しがリターン直前に行われている。</li>
 	  <li>呼出先関数の引数に用いられるスタックサイズが呼出元のそれより少ない。</li>
 	  <li>引数の並びのコピーに上書きがない。</li>
-	</ul>
+	</ol>
+	</small>
       </div>
       <!-- PAGE -->
       <div class="slide">
 	<h1>CbCの実装:TCE</h1>
 	<li>フラグを落とされない為にコードセグメントは次の条件で作成する。</li>
-	<ul>
-	  <li>void型で統一。</li>
+	<small>
+	<ol>
+	  <li>型はvoid型で統一。</li>
 	  <li>gotoの直後にreturnを置く。</li>
 	  <li>スタックサイズは固定。</li>
 	  <li>引数は一旦、一時変数にコピーする。</li>
-	</ul>
+	</ol>
+	</small>
 	<li class="incremental">これでコードセグメントへの処理はjmp命令で移ることになる。</li>
       </div>
       <!-- PAGE -->
@@ -466,18 +551,19 @@
 	  <pre>
 goto c1(__return, __environment);
 
-goto c1(
-	({
+goto c1(({
 	  __label__ _cbc_exit0;
 	  static int retval;
-	  void _cbc_internal_return(int retval_, void *_envp){
+	  void _cbc_internal_return(int retval_, void *_envp) {
 	    retval = retval_;
-	    goto _cbc_exit0; }
-	  if (0) { _cbc_exit0:
-	    return retval; }
+	    goto _cbc_exit0; 
+          }
+	  if (0) { 
+            _cbc_exit0:
+	    return retval; 
+          }
 	  _cbc_internal_return;
-	}), 
-	__environment);
+	}), __environment);
 	  </pre>
 	  <p>retval変数はint型になっているが、実際には継続を行った関数と同じ戻値の型となる。</p>
 	</small>
@@ -629,7 +715,7 @@
       </div>
       <!-- PAGE -->
       <div class="slide">
-	<h1>__rectype の実装</h1>
+	<h1>CbCの機能の拡張:__rectype の実装</h1>
 	<li>通常、関数の引数に関数ポインタを渡した際は以下の様に使われる。</li>
 	<small>
 	<pre>
@@ -651,7 +737,7 @@
       </div>
       <!-- PAGE -->
       <div class="slide">
-	<h1>__rectype の実装</h1>
+	<h1>CbCの機能の拡張:__rectype の実装</h1>
 	<li>そこで、__rectype という予約後を作り、以下の宣言を行えるようにした。</li>
 	<pre>
 __code factorial(int n, int result, __rectype *print) {
@@ -662,7 +748,7 @@
       </div>
       <!-- PAGE -->
       <div class="slide">
-	<h1>CbCの機能の拡張</h1>
+	<h1>CbCの機能の拡張:selftype</h1>
 	<h2>selftypeの実装</h2>
 	<li>以下の宣言が行えるようにしたい。</li>
 	<small>
@@ -682,7 +768,7 @@
       <!-- PAGE -->
       <div class="slide">
 	<h1>Micro-Cとの比較</h1>
-	<li>以下はMicro-C,GCC-4.4とGCC-4.6それぞれのCbCコンパイラでコンパイルしたプログラムの実行結果</li>
+	<li>Micro-C,GCC-4.4とGCC-4.6のCbCコンパイラでコンパイルしたプログラムの実行の速度</li>
 	<table width=100% class="center">
 	  <td>
 	    <img src="./pix/mac_conv.png">
--- a/presen/omni/STATEMENT_LIST_1.graffle	Thu Dec 29 01:53:43 2011 +0900
+++ b/presen/omni/STATEMENT_LIST_1.graffle	Thu Dec 29 16:01:24 2011 +0900
@@ -14,7 +14,7 @@
 	<key>BackgroundGraphic</key>
 	<dict>
 		<key>Bounds</key>
-		<string>{{0, 0}, {1118, 783}}</string>
+		<string>{{0, 0}, {559, 783}}</string>
 		<key>Class</key>
 		<string>SolidGraphic</string>
 		<key>ID</key>
@@ -51,125 +51,6 @@
 	<array>
 		<dict>
 			<key>Bounds</key>
-			<string>{{486, 187}, {120, 22}}</string>
-			<key>Class</key>
-			<string>ShapedGraphic</string>
-			<key>ID</key>
-			<integer>73</integer>
-			<key>Magnets</key>
-			<array>
-				<string>{1, 1}</string>
-				<string>{1, -1}</string>
-				<string>{-1, -1}</string>
-				<string>{-1, 1}</string>
-				<string>{0, 1}</string>
-				<string>{0, -1}</string>
-				<string>{1, 0}</string>
-				<string>{-1, 0}</string>
-				<string>{-0.5, -0.233518}</string>
-				<string>{-0.49144199, 0.26006299}</string>
-				<string>{0.50711799, -0.224086}</string>
-				<string>{0.50711799, 0.26717901}</string>
-				<string>{-0.27430999, -0.47402799}</string>
-				<string>{0.27978, -0.47847801}</string>
-				<string>{0.29393801, 0.54304397}</string>
-				<string>{-0.28623199, 0.55380398}</string>
-			</array>
-			<key>Shape</key>
-			<string>Rectangle</string>
-			<key>Style</key>
-			<dict>
-				<key>fill</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-				<key>shadow</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-				<key>stroke</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-			</dict>
-			<key>Text</key>
-			<dict>
-				<key>Text</key>
-				<string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf230
-{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
-
-\f0\fs24 \cf0 _cbc_internal_return\
-(address)}</string>
-				<key>VerticalPad</key>
-				<integer>0</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Bounds</key>
-			<string>{{401.5, 239}, {81, 22}}</string>
-			<key>Class</key>
-			<string>ShapedGraphic</string>
-			<key>ID</key>
-			<integer>72</integer>
-			<key>Magnets</key>
-			<array>
-				<string>{1, 1}</string>
-				<string>{1, -1}</string>
-				<string>{-1, -1}</string>
-				<string>{-1, 1}</string>
-				<string>{0, 1}</string>
-				<string>{0, -1}</string>
-				<string>{1, 0}</string>
-				<string>{-1, 0}</string>
-				<string>{-0.5, -0.233518}</string>
-				<string>{-0.49144199, 0.26006299}</string>
-				<string>{0.50711799, -0.224086}</string>
-				<string>{0.50711799, 0.26717901}</string>
-				<string>{-0.27430999, -0.47402799}</string>
-				<string>{0.27978, -0.47847801}</string>
-				<string>{0.29393801, 0.54304397}</string>
-				<string>{-0.28623199, 0.55380398}</string>
-			</array>
-			<key>Shape</key>
-			<string>Rectangle</string>
-			<key>Style</key>
-			<dict>
-				<key>fill</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-				<key>shadow</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-				<key>stroke</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-			</dict>
-			<key>Text</key>
-			<dict>
-				<key>Text</key>
-				<string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf230
-{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
-
-\f0\fs24 \cf0 if(0) \{..\}}</string>
-				<key>VerticalPad</key>
-				<integer>0</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Bounds</key>
 			<string>{{253, 241}, {120, 22}}</string>
 			<key>Class</key>
 			<string>ShapedGraphic</string>
@@ -348,400 +229,6 @@
 		<dict>
 			<key>Class</key>
 			<string>LineGraphic</string>
-			<key>Head</key>
-			<dict>
-				<key>ID</key>
-				<integer>68</integer>
-			</dict>
-			<key>ID</key>
-			<integer>69</integer>
-			<key>Points</key>
-			<array>
-				<string>{428, 187}</string>
-				<string>{428, 215}</string>
-			</array>
-			<key>Style</key>
-			<dict>
-				<key>stroke</key>
-				<dict>
-					<key>HeadArrow</key>
-					<string>FilledArrow</string>
-					<key>HeadScale</key>
-					<real>1.4285709857940674</real>
-					<key>TailArrow</key>
-					<string>0</string>
-					<key>TailScale</key>
-					<real>0.5</real>
-				</dict>
-			</dict>
-			<key>Tail</key>
-			<dict>
-				<key>ID</key>
-				<integer>62</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Bounds</key>
-			<string>{{378, 215}, {100, 26}}</string>
-			<key>Class</key>
-			<string>ShapedGraphic</string>
-			<key>ID</key>
-			<integer>68</integer>
-			<key>Magnets</key>
-			<array>
-				<string>{1, 1}</string>
-				<string>{1, -1}</string>
-				<string>{-1, -1}</string>
-				<string>{-1, 1}</string>
-				<string>{0, 1}</string>
-				<string>{0, -1}</string>
-				<string>{1, 0}</string>
-				<string>{-1, 0}</string>
-				<string>{-0.5, -0.233518}</string>
-				<string>{-0.49144199, 0.26006299}</string>
-				<string>{0.50711799, -0.224086}</string>
-				<string>{0.50711799, 0.26717901}</string>
-				<string>{-0.27430999, -0.47402799}</string>
-				<string>{0.27978, -0.47847801}</string>
-				<string>{0.29393801, 0.54304397}</string>
-				<string>{-0.28623199, 0.55380398}</string>
-			</array>
-			<key>Shape</key>
-			<string>Rectangle</string>
-			<key>Style</key>
-			<dict>
-				<key>shadow</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-			</dict>
-			<key>Text</key>
-			<dict>
-				<key>Text</key>
-				<string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf230
-{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
-
-\f0\fs24 \cf0 COND_EXPR}</string>
-				<key>VerticalPad</key>
-				<integer>0</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Class</key>
-			<string>LineGraphic</string>
-			<key>ID</key>
-			<integer>67</integer>
-			<key>Points</key>
-			<array>
-				<string>{548.5, 129}</string>
-				<string>{548.5, 157}</string>
-			</array>
-			<key>Style</key>
-			<dict>
-				<key>stroke</key>
-				<dict>
-					<key>HeadArrow</key>
-					<string>FilledArrow</string>
-					<key>HeadScale</key>
-					<real>1.4285709857940674</real>
-					<key>TailArrow</key>
-					<string>0</string>
-					<key>TailScale</key>
-					<real>0.5</real>
-				</dict>
-			</dict>
-		</dict>
-		<dict>
-			<key>Bounds</key>
-			<string>{{496, 157}, {100, 26}}</string>
-			<key>Class</key>
-			<string>ShapedGraphic</string>
-			<key>ID</key>
-			<integer>66</integer>
-			<key>Magnets</key>
-			<array>
-				<string>{1, 1}</string>
-				<string>{1, -1}</string>
-				<string>{-1, -1}</string>
-				<string>{-1, 1}</string>
-				<string>{0, 1}</string>
-				<string>{0, -1}</string>
-				<string>{1, 0}</string>
-				<string>{-1, 0}</string>
-				<string>{-0.5, -0.233518}</string>
-				<string>{-0.49144199, 0.26006299}</string>
-				<string>{0.50711799, -0.224086}</string>
-				<string>{0.50711799, 0.26717901}</string>
-				<string>{-0.27430999, -0.47402799}</string>
-				<string>{0.27978, -0.47847801}</string>
-				<string>{0.29393801, 0.54304397}</string>
-				<string>{-0.28623199, 0.55380398}</string>
-			</array>
-			<key>Shape</key>
-			<string>Rectangle</string>
-			<key>Style</key>
-			<dict>
-				<key>shadow</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-			</dict>
-			<key>Text</key>
-			<dict>
-				<key>Text</key>
-				<string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf230
-{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
-
-\f0\fs24 \cf0 ADDR_EXPR}</string>
-				<key>VerticalPad</key>
-				<integer>0</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Bounds</key>
-			<string>{{519.5, 88}, {53, 41}}</string>
-			<key>Class</key>
-			<string>ShapedGraphic</string>
-			<key>ID</key>
-			<integer>65</integer>
-			<key>Magnets</key>
-			<array>
-				<string>{1, 1}</string>
-				<string>{1, -1}</string>
-				<string>{-1, -1}</string>
-				<string>{-1, 1}</string>
-				<string>{0, 1}</string>
-				<string>{0, -1}</string>
-				<string>{1, 0}</string>
-				<string>{-1, 0}</string>
-				<string>{-0.5, -0.233518}</string>
-				<string>{-0.49144199, 0.26006299}</string>
-				<string>{0.50711799, -0.224086}</string>
-				<string>{0.50711799, 0.26717901}</string>
-				<string>{-0.27430999, -0.47402799}</string>
-				<string>{0.27978, -0.47847801}</string>
-				<string>{0.29393801, 0.54304397}</string>
-				<string>{-0.28623199, 0.55380398}</string>
-			</array>
-			<key>Shape</key>
-			<string>Rectangle</string>
-			<key>Style</key>
-			<dict>
-				<key>shadow</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-			</dict>
-			<key>Text</key>
-			<dict>
-				<key>Text</key>
-				<string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf230
-{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc
-
-\f0\fs24 \cf0 next\
-prev\
-stmt}</string>
-				<key>VerticalPad</key>
-				<integer>0</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Class</key>
-			<string>LineGraphic</string>
-			<key>ID</key>
-			<integer>64</integer>
-			<key>Points</key>
-			<array>
-				<string>{454.5, 112}</string>
-				<string>{519.5, 112}</string>
-			</array>
-			<key>Style</key>
-			<dict>
-				<key>stroke</key>
-				<dict>
-					<key>HeadArrow</key>
-					<string>FilledArrow</string>
-					<key>HeadScale</key>
-					<real>1.4285709857940674</real>
-					<key>TailArrow</key>
-					<string>0</string>
-					<key>TailScale</key>
-					<real>0.5</real>
-				</dict>
-			</dict>
-		</dict>
-		<dict>
-			<key>Class</key>
-			<string>LineGraphic</string>
-			<key>Head</key>
-			<dict>
-				<key>ID</key>
-				<integer>62</integer>
-			</dict>
-			<key>ID</key>
-			<integer>63</integer>
-			<key>Points</key>
-			<array>
-				<string>{428, 129}</string>
-				<string>{428, 161}</string>
-			</array>
-			<key>Style</key>
-			<dict>
-				<key>stroke</key>
-				<dict>
-					<key>HeadArrow</key>
-					<string>FilledArrow</string>
-					<key>HeadScale</key>
-					<real>1.4285709857940674</real>
-					<key>TailArrow</key>
-					<string>0</string>
-					<key>TailScale</key>
-					<real>0.5</real>
-				</dict>
-			</dict>
-			<key>Tail</key>
-			<dict>
-				<key>ID</key>
-				<integer>61</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Bounds</key>
-			<string>{{378, 161}, {100, 26}}</string>
-			<key>Class</key>
-			<string>ShapedGraphic</string>
-			<key>ID</key>
-			<integer>62</integer>
-			<key>Magnets</key>
-			<array>
-				<string>{1, 1}</string>
-				<string>{1, -1}</string>
-				<string>{-1, -1}</string>
-				<string>{-1, 1}</string>
-				<string>{0, 1}</string>
-				<string>{0, -1}</string>
-				<string>{1, 0}</string>
-				<string>{-1, 0}</string>
-				<string>{-0.5, -0.233518}</string>
-				<string>{-0.49144199, 0.26006299}</string>
-				<string>{0.50711799, -0.224086}</string>
-				<string>{0.50711799, 0.26717901}</string>
-				<string>{-0.27430999, -0.47402799}</string>
-				<string>{0.27978, -0.47847801}</string>
-				<string>{0.29393801, 0.54304397}</string>
-				<string>{-0.28623199, 0.55380398}</string>
-			</array>
-			<key>Shape</key>
-			<string>Rectangle</string>
-			<key>Style</key>
-			<dict>
-				<key>shadow</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-			</dict>
-			<key>Text</key>
-			<dict>
-				<key>Text</key>
-				<string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf230
-{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
-
-\f0\fs24 \cf0 BIND_EXPR}</string>
-				<key>VerticalPad</key>
-				<integer>0</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Bounds</key>
-			<string>{{401.5, 88}, {53, 41}}</string>
-			<key>Class</key>
-			<string>ShapedGraphic</string>
-			<key>ID</key>
-			<integer>61</integer>
-			<key>Magnets</key>
-			<array>
-				<string>{1, 1}</string>
-				<string>{1, -1}</string>
-				<string>{-1, -1}</string>
-				<string>{-1, 1}</string>
-				<string>{0, 1}</string>
-				<string>{0, -1}</string>
-				<string>{1, 0}</string>
-				<string>{-1, 0}</string>
-				<string>{-0.5, -0.233518}</string>
-				<string>{-0.49144199, 0.26006299}</string>
-				<string>{0.50711799, -0.224086}</string>
-				<string>{0.50711799, 0.26717901}</string>
-				<string>{-0.27430999, -0.47402799}</string>
-				<string>{0.27978, -0.47847801}</string>
-				<string>{0.29393801, 0.54304397}</string>
-				<string>{-0.28623199, 0.55380398}</string>
-			</array>
-			<key>Shape</key>
-			<string>Rectangle</string>
-			<key>Style</key>
-			<dict>
-				<key>shadow</key>
-				<dict>
-					<key>Draws</key>
-					<string>NO</string>
-				</dict>
-			</dict>
-			<key>Text</key>
-			<dict>
-				<key>Text</key>
-				<string>{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf230
-{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc
-
-\f0\fs24 \cf0 next\
-prev\
-stmt}</string>
-				<key>VerticalPad</key>
-				<integer>0</integer>
-			</dict>
-		</dict>
-		<dict>
-			<key>Class</key>
-			<string>LineGraphic</string>
-			<key>ID</key>
-			<integer>60</integer>
-			<key>Points</key>
-			<array>
-				<string>{336.5, 112}</string>
-				<string>{401.5, 112}</string>
-			</array>
-			<key>Style</key>
-			<dict>
-				<key>stroke</key>
-				<dict>
-					<key>HeadArrow</key>
-					<string>FilledArrow</string>
-					<key>HeadScale</key>
-					<real>1.4285709857940674</real>
-					<key>TailArrow</key>
-					<string>0</string>
-					<key>TailScale</key>
-					<real>0.5</real>
-				</dict>
-			</dict>
-		</dict>
-		<dict>
-			<key>Class</key>
-			<string>LineGraphic</string>
 			<key>ID</key>
 			<integer>59</integer>
 			<key>Points</key>
@@ -912,7 +399,7 @@
 {\colortbl;\red255\green255\blue255;}
 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
 
-\f0\fs24 \cf0 DECL_EXPR}</string>
+\f0\fs24 \cf0 RETURN_EXPR}</string>
 				<key>VerticalPad</key>
 				<integer>0</integer>
 			</dict>
@@ -1222,7 +709,7 @@
 {\colortbl;\red255\green255\blue255;}
 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
 
-\f0\fs24 \cf0 DECL_EXPR}</string>
+\f0\fs24 \cf0 MODIFY_EXPR}</string>
 				<key>VerticalPad</key>
 				<integer>0</integer>
 			</dict>
@@ -1271,7 +758,7 @@
 {\colortbl;\red255\green255\blue255;}
 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc
 
-\f0\fs24 \cf0 DECL_EXPR}</string>
+\f0\fs24 \cf0 MODIFY_EXPR}</string>
 				<key>VerticalPad</key>
 				<integer>0</integer>
 			</dict>
@@ -1497,7 +984,7 @@
 	<key>GuidesVisible</key>
 	<string>YES</string>
 	<key>HPages</key>
-	<integer>2</integer>
+	<integer>1</integer>
 	<key>ImageCounter</key>
 	<integer>1</integer>
 	<key>KeepToScale</key>
@@ -1537,7 +1024,7 @@
 	<key>MasterSheets</key>
 	<array/>
 	<key>ModificationDate</key>
-	<string>2011-12-28 09:22:13 +0000</string>
+	<string>2011-12-29 06:52:40 +0000</string>
 	<key>Modifier</key>
 	<string>Nobuyasu Oshiro</string>
 	<key>NotesVisible</key>
@@ -1632,7 +1119,7 @@
 		<key>SidebarWidth</key>
 		<integer>120</integer>
 		<key>VisibleRegion</key>
-		<string>{{126, 0}, {558, 783}}</string>
+		<string>{{0, 0}, {558, 783}}</string>
 		<key>Zoom</key>
 		<real>1</real>
 		<key>ZoomValues</key>