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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
|
open Ir
let remap_register_reg sb r =
try
Hashtbl.find sb r
with Not_found ->
r
let remap_register_expr sb = function
| E_Reg r -> E_Reg (remap_register_reg sb r)
| e -> e
let remap_register_instr sb = function
| I_Add (r0, r1, r2) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_Add (r0, r1, r2)
| I_Sub (r0, r1, r2) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_Sub (r0, r1, r2)
| I_Div (r0, r1, r2) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_Div (r0, r1, r2)
| I_Rem (r0, r1, r2) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_Rem (r0, r1, r2)
| I_Mul(r0, r1, r2) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_Mul (r0, r1, r2)
| I_And(r0, r1, r2) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_And(r0, r1, r2)
| I_Or(r0, r1, r2) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_Or(r0, r1, r2)
| I_Xor(r0, r1, r2) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_Xor(r0, r1, r2)
| I_LoadArray(r0, r1, r2) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_LoadArray(r0, r1, r2)
| I_StoreArray(r0, r1, r2) ->
let r0 = remap_register_expr sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_StoreArray(r0, r1, r2)
| I_LoadMem(r0, r1, r2) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_LoadMem(r0, r1, r2)
| I_StoreMem(r0, r1, r2) ->
let r0 = remap_register_expr sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_StoreMem(r0, r1, r2)
| I_Concat(r0, r1, r2) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_Concat(r0, r1, r2)
| I_Neg(r0, r1) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
I_Neg(r0, r1)
| I_Not(r0, r1) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
I_Not(r0, r1)
| I_Move(r0, r1) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
I_Move(r0, r1)
| I_Length(r0, r1) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
I_Length(r0, r1)
| I_NewArray(r0, r1) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
I_NewArray(r0, r1)
| I_Set(r0, cond, r1, r2) ->
let r0 = remap_register_reg sb r0 in
let r1 = remap_register_expr sb r1 in
let r2 = remap_register_expr sb r2 in
I_Set(r0, cond, r1, r2)
| I_LoadVar(r0, i) ->
let r0 = remap_register_reg sb r0 in
I_LoadVar(r0, i)
| I_StoreVar(i, r0) ->
let r0 = remap_register_expr sb r0 in
I_StoreVar(i, r0)
| I_LoadStack(r0, i) ->
let r0 = remap_register_reg sb r0 in
I_LoadStack(r0, i)
| I_StoreStack(i, r0) ->
let r0 = remap_register_expr sb r0 in
I_StoreStack(i, r0)
| I_StackAlloc i ->
I_StackAlloc i
| I_StackFree i ->
I_StackFree i
| I_Use rs ->
I_Use (List.map (remap_register_reg sb) rs)
| I_Def rs ->
I_Def (List.map (remap_register_reg sb) rs)
| I_Call (rs, procid, args, kills) ->
let rs = List.map (remap_register_reg sb) rs in
let args = List.map (remap_register_expr sb) args in
let kills = List.map (remap_register_reg sb) kills in
I_Call (rs, procid, args, kills)
let subst_expr rmap = function
| (E_Reg r) as e ->
begin match RegMap.find_opt r rmap with
| None -> e
| Some e -> e
end
| e -> e
let subst_expr_instr sb = function
| I_Add (r0, r1, r2) ->
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_Add (r0, r1, r2)
| I_Sub (r0, r1, r2) ->
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_Sub (r0, r1, r2)
| I_Div (r0, r1, r2) ->
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_Div (r0, r1, r2)
| I_Rem (r0, r1, r2) ->
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_Rem (r0, r1, r2)
| I_Mul(r0, r1, r2) ->
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_Mul (r0, r1, r2)
| I_And(r0, r1, r2) ->
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_And(r0, r1, r2)
| I_Or(r0, r1, r2) ->
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_Or(r0, r1, r2)
| I_Xor(r0, r1, r2) ->
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_Xor(r0, r1, r2)
| I_LoadArray(r0, r1, r2) ->
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_LoadArray(r0, r1, r2)
| I_StoreArray(r0, r1, r2) ->
let r0 = subst_expr sb r0 in
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_StoreArray(r0, r1, r2)
| I_LoadMem(r0, r1, r2) ->
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_LoadMem(r0, r1, r2)
| I_StoreMem(r0, r1, r2) ->
let r0 = subst_expr sb r0 in
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_StoreMem(r0, r1, r2)
| I_Concat(r0, r1, r2) ->
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_Concat(r0, r1, r2)
| I_Neg(r0, r1) ->
let r1 = subst_expr sb r1 in
I_Neg(r0, r1)
| I_Not(r0, r1) ->
let r1 = subst_expr sb r1 in
I_Not(r0, r1)
| I_Move(r0, r1) ->
let r1 = subst_expr sb r1 in
I_Move(r0, r1)
| I_Length(r0, r1) ->
let r1 = subst_expr sb r1 in
I_Length(r0, r1)
| I_NewArray(r0, r1) ->
let r1 = subst_expr sb r1 in
I_NewArray(r0, r1)
| I_Set(r0, cond, r1, r2) ->
let r1 = subst_expr sb r1 in
let r2 = subst_expr sb r2 in
I_Set(r0, cond, r1, r2)
| I_LoadVar(r0, i) ->
I_LoadVar(r0, i)
| I_StoreVar(i, r0) ->
let r0 = subst_expr sb r0 in
I_StoreVar(i, r0)
| I_LoadStack(r0, i) ->
I_LoadStack(r0, i)
| I_StoreStack(i, r0) ->
let r0 = subst_expr sb r0 in
I_StoreStack(i, r0)
| I_StackAlloc i ->
I_StackAlloc i
| I_StackFree i ->
I_StackFree i
| I_Use rs ->
I_Use rs
| I_Def rs ->
I_Def rs
| I_Call (rs, procid, args, kills) ->
let args = List.map (subst_expr sb) args in
I_Call (rs, procid, args, kills)
let remap_label_label sb l =
try
Hashtbl.find sb l
with Not_found ->
l
let remap_label_terminator sb = function
| T_Jump l ->
T_Jump (remap_label_label sb l)
| T_Branch (cond, r0, r1, lt, lf) ->
T_Branch (cond, r0, r1, remap_label_label sb lt, remap_label_label sb lf)
| t ->
t
let remap_register_terminator sb = function
| T_Return xs ->
let xs = List.map (remap_register_expr sb) xs in
T_Return xs
| T_Branch (cond, r0, r1, l1, l2) ->
let r0 = remap_register_expr sb r0 in
let r1 = remap_register_expr sb r1 in
T_Branch (cond, r0, r1, l1, l2)
| T_Jump l ->
T_Jump l
let subst_expr_terminator sb = function
| T_Return xs ->
let xs = List.map (subst_expr sb) xs in
T_Return xs
| T_Branch (cond, r0, r1, l1, l2) ->
let r0 = subst_expr sb r0 in
let r1 = subst_expr sb r1 in
T_Branch (cond, r0, r1, l1, l2)
| T_Jump l ->
T_Jump l
let defined_registers_instr = function
| I_Add (r0, _, _)
| I_Sub (r0, _, _)
| I_Div (r0, _, _)
| I_Mul (r0, _, _)
| I_And (r0, _, _)
| I_Or (r0, _, _)
| I_Xor (r0, _, _)
| I_LoadArray (r0, _, _)
| I_LoadMem (r0, _, _)
| I_Concat (r0, _, _)
| I_Not (r0, _)
| I_Move (r0, _)
| I_Length (r0, _)
| I_NewArray (r0, _)
| I_Neg (r0, _)
| I_Set (r0, _, _, _)
| I_Rem (r0, _, _)
| I_LoadStack (r0, _)
| I_LoadVar (r0, _) ->
[r0]
| I_Call (outs, _, _, kills) ->
outs @ kills
| I_Use _
| I_StoreVar _
| I_StoreStack _
| I_StackAlloc _
| I_StackFree _
| I_StoreMem _
| I_StoreArray _ ->
[]
| I_Def rs ->
rs
let defined_registers_terminator _ = []
let used_registers_instr = function
| I_Add (_, r0, r1)
| I_Sub (_, r0, r1)
| I_Div (_, r0, r1)
| I_Mul (_, r0, r1)
| I_And (_, r0, r1)
| I_Or (_, r0, r1)
| I_Xor (_, r0, r1)
| I_LoadArray (_, r0, r1)
| I_LoadMem (_, r0, r1)
| I_Concat (_, r0, r1)
| I_Set (_, _, r0, r1)
| I_Rem (_, r0, r1) ->
List.flatten @@ List.map reglist_of_expr [r0;r1]
| I_Not (_, r0)
| I_Move (_, r0)
| I_Length (_, r0)
| I_NewArray (_, r0)
| I_StoreVar (_, r0)
| I_StoreStack (_, r0)
| I_Neg (_, r0) ->
reglist_of_expr r0
| I_Call (_, _, args, _) ->
List.flatten @@ List.map reglist_of_expr args
| I_Def _
| I_StackAlloc _
| I_StackFree _
| I_LoadStack _
| I_LoadVar _ ->
[]
| I_StoreArray (r0, r1, r2)
| I_StoreMem (r0, r1, r2) ->
List.flatten @@ List.map reglist_of_expr [r0; r1; r2]
| I_Use rs ->
rs
let used_registers_terminator = function
| T_Branch (_, r0, r1, _, _) ->
List.flatten @@ List.map reglist_of_expr [r0;r1]
| T_Return args ->
List.flatten @@ List.map reglist_of_expr args
| T_Jump _ ->
[]
let remap_registers_proc sb proc =
let cfg = (cfg_of_procedure proc) in
let remap_block (l, body, terminator) =
let body = List.map (remap_register_instr sb) body in
let terminator = remap_register_terminator sb terminator in
(l, body, terminator)
in
let update_blocks (l, body, terminator) =
ControlFlowGraph.set_block2 cfg l body terminator
in
let blocks = ControlFlowGraph.blocklist2 cfg in
let blocks = List.map remap_block blocks in
List.iter update_blocks blocks
let string_of_expr = function
| E_Reg r -> string_of_reg r
| E_Int i -> Int32.to_string i
let string_of_label = function
| Label i -> Format.sprintf "L%u" i
let string_of_procid = function
| Procid l -> Format.sprintf "%s" l
let string_of_reglist xs =
Format.sprintf "[%s]" (String.concat ", " @@ List.map string_of_reg xs)
let string_of_labellist xs =
Format.sprintf "[%s]" (String.concat ", " @@ List.map string_of_label xs)
let string_of_exprlist xs =
Format.sprintf "[%s]" (String.concat ", " @@ List.map string_of_expr xs)
let string_of_expr_regmap k =
let f (k, v) = Format.sprintf "%s=%s" (string_of_reg k) (string_of_expr v) in
String.concat "; " @@ List.of_seq @@ Seq.map f @@ RegMap.to_seq k
let string_of_instr = function
| I_Add (r0, e0, e1) ->
Format.sprintf "add %s, %s, %s"
(string_of_reg r0)
(string_of_expr e0)
(string_of_expr e1)
| I_Sub (r0, e0, e1) ->
Format.sprintf "sub %s, %s, %s"
(string_of_reg r0)
(string_of_expr e0)
(string_of_expr e1)
| I_Div (r0, e0, e1) ->
Format.sprintf "div %s, %s, %s"
(string_of_reg r0)
(string_of_expr e0)
(string_of_expr e1)
| I_Rem (r0, e0, e1) ->
Format.sprintf "rem %s, %s, %s"
(string_of_reg r0)
(string_of_expr e0)
(string_of_expr e1)
| I_Mul (r0, e0, e1) ->
Format.sprintf "mul %s, %s, %s"
(string_of_reg r0)
(string_of_expr e0)
(string_of_expr e1)
| I_And (r0, e0, e1) ->
Format.sprintf "and %s, %s, %s"
(string_of_reg r0)
(string_of_expr e0)
(string_of_expr e1)
| I_Or (r0, e0, e1) ->
Format.sprintf "or %s, %s, %s"
(string_of_reg r0)
(string_of_expr e0)
(string_of_expr e1)
| I_Xor (r0, e0, e1) ->
Format.sprintf "xor %s, %s, %s"
(string_of_reg r0)
(string_of_expr e0)
(string_of_expr e1)
| I_LoadArray (r0, e0, e1) ->
Format.sprintf "loadarray %s, %s, %s // %s = %s[%s]"
(string_of_reg r0)
(string_of_expr e0)
(string_of_expr e1)
(string_of_reg r0)
(string_of_expr e0)
(string_of_expr e1)
| I_LoadMem (r0, e0, e1) ->
Format.sprintf "loadmem %s, %s, %s // %s = mem[%s + %s]"
(string_of_reg r0)
(string_of_expr e0)
(string_of_expr e1)
(string_of_reg r0)
(string_of_expr e0)
(string_of_expr e1)
| I_StoreArray (r0, e0, e1) ->
Format.sprintf "storearray %s, %s, %s // %s[%s] = %s"
(string_of_expr r0)
(string_of_expr e0)
(string_of_expr e1)
(string_of_expr r0)
(string_of_expr e0)
(string_of_expr e1)
| I_StoreMem (r0, e0, e1) ->
Format.sprintf "storemem %s, %s, %s // mem[%s + %s] = %s"
(string_of_expr r0)
(string_of_expr e0)
(string_of_expr e1)
(string_of_expr r0)
(string_of_expr e0)
(string_of_expr e1)
| I_Concat (r0, e0, e1) ->
Format.sprintf "concat %s, %s, %s"
(string_of_reg r0)
(string_of_expr e0)
(string_of_expr e1)
| I_Neg (r0, e0) ->
Format.sprintf "neg %s, %s"
(string_of_reg r0)
(string_of_expr e0)
| I_Not (r0, e0) ->
Format.sprintf "not %s, %s"
(string_of_reg r0)
(string_of_expr e0)
| I_Length (r0, e0) ->
Format.sprintf "length %s, %s"
(string_of_reg r0)
(string_of_expr e0)
| I_Move (r0, e0) ->
Format.sprintf "move %s, %s"
(string_of_reg r0)
(string_of_expr e0)
| I_NewArray (r0, e0) ->
Format.sprintf "newarray %s, %s"
(string_of_reg r0)
(string_of_expr e0)
| I_Call (rs, p, xs, kill) ->
Format.sprintf "call %s, %s, %s, kill %s"
(string_of_reglist rs)
(string_of_procid p)
(string_of_exprlist xs)
(string_of_reglist kill)
| I_Set (rr, cond, r0, r1) ->
Format.sprintf "set %s, %s, %s, %s"
(string_of_reg rr)
(string_of_cond cond)
(string_of_expr r0)
(string_of_expr r1)
| I_StoreVar (i0, e0) ->
Format.sprintf "storevar %s, %s"
(string_of_int i0)
(string_of_expr e0)
| I_LoadVar (r0, i0) ->
Format.sprintf "loadvar %s, %s"
(string_of_reg r0)
(string_of_int i0)
| I_StoreStack (i0, e0) ->
Format.sprintf "storestack %s, %s"
(string_of_int i0)
(string_of_expr e0)
| I_LoadStack (r0, i0) ->
Format.sprintf "loadstack %s, %s"
(string_of_reg r0)
(string_of_int i0)
| I_StackAlloc (i0) ->
Format.sprintf "stackalloc %s"
(Int32.to_string i0)
| I_StackFree (i0) ->
Format.sprintf "stackfree %s"
(Int32.to_string i0)
| I_Use rs ->
Format.sprintf "use %s" (string_of_reglist rs)
| I_Def rs ->
Format.sprintf "def %s" (string_of_reglist rs)
let string_of_terminator = function
| T_Branch (cond, r0, r1, l1, l2) ->
Format.sprintf "branch %s, %s, %s, %s, %s"
(string_of_cond cond)
(string_of_expr r0)
(string_of_expr r1)
(string_of_label l1)
(string_of_label l2)
| T_Jump (l) ->
Format.sprintf "jump %s"
(string_of_label l)
| T_Return xs ->
Format.sprintf "return %s"
(string_of_exprlist xs)
let indented_string_of_instr i = " " ^ (string_of_instr i)
let indented_string_of_terminator i = " " ^ (string_of_terminator i)
let string_of_block_body cfg label body =
String.concat "\n"
[ Format.sprintf "%s:" (string_of_label label)
; Format.sprintf " cfg successors: %s"
(string_of_labellist @@ ControlFlowGraph.successors cfg label)
; Format.sprintf " cfg predecessors: %s"
(string_of_labellist @@ ControlFlowGraph.predecessors cfg label)
; String.concat "\n" (List.map indented_string_of_instr body)
]
let string_of_block cfg k v =
let terminator = match ControlFlowGraph.terminator_safe cfg k with
| None -> "<<no terminator>>"
| Some t -> indented_string_of_terminator t
in
String.concat "\n"
[ string_of_block_body cfg k v
; terminator
]
let string_of_blockmap cfg =
let f xs (k, v) = string_of_block cfg k v :: xs in
let items = Seq.fold_left (fun xs x -> x::xs) [] (Hashtbl.to_seq @@ ControlFlowGraph.blockmap cfg) in
let items = List.sort compare items in
String.concat "\n" @@ List.rev @@ List.fold_left f [] items
let string_of_cfg cfg =
String.concat "\n"
[ Format.sprintf " cfg entry point: %s" (string_of_label @@ ControlFlowGraph.entry_label cfg)
; Format.sprintf " cfg entry point successors: %s"
(string_of_labellist @@ ControlFlowGraph.successors cfg @@ ControlFlowGraph.entry_label cfg)
; Format.sprintf " cfg exit point: %s" (string_of_label @@ ControlFlowGraph.exit_label cfg)
; Format.sprintf " cfg exit point predecessors : %s"
(string_of_labellist @@ ControlFlowGraph.predecessors cfg @@ ControlFlowGraph.exit_label cfg)
; string_of_blockmap cfg
]
let string_of_procedure (Procedure {procid; cfg; frame_size; formal_parameters; _}) =
String.concat "\n"
[ "////////////////////////////////////// "
; Format.sprintf "procedure %s" (string_of_procid procid)
; Format.sprintf " frame size: %u" frame_size
; Format.sprintf " formal parameters: %u" formal_parameters
; string_of_cfg cfg
]
let string_of_module_definition xs =
String.concat "\n" @@ List.map string_of_procedure xs
let string_of_program (Program {procedures; _}) =
String.concat "\n" @@ List.map string_of_procedure procedures
|