Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.max.graal.doc.initial/graph_test.tex @ 2892:5005a5607506
Moved design doc to graal project directory.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 08 Jun 2011 14:06:17 +0200 |
parents | doc/design/graph_test.tex@550b291f56c4 |
children |
comparison
equal
deleted
inserted
replaced
2891:75a99b4f1c98 | 2892:5005a5607506 |
---|---|
1 \documentclass[twocolumn]{svjour3} | |
2 \usepackage[pdftex]{graphicx} | |
3 \usepackage{environ} | |
4 \usepackage{amsmath} | |
5 \usepackage{amsfonts} | |
6 \usepackage[english]{babel} | |
7 \usepackage[utf8]{inputenc} | |
8 \usepackage{lmodern} | |
9 \usepackage[T1]{fontenc} | |
10 \usepackage{color} | |
11 | |
12 \input{graphdrawing} | |
13 | |
14 \renewcommand*\descriptionlabel[1]{\hspace\labelsep\normalfont\bf #1} | |
15 | |
16 \newcommand{\Sa}{{\Large$^*$}} | |
17 \newcommand{\Sb}{{\Large$^\dag$}} | |
18 \newcommand{\Sc}{{\Large$^\S$}} | |
19 | |
20 \smartqed % flush right qed marks, e.g. at end of proof | |
21 | |
22 \journalname{Test} | |
23 \def\makeheadbox{{% | |
24 \hbox to0pt{\vbox{\baselineskip=10dd\hrule\hbox | |
25 to\hsize{\vrule\kern3pt\vbox{\kern3pt | |
26 \hbox{\bfseries Test} | |
27 \kern3pt}\hfil\kern3pt\vrule}\hrule}% | |
28 \hss}}} | |
29 | |
30 \begin{document} | |
31 | |
32 \author{} | |
33 \institute{} | |
34 | |
35 \date{Created: \today} | |
36 | |
37 \title{Test} | |
38 \subtitle{} | |
39 | |
40 \maketitle | |
41 | |
42 \begin{digraphenv}{scale=0.5}{layout1} | |
43 \nodestart | |
44 \nodeend | |
45 \data{a}{start} | |
46 \data{b}{start} | |
47 \node{a}{a} | |
48 \node{b}{b} | |
49 \nodesplit{if}{if} | |
50 \node{nop}{nop} | |
51 \nodebi{add}{+} | |
52 \controllabel{if:succ1}{nop} | |
53 \controllabel{if:succ2}{add} | |
54 \datalabel{add:in1}{a} | |
55 \datalabel{add:in2}{b} | |
56 \control{nop}{end} | |
57 \end{digraphenv} | |
58 | |
59 \begin{digraphenv}{scale=0.5}{layout2} | |
60 \node{node1}{nop} | |
61 \nodebi{node2}{+} | |
62 \nodetri{node3}{phi} | |
63 \nodesplit{node4}{if} | |
64 \end{digraphenv} | |
65 | |
66 \begin{digraphenv}{scale=0.5}{layout3} | |
67 \node{a}{a} | |
68 \node{b}{b} | |
69 \nodesplit{if}{if} | |
70 \node{nop}{nop} | |
71 \nodebi{add}{+} | |
72 \controllabel{if:succ1}{nop} | |
73 \controllabel{if:succ2}{add} | |
74 \datalabel{add:in1}{a} | |
75 \datalabel{add:in2}{b} | |
76 \end{digraphenv} | |
77 | |
78 \begin{digraphenv}{scale=0.5}{layout4} | |
79 \node{arr}{arr} | |
80 \node{i}{i} | |
81 \node{j}{j} | |
82 \node{v}{v} | |
83 \nodetri{astore1}{astore} | |
84 \datalabel{astore1:in1}{arr} | |
85 \datalabel{astore1:in2}{i} | |
86 \datalabel{astore1:in3}{v} | |
87 \nodebi{add}{+} | |
88 \datalabel{add:in1}{i} | |
89 \datalabel{add:in2}{j} | |
90 \nodetri{astore2}{astore} | |
91 \datalabel{astore2:in1}{arr} | |
92 \datalabel{astore2:in2}{add} | |
93 \datalabel{astore2:in3}{v} | |
94 \cnode{fs}{framestate}{lightblue} | |
95 \control{fs}{astore2} | |
96 \data{fs}{astore1} | |
97 % \data{fs}{arr} | |
98 % \data{fs}{i} | |
99 % \data{fs}{j} | |
100 % \data{fs}{v} | |
101 \control{astore1}{astore2} | |
102 \end{digraphenv} | |
103 | |
104 \begin{digraphenv}{scale=0.5}{layout5} | |
105 \nodestart | |
106 \nodeend | |
107 % input projections | |
108 \node{a}{proj:a} | |
109 \node{b}{proj:b} | |
110 \data{a}{start} | |
111 \data{b}{start} | |
112 % if | |
113 \nodebi{cmp1}{<} | |
114 \datalabel{cmp1:in1}{a} | |
115 \datalabel{cmp1:in2}{b} | |
116 \nodesplit{if}{if} | |
117 \data{if}{cmp1} | |
118 \control{start}{if} | |
119 % branches | |
120 \nodebi{add1}{+} | |
121 \datalabel{add1:in1}{a} | |
122 \datalabel{add1:in2}{b} | |
123 \nodebi{sub1}{-} | |
124 \datalabel{sub1:in1}{a} | |
125 \datalabel{sub1:in2}{b} | |
126 \controllabel{if:succ1}{add1} | |
127 \controllabel{if:succ2}{sub1} | |
128 % merge | |
129 \nodebi{merge}{merge} | |
130 \control{add1}{merge} | |
131 \control{sub1}{merge} | |
132 % phi | |
133 \nodebi{phi1}{phi} | |
134 \datalabel{phi1:in1}{add1} | |
135 \datalabel{phi1:in2}{sub1} | |
136 % ret | |
137 \node{ret}{ret} | |
138 \data{ret}{phi1} | |
139 \control{merge}{ret} | |
140 \control{ret}{end} | |
141 \end{digraphenv} | |
142 | |
143 \end{document} | |
144 | |
145 | |
146 | |
147 | |
148 | |
149 | |
150 | |
151 | |
152 | |
153 | |
154 | |
155 | |
156 | |
157 | |
158 | |
159 | |
160 |