-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfind.xml
More file actions
160 lines (160 loc) · 7.39 KB
/
find.xml
File metadata and controls
160 lines (160 loc) · 7.39 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
"<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="array_declaration" id="KAB`9k}EVl-,i]9Lf:Os" x="-458" y="-364">
<field name="type">int</field>
<field name="array_name">arrayGlobal</field>
<field name="array_dimensions">[100]</field>
<next>
<block type="function" id="h^fK%.$m^3SC+D;$r[7i">
<field name="type">int</field>
<field name="function_name">Find</field>
<value name="function_parameters">
<block type="parameters_input" id="v]Ml`]H!7GLwbwmz7`xR">
<statement name="parameters">
<block type="function_parameter" id="J%u7H.M8!XSWe|IyJPd0">
<field name="type">int</field>
<field name="value_name">num</field>
<next>
<block type="function_parameter" id="^(7b.mr9He~-p6OPN~`/">
<field name="type">int</field>
<field name="value_name">size</field>
</block>
</next>
</block>
</statement>
</block>
</value>
<statement name="function_block">
<block type="var_declaration" id="]1vL)kU$6yT{}*DW/$D1">
<field name="type">int</field>
<field name="var_name">i</field>
<value name="var_value">
<block type="int_constant" id="3-iF;lv3?y6u=B/3?3ns">
<field name="int_constant">0</field>
</block>
</value>
<next>
<block type="for_loop" id="QSj|95ypD5H.^4b3-Gp_">
<field name="for_expression">i < size</field>
<field name="for_increment">i = i +1</field>
<statement name="for_block">
<block type="if" id="p6g~wj)%IRTR@aI8wa$S">
<value name="if_statement">
<block type="expression" id="NMXY^g!Gv+5NEopiwX0*">
<field name="operator">==</field>
<value name="left_operand">
<block type="array_access" id="G=v9t`aSm(AJ66+5hV{t">
<field name="array_name">arrayGlobal</field>
<field name="array_indexes">[i]</field>
</block>
</value>
<value name="right_operand">
<block type="var_access" id="1CDA*$B7Hhi@Rd4?kh2U">
<field name="var_name">num</field>
</block>
</value>
</block>
</value>
<statement name="if_block">
<block type="return" id="e:|(2/@AL-@FoTf=Yq+H">
<value name="return">
<block type="var_access" id="+G)Yr/E@?aMDTr9tk8BR">
<field name="var_name">i</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
<next>
<block type="return" id="k:ldLRvX8=GEl(`+em?|">
<value name="return">
<block type="int_constant" id="K~hY01B5hekn}.:V]_XW">
<field name="int_constant">-1</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="main" id="*`p#{+xHc_#AvJ!!5/G1">
<statement name="main_block">
<block type="var_declaration" id="bEU+`=WzLFjcyZ~EZ%r)">
<field name="type">int</field>
<field name="var_name">i</field>
<value name="var_value">
<block type="int_constant" id="*Z=NDmRdO6h6|WtGIg8[">
<field name="int_constant">99</field>
</block>
</value>
<next>
<block type="var_declaration" id="Z~S%qWm__fs6K7?jdgBV">
<field name="type">int</field>
<field name="var_name">j</field>
<value name="var_value">
<block type="int_constant" id="hvzahl;mK_S@t;(DIwh?">
<field name="int_constant">0</field>
</block>
</value>
<next>
<block type="for_loop" id="O:(;,KnNV0w6w[-%BPjH">
<field name="for_expression">i > -1</field>
<field name="for_increment">i = i - 1</field>
<statement name="for_block">
<block type="array_assign" id=")DaX]n|D`fpWA/k+${x+">
<field name="array_name">arrayGlobal</field>
<field name="array_indexes">[i]</field>
<value name="array_value">
<block type="var_access" id="gs[2q80mq)-AN@+:O}8m">
<field name="var_name">j</field>
</block>
</value>
<next>
<block type="var_assign" id="zrP93q.?mptaHQB%e$E]">
<field name="var_name">j</field>
<value name="var_value">
<block type="var_access" id="Cc1GT(9v+@YRzS/}BjN+">
<field name="var_name">j + 1</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="console" id="-7:h},B^3.Aqs42Ao7Tg">
<value name="console_expression">
<block type="function_call" id="]s~/;hJUFf-]@~M501jV">
<field name="function_name">Find</field>
<value name="parameters_in">
<block type="parameters_input" id="w]z-c[VnkLD.Zr[hG~Ic">
<statement name="parameters">
<block type="var_access_list" id="@$as?gdeO*o0W.?Mijxx">
<field name="variable_name">20</field>
<next>
<block type="var_access_list" id="E$lp=N$%CFk_g??p*E$H">
<field name="variable_name">100</field>
</block>
</next>
</block>
</statement>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</xml>"