-
Notifications
You must be signed in to change notification settings - Fork 0
/
TPMC.drawio
936 lines (936 loc) · 97.3 KB
/
TPMC.drawio
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
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
<mxfile host="Electron" modified="2024-03-29T15:35:56.778Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/21.6.5 Chrome/114.0.5735.243 Electron/25.3.1 Safari/537.36" etag="KY6fe-1Fk7gxtgsmaylK" version="21.6.5" type="device">
<diagram name="Page-1" id="BMIGVXQaYJfFAf0o3IIb">
<mxGraphModel dx="2265" dy="1573" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-19" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="520" y="2210" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-20" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="520" y="2250" width="40" height="80" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-31" value="intermediate data structure" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#AFDEAD;strokeWidth=2;align=center;spacingLeft=6;verticalAlign=top;strokeColor=#AFDEAD;fontSize=15;" parent="1" vertex="1">
<mxGeometry x="360" y="-130" width="570" height="480" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-18" value="Input to the Algorithm" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#AFDEAD;strokeWidth=2;align=center;spacingLeft=6;verticalAlign=top;strokeColor=#AFDEAD;fontSize=15;" parent="1" vertex="1">
<mxGeometry x="-140" y="-10" width="460" height="290" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-1" value="pattern 00" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-20" y="30" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-2" value="pattern x0" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="100" y="30" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-3" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="60" y="30" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-4" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-20" y="70" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-5" value="pattern 0y" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-20" y="150" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-6" value="pattern xy" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="100" y="150" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-7" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="100" y="70" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-8" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="60" y="150" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-9" value="expression 0" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="180" y="30" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-12" value="expression y" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="180" y="150" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-13" value=".<br>.<br>." style="rounded=1;whiteSpace=wrap;html=1;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="180" y="70" width="120" height="80" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-15" value="root<br>variable 0" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-20" y="230" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-16" value="root<br>variable n" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="100" y="230" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-17" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="60" y="230" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-21" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="zOPIHNf3UfhfFd5MCg2I-19" target="zOPIHNf3UfhfFd5MCg2I-20" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-19" value="Final" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="630" y="-90" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-20" value="expression 0" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="790" y="-70" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="zOPIHNf3UfhfFd5MCg2I-22" target="zOPIHNf3UfhfFd5MCg2I-23" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-22" value="Final" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="630" y="140" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-23" value="expression y" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="790" y="160" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="zOPIHNf3UfhfFd5MCg2I-25" target="zOPIHNf3UfhfFd5MCg2I-26" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-25" value="Final" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="630" y="250" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-26" value="ERROR" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="790" y="270" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-36" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;curved=1;endArrow=none;endFill=0;" parent="1" source="zOPIHNf3UfhfFd5MCg2I-28" target="zOPIHNf3UfhfFd5MCg2I-34" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="470" y="-50" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-40" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;curved=1;endArrow=none;endFill=0;" parent="1" source="zOPIHNf3UfhfFd5MCg2I-28" target="zOPIHNf3UfhfFd5MCg2I-38" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="470" y="180" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-28" value="Test" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="430" y="-30" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-33" value="variable" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="370" y="-40" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-37" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="zOPIHNf3UfhfFd5MCg2I-34" target="zOPIHNf3UfhfFd5MCg2I-19" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-34" value="simple<br>pattern" style="rhombus;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="520" y="-75" width="80" height="50" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-39" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="zOPIHNf3UfhfFd5MCg2I-38" target="zOPIHNf3UfhfFd5MCg2I-22" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-38" value="simple<br>pattern" style="rhombus;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="520" y="155" width="80" height="50" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-41" value="Stamp [Id]" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="490" y="30" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-42" value="Free Variables" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="490" y="50" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-43" value="Reference Count" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="490" y="70" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-44" value="Stamp [Id]" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="690" y="-30" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-45" value="Free Variables" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="690" y="-10" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-46" value="Reference Count" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="690" y="10" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-48" value="A simple pattern is either a constant,<br>a wildcard, or a constructor applied only to constants or wildcards." style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;size=21;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="430" y="-220" width="120" height="150" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-51" value="Step 1: Renaming" style="rounded=0;whiteSpace=wrap;html=1;fontSize=40;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-140" y="420" width="1070" height="60" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-54" value="pow(x, num(n))" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry y="500" width="440" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-55" value="mul(num(n), pow(x, sub(num(n), num(1))))" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="680" y="500" width="250" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-56" value="pattern row:" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-140" y="500" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-57" value="root variables:" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-140" y="540" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-58" value="p0" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fontStyle=1" parent="1" vertex="1">
<mxGeometry y="540" width="440" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-59" value="p1" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="440" y="540" width="240" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-60" value="result:" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-140" y="600" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-61" value="p0=((p0$0=pow)(p0$1=_, p0$2=((p0$2$0=num)(p0$2$1=_))))" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry y="600" width="440" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-62" value="p1=x" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="440" y="600" width="240" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-64" value="x" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="440" y="500" width="240" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-65" value="mul(num(p0$2$1), pow(p0$1, sub(num(p0$2$1), num(1))))" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="680" y="600" width="250" height="40" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-66" value="Step 2: Generating the DFA" style="rounded=0;whiteSpace=wrap;html=1;fontSize=40;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-140" y="1050" width="1070" height="60" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-1" value="renaming includes replacing the variables in the final state bodies" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;size=21;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="650" y="630" width="90" height="120" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-2" value="since variables now have canonical names they can be replaced by wildcards" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;size=21;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="230" y="630" width="90" height="120" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-3" value="Input to the Algorithm" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#AFDEAD;strokeWidth=2;align=center;spacingLeft=6;verticalAlign=top;strokeColor=#AFDEAD;fontSize=15;" parent="1" vertex="1">
<mxGeometry x="150" y="1140" width="780" height="390" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-5" value="pattern 00" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="270" y="1180" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-6" value="pattern x0" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="390" y="1180" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-7" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="350" y="1180" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-8" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="270" y="1220" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-9" value="pattern 0y" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="270" y="1300" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-10" value="pattern xy" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="390" y="1300" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-11" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="390" y="1220" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-12" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="350" y="1300" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="3AKxyA7GvtKw9UNwyFWz-19" target="3AKxyA7GvtKw9UNwyFWz-20" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-19" value="Final 0" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="610" y="1160" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-20" value="expression 0" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="770" y="1180" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-21" value="Stamp [Id]" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="670" y="1220" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-22" value="Free Variables" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="670" y="1240" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-23" value="Reference Count" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="670" y="1260" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-25" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="3AKxyA7GvtKw9UNwyFWz-26" target="3AKxyA7GvtKw9UNwyFWz-27" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-26" value="Final y" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="610" y="1280" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-27" value="expression y" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="770" y="1300" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-28" value="Stamp [Id]" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="670" y="1340" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-29" value="Free Variables" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="670" y="1360" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-30" value="Reference Count" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="670" y="1380" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-31" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="350" y="1220" width="40" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-32" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="60" y="70" width="40" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-33" value="Matrix of Patterns" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="340" y="1360" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-34" value="Column of final states (1 per row of the matrix)" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="605" y="1420" width="90" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-36" value="the match algorithm chooses some column from the matrix and has 2 cases:<br style="font-size: 23px;">&nbsp;the variable rule and the mixture rule. It's output is the DFA for the matrix" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;size=39;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=23;" parent="1" vertex="1">
<mxGeometry x="-120" y="1220" width="240" height="310" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-37" value="Case 1: The Variable Rule" style="rounded=0;whiteSpace=wrap;html=1;fontSize=24;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="1" vertex="1">
<mxGeometry x="-140" y="1640" width="1070" height="60" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-38" value="p0=_" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="60" y="1770" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-39" value="pn=_" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="180" y="1770" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-40" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="140" y="1770" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-41" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="60" y="1810" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-42" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="180" y="1810" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-46" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="3AKxyA7GvtKw9UNwyFWz-43" target="3AKxyA7GvtKw9UNwyFWz-44" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-43" value="Final i" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="400" y="1750" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-44" value="expression 0" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="560" y="1770" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-45" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="140" y="1810" width="40" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-47" value="The topmost row of <b>M</b> has only variable (wildcard) patterns and therefore will match anything, so the result is Final i with its reference count incremented by 1." style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=20;" parent="1" vertex="1">
<mxGeometry x="-20" y="1910" width="740" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-48" value="Stamp [Id]" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="450" y="1810" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-49" value="Free Variables" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="450" y="1830" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-50" value="Reference Count" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="450" y="1850" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-51" value="Else Case 2: The Mixture Rule" style="rounded=0;whiteSpace=wrap;html=1;fontSize=24;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="1" vertex="1">
<mxGeometry x="-140" y="2030" width="1070" height="60" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-52" value="Else there is some column <b>N</b> whose topmost pattern is a constructor" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=20;" parent="1" vertex="1">
<mxGeometry x="10" y="2110" width="700" height="50" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-53" value="p0=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="230" y="2210" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-54" value="pn=c(pn$1=a, pn$2=b)" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="350" y="2210" width="170" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-55" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="310" y="2210" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-56" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="230" y="2250" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-57" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="350" y="2250" width="170" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-58" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="310" y="2250" width="40" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-59" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;strokeWidth=3;" parent="1" vertex="1">
<mxGeometry x="340" y="2200" width="190" height="140" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-60" value="for each constructor <b>c</b> in <b>N</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;" parent="1" vertex="1">
<mxGeometry y="3073" width="390" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-61" value="let {<b>i1</b> ... <b>ij</b>} be the row indices of the patterns in <b>N</b> that match <b>c</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="3113" width="520" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-62" value="i.e. either wildcards or the same constructor c" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;size=21;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="550" y="3013" width="90" height="120" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-63" value="not just the top one, but there will be at least the top one" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;size=21;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="-125" y="2963" width="90" height="120" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-64" value="The goal is to build a test state with the variable <b>pn</b> and some outgoing arcs (one for each constructor and possibly a default arc)" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=20;" parent="1" vertex="1">
<mxGeometry y="2350" width="700" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-65" value="let {<b>pat1</b> ... <b>patj</b>} be the equivalent patterns in <b>N</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="3153" width="480" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-66" value="let <b>n</b> be the arity of the constructor <b>c</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="3193" width="320" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-67" value="for each <b>pati</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="3233" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-68" value="extract its <b>n</b> sub patterns" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="200" y="3313" width="240" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-71" value="if <b>pati</b> is a constructor" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="120" y="3273" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-72" value="else it is a wildcard" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="120" y="3353" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-73" value="generate <b>n</b> wildcards each tagged with the correct path variable" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="190" y="3393" width="520" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-74" value="this results in a new matrix <b>A</b> with <b>n</b> columns and <b>j</b> rows" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="3433" width="480" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-75" value="pn$1=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="60" y="3493" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-76" value="pn$2=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="140" y="3493" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-78" value="pn$1=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="60" y="3533" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-79" value="pn$2=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="140" y="3533" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-80" value="next generate a new matrix <b>B</b> from <b>M-N</b> with rows {<b>i1</b>..<b>ij</b>}" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="3593" width="490" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-81" value="p0=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="60" y="3653" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-83" value="pn$1=..." style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="60" y="3693" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-84" value="append <b>A</b> to <b>B</b> to get <b>C</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="3753" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-85" value="A" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=18;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="240" y="3513" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-86" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="140" y="3653" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-87" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="140" y="3693" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-88" value="B" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=18;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="190" y="3683" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-89" value="pn$1=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="180" y="3823" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-90" value="pn$2=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="260" y="3823" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-91" value="pn$1=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="180" y="3863" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-92" value="pn$2=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="260" y="3863" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-93" value="p0=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="60" y="3823" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-94" value="pn$1=..." style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="60" y="3863" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-95" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="140" y="3823" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-96" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="140" y="3863" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-97" value="C" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=18;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="330" y="3843" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-98" value="A" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=18;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="230" y="3903" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-99" value="B" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=18;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="110" y="3903" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-100" value="then {<b>i1</b> ... <b>ij</b>} are used to select the equivalent final states <b>X</b> from <b>S</b>." style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="3953" width="560" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-101" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="3AKxyA7GvtKw9UNwyFWz-102" target="3AKxyA7GvtKw9UNwyFWz-103" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-102" value="Final 0" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="60" y="4013" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-103" value="expression 0" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="220" y="4033" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-104" value="Stamp [Id]" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="120" y="4073" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-105" value="Free Variables" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="120" y="4093" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-106" value="Reference Count" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="120" y="4113" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-107" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="3AKxyA7GvtKw9UNwyFWz-108" target="3AKxyA7GvtKw9UNwyFWz-109" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-108" value="Final y" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="60" y="4133" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-109" value="expression y" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="220" y="4153" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-110" value="Stamp [Id]" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="120" y="4193" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-111" value="Free Variables" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="120" y="4213" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-112" value="Reference Count" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="120" y="4233" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-113" value="the arc for constructor <b>c</b> is then computed as" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="4313" width="400" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-131" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="3AKxyA7GvtKw9UNwyFWz-114" target="3AKxyA7GvtKw9UNwyFWz-116" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-114" value="Test" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="150" y="4453" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-115" value="pn" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="80" y="4443" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-116" value="match" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=25;" parent="1" vertex="1">
<mxGeometry x="355" y="4478" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-119" value="(" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=150;" parent="1" vertex="1">
<mxGeometry x="425" y="4403" width="60" height="160" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-120" value="pn$1=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="605" y="4463" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-121" value="pn$2=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="685" y="4463" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-122" value="pn$1=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="605" y="4503" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-123" value="pn$2=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="685" y="4503" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-124" value="p0=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="485" y="4463" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-125" value="pn$1=..." style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="485" y="4503" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-126" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="565" y="4463" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-127" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="565" y="4503" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-128" value="C" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=18;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="585" y="4423" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-132" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="3AKxyA7GvtKw9UNwyFWz-133" target="3AKxyA7GvtKw9UNwyFWz-134" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-133" value="Final 0" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="785" y="4393" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-134" value="expression 0" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="945" y="4413" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-135" value="Stamp [Id]" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="845" y="4453" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-136" value="Free Variables" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="845" y="4473" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-137" value="Reference Count" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="845" y="4493" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-138" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="3AKxyA7GvtKw9UNwyFWz-139" target="3AKxyA7GvtKw9UNwyFWz-140" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-139" value="Final y" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="785" y="4513" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-140" value="expression y" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="945" y="4533" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-141" value="Stamp [Id]" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="845" y="4573" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-142" value="Free Variables" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="845" y="4593" width="90" height="20" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-143" value="Reference Count" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="845" y="4613" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-144" value=")" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=150;" parent="1" vertex="1">
<mxGeometry x="1080" y="4403" width="60" height="160" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-145" value="pn=c(pn$1=_, pn$2=_)" style="rhombus;whiteSpace=wrap;html=1;fontSize=18;" parent="1" vertex="1">
<mxGeometry x="215" y="4383" width="150" height="110" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-146" value="where the simple pattern is built by replacing the arguments to c with wildcards if they aren't already" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;size=21;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="250" y="4503" width="90" height="120" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-147" value="and the target state is calculated by recursively applying match to C and X" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;size=21;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="415" y="4583" width="90" height="120" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-148" value="X" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=18;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="400" y="4113" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-149" value="X" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=18;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="910" y="4363" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-151" value="if the set of constructor arcs from the test state is exhaustive" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="1" vertex="1">
<mxGeometry y="4773" width="520" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-153" value="return" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="4813" width="70" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-154" value="else" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="1" vertex="1">
<mxGeometry y="4853" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-155" value="a default arc (_, <b>state</b>) is constructed, where <b>state</b> is" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="4893" width="440" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-156" value="if there are any wildcards in <b>N</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="120" y="4933" width="360" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-157" value="select their rows from <b>M-N</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="200" y="4973" width="250" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-159" value="construct a new matrix <b>M-N</b> containing all the columns from <b>M</b> except <b>N</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="-40" y="2440" width="600" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-160" value="call that matrix <b>M</b>, and the state array <b>S</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="-40" y="1560" width="390" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-161" value="select their states from <b>S</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="200" y="5013" width="250" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-162" value="<b>state</b> is the result of calling match on these two values" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="200" y="5053" width="450" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-163" value="else" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="120" y="5093" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-164" value="<b>state</b> is the error state with its reference count incremented" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="200" y="5133" width="530" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-165" value="Step 3: Optimizing the DFA" style="rounded=0;whiteSpace=wrap;html=1;fontSize=40;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-150" y="5303" width="1070" height="60" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-168" value="merge equivalent states" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="-120" y="5413" width="530" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-169" value="can be done bottom up, since the DFA is acyclic." style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;size=21;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="410" y="5383" width="90" height="120" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-170" value="two final states are equivalent if they have the same stamp" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="-40" y="5533" width="530" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-171" value="two test states are equivalent if they test the same variable and the outgoing arcs are equal." style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="-40" y="5613" width="760" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-172" value="two arcs are equal if their simple patterns are equal and their target states are equal.&nbsp;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="-40" y="5693" width="760" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-173" value="Step 4: Generating Intermediate Code" style="rounded=0;whiteSpace=wrap;html=1;fontSize=40;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-150" y="5823" width="1070" height="60" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-174" value="since shared states are to be implemented as local functions, the notion of free variables becomes important." style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;size=21;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="-100" y="5923" width="120" height="150" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-175" value="calculate free variables" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="-40" y="6093" width="760" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-176" value="the free variables of a final state are the variables used in the substitution in step 1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry y="6173" width="760" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-177" value="the free variables of an arc are the free variables of the target state minus the variables bound by the simple pattern" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry y="6253" width="960" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-178" value="the free variables of a test state are the union of the free variables of its arcs, plus the test variable" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry y="6333" width="960" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-179" value="generate the code" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="-45" y="6453" width="760" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-180" value="start at the start state" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry y="6533" width="760" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-181" value="the translation of a final state is the expression it contains" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="6613" width="760" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-182" value="the translation of a test state is a simple case expression (variable) { cases } where" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="6693" width="760" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-184" value="the translation of an arc pattern =&gt; state is the match rule pattern =&gt; expression where" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="35" y="6893" width="760" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-185" value="variable is the variable of the state" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="80" y="6753" width="760" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-186" value="cases are the translations of the arcs of the state" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="80" y="6813" width="760" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-187" value="expression is the translation of the state reference" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="80" y="6973" width="440" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-188" value="the translation of a state reference with a count of one is the translation of the state" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="80" y="7053" width="720" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-189" value="the translation of a state reference with a count greater than one is made into a local procedure" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="80" y="7133" width="720" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-190" value="The name of the procedure is the stamp of the state" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="120" y="7213" width="720" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-191" value="The arguments to the procedure are the free variables of the state, in some canonical order" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="120" y="7293" width="760" height="40" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-192" value="The body of the procedure is the translation of the state itself." style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="120" y="7373" width="760" height="40" as="geometry" />
</mxCell>
<mxCell id="cn2tUEan-rP10-QUhOwm-1" value="<div>The path of each top-level pattern in the pattern row is the name of the corresponding&nbsp;<span style="background-color: initial;">root variable (the one with the same index).</span></div><div><span style="background-color: initial;">If a constructor application ctor(pat) has path p, then ctor has path p$0 and pat has path p$1</span><span style="background-color: initial;">.</span></div>" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;size=39;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=23;" parent="1" vertex="1">
<mxGeometry x="-100" y="650" width="280" height="360" as="geometry" />
</mxCell>
<mxCell id="zOPIHNf3UfhfFd5MCg2I-14" value="match rule" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;strokeWidth=2;align=left;spacingLeft=6;" parent="1" vertex="1">
<mxGeometry x="-130" y="20" width="440" height="60" as="geometry" />
</mxCell>
<mxCell id="cn2tUEan-rP10-QUhOwm-2" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;" parent="1" vertex="1">
<mxGeometry y="3113" width="40" height="1620" as="geometry" />
</mxCell>
<mxCell id="3AKxyA7GvtKw9UNwyFWz-152" value="finally deal with match failures" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;size=21;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="-100" y="4783" width="90" height="120" as="geometry" />
</mxCell>
<mxCell id="cn2tUEan-rP10-QUhOwm-3" value="used in two places later on" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;size=21;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="545" y="2460" width="60" height="90" as="geometry" />
</mxCell>
<mxCell id="cn2tUEan-rP10-QUhOwm-4" value="Term Pattern Matching Compiler" style="rounded=0;whiteSpace=wrap;html=1;fontSize=64;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="-140" y="-380" width="1070" height="140" as="geometry" />
</mxCell>
<mxCell id="cn2tUEan-rP10-QUhOwm-5" value="<div style="font-size: 18px;">fn deriv {</div><div style="font-size: 18px;">&nbsp; &nbsp; (x, x)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { num(1) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (num(_), _)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ num(0) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (pow(x, num(n)), x) { mul(num(n), pow(x, num(n - 1))) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (add(f, g), x)&nbsp; &nbsp; &nbsp; { add(deriv(f, x), deriv(g, x)) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (sub(f, g), x)&nbsp; &nbsp; &nbsp; { sub(deriv(f, x), deriv(g, x)) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (mul(f, g), x)&nbsp; &nbsp; &nbsp; { add(mul(g, deriv(f, x)), mul(f, deriv(g, x))) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (div(num(1), f), x) { div(sub(num(0), deriv(f, x)), mul(f, f)) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (div(f, g), x)&nbsp; &nbsp; &nbsp; { div(sub(mul(g, deriv(f, x)), mul(f, deriv(g, x))), mul(g, g)) }</div><div style="font-size: 18px;">}</div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;" parent="1" vertex="1">
<mxGeometry x="-85" y="7843" width="1045" height="270" as="geometry" />
</mxCell>
<mxCell id="cn2tUEan-rP10-QUhOwm-6" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="1" vertex="1">
<mxGeometry y="4893" width="40" height="280" as="geometry" />
</mxCell>
<mxCell id="cn2tUEan-rP10-QUhOwm-7" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="1" vertex="1">
<mxGeometry y="4813" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-1" value="<div style="font-size: 18px;">fn deriv {</div><div style="font-size: 18px;">&nbsp; &nbsp; (p$15=x, p$16=(p$15=x==p$16=x))&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { num(1) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (p$15=num(p$15$0=_), p$16=(_))&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ num(0) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (p$15=pow(p$15$0=x,&nbsp; p$15$1=num(p$15$1$0=n)), p$16=(p$15$0=x==p$16=x)) { mul(num(p$15$1$0=n), pow(p$16=x, num(p$15$1$0=n - 1))) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (p$15=add(p$15$0=f,&nbsp; p$15$1=g), p$16=x)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ add(deriv(p$15$0=f, p$16=x), deriv(p$15$1=g, p$16=x)) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (p$15=sub(p$15$0=f,&nbsp; p$15$1=g), p$16=x)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ sub(deriv(p$15$0=f, p$16=x), deriv(p$15$1=g, p$16=x)) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (p$15=mul(p$15$0=f,&nbsp; p$15$1=g), p$16=x)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ add(mul(p$15$1=g, deriv(p$15$0=f, p$16=x)), mul(p$15$0=f, deriv(p$15$1=g, p$16=x))) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (p$15=div(p$15$0=num(p$15$0$0=1), p$15$1=f), p$16=x) { div(sub(num(0), deriv(p$15$1=f, p$16=x)), mul(p$15$1=f, p$15$1=f)) }</div><div style="font-size: 18px;">&nbsp; &nbsp; (p$15=div(p$15$0=f, p$15$1=g), p$16=x)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ div(sub(mul(p$15$1=g, deriv(p$15$0=f, p$16=x)), mul(p$15$0=f, deriv(p$15$1=g, p$16=x))), mul(p$15$1=g, p$15$1=g)) }</div><div style="font-size: 18px;">}</div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;" parent="1" vertex="1">
<mxGeometry x="-85" y="8243" width="1995" height="270" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-2" value="Walkthrough" style="rounded=0;whiteSpace=wrap;html=1;fontSize=32;" parent="1" vertex="1">
<mxGeometry x="-80" y="7733" width="860" height="90" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-3" value="1. Renaming" style="rounded=0;whiteSpace=wrap;html=1;fontSize=32;" parent="1" vertex="1">
<mxGeometry x="-85" y="8133" width="860" height="90" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-4" value="2. Generating the DFA" style="rounded=0;whiteSpace=wrap;html=1;fontSize=32;" parent="1" vertex="1">
<mxGeometry x="-85" y="8543" width="860" height="90" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-5" value="Mixture Rule Applies" style="rounded=0;whiteSpace=wrap;html=1;fontSize=24;" parent="1" vertex="1">
<mxGeometry x="-80" y="8693" width="600" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-6" value="<div style="font-size: 18px;"><span style="background-color: initial;">p$16=(p$15=x==p$16=x)</span><br></div><div style="font-size: 18px;">p$16=(_)</div><div style="font-size: 18px;">p$16=(p$15$0=x==p$16=x)</div><div style="font-size: 18px;">p$16=x</div><div style="font-size: 18px;">p$16=x</div><div style="font-size: 18px;">p$16=x</div><div style="font-size: 18px;">p$16=x</div><div style="font-size: 18px;">p$16=x</div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;" parent="1" vertex="1">
<mxGeometry x="-80" y="8773" width="300" height="200" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-7" value="<div style="font-size: 18px;"><span style="background-color: initial;">{ num(1) }</span><br></div><div style="font-size: 18px;">{ num(0) }</div><div style="font-size: 18px;">{ mul(num(p$15$1$0=n), pow(p$16=x, num(p$15$1$0=n - 1))) }</div><div style="font-size: 18px;">{ add(deriv(p$15$0=f, p$16=x), deriv(p$15$1=g, p$16=x)) }</div><div style="font-size: 18px;">{ sub(deriv(p$15$0=f, p$16=x), deriv(p$15$1=g, p$16=x)) }</div><div style="font-size: 18px;">{ add(mul(p$15$1=g, deriv(p$15$0=f, p$16=x)), mul(p$15$0=f, deriv(p$15$1=g, p$16=x))) }</div><div style="font-size: 18px;">{ div(sub(num(0), deriv(p$15$1=f, p$16=x)), mul(p$15$1=f, p$15$1=f)) }</div><div style="font-size: 18px;">{ div(sub(mul(p$15$1=g, deriv(p$15$0=f, p$16=x)), mul(p$15$0=f, deriv(p$15$1=g, p$16=x))), mul(p$15$1=g, p$15$1=g)) }</div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;" parent="1" vertex="1">
<mxGeometry x="-3.75" y="10503" width="1297.5" height="190" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-8" value="<div style="font-size: 18px;"><span style="background-color: initial;">(p$15=x)</span><br></div><div style="font-size: 18px;">(p$15=num(p$15$0=_))</div><div style="font-size: 18px;">(p$15=pow(p$15$0=x, p$15$1=num(p$15$1$0=n)))</div><div style="font-size: 18px;">(p$15=add(p$15$0=f, p$15$1=g))</div><div style="font-size: 18px;">(p$15=sub(p$15$0=f, p$15$1=g))</div><div style="font-size: 18px;">(p$15=mul(p$15$0=f, p$15$1=g))</div><div style="font-size: 18px;">(p$15=div(p$15$0=num(p$15$0$0=1), p$15$1=f))</div><div style="font-size: 18px;">(p$15=div(p$15$0=f, p$15$1=g))</div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;" parent="1" vertex="1">
<mxGeometry x="415" y="8773" width="610" height="200" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-9" value="N" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=23;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="245" y="8873" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-10" value="M-N" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=23;fontStyle=1" parent="1" vertex="1">
<mxGeometry x="1060" y="8873" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-11" value="For Each Constructor c in N" style="rounded=0;whiteSpace=wrap;html=1;fontSize=24;align=left;spacingLeft=24;" parent="1" vertex="1">
<mxGeometry x="-80" y="9083" width="600" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-12" value="<div style="font-size: 18px;"><span style="background-color: initial;">p$16=(p$15=x==p$16=x)</span></div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-40" y="9133" width="320" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-13" value="<div style="font-size: 18px;"><span style="background-color: initial;">p$16=(p$15$0=x==p$16=x)</span><br></div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-40" y="11253" width="320" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-14" value="1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=24;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-80" y="9133" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-15" value="2" style="rounded=0;whiteSpace=wrap;html=1;fontSize=24;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-80" y="11253" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-17" value="<div style="font-size: 18px;"><span style="background-color: initial;">p$16=(p$15=x==p$16=x)</span><br></div><div style="font-size: 18px;">p$16=(_)</div><div style="font-size: 18px;">p$16=(p$15$0=x==p$16=x)</div><div style="font-size: 18px;">p$16=x</div><div style="font-size: 18px;">p$16=x</div><div style="font-size: 18px;">p$16=x</div><div style="font-size: 18px;">p$16=x</div><div style="font-size: 18px;">p$16=x</div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;" parent="1" vertex="1">
<mxGeometry x="480" y="9213" width="300" height="200" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-18" value="arity n = 0" style="rounded=0;whiteSpace=wrap;html=1;fontSize=24;align=left;spacingLeft=24;" parent="1" vertex="1">
<mxGeometry x="-40" y="9173" width="320" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-19" value="Find the patterns pat<sub>i</sub> in N that match C" style="rounded=0;whiteSpace=wrap;html=1;fontSize=24;align=left;spacingLeft=24;" parent="1" vertex="1">
<mxGeometry x="-40" y="9213" width="520" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-20" value="For each pat<sub>i</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=24;align=left;spacingLeft=24;" parent="1" vertex="1">
<mxGeometry x="-40" y="9413" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-21" value="If pat<sub>i&nbsp;</sub>is a constructor" style="rounded=0;whiteSpace=wrap;html=1;fontSize=24;align=left;spacingLeft=24;" parent="1" vertex="1">
<mxGeometry y="9453" width="260" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-22" value="extract its n subpatterns" style="rounded=0;whiteSpace=wrap;html=1;fontSize=24;align=left;spacingLeft=24;" parent="1" vertex="1">
<mxGeometry x="40" y="9493" width="320" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-23" value="else it is a wildcard" style="rounded=0;whiteSpace=wrap;html=1;fontSize=24;align=left;spacingLeft=24;" parent="1" vertex="1">
<mxGeometry y="9533" width="320" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-24" value="construct n wildcards, appropriately named" style="rounded=0;whiteSpace=wrap;html=1;fontSize=24;align=left;spacingLeft=24;" parent="1" vertex="1">
<mxGeometry x="40" y="9573" width="520" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-25" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="1" vertex="1">
<mxGeometry x="-120" y="8693" width="40" height="2820" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-26" value="this results in a new matrix <b>A</b> with <b>n</b> columns and <b>j</b> rows" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="-40" y="9613" width="480" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-27" value="<div style="font-size: 18px;"><span style="background-color: initial;">()</span><br></div><div style="font-size: 18px;">()</div><div style="font-size: 18px;">()</div><div style="font-size: 18px;">()</div><div style="font-size: 18px;">()</div><div style="font-size: 18px;">()</div><div style="font-size: 18px;">()</div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;" parent="1" vertex="1">
<mxGeometry x="80" y="9673" width="80" height="200" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-28" value="next generate a new matrix <b>B</b> from <b>M-N</b> with rows {<b>i1</b>..<b>ij</b>}" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="-40" y="9893" width="490" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-29" value="<div style="font-size: 18px;"><span style="background-color: initial;">(p$15=x)</span><br></div><div style="font-size: 18px;">(p$15=num(p$15$0=_))</div><div style="font-size: 18px;">(p$15=pow(p$15$0=x, p$15$1=num(p$15$1$0=n)))</div><div style="font-size: 18px;">(p$15=add(p$15$0=f, p$15$1=g))</div><div style="font-size: 18px;">(p$15=sub(p$15$0=f, p$15$1=g))</div><div style="font-size: 18px;">(p$15=mul(p$15$0=f, p$15$1=g))</div><div style="font-size: 18px;">(p$15=div(p$15$0=num(p$15$0$0=1), p$15$1=f))</div><div style="font-size: 18px;">(p$15=div(p$15$0=f, p$15$1=g))</div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;" parent="1" vertex="1">
<mxGeometry x="80" y="9953" width="610" height="200" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-30" value="append <b>A</b> to <b>B</b> to get <b>C</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="-40" y="10173" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-31" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-80" y="9173" width="40" height="2080" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-32" value="<div style="font-size: 18px;"><span style="background-color: initial;">(p$15=x)</span><br></div><div style="font-size: 18px;">(p$15=num(p$15$0=_))</div><div style="font-size: 18px;">(p$15=pow(p$15$0=x, p$15$1=num(p$15$1$0=n)))</div><div style="font-size: 18px;">(p$15=add(p$15$0=f, p$15$1=g))</div><div style="font-size: 18px;">(p$15=sub(p$15$0=f, p$15$1=g))</div><div style="font-size: 18px;">(p$15=mul(p$15$0=f, p$15$1=g))</div><div style="font-size: 18px;">(p$15=div(p$15$0=num(p$15$0$0=1), p$15$1=f))</div><div style="font-size: 18px;">(p$15=div(p$15$0=f, p$15$1=g))</div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;" parent="1" vertex="1">
<mxGeometry x="75" y="10233" width="610" height="200" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-33" value="extract equivalent states from S" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="-40" y="10453" width="320" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-34" value="call match" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="-40" y="10733" width="320" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-35" value="variable rule applies" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry y="10773" width="320" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-36" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="-40" y="10773" width="40" height="120" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-37" value="<div style="font-size: 18px;"><span style="background-color: initial;">{ num(1) }</span></div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;verticalAlign=middle;" parent="1" vertex="1">
<mxGeometry x="256.25" y="10828" width="303.75" height="50" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-38" value="result" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="40" y="10833" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-41" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="TdrLOpuGDJFDClYgZRIz-39" target="TdrLOpuGDJFDClYgZRIz-40" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-39" value="Test" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="85" y="10953" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-40" value="<div style="font-size: 18px;"><span style="background-color: initial;">{ num(1) }</span></div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;verticalAlign=middle;" parent="1" vertex="1">
<mxGeometry x="360" y="10968" width="303.75" height="50" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-42" value="p$16=(p$15=(_)==p$16=(_))<br style="font-size: 19px;">=&gt;<br style="font-size: 19px;">F36(1)<br style="font-size: 19px;">[p$16]<br style="font-size: 19px;">(begin (construct 0[num] 1))" style="rhombus;whiteSpace=wrap;html=1;fontSize=19;" parent="1" vertex="1">
<mxGeometry x="110" y="10993" width="300" height="180" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-43" value="same again" style="rounded=0;whiteSpace=wrap;html=1;fontSize=18;align=left;spacingLeft=4;" parent="1" vertex="1">
<mxGeometry x="-40" y="11293" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-45" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="1" vertex="1">
<mxGeometry x="-80" y="11293" width="40" height="220" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-46" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;curved=1;" parent="1" source="TdrLOpuGDJFDClYgZRIz-47" target="TdrLOpuGDJFDClYgZRIz-48" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-51" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;curved=1;" parent="1" source="TdrLOpuGDJFDClYgZRIz-47" target="TdrLOpuGDJFDClYgZRIz-50" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-47" value="Test" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="40.62" y="11513" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-48" value="<div style="font-size: 18px;"><span style="background-color: initial;">{ num(1) }</span></div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;verticalAlign=middle;" parent="1" vertex="1">
<mxGeometry x="315.62" y="11453" width="303.75" height="50" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-49" value="p$16=(p$15=(_)==p$16=(_))<br style="font-size: 19px;">=&gt;<br style="font-size: 19px;">F36(1)<br style="font-size: 19px;">[p$16]" style="rhombus;whiteSpace=wrap;html=1;fontSize=19;" parent="1" vertex="1">
<mxGeometry x="29.999999999999993" y="11333" width="300" height="180" as="geometry" />
</mxCell>
<mxCell id="TdrLOpuGDJFDClYgZRIz-50" value="<div style="font-size: 18px;"><span style="background-color: initial;">{ num(0) }</span></div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;fontFamily=Courier New;fontStyle=0;fontSize=18;spacingLeft=18;verticalAlign=middle;" parent="1" vertex="1">
<mxGeometry x="315.62" y="11613" width="303.75" height="50" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-1" value="p0=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="125" y="2630" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-2" value="pn=c(pn$1=a, pn$2=b)" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="245" y="2630" width="170" height="40" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-3" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="205" y="2630" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-4" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="125" y="2670" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-5" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="245" y="2670" width="170" height="80" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-6" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="205" y="2670" width="40" height="80" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-8" value="M" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=18;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="240" y="2580" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-9" value="p0=_" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="40.620000000000005" y="2843" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-10" value="pn=c(pn$1=a, pn$2=b)" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="360" y="2840" width="170" height="40" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-11" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="120.62" y="2843" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-12" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="40.620000000000005" y="2883" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-13" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="360" y="2880" width="170" height="80" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-14" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="120.62" y="2883" width="40" height="80" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-15" value="M-N" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=18;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="70" y="2800" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-16" value="N" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=18;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="415" y="2800" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-17" value="" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="180" y="2760" as="sourcePoint" />
<mxPoint x="140" y="2810" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-18" value="" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="360" y="2770" as="sourcePoint" />
<mxPoint x="390" y="2810" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-21" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="415" y="2630" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-22" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="415" y="2670" width="40" height="80" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-23" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="160" y="2843" width="40" height="40" as="geometry" />
</mxCell>
<mxCell id="NAuxKKtgDLs2Nbb9cSWt-24" value=".<br>.<br>." style="rounded=0;whiteSpace=wrap;html=1;fontStyle=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="160" y="2883" width="40" height="80" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>