summaryrefslogtreecommitdiff
path: root/docs/chapter10/example2c.svg
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2024-04-23 17:23:16 +0100
committerCliff Click <cliffc@acm.org>2025-02-07 08:58:36 -0800
commitc2b00feb2613e12ef4cafb2b6e022cb2831f68b8 (patch)
tree1b9d47f47e3c33373c19b26dc20a34ce7061409c /docs/chapter10/example2c.svg
parentcba428d358f6027cb2cfe63f814f0a535daba613 (diff)
downloadSimple-c2b00feb2613e12ef4cafb2b6e022cb2831f68b8.tar.gz
Simple-c2b00feb2613e12ef4cafb2b6e022cb2831f68b8.zip
Chapter 10: Structs and Memory
Co-authored-by: Thalia Archibald <thalia@archibald.dev> Co-authored-by: Dibyendu Majumdar <mobile@majumdar.org.uk> Co-authored-by: XmiliaH <45106915+XmiliaH@users.noreply.github.com> Co-authored-by: tannal <tannal2409@gmail.com> Co-authored-by: hadha <helsgithub15@gmail.com> Co-authored-by: XmiliaH <xmilia.hermit@gmail.com> Co-authored-by: Tamás Hadházy <85063808+Hels15@users.noreply.github.com> Co-authored-by: Robert Obkircher <robert.obkircher@gmail.com>
Diffstat (limited to 'docs/chapter10/example2c.svg')
-rw-r--r--docs/chapter10/example2c.svg168
1 files changed, 168 insertions, 0 deletions
diff --git a/docs/chapter10/example2c.svg b/docs/chapter10/example2c.svg
new file mode 100644
index 00000000..d70660a2
--- /dev/null
+++ b/docs/chapter10/example2c.svg
@@ -0,0 +1,168 @@
+<?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: chapter10 Pages: 1 -->
+<svg width="362pt" height="392pt"
+ viewBox="0.00 0.00 362.00 392.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 388)">
+<title>chapter10</title>
+<polygon fill="white" stroke="transparent" points="-4,4 -4,-388 358,-388 358,4 -4,4"/>
+<g id="clust1" class="cluster">
+<title>cluster_Nodes</title>
+<polygon fill="none" stroke="black" points="8,-8 8,-376 346,-376 346,-8 8,-8"/>
+</g>
+<!-- Con_16 -->
+<g id="node1" class="node">
+<title>Con_16</title>
+<ellipse fill="none" stroke="black" cx="63" cy="-250" rx="27" ry="18"/>
+<text text-anchor="middle" x="63" y="-246.3" font-family="Times,serif" font-size="14.00">#2</text>
+</g>
+<!-- Store17 -->
+<g id="node2" class="node">
+<title>Store17</title>
+<ellipse fill="none" stroke="black" cx="130" cy="-178" rx="29.8" ry="18"/>
+<text text-anchor="middle" x="130" y="-174.3" font-family="Times,serif" font-size="14.00">.a =</text>
+</g>
+<!-- Store17&#45;&gt;Con_16 -->
+<g id="edge3" class="edge">
+<title>Store17&#45;&gt;Con_16</title>
+<path fill="none" stroke="black" d="M115.79,-193.85C106.64,-203.4 94.58,-216.01 84.3,-226.75"/>
+<polygon fill="black" stroke="black" points="81.57,-224.53 77.19,-234.18 86.63,-229.37 81.57,-224.53"/>
+<text text-anchor="middle" x="112.79" y="-196.45" font-family="Helvetica,sans-Serif" font-size="8.00">3</text>
+</g>
+<!-- Start2 -->
+<g id="node3" class="node">
+<title>Start2</title>
+<polygon fill="yellow" stroke="transparent" points="152,-339 152,-364 277,-364 277,-339 152,-339"/>
+<polygon fill="none" stroke="black" points="152,-339 152,-364 277,-364 277,-339 152,-339"/>
+<text text-anchor="start" x="196" y="-347.8" font-family="Times,serif" font-size="14.00">Start</text>
+<polygon fill="none" stroke="black" points="152,-308 152,-339 277,-339 277,-308 152,-308"/>
+<polygon fill="yellow" stroke="transparent" points="157,-313 157,-334 197,-334 197,-313 157,-313"/>
+<polygon fill="none" stroke="black" points="157,-313 157,-334 197,-334 197,-313 157,-313"/>
+<text text-anchor="start" x="160" y="-319.8" font-family="Times,serif" font-size="14.00">$ctrl</text>
+<polygon fill="none" stroke="black" points="197,-313 197,-334 222,-334 222,-313 197,-313"/>
+<text text-anchor="start" x="200" y="-319.8" font-family="Times,serif" font-size="14.00">$2</text>
+<polygon fill="none" stroke="black" points="222,-313 222,-334 247,-334 247,-313 222,-313"/>
+<text text-anchor="start" x="225" y="-319.8" font-family="Times,serif" font-size="14.00">$3</text>
+<polygon fill="none" stroke="black" points="247,-313 247,-334 272,-334 272,-313 247,-313"/>
+<text text-anchor="start" x="250" y="-319.8" font-family="Times,serif" font-size="14.00">$4</text>
+</g>
+<!-- Store17&#45;&gt;Start2 -->
+<g id="edge1" class="edge">
+<title>Store17&#45;&gt;Start2:p2</title>
+<path fill="none" stroke="blue" d="M122.08,-195.45C114.22,-214.42 105.15,-245.81 119,-268 140.46,-302.38 197.41,-273.74 207.47,-301.89"/>
+<polygon fill="blue" stroke="blue" points="204.04,-302.64 209,-312 210.97,-301.59 204.04,-302.64"/>
+<text text-anchor="middle" x="119.08" y="-198.05" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- new10 -->
+<g id="node6" class="node">
+<title>new10</title>
+<ellipse fill="none" stroke="black" cx="177" cy="-250" rx="49.29" ry="18"/>
+<text text-anchor="middle" x="177" y="-246.3" font-family="Times,serif" font-size="14.00">new Bar</text>
+</g>
+<!-- Store17&#45;&gt;new10 -->
+<g id="edge2" class="edge">
+<title>Store17&#45;&gt;new10</title>
+<path fill="none" stroke="black" d="M140.67,-194.88C146.39,-203.41 153.58,-214.11 160.05,-223.75"/>
+<polygon fill="black" stroke="black" points="157.24,-225.85 165.72,-232.2 163.05,-221.95 157.24,-225.85"/>
+<text text-anchor="middle" x="137.67" y="-197.48" font-family="Helvetica,sans-Serif" font-size="8.00">2</text>
+</g>
+<!-- Return19 -->
+<g id="node4" class="node">
+<title>Return19</title>
+<polygon fill="yellow" stroke="black" points="223,-124 157,-124 157,-88 223,-88 223,-124"/>
+<text text-anchor="middle" x="190" y="-102.3" font-family="Times,serif" font-size="14.00">Return</text>
+</g>
+<!-- Return19&#45;&gt;Con_16 -->
+<g id="edge5" class="edge">
+<title>Return19&#45;&gt;Con_16</title>
+<path fill="none" stroke="black" d="M17,-179C8.57,-197.2 22.58,-216.12 37.3,-229.69"/>
+<polygon fill="black" stroke="black" points="35.08,-232.39 44.95,-236.26 39.65,-227.09 35.08,-232.39"/>
+<text text-anchor="middle" x="14" y="-172.6" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- Return19&#45;&gt;Store17 -->
+<g id="edge6" class="edge">
+<title>Return19&#45;&gt;Store17</title>
+<path fill="none" stroke="blue" d="M175.17,-124.3C167.47,-133.29 157.96,-144.38 149.66,-154.07"/>
+<polygon fill="blue" stroke="blue" points="146.88,-151.93 143.03,-161.8 152.2,-156.48 146.88,-151.93"/>
+<text text-anchor="middle" x="172.17" y="-126.9" font-family="Helvetica,sans-Serif" font-size="8.00">2</text>
+</g>
+<!-- Return19&#45;&gt;Start2 -->
+<g id="edge4" class="edge">
+<title>Return19&#45;&gt;Start2:p0</title>
+<path fill="none" stroke="red" d="M156.89,-108.08C113.74,-111.57 40.96,-125.25 17,-177"/>
+<path fill="none" stroke="red" d="M17,-179C-17.13,-252.71 52.8,-311.87 132.92,-321.6"/>
+<polygon fill="red" stroke="red" points="132.97,-325.12 143.25,-322.57 133.63,-318.15 132.97,-325.12"/>
+<text text-anchor="middle" x="153.89" y="-101.68" font-family="Helvetica,sans-Serif" font-size="8.00">0</text>
+</g>
+<!-- Return19&#45;&gt;Start2 -->
+<g id="edge8" class="edge">
+<title>Return19&#45;&gt;Start2:p4</title>
+<path fill="none" stroke="blue" d="M223.46,-117.39C245.19,-125.72 272.61,-139.46 290,-160 334.77,-212.87 344.89,-312.63 283.09,-322.25"/>
+<polygon fill="blue" stroke="blue" points="282.71,-318.77 273,-323 283.23,-325.75 282.71,-318.77"/>
+<text text-anchor="middle" x="226.46" y="-110.99" font-family="Helvetica,sans-Serif" font-size="8.00">4</text>
+</g>
+<!-- Store13 -->
+<g id="node8" class="node">
+<title>Store13</title>
+<ellipse fill="none" stroke="black" cx="250" cy="-178" rx="30.59" ry="18"/>
+<text text-anchor="middle" x="250" y="-174.3" font-family="Times,serif" font-size="14.00">.b =</text>
+</g>
+<!-- Return19&#45;&gt;Store13 -->
+<g id="edge7" class="edge">
+<title>Return19&#45;&gt;Store13</title>
+<path fill="none" stroke="blue" d="M204.83,-124.3C212.42,-133.16 221.77,-144.07 229.99,-153.66"/>
+<polygon fill="blue" stroke="blue" points="227.4,-156.01 236.57,-161.33 232.72,-151.46 227.4,-156.01"/>
+<text text-anchor="middle" x="201.83" y="-126.9" font-family="Helvetica,sans-Serif" font-size="8.00">3</text>
+</g>
+<!-- Stop3 -->
+<g id="node5" class="node">
+<title>Stop3</title>
+<polygon fill="yellow" stroke="black" points="217,-52 163,-52 163,-16 217,-16 217,-52"/>
+<text text-anchor="middle" x="190" y="-30.3" font-family="Times,serif" font-size="14.00">Stop</text>
+</g>
+<!-- Stop3&#45;&gt;Return19 -->
+<g id="edge9" class="edge">
+<title>Stop3&#45;&gt;Return19</title>
+<path fill="none" stroke="red" d="M190,-52.3C190,-60.02 190,-69.29 190,-77.89"/>
+<polygon fill="red" stroke="red" points="186.5,-77.9 190,-87.9 193.5,-77.9 186.5,-77.9"/>
+<text text-anchor="middle" x="187" y="-54.9" font-family="Helvetica,sans-Serif" font-size="8.00">0</text>
+</g>
+<!-- new10&#45;&gt;Start2 -->
+<g id="edge10" class="edge">
+<title>new10&#45;&gt;Start2:p0</title>
+<path fill="none" stroke="green" d="M177,-268.09C177,-277.55 177,-289.77 177,-301.69"/>
+<polygon fill="green" stroke="green" points="173.5,-302 177,-312 180.5,-302 173.5,-302"/>
+<text text-anchor="middle" x="174" y="-270.69" font-family="Helvetica,sans-Serif" font-size="8.00">0</text>
+</g>
+<!-- Con_11 -->
+<g id="node7" class="node">
+<title>Con_11</title>
+<ellipse fill="none" stroke="black" cx="271" cy="-250" rx="27" ry="18"/>
+<text text-anchor="middle" x="271" y="-246.3" font-family="Times,serif" font-size="14.00">#0</text>
+</g>
+<!-- Store13&#45;&gt;Start2 -->
+<g id="edge11" class="edge">
+<title>Store13&#45;&gt;Start2:p3</title>
+<path fill="none" stroke="blue" d="M270.42,-191.5C283.57,-200.84 299.55,-214.9 307,-232 313.39,-246.67 314.83,-254.04 307,-268 290.59,-297.26 245.93,-279.37 236.69,-302.12"/>
+<polygon fill="blue" stroke="blue" points="233.23,-301.55 235,-312 240.13,-302.73 233.23,-301.55"/>
+<text text-anchor="middle" x="267.42" y="-194.1" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- Store13&#45;&gt;new10 -->
+<g id="edge12" class="edge">
+<title>Store13&#45;&gt;new10</title>
+<path fill="none" stroke="black" d="M234.52,-193.85C224.79,-203.17 212.05,-215.39 201.03,-225.96"/>
+<polygon fill="black" stroke="black" points="198.53,-223.51 193.73,-232.96 203.37,-228.56 198.53,-223.51"/>
+<text text-anchor="middle" x="231.52" y="-196.45" font-family="Helvetica,sans-Serif" font-size="8.00">2</text>
+</g>
+<!-- Store13&#45;&gt;Con_11 -->
+<g id="edge13" class="edge">
+<title>Store13&#45;&gt;Con_11</title>
+<path fill="none" stroke="black" d="M255.08,-195.95C257.48,-203.94 260.4,-213.67 263.08,-222.6"/>
+<polygon fill="black" stroke="black" points="259.74,-223.64 265.96,-232.21 266.44,-221.63 259.74,-223.64"/>
+<text text-anchor="middle" x="252.08" y="-198.55" font-family="Helvetica,sans-Serif" font-size="8.00">3</text>
+</g>
+</g>
+</svg>