diff options
| author | Dibyendu Majumdar <mobile@majumdar.org.uk> | 2023-10-27 20:35:04 +0100 |
|---|---|---|
| committer | Dibyendu Majumdar <mobile@majumdar.org.uk> | 2024-10-23 17:51:09 -0700 |
| commit | 369268fe6f3bd1dcd59117c8f831f04f4e3b0560 (patch) | |
| tree | d06a85d843468b9aad667eac114b9866e1ed3d09 /docs/chapter05/05-graph1.svg | |
| parent | 83fdf059150e37c335a86e3dd4547a76a1c588db (diff) | |
| download | Simple-linear-chapter05.tar.gz Simple-linear-chapter05.zip | |
Chapter 5: If Statement, Phi, and Regionlinear-chapter05
Co-authored-by: Cliff Click <cliffc@acm.org>
Co-authored-by: XmiliaH <45106915+XmiliaH@users.noreply.github.com>
Co-authored-by: Yichen Yan <oraluben@outlook.com>
Co-authored-by: Thalia Archibald <thalia@archibald.dev>
Co-authored-by: Tamas Hadhazy <helsgithub15@gmail.com>
Co-authored-by: David Rubin <87927264+Rexicon226@users.noreply.github.com>
Diffstat (limited to 'docs/chapter05/05-graph1.svg')
| -rw-r--r-- | docs/chapter05/05-graph1.svg | 228 |
1 files changed, 228 insertions, 0 deletions
diff --git a/docs/chapter05/05-graph1.svg b/docs/chapter05/05-graph1.svg new file mode 100644 index 00000000..efe0a0e8 --- /dev/null +++ b/docs/chapter05/05-graph1.svg @@ -0,0 +1,228 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<!-- Generated by graphviz version 2.43.0 (0) + --> +<!-- Title: chapter05 Pages: 1 --> +<svg width="432pt" height="356pt" + viewBox="0.00 0.00 432.00 356.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> +<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 352)"> +<title>chapter05</title> +<polygon fill="white" stroke="transparent" points="-4,4 -4,-352 428,-352 428,4 -4,4"/> +<g id="clust1" class="cluster"> +<title>cluster_Nodes</title> +<polygon fill="none" stroke="black" points="85,-88 85,-340 415,-340 415,-88 85,-88"/> +</g> +<g id="clust2" class="cluster"> +<title>cluster_Scope1_0</title> +<polygon fill="none" stroke="black" points="8,-8 8,-76 208,-76 208,-8 8,-8"/> +</g> +<g id="clust3" class="cluster"> +<title>cluster_Scope1_1</title> +<polygon fill="none" stroke="black" points="16,-16 16,-68 86,-68 86,-16 16,-16"/> +</g> +<g id="clust4" class="cluster"> +<title>cluster_Scope12_0</title> +<polygon fill="none" stroke="black" points="216,-8 216,-76 416,-76 416,-8 216,-8"/> +</g> +<g id="clust5" class="cluster"> +<title>cluster_Scope12_1</title> +<polygon fill="none" stroke="black" points="224,-16 224,-68 294,-68 294,-16 224,-16"/> +</g> +<!-- Start2 --> +<g id="node1" class="node"> +<title>Start2</title> +<polygon fill="yellow" stroke="transparent" points="174,-303 174,-328 255,-328 255,-303 174,-303"/> +<polygon fill="none" stroke="black" points="174,-303 174,-328 255,-328 255,-303 174,-303"/> +<text text-anchor="start" x="196" y="-311.8" font-family="Times,serif" font-size="14.00">Start</text> +<polygon fill="none" stroke="black" points="174,-272 174,-303 255,-303 255,-272 174,-272"/> +<polygon fill="yellow" stroke="transparent" points="179,-277 179,-298 219,-298 219,-277 179,-277"/> +<polygon fill="none" stroke="black" points="179,-277 179,-298 219,-298 219,-277 179,-277"/> +<text text-anchor="start" x="182" y="-283.8" font-family="Times,serif" font-size="14.00">$ctrl</text> +<polygon fill="none" stroke="black" points="219,-277 219,-298 250,-298 250,-277 219,-277"/> +<text text-anchor="start" x="222" y="-283.8" font-family="Times,serif" font-size="14.00">arg</text> +</g> +<!-- Con_7 --> +<g id="node2" class="node"> +<title>Con_7</title> +<ellipse fill="none" stroke="black" cx="308" cy="-300" rx="27" ry="18"/> +<text text-anchor="middle" x="308" y="-296.3" font-family="Times,serif" font-size="14.00">#1</text> +</g> +<!-- EQNode8 --> +<g id="node3" class="node"> +<title>EQNode8</title> +<ellipse fill="none" stroke="black" cx="245" cy="-214" rx="27" ry="18"/> +<text text-anchor="middle" x="245" y="-210.3" font-family="Times,serif" font-size="14.00">==</text> +</g> +<!-- EQNode8->Start2 --> +<g id="edge1" class="edge"> +<title>EQNode8->Start2:p1</title> +<path fill="none" stroke="black" d="M240.7,-231.97C238.58,-241.48 236.3,-253.83 235.4,-265.95"/> +<polygon fill="black" stroke="black" points="231.9,-265.87 235,-276 238.89,-266.15 231.9,-265.87"/> +<text text-anchor="middle" x="237.7" y="-234.57" font-family="Helvetica,sans-Serif" font-size="8.00">1</text> +</g> +<!-- EQNode8->Con_7 --> +<g id="edge2" class="edge"> +<title>EQNode8->Con_7</title> +<path fill="none" stroke="black" d="M256.56,-230.41C266.06,-243.08 279.67,-261.23 290.51,-275.68"/> +<polygon fill="black" stroke="black" points="287.72,-277.79 296.52,-283.69 293.32,-273.59 287.72,-277.79"/> +<text text-anchor="middle" x="253.56" y="-233.01" font-family="Helvetica,sans-Serif" font-size="8.00">2</text> +</g> +<!-- If9 --> +<g id="node4" class="node"> +<title>If9</title> +<polygon fill="yellow" stroke="transparent" points="169,-131 169,-156 263,-156 263,-131 169,-131"/> +<polygon fill="none" stroke="black" points="169,-131 169,-156 263,-156 263,-131 169,-131"/> +<text text-anchor="start" x="210.5" y="-139.8" font-family="Times,serif" font-size="14.00">If</text> +<polygon fill="none" stroke="black" points="169,-100 169,-131 263,-131 263,-100 169,-100"/> +<polygon fill="yellow" stroke="transparent" points="174,-105 174,-126 214,-126 214,-105 174,-105"/> +<polygon fill="none" stroke="black" points="174,-105 174,-126 214,-126 214,-105 174,-105"/> +<text text-anchor="start" x="177" y="-111.8" font-family="Times,serif" font-size="14.00">True</text> +<polygon fill="yellow" stroke="transparent" points="214,-105 214,-126 258,-126 258,-105 214,-105"/> +<polygon fill="none" stroke="black" points="214,-105 214,-126 258,-126 258,-105 214,-105"/> +<text text-anchor="start" x="217" y="-111.8" font-family="Times,serif" font-size="14.00">False</text> +</g> +<!-- If9->Start2 --> +<g id="edge3" class="edge"> +<title>If9->Start2:p0</title> +<path fill="none" stroke="red" d="M210.29,-160.14C205.78,-187.26 200.08,-228.01 199.14,-265.52"/> +<polygon fill="red" stroke="red" points="195.63,-265.96 199,-276 202.63,-266.05 195.63,-265.96"/> +<text text-anchor="middle" x="207.29" y="-162.74" font-family="Helvetica,sans-Serif" font-size="8.00">0</text> +</g> +<!-- If9->EQNode8 --> +<g id="edge4" class="edge"> +<title>If9->EQNode8</title> +<path fill="none" stroke="black" d="M226.8,-160.28C229.78,-168.9 232.97,-178.17 235.85,-186.49"/> +<polygon fill="black" stroke="black" points="232.58,-187.76 239.16,-196.07 239.2,-185.48 232.58,-187.76"/> +<text text-anchor="middle" x="223.8" y="-162.88" font-family="Helvetica,sans-Serif" font-size="8.00">1</text> +</g> +<!-- Con_13 --> +<g id="node5" class="node"> +<title>Con_13</title> +<ellipse fill="none" stroke="black" cx="120" cy="-300" rx="27" ry="18"/> +<text text-anchor="middle" x="120" y="-296.3" font-family="Times,serif" font-size="14.00">#2</text> +</g> +<!-- Add14 --> +<g id="node6" class="node"> +<title>Add14</title> +<ellipse fill="none" stroke="black" cx="153" cy="-214" rx="27" ry="18"/> +<text text-anchor="middle" x="153" y="-210.3" font-family="Times,serif" font-size="14.00">+</text> +</g> +<!-- Add14->Start2 --> +<g id="edge5" class="edge"> +<title>Add14->Start2:p1</title> +<path fill="none" stroke="black" d="M174.12,-225.69C193.67,-236.17 221.18,-252.54 231.18,-266.44"/> +<polygon fill="black" stroke="black" points="228.04,-268.01 235,-276 234.54,-265.42 228.04,-268.01"/> +<text text-anchor="middle" x="171.12" y="-228.29" font-family="Helvetica,sans-Serif" font-size="8.00">1</text> +</g> +<!-- Add14->Con_13 --> +<g id="edge6" class="edge"> +<title>Add14->Con_13</title> +<path fill="none" stroke="black" d="M146.48,-231.6C141.87,-243.33 135.59,-259.3 130.31,-272.76"/> +<polygon fill="black" stroke="black" points="126.91,-271.85 126.51,-282.44 133.42,-274.41 126.91,-271.85"/> +<text text-anchor="middle" x="143.48" y="-234.2" font-family="Helvetica,sans-Serif" font-size="8.00">2</text> +</g> +<!-- Con_15 --> +<g id="node7" class="node"> +<title>Con_15</title> +<ellipse fill="none" stroke="black" cx="380" cy="-300" rx="27" ry="18"/> +<text text-anchor="middle" x="380" y="-296.3" font-family="Times,serif" font-size="14.00">#3</text> +</g> +<!-- Sub16 --> +<g id="node8" class="node"> +<title>Sub16</title> +<ellipse fill="none" stroke="black" cx="317" cy="-214" rx="27" ry="18"/> +<text text-anchor="middle" x="317" y="-210.3" font-family="Times,serif" font-size="14.00">-</text> +</g> +<!-- Sub16->Start2 --> +<g id="edge7" class="edge"> +<title>Sub16->Start2:p1</title> +<path fill="none" stroke="black" d="M304.31,-229.92C290.9,-245.57 270.14,-269.43 258.76,-280.7"/> +<polygon fill="black" stroke="black" points="256.56,-277.98 251,-287 260.97,-283.41 256.56,-277.98"/> +<text text-anchor="middle" x="301.31" y="-232.52" font-family="Helvetica,sans-Serif" font-size="8.00">1</text> +</g> +<!-- Sub16->Con_15 --> +<g id="edge8" class="edge"> +<title>Sub16->Con_15</title> +<path fill="none" stroke="black" d="M328.56,-230.41C338.06,-243.08 351.67,-261.23 362.51,-275.68"/> +<polygon fill="black" stroke="black" points="359.72,-277.79 368.52,-283.69 365.32,-273.59 359.72,-277.79"/> +<text text-anchor="middle" x="325.56" y="-233.01" font-family="Helvetica,sans-Serif" font-size="8.00">2</text> +</g> +<!-- Scope1_0 --> +<g id="node9" class="node"> +<title>Scope1_0</title> +<polygon fill="cyan" stroke="transparent" points="105,-31 105,-52 121,-52 121,-31 105,-31"/> +<polygon fill="none" stroke="black" points="105,-31 105,-52 121,-52 121,-31 105,-31"/> +<text text-anchor="start" x="108" y="-37.8" font-family="Times,serif" font-size="14.00">0</text> +<polygon fill="none" stroke="black" points="121,-31 121,-52 161,-52 161,-31 121,-31"/> +<text text-anchor="start" x="124" y="-37.8" font-family="Times,serif" font-size="14.00">$ctrl</text> +<polygon fill="none" stroke="black" points="161,-31 161,-52 192,-52 192,-31 161,-31"/> +<text text-anchor="start" x="164" y="-37.8" font-family="Times,serif" font-size="14.00">arg</text> +</g> +<!-- Scope1_0->Start2 --> +<g id="edge10" class="edge"> +<title>Scope1_0:Scope1_0_arg->Start2:p1</title> +<path fill="none" stroke="cornflowerblue" stroke-dasharray="5,2" d="M177,-53C177,-72.12 160.6,-70.93 152,-88 122.36,-146.82 79.43,-177.9 117,-232 146.68,-274.74 223.16,-227.66 233.77,-265.81"/> +<polygon fill="cornflowerblue" stroke="cornflowerblue" points="230.33,-266.49 235,-276 237.28,-265.65 230.33,-266.49"/> +</g> +<!-- Scope1_0->If9 --> +<g id="edge9" class="edge"> +<title>Scope1_0:Scope1_0_$ctrl->If9:p0</title> +<path fill="none" stroke="cornflowerblue" stroke-dasharray="5,2" d="M141,-53C141,-81.73 181.94,-74.1 191.86,-94.03"/> +<polygon fill="cornflowerblue" stroke="cornflowerblue" points="188.48,-94.96 194,-104 195.32,-93.49 188.48,-94.96"/> +</g> +<!-- Scope1_1 --> +<g id="node10" class="node"> +<title>Scope1_1</title> +<polygon fill="cyan" stroke="transparent" points="36,-31 36,-52 52,-52 52,-31 36,-31"/> +<polygon fill="none" stroke="black" points="36,-31 36,-52 52,-52 52,-31 36,-31"/> +<text text-anchor="start" x="39" y="-37.8" font-family="Times,serif" font-size="14.00">1</text> +<polygon fill="none" stroke="black" points="52,-31 52,-52 67,-52 67,-31 52,-31"/> +<text text-anchor="start" x="55" y="-37.8" font-family="Times,serif" font-size="14.00">a</text> +</g> +<!-- Scope1_1->Add14 --> +<g id="edge11" class="edge"> +<title>Scope1_1:Scope1_1_a->Add14</title> +<path fill="none" stroke="cornflowerblue" stroke-dasharray="5,2" d="M60,-53C60,-108.8 102.8,-162.53 130.33,-191.31"/> +<polygon fill="cornflowerblue" stroke="cornflowerblue" points="128.14,-194.07 137.64,-198.75 133.13,-189.17 128.14,-194.07"/> +</g> +<!-- Scope12_0 --> +<g id="node11" class="node"> +<title>Scope12_0</title> +<polygon fill="cyan" stroke="transparent" points="313,-31 313,-52 329,-52 329,-31 313,-31"/> +<polygon fill="none" stroke="black" points="313,-31 313,-52 329,-52 329,-31 313,-31"/> +<text text-anchor="start" x="316" y="-37.8" font-family="Times,serif" font-size="14.00">0</text> +<polygon fill="none" stroke="black" points="329,-31 329,-52 369,-52 369,-31 329,-31"/> +<text text-anchor="start" x="332" y="-37.8" font-family="Times,serif" font-size="14.00">$ctrl</text> +<polygon fill="none" stroke="black" points="369,-31 369,-52 400,-52 400,-31 369,-31"/> +<text text-anchor="start" x="372" y="-37.8" font-family="Times,serif" font-size="14.00">arg</text> +</g> +<!-- Scope12_0->Start2 --> +<g id="edge13" class="edge"> +<title>Scope12_0:Scope12_0_arg->Start2:p1</title> +<path fill="none" stroke="cornflowerblue" stroke-dasharray="5,2" d="M385,-53C385,-133.82 402.85,-168.39 353,-232 328.7,-263.01 305.02,-246.51 272,-268 265.41,-272.29 263.77,-278.64 260.39,-282.8"/> +<polygon fill="cornflowerblue" stroke="cornflowerblue" points="258.7,-279.72 251,-287 261.56,-286.11 258.7,-279.72"/> +</g> +<!-- Scope12_0->If9 --> +<g id="edge12" class="edge"> +<title>Scope12_0:Scope12_0_$ctrl->If9:p1</title> +<path fill="none" stroke="cornflowerblue" stroke-dasharray="5,2" d="M349,-53C349,-98.16 313.19,-112.94 269.13,-114.79"/> +<polygon fill="cornflowerblue" stroke="cornflowerblue" points="268.93,-111.3 259,-115 269.07,-118.3 268.93,-111.3"/> +</g> +<!-- Scope12_1 --> +<g id="node12" class="node"> +<title>Scope12_1</title> +<polygon fill="cyan" stroke="transparent" points="244,-31 244,-52 260,-52 260,-31 244,-31"/> +<polygon fill="none" stroke="black" points="244,-31 244,-52 260,-52 260,-31 244,-31"/> +<text text-anchor="start" x="247" y="-37.8" font-family="Times,serif" font-size="14.00">1</text> +<polygon fill="none" stroke="black" points="260,-31 260,-52 275,-52 275,-31 260,-31"/> +<text text-anchor="start" x="263" y="-37.8" font-family="Times,serif" font-size="14.00">a</text> +</g> +<!-- Scope12_1->Sub16 --> +<g id="edge14" class="edge"> +<title>Scope12_1:Scope12_1_a->Sub16</title> +<path fill="none" stroke="cornflowerblue" stroke-dasharray="5,2" d="M268,-53C268,-69.44 275,-72.33 280,-88 290.77,-121.73 302.19,-160.92 309.45,-186.29"/> +<polygon fill="cornflowerblue" stroke="cornflowerblue" points="306.09,-187.29 312.2,-195.95 312.83,-185.37 306.09,-187.29"/> +</g> +</g> +</svg> |
