; LLVM IR from nfrechette/acl-gltf :: acl-gltf/sources (command_line_options)

; 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"

%struct.command_line_options = type { i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z28parse_command_line_argumentsiPPcR20command_line_options(i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(104) %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.command_line_options, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 104, ptr %8) #6
  call void @_ZN20command_line_optionsC1Ev(ptr noundef nonnull align 8 dereferenceable(104) %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %175, %3
  %15 = load i32, ptr %9, align 4, !tbaa !5
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  store i32 2, ptr %10, align 4
  br label %178

19:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %20 = load ptr, ptr %6, align 8, !tbaa !9
  %21 = load i32, ptr %9, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds ptr, ptr %20, i64 %22
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  store ptr %24, ptr %11, align 8, !tbaa !9
  %25 = load ptr, ptr %11, align 8, !tbaa !9
  %26 = invoke noundef zeroext i1 @_ZL12is_str_equalPKcS0_(ptr noundef %25, ptr noundef @.str)
          to label %27 unwind label %36

27:                                               ; preds = %19
  br i1 %26, label %28, label %77

28:                                               ; preds = %27
  %29 = getelementptr inbounds %struct.command_line_options, ptr %8, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !11
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %40

32:                                               ; preds = %28
  %33 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %34 unwind label %36

34:                                               ; preds = %32
  invoke void @_ZL11print_usagev()
          to label %35 unwind label %36

35:                                               ; preds = %34
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %172

36:                                               ; preds = %158, %147, %145, %143, %136, %134, %126, %114, %98, %96, %94, %87, %85, %77, %65, %49, %47, %45, %34, %32, %19
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %12, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %196

40:                                               ; preds = %28
  %41 = load i32, ptr %9, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  %43 = load i32, ptr %5, align 4, !tbaa !5
  %44 = icmp eq i32 %42, %43
  br i1 %44, label %45, label %49

45:                                               ; preds = %40
  %46 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2)
          to label %47 unwind label %36

47:                                               ; preds = %45
  invoke void @_ZL11print_usagev()
          to label %48 unwind label %36

48:                                               ; preds = %47
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %172

49:                                               ; preds = %40
  %50 = load i32, ptr %9, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %9, align 4, !tbaa !5
  %52 = getelementptr inbounds %struct.command_line_options, ptr %8, i32 0, i32 0
  store i32 1, ptr %52, align 8, !tbaa !11
  %53 = load ptr, ptr %6, align 8, !tbaa !9
  %54 = load i32, ptr %9, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds ptr, ptr %53, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct.command_line_options, ptr %8, i32 0, i32 1
  %59 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %58, ptr noundef %57)
          to label %60 unwind label %36

60:                                               ; preds = %49
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %65, label %76

65:                                               ; preds = %60
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %9, align 4, !tbaa !5
  %68 = load ptr, ptr %6, align 8, !tbaa !9
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds ptr, ptr %68, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct.command_line_options, ptr %8, i32 0, i32 3
  %74 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %73, ptr noundef %72)
          to label %75 unwind label %36

75:                                               ; preds = %65
  br label %76

76:                                               ; preds = %75, %60
  br label %171

77:                                               ; preds = %27
  %78 = load ptr, ptr %11, align 8, !tbaa !9
  %79 = invoke noundef zeroext i1 @_ZL12is_str_equalPKcS0_(ptr noundef %78, ptr noundef @.str.3)
          to label %80 unwind label %36

80:                                               ; preds = %77
  br i1 %79, label %81, label %126

81:                                               ; preds = %80
  %82 = getelementptr inbounds %struct.command_line_options, ptr %8, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !11
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %89

85:                                               ; preds = %81
  %86 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %87 unwind label %36

87:                                               ; preds = %85
  invoke void @_ZL11print_usagev()
          to label %88 unwind label %36

88:                                               ; preds = %87
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %172

89:                                               ; preds = %81
  %90 = load i32, ptr %9, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = icmp eq i32 %91, %92
  br i1 %93, label %94, label %98

94:                                               ; preds = %89
  %95 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4)
          to label %96 unwind label %36

96:                                               ; preds = %94
  invoke void @_ZL11print_usagev()
          to label %97 unwind label %36

97:                                               ; preds = %96
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %172

98:                                               ; preds = %89
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %9, align 4, !tbaa !5
  %101 = getelementptr inbounds %struct.command_line_options, ptr %8, i32 0, i32 0
  store i32 2, ptr %101, align 8, !tbaa !11
  %102 = load ptr, ptr %6, align 8, !tbaa !9
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds ptr, ptr %102, i64 %104
  %106 = load ptr, ptr %105, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.command_line_options, ptr %8, i32 0, i32 1
  %108 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %107, ptr noundef %106)
          to label %109 unwind label %36

109:                                              ; preds = %98
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  %112 = load i32, ptr %5, align 4, !tbaa !5
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %114, label %125

114:                                              ; preds = %109
  %115 = load i32, ptr %9, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %9, align 4, !tbaa !5
  %117 = load ptr, ptr %6, align 8, !tbaa !9
  %118 = load i32, ptr %9, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds ptr, ptr %117, i64 %119
  %121 = load ptr, ptr %120, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct.command_line_options, ptr %8, i32 0, i32 3
  %123 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %122, ptr noundef %121)
          to label %124 unwind label %36

124:                                              ; preds = %114
  br label %125

125:                                              ; preds = %124, %109
  br label %170

126:                                              ; preds = %80
  %127 = load ptr, ptr %11, align 8, !tbaa !9
  %128 = invoke noundef zeroext i1 @_ZL12is_str_equalPKcS0_(ptr noundef %127, ptr noundef @.str.5)
          to label %129 unwind label %36

129:                                              ; preds = %126
  br i1 %128, label %130, label %169

130:                                              ; preds = %129
  %131 = getelementptr inbounds %struct.command_line_options, ptr %8, i32 0, i32 0
  %132 = load i32, ptr %131, align 8, !tbaa !11
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %138

134:                                              ; preds = %130
  %135 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %136 unwind label %36

136:                                              ; preds = %134
  invoke void @_ZL11print_usagev()
          to label %137 unwind label %36

137:                                              ; preds = %136
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %172

138:                                              ; preds = %130
  %139 = load i32, ptr %9, align 4, !tbaa !5
  %140 = add nsw i32 %139, 3
  %141 = load i32, ptr %5, align 4, !tbaa !5
  %142 = icmp ne i32 %140, %141
  br i1 %142, label %143, label %147

143:                                              ; preds = %138
  %144 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6)
          to label %145 unwind label %36

145:                                              ; preds = %143
  invoke void @_ZL11print_usagev()
          to label %146 unwind label %36

146:                                              ; preds = %145
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %172

147:                                              ; preds = %138
  %148 = load i32, ptr %9, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %9, align 4, !tbaa !5
  %150 = getelementptr inbounds %struct.command_line_options, ptr %8, i32 0, i32 0
  store i32 3, ptr %150, align 8, !tbaa !11
  %151 = load ptr, ptr %6, align 8, !tbaa !9
  %152 = load i32, ptr %9, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds ptr, ptr %151, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct.command_line_options, ptr %8, i32 0, i32 1
  %157 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %156, ptr noundef %155)
          to label %158 unwind label %36

158:                                              ; preds = %147
  %159 = load i32, ptr %9, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %9, align 4, !tbaa !5
  %161 = load ptr, ptr %6, align 8, !tbaa !9
  %162 = load i32, ptr %9, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds ptr, ptr %161, i64 %163
  %165 = load ptr, ptr %164, align 8, !tbaa !9
  %166 = getelementptr inbounds %struct.command_line_options, ptr %8, i32 0, i32 2
  %167 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %166, ptr noundef %165)
          to label %168 unwind label %36

168:                                              ; preds = %158
  br label %169

169:                                              ; preds = %168, %129
  br label %170

170:                                              ; preds = %169, %125
  br label %171

171:                                              ; preds = %170, %76
  store i32 0, ptr %10, align 4
  br label %172

172:                                              ; preds = %171, %146, %137, %97, %88, %48, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %173 = load i32, ptr %10, align 4
  switch i32 %173, label %178 [
    i32 0, label %174
  ]

174:                                              ; preds = %172
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %9, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %9, align 4, !tbaa !5
  br label %14, !llvm.loop !17

178:                                              ; preds = %172, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  %179 = load i32, ptr %10, align 4
  switch i32 %179, label %194 [
    i32 2, label %180
  ]

180:                                              ; preds = %178
  %181 = getelementptr inbounds %struct.command_line_options, ptr %8, i32 0, i32 0
  %182 = load i32, ptr %181, align 8, !tbaa !11
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %184, label %190

184:                                              ; preds = %180
  invoke void @_ZL11print_usagev()
          to label %185 unwind label %186

185:                                              ; preds = %184
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %194

186:                                              ; preds = %190, %184
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %12, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %13, align 4
  br label %196

190:                                              ; preds = %180
  %191 = load ptr, ptr %7, align 8, !tbaa !9
  %192 = invoke noundef nonnull align 8 dereferenceable(104) ptr @_ZN20command_line_optionsaSERKS_(ptr noundef nonnull align 8 dereferenceable(104) %191, ptr noundef nonnull align 8 dereferenceable(104) %8)
          to label %193 unwind label %186

193:                                              ; preds = %190
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %194

194:                                              ; preds = %193, %185, %178
  call void @_ZN20command_line_optionsD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %8) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %8) #6
  %195 = load i1, ptr %4, align 1
  ret i1 %195

196:                                              ; preds = %186, %36
  call void @_ZN20command_line_optionsD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %8) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %8) #6
  br label %197

197:                                              ; preds = %196
  %198 = load ptr, ptr %12, align 8
  %199 = load i32, ptr %13, align 4
  %200 = insertvalue { ptr, i32 } poison, ptr %198, 0
  %201 = insertvalue { ptr, i32 } %200, i32 %199, 1
  resume { ptr, i32 } %201
}

; 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 hidden noundef zeroext i1 @_ZL12is_str_equalPKcS0_(ptr noundef, ptr noundef) #2

declare i32 @__gxx_personality_v0(...)

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11print_usagev() #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZN20command_line_optionsaSERKS_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(104)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN20command_line_optionsD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #5 align 2

declare void @_ZN20command_line_optionsC1Ev(ptr)

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 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 = { 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 #6 = { nounwind }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS20command_line_options", !13, i64 0, !14, i64 8, !14, i64 40, !14, i64 72}
!13 = !{!"_ZTS19command_line_action", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !16, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"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.command_line_options = type { i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z28parse_command_line_argumentsiPPcR20command_line_options(i32 noundef %0, ptr nocapture noundef readonly %1, ptr noundef nonnull align 8 dereferenceable(104) %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.command_line_options, align 8
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %4) #6
  call void @_ZN20command_line_optionsC1Ev(ptr noundef nonnull align 8 dereferenceable(104) %4)
  %invariant.gep = getelementptr i8, ptr %1, i64 8
  %.not5762 = icmp sgt i32 %0, 1
  br i1 %.not5762, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %3
  %5 = getelementptr inbounds i8, ptr %4, i64 8
  %6 = getelementptr inbounds i8, ptr %4, i64 40
  %7 = getelementptr inbounds i8, ptr %4, i64 72
  br label %8

8:                                                ; preds = %.lr.ph, %67
  %.04663 = phi i32 [ 1, %.lr.ph ], [ %68, %67 ]
  %9 = sext i32 %.04663 to i64
  %10 = getelementptr inbounds ptr, ptr %1, i64 %9
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = call noundef zeroext i1 @_ZL12is_str_equalPKcS0_(ptr noundef %11, ptr noundef nonnull @.str)
  br i1 %12, label %13, label %32

13:                                               ; preds = %8
  %14 = load i32, ptr %4, align 8, !tbaa !9
  %.not56 = icmp eq i32 %14, 0
  br i1 %.not56, label %16, label %.invoke

.invoke:                                          ; preds = %13, %56, %54, %36, %34, %16
  %.str.6.sink = phi ptr [ @.str.2, %16 ], [ @.str.1, %34 ], [ @.str.4, %36 ], [ @.str.1, %54 ], [ @.str.6, %56 ], [ @.str.1, %13 ]
  %15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink)
  invoke void @_ZL11print_usagev()
          to label %76 unwind label %.loopexit.split-lp

.loopexit:                                        ; preds = %19, %27, %39, %47, %58, %61
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %77

.loopexit.split-lp:                               ; preds = %.invoke
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %77

16:                                               ; preds = %13
  %17 = add nsw i32 %.04663, 1
  %18 = icmp eq i32 %17, %0
  br i1 %18, label %.invoke, label %19

19:                                               ; preds = %16
  store i32 1, ptr %4, align 8, !tbaa !9
  %20 = sext i32 %17 to i64
  %21 = getelementptr inbounds ptr, ptr %1, i64 %20
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %22)
          to label %24 unwind label %.loopexit

24:                                               ; preds = %19
  %25 = add nsw i32 %.04663, 2
  %26 = icmp slt i32 %25, %0
  br i1 %26, label %27, label %67

27:                                               ; preds = %24
  %28 = sext i32 %25 to i64
  %29 = getelementptr inbounds ptr, ptr %1, i64 %28
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef %30)
          to label %67 unwind label %.loopexit

32:                                               ; preds = %8
  %33 = call noundef zeroext i1 @_ZL12is_str_equalPKcS0_(ptr noundef %11, ptr noundef nonnull @.str.3)
  br i1 %33, label %34, label %52

34:                                               ; preds = %32
  %35 = load i32, ptr %4, align 8, !tbaa !9
  %.not55 = icmp eq i32 %35, 0
  br i1 %.not55, label %36, label %.invoke

36:                                               ; preds = %34
  %37 = add nsw i32 %.04663, 1
  %38 = icmp eq i32 %37, %0
  br i1 %38, label %.invoke, label %39

39:                                               ; preds = %36
  store i32 2, ptr %4, align 8, !tbaa !9
  %40 = sext i32 %37 to i64
  %41 = getelementptr inbounds ptr, ptr %1, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %42)
          to label %44 unwind label %.loopexit

44:                                               ; preds = %39
  %45 = add nsw i32 %.04663, 2
  %46 = icmp slt i32 %45, %0
  br i1 %46, label %47, label %67

47:                                               ; preds = %44
  %48 = sext i32 %45 to i64
  %49 = getelementptr inbounds ptr, ptr %1, i64 %48
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef %50)
          to label %67 unwind label %.loopexit

52:                                               ; preds = %32
  %53 = call noundef zeroext i1 @_ZL12is_str_equalPKcS0_(ptr noundef %11, ptr noundef nonnull @.str.5)
  br i1 %53, label %54, label %67

54:                                               ; preds = %52
  %55 = load i32, ptr %4, align 8, !tbaa !9
  %.not = icmp eq i32 %55, 0
  br i1 %.not, label %56, label %.invoke

56:                                               ; preds = %54
  %57 = add nsw i32 %.04663, 3
  %.not54 = icmp eq i32 %57, %0
  br i1 %.not54, label %58, label %.invoke

58:                                               ; preds = %56
  store i32 3, ptr %4, align 8, !tbaa !9
  %gep = getelementptr ptr, ptr %invariant.gep, i64 %9
  %59 = load ptr, ptr %gep, align 8, !tbaa !5
  %60 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %59)
          to label %61 unwind label %.loopexit

61:                                               ; preds = %58
  %62 = add nsw i32 %.04663, 2
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds ptr, ptr %1, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef %65)
          to label %67 unwind label %.loopexit

67:                                               ; preds = %47, %44, %61, %52, %24, %27
  %.248.ph = phi i32 [ %.04663, %52 ], [ %62, %61 ], [ %37, %44 ], [ %45, %47 ], [ %17, %24 ], [ %25, %27 ]
  %68 = add nsw i32 %.248.ph, 1
  %.not57 = icmp slt i32 %68, %0
  br i1 %.not57, label %8, label %.critedge, !llvm.loop !15

.critedge:                                        ; preds = %67, %3
  %69 = load i32, ptr %4, align 8, !tbaa !9
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %74

71:                                               ; preds = %.critedge
  invoke void @_ZL11print_usagev()
          to label %76 unwind label %72

72:                                               ; preds = %74, %71
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %77

74:                                               ; preds = %.critedge
  %75 = invoke noundef nonnull align 8 dereferenceable(104) ptr @_ZN20command_line_optionsaSERKS_(ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull align 8 dereferenceable(104) %4)
          to label %76 unwind label %72

76:                                               ; preds = %.invoke, %74, %71
  %.3 = phi i1 [ false, %71 ], [ true, %74 ], [ false, %.invoke ]
  call void @_ZN20command_line_optionsD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %4) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %4) #6
  ret i1 %.3

77:                                               ; preds = %.loopexit, %.loopexit.split-lp, %72
  %.pn = phi { ptr, i32 } [ %73, %72 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN20command_line_optionsD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %4) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress 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 hidden noundef zeroext i1 @_ZL12is_str_equalPKcS0_(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11print_usagev() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZN20command_line_optionsaSERKS_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN20command_line_optionsD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #5 align 2

declare void @_ZN20command_line_optionsC1Ev(ptr) local_unnamed_addr

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nofree 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 #4 = { inlinehint 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 #5 = { 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 #6 = { nounwind }

!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, !11, i64 0}
!10 = !{!"_ZTS20command_line_options", !11, i64 0, !12, i64 8, !12, i64 40, !12, i64 72}
!11 = !{!"_ZTS19command_line_action", !7, i64 0}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !14, i64 8, !7, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass