; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/283 Division 2/Problem D (D)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@a = external dso_local global [100000 x i32], align 16
@b = external dso_local global [100000 x i32], align 16
@c = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@ind1 = external dso_local global i32, align 4
@ind2 = external dso_local global i32, align 4
@j = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@flag = external dso_local global i32, align 4
@ans1 = external dso_local global i32, align 4
@ans2 = external dso_local global i32, align 4
@endswith = external dso_local global i32, align 4
@poss = external dso_local global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5checkii(i32 noundef, i32 noundef) #0

; 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 nounwind uwtable
declare dso_local noundef i32 @_Z6check2ii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca %"struct.std::pair", align 4
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @c)
  %13 = load i32, ptr @c, align 4, !tbaa !5
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %15, label %16

15:                                               ; preds = %0
  store i32 1, ptr @a, align 16, !tbaa !5
  br label %17

16:                                               ; preds = %0
  store i32 1, ptr @b, align 16, !tbaa !5
  br label %17

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

18:                                               ; preds = %64, %17
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr @n, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %18
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @c)
  %25 = load i32, ptr @c, align 4, !tbaa !5
  %26 = icmp eq i32 %25, 1
  br i1 %26, label %27, label %45

27:                                               ; preds = %23
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sub nsw i32 %28, 1
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100000 x i32], ptr @a, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [100000 x i32], ptr @a, i64 0, i64 %35
  store i32 %33, ptr %36, align 4, !tbaa !5
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sub nsw i32 %37, 1
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [100000 x i32], ptr @b, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100000 x i32], ptr @b, i64 0, i64 %43
  store i32 %41, ptr %44, align 4, !tbaa !5
  br label %63

45:                                               ; preds = %23
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = sub nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [100000 x i32], ptr @b, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [100000 x i32], ptr @b, i64 0, i64 %53
  store i32 %51, ptr %54, align 4, !tbaa !5
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = sub nsw i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100000 x i32], ptr @a, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [100000 x i32], ptr @a, i64 0, i64 %61
  store i32 %59, ptr %62, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %45, %27
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %2, align 4, !tbaa !5
  br label %18, !llvm.loop !9

67:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %183, %67
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = load i32, ptr @n, align 4, !tbaa !5
  %71 = icmp sle i32 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %186

73:                                               ; preds = %68
  %74 = load i32, ptr @n, align 4, !tbaa !5
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = sdiv i32 %74, %75
  store i32 %76, ptr @s, align 4, !tbaa !5
  store i32 0, ptr @r, align 4, !tbaa !5
  store i32 0, ptr @j, align 4, !tbaa !5
  store i32 0, ptr @k, align 4, !tbaa !5
  store i32 0, ptr @flag, align 4, !tbaa !5
  store i32 0, ptr @ans1, align 4, !tbaa !5
  store i32 0, ptr @ans2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %145, %73
  %78 = load i32, ptr %5, align 4, !tbaa !5
  %79 = load i32, ptr @s, align 4, !tbaa !5
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  store i32 8, ptr %4, align 4
  br label %148

82:                                               ; preds = %77
  %83 = load i32, ptr @r, align 4, !tbaa !5
  %84 = load i32, ptr @j, align 4, !tbaa !5
  %85 = load i32, ptr %3, align 4, !tbaa !5
  %86 = add nsw i32 %84, %85
  %87 = call noundef i32 @_Z5checkii(i32 noundef %83, i32 noundef %86)
  store i32 %87, ptr @ind1, align 4, !tbaa !5
  %88 = load i32, ptr @r, align 4, !tbaa !5
  %89 = load i32, ptr @k, align 4, !tbaa !5
  %90 = load i32, ptr %3, align 4, !tbaa !5
  %91 = add nsw i32 %89, %90
  %92 = call noundef i32 @_Z6check2ii(i32 noundef %88, i32 noundef %91)
  store i32 %92, ptr @ind2, align 4, !tbaa !5
  %93 = load i32, ptr @ind1, align 4, !tbaa !5
  %94 = icmp eq i32 %93, 1000000
  br i1 %94, label %95, label %99

95:                                               ; preds = %82
  %96 = load i32, ptr @ind2, align 4, !tbaa !5
  %97 = icmp eq i32 %96, 1000000
  br i1 %97, label %98, label %99

98:                                               ; preds = %95
  store i32 1, ptr @flag, align 4, !tbaa !5
  store i32 8, ptr %4, align 4
  br label %148

99:                                               ; preds = %95, %82
  %100 = load i32, ptr @ind1, align 4, !tbaa !5
  %101 = load i32, ptr @ind2, align 4, !tbaa !5
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %103, label %121

103:                                              ; preds = %99
  %104 = load i32, ptr %3, align 4, !tbaa !5
  %105 = load i32, ptr @j, align 4, !tbaa !5
  %106 = add nsw i32 %105, %104
  store i32 %106, ptr @j, align 4, !tbaa !5
  %107 = load i32, ptr @ind1, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [100000 x i32], ptr @b, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  store i32 %110, ptr @k, align 4, !tbaa !5
  %111 = load i32, ptr @ind1, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr @r, align 4, !tbaa !5
  %113 = load i32, ptr @ans1, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr @ans1, align 4, !tbaa !5
  store i32 1, ptr @endswith, align 4, !tbaa !5
  %115 = load i32, ptr @ind1, align 4, !tbaa !5
  %116 = load i32, ptr @n, align 4, !tbaa !5
  %117 = sub nsw i32 %116, 1
  %118 = icmp eq i32 %115, %117
  br i1 %118, label %119, label %120

119:                                              ; preds = %103
  store i32 8, ptr %4, align 4
  br label %148

120:                                              ; preds = %103
  br label %144

121:                                              ; preds = %99
  %122 = load i32, ptr @ind1, align 4, !tbaa !5
  %123 = load i32, ptr @ind2, align 4, !tbaa !5
  %124 = icmp sgt i32 %122, %123
  br i1 %124, label %125, label %143

125:                                              ; preds = %121
  %126 = load i32, ptr @ind2, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [100000 x i32], ptr @a, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  store i32 %129, ptr @j, align 4, !tbaa !5
  %130 = load i32, ptr %3, align 4, !tbaa !5
  %131 = load i32, ptr @k, align 4, !tbaa !5
  %132 = add nsw i32 %131, %130
  store i32 %132, ptr @k, align 4, !tbaa !5
  %133 = load i32, ptr @ind2, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr @r, align 4, !tbaa !5
  %135 = load i32, ptr @ans2, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr @ans2, align 4, !tbaa !5
  store i32 2, ptr @endswith, align 4, !tbaa !5
  %137 = load i32, ptr @ind2, align 4, !tbaa !5
  %138 = load i32, ptr @n, align 4, !tbaa !5
  %139 = sub nsw i32 %138, 1
  %140 = icmp eq i32 %137, %139
  br i1 %140, label %141, label %142

141:                                              ; preds = %125
  store i32 8, ptr %4, align 4
  br label %148

142:                                              ; preds = %125
  br label %143

143:                                              ; preds = %142, %121
  br label %144

144:                                              ; preds = %143, %120
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %5, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %5, align 4, !tbaa !5
  br label %77, !llvm.loop !11

148:                                              ; preds = %141, %119, %98, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %149

149:                                              ; preds = %148
  %150 = load i32, ptr @flag, align 4, !tbaa !5
  %151 = icmp eq i32 %150, 0
  br i1 %151, label %152, label %182

152:                                              ; preds = %149
  %153 = load i32, ptr @endswith, align 4, !tbaa !5
  %154 = icmp eq i32 %153, 1
  br i1 %154, label %155, label %166

155:                                              ; preds = %152
  %156 = load i32, ptr @ans1, align 4, !tbaa !5
  %157 = load i32, ptr @ans2, align 4, !tbaa !5
  %158 = icmp sgt i32 %156, %157
  br i1 %158, label %159, label %166

159:                                              ; preds = %155
  %160 = load i32, ptr @ind1, align 4, !tbaa !5
  %161 = load i32, ptr @n, align 4, !tbaa !5
  %162 = sub nsw i32 %161, 1
  %163 = icmp eq i32 %160, %162
  br i1 %163, label %164, label %166

164:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %165 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @ans1, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %165, ptr %6, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @poss, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %181

166:                                              ; preds = %159, %155, %152
  %167 = load i32, ptr @endswith, align 4, !tbaa !5
  %168 = icmp eq i32 %167, 2
  br i1 %168, label %169, label %180

169:                                              ; preds = %166
  %170 = load i32, ptr @ans1, align 4, !tbaa !5
  %171 = load i32, ptr @ans2, align 4, !tbaa !5
  %172 = icmp slt i32 %170, %171
  br i1 %172, label %173, label %180

173:                                              ; preds = %169
  %174 = load i32, ptr @ind2, align 4, !tbaa !5
  %175 = load i32, ptr @n, align 4, !tbaa !5
  %176 = sub nsw i32 %175, 1
  %177 = icmp eq i32 %174, %176
  br i1 %177, label %178, label %180

178:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %179 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @ans2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %179, ptr %7, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @poss, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %180

180:                                              ; preds = %178, %173, %169, %166
  br label %181

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

182:                                              ; preds = %181, %149
  br label %183

183:                                              ; preds = %182
  %184 = load i32, ptr %3, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %3, align 4, !tbaa !5
  br label %68, !llvm.loop !12

186:                                              ; preds = %72
  %187 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @poss) #6
  %188 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %187, ptr %188, align 8
  %189 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @poss) #6
  %190 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %189, ptr %190, align 8
  %191 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  %192 = load ptr, ptr %191, align 8
  %193 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %192, ptr %194)
  %195 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @poss) #6
  %196 = trunc i64 %195 to i32
  %197 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %196)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %198

198:                                              ; preds = %216, %186
  %199 = load i32, ptr %10, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @poss) #6
  %202 = icmp ult i64 %200, %201
  br i1 %202, label %204, label %203

203:                                              ; preds = %198
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %219

204:                                              ; preds = %198
  %205 = load i32, ptr %10, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poss, i64 noundef %206) #6
  %208 = getelementptr inbounds %"struct.std::pair", ptr %207, i32 0, i32 0
  %209 = load i32, ptr %208, align 4, !tbaa !13
  %210 = load i32, ptr %10, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poss, i64 noundef %211) #6
  %213 = getelementptr inbounds %"struct.std::pair", ptr %212, i32 0, i32 1
  %214 = load i32, ptr %213, align 4, !tbaa !15
  %215 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %209, i32 noundef %214)
  br label %216

216:                                              ; preds = %204
  %217 = load i32, ptr %10, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %10, align 4, !tbaa !5
  br label %198, !llvm.loop !16

219:                                              ; preds = %203
  ret i32 0
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) #5

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!15 = !{!14, !6, i64 4}
!16 = distinct !{!16, !10}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }

@n = external dso_local global i32, align 4
@a = external dso_local local_unnamed_addr global [100000 x i32], align 16
@b = external dso_local local_unnamed_addr global [100000 x i32], align 16
@c = external dso_local global i32, align 4
@s = external dso_local local_unnamed_addr global i32, align 4
@r = external dso_local local_unnamed_addr global i32, align 4
@ind1 = external dso_local local_unnamed_addr global i32, align 4
@ind2 = external dso_local local_unnamed_addr global i32, align 4
@j = external dso_local local_unnamed_addr global i32, align 4
@k = external dso_local local_unnamed_addr global i32, align 4
@flag = external dso_local local_unnamed_addr global i32, align 4
@ans1 = external dso_local global i32, align 4
@ans2 = external dso_local global i32, align 4
@endswith = external dso_local local_unnamed_addr global i32, align 4
@poss = external dso_local global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5checkii(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z6check2ii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.std::pair", align 8
  %3 = alloca %"struct.std::pair", align 8
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %5 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @c)
  %6 = load i32, ptr @c, align 4, !tbaa !5
  %7 = icmp eq i32 %6, 1
  %a.b = select i1 %7, ptr @a, ptr @b
  store i32 1, ptr %a.b, align 16, !tbaa !5
  %8 = load i32, ptr @n, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 1
  br i1 %9, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %27, %0
  %10 = phi i32 [ %8, %0 ], [ %30, %27 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 1, ptr %1, align 4, !tbaa !5
  %.not33 = icmp slt i32 %10, 1
  br i1 %.not33, label %._crit_edge37, label %.lr.ph36

.lr.ph:                                           ; preds = %0, %27
  %indvars.iv = phi i64 [ %indvars.iv.next, %27 ], [ 1, %0 ]
  %11 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @c)
  %12 = load i32, ptr @c, align 4, !tbaa !5
  %13 = icmp eq i32 %12, 1
  %14 = add nsw i64 %indvars.iv, -1
  br i1 %13, label %15, label %21

15:                                               ; preds = %.lr.ph
  %16 = getelementptr inbounds [100000 x i32], ptr @a, i64 0, i64 %14
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  %19 = getelementptr inbounds [100000 x i32], ptr @b, i64 0, i64 %14
  %20 = load i32, ptr %19, align 4, !tbaa !5
  br label %27

21:                                               ; preds = %.lr.ph
  %22 = getelementptr inbounds [100000 x i32], ptr @b, i64 0, i64 %14
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  %25 = getelementptr inbounds [100000 x i32], ptr @a, i64 0, i64 %14
  %26 = load i32, ptr %25, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %15, %21
  %.sink46 = phi i32 [ %18, %15 ], [ %26, %21 ]
  %.sink = phi i32 [ %20, %15 ], [ %24, %21 ]
  %28 = getelementptr inbounds [100000 x i32], ptr @a, i64 0, i64 %indvars.iv
  store i32 %.sink46, ptr %28, align 4
  %29 = getelementptr inbounds [100000 x i32], ptr @b, i64 0, i64 %indvars.iv
  store i32 %.sink, ptr %29, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %30 = load i32, ptr @n, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = icmp slt i64 %indvars.iv.next, %31
  br i1 %32, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge37:                                    ; preds = %.thread25, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %33 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @poss) #6
  %34 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @poss) #6
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %33, ptr %34)
  %35 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @poss) #6
  %36 = trunc i64 %35 to i32
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %36)
  %38 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @poss) #6
  %.not = icmp eq i64 %38, 0
  br i1 %.not, label %._crit_edge41, label %.lr.ph40

.lr.ph36:                                         ; preds = %._crit_edge, %.thread25
  %39 = phi i32 [ %115, %.thread25 ], [ %10, %._crit_edge ]
  %storemerge34 = phi i32 [ %114, %.thread25 ], [ 1, %._crit_edge ]
  %40 = sdiv i32 %39, %storemerge34
  store i32 %40, ptr @s, align 4, !tbaa !5
  store i32 0, ptr @r, align 4, !tbaa !5
  store i32 0, ptr @j, align 4, !tbaa !5
  store i32 0, ptr @k, align 4, !tbaa !5
  store i32 0, ptr @flag, align 4, !tbaa !5
  store i32 0, ptr @ans1, align 4, !tbaa !5
  store i32 0, ptr @ans2, align 4, !tbaa !5
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph29, label %._crit_edge30.thread

.lr.ph29:                                         ; preds = %.lr.ph36, %85
  %.01927 = phi i32 [ %86, %85 ], [ 0, %.lr.ph36 ]
  %42 = load i32, ptr @r, align 4, !tbaa !5
  %43 = load i32, ptr @j, align 4, !tbaa !5
  %44 = load i32, ptr %1, align 4, !tbaa !5
  %45 = add nsw i32 %44, %43
  %46 = call noundef i32 @_Z5checkii(i32 noundef %42, i32 noundef %45)
  store i32 %46, ptr @ind1, align 4, !tbaa !5
  %47 = load i32, ptr @r, align 4, !tbaa !5
  %48 = load i32, ptr @k, align 4, !tbaa !5
  %49 = load i32, ptr %1, align 4, !tbaa !5
  %50 = add nsw i32 %49, %48
  %51 = call noundef i32 @_Z6check2ii(i32 noundef %47, i32 noundef %50)
  store i32 %51, ptr @ind2, align 4, !tbaa !5
  %52 = load i32, ptr @ind1, align 4, !tbaa !5
  %53 = icmp eq i32 %52, 1000000
  %54 = icmp eq i32 %51, 1000000
  %or.cond = and i1 %54, %53
  br i1 %or.cond, label %.thread, label %55

.thread:                                          ; preds = %.lr.ph29
  store i32 1, ptr @flag, align 4, !tbaa !5
  br label %.thread25

55:                                               ; preds = %.lr.ph29
  %56 = icmp slt i32 %52, %51
  br i1 %56, label %57, label %70

57:                                               ; preds = %55
  %58 = load i32, ptr %1, align 4, !tbaa !5
  %59 = load i32, ptr @j, align 4, !tbaa !5
  %60 = add nsw i32 %59, %58
  store i32 %60, ptr @j, align 4, !tbaa !5
  %61 = sext i32 %52 to i64
  %62 = getelementptr inbounds [100000 x i32], ptr @b, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  store i32 %63, ptr @k, align 4, !tbaa !5
  %64 = add nsw i32 %52, 1
  store i32 %64, ptr @r, align 4, !tbaa !5
  %65 = load i32, ptr @ans1, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr @ans1, align 4, !tbaa !5
  store i32 1, ptr @endswith, align 4, !tbaa !5
  %67 = load i32, ptr @n, align 4, !tbaa !5
  %68 = add nsw i32 %67, -1
  %69 = icmp eq i32 %52, %68
  br i1 %69, label %._crit_edge30, label %85

70:                                               ; preds = %55
  %71 = icmp sgt i32 %52, %51
  br i1 %71, label %72, label %85

72:                                               ; preds = %70
  %73 = sext i32 %51 to i64
  %74 = getelementptr inbounds [100000 x i32], ptr @a, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  store i32 %75, ptr @j, align 4, !tbaa !5
  %76 = load i32, ptr %1, align 4, !tbaa !5
  %77 = load i32, ptr @k, align 4, !tbaa !5
  %78 = add nsw i32 %77, %76
  store i32 %78, ptr @k, align 4, !tbaa !5
  %79 = add nsw i32 %51, 1
  store i32 %79, ptr @r, align 4, !tbaa !5
  %80 = load i32, ptr @ans2, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr @ans2, align 4, !tbaa !5
  store i32 2, ptr @endswith, align 4, !tbaa !5
  %82 = load i32, ptr @n, align 4, !tbaa !5
  %83 = add nsw i32 %82, -1
  %84 = icmp eq i32 %51, %83
  br i1 %84, label %._crit_edge30, label %85

85:                                               ; preds = %57, %72, %70
  %86 = add nuw nsw i32 %.01927, 1
  %87 = load i32, ptr @s, align 4, !tbaa !5
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %.lr.ph29, label %._crit_edge30, !llvm.loop !11

._crit_edge30:                                    ; preds = %85, %57, %72
  %.pr.pre = load i32, ptr @flag, align 4, !tbaa !5
  %89 = icmp eq i32 %.pr.pre, 0
  br i1 %89, label %._crit_edge30.thread, label %.thread25

._crit_edge30.thread:                             ; preds = %.lr.ph36, %._crit_edge30
  %90 = load i32, ptr @endswith, align 4, !tbaa !5
  switch i32 %90, label %.thread25 [
    i32 1, label %91
    i32 2, label %102
  ]

91:                                               ; preds = %._crit_edge30.thread
  %92 = load i32, ptr @ans1, align 4, !tbaa !5
  %93 = load i32, ptr @ans2, align 4, !tbaa !5
  %94 = icmp sgt i32 %92, %93
  br i1 %94, label %95, label %.thread25

95:                                               ; preds = %91
  %96 = load i32, ptr @ind1, align 4, !tbaa !5
  %97 = load i32, ptr @n, align 4, !tbaa !5
  %98 = add nsw i32 %97, -1
  %99 = icmp eq i32 %96, %98
  br i1 %99, label %100, label %.thread25

100:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %101 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @ans1, ptr noundef nonnull align 4 dereferenceable(4) %1)
  store i64 %101, ptr %2, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @poss, ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %.thread25

102:                                              ; preds = %._crit_edge30.thread
  %103 = load i32, ptr @ans1, align 4, !tbaa !5
  %104 = load i32, ptr @ans2, align 4, !tbaa !5
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %106, label %.thread25

106:                                              ; preds = %102
  %107 = load i32, ptr @ind2, align 4, !tbaa !5
  %108 = load i32, ptr @n, align 4, !tbaa !5
  %109 = add nsw i32 %108, -1
  %110 = icmp eq i32 %107, %109
  br i1 %110, label %111, label %.thread25

111:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %112 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) @ans2, ptr noundef nonnull align 4 dereferenceable(4) %1)
  store i64 %112, ptr %3, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @poss, ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.thread25

.thread25:                                        ; preds = %._crit_edge30.thread, %91, %95, %.thread, %._crit_edge30, %102, %106, %111, %100
  %113 = load i32, ptr %1, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %1, align 4, !tbaa !5
  %115 = load i32, ptr @n, align 4, !tbaa !5
  %.not.not = icmp slt i32 %113, %115
  br i1 %.not.not, label %.lr.ph36, label %._crit_edge37, !llvm.loop !12

._crit_edge41:                                    ; preds = %.lr.ph40, %._crit_edge37
  ret i32 0

.lr.ph40:                                         ; preds = %._crit_edge37, %.lr.ph40
  %indvars.iv43 = phi i64 [ %indvars.iv.next44, %.lr.ph40 ], [ 0, %._crit_edge37 ]
  %116 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poss, i64 noundef %indvars.iv43) #6
  %117 = load i32, ptr %116, align 4, !tbaa !13
  %118 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @poss, i64 noundef %indvars.iv43) #6
  %119 = getelementptr inbounds i8, ptr %118, i64 4
  %120 = load i32, ptr %119, align 4, !tbaa !15
  %121 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %117, i32 noundef %120)
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %122 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @poss) #6
  %123 = icmp ugt i64 %122, %indvars.iv.next44
  br i1 %123, label %.lr.ph40, label %._crit_edge41, !llvm.loop !16
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) local_unnamed_addr #5

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!15 = !{!14, !6, i64 4}
!16 = distinct !{!16, !10}


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