; LLVM IR from MikeMirzayanov/testlib :: checkers/acmp.ll (Z18registerValidationiPPc)

; 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.InStream = type { ptr, i32, %"class.std::__cxx11::basic_string", i32, i8, i8, i8, i32, %"class.std::__cxx11::basic_string", i32, i64, i64, i64 }
%"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.Validator = type { i8, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, %"class.std::__cxx11::basic_string", %"class.std::map", %"class.std::map.13", %"class.std::set", %"class.std::set", %"class.std::set" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, ValidatorBoundsHit>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, ValidatorBoundsHit>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, ValidatorBoundsHit>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, ValidatorBoundsHit>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.13" = type { %"class.std::_Rb_tree.14" }
%"class.std::_Rb_tree.14" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, ConstantBounds>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, ConstantBounds>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, ConstantBounds>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, ConstantBounds>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::set" = type { %"class.std::_Rb_tree.18" }
%"class.std::_Rb_tree.18" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::allocator" = type { i8 }

@inf = external dso_local global %struct.InStream, align 8
@validator = external dso_local global %class.Validator, align 8
@_ZN20TestlibFinalizeGuard10registeredE = external dso_local global i8, align 1
@.str.380 = external hidden unnamed_addr constant [209 x i8], align 1
@.str.381 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.382 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.383 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.384 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.385 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.386 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.387 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.388 = external hidden unnamed_addr constant [19 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 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: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15testlib_format_B5cxx11PKcz(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ...) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress noreturn uwtable
declare dso_local void @_Z4quit7TResultRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL31__testlib_set_testset_and_groupiPPc(i32 noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18registerValidationv() #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18registerValidationiPPc(i32 noundef %0, ptr noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @_Z18registerValidationv()
  %15 = load i32, ptr %3, align 4, !tbaa !5
  %16 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31__testlib_set_testset_and_groupiPPc(i32 noundef %15, ptr noundef %16)
  call void @_ZN9Validator10initializeEv(ptr noundef nonnull align 8 dereferenceable(416) @validator)
  store i8 1, ptr @_ZN20TestlibFinalizeGuard10registeredE, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str.380, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %17 unwind label %23

17:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %230, %17
  %19 = load i32, ptr %9, align 4, !tbaa !5
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %27, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %234

23:                                               ; preds = %2
  %24 = landingpad { ptr, i32 }
          cleanup
  %25 = extractvalue { ptr, i32 } %24, 0
  store ptr %25, ptr %7, align 8
  %26 = extractvalue { ptr, i32 } %24, 1
  store i32 %26, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  br label %235

27:                                               ; preds = %18
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  %29 = load i32, ptr %9, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds ptr, ptr %28, i64 %30
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = call i32 @strcmp(ptr noundef @.str.381, ptr noundef %32) #7
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %64, label %35

35:                                               ; preds = %27
  %36 = load i32, ptr %9, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %40, label %61

40:                                               ; preds = %35
  %41 = load ptr, ptr %4, align 8, !tbaa !9
  %42 = load i32, ptr %9, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds ptr, ptr %41, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = call i64 @strlen(ptr noundef %46) #7
  %48 = icmp ugt i64 %47, 0
  br i1 %48, label %49, label %61

49:                                               ; preds = %40
  %50 = load ptr, ptr %4, align 8, !tbaa !9
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %9, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds ptr, ptr %50, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  invoke void @_ZN9Validator10setTestsetEPKc(ptr noundef nonnull align 8 dereferenceable(416) @validator, ptr noundef %55)
          to label %56 unwind label %57

56:                                               ; preds = %49
  br label %63

57:                                               ; preds = %226, %218, %202, %133, %125, %109, %101, %85, %77, %61, %49
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %7, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %8, align 4
  br label %233

61:                                               ; preds = %40, %35
  invoke void @_Z4quit7TResultRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(32) %5) #8
          to label %62 unwind label %57

62:                                               ; preds = %61
  unreachable

63:                                               ; preds = %56
  br label %64

64:                                               ; preds = %63, %27
  %65 = load ptr, ptr %4, align 8, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds ptr, ptr %65, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = call i32 @strcmp(ptr noundef @.str.382, ptr noundef %69) #7
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %88, label %72

72:                                               ; preds = %64
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %77, label %85

77:                                               ; preds = %72
  %78 = load ptr, ptr %4, align 8, !tbaa !9
  %79 = load i32, ptr %9, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %9, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds ptr, ptr %78, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  invoke void @_ZN9Validator8setGroupEPKc(ptr noundef nonnull align 8 dereferenceable(416) @validator, ptr noundef %83)
          to label %84 unwind label %57

84:                                               ; preds = %77
  br label %87

85:                                               ; preds = %72
  invoke void @_Z4quit7TResultRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(32) %5) #8
          to label %86 unwind label %57

86:                                               ; preds = %85
  unreachable

87:                                               ; preds = %84
  br label %88

88:                                               ; preds = %87, %64
  %89 = load ptr, ptr %4, align 8, !tbaa !9
  %90 = load i32, ptr %9, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds ptr, ptr %89, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = call i32 @strcmp(ptr noundef @.str.383, ptr noundef %93) #7
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %112, label %96

96:                                               ; preds = %88
  %97 = load i32, ptr %9, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  %99 = load i32, ptr %3, align 4, !tbaa !5
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %101, label %109

101:                                              ; preds = %96
  %102 = load ptr, ptr %4, align 8, !tbaa !9
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %9, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds ptr, ptr %102, i64 %105
  %107 = load ptr, ptr %106, align 8, !tbaa !9
  invoke void @_ZN9Validator26setTestOverviewLogFileNameEPKc(ptr noundef nonnull align 8 dereferenceable(416) @validator, ptr noundef %107)
          to label %108 unwind label %57

108:                                              ; preds = %101
  br label %111

109:                                              ; preds = %96
  invoke void @_Z4quit7TResultRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(32) %5) #8
          to label %110 unwind label %57

110:                                              ; preds = %109
  unreachable

111:                                              ; preds = %108
  br label %112

112:                                              ; preds = %111, %88
  %113 = load ptr, ptr %4, align 8, !tbaa !9
  %114 = load i32, ptr %9, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds ptr, ptr %113, i64 %115
  %117 = load ptr, ptr %116, align 8, !tbaa !9
  %118 = call i32 @strcmp(ptr noundef @.str.384, ptr noundef %117) #7
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %136, label %120

120:                                              ; preds = %112
  %121 = load i32, ptr %9, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  %123 = load i32, ptr %3, align 4, !tbaa !5
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %125, label %133

125:                                              ; preds = %120
  %126 = load ptr, ptr %4, align 8, !tbaa !9
  %127 = load i32, ptr %9, align 4, !tbaa !5
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %9, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds ptr, ptr %126, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  invoke void @_ZN9Validator21setTestMarkupFileNameEPKc(ptr noundef nonnull align 8 dereferenceable(416) @validator, ptr noundef %131)
          to label %132 unwind label %57

132:                                              ; preds = %125
  br label %135

133:                                              ; preds = %120
  invoke void @_Z4quit7TResultRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(32) %5) #8
          to label %134 unwind label %57

134:                                              ; preds = %133
  unreachable

135:                                              ; preds = %132
  br label %136

136:                                              ; preds = %135, %112
  %137 = load ptr, ptr %4, align 8, !tbaa !9
  %138 = load i32, ptr %9, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds ptr, ptr %137, i64 %139
  %141 = load ptr, ptr %140, align 8, !tbaa !9
  %142 = call i32 @strcmp(ptr noundef @.str.385, ptr noundef %141) #7
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %205, label %144

144:                                              ; preds = %136
  %145 = load i32, ptr %9, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  %147 = load i32, ptr %3, align 4, !tbaa !5
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %149, label %202

149:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %150 = load ptr, ptr %4, align 8, !tbaa !9
  %151 = load i32, ptr %9, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %9, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds ptr, ptr %150, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !9
  %156 = invoke noundef i64 @_ZL16stringToLongLongR8InStreamPKc(ptr noundef nonnull align 8 dereferenceable(128) @inf, ptr noundef %155)
          to label %157 unwind label %169

157:                                              ; preds = %149
  store i64 %156, ptr %10, align 8, !tbaa !13
  %158 = load i64, ptr %10, align 8, !tbaa !13
  %159 = icmp slt i64 %158, 1
  br i1 %159, label %163, label %160

160:                                              ; preds = %157
  %161 = load i64, ptr %10, align 8, !tbaa !13
  %162 = icmp sge i64 %161, 1073741823
  br i1 %162, label %163, label %197

163:                                              ; preds = %160, %157
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  invoke void (ptr, ptr, ...) @_Z15testlib_format_B5cxx11PKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef @.str.386, i32 noundef 1073741823)
          to label %164 unwind label %173

164:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  invoke void @_ZL8toStringIxENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %165 unwind label %177

165:                                              ; preds = %164
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %166 unwind label %181

166:                                              ; preds = %165
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.387)
          to label %167 unwind label %185

167:                                              ; preds = %166
  invoke void @_Z4quit7TResultRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(32) %11) #8
          to label %168 unwind label %189

168:                                              ; preds = %167
  unreachable

169:                                              ; preds = %197, %149
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %7, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %8, align 4
  br label %201

173:                                              ; preds = %163
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %7, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %8, align 4
  br label %196

177:                                              ; preds = %164
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %7, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %8, align 4
  br label %195

181:                                              ; preds = %165
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %7, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %8, align 4
  br label %194

185:                                              ; preds = %166
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %7, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %8, align 4
  br label %193

189:                                              ; preds = %167
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %7, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %193

193:                                              ; preds = %189, %185
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %194

194:                                              ; preds = %193, %181
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %195

195:                                              ; preds = %194, %177
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %196

196:                                              ; preds = %195, %173
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  br label %201

197:                                              ; preds = %160
  %198 = load i64, ptr %10, align 8, !tbaa !13
  %199 = trunc i64 %198 to i32
  invoke void @_ZN9Validator11setTestCaseEi(ptr noundef nonnull align 8 dereferenceable(416) @validator, i32 noundef %199)
          to label %200 unwind label %169

200:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %204

201:                                              ; preds = %196, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %233

202:                                              ; preds = %144
  invoke void @_Z4quit7TResultRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(32) %5) #8
          to label %203 unwind label %57

203:                                              ; preds = %202
  unreachable

204:                                              ; preds = %200
  br label %205

205:                                              ; preds = %204, %136
  %206 = load ptr, ptr %4, align 8, !tbaa !9
  %207 = load i32, ptr %9, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds ptr, ptr %206, i64 %208
  %210 = load ptr, ptr %209, align 8, !tbaa !9
  %211 = call i32 @strcmp(ptr noundef @.str.388, ptr noundef %210) #7
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %229, label %213

213:                                              ; preds = %205
  %214 = load i32, ptr %9, align 4, !tbaa !5
  %215 = add nsw i32 %214, 1
  %216 = load i32, ptr %3, align 4, !tbaa !5
  %217 = icmp slt i32 %215, %216
  br i1 %217, label %218, label %226

218:                                              ; preds = %213
  %219 = load ptr, ptr %4, align 8, !tbaa !9
  %220 = load i32, ptr %9, align 4, !tbaa !5
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %9, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds ptr, ptr %219, i64 %222
  %224 = load ptr, ptr %223, align 8, !tbaa !9
  invoke void @_ZN9Validator19setTestCaseFileNameEPKc(ptr noundef nonnull align 8 dereferenceable(416) @validator, ptr noundef %224)
          to label %225 unwind label %57

225:                                              ; preds = %218
  br label %228

226:                                              ; preds = %213
  invoke void @_Z4quit7TResultRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(32) %5) #8
          to label %227 unwind label %57

227:                                              ; preds = %226
  unreachable

228:                                              ; preds = %225
  br label %229

229:                                              ; preds = %228, %205
  br label %230

230:                                              ; preds = %229
  %231 = load i32, ptr %9, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %9, align 4, !tbaa !5
  br label %18, !llvm.loop !15

233:                                              ; preds = %201, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %235

234:                                              ; preds = %22
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  ret void

235:                                              ; preds = %233, %23
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  br label %236

236:                                              ; preds = %235
  %237 = load ptr, ptr %7, align 8
  %238 = load i32, ptr %8, align 4
  %239 = insertvalue { ptr, i32 } poison, ptr %237, 0
  %240 = insertvalue { ptr, i32 } %239, i32 %238, 1
  resume { ptr, i32 } %240
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i64 @_ZL16stringToLongLongR8InStreamPKc(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL8toStringIxENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9Validator11setTestCaseEi(ptr noundef nonnull align 8 dereferenceable(416), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9Validator19setTestCaseFileNameEPKc(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef) #2 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 = { 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 #4 = { 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 #5 = { mustprogress noreturn 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 }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { noreturn }

!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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"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.InStream = type { ptr, i32, %"class.std::__cxx11::basic_string", i32, i8, i8, i8, i32, %"class.std::__cxx11::basic_string", i32, i64, i64, i64 }
%"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.Validator = type { i8, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, %"class.std::__cxx11::basic_string", %"class.std::map", %"class.std::map.13", %"class.std::set", %"class.std::set", %"class.std::set" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, ValidatorBoundsHit>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, ValidatorBoundsHit>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, ValidatorBoundsHit>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, ValidatorBoundsHit>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.13" = type { %"class.std::_Rb_tree.14" }
%"class.std::_Rb_tree.14" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, ConstantBounds>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, ConstantBounds>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, ConstantBounds>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, ConstantBounds>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::set" = type { %"class.std::_Rb_tree.18" }
%"class.std::_Rb_tree.18" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::allocator" = type { i8 }

@inf = external dso_local global %struct.InStream, align 8
@validator = external dso_local global %class.Validator, align 8
@_ZN20TestlibFinalizeGuard10registeredE = external dso_local local_unnamed_addr global i8, align 1
@.str.380 = external hidden unnamed_addr constant [209 x i8], align 1
@.str.381 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.382 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.383 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.384 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.385 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.386 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.387 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.388 = external hidden unnamed_addr constant [19 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 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: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15testlib_format_B5cxx11PKcz(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress noreturn uwtable
declare dso_local void @_Z4quit7TResultRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL31__testlib_set_testset_and_groupiPPc(i32 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18registerValidationv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18registerValidationiPPc(i32 noundef %0, ptr noundef %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca i64, align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  tail call void @_Z18registerValidationv()
  tail call void @_ZL31__testlib_set_testset_and_groupiPPc(i32 noundef %0, ptr noundef %1)
  tail call void @_ZN9Validator10initializeEv(ptr noundef nonnull align 8 dereferenceable(416) @validator)
  store i8 1, ptr @_ZN20TestlibFinalizeGuard10registeredE, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.380, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %10 unwind label %12

10:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  %11 = icmp sgt i32 %0, 1
  br i1 %11, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %100, %10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  ret void

12:                                               ; preds = %2
  %13 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %104

.lr.ph:                                           ; preds = %10, %100
  %.078 = phi i32 [ %101, %100 ], [ 1, %10 ]
  %14 = sext i32 %.078 to i64
  %15 = getelementptr inbounds ptr, ptr %1, i64 %14
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.381, ptr noundef nonnull dereferenceable(1) %16) #7
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %18, label %26

18:                                               ; preds = %.lr.ph
  %19 = add nsw i32 %.078, 1
  %20 = icmp slt i32 %19, %0
  br i1 %20, label %21, label %.invoke

21:                                               ; preds = %18
  %22 = sext i32 %19 to i64
  %23 = getelementptr inbounds ptr, ptr %1, i64 %22
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %char0 = load i8, ptr %24, align 1
  %.not65 = icmp eq i8 %char0, 0
  br i1 %.not65, label %.invoke, label %25

25:                                               ; preds = %21
  invoke void @_ZN9Validator10setTestsetEPKc(ptr noundef nonnull align 8 dereferenceable(416) @validator, ptr noundef nonnull %24)
          to label %._crit_edge79 unwind label %.loopexit

._crit_edge79:                                    ; preds = %25
  %.pre = load ptr, ptr %23, align 8, !tbaa !9
  br label %26

.loopexit:                                        ; preds = %25, %32, %42, %52, %96
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %103

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

.invoke:                                          ; preds = %93, %59, %49, %39, %29, %18, %21
  invoke void @_Z4quit7TResultRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(32) %3) #8
          to label %.cont unwind label %.loopexit.split-lp

.cont:                                            ; preds = %.invoke
  unreachable

26:                                               ; preds = %._crit_edge79, %.lr.ph
  %27 = phi ptr [ %.pre, %._crit_edge79 ], [ %16, %.lr.ph ]
  %.1 = phi i32 [ %19, %._crit_edge79 ], [ %.078, %.lr.ph ]
  %28 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.382, ptr noundef nonnull dereferenceable(1) %27) #7
  %.not66 = icmp eq i32 %28, 0
  br i1 %.not66, label %29, label %36

29:                                               ; preds = %26
  %30 = add nsw i32 %.1, 1
  %31 = icmp slt i32 %30, %0
  br i1 %31, label %32, label %.invoke

32:                                               ; preds = %29
  %33 = sext i32 %30 to i64
  %34 = getelementptr inbounds ptr, ptr %1, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  invoke void @_ZN9Validator8setGroupEPKc(ptr noundef nonnull align 8 dereferenceable(416) @validator, ptr noundef %35)
          to label %._crit_edge84 unwind label %.loopexit

._crit_edge84:                                    ; preds = %32
  %.pre85 = load ptr, ptr %34, align 8, !tbaa !9
  br label %36

36:                                               ; preds = %._crit_edge84, %26
  %37 = phi ptr [ %.pre85, %._crit_edge84 ], [ %27, %26 ]
  %.2 = phi i32 [ %30, %._crit_edge84 ], [ %.1, %26 ]
  %38 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.383, ptr noundef nonnull dereferenceable(1) %37) #7
  %.not67 = icmp eq i32 %38, 0
  br i1 %.not67, label %39, label %46

39:                                               ; preds = %36
  %40 = add nsw i32 %.2, 1
  %41 = icmp slt i32 %40, %0
  br i1 %41, label %42, label %.invoke

42:                                               ; preds = %39
  %43 = sext i32 %40 to i64
  %44 = getelementptr inbounds ptr, ptr %1, i64 %43
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  invoke void @_ZN9Validator26setTestOverviewLogFileNameEPKc(ptr noundef nonnull align 8 dereferenceable(416) @validator, ptr noundef %45)
          to label %._crit_edge86 unwind label %.loopexit

._crit_edge86:                                    ; preds = %42
  %.pre87 = load ptr, ptr %44, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %._crit_edge86, %36
  %47 = phi ptr [ %.pre87, %._crit_edge86 ], [ %37, %36 ]
  %.3 = phi i32 [ %40, %._crit_edge86 ], [ %.2, %36 ]
  %48 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.384, ptr noundef nonnull dereferenceable(1) %47) #7
  %.not68 = icmp eq i32 %48, 0
  br i1 %.not68, label %49, label %56

49:                                               ; preds = %46
  %50 = add nsw i32 %.3, 1
  %51 = icmp slt i32 %50, %0
  br i1 %51, label %52, label %.invoke

52:                                               ; preds = %49
  %53 = sext i32 %50 to i64
  %54 = getelementptr inbounds ptr, ptr %1, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  invoke void @_ZN9Validator21setTestMarkupFileNameEPKc(ptr noundef nonnull align 8 dereferenceable(416) @validator, ptr noundef %55)
          to label %._crit_edge88 unwind label %.loopexit

._crit_edge88:                                    ; preds = %52
  %.pre89 = load ptr, ptr %54, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %._crit_edge88, %46
  %57 = phi ptr [ %.pre89, %._crit_edge88 ], [ %47, %46 ]
  %.4 = phi i32 [ %50, %._crit_edge88 ], [ %.3, %46 ]
  %58 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.385, ptr noundef nonnull dereferenceable(1) %57) #7
  %.not69 = icmp eq i32 %58, 0
  br i1 %.not69, label %59, label %90

59:                                               ; preds = %56
  %60 = add nsw i32 %.4, 1
  %61 = icmp slt i32 %60, %0
  br i1 %61, label %62, label %.invoke

62:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %63 = sext i32 %60 to i64
  %64 = getelementptr inbounds ptr, ptr %1, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  %66 = invoke noundef i64 @_ZL16stringToLongLongR8InStreamPKc(ptr noundef nonnull align 8 dereferenceable(128) @inf, ptr noundef %65)
          to label %67 unwind label %74

67:                                               ; preds = %62
  store i64 %66, ptr %5, align 8, !tbaa !11
  %68 = add i64 %66, -1073741823
  %or.cond = icmp ult i64 %68, -1073741822
  br i1 %or.cond, label %69, label %87

69:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  invoke void (ptr, ptr, ...) @_Z15testlib_format_B5cxx11PKcz(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull @.str.386, i32 noundef 1073741823)
          to label %70 unwind label %76

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @_ZL8toStringIxENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %5)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %71 unwind label %78

71:                                               ; preds = %70
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.387)
          to label %72 unwind label %80

72:                                               ; preds = %71
  invoke void @_Z4quit7TResultRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(32) %6) #8
          to label %73 unwind label %82

73:                                               ; preds = %72
  unreachable

74:                                               ; preds = %62
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %89

76:                                               ; preds = %69
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %86

78:                                               ; preds = %70
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %85

80:                                               ; preds = %71
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %84

82:                                               ; preds = %72
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %84

84:                                               ; preds = %82, %80
  %.pn = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %85

85:                                               ; preds = %84, %78
  %.pn.pn = phi { ptr, i32 } [ %.pn, %84 ], [ %79, %78 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %86

86:                                               ; preds = %85, %76
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %85 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %89

87:                                               ; preds = %67
  %88 = trunc nuw nsw i64 %66 to i32
  call void @_ZN9Validator11setTestCaseEi(ptr noundef nonnull align 8 dereferenceable(416) @validator, i32 noundef %88)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %.pre90 = load ptr, ptr %64, align 8, !tbaa !9
  br label %90

89:                                               ; preds = %86, %74
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %86 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %103

90:                                               ; preds = %87, %56
  %91 = phi ptr [ %.pre90, %87 ], [ %57, %56 ]
  %.5 = phi i32 [ %60, %87 ], [ %.4, %56 ]
  %92 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.388, ptr noundef nonnull dereferenceable(1) %91) #7
  %.not74 = icmp eq i32 %92, 0
  br i1 %.not74, label %93, label %100

93:                                               ; preds = %90
  %94 = add nsw i32 %.5, 1
  %95 = icmp slt i32 %94, %0
  br i1 %95, label %96, label %.invoke

96:                                               ; preds = %93
  %97 = sext i32 %94 to i64
  %98 = getelementptr inbounds ptr, ptr %1, i64 %97
  %99 = load ptr, ptr %98, align 8, !tbaa !9
  invoke void @_ZN9Validator19setTestCaseFileNameEPKc(ptr noundef nonnull align 8 dereferenceable(416) @validator, ptr noundef %99)
          to label %100 unwind label %.loopexit

100:                                              ; preds = %90, %96
  %.6 = phi i32 [ %.5, %90 ], [ %94, %96 ]
  %101 = add nsw i32 %.6, 1
  %102 = icmp slt i32 %101, %0
  br i1 %102, label %.lr.ph, label %._crit_edge, !llvm.loop !13

103:                                              ; preds = %.loopexit, %.loopexit.split-lp, %89
  %.pn75 = phi { ptr, i32 } [ %.pn.pn.pn.pn, %89 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  br label %104

104:                                              ; preds = %103, %12
  %.pn75.pn = phi { ptr, i32 } [ %.pn75, %103 ], [ %13, %12 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn75.pn
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i64 @_ZL16stringToLongLongR8InStreamPKc(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL8toStringIxENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9Validator11setTestCaseEi(ptr noundef nonnull align 8 dereferenceable(416), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9Validator19setTestCaseFileNameEPKc(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef) local_unnamed_addr #2 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 = { 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 #4 = { mustprogress noreturn 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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { noreturn }

!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 = !{!"bool", !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, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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