summaryrefslogtreecommitdiff
path: root/docs/chapter10b/example1.gv
blob: 0b0a5febc473768ab245957ee38a92050c2bc3df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
digraph Memory {
  rankdir=BT;
  node [shape=box];
  M [label="Initial memory"];
  X [label="Store x = 42"];
  Y [label="Loop: Store y"];
  L [label="Load x (42)"];
  L -> X -> M [color=blue]; Y -> M [color=green];
  MemMerge -> X [color=blue]; MemMerge -> Y [color=green];
  Return -> MemMerge; Return -> L;
  { rank=same; MemMerge -> L [style=invis]; }
  Y -> X [style=invis]; // Layout only: keep the stores in code order.
}