; LLVM IR from thepowersgang/mrustc :: tools/testrunner/main.ll (ZN7Options5parseEiPPKc)

; 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.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] }
%"class.std::allocator" = type { i8 }
%struct.Options = type <{ ptr, ptr, %"class.std::vector.3", i8, [7 x i8], %"class.std::vector.3", i32, [4 x i8], ptr, i8, [7 x i8] }>
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [12 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7Options5parseEiPPKc(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef %1, ptr noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %186, %3
  %19 = load i32, ptr %8, align 4, !tbaa !9
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  store i32 2, ptr %9, align 4
  br label %190

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = load i32, ptr %8, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds ptr, ptr %24, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %28, ptr %10, align 8, !tbaa !5
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 0
  %31 = load i8, ptr %30, align 1, !tbaa !11
  %32 = sext i8 %31 to i32
  %33 = icmp ne i32 %32, 45
  br i1 %33, label %34, label %56

34:                                               ; preds = %23
  %35 = getelementptr inbounds %struct.Options, ptr %17, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !12
  %37 = icmp ne ptr %36, null
  br i1 %37, label %41, label %38

38:                                               ; preds = %34
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.Options, ptr %17, i32 0, i32 1
  store ptr %39, ptr %40, align 8, !tbaa !12
  br label %55

41:                                               ; preds = %34
  %42 = getelementptr inbounds %struct.Options, ptr %17, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #4
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef %43, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %44 unwind label %46

44:                                               ; preds = %41
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %45 unwind label %50

45:                                               ; preds = %44
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  br label %55

46:                                               ; preds = %41
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %13, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %14, align 4
  br label %54

50:                                               ; preds = %44
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %13, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  br label %54

54:                                               ; preds = %50, %46
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  br label %189

55:                                               ; preds = %45, %38
  br label %182

56:                                               ; preds = %23
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 1
  %59 = load i8, ptr %58, align 1, !tbaa !11
  %60 = sext i8 %59 to i32
  %61 = icmp ne i32 %60, 45
  br i1 %61, label %62, label %119

62:                                               ; preds = %56
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 1
  %65 = load i8, ptr %64, align 1, !tbaa !11
  %66 = sext i8 %65 to i32
  switch i32 %66, label %117 [
    i32 111, label %67
    i32 118, label %86
    i32 103, label %90
    i32 76, label %92
  ]

67:                                               ; preds = %62
  %68 = getelementptr inbounds %struct.Options, ptr %17, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !19
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %72

71:                                               ; preds = %67
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %17)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %183

72:                                               ; preds = %67
  %73 = load i32, ptr %8, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  %75 = load i32, ptr %6, align 4, !tbaa !9
  %76 = icmp eq i32 %74, %75
  br i1 %76, label %77, label %78

77:                                               ; preds = %72
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %17)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %183

78:                                               ; preds = %72
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = load i32, ptr %8, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %8, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds ptr, ptr %79, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.Options, ptr %17, i32 0, i32 0
  store ptr %84, ptr %85, align 8, !tbaa !19
  br label %118

86:                                               ; preds = %62
  %87 = getelementptr inbounds %struct.Options, ptr %17, i32 0, i32 6
  %88 = load i32, ptr %87, align 8, !tbaa !20
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %87, align 8, !tbaa !20
  br label %118

90:                                               ; preds = %62
  %91 = getelementptr inbounds %struct.Options, ptr %17, i32 0, i32 3
  store i8 1, ptr %91, align 8, !tbaa !21
  br label %118

92:                                               ; preds = %62
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = icmp eq i32 %94, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %92
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %17)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %183

98:                                               ; preds = %92
  %99 = getelementptr inbounds %struct.Options, ptr %17, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #4
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %8, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds ptr, ptr %100, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef %105, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %106 unwind label %108

106:                                              ; preds = %98
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %99, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %107 unwind label %112

107:                                              ; preds = %106
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  br label %118

108:                                              ; preds = %98
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %13, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %14, align 4
  br label %116

112:                                              ; preds = %106
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %13, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  br label %116

116:                                              ; preds = %112, %108
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  br label %189

117:                                              ; preds = %62
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %17)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %183

118:                                              ; preds = %107, %90, %86, %78
  br label %181

119:                                              ; preds = %56
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = call i32 @strcmp(ptr noundef %120, ptr noundef @.str.34) #5
  %122 = icmp eq i32 0, %121
  br i1 %122, label %123, label %124

123:                                              ; preds = %119
  call void @_ZNK7Options10usage_fullEv(ptr noundef nonnull align 8 dereferenceable(89) %17)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %183

124:                                              ; preds = %119
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = call i32 @strcmp(ptr noundef %125, ptr noundef @.str.35) #5
  %127 = icmp eq i32 0, %126
  br i1 %127, label %128, label %147

128:                                              ; preds = %124
  %129 = getelementptr inbounds %struct.Options, ptr %17, i32 0, i32 8
  %130 = load ptr, ptr %129, align 8, !tbaa !22
  %131 = icmp ne ptr %130, null
  br i1 %131, label %132, label %133

132:                                              ; preds = %128
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %17)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %183

133:                                              ; preds = %128
  %134 = load i32, ptr %8, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  %136 = load i32, ptr %6, align 4, !tbaa !9
  %137 = icmp eq i32 %135, %136
  br i1 %137, label %138, label %139

138:                                              ; preds = %133
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %17)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %183

139:                                              ; preds = %133
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = load i32, ptr %8, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %8, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds ptr, ptr %140, i64 %143
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.Options, ptr %17, i32 0, i32 8
  store ptr %145, ptr %146, align 8, !tbaa !22
  br label %179

147:                                              ; preds = %124
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = call i32 @strcmp(ptr noundef %148, ptr noundef @.str.36) #5
  %150 = icmp eq i32 0, %149
  br i1 %150, label %151, label %170

151:                                              ; preds = %147
  %152 = getelementptr inbounds %struct.Options, ptr %17, i32 0, i32 0
  %153 = load ptr, ptr %152, align 8, !tbaa !19
  %154 = icmp ne ptr %153, null
  br i1 %154, label %155, label %156

155:                                              ; preds = %151
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %17)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %183

156:                                              ; preds = %151
  %157 = load i32, ptr %8, align 4, !tbaa !9
  %158 = add nsw i32 %157, 1
  %159 = load i32, ptr %6, align 4, !tbaa !9
  %160 = icmp eq i32 %158, %159
  br i1 %160, label %161, label %162

161:                                              ; preds = %156
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %17)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %183

162:                                              ; preds = %156
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = load i32, ptr %8, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %8, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds ptr, ptr %163, i64 %166
  %168 = load ptr, ptr %167, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.Options, ptr %17, i32 0, i32 0
  store ptr %168, ptr %169, align 8, !tbaa !19
  br label %178

170:                                              ; preds = %147
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = call i32 @strcmp(ptr noundef %171, ptr noundef @.str.37) #5
  %173 = icmp eq i32 0, %172
  br i1 %173, label %174, label %176

174:                                              ; preds = %170
  %175 = getelementptr inbounds %struct.Options, ptr %17, i32 0, i32 9
  store i8 1, ptr %175, align 8, !tbaa !23
  br label %177

176:                                              ; preds = %170
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %17)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %183

177:                                              ; preds = %174
  br label %178

178:                                              ; preds = %177, %162
  br label %179

179:                                              ; preds = %178, %139
  br label %180

180:                                              ; preds = %179
  br label %181

181:                                              ; preds = %180, %118
  br label %182

182:                                              ; preds = %181, %55
  store i32 0, ptr %9, align 4
  br label %183

183:                                              ; preds = %182, %176, %161, %155, %138, %132, %123, %117, %97, %77, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %184 = load i32, ptr %9, align 4
  switch i32 %184, label %190 [
    i32 0, label %185
  ]

185:                                              ; preds = %183
  br label %186

186:                                              ; preds = %185
  %187 = load i32, ptr %8, align 4, !tbaa !9
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %8, align 4, !tbaa !9
  br label %18, !llvm.loop !24

189:                                              ; preds = %116, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %195

190:                                              ; preds = %183, %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %191 = load i32, ptr %9, align 4
  switch i32 %191, label %200 [
    i32 2, label %192
    i32 1, label %193
  ]

192:                                              ; preds = %190
  store i32 0, ptr %4, align 4
  br label %193

193:                                              ; preds = %192, %190
  %194 = load i32, ptr %4, align 4
  ret i32 %194

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

200:                                              ; preds = %190
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89)) #1 align 2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK7Options10usage_fullEv(ptr noundef nonnull align 8 dereferenceable(89)) #1 align 2

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

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

!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 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 8}
!13 = !{!"_ZTS7Options", !6, i64 0, !6, i64 8, !14, i64 16, !18, i64 40, !14, i64 48, !10, i64 72, !6, i64 80, !18, i64 88}
!14 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"bool", !7, i64 0}
!19 = !{!13, !6, i64 0}
!20 = !{!13, !10, i64 72}
!21 = !{!13, !18, i64 40}
!22 = !{!13, !6, i64 80}
!23 = !{!13, !18, i64 88}
!24 = distinct !{!24, !25}
!25 = !{!"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"

%"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] }
%"class.std::allocator" = type { i8 }

@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [12 x i8], align 1

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

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) #0

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7Options5parseEiPPKc(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %.not6465 = icmp sgt i32 %1, 1
  br i1 %.not6465, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = getelementptr inbounds i8, ptr %0, i64 48
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = getelementptr inbounds i8, ptr %0, i64 72
  %13 = getelementptr inbounds i8, ptr %0, i64 88
  %14 = getelementptr inbounds i8, ptr %0, i64 80
  br label %15

15:                                               ; preds = %.lr.ph, %102
  %.04366 = phi i32 [ 1, %.lr.ph ], [ %103, %102 ]
  %16 = sext i32 %.04366 to i64
  %17 = getelementptr inbounds ptr, ptr %2, i64 %16
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = load i8, ptr %18, align 1, !tbaa !9
  %.not = icmp eq i8 %19, 45
  br i1 %.not, label %31, label %20

20:                                               ; preds = %15
  %21 = load ptr, ptr %8, align 8, !tbaa !10
  %.not57 = icmp eq ptr %21, null
  br i1 %.not57, label %22, label %23

22:                                               ; preds = %20
  store ptr %18, ptr %8, align 8, !tbaa !10
  br label %102

23:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull %18, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %24 unwind label %26

24:                                               ; preds = %23
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %25 unwind label %28

25:                                               ; preds = %24
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  br label %102

26:                                               ; preds = %23
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %30

28:                                               ; preds = %24
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  br label %30

30:                                               ; preds = %28, %26
  %.pn58 = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  br label %104

31:                                               ; preds = %15
  %32 = getelementptr inbounds i8, ptr %18, i64 1
  %33 = load i8, ptr %32, align 1, !tbaa !9
  switch i8 %33, label %64 [
    i8 45, label %65
    i8 111, label %34
    i8 118, label %45
    i8 103, label %48
    i8 76, label %49
  ]

34:                                               ; preds = %31
  %35 = load ptr, ptr %0, align 8, !tbaa !18
  %.not56 = icmp eq ptr %35, null
  br i1 %.not56, label %37, label %36

36:                                               ; preds = %34
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %0)
  br label %.thread

37:                                               ; preds = %34
  %38 = add nsw i32 %.04366, 1
  %39 = icmp eq i32 %38, %1
  br i1 %39, label %40, label %41

40:                                               ; preds = %37
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %0)
  br label %.thread

41:                                               ; preds = %37
  %42 = sext i32 %38 to i64
  %43 = getelementptr inbounds ptr, ptr %2, i64 %42
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  store ptr %44, ptr %0, align 8, !tbaa !18
  br label %102

45:                                               ; preds = %31
  %46 = load i32, ptr %12, align 8, !tbaa !19
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %12, align 8, !tbaa !19
  br label %102

48:                                               ; preds = %31
  store i8 1, ptr %11, align 8, !tbaa !20
  br label %102

49:                                               ; preds = %31
  %50 = add nsw i32 %.04366, 1
  %51 = icmp eq i32 %50, %1
  br i1 %51, label %52, label %53

52:                                               ; preds = %49
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %0)
  br label %.thread

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  %54 = sext i32 %50 to i64
  %55 = getelementptr inbounds ptr, ptr %2, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef %56, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %57 unwind label %59

57:                                               ; preds = %53
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %58 unwind label %61

58:                                               ; preds = %57
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br label %102

59:                                               ; preds = %53
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

61:                                               ; preds = %57
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  br label %63

63:                                               ; preds = %61, %59
  %.pn = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br label %104

64:                                               ; preds = %31
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %0)
  br label %.thread

65:                                               ; preds = %31
  %66 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.34) #5
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %65
  call void @_ZNK7Options10usage_fullEv(ptr noundef nonnull align 8 dereferenceable(89) %0)
  br label %.thread

69:                                               ; preds = %65
  %70 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.35) #5
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %83

72:                                               ; preds = %69
  %73 = load ptr, ptr %14, align 8, !tbaa !21
  %.not54 = icmp eq ptr %73, null
  br i1 %.not54, label %75, label %74

74:                                               ; preds = %72
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %0)
  br label %.thread

75:                                               ; preds = %72
  %76 = add nsw i32 %.04366, 1
  %77 = icmp eq i32 %76, %1
  br i1 %77, label %78, label %79

78:                                               ; preds = %75
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %0)
  br label %.thread

79:                                               ; preds = %75
  %80 = sext i32 %76 to i64
  %81 = getelementptr inbounds ptr, ptr %2, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  store ptr %82, ptr %14, align 8, !tbaa !21
  br label %102

83:                                               ; preds = %69
  %84 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.36) #5
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %86, label %97

86:                                               ; preds = %83
  %87 = load ptr, ptr %0, align 8, !tbaa !18
  %.not53 = icmp eq ptr %87, null
  br i1 %.not53, label %89, label %88

88:                                               ; preds = %86
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %0)
  br label %.thread

89:                                               ; preds = %86
  %90 = add nsw i32 %.04366, 1
  %91 = icmp eq i32 %90, %1
  br i1 %91, label %92, label %93

92:                                               ; preds = %89
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %0)
  br label %.thread

93:                                               ; preds = %89
  %94 = sext i32 %90 to i64
  %95 = getelementptr inbounds ptr, ptr %2, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  store ptr %96, ptr %0, align 8, !tbaa !18
  br label %102

97:                                               ; preds = %83
  %98 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.37) #5
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %101

100:                                              ; preds = %97
  store i8 1, ptr %13, align 8, !tbaa !22
  br label %102

101:                                              ; preds = %97
  call void @_ZNK7Options11usage_shortEv(ptr noundef nonnull align 8 dereferenceable(89) %0)
  br label %.thread

102:                                              ; preds = %58, %48, %45, %41, %79, %100, %93, %22, %25
  %.245 = phi i32 [ %.04366, %25 ], [ %.04366, %22 ], [ %50, %58 ], [ %.04366, %48 ], [ %.04366, %45 ], [ %38, %41 ], [ %76, %79 ], [ %90, %93 ], [ %.04366, %100 ]
  %103 = add nsw i32 %.245, 1
  %.not64 = icmp slt i32 %103, %1
  br i1 %.not64, label %15, label %.thread, !llvm.loop !23

104:                                              ; preds = %63, %30
  %.pn58.pn = phi { ptr, i32 } [ %.pn58, %30 ], [ %.pn, %63 ]
  resume { ptr, i32 } %.pn58.pn

.thread:                                          ; preds = %102, %3, %101, %92, %88, %78, %74, %68, %40, %36, %52, %64
  %spec.select = phi i32 [ 1, %64 ], [ 1, %52 ], [ 1, %36 ], [ 1, %40 ], [ 0, %68 ], [ 1, %74 ], [ 1, %78 ], [ 1, %88 ], [ 1, %92 ], [ 1, %101 ], [ 0, %3 ], [ 0, %102 ]
  ret i32 %spec.select
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

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

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

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

!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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 8}
!11 = !{!"_ZTS7Options", !6, i64 0, !6, i64 8, !12, i64 16, !16, i64 40, !12, i64 48, !17, i64 72, !6, i64 80, !16, i64 88}
!12 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!11, !6, i64 0}
!19 = !{!11, !17, i64 72}
!20 = !{!11, !16, i64 40}
!21 = !{!11, !6, i64 80}
!22 = !{!11, !16, i64 88}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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