-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.xml
84 lines (81 loc) · 2.19 KB
/
example.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<program version="8">
<subroutine name="isEven">
<argument name="i" type="uint64" />
<returns type="uint64" />
<body>
<subroutine-return>
<equal>
<mod>
<variable-get name="i" />
<int value="2" />
</mod>
<int value="0" />
</equal>
</subroutine-return>
</body>
</subroutine>
<main>
<if>
<condition>
<int value="1" />
</condition>
<then>
<log>
<bytes value="true" format="utf-8" />
</log>
</then>
<else>
<log>
<bytes value="false" format="utf-8" />
</log>
</else>
</if>
<match>
<value>
<int value="0" />
</value>
<case>
<value>
<int value="0" />
</value>
<body>
<log>
<bytes value="zero" format="utf-8" />
</log>
</body>
</case>
<case>
<value>
<int value="1" />
</value>
<body>
<log>
<bytes value="one" format="utf-8" />
</log>
</body>
</case>
<default-case>
<log>
<bytes value="default" format="utf-8" />
</log>
</default-case>
</match>
<loop>
<condition>
<int value="1" />
</condition>
<body>
<log>
<bytes value="loop body" format="utf-8" />
</log>
</body>
</loop>
<program-return>
<subroutine-call name="isEven">
<argument>
<int value="18" />
</argument>
</subroutine-call>
</program-return>
</main>
</program>