-
Notifications
You must be signed in to change notification settings - Fork 0
/
0CCB04E28A191BBB.ll
4649 lines (3965 loc) · 275 KB
/
0CCB04E28A191BBB.ll
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
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
; ModuleID = '/usr/local/google/home/aeubanks/repos/test-suite/MultiSource/Benchmarks/7zip/CPP/Common/Wildcard.cpp'
source_filename = "/usr/local/google/home/aeubanks/repos/test-suite/MultiSource/Benchmarks/7zip/CPP/Common/Wildcard.cpp"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%class.CStringBase = type { ptr, i32, i32 }
%class.CBaseRecordVector = type { ptr, i32, i32, ptr, i64 }
%"struct.NWildcard::CItem" = type <{ %class.CObjectVector, i8, i8, i8, [5 x i8] }>
%class.CObjectVector = type { %class.CRecordVector }
%class.CRecordVector = type { %class.CBaseRecordVector }
%"class.NWildcard::CCensorNode" = type { ptr, %class.CStringBase, %class.CObjectVector.0, %class.CObjectVector.1, %class.CObjectVector.1 }
%class.CObjectVector.0 = type { %class.CRecordVector }
%class.CObjectVector.1 = type { %class.CRecordVector }
%"struct.NWildcard::CPair" = type { %class.CStringBase, %"class.NWildcard::CCensorNode" }
$_ZN11CStringBaseIwED2Ev = comdat any
$_ZN13CObjectVectorIN9NWildcard11CCensorNodeEE3AddERKS1_ = comdat any
$_ZN9NWildcard11CCensorNodeD2Ev = comdat any
$_ZN13CObjectVectorI11CStringBaseIwEE6DeleteEii = comdat any
$_ZN9NWildcard5CItemD2Ev = comdat any
$_ZN13CObjectVectorI11CStringBaseIwEED2Ev = comdat any
$_ZN13CObjectVectorIN9NWildcard5CItemEEpLERKS2_ = comdat any
$_ZN13CObjectVectorIN9NWildcard5CPairEE3AddERKS1_ = comdat any
$_ZN9NWildcard5CPairD2Ev = comdat any
$_ZN13CObjectVectorIN9NWildcard5CItemEED2Ev = comdat any
$_ZN13CObjectVectorIN9NWildcard11CCensorNodeEED2Ev = comdat any
$_ZN13CObjectVectorIN9NWildcard11CCensorNodeEED0Ev = comdat any
$_ZN13CObjectVectorIN9NWildcard11CCensorNodeEE6DeleteEii = comdat any
$_ZN13CObjectVectorIN9NWildcard5CItemEED0Ev = comdat any
$_ZN13CObjectVectorIN9NWildcard5CItemEE6DeleteEii = comdat any
$__clang_call_terminate = comdat any
$_ZNK11CStringBaseIwE3MidEii = comdat any
$_ZN9NWildcard11CCensorNodeC2ERKS0_ = comdat any
$_ZN13CObjectVectorI11CStringBaseIwEED0Ev = comdat any
$_ZN13CObjectVectorI11CStringBaseIwEEpLERKS2_ = comdat any
$_ZTV13CObjectVectorIN9NWildcard11CCensorNodeEE = comdat any
$_ZTS13CObjectVectorIN9NWildcard11CCensorNodeEE = comdat any
$_ZTS13CRecordVectorIPvE = comdat any
$_ZTI13CRecordVectorIPvE = comdat any
$_ZTI13CObjectVectorIN9NWildcard11CCensorNodeEE = comdat any
$_ZTV13CObjectVectorIN9NWildcard5CItemEE = comdat any
$_ZTS13CObjectVectorIN9NWildcard5CItemEE = comdat any
$_ZTI13CObjectVectorIN9NWildcard5CItemEE = comdat any
$_ZTV13CObjectVectorI11CStringBaseIwEE = comdat any
$_ZTS13CObjectVectorI11CStringBaseIwEE = comdat any
$_ZTI13CObjectVectorI11CStringBaseIwEE = comdat any
@g_CaseSensitive = dso_local local_unnamed_addr global i8 1, align 1
@_ZL16kWildCardCharSet = internal global %class.CStringBase zeroinitializer, align 8
@.str = private unnamed_addr constant [3 x i32] [i32 63, i32 42, i32 0], align 4
@__dso_handle = external hidden global i8
@_ZL29kIllegalWildCardFileNameChars = internal global %class.CStringBase zeroinitializer, align 8
@.str.2 = private unnamed_addr constant [39 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 34, i32 47, i32 58, i32 60, i32 62, i32 92, i32 124, i32 0], align 4
@.str.3 = private unnamed_addr constant [16 x i8] c"Empty file path\00", align 1
@_ZTIPKc = external constant ptr
@.str.4 = private unnamed_addr constant [3 x i32] [i32 46, i32 46, i32 0], align 4
@.str.5 = private unnamed_addr constant [2 x i32] [i32 46, i32 0], align 4
@_ZTV13CObjectVectorIN9NWildcard11CCensorNodeEE = linkonce_odr dso_local unnamed_addr constant { [5 x ptr] } { [5 x ptr] [ptr null, ptr @_ZTI13CObjectVectorIN9NWildcard11CCensorNodeEE, ptr @_ZN13CObjectVectorIN9NWildcard11CCensorNodeEED2Ev, ptr @_ZN13CObjectVectorIN9NWildcard11CCensorNodeEED0Ev, ptr @_ZN13CObjectVectorIN9NWildcard11CCensorNodeEE6DeleteEii] }, comdat, align 8
@_ZTVN10__cxxabiv120__si_class_type_infoE = external global ptr
@_ZTS13CObjectVectorIN9NWildcard11CCensorNodeEE = linkonce_odr dso_local constant [43 x i8] c"13CObjectVectorIN9NWildcard11CCensorNodeEE\00", comdat, align 1
@_ZTS13CRecordVectorIPvE = linkonce_odr dso_local constant [20 x i8] c"13CRecordVectorIPvE\00", comdat, align 1
@_ZTI17CBaseRecordVector = external constant ptr
@_ZTI13CRecordVectorIPvE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS13CRecordVectorIPvE, ptr @_ZTI17CBaseRecordVector }, comdat, align 8
@_ZTI13CObjectVectorIN9NWildcard11CCensorNodeEE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS13CObjectVectorIN9NWildcard11CCensorNodeEE, ptr @_ZTI13CRecordVectorIPvE }, comdat, align 8
@_ZTV13CObjectVectorIN9NWildcard5CItemEE = linkonce_odr dso_local unnamed_addr constant { [5 x ptr] } { [5 x ptr] [ptr null, ptr @_ZTI13CObjectVectorIN9NWildcard5CItemEE, ptr @_ZN13CObjectVectorIN9NWildcard5CItemEED2Ev, ptr @_ZN13CObjectVectorIN9NWildcard5CItemEED0Ev, ptr @_ZN13CObjectVectorIN9NWildcard5CItemEE6DeleteEii] }, comdat, align 8
@_ZTS13CObjectVectorIN9NWildcard5CItemEE = linkonce_odr dso_local constant [36 x i8] c"13CObjectVectorIN9NWildcard5CItemEE\00", comdat, align 1
@_ZTI13CObjectVectorIN9NWildcard5CItemEE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS13CObjectVectorIN9NWildcard5CItemEE, ptr @_ZTI13CRecordVectorIPvE }, comdat, align 8
@_ZTV13CObjectVectorI11CStringBaseIwEE = linkonce_odr dso_local unnamed_addr constant { [5 x ptr] } { [5 x ptr] [ptr null, ptr @_ZTI13CObjectVectorI11CStringBaseIwEE, ptr @_ZN13CObjectVectorI11CStringBaseIwEED2Ev, ptr @_ZN13CObjectVectorI11CStringBaseIwEED0Ev, ptr @_ZN13CObjectVectorI11CStringBaseIwEE6DeleteEii] }, comdat, align 8
@_ZTS13CObjectVectorI11CStringBaseIwEE = linkonce_odr dso_local constant [34 x i8] c"13CObjectVectorI11CStringBaseIwEE\00", comdat, align 1
@_ZTI13CObjectVectorI11CStringBaseIwEE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS13CObjectVectorI11CStringBaseIwEE, ptr @_ZTI13CRecordVectorIPvE }, comdat, align 8
@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @_GLOBAL__sub_I_Wildcard.cpp, ptr null }]
; Function Attrs: nounwind uwtable
define linkonce_odr dso_local void @_ZN11CStringBaseIwED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %this) unnamed_addr #0 comdat align 2 {
entry:
%0 = load ptr, ptr %this, align 8, !tbaa !5
%isnull = icmp eq ptr %0, null
br i1 %isnull, label %delete.end, label %delete.notnull
delete.notnull: ; preds = %entry
tail call void @_ZdaPv(ptr noundef nonnull %0) #18
br label %delete.end
delete.end: ; preds = %delete.notnull, %entry
ret void
}
; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #1
; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z16CompareFileNamesRK11CStringBaseIwES2_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %s1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %s2) local_unnamed_addr #2 {
entry:
%0 = load i8, ptr @g_CaseSensitive, align 1, !tbaa !11, !range !13, !noundef !14
%tobool.not = icmp eq i8 %0, 0
%1 = load ptr, ptr %s1, align 8, !tbaa !5
%2 = load ptr, ptr %s2, align 8, !tbaa !5
br i1 %tobool.not, label %if.end, label %if.then
if.then: ; preds = %entry
%call.i = tail call noundef i32 @_Z15MyStringComparePKwS0_(ptr noundef %1, ptr noundef %2)
br label %return
if.end: ; preds = %entry
%call.i4 = tail call noundef i32 @_Z21MyStringCompareNoCasePKwS0_(ptr noundef %1, ptr noundef %2)
br label %return
return: ; preds = %if.end, %if.then
%retval.0 = phi i32 [ %call.i, %if.then ], [ %call.i4, %if.end ]
ret i32 %retval.0
}
; Function Attrs: uwtable
define dso_local void @_Z16SplitPathToPartsRK11CStringBaseIwER13CObjectVectorIS0_E(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %path, ptr noundef nonnull align 8 dereferenceable(32) %pathParts) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
entry:
tail call void @_ZN17CBaseRecordVector5ClearEv(ptr noundef nonnull align 8 dereferenceable(32) %pathParts)
%call.i.i = tail call noalias noundef nonnull dereferenceable(16) ptr @_Znam(i64 noundef 16) #19
store i32 0, ptr %call.i.i, align 4, !tbaa !15
%_length.i = getelementptr inbounds %class.CStringBase, ptr %path, i64 0, i32 1
%0 = load i32, ptr %_length.i, align 8, !tbaa !17
%cmp = icmp eq i32 %0, 0
br i1 %cmp, label %delete.notnull.i, label %for.cond.preheader
for.cond.preheader: ; preds = %entry
%cmp192 = icmp sgt i32 %0, 0
br i1 %cmp192, label %for.body.lr.ph, label %for.cond.cleanup
for.body.lr.ph: ; preds = %for.cond.preheader
%_items.i.i45 = getelementptr inbounds %class.CBaseRecordVector, ptr %pathParts, i64 0, i32 3
%_size.i.i46 = getelementptr inbounds %class.CBaseRecordVector, ptr %pathParts, i64 0, i32 2
%wide.trip.count = zext i32 %0 to i64
br label %for.body
lpad: ; preds = %_ZN11CStringBaseIwEC2ERKS0_.exit.i, %for.cond.cleanup
%1 = landingpad { ptr, i32 }
cleanup
br label %ehcleanup
for.cond.cleanup: ; preds = %if.end13, %for.cond.preheader
%name.sroa.0.0.lcssa = phi ptr [ %call.i.i, %for.cond.preheader ], [ %name.sroa.0.2, %if.end13 ]
%name.sroa.13.0.lcssa = phi i32 [ 0, %for.cond.preheader ], [ %name.sroa.13.1, %if.end13 ]
%call.i28 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #19
to label %call.i.noexc unwind label %lpad
call.i.noexc: ; preds = %for.cond.cleanup
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %call.i28, i8 0, i64 16, i1 false)
%add.i.i.i = add nsw i32 %name.sroa.13.0.lcssa, 1
%cmp.i.i.i = icmp ne i32 %add.i.i.i, 0
tail call void @llvm.assume(i1 %cmp.i.i.i)
%conv.i.i.i = zext i32 %add.i.i.i to i64
%2 = icmp slt i32 %name.sroa.13.0.lcssa, -1
%3 = shl nuw nsw i64 %conv.i.i.i, 2
%4 = select i1 %2, i64 -1, i64 %3
%call.i.i4.i = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %4) #19
to label %call.i.i.noexc.i unwind label %lpad.i
call.i.i.noexc.i: ; preds = %call.i.noexc
%_capacity.i.i = getelementptr inbounds %class.CStringBase, ptr %call.i28, i64 0, i32 2
store ptr %call.i.i4.i, ptr %call.i28, align 8, !tbaa !5
store i32 0, ptr %call.i.i4.i, align 4, !tbaa !15
store i32 %add.i.i.i, ptr %_capacity.i.i, align 4, !tbaa !18
br label %while.cond.i.i.i
while.cond.i.i.i: ; preds = %call.i.i.noexc.i, %while.cond.i.i.i
%src.addr.0.i.i.i = phi ptr [ %incdec.ptr.i.i.i, %while.cond.i.i.i ], [ %name.sroa.0.0.lcssa, %call.i.i.noexc.i ]
%dest.addr.0.i.i.i = phi ptr [ %incdec.ptr1.i.i.i, %while.cond.i.i.i ], [ %call.i.i4.i, %call.i.i.noexc.i ]
%incdec.ptr.i.i.i = getelementptr inbounds i32, ptr %src.addr.0.i.i.i, i64 1
%5 = load i32, ptr %src.addr.0.i.i.i, align 4, !tbaa !15
%incdec.ptr1.i.i.i = getelementptr inbounds i32, ptr %dest.addr.0.i.i.i, i64 1
store i32 %5, ptr %dest.addr.0.i.i.i, align 4, !tbaa !15
%cmp.not.i.i.i = icmp eq i32 %5, 0
br i1 %cmp.not.i.i.i, label %_ZN11CStringBaseIwEC2ERKS0_.exit.i, label %while.cond.i.i.i, !llvm.loop !19
_ZN11CStringBaseIwEC2ERKS0_.exit.i: ; preds = %while.cond.i.i.i
%_length.i.i = getelementptr inbounds %class.CStringBase, ptr %call.i28, i64 0, i32 1
store i32 %name.sroa.13.0.lcssa, ptr %_length.i.i, align 8, !tbaa !17
invoke void @_ZN17CBaseRecordVector18ReserveOnePositionEv(ptr noundef nonnull align 8 dereferenceable(32) %pathParts)
to label %cleanup unwind label %lpad
lpad.i: ; preds = %call.i.noexc
%6 = landingpad { ptr, i32 }
cleanup
br label %delete.notnull.i65.sink.split
for.body: ; preds = %for.body.lr.ph, %if.end13
%indvars.iv = phi i64 [ 0, %for.body.lr.ph ], [ %indvars.iv.next, %if.end13 ]
%name.sroa.19.095 = phi i32 [ 4, %for.body.lr.ph ], [ %name.sroa.19.2, %if.end13 ]
%name.sroa.13.094 = phi i32 [ 0, %for.body.lr.ph ], [ %name.sroa.13.1, %if.end13 ]
%name.sroa.0.093 = phi ptr [ %call.i.i, %for.body.lr.ph ], [ %name.sroa.0.2, %if.end13 ]
%name.sroa.0.093106 = ptrtoint ptr %name.sroa.0.093 to i64
%7 = load ptr, ptr %path, align 8, !tbaa !5
%arrayidx = getelementptr inbounds i32, ptr %7, i64 %indvars.iv
%8 = load i32, ptr %arrayidx, align 4, !tbaa !15
%cmp.i = icmp eq i32 %8, 47
br i1 %cmp.i, label %if.then7, label %if.else
if.then7: ; preds = %for.body
%call.i53 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #19
to label %call.i.noexc52 unwind label %lpad2
call.i.noexc52: ; preds = %if.then7
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %call.i53, i8 0, i64 16, i1 false)
%add.i.i.i30 = add nsw i32 %name.sroa.13.094, 1
%cmp.i.i.i31 = icmp ne i32 %add.i.i.i30, 0
tail call void @llvm.assume(i1 %cmp.i.i.i31)
%conv.i.i.i32 = zext i32 %add.i.i.i30 to i64
%9 = icmp slt i32 %name.sroa.13.094, -1
%10 = shl nuw nsw i64 %conv.i.i.i32, 2
%11 = select i1 %9, i64 -1, i64 %10
%call.i.i4.i33 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %11) #19
to label %call.i.i.noexc.i36 unwind label %lpad.i51
call.i.i.noexc.i36: ; preds = %call.i.noexc52
%_capacity.i.i35 = getelementptr inbounds %class.CStringBase, ptr %call.i53, i64 0, i32 2
store ptr %call.i.i4.i33, ptr %call.i53, align 8, !tbaa !5
store i32 0, ptr %call.i.i4.i33, align 4, !tbaa !15
store i32 %add.i.i.i30, ptr %_capacity.i.i35, align 4, !tbaa !18
br label %while.cond.i.i.i43
while.cond.i.i.i43: ; preds = %call.i.i.noexc.i36, %while.cond.i.i.i43
%src.addr.0.i.i.i38 = phi ptr [ %incdec.ptr.i.i.i40, %while.cond.i.i.i43 ], [ %name.sroa.0.093, %call.i.i.noexc.i36 ]
%dest.addr.0.i.i.i39 = phi ptr [ %incdec.ptr1.i.i.i41, %while.cond.i.i.i43 ], [ %call.i.i4.i33, %call.i.i.noexc.i36 ]
%incdec.ptr.i.i.i40 = getelementptr inbounds i32, ptr %src.addr.0.i.i.i38, i64 1
%12 = load i32, ptr %src.addr.0.i.i.i38, align 4, !tbaa !15
%incdec.ptr1.i.i.i41 = getelementptr inbounds i32, ptr %dest.addr.0.i.i.i39, i64 1
store i32 %12, ptr %dest.addr.0.i.i.i39, align 4, !tbaa !15
%cmp.not.i.i.i42 = icmp eq i32 %12, 0
br i1 %cmp.not.i.i.i42, label %_ZN11CStringBaseIwEC2ERKS0_.exit.i50, label %while.cond.i.i.i43, !llvm.loop !19
_ZN11CStringBaseIwEC2ERKS0_.exit.i50: ; preds = %while.cond.i.i.i43
%_length.i.i44 = getelementptr inbounds %class.CStringBase, ptr %call.i53, i64 0, i32 1
store i32 %name.sroa.13.094, ptr %_length.i.i44, align 8, !tbaa !17
invoke void @_ZN17CBaseRecordVector18ReserveOnePositionEv(ptr noundef nonnull align 8 dereferenceable(32) %pathParts)
to label %_ZN13CObjectVectorI11CStringBaseIwEE3AddERKS1_.exit55 unwind label %lpad2
lpad.i51: ; preds = %call.i.noexc52
%13 = landingpad { ptr, i32 }
cleanup
br label %delete.notnull.i65.sink.split
_ZN13CObjectVectorI11CStringBaseIwEE3AddERKS1_.exit55: ; preds = %_ZN11CStringBaseIwEC2ERKS0_.exit.i50
%14 = load ptr, ptr %_items.i.i45, align 8, !tbaa !21
%15 = load i32, ptr %_size.i.i46, align 4, !tbaa !24
%idxprom.i.i47 = sext i32 %15 to i64
%arrayidx.i.i48 = getelementptr inbounds ptr, ptr %14, i64 %idxprom.i.i47
store ptr %call.i53, ptr %arrayidx.i.i48, align 8, !tbaa !25
%inc.i.i49 = add nsw i32 %15, 1
store i32 %inc.i.i49, ptr %_size.i.i46, align 4, !tbaa !24
br label %if.end13
lpad2: ; preds = %if.end.i.i.i62, %_ZN11CStringBaseIwEC2ERKS0_.exit.i50, %if.then7
%16 = landingpad { ptr, i32 }
cleanup
br label %ehcleanup
if.else: ; preds = %for.body
%17 = xor i32 %name.sroa.13.094, -1
%sub2.i.i = add i32 %name.sroa.19.095, %17
%cmp.not.i.i = icmp slt i32 %sub2.i.i, 1
br i1 %cmp.not.i.i, label %if.end.i.i, label %_ZN11CStringBaseIwEpLEw.exit
if.end.i.i: ; preds = %if.else
%cmp4.i.i = icmp sgt i32 %name.sroa.19.095, 64
%div24.i.i = lshr i32 %name.sroa.19.095, 1
%cmp8.i.i = icmp sgt i32 %name.sroa.19.095, 8
%..i.i = select i1 %cmp8.i.i, i32 16, i32 4
%delta.0.i.i = select i1 %cmp4.i.i, i32 %div24.i.i, i32 %..i.i
%add.i.i = add nsw i32 %delta.0.i.i, %sub2.i.i
%cmp13.i.i = icmp slt i32 %add.i.i, 1
%sub15.i.i = sub nsw i32 1, %sub2.i.i
%delta.1.i.i = select i1 %cmp13.i.i, i32 %sub15.i.i, i32 %delta.0.i.i
%add18.i.i = add nsw i32 %delta.1.i.i, %name.sroa.19.095
%add.i.i.i59 = add nsw i32 %add18.i.i, 1
%cmp.i.i.i60 = icmp eq i32 %add.i.i.i59, %name.sroa.19.095
br i1 %cmp.i.i.i60, label %_ZN11CStringBaseIwEpLEw.exit, label %if.end.i.i.i62
if.end.i.i.i62: ; preds = %if.end.i.i
%conv.i.i.i61 = zext i32 %add.i.i.i59 to i64
%18 = icmp slt i32 %add18.i.i, -1
%19 = shl nuw nsw i64 %conv.i.i.i61, 2
%20 = select i1 %18, i64 -1, i64 %19
%call.i.i.i63 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %20) #19
to label %call.i.i.i.noexc unwind label %lpad2
call.i.i.i.noexc: ; preds = %if.end.i.i.i62
%call.i.i.i63105 = ptrtoint ptr %call.i.i.i63 to i64
%cmp3.i.i.i = icmp sgt i32 %name.sroa.19.095, 0
br i1 %cmp3.i.i.i, label %for.cond.preheader.i.i.i, label %if.end9.i.i.i
for.cond.preheader.i.i.i: ; preds = %call.i.i.i.noexc
%cmp522.i.i.i = icmp sgt i32 %name.sroa.13.094, 0
br i1 %cmp522.i.i.i, label %for.body.lr.ph.i.i.i, label %delete.notnull.i.i.i
for.body.lr.ph.i.i.i: ; preds = %for.cond.preheader.i.i.i
%wide.trip.count.i.i.i = zext i32 %name.sroa.13.094 to i64
%min.iters.check = icmp ult i32 %name.sroa.13.094, 8
%21 = sub i64 %call.i.i.i63105, %name.sroa.0.093106
%diff.check = icmp ult i64 %21, 32
%or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
br i1 %or.cond, label %for.body.i.i.i.preheader, label %vector.ph
vector.ph: ; preds = %for.body.lr.ph.i.i.i
%n.vec = and i64 %wide.trip.count.i.i.i, 4294967288
br label %vector.body
vector.body: ; preds = %vector.body, %vector.ph
%index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
%22 = getelementptr inbounds i32, ptr %name.sroa.0.093, i64 %index
%wide.load = load <4 x i32>, ptr %22, align 4, !tbaa !15
%23 = getelementptr inbounds i32, ptr %22, i64 4
%wide.load107 = load <4 x i32>, ptr %23, align 4, !tbaa !15
%24 = getelementptr inbounds i32, ptr %call.i.i.i63, i64 %index
store <4 x i32> %wide.load, ptr %24, align 4, !tbaa !15
%25 = getelementptr inbounds i32, ptr %24, i64 4
store <4 x i32> %wide.load107, ptr %25, align 4, !tbaa !15
%index.next = add nuw i64 %index, 8
%26 = icmp eq i64 %index.next, %n.vec
br i1 %26, label %middle.block, label %vector.body, !llvm.loop !26
middle.block: ; preds = %vector.body
%cmp.n = icmp eq i64 %n.vec, %wide.trip.count.i.i.i
br i1 %cmp.n, label %delete.notnull.i.i.i, label %for.body.i.i.i.preheader
for.body.i.i.i.preheader: ; preds = %for.body.lr.ph.i.i.i, %middle.block
%indvars.iv.i.i.i.ph = phi i64 [ 0, %for.body.lr.ph.i.i.i ], [ %n.vec, %middle.block ]
%27 = xor i64 %indvars.iv.i.i.i.ph, -1
%28 = add nsw i64 %27, %wide.trip.count.i.i.i
%xtraiter = and i64 %wide.trip.count.i.i.i, 3
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.body.i.i.i.prol.loopexit, label %for.body.i.i.i.prol
for.body.i.i.i.prol: ; preds = %for.body.i.i.i.preheader, %for.body.i.i.i.prol
%indvars.iv.i.i.i.prol = phi i64 [ %indvars.iv.next.i.i.i.prol, %for.body.i.i.i.prol ], [ %indvars.iv.i.i.i.ph, %for.body.i.i.i.preheader ]
%prol.iter = phi i64 [ %prol.iter.next, %for.body.i.i.i.prol ], [ 0, %for.body.i.i.i.preheader ]
%arrayidx.i.i.i.prol = getelementptr inbounds i32, ptr %name.sroa.0.093, i64 %indvars.iv.i.i.i.prol
%29 = load i32, ptr %arrayidx.i.i.i.prol, align 4, !tbaa !15
%arrayidx7.i.i.i.prol = getelementptr inbounds i32, ptr %call.i.i.i63, i64 %indvars.iv.i.i.i.prol
store i32 %29, ptr %arrayidx7.i.i.i.prol, align 4, !tbaa !15
%indvars.iv.next.i.i.i.prol = add nuw nsw i64 %indvars.iv.i.i.i.prol, 1
%prol.iter.next = add i64 %prol.iter, 1
%prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
br i1 %prol.iter.cmp.not, label %for.body.i.i.i.prol.loopexit, label %for.body.i.i.i.prol, !llvm.loop !29
for.body.i.i.i.prol.loopexit: ; preds = %for.body.i.i.i.prol, %for.body.i.i.i.preheader
%indvars.iv.i.i.i.unr = phi i64 [ %indvars.iv.i.i.i.ph, %for.body.i.i.i.preheader ], [ %indvars.iv.next.i.i.i.prol, %for.body.i.i.i.prol ]
%30 = icmp ult i64 %28, 3
br i1 %30, label %delete.notnull.i.i.i, label %for.body.i.i.i
for.body.i.i.i: ; preds = %for.body.i.i.i.prol.loopexit, %for.body.i.i.i
%indvars.iv.i.i.i = phi i64 [ %indvars.iv.next.i.i.i.3, %for.body.i.i.i ], [ %indvars.iv.i.i.i.unr, %for.body.i.i.i.prol.loopexit ]
%arrayidx.i.i.i = getelementptr inbounds i32, ptr %name.sroa.0.093, i64 %indvars.iv.i.i.i
%31 = load i32, ptr %arrayidx.i.i.i, align 4, !tbaa !15
%arrayidx7.i.i.i = getelementptr inbounds i32, ptr %call.i.i.i63, i64 %indvars.iv.i.i.i
store i32 %31, ptr %arrayidx7.i.i.i, align 4, !tbaa !15
%indvars.iv.next.i.i.i = add nuw nsw i64 %indvars.iv.i.i.i, 1
%arrayidx.i.i.i.1 = getelementptr inbounds i32, ptr %name.sroa.0.093, i64 %indvars.iv.next.i.i.i
%32 = load i32, ptr %arrayidx.i.i.i.1, align 4, !tbaa !15
%arrayidx7.i.i.i.1 = getelementptr inbounds i32, ptr %call.i.i.i63, i64 %indvars.iv.next.i.i.i
store i32 %32, ptr %arrayidx7.i.i.i.1, align 4, !tbaa !15
%indvars.iv.next.i.i.i.1 = add nuw nsw i64 %indvars.iv.i.i.i, 2
%arrayidx.i.i.i.2 = getelementptr inbounds i32, ptr %name.sroa.0.093, i64 %indvars.iv.next.i.i.i.1
%33 = load i32, ptr %arrayidx.i.i.i.2, align 4, !tbaa !15
%arrayidx7.i.i.i.2 = getelementptr inbounds i32, ptr %call.i.i.i63, i64 %indvars.iv.next.i.i.i.1
store i32 %33, ptr %arrayidx7.i.i.i.2, align 4, !tbaa !15
%indvars.iv.next.i.i.i.2 = add nuw nsw i64 %indvars.iv.i.i.i, 3
%arrayidx.i.i.i.3 = getelementptr inbounds i32, ptr %name.sroa.0.093, i64 %indvars.iv.next.i.i.i.2
%34 = load i32, ptr %arrayidx.i.i.i.3, align 4, !tbaa !15
%arrayidx7.i.i.i.3 = getelementptr inbounds i32, ptr %call.i.i.i63, i64 %indvars.iv.next.i.i.i.2
store i32 %34, ptr %arrayidx7.i.i.i.3, align 4, !tbaa !15
%indvars.iv.next.i.i.i.3 = add nuw nsw i64 %indvars.iv.i.i.i, 4
%exitcond.not.i.i.i.3 = icmp eq i64 %indvars.iv.next.i.i.i.3, %wide.trip.count.i.i.i
br i1 %exitcond.not.i.i.i.3, label %delete.notnull.i.i.i, label %for.body.i.i.i, !llvm.loop !31
delete.notnull.i.i.i: ; preds = %for.body.i.i.i.prol.loopexit, %for.body.i.i.i, %middle.block, %for.cond.preheader.i.i.i
tail call void @_ZdaPv(ptr noundef nonnull %name.sroa.0.093) #18
br label %if.end9.i.i.i
if.end9.i.i.i: ; preds = %delete.notnull.i.i.i, %call.i.i.i.noexc
%idxprom13.i.i.i = sext i32 %name.sroa.13.094 to i64
%arrayidx14.i.i.i = getelementptr inbounds i32, ptr %call.i.i.i63, i64 %idxprom13.i.i.i
store i32 0, ptr %arrayidx14.i.i.i, align 4, !tbaa !15
br label %_ZN11CStringBaseIwEpLEw.exit
_ZN11CStringBaseIwEpLEw.exit: ; preds = %if.else, %if.end.i.i, %if.end9.i.i.i
%name.sroa.0.1 = phi ptr [ %name.sroa.0.093, %if.end.i.i ], [ %call.i.i.i63, %if.end9.i.i.i ], [ %name.sroa.0.093, %if.else ]
%name.sroa.19.1 = phi i32 [ %name.sroa.19.095, %if.end.i.i ], [ %add.i.i.i59, %if.end9.i.i.i ], [ %name.sroa.19.095, %if.else ]
%idxprom.i = sext i32 %name.sroa.13.094 to i64
%arrayidx.i = getelementptr inbounds i32, ptr %name.sroa.0.1, i64 %idxprom.i
store i32 %8, ptr %arrayidx.i, align 4, !tbaa !15
%inc.i = add nsw i32 %name.sroa.13.094, 1
%idxprom4.i = sext i32 %inc.i to i64
%arrayidx5.i = getelementptr inbounds i32, ptr %name.sroa.0.1, i64 %idxprom4.i
br label %if.end13
if.end13: ; preds = %_ZN11CStringBaseIwEpLEw.exit, %_ZN13CObjectVectorI11CStringBaseIwEE3AddERKS1_.exit55
%arrayidx5.i.sink = phi ptr [ %arrayidx5.i, %_ZN11CStringBaseIwEpLEw.exit ], [ %name.sroa.0.093, %_ZN13CObjectVectorI11CStringBaseIwEE3AddERKS1_.exit55 ]
%name.sroa.0.2 = phi ptr [ %name.sroa.0.1, %_ZN11CStringBaseIwEpLEw.exit ], [ %name.sroa.0.093, %_ZN13CObjectVectorI11CStringBaseIwEE3AddERKS1_.exit55 ]
%name.sroa.13.1 = phi i32 [ %inc.i, %_ZN11CStringBaseIwEpLEw.exit ], [ 0, %_ZN13CObjectVectorI11CStringBaseIwEE3AddERKS1_.exit55 ]
%name.sroa.19.2 = phi i32 [ %name.sroa.19.1, %_ZN11CStringBaseIwEpLEw.exit ], [ %name.sroa.19.095, %_ZN13CObjectVectorI11CStringBaseIwEE3AddERKS1_.exit55 ]
store i32 0, ptr %arrayidx5.i.sink, align 4, !tbaa !15
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
br i1 %exitcond.not, label %for.cond.cleanup, label %for.body, !llvm.loop !32
cleanup: ; preds = %_ZN11CStringBaseIwEC2ERKS0_.exit.i
%_items.i.i = getelementptr inbounds %class.CBaseRecordVector, ptr %pathParts, i64 0, i32 3
%35 = load ptr, ptr %_items.i.i, align 8, !tbaa !21
%_size.i.i = getelementptr inbounds %class.CBaseRecordVector, ptr %pathParts, i64 0, i32 2
%36 = load i32, ptr %_size.i.i, align 4, !tbaa !24
%idxprom.i.i = sext i32 %36 to i64
%arrayidx.i.i = getelementptr inbounds ptr, ptr %35, i64 %idxprom.i.i
store ptr %call.i28, ptr %arrayidx.i.i, align 8, !tbaa !25
%inc.i.i = add nsw i32 %36, 1
store i32 %inc.i.i, ptr %_size.i.i, align 4, !tbaa !24
%isnull.i = icmp eq ptr %name.sroa.0.0.lcssa, null
br i1 %isnull.i, label %_ZN11CStringBaseIwED2Ev.exit, label %delete.notnull.i
delete.notnull.i: ; preds = %entry, %cleanup
%name.sroa.0.381 = phi ptr [ %name.sroa.0.0.lcssa, %cleanup ], [ %call.i.i, %entry ]
tail call void @_ZdaPv(ptr noundef nonnull %name.sroa.0.381) #18
br label %_ZN11CStringBaseIwED2Ev.exit
_ZN11CStringBaseIwED2Ev.exit: ; preds = %cleanup, %delete.notnull.i
ret void
ehcleanup: ; preds = %lpad2, %lpad
%name.sroa.0.090 = phi ptr [ %name.sroa.0.0.lcssa, %lpad ], [ %name.sroa.0.093, %lpad2 ]
%eh.lpad-body54.pn = phi { ptr, i32 } [ %1, %lpad ], [ %16, %lpad2 ]
%isnull.i64 = icmp eq ptr %name.sroa.0.090, null
br i1 %isnull.i64, label %_ZN11CStringBaseIwED2Ev.exit66, label %delete.notnull.i65
delete.notnull.i65.sink.split: ; preds = %lpad.i51, %lpad.i
%call.i28.sink = phi ptr [ %call.i28, %lpad.i ], [ %call.i53, %lpad.i51 ]
%name.sroa.0.091.ph = phi ptr [ %name.sroa.0.0.lcssa, %lpad.i ], [ %name.sroa.0.093, %lpad.i51 ]
%eh.lpad-body54.pn84.ph = phi { ptr, i32 } [ %6, %lpad.i ], [ %13, %lpad.i51 ]
tail call void @_ZdlPv(ptr noundef nonnull %call.i28.sink) #18
br label %delete.notnull.i65
delete.notnull.i65: ; preds = %delete.notnull.i65.sink.split, %ehcleanup
%name.sroa.0.091 = phi ptr [ %name.sroa.0.090, %ehcleanup ], [ %name.sroa.0.091.ph, %delete.notnull.i65.sink.split ]
%eh.lpad-body54.pn84 = phi { ptr, i32 } [ %eh.lpad-body54.pn, %ehcleanup ], [ %eh.lpad-body54.pn84.ph, %delete.notnull.i65.sink.split ]
tail call void @_ZdaPv(ptr noundef nonnull %name.sroa.0.091) #18
br label %_ZN11CStringBaseIwED2Ev.exit66
_ZN11CStringBaseIwED2Ev.exit66: ; preds = %ehcleanup, %delete.notnull.i65
%eh.lpad-body54.pn85 = phi { ptr, i32 } [ %eh.lpad-body54.pn, %ehcleanup ], [ %eh.lpad-body54.pn84, %delete.notnull.i65 ]
resume { ptr, i32 } %eh.lpad-body54.pn85
}
declare void @_ZN17CBaseRecordVector5ClearEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #5
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #5
; Function Attrs: uwtable
define dso_local void @_Z16SplitPathToPartsRK11CStringBaseIwERS0_S3_(ptr noundef nonnull align 8 dereferenceable(16) %path, ptr noundef nonnull align 8 dereferenceable(16) %dirPrefix, ptr noundef nonnull align 8 dereferenceable(16) %name) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
entry:
%ref.tmp = alloca %class.CStringBase, align 8
%ref.tmp4 = alloca %class.CStringBase, align 8
%_length.i = getelementptr inbounds %class.CStringBase, ptr %path, i64 0, i32 1
%0 = load i32, ptr %_length.i, align 8, !tbaa !17
%1 = load ptr, ptr %path, align 8
%2 = zext i32 %0 to i64
%smin = tail call i32 @llvm.smin.i32(i32 %0, i32 0)
br label %for.cond
for.cond: ; preds = %for.body, %entry
%indvars.iv = phi i64 [ %4, %for.body ], [ %2, %entry ]
%3 = trunc i64 %indvars.iv to i32
%cmp = icmp sgt i32 %3, 0
br i1 %cmp, label %for.body, label %for.end
for.body: ; preds = %for.cond
%4 = add nsw i64 %indvars.iv, -1
%arrayidx = getelementptr inbounds i32, ptr %1, i64 %4
%5 = load i32, ptr %arrayidx, align 4, !tbaa !15
%cmp.i = icmp eq i32 %5, 47
br i1 %cmp.i, label %for.end, label %for.cond, !llvm.loop !33
for.end: ; preds = %for.body, %for.cond
%i.0.in.lcssa = phi i32 [ %3, %for.body ], [ %smin, %for.cond ]
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %ref.tmp) #20
call void @_ZNK11CStringBaseIwE3MidEii(ptr nonnull sret(%class.CStringBase) align 8 %ref.tmp, ptr noundef nonnull align 8 dereferenceable(16) %path, i32 noundef 0, i32 noundef %i.0.in.lcssa)
%cmp.i17 = icmp eq ptr %ref.tmp, %dirPrefix
br i1 %cmp.i17, label %for.end.invoke.cont_crit_edge, label %if.end.i
for.end.invoke.cont_crit_edge: ; preds = %for.end
%.pre = load ptr, ptr %dirPrefix, align 8, !tbaa !5
br label %invoke.cont
if.end.i: ; preds = %for.end
%_length.i.i = getelementptr inbounds %class.CStringBase, ptr %dirPrefix, i64 0, i32 1
store i32 0, ptr %_length.i.i, align 8, !tbaa !17
%6 = load ptr, ptr %dirPrefix, align 8, !tbaa !5
store i32 0, ptr %6, align 4, !tbaa !15
%_length.i18 = getelementptr inbounds %class.CStringBase, ptr %ref.tmp, i64 0, i32 1
%7 = load i32, ptr %_length.i18, align 8, !tbaa !17
%add.i.i = add nsw i32 %7, 1
%_capacity.i.i = getelementptr inbounds %class.CStringBase, ptr %dirPrefix, i64 0, i32 2
%8 = load i32, ptr %_capacity.i.i, align 4, !tbaa !18
%cmp.i.i = icmp eq i32 %add.i.i, %8
br i1 %cmp.i.i, label %_ZN11CStringBaseIwE11SetCapacityEi.exit.i, label %if.end.i.i
if.end.i.i: ; preds = %if.end.i
%conv.i.i = zext i32 %add.i.i to i64
%9 = icmp slt i32 %7, -1
%10 = shl nuw nsw i64 %conv.i.i, 2
%11 = select i1 %9, i64 -1, i64 %10
%call.i.i19 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %11) #19
to label %call.i.i.noexc unwind label %lpad
call.i.i.noexc: ; preds = %if.end.i.i
%cmp3.i.i = icmp sgt i32 %8, 0
br i1 %cmp3.i.i, label %delete.notnull.i.i, label %if.end9.i.i
delete.notnull.i.i: ; preds = %call.i.i.noexc
call void @_ZdaPv(ptr noundef nonnull %6) #18
%.pre.i = load i32, ptr %_length.i.i, align 8, !tbaa !17
%12 = sext i32 %.pre.i to i64
br label %if.end9.i.i
if.end9.i.i: ; preds = %delete.notnull.i.i, %call.i.i.noexc
%idxprom13.i.i = phi i64 [ %12, %delete.notnull.i.i ], [ 0, %call.i.i.noexc ]
store ptr %call.i.i19, ptr %dirPrefix, align 8, !tbaa !5
%arrayidx14.i.i = getelementptr inbounds i32, ptr %call.i.i19, i64 %idxprom13.i.i
store i32 0, ptr %arrayidx14.i.i, align 4, !tbaa !15
store i32 %add.i.i, ptr %_capacity.i.i, align 4, !tbaa !18
br label %_ZN11CStringBaseIwE11SetCapacityEi.exit.i
_ZN11CStringBaseIwE11SetCapacityEi.exit.i: ; preds = %if.end9.i.i, %if.end.i
%13 = phi ptr [ %6, %if.end.i ], [ %call.i.i19, %if.end9.i.i ]
%14 = load ptr, ptr %ref.tmp, align 8, !tbaa !5
br label %while.cond.i.i
while.cond.i.i: ; preds = %while.cond.i.i, %_ZN11CStringBaseIwE11SetCapacityEi.exit.i
%src.addr.0.i.i = phi ptr [ %14, %_ZN11CStringBaseIwE11SetCapacityEi.exit.i ], [ %incdec.ptr.i.i, %while.cond.i.i ]
%dest.addr.0.i.i = phi ptr [ %13, %_ZN11CStringBaseIwE11SetCapacityEi.exit.i ], [ %incdec.ptr1.i.i, %while.cond.i.i ]
%incdec.ptr.i.i = getelementptr inbounds i32, ptr %src.addr.0.i.i, i64 1
%15 = load i32, ptr %src.addr.0.i.i, align 4, !tbaa !15
%incdec.ptr1.i.i = getelementptr inbounds i32, ptr %dest.addr.0.i.i, i64 1
store i32 %15, ptr %dest.addr.0.i.i, align 4, !tbaa !15
%cmp.not.i.i = icmp eq i32 %15, 0
br i1 %cmp.not.i.i, label %_Z12MyStringCopyIwEPT_S1_PKS0_.exit.i, label %while.cond.i.i, !llvm.loop !19
_Z12MyStringCopyIwEPT_S1_PKS0_.exit.i: ; preds = %while.cond.i.i
%16 = load i32, ptr %_length.i18, align 8, !tbaa !17
store i32 %16, ptr %_length.i.i, align 8, !tbaa !17
br label %invoke.cont
invoke.cont: ; preds = %for.end.invoke.cont_crit_edge, %_Z12MyStringCopyIwEPT_S1_PKS0_.exit.i
%17 = phi ptr [ %.pre, %for.end.invoke.cont_crit_edge ], [ %14, %_Z12MyStringCopyIwEPT_S1_PKS0_.exit.i ]
%isnull.i = icmp eq ptr %17, null
br i1 %isnull.i, label %_ZN11CStringBaseIwED2Ev.exit, label %delete.notnull.i
delete.notnull.i: ; preds = %invoke.cont
call void @_ZdaPv(ptr noundef nonnull %17) #18
br label %_ZN11CStringBaseIwED2Ev.exit
_ZN11CStringBaseIwED2Ev.exit: ; preds = %invoke.cont, %delete.notnull.i
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %ref.tmp) #20
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %ref.tmp4) #20
%18 = load i32, ptr %_length.i, align 8, !tbaa !17, !noalias !34
%sub.i = sub nsw i32 %18, %i.0.in.lcssa
call void @_ZNK11CStringBaseIwE3MidEii(ptr nonnull sret(%class.CStringBase) align 8 %ref.tmp4, ptr noundef nonnull align 8 dereferenceable(16) %path, i32 noundef %i.0.in.lcssa, i32 noundef %sub.i)
%cmp.i21 = icmp eq ptr %ref.tmp4, %name
br i1 %cmp.i21, label %_ZN11CStringBaseIwED2Ev.exit.invoke.cont7_crit_edge, label %if.end.i27
_ZN11CStringBaseIwED2Ev.exit.invoke.cont7_crit_edge: ; preds = %_ZN11CStringBaseIwED2Ev.exit
%.pre59 = load ptr, ptr %name, align 8, !tbaa !5
br label %invoke.cont7
if.end.i27: ; preds = %_ZN11CStringBaseIwED2Ev.exit
%_length.i.i22 = getelementptr inbounds %class.CStringBase, ptr %name, i64 0, i32 1
store i32 0, ptr %_length.i.i22, align 8, !tbaa !17
%19 = load ptr, ptr %name, align 8, !tbaa !5
store i32 0, ptr %19, align 4, !tbaa !15
%_length.i23 = getelementptr inbounds %class.CStringBase, ptr %ref.tmp4, i64 0, i32 1
%20 = load i32, ptr %_length.i23, align 8, !tbaa !17
%add.i.i24 = add nsw i32 %20, 1
%_capacity.i.i25 = getelementptr inbounds %class.CStringBase, ptr %name, i64 0, i32 2
%21 = load i32, ptr %_capacity.i.i25, align 4, !tbaa !18
%cmp.i.i26 = icmp eq i32 %add.i.i24, %21
br i1 %cmp.i.i26, label %_ZN11CStringBaseIwE11SetCapacityEi.exit.i36, label %if.end.i.i30
if.end.i.i30: ; preds = %if.end.i27
%conv.i.i28 = zext i32 %add.i.i24 to i64
%22 = icmp slt i32 %20, -1
%23 = shl nuw nsw i64 %conv.i.i28, 2
%24 = select i1 %22, i64 -1, i64 %23
%call.i.i45 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %24) #19
to label %call.i.i.noexc44 unwind label %lpad6
call.i.i.noexc44: ; preds = %if.end.i.i30
%cmp3.i.i29 = icmp sgt i32 %21, 0
br i1 %cmp3.i.i29, label %delete.notnull.i.i32, label %if.end9.i.i35
delete.notnull.i.i32: ; preds = %call.i.i.noexc44
call void @_ZdaPv(ptr noundef nonnull %19) #18
%.pre.i31 = load i32, ptr %_length.i.i22, align 8, !tbaa !17
%25 = sext i32 %.pre.i31 to i64
br label %if.end9.i.i35
if.end9.i.i35: ; preds = %delete.notnull.i.i32, %call.i.i.noexc44
%idxprom13.i.i33 = phi i64 [ %25, %delete.notnull.i.i32 ], [ 0, %call.i.i.noexc44 ]
store ptr %call.i.i45, ptr %name, align 8, !tbaa !5
%arrayidx14.i.i34 = getelementptr inbounds i32, ptr %call.i.i45, i64 %idxprom13.i.i33
store i32 0, ptr %arrayidx14.i.i34, align 4, !tbaa !15
store i32 %add.i.i24, ptr %_capacity.i.i25, align 4, !tbaa !18
br label %_ZN11CStringBaseIwE11SetCapacityEi.exit.i36
_ZN11CStringBaseIwE11SetCapacityEi.exit.i36: ; preds = %if.end9.i.i35, %if.end.i27
%26 = phi ptr [ %19, %if.end.i27 ], [ %call.i.i45, %if.end9.i.i35 ]
%27 = load ptr, ptr %ref.tmp4, align 8, !tbaa !5
br label %while.cond.i.i42
while.cond.i.i42: ; preds = %while.cond.i.i42, %_ZN11CStringBaseIwE11SetCapacityEi.exit.i36
%src.addr.0.i.i37 = phi ptr [ %27, %_ZN11CStringBaseIwE11SetCapacityEi.exit.i36 ], [ %incdec.ptr.i.i39, %while.cond.i.i42 ]
%dest.addr.0.i.i38 = phi ptr [ %26, %_ZN11CStringBaseIwE11SetCapacityEi.exit.i36 ], [ %incdec.ptr1.i.i40, %while.cond.i.i42 ]
%incdec.ptr.i.i39 = getelementptr inbounds i32, ptr %src.addr.0.i.i37, i64 1
%28 = load i32, ptr %src.addr.0.i.i37, align 4, !tbaa !15
%incdec.ptr1.i.i40 = getelementptr inbounds i32, ptr %dest.addr.0.i.i38, i64 1
store i32 %28, ptr %dest.addr.0.i.i38, align 4, !tbaa !15
%cmp.not.i.i41 = icmp eq i32 %28, 0
br i1 %cmp.not.i.i41, label %_Z12MyStringCopyIwEPT_S1_PKS0_.exit.i43, label %while.cond.i.i42, !llvm.loop !19
_Z12MyStringCopyIwEPT_S1_PKS0_.exit.i43: ; preds = %while.cond.i.i42
%29 = load i32, ptr %_length.i23, align 8, !tbaa !17
store i32 %29, ptr %_length.i.i22, align 8, !tbaa !17
br label %invoke.cont7
invoke.cont7: ; preds = %_ZN11CStringBaseIwED2Ev.exit.invoke.cont7_crit_edge, %_Z12MyStringCopyIwEPT_S1_PKS0_.exit.i43
%30 = phi ptr [ %.pre59, %_ZN11CStringBaseIwED2Ev.exit.invoke.cont7_crit_edge ], [ %27, %_Z12MyStringCopyIwEPT_S1_PKS0_.exit.i43 ]
%isnull.i47 = icmp eq ptr %30, null
br i1 %isnull.i47, label %_ZN11CStringBaseIwED2Ev.exit49, label %delete.notnull.i48
delete.notnull.i48: ; preds = %invoke.cont7
call void @_ZdaPv(ptr noundef nonnull %30) #18
br label %_ZN11CStringBaseIwED2Ev.exit49
_ZN11CStringBaseIwED2Ev.exit49: ; preds = %invoke.cont7, %delete.notnull.i48
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %ref.tmp4) #20
ret void
lpad: ; preds = %if.end.i.i
%31 = landingpad { ptr, i32 }
cleanup
%32 = load ptr, ptr %ref.tmp, align 8, !tbaa !5
%isnull.i50 = icmp eq ptr %32, null
br i1 %isnull.i50, label %_ZN11CStringBaseIwED2Ev.exit52, label %delete.notnull.i51
delete.notnull.i51: ; preds = %lpad
call void @_ZdaPv(ptr noundef nonnull %32) #18
br label %_ZN11CStringBaseIwED2Ev.exit52
_ZN11CStringBaseIwED2Ev.exit52: ; preds = %lpad, %delete.notnull.i51
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %ref.tmp) #20
br label %ehcleanup
lpad6: ; preds = %if.end.i.i30
%33 = landingpad { ptr, i32 }
cleanup
%34 = load ptr, ptr %ref.tmp4, align 8, !tbaa !5
%isnull.i53 = icmp eq ptr %34, null
br i1 %isnull.i53, label %_ZN11CStringBaseIwED2Ev.exit55, label %delete.notnull.i54
delete.notnull.i54: ; preds = %lpad6
call void @_ZdaPv(ptr noundef nonnull %34) #18
br label %_ZN11CStringBaseIwED2Ev.exit55
_ZN11CStringBaseIwED2Ev.exit55: ; preds = %lpad6, %delete.notnull.i54
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %ref.tmp4) #20
br label %ehcleanup
ehcleanup: ; preds = %_ZN11CStringBaseIwED2Ev.exit55, %_ZN11CStringBaseIwED2Ev.exit52
%.pn = phi { ptr, i32 } [ %33, %_ZN11CStringBaseIwED2Ev.exit55 ], [ %31, %_ZN11CStringBaseIwED2Ev.exit52 ]
resume { ptr, i32 } %.pn
}
; Function Attrs: mustprogress uwtable
define dso_local void @_Z24ExtractDirPrefixFromPathRK11CStringBaseIwE(ptr noalias sret(%class.CStringBase) align 8 %agg.result, ptr noundef nonnull align 8 dereferenceable(16) %path) local_unnamed_addr #2 {
entry:
%_length.i = getelementptr inbounds %class.CStringBase, ptr %path, i64 0, i32 1
%0 = load i32, ptr %_length.i, align 8, !tbaa !17
%1 = load ptr, ptr %path, align 8
%2 = zext i32 %0 to i64
%smin = tail call i32 @llvm.smin.i32(i32 %0, i32 0)
br label %for.cond
for.cond: ; preds = %for.body, %entry
%indvars.iv = phi i64 [ %4, %for.body ], [ %2, %entry ]
%3 = trunc i64 %indvars.iv to i32
%cmp = icmp sgt i32 %3, 0
br i1 %cmp, label %for.body, label %for.end
for.body: ; preds = %for.cond
%4 = add nsw i64 %indvars.iv, -1
%arrayidx = getelementptr inbounds i32, ptr %1, i64 %4
%5 = load i32, ptr %arrayidx, align 4, !tbaa !15
%cmp.i = icmp eq i32 %5, 47
br i1 %cmp.i, label %for.end, label %for.cond, !llvm.loop !37
for.end: ; preds = %for.body, %for.cond
%i.0.in.lcssa = phi i32 [ %3, %for.body ], [ %smin, %for.cond ]
tail call void @_ZNK11CStringBaseIwE3MidEii(ptr sret(%class.CStringBase) align 8 %agg.result, ptr noundef nonnull align 8 dereferenceable(16) %path, i32 noundef 0, i32 noundef %i.0.in.lcssa)
ret void
}
; Function Attrs: mustprogress uwtable
define dso_local void @_Z23ExtractFileNameFromPathRK11CStringBaseIwE(ptr noalias sret(%class.CStringBase) align 8 %agg.result, ptr noundef nonnull align 8 dereferenceable(16) %path) local_unnamed_addr #2 {
entry:
%_length.i = getelementptr inbounds %class.CStringBase, ptr %path, i64 0, i32 1
%0 = load i32, ptr %_length.i, align 8, !tbaa !17
%1 = load ptr, ptr %path, align 8
%2 = zext i32 %0 to i64
%smin = tail call i32 @llvm.smin.i32(i32 %0, i32 0)
br label %for.cond
for.cond: ; preds = %for.body, %entry
%indvars.iv = phi i64 [ %4, %for.body ], [ %2, %entry ]
%3 = trunc i64 %indvars.iv to i32
%cmp = icmp sgt i32 %3, 0
br i1 %cmp, label %for.body, label %for.end
for.body: ; preds = %for.cond
%4 = add nsw i64 %indvars.iv, -1
%arrayidx = getelementptr inbounds i32, ptr %1, i64 %4
%5 = load i32, ptr %arrayidx, align 4, !tbaa !15
%cmp.i = icmp eq i32 %5, 47
br i1 %cmp.i, label %for.end, label %for.cond, !llvm.loop !38
for.end: ; preds = %for.body, %for.cond
%i.0.in.lcssa = phi i32 [ %3, %for.body ], [ %smin, %for.cond ]
%sub.i = sub nsw i32 %0, %i.0.in.lcssa
tail call void @_ZNK11CStringBaseIwE3MidEii(ptr sret(%class.CStringBase) align 8 %agg.result, ptr noundef nonnull align 8 dereferenceable(16) %path, i32 noundef %i.0.in.lcssa, i32 noundef %sub.i)
ret void
}
; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z23CompareWildCardWithNameRK11CStringBaseIwES2_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %mask, ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %name) local_unnamed_addr #2 {
entry:
%0 = load ptr, ptr %mask, align 8, !tbaa !5
%1 = load ptr, ptr %name, align 8, !tbaa !5
%call2 = tail call fastcc noundef zeroext i1 @_ZL16EnhancedMaskTestPKwS0_(ptr noundef %0, ptr noundef %1)
ret i1 %call2
}
; Function Attrs: mustprogress uwtable
define internal fastcc noundef zeroext i1 @_ZL16EnhancedMaskTestPKwS0_(ptr nocapture noundef readonly %mask, ptr nocapture noundef readonly %name) unnamed_addr #2 {
entry:
br label %for.cond
for.cond: ; preds = %cleanup, %entry
%name.addr.0 = phi ptr [ %name, %entry ], [ %incdec.ptr25, %cleanup ]
%mask.addr.0 = phi ptr [ %mask, %entry ], [ %mask.addr.1, %cleanup ]
%0 = load i32, ptr %mask.addr.0, align 4, !tbaa !15
%1 = load i32, ptr %name.addr.0, align 4, !tbaa !15
switch i32 %0, label %if.else14 [
i32 0, label %if.then
i32 42, label %if.then3
i32 63, label %if.then10
]
if.then: ; preds = %for.cond
%cmp1 = icmp eq i32 %1, 0
br label %return
if.then3: ; preds = %for.cond
%add.ptr = getelementptr inbounds i32, ptr %mask.addr.0, i64 1
%call = tail call fastcc noundef zeroext i1 @_ZL16EnhancedMaskTestPKwS0_(ptr noundef nonnull %add.ptr, ptr noundef nonnull %name.addr.0)
br i1 %call, label %return, label %if.end5
if.end5: ; preds = %if.then3
%cmp6 = icmp eq i32 %1, 0
br i1 %cmp6, label %return, label %cleanup
if.then10: ; preds = %for.cond
%cmp11 = icmp eq i32 %1, 0
br i1 %cmp11, label %return, label %if.end23
if.else14: ; preds = %for.cond
%cmp15.not = icmp eq i32 %0, %1
br i1 %cmp15.not, label %if.end23, label %if.then16
if.then16: ; preds = %if.else14
%2 = load i8, ptr @g_CaseSensitive, align 1, !tbaa !11, !range !13, !noundef !14
%tobool.not = icmp eq i8 %2, 0
br i1 %tobool.not, label %lor.lhs.false, label %return
lor.lhs.false: ; preds = %if.then16
%call17 = tail call noundef signext i32 @_Z11MyCharUpperw(i32 noundef signext %0)
%call18 = tail call noundef signext i32 @_Z11MyCharUpperw(i32 noundef signext %1)
%cmp19.not = icmp eq i32 %call17, %call18
br i1 %cmp19.not, label %if.end23, label %return
if.end23: ; preds = %if.else14, %lor.lhs.false, %if.then10
%incdec.ptr = getelementptr inbounds i32, ptr %mask.addr.0, i64 1
br label %cleanup
cleanup: ; preds = %if.end23, %if.end5
%mask.addr.1 = phi ptr [ %mask.addr.0, %if.end5 ], [ %incdec.ptr, %if.end23 ]
%incdec.ptr25 = getelementptr inbounds i32, ptr %name.addr.0, i64 1
br label %for.cond
return: ; preds = %if.then3, %if.end5, %if.then10, %lor.lhs.false, %if.then16, %if.then
%retval.1.ph = phi i1 [ %cmp1, %if.then ], [ true, %if.then3 ], [ false, %if.end5 ], [ false, %if.then10 ], [ false, %lor.lhs.false ], [ false, %if.then16 ]
ret i1 %retval.1.ph
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable
define dso_local noundef zeroext i1 @_Z23DoesNameContainWildCardRK11CStringBaseIwE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %path) local_unnamed_addr #6 {
entry:
%_length.i = getelementptr inbounds %class.CStringBase, ptr %path, i64 0, i32 1
%0 = load i32, ptr %_length.i, align 8, !tbaa !17
%cmp8.i = icmp sgt i32 %0, 0
br i1 %cmp8.i, label %for.body.lr.ph.i, label %_ZNK11CStringBaseIwE9FindOneOfERKS0_.exit
for.body.lr.ph.i: ; preds = %entry
%1 = load ptr, ptr %path, align 8, !tbaa !5
%2 = load ptr, ptr @_ZL16kWildCardCharSet, align 8, !tbaa !5
%3 = load i32, ptr %2, align 4, !tbaa !15
%sub.ptr.rhs.cast.i.i.i = ptrtoint ptr %2 to i64
%wide.trip.count.i = zext i32 %0 to i64
br label %for.body.i
for.body.i: ; preds = %for.inc.i, %for.body.lr.ph.i
%indvars.iv.i = phi i64 [ 0, %for.body.lr.ph.i ], [ %indvars.iv.next.i, %for.inc.i ]
%arrayidx.i = getelementptr inbounds i32, ptr %1, i64 %indvars.iv.i
%4 = load i32, ptr %arrayidx.i, align 4, !tbaa !15
%cmp10.i.i.i = icmp eq i32 %3, %4
br i1 %cmp10.i.i.i, label %_ZNK11CStringBaseIwE4FindEw.exit.i, label %if.end.i.i.i
if.end.i.i.i: ; preds = %for.body.i, %if.end5.i.i.i
%5 = phi i32 [ %6, %if.end5.i.i.i ], [ %3, %for.body.i ]
%p.011.i.i.i = phi ptr [ %add.ptr.i.i.i.i.i, %if.end5.i.i.i ], [ %2, %for.body.i ]
%cmp3.i.i.i = icmp eq i32 %5, 0
br i1 %cmp3.i.i.i, label %for.inc.i, label %if.end5.i.i.i
if.end5.i.i.i: ; preds = %if.end.i.i.i
%add.ptr.i.i.i.i.i = getelementptr inbounds i32, ptr %p.011.i.i.i, i64 1
%6 = load i32, ptr %add.ptr.i.i.i.i.i, align 4, !tbaa !15
%cmp.i.i.i = icmp eq i32 %6, %4
br i1 %cmp.i.i.i, label %_ZNK11CStringBaseIwE4FindEw.exit.loopexit.i, label %if.end.i.i.i, !llvm.loop !39
_ZNK11CStringBaseIwE4FindEw.exit.loopexit.i: ; preds = %if.end5.i.i.i
%.pre.i = ptrtoint ptr %add.ptr.i.i.i.i.i to i64
br label %_ZNK11CStringBaseIwE4FindEw.exit.i
_ZNK11CStringBaseIwE4FindEw.exit.i: ; preds = %_ZNK11CStringBaseIwE4FindEw.exit.loopexit.i, %for.body.i
%sub.ptr.lhs.cast.i.i.pre-phi.i = phi i64 [ %.pre.i, %_ZNK11CStringBaseIwE4FindEw.exit.loopexit.i ], [ %sub.ptr.rhs.cast.i.i.i, %for.body.i ]
%sub.ptr.sub.i.i.i = sub i64 %sub.ptr.lhs.cast.i.i.pre-phi.i, %sub.ptr.rhs.cast.i.i.i
%7 = and i64 %sub.ptr.sub.i.i.i, 8589934592
%cmp2.i = icmp eq i64 %7, 0
br i1 %cmp2.i, label %cleanup.loopexit.split.loop.exit.i, label %for.inc.i
for.inc.i: ; preds = %if.end.i.i.i, %_ZNK11CStringBaseIwE4FindEw.exit.i
%indvars.iv.next.i = add nuw nsw i64 %indvars.iv.i, 1
%exitcond.not.i = icmp eq i64 %indvars.iv.next.i, %wide.trip.count.i
br i1 %exitcond.not.i, label %_ZNK11CStringBaseIwE9FindOneOfERKS0_.exit, label %for.body.i, !llvm.loop !40
cleanup.loopexit.split.loop.exit.i: ; preds = %_ZNK11CStringBaseIwE4FindEw.exit.i
%8 = and i64 %indvars.iv.i, 2147483648
%9 = icmp eq i64 %8, 0
br label %_ZNK11CStringBaseIwE9FindOneOfERKS0_.exit
_ZNK11CStringBaseIwE9FindOneOfERKS0_.exit: ; preds = %for.inc.i, %entry, %cleanup.loopexit.split.loop.exit.i
%switch.i = phi i1 [ false, %entry ], [ %9, %cleanup.loopexit.split.loop.exit.i ], [ false, %for.inc.i ]
ret i1 %switch.i
}
; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK9NWildcard5CItem9CheckPathERK13CObjectVectorI11CStringBaseIwEEb(ptr nocapture noundef nonnull readonly align 8 dereferenceable(35) %this, ptr nocapture noundef nonnull readonly align 8 dereferenceable(32) %pathParts, i1 noundef zeroext %isFile) local_unnamed_addr #2 align 2 {
entry:
%ForDir = getelementptr inbounds %"struct.NWildcard::CItem", ptr %this, i64 0, i32 3
%0 = load i8, ptr %ForDir, align 2, !range !13
%tobool2.not = icmp ne i8 %0, 0
%or.cond90.not = select i1 %isFile, i1 true, i1 %tobool2.not
br i1 %or.cond90.not, label %if.end, label %return
if.end: ; preds = %entry
%_size.i = getelementptr inbounds %class.CBaseRecordVector, ptr %pathParts, i64 0, i32 2
%1 = load i32, ptr %_size.i, align 4, !tbaa !24
%_size.i82 = getelementptr inbounds %class.CBaseRecordVector, ptr %this, i64 0, i32 2
%2 = load i32, ptr %_size.i82, align 4, !tbaa !24
%sub = sub nsw i32 %1, %2
%cmp = icmp slt i32 %sub, 0
br i1 %cmp, label %return, label %if.end5
if.end5: ; preds = %if.end
br i1 %isFile, label %if.then7, label %if.end5.if.end28_crit_edge
if.end5.if.end28_crit_edge: ; preds = %if.end5
%Recursive29.phi.trans.insert = getelementptr inbounds %"struct.NWildcard::CItem", ptr %this, i64 0, i32 1
%.pre = load i8, ptr %Recursive29.phi.trans.insert, align 8, !tbaa !41, !range !13
%ForFile34.phi.trans.insert = getelementptr inbounds %"struct.NWildcard::CItem", ptr %this, i64 0, i32 2
%.pre115 = load i8, ptr %ForFile34.phi.trans.insert, align 1, !range !13
br label %if.end28
if.then7: ; preds = %if.end5
br i1 %tobool2.not, label %if.end15, label %land.lhs.true10
land.lhs.true10: ; preds = %if.then7
%Recursive = getelementptr inbounds %"struct.NWildcard::CItem", ptr %this, i64 0, i32 1
%3 = load i8, ptr %Recursive, align 8, !tbaa !41, !range !13, !noundef !14
%tobool11.not88 = icmp eq i8 %3, 0
%cmp13 = icmp ne i32 %1, %2
%or.cond = and i1 %cmp13, %tobool11.not88
br i1 %or.cond, label %return, label %if.end15
if.end15: ; preds = %land.lhs.true10, %if.then7
%ForFile = getelementptr inbounds %"struct.NWildcard::CItem", ptr %this, i64 0, i32 2
%4 = load i8, ptr %ForFile, align 1, !range !13, !noundef !14
%tobool16.not89 = icmp eq i8 %4, 0
%cmp18 = icmp eq i32 %1, %2
%or.cond66 = and i1 %cmp18, %tobool16.not89
br i1 %or.cond66, label %return, label %if.end20
if.end20: ; preds = %if.end15
%Recursive24 = getelementptr inbounds %"struct.NWildcard::CItem", ptr %this, i64 0, i32 1
%5 = load i8, ptr %Recursive24, align 8, !range !13
%tobool25.not = icmp eq i8 %5, 0
%or.cond91 = select i1 %tobool2.not, i1 true, i1 %tobool25.not
%spec.select94 = select i1 %or.cond91, i32 0, i32 %sub
br label %if.end28
if.end28: ; preds = %if.end5.if.end28_crit_edge, %if.end20
%6 = phi i8 [ %.pre115, %if.end5.if.end28_crit_edge ], [ %4, %if.end20 ]
%7 = phi i8 [ %.pre, %if.end5.if.end28_crit_edge ], [ %5, %if.end20 ]
%start.0 = phi i32 [ 0, %if.end5.if.end28_crit_edge ], [ %spec.select94, %if.end20 ]
%tobool30.not.not = icmp eq i8 %7, 0
%sext = add nsw i8 %6, -1
%sub37 = sext i8 %sext to i32
%spec.select = select i1 %isFile, i32 %sub37, i32 0
%.mux = add nsw i32 %sub, %spec.select
%finish.0 = select i1 %tobool30.not.not, i32 0, i32 %.mux
%cmp40.not98 = icmp sgt i32 %start.0, %finish.0
br i1 %cmp40.not98, label %cleanup59, label %for.cond41.preheader.lr.ph
for.cond41.preheader.lr.ph: ; preds = %if.end28
%_items.i.i = getelementptr inbounds %class.CBaseRecordVector, ptr %this, i64 0, i32 3
%_items.i.i84 = getelementptr inbounds %class.CBaseRecordVector, ptr %pathParts, i64 0, i32 3
%8 = icmp sgt i32 %2, 0
br i1 %8, label %for.cond41.preheader.preheader, label %for.cond41.preheader.lr.ph.split.us
for.cond41.preheader.preheader: ; preds = %for.cond41.preheader.lr.ph
%9 = zext i32 %start.0 to i64
%10 = sext i32 %finish.0 to i64
%11 = add i32 %finish.0, 1
br label %for.cond41.preheader
for.cond41.preheader.lr.ph.split.us: ; preds = %for.cond41.preheader.lr.ph
%cmp54.not.us = icmp ne i32 %2, 0
br label %cleanup59
for.cond: ; preds = %for.end
%indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
%cmp40.not = icmp sge i64 %indvars.iv112, %10
%lftr.wideiv = trunc i64 %indvars.iv.next113 to i32
%exitcond114 = icmp eq i32 %11, %lftr.wideiv
br i1 %exitcond114, label %cleanup59, label %for.cond41.preheader, !llvm.loop !45
for.cond41.preheader: ; preds = %for.cond41.preheader.preheader, %for.cond
%12 = phi i32 [ %2, %for.cond41.preheader.preheader ], [ %22, %for.cond ]
%indvars.iv112 = phi i64 [ %9, %for.cond41.preheader.preheader ], [ %indvars.iv.next113, %for.cond ]
%cmp40.not100 = phi i1 [ false, %for.cond41.preheader.preheader ], [ %cmp40.not, %for.cond ]
%cmp4495 = icmp sgt i32 %12, 0