summaryrefslogtreecommitdiff
path: root/src/Grasp/Examples/call_ret.grasp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Grasp/Examples/call_ret.grasp')
-rw-r--r--src/Grasp/Examples/call_ret.grasp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Grasp/Examples/call_ret.grasp b/src/Grasp/Examples/call_ret.grasp
new file mode 100644
index 0000000..a27286e
--- /dev/null
+++ b/src/Grasp/Examples/call_ret.grasp
@@ -0,0 +1,19 @@
+digraph {
+ 1 [label="call"]
+ 2 [label="puts"]
+ 3 [label="grasp:main"]
+ 4 [label="myfunc"]
+ 5 [label="failure"]
+ 6 [label="set"]
+ 7 [label="success"]
+ 8 [label="ret"]
+
+ 1 -> 3 [label="name"]
+ 1 -> 2 [label="next"]
+ 1 -> 4 [label="func"]
+ 6 -> 4 [label="name"]
+ 6 -> 8 [label="next"]
+ 6 -> 7 [label="in"]
+ 2 -> 5 [label="in"]
+ 1 -> 5 [label="out"]
+} \ No newline at end of file