; LLVM IR from SSBMTonberry/pocketlzma :: ref_spec/lzma1900/CPP/Common (CommandLineParser)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.NCommandLineParser::CParser" = type { ptr, %class.CObjectVector, i32, %class.AString, %class.UString }
%class.CObjectVector = type { %class.CRecordVector }
%class.CRecordVector = type { ptr, i32, i32 }
%class.AString = type { ptr, i32, i32 }
%class.UString = type { ptr, i32, i32 }
%"struct.NCommandLineParser::CSwitchResult" = type { i8, i8, i32, %class.CObjectVector }

@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UString5EmptyEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13CObjectVectorI7UStringE5ClearEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN13CObjectVectorI7UStringE3AddERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7UString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN7UStringaSERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN18NCommandLineParser13CSwitchResultD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN18NCommandLineParser7CParser11ParseStringERK7UStringPKNS_11CSwitchFormEj(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN18NCommandLineParserL14IsItSwitchCharEw(i32 noundef signext) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN18NCommandLineParser7CParser12ParseStringsEPKNS_11CSwitchFormEjRK13CObjectVectorI7UStringE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(16) %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  %15 = load ptr, ptr %6, align 8
  %16 = getelementptr inbounds %"class.NCommandLineParser::CParser", ptr %15, i32 0, i32 2
  store i32 -1, ptr %16, align 8, !tbaa !11
  %17 = getelementptr inbounds %"class.NCommandLineParser::CParser", ptr %15, i32 0, i32 3
  call void @_ZN7AString5EmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %18 = getelementptr inbounds %"class.NCommandLineParser::CParser", ptr %15, i32 0, i32 4
  call void @_ZN7UString5EmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
  %19 = getelementptr inbounds %"class.NCommandLineParser::CParser", ptr %15, i32 0, i32 1
  call void @_ZN13CObjectVectorI7UStringE5ClearEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %20 = getelementptr inbounds %"class.NCommandLineParser::CParser", ptr %15, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  %22 = icmp eq ptr %21, null
  br i1 %22, label %35, label %23

23:                                               ; preds = %4
  %24 = getelementptr inbounds i8, ptr %21, i64 -8
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds %"struct.NCommandLineParser::CSwitchResult", ptr %21, i64 %25
  %27 = icmp eq ptr %21, %26
  br i1 %27, label %32, label %28

28:                                               ; preds = %28, %23
  %29 = phi ptr [ %26, %23 ], [ %30, %28 ]
  %30 = getelementptr inbounds %"struct.NCommandLineParser::CSwitchResult", ptr %29, i64 -1
  call void @_ZN18NCommandLineParser13CSwitchResultD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  %31 = icmp eq ptr %30, %21
  br i1 %31, label %32, label %28

32:                                               ; preds = %28, %23
  %33 = mul i64 24, %25
  %34 = add i64 %33, 8
  call void @_ZdaPvm(ptr noundef %24, i64 noundef %34) #9
  br label %35

35:                                               ; preds = %32, %4
  %36 = getelementptr inbounds %"class.NCommandLineParser::CParser", ptr %15, i32 0, i32 0
  store ptr null, ptr %36, align 8, !tbaa !17
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %38, i64 24)
  %40 = extractvalue { i64, i1 } %39, 1
  %41 = extractvalue { i64, i1 } %39, 0
  %42 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %41, i64 8)
  %43 = extractvalue { i64, i1 } %42, 1
  %44 = or i1 %40, %43
  %45 = extractvalue { i64, i1 } %42, 0
  %46 = select i1 %44, i64 -1, i64 %45
  %47 = call noalias noundef nonnull ptr @_Znam(i64 noundef %46) #10
  store i64 %38, ptr %47, align 16
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  %49 = icmp eq i64 %38, 0
  br i1 %49, label %57, label %50

50:                                               ; preds = %35
  %51 = getelementptr inbounds %"struct.NCommandLineParser::CSwitchResult", ptr %48, i64 %38
  br label %52

52:                                               ; preds = %54, %50
  %53 = phi ptr [ %48, %50 ], [ %55, %54 ]
  invoke void @_ZN18NCommandLineParser13CSwitchResultC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53)
          to label %54 unwind label %65

54:                                               ; preds = %52
  %55 = getelementptr inbounds %"struct.NCommandLineParser::CSwitchResult", ptr %53, i64 1
  %56 = icmp eq ptr %55, %51
  br i1 %56, label %57, label %52

57:                                               ; preds = %54, %35
  %58 = getelementptr inbounds %"class.NCommandLineParser::CParser", ptr %15, i32 0, i32 0
  store ptr %48, ptr %58, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %116, %57
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %61)
  %63 = icmp ult i32 %60, %62
  br i1 %63, label %75, label %64

64:                                               ; preds = %59
  store i32 2, ptr %13, align 4
  br label %119

65:                                               ; preds = %52
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %10, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %11, align 4
  %69 = icmp eq ptr %48, %53
  br i1 %69, label %74, label %70

70:                                               ; preds = %70, %65
  %71 = phi ptr [ %53, %65 ], [ %72, %70 ]
  %72 = getelementptr inbounds %"struct.NCommandLineParser::CSwitchResult", ptr %71, i64 -1
  call void @_ZN18NCommandLineParser13CSwitchResultD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %72) #8
  %73 = icmp eq ptr %72, %48
  br i1 %73, label %74, label %70

74:                                               ; preds = %70, %65
  call void @_ZdaPvm(ptr noundef %47, i64 noundef %46) #9
  br label %124

75:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16) %76, i32 noundef %77)
  store ptr %78, ptr %14, align 8, !tbaa !5
  %79 = getelementptr inbounds %"class.NCommandLineParser::CParser", ptr %15, i32 0, i32 2
  %80 = load i32, ptr %79, align 8, !tbaa !11
  %81 = icmp slt i32 %80, 0
  br i1 %81, label %82, label %109

82:                                               ; preds = %75
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = call noundef zeroext i1 @_ZNK7UString9IsEqualToEPKc(ptr noundef nonnull align 8 dereferenceable(16) %83, ptr noundef @.str.5)
  br i1 %84, label %85, label %89

85:                                               ; preds = %82
  %86 = getelementptr inbounds %"class.NCommandLineParser::CParser", ptr %15, i32 0, i32 1
  %87 = call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %86)
  %88 = getelementptr inbounds %"class.NCommandLineParser::CParser", ptr %15, i32 0, i32 2
  store i32 %87, ptr %88, align 8, !tbaa !11
  store i32 4, ptr %13, align 4
  br label %113

89:                                               ; preds = %82
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = call noundef zeroext i1 @_ZNK7UString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %90)
  br i1 %91, label %108, label %92

92:                                               ; preds = %89
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = call noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16) %93)
  %95 = getelementptr inbounds i32, ptr %94, i64 0
  %96 = load i32, ptr %95, align 4, !tbaa !18
  %97 = call noundef zeroext i1 @_ZN18NCommandLineParserL14IsItSwitchCharEw(i32 noundef signext %96)
  br i1 %97, label %98, label %108

98:                                               ; preds = %92
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = call noundef zeroext i1 @_ZN18NCommandLineParser7CParser11ParseStringERK7UStringPKNS_11CSwitchFormEj(ptr noundef nonnull align 8 dereferenceable(64) %15, ptr noundef nonnull align 8 dereferenceable(16) %99, ptr noundef %100, i32 noundef %101)
  br i1 %102, label %103, label %104

103:                                              ; preds = %98
  store i32 4, ptr %13, align 4
  br label %113

104:                                              ; preds = %98
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  %106 = getelementptr inbounds %"class.NCommandLineParser::CParser", ptr %15, i32 0, i32 4
  %107 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7UStringaSERKS_(ptr noundef nonnull align 8 dereferenceable(16) %106, ptr noundef nonnull align 8 dereferenceable(16) %105)
  store i1 false, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %113

108:                                              ; preds = %92, %89
  br label %109

109:                                              ; preds = %108, %75
  %110 = getelementptr inbounds %"class.NCommandLineParser::CParser", ptr %15, i32 0, i32 1
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = call noundef i32 @_ZN13CObjectVectorI7UStringE3AddERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %110, ptr noundef nonnull align 8 dereferenceable(16) %111)
  store i32 0, ptr %13, align 4
  br label %113

113:                                              ; preds = %109, %104, %103, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %114 = load i32, ptr %13, align 4
  switch i32 %114, label %119 [
    i32 0, label %115
    i32 4, label %116
  ]

115:                                              ; preds = %113
  br label %116

116:                                              ; preds = %115, %113
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = add i32 %117, 1
  store i32 %118, ptr %12, align 4, !tbaa !9
  br label %59, !llvm.loop !20

119:                                              ; preds = %113, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %120 = load i32, ptr %13, align 4
  switch i32 %120, label %129 [
    i32 2, label %121
    i32 1, label %122
  ]

121:                                              ; preds = %119
  store i1 true, ptr %5, align 1
  br label %122

122:                                              ; preds = %121, %119
  %123 = load i1, ptr %5, align 1
  ret i1 %123

124:                                              ; preds = %74
  %125 = load ptr, ptr %10, align 8
  %126 = load i32, ptr %11, align 4
  %127 = insertvalue { ptr, i32 } poison, ptr %125, 0
  %128 = insertvalue { ptr, i32 } %127, i32 %126, 1
  resume { ptr, i32 } %128

129:                                              ; preds = %119
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7AString5EmptyEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #6

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN18NCommandLineParser13CSwitchResultC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7UString9IsEqualToEPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #0 align 2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { builtin nounwind }
attributes #10 = { builtin allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"_ZTSN18NCommandLineParser7CParserE", !6, i64 0, !13, i64 8, !10, i64 24, !15, i64 32, !16, i64 48}
!13 = !{!"_ZTS13CObjectVectorI7UStringE", !14, i64 0}
!14 = !{!"_ZTS13CRecordVectorIPvE", !6, i64 0, !10, i64 8, !10, i64 12}
!15 = !{!"_ZTS7AString", !6, i64 0, !10, i64 8, !10, i64 12}
!16 = !{!"_ZTS7UString", !6, i64 0, !10, i64 8, !10, i64 12}
!17 = !{!12, !6, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"wchar_t", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.NCommandLineParser::CSwitchResult" = type { i8, i8, i32, %class.CObjectVector }
%class.CObjectVector = type { %class.CRecordVector }
%class.CRecordVector = type { ptr, i32, i32 }

@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UString5EmptyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13CObjectVectorI7UStringE5ClearEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN13CObjectVectorI7UStringE3AddERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7UString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN7UStringaSERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN18NCommandLineParser13CSwitchResultD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN18NCommandLineParser7CParser11ParseStringERK7UStringPKNS_11CSwitchFormEj(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN18NCommandLineParserL14IsItSwitchCharEw(i32 noundef signext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN18NCommandLineParser7CParser12ParseStringsEPKNS_11CSwitchFormEjRK13CObjectVectorI7UStringE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(16) %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 -1, ptr %5, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZN7AString5EmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZN7UString5EmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN13CObjectVectorI7UStringE5ClearEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %9 = load ptr, ptr %0, align 8, !tbaa !15
  %10 = icmp eq ptr %9, null
  br i1 %10, label %21, label %11

11:                                               ; preds = %4
  %12 = getelementptr inbounds i8, ptr %9, i64 -8
  %13 = load i64, ptr %12, align 8
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %.loopexit37, label %.preheader36.preheader

.preheader36.preheader:                           ; preds = %11
  %15 = getelementptr inbounds %"struct.NCommandLineParser::CSwitchResult", ptr %9, i64 %13
  br label %.preheader36

.preheader36:                                     ; preds = %.preheader36.preheader, %.preheader36
  %16 = phi ptr [ %17, %.preheader36 ], [ %15, %.preheader36.preheader ]
  %17 = getelementptr inbounds i8, ptr %16, i64 -24
  tail call void @_ZN18NCommandLineParser13CSwitchResultD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %18 = icmp eq ptr %17, %9
  br i1 %18, label %.loopexit37, label %.preheader36

.loopexit37:                                      ; preds = %.preheader36, %11
  %19 = mul i64 %13, 24
  %20 = add i64 %19, 8
  tail call void @_ZdaPvm(ptr noundef nonnull %12, i64 noundef %20) #7
  br label %21

21:                                               ; preds = %.loopexit37, %4
  store ptr null, ptr %0, align 8, !tbaa !15
  %22 = zext i32 %2 to i64
  %23 = mul nuw nsw i64 %22, 24
  %24 = add nuw nsw i64 %23, 8
  %25 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %24) #8
  store i64 %22, ptr %25, align 16
  %.ptr28 = getelementptr inbounds i8, ptr %25, i64 8
  %26 = icmp eq i32 %2, 0
  br i1 %26, label %.loopexit35, label %27

27:                                               ; preds = %21
  %28 = getelementptr inbounds %"struct.NCommandLineParser::CSwitchResult", ptr %.ptr28, i64 %22
  br label %29

29:                                               ; preds = %30, %27
  %.idx = phi i64 [ 8, %27 ], [ %.add, %30 ]
  %.ptr.ptr = getelementptr inbounds i8, ptr %25, i64 %.idx
  invoke void @_ZN18NCommandLineParser13CSwitchResultC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.ptr)
          to label %30 unwind label %34

30:                                               ; preds = %29
  %.add = add nuw nsw i64 %.idx, 24
  %.ptr27 = getelementptr inbounds i8, ptr %25, i64 %.add
  %31 = icmp eq ptr %.ptr27, %28
  br i1 %31, label %.loopexit35, label %29

.loopexit35:                                      ; preds = %30, %21
  store ptr %.ptr28, ptr %0, align 8, !tbaa !15
  %32 = tail call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %.loopexit, label %.lr.ph

34:                                               ; preds = %29
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = icmp eq i64 %.idx, 8
  br i1 %36, label %.loopexit34, label %.preheader

.preheader:                                       ; preds = %34, %.preheader
  %.idx29 = phi i64 [ %.add30, %.preheader ], [ %.idx, %34 ]
  %.add30 = add nsw i64 %.idx29, -24
  %.ptr32 = getelementptr inbounds i8, ptr %25, i64 %.add30
  tail call void @_ZN18NCommandLineParser13CSwitchResultD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr32) #6
  %37 = icmp eq i64 %.add30, 8
  br i1 %37, label %.loopexit34, label %.preheader

.loopexit34:                                      ; preds = %.preheader, %34
  tail call void @_ZdaPvm(ptr noundef nonnull %25, i64 noundef %24) #7
  resume { ptr, i32 } %35

.lr.ph:                                           ; preds = %.loopexit35, %57
  %.02141 = phi i32 [ %58, %57 ], [ 0, %.loopexit35 ]
  %38 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef %.02141)
  %39 = load i32, ptr %5, align 8, !tbaa !5
  %40 = icmp slt i32 %39, 0
  br i1 %40, label %41, label %53

41:                                               ; preds = %.lr.ph
  %42 = tail call noundef zeroext i1 @_ZNK7UString9IsEqualToEPKc(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull @.str.5)
  br i1 %42, label %43, label %45

43:                                               ; preds = %41
  %44 = tail call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  store i32 %44, ptr %5, align 8, !tbaa !5
  br label %57

45:                                               ; preds = %41
  %46 = tail call noundef zeroext i1 @_ZNK7UString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
  br i1 %46, label %53, label %47

47:                                               ; preds = %45
  %48 = tail call noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
  %49 = load i32, ptr %48, align 4, !tbaa !16
  %50 = tail call noundef zeroext i1 @_ZN18NCommandLineParserL14IsItSwitchCharEw(i32 noundef signext %49)
  br i1 %50, label %51, label %53

51:                                               ; preds = %47
  %52 = tail call noundef zeroext i1 @_ZN18NCommandLineParser7CParser11ParseStringERK7UStringPKNS_11CSwitchFormEj(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef %1, i32 noundef %2)
  br i1 %52, label %57, label %55

53:                                               ; preds = %45, %47, %.lr.ph
  %54 = tail call noundef i32 @_ZN13CObjectVectorI7UStringE3AddERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %38)
  br label %57

55:                                               ; preds = %51
  %56 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7UStringaSERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %38)
  br label %.loopexit

57:                                               ; preds = %43, %53, %51
  %58 = add nuw i32 %.02141, 1
  %59 = tail call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %.not = icmp ult i32 %58, %59
  br i1 %.not, label %.lr.ph, label %.loopexit, !llvm.loop !18

.loopexit:                                        ; preds = %57, %.loopexit35, %55
  %60 = phi i1 [ false, %55 ], [ true, %.loopexit35 ], [ true, %57 ]
  ret i1 %60
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7AString5EmptyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN18NCommandLineParser13CSwitchResultC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7UString9IsEqualToEPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #0 align 2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { builtin nounwind }
attributes #8 = { builtin allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 24}
!6 = !{!"_ZTSN18NCommandLineParser7CParserE", !7, i64 0, !10, i64 8, !12, i64 24, !13, i64 32, !14, i64 48}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS13CObjectVectorI7UStringE", !11, i64 0}
!11 = !{!"_ZTS13CRecordVectorIPvE", !7, i64 0, !12, i64 8, !12, i64 12}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTS7AString", !7, i64 0, !12, i64 8, !12, i64 12}
!14 = !{!"_ZTS7UString", !7, i64 0, !12, i64 8, !12, i64 12}
!15 = !{!6, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"wchar_t", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass