; LLVM IR from AngoraFuzzer/Angora :: llvm_mode/dfsan_rt/sanitizer_common (sanitizer_flag_parser)

; 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.__sanitizer::FlagParser" = type { ptr, i32, ptr, i64 }

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN11__sanitizer10FlagParser10ll_strndupEPKcm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef) #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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11__sanitizer10FlagParser8is_spaceEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer10FlagParser10parse_flagEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %10 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %11 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %11, ptr %3, align 8, !tbaa !13
  br label %12

12:                                               ; preds = %41, %1
  %13 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %14 = load ptr, ptr %13, align 8, !tbaa !14
  %15 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %16 = load i64, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %14, i64 %16
  %18 = load i8, ptr %17, align 1, !tbaa !15
  %19 = sext i8 %18 to i32
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %39

21:                                               ; preds = %12
  %22 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %23 = load ptr, ptr %22, align 8, !tbaa !14
  %24 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %23, i64 %25
  %27 = load i8, ptr %26, align 1, !tbaa !15
  %28 = sext i8 %27 to i32
  %29 = icmp ne i32 %28, 61
  br i1 %29, label %30, label %39

30:                                               ; preds = %21
  %31 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  %33 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %34 = load i64, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %32, i64 %34
  %36 = load i8, ptr %35, align 1, !tbaa !15
  %37 = call noundef zeroext i1 @_ZN11__sanitizer10FlagParser8is_spaceEc(ptr noundef nonnull align 8 dereferenceable(32) %9, i8 noundef signext %36)
  %38 = xor i1 %37, true
  br label %39

39:                                               ; preds = %30, %21, %12
  %40 = phi i1 [ false, %21 ], [ false, %12 ], [ %38, %30 ]
  br i1 %40, label %41, label %45

41:                                               ; preds = %39
  %42 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %43 = load i64, ptr %42, align 8, !tbaa !9
  %44 = add i64 %43, 1
  store i64 %44, ptr %42, align 8, !tbaa !9
  br label %12, !llvm.loop !16

45:                                               ; preds = %39
  %46 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %47 = load ptr, ptr %46, align 8, !tbaa !14
  %48 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %49 = load i64, ptr %48, align 8, !tbaa !9
  %50 = getelementptr inbounds i8, ptr %47, i64 %49
  %51 = load i8, ptr %50, align 1, !tbaa !15
  %52 = sext i8 %51 to i32
  %53 = icmp ne i32 %52, 61
  br i1 %53, label %54, label %55

54:                                               ; preds = %45
  call void @_ZN11__sanitizer10FlagParser11fatal_errorEPKc(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.3)
  br label %55

55:                                               ; preds = %54, %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %56 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %57 = load ptr, ptr %56, align 8, !tbaa !14
  %58 = load i64, ptr %3, align 8, !tbaa !13
  %59 = getelementptr inbounds i8, ptr %57, i64 %58
  %60 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %61 = load i64, ptr %60, align 8, !tbaa !9
  %62 = load i64, ptr %3, align 8, !tbaa !13
  %63 = sub i64 %61, %62
  %64 = call noundef ptr @_ZN11__sanitizer10FlagParser10ll_strndupEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %59, i64 noundef %63)
  store ptr %64, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %65 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = add i64 %66, 1
  store i64 %67, ptr %65, align 8, !tbaa !9
  store i64 %67, ptr %5, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %68 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !14
  %70 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %71 = load i64, ptr %70, align 8, !tbaa !9
  %72 = getelementptr inbounds i8, ptr %69, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !15
  %74 = sext i8 %73 to i32
  %75 = icmp eq i32 %74, 39
  br i1 %75, label %85, label %76

76:                                               ; preds = %55
  %77 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %78 = load ptr, ptr %77, align 8, !tbaa !14
  %79 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = getelementptr inbounds i8, ptr %78, i64 %80
  %82 = load i8, ptr %81, align 1, !tbaa !15
  %83 = sext i8 %82 to i32
  %84 = icmp eq i32 %83, 34
  br i1 %84, label %85, label %144

85:                                               ; preds = %76, %55
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  %86 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !14
  %88 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %89 = load i64, ptr %88, align 8, !tbaa !9
  %90 = add i64 %89, 1
  store i64 %90, ptr %88, align 8, !tbaa !9
  %91 = getelementptr inbounds i8, ptr %87, i64 %89
  %92 = load i8, ptr %91, align 1, !tbaa !15
  store i8 %92, ptr %7, align 1, !tbaa !15
  br label %93

93:                                               ; preds = %115, %85
  %94 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !14
  %96 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = getelementptr inbounds i8, ptr %95, i64 %97
  %99 = load i8, ptr %98, align 1, !tbaa !15
  %100 = sext i8 %99 to i32
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %113

102:                                              ; preds = %93
  %103 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !14
  %105 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = getelementptr inbounds i8, ptr %104, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !15
  %109 = sext i8 %108 to i32
  %110 = load i8, ptr %7, align 1, !tbaa !15
  %111 = sext i8 %110 to i32
  %112 = icmp ne i32 %109, %111
  br label %113

113:                                              ; preds = %102, %93
  %114 = phi i1 [ false, %93 ], [ %112, %102 ]
  br i1 %114, label %115, label %119

115:                                              ; preds = %113
  %116 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %117 = load i64, ptr %116, align 8, !tbaa !9
  %118 = add i64 %117, 1
  store i64 %118, ptr %116, align 8, !tbaa !9
  br label %93, !llvm.loop !18

119:                                              ; preds = %113
  %120 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %121 = load ptr, ptr %120, align 8, !tbaa !14
  %122 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %123 = load i64, ptr %122, align 8, !tbaa !9
  %124 = getelementptr inbounds i8, ptr %121, i64 %123
  %125 = load i8, ptr %124, align 1, !tbaa !15
  %126 = sext i8 %125 to i32
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %129

128:                                              ; preds = %119
  call void @_ZN11__sanitizer10FlagParser11fatal_errorEPKc(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.4)
  br label %129

129:                                              ; preds = %128, %119
  %130 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %131 = load ptr, ptr %130, align 8, !tbaa !14
  %132 = load i64, ptr %5, align 8, !tbaa !13
  %133 = getelementptr inbounds i8, ptr %131, i64 %132
  %134 = getelementptr inbounds i8, ptr %133, i64 1
  %135 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %136 = load i64, ptr %135, align 8, !tbaa !9
  %137 = load i64, ptr %5, align 8, !tbaa !13
  %138 = sub i64 %136, %137
  %139 = sub i64 %138, 1
  %140 = call noundef ptr @_ZN11__sanitizer10FlagParser10ll_strndupEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %134, i64 noundef %139)
  store ptr %140, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %142 = load i64, ptr %141, align 8, !tbaa !9
  %143 = add i64 %142, 1
  store i64 %143, ptr %141, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  br label %197

144:                                              ; preds = %76
  br label %145

145:                                              ; preds = %165, %144
  %146 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %147 = load ptr, ptr %146, align 8, !tbaa !14
  %148 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %149 = load i64, ptr %148, align 8, !tbaa !9
  %150 = getelementptr inbounds i8, ptr %147, i64 %149
  %151 = load i8, ptr %150, align 1, !tbaa !15
  %152 = sext i8 %151 to i32
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %163

154:                                              ; preds = %145
  %155 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %156 = load ptr, ptr %155, align 8, !tbaa !14
  %157 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %158 = load i64, ptr %157, align 8, !tbaa !9
  %159 = getelementptr inbounds i8, ptr %156, i64 %158
  %160 = load i8, ptr %159, align 1, !tbaa !15
  %161 = call noundef zeroext i1 @_ZN11__sanitizer10FlagParser8is_spaceEc(ptr noundef nonnull align 8 dereferenceable(32) %9, i8 noundef signext %160)
  %162 = xor i1 %161, true
  br label %163

163:                                              ; preds = %154, %145
  %164 = phi i1 [ false, %145 ], [ %162, %154 ]
  br i1 %164, label %165, label %169

165:                                              ; preds = %163
  %166 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %167 = load i64, ptr %166, align 8, !tbaa !9
  %168 = add i64 %167, 1
  store i64 %168, ptr %166, align 8, !tbaa !9
  br label %145, !llvm.loop !19

169:                                              ; preds = %163
  %170 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %171 = load ptr, ptr %170, align 8, !tbaa !14
  %172 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %173 = load i64, ptr %172, align 8, !tbaa !9
  %174 = getelementptr inbounds i8, ptr %171, i64 %173
  %175 = load i8, ptr %174, align 1, !tbaa !15
  %176 = sext i8 %175 to i32
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %187

178:                                              ; preds = %169
  %179 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %180 = load ptr, ptr %179, align 8, !tbaa !14
  %181 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %182 = load i64, ptr %181, align 8, !tbaa !9
  %183 = getelementptr inbounds i8, ptr %180, i64 %182
  %184 = load i8, ptr %183, align 1, !tbaa !15
  %185 = call noundef zeroext i1 @_ZN11__sanitizer10FlagParser8is_spaceEc(ptr noundef nonnull align 8 dereferenceable(32) %9, i8 noundef signext %184)
  br i1 %185, label %187, label %186

186:                                              ; preds = %178
  call void @_ZN11__sanitizer10FlagParser11fatal_errorEPKc(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.5)
  br label %187

187:                                              ; preds = %186, %178, %169
  %188 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 2
  %189 = load ptr, ptr %188, align 8, !tbaa !14
  %190 = load i64, ptr %5, align 8, !tbaa !13
  %191 = getelementptr inbounds i8, ptr %189, i64 %190
  %192 = getelementptr inbounds %"class.__sanitizer::FlagParser", ptr %9, i32 0, i32 3
  %193 = load i64, ptr %192, align 8, !tbaa !9
  %194 = load i64, ptr %5, align 8, !tbaa !13
  %195 = sub i64 %193, %194
  %196 = call noundef ptr @_ZN11__sanitizer10FlagParser10ll_strndupEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %191, i64 noundef %195)
  store ptr %196, ptr %6, align 8, !tbaa !5
  br label %197

197:                                              ; preds = %187, %129
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = call noundef zeroext i1 @_ZN11__sanitizer10FlagParser11run_handlerEPKcS2_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %198, ptr noundef %199)
  %201 = zext i1 %200 to i8
  store i8 %201, ptr %8, align 1, !tbaa !20
  %202 = load i8, ptr %8, align 1, !tbaa !20, !range !22, !noundef !23
  %203 = trunc i8 %202 to i1
  br i1 %203, label %205, label %204

204:                                              ; preds = %197
  call void @_ZN11__sanitizer10FlagParser11fatal_errorEPKc(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.6)
  br label %205

205:                                              ; preds = %204, %197
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

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

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 = { 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, !12, i64 24}
!10 = !{!"_ZTSN11__sanitizer10FlagParserE", !6, i64 0, !11, i64 8, !6, i64 16, !12, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!10, !6, i64 16}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}


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

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11__sanitizer10FlagParser8is_spaceEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer10FlagParser10parse_flagEv(ptr noundef nonnull align 8 dereferenceable(32) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 24
  %3 = load i64, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  br label %5

5:                                                ; preds = %12, %1
  %6 = phi i64 [ %14, %12 ], [ %3, %1 ]
  %7 = load ptr, ptr %4, align 8, !tbaa !12
  %8 = getelementptr inbounds i8, ptr %7, i64 %6
  %9 = load i8, ptr %8, align 1, !tbaa !13
  switch i8 %9, label %10 [
    i8 0, label %.critedge
    i8 61, label %.critedge
  ]

10:                                               ; preds = %5
  %11 = tail call noundef zeroext i1 @_ZN11__sanitizer10FlagParser8is_spaceEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %9)
  br i1 %11, label %..critedge_crit_edge, label %12

..critedge_crit_edge:                             ; preds = %10
  %.pre = load ptr, ptr %4, align 8, !tbaa !12
  %.pre31 = load i64, ptr %2, align 8, !tbaa !5
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 %.pre31
  %.pre32 = load i8, ptr %.phi.trans.insert, align 1, !tbaa !13
  br label %.critedge

12:                                               ; preds = %10
  %13 = load i64, ptr %2, align 8, !tbaa !5
  %14 = add i64 %13, 1
  store i64 %14, ptr %2, align 8, !tbaa !5
  br label %5, !llvm.loop !14

.critedge:                                        ; preds = %5, %5, %..critedge_crit_edge
  %15 = phi i8 [ %.pre32, %..critedge_crit_edge ], [ %9, %5 ], [ %9, %5 ]
  %16 = phi i64 [ %.pre31, %..critedge_crit_edge ], [ %6, %5 ], [ %6, %5 ]
  %17 = phi ptr [ %.pre, %..critedge_crit_edge ], [ %7, %5 ], [ %7, %5 ]
  %.not18 = icmp eq i8 %15, 61
  br i1 %.not18, label %19, label %18

18:                                               ; preds = %.critedge
  tail call void @_ZN11__sanitizer10FlagParser11fatal_errorEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.3)
  %.pre33 = load ptr, ptr %4, align 8, !tbaa !12
  %.pre34 = load i64, ptr %2, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %18, %.critedge
  %20 = phi i64 [ %.pre34, %18 ], [ %16, %.critedge ]
  %21 = phi ptr [ %.pre33, %18 ], [ %17, %.critedge ]
  %22 = getelementptr inbounds i8, ptr %21, i64 %3
  %23 = sub i64 %20, %3
  %24 = tail call noundef ptr @_ZN11__sanitizer10FlagParser10ll_strndupEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %22, i64 noundef %23)
  %25 = load i64, ptr %2, align 8, !tbaa !5
  %26 = add i64 %25, 1
  store i64 %26, ptr %2, align 8, !tbaa !5
  %27 = load ptr, ptr %4, align 8, !tbaa !12
  %28 = getelementptr inbounds i8, ptr %27, i64 %26
  %29 = load i8, ptr %28, align 1, !tbaa !13
  switch i8 %29, label %.lr.ph27 [
    i8 39, label %30
    i8 34, label %30
    i8 0, label %.critedge4.thread
  ]

30:                                               ; preds = %19, %19
  %31 = add i64 %25, 2
  store i64 %31, ptr %2, align 8, !tbaa !5
  %32 = load i8, ptr %28, align 1, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %27, i64 %31
  %34 = load i8, ptr %33, align 1, !tbaa !13
  %.not2123 = icmp eq i8 %34, 0
  %.not2224 = icmp eq i8 %34, %32
  %or.cond25 = select i1 %.not2123, i1 true, i1 %.not2224
  br i1 %or.cond25, label %.critedge2, label %.lr.ph

.lr.ph:                                           ; preds = %30, %.lr.ph
  %35 = phi i64 [ %36, %.lr.ph ], [ %31, %30 ]
  %36 = add i64 %35, 1
  store i64 %36, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %27, i64 %36
  %38 = load i8, ptr %37, align 1, !tbaa !13
  %.not21 = icmp eq i8 %38, 0
  %.not22 = icmp eq i8 %38, %32
  %or.cond = select i1 %.not21, i1 true, i1 %.not22
  br i1 %or.cond, label %.critedge2, label %.lr.ph, !llvm.loop !16

.critedge2:                                       ; preds = %.lr.ph, %30
  %39 = phi i64 [ %31, %30 ], [ %36, %.lr.ph ]
  %.not21.lcssa = phi i1 [ %.not2123, %30 ], [ %.not21, %.lr.ph ]
  br i1 %.not21.lcssa, label %40, label %41

40:                                               ; preds = %.critedge2
  tail call void @_ZN11__sanitizer10FlagParser11fatal_errorEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.4)
  %.pre35 = load ptr, ptr %4, align 8, !tbaa !12
  %.pre36 = load i64, ptr %2, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %40, %.critedge2
  %42 = phi i64 [ %.pre36, %40 ], [ %39, %.critedge2 ]
  %43 = phi ptr [ %.pre35, %40 ], [ %27, %.critedge2 ]
  %44 = getelementptr inbounds i8, ptr %43, i64 %26
  %45 = getelementptr inbounds i8, ptr %44, i64 1
  %reass.sub29 = sub i64 %42, %25
  %46 = add i64 %reass.sub29, -2
  %47 = tail call noundef ptr @_ZN11__sanitizer10FlagParser10ll_strndupEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %45, i64 noundef %46)
  %48 = load i64, ptr %2, align 8, !tbaa !5
  %49 = add i64 %48, 1
  store i64 %49, ptr %2, align 8, !tbaa !5
  br label %64

.lr.ph27:                                         ; preds = %19, %52
  %50 = phi i8 [ %55, %52 ], [ %29, %19 ]
  %51 = tail call noundef zeroext i1 @_ZN11__sanitizer10FlagParser8is_spaceEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %50)
  %.pre37.pre = load ptr, ptr %4, align 8, !tbaa !12
  %.pre38.pre = load i64, ptr %2, align 8, !tbaa !5
  br i1 %51, label %.critedge4, label %52

52:                                               ; preds = %.lr.ph27
  %53 = add i64 %.pre38.pre, 1
  store i64 %53, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %.pre37.pre, i64 %53
  %55 = load i8, ptr %54, align 1, !tbaa !13
  %.not19 = icmp eq i8 %55, 0
  br i1 %.not19, label %.critedge4.thread, label %.lr.ph27, !llvm.loop !17

.critedge4:                                       ; preds = %.lr.ph27
  %.phi.trans.insert39.phi.trans.insert = getelementptr inbounds i8, ptr %.pre37.pre, i64 %.pre38.pre
  %.pre40.pre = load i8, ptr %.phi.trans.insert39.phi.trans.insert, align 1, !tbaa !13
  %.not20 = icmp eq i8 %.pre40.pre, 0
  br i1 %.not20, label %.critedge4.thread, label %56

56:                                               ; preds = %.critedge4
  %57 = tail call noundef zeroext i1 @_ZN11__sanitizer10FlagParser8is_spaceEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %.pre40.pre)
  br i1 %57, label %.critedge4.thread, label %58

58:                                               ; preds = %56
  tail call void @_ZN11__sanitizer10FlagParser11fatal_errorEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.5)
  br label %.critedge4.thread

.critedge4.thread:                                ; preds = %52, %19, %58, %56, %.critedge4
  %59 = load ptr, ptr %4, align 8, !tbaa !12
  %60 = getelementptr inbounds i8, ptr %59, i64 %26
  %61 = load i64, ptr %2, align 8, !tbaa !5
  %62 = sub i64 %61, %26
  %63 = tail call noundef ptr @_ZN11__sanitizer10FlagParser10ll_strndupEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %60, i64 noundef %62)
  br label %64

64:                                               ; preds = %.critedge4.thread, %41
  %.0 = phi ptr [ %47, %41 ], [ %63, %.critedge4.thread ]
  %65 = tail call noundef zeroext i1 @_ZN11__sanitizer10FlagParser11run_handlerEPKcS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %24, ptr noundef %.0)
  br i1 %65, label %67, label %66

66:                                               ; preds = %64
  tail call void @_ZN11__sanitizer10FlagParser11fatal_errorEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.6)
  br label %67

67:                                               ; preds = %66, %64
  ret void
}

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

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

!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, !11, i64 24}
!6 = !{!"_ZTSN11__sanitizer10FlagParserE", !7, i64 0, !10, i64 8, !7, i64 16, !11, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!8, !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}


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