summaryrefslogtreecommitdiff
path: root/chapter07/docs/07-graph3.svg
diff options
context:
space:
mode:
authorDibyendu Majumdar <dibyendumajumdar@users.noreply.github.com>2023-12-03 23:23:04 +0000
committerGitHub <noreply@github.com>2023-12-03 15:23:04 -0800
commit6415e3ae9013e3a9ae0437553ea0c3702381469b (patch)
treeaec64a03c86332ce53857d9297b7bbfb7f807acf /chapter07/docs/07-graph3.svg
parent21a1fc4a4414f8511ae5e94965b4b72fd45751e0 (diff)
downloadSimple-6415e3ae9013e3a9ae0437553ea0c3702381469b.tar.gz
Simple-6415e3ae9013e3a9ae0437553ea0c3702381469b.zip
Chapter 7 (also 8 but not officially) (#48)
* #44 Start on chapter 7 * #44 Temp hack on printing to not break on cycles. Parse while statement. * #44 Remove unnecessary method * #44 Remove unnecessary phi map * #44 Phi should have existing nodes from both scopes as input * #44 We need to only insert phis once for each name that is looked up. To do so, we need to know when a named is looked up first time inside the loop body. The phi must have its second input added later on after the loop is fully parsed. * #44 Add phi also when update() is called. Only add phi if name was known at loop start * #44 Only create phi in loop body if var binding in head != body. During finish() lookup in body directly. * #44 Update the print output to make it similar to that in Xmilia's fork * #44 Disable peephole for phis & region involved in while loop * Fix broken tests Remove "disablePeephole" set in some tests, and remaining set for other tests, so a bulk test-all fails because disablePeephole is true for all. Reset disablePeephole in Node.reset Switch HashSet for BitSet (touches all). * Restructure Node class Group printing, group node & edge manipulations, group optimizations. Also, fix LoopRegion idom, it does not use Region idom but uses the original * #44 Node printing * #44 Node printing * #44 Fix control edges in loop region Change label of loop region Fix the output count in dump * #44 Revise dump output * #44 When a LoopRegionNode is duplicated, ensure the dupe is also a LoopRegionNode * #44 When a LoopScopeNode is merged, we merge the names set too * #44 When a LoopScopeNode is merged, we merge the names set too * #44 Fix print1() on RegionNode to use label() * #44 Fix bug caused by incorrect comparison of nodes between body and head of loop; the check must be performed before any phis are created * Revert "#44 Fix bug caused by incorrect comparison of nodes between body and head of loop; the check must be performed before any phis are created" This reverts commit 5f729709855046c5c10904f08385fd1aec9a298a. * #44 Fix bug caused by incorrect comparison of nodes between body and head of loop; the check must be performed before any phis are created * #44 when we create a phi incrementally for a loop region, all scopes that are cloned from the original must get the same phi update * #44 test case * #44 test case * Squashed commit of the following: commit 15666e287e6bbc39b3fcc49939165a1e908d43b2 Author: Cliff Click <cliffc@acm.org> Date: Mon Nov 27 09:45:40 2023 -0800 lazy/eager phis Eager phis by default, but can flip Parser.LAZY to switch to lazy phis. Several tests golden answers change when flipping this flag due to minor node renumbering. Phi combines same_inputs and singleUniqueInput. Fancier basic-block-like printing. Uses isMultiHead & isMultiTail which show up in many Nodes. Remove blanks in triple-quote strings. commit 6ea70182a92b7db4fe5a1fdc2c4491842ef77ee5 Author: Cliff Click <cliffc@acm.org> Date: Sun Nov 26 11:13:22 2023 -0800 Remove dead scopes Add a debug find commit a52c06a47bf1e56866d8b4d043290838f053ad76 Author: Cliff Click <cliffc@acm.org> Date: Sun Nov 26 10:21:48 2023 -0800 No constraints on backedges nicer loopy graphs commit b5ab550098355f0b66bf24b40adf2e5ba4d86e4e Author: Cliff Click <cliffc@acm.org> Date: Sun Nov 26 10:13:22 2023 -0800 Fix regression commit 30a7f5c734c686c02d3ca479914c9427b65cc469 Author: Cliff Click <cliffc@acm.org> Date: Sat Nov 25 21:51:47 2023 -0800 minor cleanup commit ad742b795ce0c93cfc82b2b11740261cfd923d02 Author: Cliff Click <cliffc@acm.org> Date: Sat Nov 25 21:47:05 2023 -0800 Fixes lazy phi Scope now takes a 'loop' option on dupping; the dup'ed Scope is filled with "Lazy Phi" sentinels - markers to indicate a Phi is need if this variable is ever referenced. If its never referenced, at the loop exit the "Lazy Phi" unwinds back to the original value. Lookup and update calls lazily insert concrete Phis over "Lazy Phis" at first touch. Rename _allScopes to _xScopes its "active" not "all" scopes now. Remove try/finally block at end, because a compiler bug throws, then attempts a GraphViz on a broken graph, then throws again, hiding the original bug. Removed 1 extra layer of Scopes. Scope printing now prints in edge order; added a reversemap for printing. More touches to ascii printing. * Remove flag to parseBlock * Bugfix for lazy on empty loop body Remove extra phi name-matching code * Keep head alive until entire end_loop merging is done * Create chapter 8 as a copy of chapter 7 * #44 Chapter 7 is now eager phis only (#46) * #44 Chapter 7 is now eager phis only * MOVE IR Printing to dedicated class to declutter Node. Remove Ary (#49) * #44 Move IR printing to dedicated class to declutter Node, and remove Ary * #44 refactor Node.delUse() to use common del() * #44 Some cleanups * #44 Some cleanups * #44 Some cleanups * #44 Some cleanups * Revert "#44 Some cleanups" This reverts commit 2702c338c8bdaa5ef2128000e26f1a8496baf34a. * #44 Some cleanups * #44 Some cleanups * #44 Some cleanups * #44 Fix typo * #44 Fix markdown formatting * #44 Remove line numbers from code snippets --------- Co-authored-by: Cliff Click <cliffc@acm.org>
Diffstat (limited to 'chapter07/docs/07-graph3.svg')
-rw-r--r--chapter07/docs/07-graph3.svg373
1 files changed, 373 insertions, 0 deletions
diff --git a/chapter07/docs/07-graph3.svg b/chapter07/docs/07-graph3.svg
new file mode 100644
index 00000000..a9a0e8d0
--- /dev/null
+++ b/chapter07/docs/07-graph3.svg
@@ -0,0 +1,373 @@
+<?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: chapter07 Pages: 1 -->
+<svg width="462pt" height="592pt"
+ viewBox="0.00 0.00 462.00 592.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 588)">
+<title>chapter07</title>
+<polygon fill="white" stroke="transparent" points="-4,4 -4,-588 458,-588 458,4 -4,4"/>
+<g id="clust1" class="cluster">
+<title>cluster_Nodes</title>
+<polygon fill="none" stroke="black" points="8,-8 8,-576 446,-576 446,-8 8,-8"/>
+</g>
+<!-- Start2 -->
+<g id="node1" class="node">
+<title>Start2</title>
+<polygon fill="yellow" stroke="transparent" points="148,-539 148,-564 229,-564 229,-539 148,-539"/>
+<polygon fill="none" stroke="black" points="148,-539 148,-564 229,-564 229,-539 148,-539"/>
+<text text-anchor="start" x="170" y="-547.8" font-family="Times,serif" font-size="14.00">Start</text>
+<polygon fill="none" stroke="black" points="148,-508 148,-539 229,-539 229,-508 148,-508"/>
+<polygon fill="yellow" stroke="transparent" points="153,-513 153,-534 193,-534 193,-513 153,-513"/>
+<polygon fill="none" stroke="black" points="153,-513 153,-534 193,-534 193,-513 153,-513"/>
+<text text-anchor="start" x="156" y="-519.8" font-family="Times,serif" font-size="14.00">$ctrl</text>
+<polygon fill="none" stroke="black" points="193,-513 193,-534 224,-534 224,-513 193,-513"/>
+<text text-anchor="start" x="196" y="-519.8" font-family="Times,serif" font-size="14.00">arg</text>
+</g>
+<!-- Stop3 -->
+<g id="node2" class="node">
+<title>Stop3</title>
+<polygon fill="yellow" stroke="black" points="432,-152 378,-152 378,-116 432,-116 432,-152"/>
+<text text-anchor="middle" x="405" y="-130.3" font-family="Times,serif" font-size="14.00">Stop</text>
+</g>
+<!-- Return35 -->
+<g id="node21" class="node">
+<title>Return35</title>
+<polygon fill="yellow" stroke="black" points="438,-224 372,-224 372,-188 438,-188 438,-224"/>
+<text text-anchor="middle" x="405" y="-202.3" font-family="Times,serif" font-size="14.00">Return</text>
+</g>
+<!-- Stop3&#45;&gt;Return35 -->
+<g id="edge1" class="edge">
+<title>Stop3&#45;&gt;Return35</title>
+<path fill="none" stroke="red" d="M405,-152.3C405,-160.02 405,-169.29 405,-177.89"/>
+<polygon fill="red" stroke="red" points="401.5,-177.9 405,-187.9 408.5,-177.9 401.5,-177.9"/>
+<text text-anchor="middle" x="402" y="-154.9" font-family="Helvetica,sans-Serif" font-size="8.00">0</text>
+</g>
+<!-- Con_6 -->
+<g id="node3" class="node">
+<title>Con_6</title>
+<ellipse fill="none" stroke="black" cx="94" cy="-536" rx="27" ry="18"/>
+<text text-anchor="middle" x="94" y="-532.3" font-family="Times,serif" font-size="14.00">0</text>
+</g>
+<!-- Con_7 -->
+<g id="node4" class="node">
+<title>Con_7</title>
+<ellipse fill="none" stroke="black" cx="282" cy="-536" rx="27" ry="18"/>
+<text text-anchor="middle" x="282" y="-532.3" font-family="Times,serif" font-size="14.00">0</text>
+</g>
+<!-- Loop8 -->
+<g id="node5" class="node">
+<title>Loop8</title>
+<polygon fill="yellow" stroke="black" points="426,-468 372,-468 372,-432 426,-432 426,-468"/>
+<text text-anchor="middle" x="399" y="-446.3" font-family="Times,serif" font-size="14.00">Loop</text>
+</g>
+<!-- Loop8&#45;&gt;Start2 -->
+<g id="edge2" class="edge">
+<title>Loop8&#45;&gt;Start2:p0</title>
+<path fill="none" stroke="red" d="M371.74,-464.61C368.82,-465.84 365.87,-467 363,-468 325.58,-481 197.82,-470.79 176.14,-502.03"/>
+<polygon fill="red" stroke="red" points="172.67,-501.41 173,-512 179.34,-503.51 172.67,-501.41"/>
+<text text-anchor="middle" x="368.74" y="-458.21" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- If28 -->
+<g id="node17" class="node">
+<title>If28</title>
+<polygon fill="yellow" stroke="transparent" points="142,-51 142,-76 236,-76 236,-51 142,-51"/>
+<polygon fill="none" stroke="black" points="142,-51 142,-76 236,-76 236,-51 142,-51"/>
+<text text-anchor="start" x="183.5" y="-59.8" font-family="Times,serif" font-size="14.00">If</text>
+<polygon fill="none" stroke="black" points="142,-20 142,-51 236,-51 236,-20 142,-20"/>
+<polygon fill="yellow" stroke="transparent" points="147,-25 147,-46 187,-46 187,-25 147,-25"/>
+<polygon fill="none" stroke="black" points="147,-25 147,-46 187,-46 187,-25 147,-25"/>
+<text text-anchor="start" x="150" y="-31.8" font-family="Times,serif" font-size="14.00">True</text>
+<polygon fill="yellow" stroke="transparent" points="187,-25 187,-46 231,-46 231,-25 187,-25"/>
+<polygon fill="none" stroke="black" points="187,-25 187,-46 231,-46 231,-25 187,-25"/>
+<text text-anchor="start" x="190" y="-31.8" font-family="Times,serif" font-size="14.00">False</text>
+</g>
+<!-- Loop8&#45;&gt;If28 -->
+<g id="edge3" class="edge">
+<title>Loop8&#45;&gt;If28:p1</title>
+<path fill="none" stroke="red" d="M371.72,-435.44C368.81,-434.2 365.86,-433.02 363,-432 300.87,-409.81 259.6,-448 219,-396 176.78,-341.93 243.11,-308.12 292,-260 311.77,-240.54 330.24,-248.63 343,-224 350.36,-209.79 353.65,-199.94 343,-188 248.88,-82.54 121.12,-257.46 27,-152 16.35,-140.06 16.65,-128.2 27,-116 90.22,-41.43 180.78,-154.57 244,-80 259.81,-61.35 261.04,-42.53 244,-25 236.29,-17.07 221.85,-12.04 214.15,-15.39"/>
+<polygon fill="red" stroke="red" points="211.13,-13.62 209,-24 217.14,-17.22 211.13,-13.62"/>
+<text text-anchor="middle" x="368.72" y="-429.04" font-family="Helvetica,sans-Serif" font-size="8.00">2</text>
+</g>
+<!-- Phi_sum11 -->
+<g id="node6" class="node">
+<title>Phi_sum11</title>
+<ellipse fill="lightyellow" stroke="black" cx="149" cy="-450" rx="40.89" ry="18"/>
+<text text-anchor="middle" x="149" y="-446.3" font-family="Times,serif" font-size="14.00">φ_sum</text>
+</g>
+<!-- Phi_sum11&#45;&gt;Con_6 -->
+<g id="edge5" class="edge">
+<title>Phi_sum11&#45;&gt;Con_6</title>
+<path fill="none" stroke="black" d="M138.13,-467.6C130.07,-479.91 118.95,-496.89 109.89,-510.73"/>
+<polygon fill="black" stroke="black" points="106.84,-509.01 104.29,-519.29 112.69,-512.84 106.84,-509.01"/>
+<text text-anchor="middle" x="135.13" y="-470.2" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- Phi_sum11&#45;&gt;Loop8 -->
+<g id="edge4" class="edge">
+<title>Phi_sum11&#45;&gt;Loop8</title>
+<path fill="none" stroke="black" stroke-dasharray="1,5" d="M173.66,-435.44C188.78,-427.38 208.85,-418.16 228,-414 282.73,-402.12 301.16,-395.46 354,-414 361.14,-416.5 367.99,-420.67 374.09,-425.3"/>
+<polygon fill="black" stroke="black" points="371.99,-428.1 381.92,-431.78 376.45,-422.71 371.99,-428.1"/>
+<text text-anchor="middle" x="170.66" y="-429.04" font-family="Helvetica,sans-Serif" font-size="8.00">0</text>
+</g>
+<!-- Phi_sum24 -->
+<g id="node14" class="node">
+<title>Phi_sum24</title>
+<ellipse fill="lightyellow" stroke="black" cx="149" cy="-206" rx="40.89" ry="18"/>
+<text text-anchor="middle" x="149" y="-202.3" font-family="Times,serif" font-size="14.00">φ_sum</text>
+</g>
+<!-- Phi_i12 -->
+<g id="node7" class="node">
+<title>Phi_i12</title>
+<ellipse fill="lightyellow" stroke="black" cx="255" cy="-450" rx="27" ry="18"/>
+<text text-anchor="middle" x="255" y="-446.3" font-family="Times,serif" font-size="14.00">φ_i</text>
+</g>
+<!-- Phi_i12&#45;&gt;Con_7 -->
+<g id="edge8" class="edge">
+<title>Phi_i12&#45;&gt;Con_7</title>
+<path fill="none" stroke="black" d="M260.46,-468C264.22,-479.69 269.28,-495.44 273.56,-508.73"/>
+<polygon fill="black" stroke="black" points="270.24,-509.86 276.64,-518.31 276.91,-507.72 270.24,-509.86"/>
+<text text-anchor="middle" x="257.46" y="-470.6" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- Phi_i12&#45;&gt;Loop8 -->
+<g id="edge7" class="edge">
+<title>Phi_i12&#45;&gt;Loop8</title>
+<path fill="none" stroke="black" stroke-dasharray="1,5" d="M269.22,-434.43C277.37,-426.68 288.29,-418.11 300,-414 322.65,-406.06 331.35,-406.06 354,-414 361.14,-416.5 367.99,-420.67 374.09,-425.3"/>
+<polygon fill="black" stroke="black" points="371.99,-428.1 381.92,-431.78 376.45,-422.71 371.99,-428.1"/>
+<text text-anchor="middle" x="266.22" y="-428.03" font-family="Helvetica,sans-Serif" font-size="8.00">0</text>
+</g>
+<!-- Add19 -->
+<g id="node11" class="node">
+<title>Add19</title>
+<ellipse fill="none" stroke="black" cx="327" cy="-378" rx="27" ry="18"/>
+<text text-anchor="middle" x="327" y="-374.3" font-family="Times,serif" font-size="14.00">+</text>
+</g>
+<!-- LT13 -->
+<g id="node8" class="node">
+<title>LT13</title>
+<ellipse fill="none" stroke="black" cx="255" cy="-378" rx="27" ry="18"/>
+<text text-anchor="middle" x="255" y="-374.3" font-family="Times,serif" font-size="14.00">&lt;</text>
+</g>
+<!-- LT13&#45;&gt;Start2 -->
+<g id="edge11" class="edge">
+<title>LT13&#45;&gt;Start2:p1</title>
+<path fill="none" stroke="black" d="M241.85,-394.14C233.87,-404.19 224.26,-418.05 219,-432 207.64,-462.12 208.62,-473.77 208.94,-501.81"/>
+<polygon fill="black" stroke="black" points="205.44,-502.02 209,-512 212.44,-501.98 205.44,-502.02"/>
+<text text-anchor="middle" x="238.85" y="-396.74" font-family="Helvetica,sans-Serif" font-size="8.00">2</text>
+</g>
+<!-- LT13&#45;&gt;Phi_i12 -->
+<g id="edge10" class="edge">
+<title>LT13&#45;&gt;Phi_i12</title>
+<path fill="none" stroke="black" d="M255,-396.3C255,-404.02 255,-413.29 255,-421.89"/>
+<polygon fill="black" stroke="black" points="251.5,-421.9 255,-431.9 258.5,-421.9 251.5,-421.9"/>
+<text text-anchor="middle" x="252" y="-398.9" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- If14 -->
+<g id="node9" class="node">
+<title>If14</title>
+<polygon fill="yellow" stroke="transparent" points="309,-295 309,-320 403,-320 403,-295 309,-295"/>
+<polygon fill="none" stroke="black" points="309,-295 309,-320 403,-320 403,-295 309,-295"/>
+<text text-anchor="start" x="350.5" y="-303.8" font-family="Times,serif" font-size="14.00">If</text>
+<polygon fill="none" stroke="black" points="309,-264 309,-295 403,-295 403,-264 309,-264"/>
+<polygon fill="yellow" stroke="transparent" points="314,-269 314,-290 354,-290 354,-269 314,-269"/>
+<polygon fill="none" stroke="black" points="314,-269 314,-290 354,-290 354,-269 314,-269"/>
+<text text-anchor="start" x="317" y="-275.8" font-family="Times,serif" font-size="14.00">True</text>
+<polygon fill="yellow" stroke="transparent" points="354,-269 354,-290 398,-290 398,-269 354,-269"/>
+<polygon fill="none" stroke="black" points="354,-269 354,-290 398,-290 398,-269 354,-269"/>
+<text text-anchor="start" x="357" y="-275.8" font-family="Times,serif" font-size="14.00">False</text>
+</g>
+<!-- If14&#45;&gt;Loop8 -->
+<g id="edge12" class="edge">
+<title>If14&#45;&gt;Loop8</title>
+<path fill="none" stroke="red" d="M364.6,-324.19C372.47,-352.77 384.02,-394.64 391.52,-421.86"/>
+<polygon fill="red" stroke="red" points="388.24,-423.15 394.27,-431.86 394.99,-421.29 388.24,-423.15"/>
+<text text-anchor="middle" x="361.6" y="-326.79" font-family="Helvetica,sans-Serif" font-size="8.00">0</text>
+</g>
+<!-- If14&#45;&gt;LT13 -->
+<g id="edge13" class="edge">
+<title>If14&#45;&gt;LT13</title>
+<path fill="none" stroke="black" d="M318.68,-324.04C305.44,-335.05 290.9,-347.14 279.06,-356.99"/>
+<polygon fill="black" stroke="black" points="276.79,-354.32 271.34,-363.41 281.27,-359.7 276.79,-354.32"/>
+<text text-anchor="middle" x="315.68" y="-326.64" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- Con_18 -->
+<g id="node10" class="node">
+<title>Con_18</title>
+<ellipse fill="none" stroke="black" cx="327" cy="-450" rx="27" ry="18"/>
+<text text-anchor="middle" x="327" y="-446.3" font-family="Times,serif" font-size="14.00">1</text>
+</g>
+<!-- Add19&#45;&gt;Phi_i12 -->
+<g id="edge14" class="edge">
+<title>Add19&#45;&gt;Phi_i12</title>
+<path fill="none" stroke="black" d="M304.96,-400.43C296.13,-409.01 285.99,-418.87 277.15,-427.46"/>
+<polygon fill="black" stroke="black" points="307.7,-402.65 312.43,-393.17 302.82,-397.63 307.7,-402.65"/>
+<polygon fill="black" stroke="black" points="274.53,-425.13 269.8,-434.62 279.41,-430.15 274.53,-425.13"/>
+<text text-anchor="middle" x="309.43" y="-395.77" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- Add19&#45;&gt;Con_18 -->
+<g id="edge15" class="edge">
+<title>Add19&#45;&gt;Con_18</title>
+<path fill="none" stroke="black" d="M327,-396.3C327,-404.02 327,-413.29 327,-421.89"/>
+<polygon fill="black" stroke="black" points="323.5,-421.9 327,-431.9 330.5,-421.9 323.5,-421.9"/>
+<text text-anchor="middle" x="324" y="-398.9" font-family="Helvetica,sans-Serif" font-size="8.00">2</text>
+</g>
+<!-- Con_20 -->
+<g id="node12" class="node">
+<title>Con_20</title>
+<ellipse fill="none" stroke="black" cx="63" cy="-292" rx="27" ry="18"/>
+<text text-anchor="middle" x="63" y="-288.3" font-family="Times,serif" font-size="14.00">0</text>
+</g>
+<!-- Loop21 -->
+<g id="node13" class="node">
+<title>Loop21</title>
+<polygon fill="yellow" stroke="black" points="334,-224 280,-224 280,-188 334,-188 334,-224"/>
+<text text-anchor="middle" x="307" y="-202.3" font-family="Times,serif" font-size="14.00">Loop</text>
+</g>
+<!-- Loop21&#45;&gt;If14 -->
+<g id="edge16" class="edge">
+<title>Loop21&#45;&gt;If14:p0</title>
+<path fill="none" stroke="red" d="M319.08,-224C324.75,-233.3 330.76,-245.44 333.05,-257.94"/>
+<polygon fill="red" stroke="red" points="329.57,-258.38 334,-268 336.54,-257.71 329.57,-258.38"/>
+<text text-anchor="middle" x="316.08" y="-226.6" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- Loop21&#45;&gt;If28 -->
+<g id="edge17" class="edge">
+<title>Loop21&#45;&gt;If28:p0</title>
+<path fill="none" stroke="red" d="M279.81,-191.15C276.88,-189.96 273.91,-188.88 271,-188 218.54,-172.13 62.82,-193.49 27,-152 -19.29,-98.38 63.73,-40.46 135.9,-35.36"/>
+<polygon fill="red" stroke="red" points="136.13,-38.86 146,-35 135.88,-31.86 136.13,-38.86"/>
+<text text-anchor="middle" x="276.81" y="-184.75" font-family="Helvetica,sans-Serif" font-size="8.00">2</text>
+</g>
+<!-- Phi_sum24&#45;&gt;Phi_sum11 -->
+<g id="edge19" class="edge">
+<title>Phi_sum24&#45;&gt;Phi_sum11</title>
+<path fill="none" stroke="black" d="M149,-234.1C149,-280.5 149,-374.66 149,-421.4"/>
+<polygon fill="black" stroke="black" points="152.5,-234.02 149,-224.02 145.5,-234.02 152.5,-234.02"/>
+<polygon fill="black" stroke="black" points="145.5,-421.68 149,-431.68 152.5,-421.68 145.5,-421.68"/>
+<text text-anchor="middle" x="146" y="-226.62" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- Phi_sum24&#45;&gt;Loop21 -->
+<g id="edge18" class="edge">
+<title>Phi_sum24&#45;&gt;Loop21</title>
+<path fill="none" stroke="black" stroke-dasharray="1,5" d="M168.72,-190.18C179.62,-182.46 193.79,-173.99 208,-170 231.11,-163.51 239.35,-162.06 262,-170 269.14,-172.5 275.99,-176.67 282.09,-181.3"/>
+<polygon fill="black" stroke="black" points="279.99,-184.1 289.92,-187.78 284.45,-178.71 279.99,-184.1"/>
+<text text-anchor="middle" x="165.72" y="-183.78" font-family="Helvetica,sans-Serif" font-size="8.00">0</text>
+</g>
+<!-- Add32 -->
+<g id="node18" class="node">
+<title>Add32</title>
+<ellipse fill="none" stroke="black" cx="142" cy="-134" rx="27" ry="18"/>
+<text text-anchor="middle" x="142" y="-130.3" font-family="Times,serif" font-size="14.00">+</text>
+</g>
+<!-- Phi_j26 -->
+<g id="node15" class="node">
+<title>Phi_j26</title>
+<ellipse fill="lightyellow" stroke="black" cx="63" cy="-206" rx="27" ry="18"/>
+<text text-anchor="middle" x="63" y="-202.3" font-family="Times,serif" font-size="14.00">φ_j</text>
+</g>
+<!-- Phi_j26&#45;&gt;Con_20 -->
+<g id="edge22" class="edge">
+<title>Phi_j26&#45;&gt;Con_20</title>
+<path fill="none" stroke="black" d="M63,-224.4C63,-235.74 63,-250.77 63,-263.68"/>
+<polygon fill="black" stroke="black" points="59.5,-263.9 63,-273.9 66.5,-263.9 59.5,-263.9"/>
+<text text-anchor="middle" x="60" y="-227" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- Phi_j26&#45;&gt;Loop21 -->
+<g id="edge21" class="edge">
+<title>Phi_j26&#45;&gt;Loop21</title>
+<path fill="none" stroke="black" stroke-dasharray="1,5" d="M77.22,-190.43C85.37,-182.68 96.29,-174.11 108,-170 172.59,-147.34 197.41,-147.34 262,-170 269.14,-172.5 275.99,-176.67 282.09,-181.3"/>
+<polygon fill="black" stroke="black" points="279.99,-184.1 289.92,-187.78 284.45,-178.71 279.99,-184.1"/>
+<text text-anchor="middle" x="74.22" y="-184.03" font-family="Helvetica,sans-Serif" font-size="8.00">0</text>
+</g>
+<!-- Add34 -->
+<g id="node20" class="node">
+<title>Add34</title>
+<ellipse fill="none" stroke="black" cx="225" cy="-134" rx="27" ry="18"/>
+<text text-anchor="middle" x="225" y="-130.3" font-family="Times,serif" font-size="14.00">+</text>
+</g>
+<!-- LT27 -->
+<g id="node16" class="node">
+<title>LT27</title>
+<ellipse fill="none" stroke="black" cx="63" cy="-134" rx="27" ry="18"/>
+<text text-anchor="middle" x="63" y="-130.3" font-family="Times,serif" font-size="14.00">&lt;</text>
+</g>
+<!-- LT27&#45;&gt;Start2 -->
+<g id="edge25" class="edge">
+<title>LT27&#45;&gt;Start2:p1</title>
+<path fill="none" stroke="black" d="M49.72,-150.09C41.69,-160.12 32.07,-173.98 27,-188 11.37,-231.26 17,-245.01 17,-291 17,-291 17,-291 17,-379 17,-432.79 54.71,-437.48 99,-468 139.14,-495.66 199.24,-464.69 207.94,-501.72"/>
+<polygon fill="black" stroke="black" points="204.49,-502.41 209,-512 211.45,-501.69 204.49,-502.41"/>
+<text text-anchor="middle" x="46.72" y="-152.69" font-family="Helvetica,sans-Serif" font-size="8.00">2</text>
+</g>
+<!-- LT27&#45;&gt;Phi_j26 -->
+<g id="edge24" class="edge">
+<title>LT27&#45;&gt;Phi_j26</title>
+<path fill="none" stroke="black" d="M63,-152.3C63,-160.02 63,-169.29 63,-177.89"/>
+<polygon fill="black" stroke="black" points="59.5,-177.9 63,-187.9 66.5,-177.9 59.5,-177.9"/>
+<text text-anchor="middle" x="60" y="-154.9" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- If28&#45;&gt;Loop21 -->
+<g id="edge26" class="edge">
+<title>If28&#45;&gt;Loop21</title>
+<path fill="none" stroke="red" d="M227.35,-80.17C239.01,-90.79 251.3,-103.21 261,-116 275.71,-135.38 288.07,-160.15 296.27,-178.63"/>
+<polygon fill="red" stroke="red" points="293.1,-180.12 300.27,-187.92 299.53,-177.35 293.1,-180.12"/>
+<text text-anchor="middle" x="224.35" y="-82.77" font-family="Helvetica,sans-Serif" font-size="8.00">0</text>
+</g>
+<!-- If28&#45;&gt;LT27 -->
+<g id="edge27" class="edge">
+<title>If28&#45;&gt;LT27</title>
+<path fill="none" stroke="black" d="M142.44,-80.04C124.74,-91.84 105.18,-104.88 89.9,-115.07"/>
+<polygon fill="black" stroke="black" points="87.82,-112.24 81.44,-120.7 91.71,-118.07 87.82,-112.24"/>
+<text text-anchor="middle" x="139.44" y="-82.64" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- Add32&#45;&gt;Phi_sum24 -->
+<g id="edge29" class="edge">
+<title>Add32&#45;&gt;Phi_sum24</title>
+<path fill="none" stroke="black" d="M144.73,-162.33C145.24,-167.45 145.78,-172.79 146.29,-177.9"/>
+<polygon fill="black" stroke="black" points="148.21,-161.91 143.73,-152.3 141.24,-162.6 148.21,-161.91"/>
+<polygon fill="black" stroke="black" points="142.81,-178.29 147.29,-187.9 149.78,-177.6 142.81,-178.29"/>
+<text text-anchor="middle" x="140.73" y="-154.9" font-family="Helvetica,sans-Serif" font-size="8.00">2</text>
+</g>
+<!-- Add32&#45;&gt;Phi_j26 -->
+<g id="edge28" class="edge">
+<title>Add32&#45;&gt;Phi_j26</title>
+<path fill="none" stroke="black" d="M126.39,-148.83C114.92,-158.99 99.15,-172.97 86.21,-184.44"/>
+<polygon fill="black" stroke="black" points="83.74,-181.95 78.58,-191.2 88.38,-187.19 83.74,-181.95"/>
+<text text-anchor="middle" x="123.39" y="-151.43" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- Con_33 -->
+<g id="node19" class="node">
+<title>Con_33</title>
+<ellipse fill="none" stroke="black" cx="235" cy="-206" rx="27" ry="18"/>
+<text text-anchor="middle" x="235" y="-202.3" font-family="Times,serif" font-size="14.00">1</text>
+</g>
+<!-- Add34&#45;&gt;Phi_j26 -->
+<g id="edge30" class="edge">
+<title>Add34&#45;&gt;Phi_j26</title>
+<path fill="none" stroke="black" d="M193.01,-148.01C167.45,-158.51 130.76,-173.83 99,-188 97.2,-188.8 95.36,-189.64 93.5,-190.49"/>
+<polygon fill="black" stroke="black" points="194.64,-151.12 202.57,-144.09 191.99,-144.65 194.64,-151.12"/>
+<polygon fill="black" stroke="black" points="91.85,-187.39 84.25,-194.78 94.79,-193.74 91.85,-187.39"/>
+<text text-anchor="middle" x="199.57" y="-146.69" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- Add34&#45;&gt;Con_33 -->
+<g id="edge31" class="edge">
+<title>Add34&#45;&gt;Con_33</title>
+<path fill="none" stroke="black" d="M227.42,-151.95C228.52,-159.65 229.85,-168.97 231.09,-177.64"/>
+<polygon fill="black" stroke="black" points="227.65,-178.32 232.53,-187.72 234.58,-177.33 227.65,-178.32"/>
+<text text-anchor="middle" x="224.42" y="-154.55" font-family="Helvetica,sans-Serif" font-size="8.00">2</text>
+</g>
+<!-- Return35&#45;&gt;Phi_sum11 -->
+<g id="edge33" class="edge">
+<title>Return35&#45;&gt;Phi_sum11</title>
+<path fill="none" stroke="black" d="M371.93,-220.42C343.47,-232.34 305.01,-249.46 292,-260 233.39,-307.47 185.4,-383.86 162.87,-423.42"/>
+<polygon fill="black" stroke="black" points="159.79,-421.75 157.95,-432.19 165.89,-425.18 159.79,-421.75"/>
+<text text-anchor="middle" x="368.93" y="-214.02" font-family="Helvetica,sans-Serif" font-size="8.00">1</text>
+</g>
+<!-- Return35&#45;&gt;If14 -->
+<g id="edge32" class="edge">
+<title>Return35&#45;&gt;If14:p1</title>
+<path fill="none" stroke="red" d="M391.86,-224.13C385.8,-233.37 379.43,-245.41 377.01,-257.92"/>
+<polygon fill="red" stroke="red" points="373.52,-257.7 376,-268 380.48,-258.4 373.52,-257.7"/>
+<text text-anchor="middle" x="388.86" y="-226.73" font-family="Helvetica,sans-Serif" font-size="8.00">0</text>
+</g>
+</g>
+</svg>