; LLVM IR from kazunetakahashi/atcoder :: 2017/0107_ABC051 (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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@P = external dso_local global [110 x [110 x i32]], align 16
@Q = external dso_local global [110 x [110 x i32]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %44, %0
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %47

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

28:                                               ; preds = %40, %27
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %43

33:                                               ; preds = %28
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [110 x [110 x i32]], ptr @P, i64 0, i64 %35
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [110 x i32], ptr %36, i64 0, i64 %38
  store i32 1000000007, ptr %39, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %33
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %6, align 4, !tbaa !5
  br label %28, !llvm.loop !9

43:                                               ; preds = %32
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %4, align 4, !tbaa !5
  br label %22, !llvm.loop !11

47:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %74, %47
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %77

53:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = add nsw i32 %57, -1
  store i32 %58, ptr %8, align 4, !tbaa !5
  %59 = load i32, ptr %9, align 4, !tbaa !5
  %60 = add nsw i32 %59, -1
  store i32 %60, ptr %9, align 4, !tbaa !5
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = load i32, ptr %9, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [110 x [110 x i32]], ptr @P, i64 0, i64 %63
  %65 = load i32, ptr %8, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [110 x i32], ptr %64, i64 0, i64 %66
  store i32 %61, ptr %67, align 4, !tbaa !5
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [110 x [110 x i32]], ptr @P, i64 0, i64 %69
  %71 = load i32, ptr %9, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [110 x i32], ptr %70, i64 0, i64 %72
  store i32 %61, ptr %73, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %74

74:                                               ; preds = %53
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %7, align 4, !tbaa !5
  br label %48, !llvm.loop !12

77:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %107, %77
  %79 = load i32, ptr %11, align 4, !tbaa !5
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %110

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %103, %83
  %85 = load i32, ptr %12, align 4, !tbaa !5
  %86 = load i32, ptr %2, align 4, !tbaa !5
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %106

89:                                               ; preds = %84
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [110 x [110 x i32]], ptr @P, i64 0, i64 %91
  %93 = load i32, ptr %12, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [110 x i32], ptr %92, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = load i32, ptr %11, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [110 x [110 x i32]], ptr @Q, i64 0, i64 %98
  %100 = load i32, ptr %12, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [110 x i32], ptr %99, i64 0, i64 %101
  store i32 %96, ptr %102, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %89
  %104 = load i32, ptr %12, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %12, align 4, !tbaa !5
  br label %84, !llvm.loop !13

106:                                              ; preds = %88
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %11, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %11, align 4, !tbaa !5
  br label %78, !llvm.loop !14

110:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %171, %110
  %112 = load i32, ptr %13, align 4, !tbaa !5
  %113 = load i32, ptr %2, align 4, !tbaa !5
  %114 = icmp slt i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %174

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %167, %116
  %118 = load i32, ptr %14, align 4, !tbaa !5
  %119 = load i32, ptr %2, align 4, !tbaa !5
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i32 20, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %170

122:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %163, %122
  %124 = load i32, ptr %15, align 4, !tbaa !5
  %125 = load i32, ptr %2, align 4, !tbaa !5
  %126 = icmp slt i32 %124, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %123
  store i32 23, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %166

128:                                              ; preds = %123
  %129 = load i32, ptr %14, align 4, !tbaa !5
  %130 = load i32, ptr %15, align 4, !tbaa !5
  %131 = icmp eq i32 %129, %130
  br i1 %131, label %132, label %133

132:                                              ; preds = %128
  br label %163

133:                                              ; preds = %128
  %134 = load i32, ptr %14, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [110 x [110 x i32]], ptr @Q, i64 0, i64 %135
  %137 = load i32, ptr %15, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [110 x i32], ptr %136, i64 0, i64 %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %140 = load i32, ptr %14, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [110 x [110 x i32]], ptr @Q, i64 0, i64 %141
  %143 = load i32, ptr %13, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [110 x i32], ptr %142, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = load i32, ptr %13, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [110 x [110 x i32]], ptr @Q, i64 0, i64 %148
  %150 = load i32, ptr %15, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [110 x i32], ptr %149, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = add nsw i32 %146, %153
  store i32 %154, ptr %16, align 4, !tbaa !5
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %139, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = load i32, ptr %14, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [110 x [110 x i32]], ptr @Q, i64 0, i64 %158
  %160 = load i32, ptr %15, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [110 x i32], ptr %159, i64 0, i64 %161
  store i32 %156, ptr %162, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %163

163:                                              ; preds = %133, %132
  %164 = load i32, ptr %15, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %15, align 4, !tbaa !5
  br label %123, !llvm.loop !15

166:                                              ; preds = %127
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %14, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %14, align 4, !tbaa !5
  br label %117, !llvm.loop !16

170:                                              ; preds = %121
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %13, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %13, align 4, !tbaa !5
  br label %111, !llvm.loop !17

174:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %219, %174
  %176 = load i32, ptr %18, align 4, !tbaa !5
  %177 = load i32, ptr %2, align 4, !tbaa !5
  %178 = icmp slt i32 %176, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %175
  store i32 26, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %222

180:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %215, %180
  %182 = load i32, ptr %19, align 4, !tbaa !5
  %183 = load i32, ptr %2, align 4, !tbaa !5
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %186, label %185

185:                                              ; preds = %181
  store i32 29, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %218

186:                                              ; preds = %181
  %187 = load i32, ptr %18, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [110 x [110 x i32]], ptr @P, i64 0, i64 %188
  %190 = load i32, ptr %19, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [110 x i32], ptr %189, i64 0, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = icmp slt i32 %193, 1000000007
  br i1 %194, label %195, label %214

195:                                              ; preds = %186
  %196 = load i32, ptr %18, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [110 x [110 x i32]], ptr @P, i64 0, i64 %197
  %199 = load i32, ptr %19, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [110 x i32], ptr %198, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = load i32, ptr %18, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [110 x [110 x i32]], ptr @Q, i64 0, i64 %204
  %206 = load i32, ptr %19, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [110 x i32], ptr %205, i64 0, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !5
  %210 = icmp sgt i32 %202, %209
  br i1 %210, label %211, label %214

211:                                              ; preds = %195
  %212 = load i32, ptr %17, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %17, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %211, %195, %186
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %19, align 4, !tbaa !5
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %19, align 4, !tbaa !5
  br label %181, !llvm.loop !18

218:                                              ; preds = %185
  br label %219

219:                                              ; preds = %218
  %220 = load i32, ptr %18, align 4, !tbaa !5
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %18, align 4, !tbaa !5
  br label %175, !llvm.loop !19

222:                                              ; preds = %179
  %223 = load i32, ptr %17, align 4, !tbaa !5
  %224 = sdiv i32 %223, 2
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %224)
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %225, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %227 = load i32, ptr %1, align 4
  ret i32 %227
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 #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 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@P = external dso_local local_unnamed_addr global [110 x [110 x i32]], align 16
@Q = external dso_local global [110 x [110 x i32]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %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 i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.preheader63.us.preheader, label %.preheader62

.preheader63.us.preheader:                        ; preds = %0
  %wide.trip.count93 = zext nneg i32 %9 to i64
  %min.iters.check = icmp ult i32 %9, 8
  %n.vec = and i64 %wide.trip.count93, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count93
  br label %.preheader63.us

.preheader63.us:                                  ; preds = %.preheader63.us.preheader, %._crit_edge.us
  %indvars.iv90 = phi i64 [ 0, %.preheader63.us.preheader ], [ %indvars.iv.next91, %._crit_edge.us ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader63.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader63.us ]
  %11 = getelementptr inbounds [110 x [110 x i32]], ptr @P, i64 0, i64 %indvars.iv90, i64 %index
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %11, align 8, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %12, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %13 = icmp eq i64 %index.next, %n.vec
  br i1 %13, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader63.us
  %indvars.iv.ph = phi i64 [ 0, %.preheader63.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %14 = getelementptr inbounds [110 x [110 x i32]], ptr @P, i64 0, i64 %indvars.iv90, i64 %indvars.iv
  store i32 1000000007, ptr %14, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count93
  br i1 %exitcond.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !13

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %exitcond94.not = icmp eq i64 %indvars.iv.next91, %wide.trip.count93
  br i1 %exitcond94.not, label %.preheader62, label %.preheader63.us, !llvm.loop !14

.preheader62:                                     ; preds = %._crit_edge.us, %0
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph, label %.preheader61

.preheader61.loopexit:                            ; preds = %.lr.ph
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %.preheader61

.preheader61:                                     ; preds = %.preheader61.loopexit, %.preheader62
  %17 = phi i32 [ %.pre, %.preheader61.loopexit ], [ %9, %.preheader62 ]
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.preheader60.us.preheader, label %._crit_edge83

.preheader60.us.preheader:                        ; preds = %.preheader61
  %19 = zext nneg i32 %17 to i64
  %20 = shl nuw nsw i64 %19, 2
  %xtraiter = and i64 %19, 3
  %21 = icmp ult i32 %17, 4
  br i1 %21, label %.preheader59.unr-lcssa, label %.preheader60.us.preheader.new

.preheader60.us.preheader.new:                    ; preds = %.preheader60.us.preheader
  %unroll_iter = and i64 %19, 2147483644
  br label %.preheader60.us

.preheader60.us:                                  ; preds = %.preheader60.us, %.preheader60.us.preheader.new
  %indvar = phi i64 [ 0, %.preheader60.us.preheader.new ], [ %indvar.next.3, %.preheader60.us ]
  %niter = phi i64 [ 0, %.preheader60.us.preheader.new ], [ %niter.next.3, %.preheader60.us ]
  %22 = mul nuw nsw i64 %indvar, 440
  %scevgep = getelementptr i8, ptr @Q, i64 %22
  %scevgep95 = getelementptr i8, ptr @P, i64 %22
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %scevgep, ptr align 16 %scevgep95, i64 %20, i1 false), !tbaa !5
  %23 = mul nuw i64 %indvar, 440
  %24 = add nuw i64 %23, 440
  %scevgep.1 = getelementptr i8, ptr @Q, i64 %24
  %scevgep95.1 = getelementptr i8, ptr @P, i64 %24
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %scevgep.1, ptr align 8 %scevgep95.1, i64 %20, i1 false), !tbaa !5
  %25 = mul nuw i64 %indvar, 440
  %26 = add nuw i64 %25, 880
  %scevgep.2 = getelementptr i8, ptr @Q, i64 %26
  %scevgep95.2 = getelementptr i8, ptr @P, i64 %26
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %scevgep.2, ptr align 16 %scevgep95.2, i64 %20, i1 false), !tbaa !5
  %27 = mul nuw i64 %indvar, 440
  %28 = add nuw i64 %27, 1320
  %scevgep.3 = getelementptr i8, ptr @Q, i64 %28
  %scevgep95.3 = getelementptr i8, ptr @P, i64 %28
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %scevgep.3, ptr align 8 %scevgep95.3, i64 %20, i1 false), !tbaa !5
  %indvar.next.3 = add nuw nsw i64 %indvar, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader59.unr-lcssa, label %.preheader60.us, !llvm.loop !15

.lr.ph:                                           ; preds = %.preheader62, %.lr.ph
  %.05266 = phi i32 [ %41, %.lr.ph ], [ 0, %.preheader62 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = add nsw i32 %32, -1
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = add nsw i32 %34, -1
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = sext i32 %35 to i64
  %38 = sext i32 %33 to i64
  %39 = getelementptr inbounds [110 x [110 x i32]], ptr @P, i64 0, i64 %37, i64 %38
  store i32 %36, ptr %39, align 4, !tbaa !5
  %40 = getelementptr inbounds [110 x [110 x i32]], ptr @P, i64 0, i64 %38, i64 %37
  store i32 %36, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %41 = add nuw nsw i32 %.05266, 1
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %.lr.ph, label %.preheader61.loopexit, !llvm.loop !16

.preheader59.unr-lcssa:                           ; preds = %.preheader60.us, %.preheader60.us.preheader
  %indvar.unr = phi i64 [ 0, %.preheader60.us.preheader ], [ %indvar.next.3, %.preheader60.us ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader59, label %.preheader60.us.epil

.preheader60.us.epil:                             ; preds = %.preheader59.unr-lcssa, %.preheader60.us.epil
  %indvar.epil = phi i64 [ %indvar.next.epil, %.preheader60.us.epil ], [ %indvar.unr, %.preheader59.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader60.us.epil ], [ 0, %.preheader59.unr-lcssa ]
  %44 = mul nuw nsw i64 %indvar.epil, 440
  %scevgep.epil = getelementptr i8, ptr @Q, i64 %44
  %scevgep95.epil = getelementptr i8, ptr @P, i64 %44
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %scevgep.epil, ptr align 8 %scevgep95.epil, i64 %20, i1 false), !tbaa !5
  %indvar.next.epil = add nuw nsw i64 %indvar.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader59, label %.preheader60.us.epil, !llvm.loop !17

.preheader59:                                     ; preds = %.preheader60.us.epil, %.preheader59.unr-lcssa
  br i1 %18, label %.preheader58, label %._crit_edge83

.preheader58:                                     ; preds = %.preheader59, %._crit_edge74
  %45 = phi i32 [ %79, %._crit_edge74 ], [ %17, %.preheader59 ]
  %indvars.iv108 = phi i64 [ %indvars.iv.next109, %._crit_edge74 ], [ 0, %.preheader59 ]
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %.preheader57, label %._crit_edge74

.preheader56:                                     ; preds = %._crit_edge74
  %47 = icmp sgt i32 %79, 0
  br i1 %47, label %.preheader.us.preheader, label %._crit_edge83

.preheader.us.preheader:                          ; preds = %.preheader56
  %wide.trip.count119 = zext nneg i32 %79 to i64
  %xtraiter132 = and i64 %wide.trip.count119, 1
  %48 = icmp eq i32 %79, 1
  %unroll_iter136 = and i64 %wide.trip.count119, 2147483646
  %lcmp.mod134.not = icmp eq i64 %xtraiter132, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge79.us
  %indvars.iv116 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next117, %._crit_edge79.us ]
  %.04681.us = phi i32 [ 0, %.preheader.us.preheader ], [ %.2.us.lcssa, %._crit_edge79.us ]
  br i1 %48, label %._crit_edge79.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %66
  %indvars.iv111 = phi i64 [ %indvars.iv.next112.1, %66 ], [ 0, %.preheader.us ]
  %.176.us = phi i32 [ %.2.us.1, %66 ], [ %.04681.us, %.preheader.us ]
  %niter137 = phi i64 [ %niter137.next.1, %66 ], [ 0, %.preheader.us ]
  %49 = getelementptr inbounds [110 x [110 x i32]], ptr @P, i64 0, i64 %indvars.iv116, i64 %indvars.iv111
  %50 = load i32, ptr %49, align 8, !tbaa !5
  %51 = icmp slt i32 %50, 1000000007
  br i1 %51, label %52, label %57

52:                                               ; preds = %.preheader.us.new
  %53 = getelementptr inbounds [110 x [110 x i32]], ptr @Q, i64 0, i64 %indvars.iv116, i64 %indvars.iv111
  %54 = load i32, ptr %53, align 8, !tbaa !5
  %55 = icmp sgt i32 %50, %54
  %56 = zext i1 %55 to i32
  %spec.select.us = add nsw i32 %.176.us, %56
  br label %57

57:                                               ; preds = %52, %.preheader.us.new
  %.2.us = phi i32 [ %.176.us, %.preheader.us.new ], [ %spec.select.us, %52 ]
  %indvars.iv.next112 = or disjoint i64 %indvars.iv111, 1
  %58 = getelementptr inbounds [110 x [110 x i32]], ptr @P, i64 0, i64 %indvars.iv116, i64 %indvars.iv.next112
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = icmp slt i32 %59, 1000000007
  br i1 %60, label %61, label %66

61:                                               ; preds = %57
  %62 = getelementptr inbounds [110 x [110 x i32]], ptr @Q, i64 0, i64 %indvars.iv116, i64 %indvars.iv.next112
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = icmp sgt i32 %59, %63
  %65 = zext i1 %64 to i32
  %spec.select.us.1 = add nsw i32 %.2.us, %65
  br label %66

66:                                               ; preds = %61, %57
  %.2.us.1 = phi i32 [ %.2.us, %57 ], [ %spec.select.us.1, %61 ]
  %indvars.iv.next112.1 = add nuw nsw i64 %indvars.iv111, 2
  %niter137.next.1 = add i64 %niter137, 2
  %niter137.ncmp.1 = icmp eq i64 %niter137.next.1, %unroll_iter136
  br i1 %niter137.ncmp.1, label %._crit_edge79.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !19

._crit_edge79.us.unr-lcssa:                       ; preds = %66, %.preheader.us
  %.2.us.lcssa.ph = phi i32 [ poison, %.preheader.us ], [ %.2.us.1, %66 ]
  %indvars.iv111.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next112.1, %66 ]
  %.176.us.unr = phi i32 [ %.04681.us, %.preheader.us ], [ %.2.us.1, %66 ]
  br i1 %lcmp.mod134.not, label %._crit_edge79.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge79.us.unr-lcssa
  %67 = getelementptr inbounds [110 x [110 x i32]], ptr @P, i64 0, i64 %indvars.iv116, i64 %indvars.iv111.unr
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = icmp slt i32 %68, 1000000007
  br i1 %69, label %70, label %._crit_edge79.us

70:                                               ; preds = %.epil.preheader
  %71 = getelementptr inbounds [110 x [110 x i32]], ptr @Q, i64 0, i64 %indvars.iv116, i64 %indvars.iv111.unr
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = icmp sgt i32 %68, %72
  %74 = zext i1 %73 to i32
  %spec.select.us.epil = add nsw i32 %.176.us.unr, %74
  br label %._crit_edge79.us

._crit_edge79.us:                                 ; preds = %.epil.preheader, %70, %._crit_edge79.us.unr-lcssa
  %.2.us.lcssa = phi i32 [ %.2.us.lcssa.ph, %._crit_edge79.us.unr-lcssa ], [ %.176.us.unr, %.epil.preheader ], [ %spec.select.us.epil, %70 ]
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %exitcond120.not = icmp eq i64 %indvars.iv.next117, %wide.trip.count119
  br i1 %exitcond120.not, label %._crit_edge83.loopexit, label %.preheader.us, !llvm.loop !20

.preheader57:                                     ; preds = %.preheader58, %._crit_edge
  %75 = phi i32 [ %82, %._crit_edge ], [ %45, %.preheader58 ]
  %76 = phi i32 [ %83, %._crit_edge ], [ %45, %.preheader58 ]
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %._crit_edge ], [ 0, %.preheader58 ]
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %.lr.ph72, label %._crit_edge

.lr.ph72:                                         ; preds = %.preheader57
  %78 = getelementptr inbounds [110 x [110 x i32]], ptr @Q, i64 0, i64 %indvars.iv105, i64 %indvars.iv108
  br label %86

._crit_edge74:                                    ; preds = %._crit_edge, %.preheader58
  %79 = phi i32 [ %45, %.preheader58 ], [ %82, %._crit_edge ]
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %80 = sext i32 %79 to i64
  %81 = icmp slt i64 %indvars.iv.next109, %80
  br i1 %81, label %.preheader58, label %.preheader56, !llvm.loop !21

._crit_edge:                                      ; preds = %99, %.preheader57
  %82 = phi i32 [ %75, %.preheader57 ], [ %100, %99 ]
  %83 = phi i32 [ %76, %.preheader57 ], [ %101, %99 ]
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %84 = sext i32 %83 to i64
  %85 = icmp slt i64 %indvars.iv.next106, %84
  br i1 %85, label %.preheader57, label %._crit_edge74, !llvm.loop !23

86:                                               ; preds = %.lr.ph72, %99
  %87 = phi i32 [ %75, %.lr.ph72 ], [ %100, %99 ]
  %88 = phi i32 [ %76, %.lr.ph72 ], [ %101, %99 ]
  %89 = phi i32 [ %76, %.lr.ph72 ], [ %102, %99 ]
  %indvars.iv102 = phi i64 [ 0, %.lr.ph72 ], [ %indvars.iv.next103, %99 ]
  %90 = icmp eq i64 %indvars.iv105, %indvars.iv102
  br i1 %90, label %99, label %91

91:                                               ; preds = %86
  %92 = getelementptr inbounds [110 x [110 x i32]], ptr @Q, i64 0, i64 %indvars.iv105, i64 %indvars.iv102
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %93 = load i32, ptr %78, align 4, !tbaa !5
  %94 = getelementptr inbounds [110 x [110 x i32]], ptr @Q, i64 0, i64 %indvars.iv108, i64 %indvars.iv102
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = add nsw i32 %95, %93
  store i32 %96, ptr %6, align 4, !tbaa !5
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %92, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %98 = load i32, ptr %97, align 4, !tbaa !5
  store i32 %98, ptr %92, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  %.pre121 = load i32, ptr %1, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %86, %91
  %100 = phi i32 [ %87, %86 ], [ %.pre121, %91 ]
  %101 = phi i32 [ %88, %86 ], [ %.pre121, %91 ]
  %102 = phi i32 [ %89, %86 ], [ %.pre121, %91 ]
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %103 = sext i32 %102 to i64
  %104 = icmp slt i64 %indvars.iv.next103, %103
  br i1 %104, label %86, label %._crit_edge, !llvm.loop !24

._crit_edge83.loopexit:                           ; preds = %._crit_edge79.us
  %105 = sdiv i32 %.2.us.lcssa, 2
  br label %._crit_edge83

._crit_edge83:                                    ; preds = %.preheader61, %.preheader59, %._crit_edge83.loopexit, %.preheader56
  %.046.lcssa = phi i32 [ 0, %.preheader56 ], [ %105, %._crit_edge83.loopexit ], [ 0, %.preheader59 ], [ 0, %.preheader61 ]
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.046.lcssa)
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10, !22}
!22 = !{!"llvm.loop.unswitch.partial.disable"}
!23 = distinct !{!23, !10, !22}
!24 = distinct !{!24, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass