; LLVM IR from AdarshGaur/Competitive-Programming :: SPOJ (LPS - Longest Palindromic Substring)

; 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" }
%"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] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %18 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %19 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %21
  %23 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %22, ptr noundef null)
  %24 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %25 = getelementptr i8, ptr %24, i64 -24
  %26 = load i64, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %26
  %28 = call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %27, i64 noundef 20)
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  %29 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %30 unwind label %45

30:                                               ; preds = %0
  %31 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %32 unwind label %45

32:                                               ; preds = %30
  %33 = load i64, ptr %3, align 8, !tbaa !8
  %34 = call ptr @llvm.stacksave.p0()
  store ptr %34, ptr %6, align 8
  %35 = alloca i64, i64 %33, align 16
  store i64 %33, ptr %7, align 8
  %36 = load i64, ptr %3, align 8, !tbaa !8
  %37 = alloca i64, i64 %36, align 16
  store i64 %36, ptr %8, align 8
  %38 = mul nuw i64 8, %33
  call void @llvm.memset.p0.i64(ptr align 16 %35, i8 0, i64 %38, i1 false)
  %39 = mul nuw i64 8, %36
  call void @llvm.memset.p0.i64(ptr align 16 %37, i8 0, i64 %39, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  store i64 0, ptr %9, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  store i64 -1, ptr %10, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  store i64 0, ptr %11, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  store i64 0, ptr %12, align 8, !tbaa !8
  br label %40

40:                                               ; preds = %141, %32
  %41 = load i64, ptr %12, align 8, !tbaa !8
  %42 = load i64, ptr %3, align 8, !tbaa !8
  %43 = icmp slt i64 %41, %42
  br i1 %43, label %49, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %145

45:                                               ; preds = %30, %0
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %4, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %5, align 4
  br label %265

49:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %50 = load i64, ptr %12, align 8, !tbaa !8
  %51 = load i64, ptr %10, align 8, !tbaa !8
  %52 = icmp sgt i64 %50, %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  br i1 %52, label %53, label %54

53:                                               ; preds = %49
  br label %67

54:                                               ; preds = %49
  %55 = load i64, ptr %9, align 8, !tbaa !8
  %56 = load i64, ptr %10, align 8, !tbaa !8
  %57 = load i64, ptr %12, align 8, !tbaa !8
  %58 = sub nsw i64 %56, %57
  %59 = add nsw i64 %55, %58
  %60 = getelementptr inbounds i64, ptr %35, i64 %59
  %61 = load i64, ptr %10, align 8, !tbaa !8
  %62 = load i64, ptr %12, align 8, !tbaa !8
  %63 = sub nsw i64 %61, %62
  store i64 %63, ptr %14, align 8, !tbaa !8
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %65 unwind label %101

65:                                               ; preds = %54
  %66 = load i64, ptr %64, align 8, !tbaa !8
  br label %67

67:                                               ; preds = %65, %53
  %68 = phi i64 [ 1, %53 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  store i64 %68, ptr %13, align 8, !tbaa !8
  br label %69

69:                                               ; preds = %98, %67
  %70 = load i64, ptr %12, align 8, !tbaa !8
  %71 = load i64, ptr %13, align 8, !tbaa !8
  %72 = add nsw i64 %70, %71
  %73 = load i64, ptr %3, align 8, !tbaa !8
  %74 = icmp slt i64 %72, %73
  br i1 %74, label %75, label %96

75:                                               ; preds = %69
  %76 = load i64, ptr %12, align 8, !tbaa !8
  %77 = load i64, ptr %13, align 8, !tbaa !8
  %78 = sub nsw i64 %76, %77
  %79 = icmp sge i64 %78, 0
  br i1 %79, label %80, label %96

80:                                               ; preds = %75
  %81 = load i64, ptr %12, align 8, !tbaa !8
  %82 = load i64, ptr %13, align 8, !tbaa !8
  %83 = add nsw i64 %81, %82
  %84 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %83)
          to label %85 unwind label %105

85:                                               ; preds = %80
  %86 = load i8, ptr %84, align 1, !tbaa !11
  %87 = sext i8 %86 to i32
  %88 = load i64, ptr %12, align 8, !tbaa !8
  %89 = load i64, ptr %13, align 8, !tbaa !8
  %90 = sub nsw i64 %88, %89
  %91 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %90)
          to label %92 unwind label %105

92:                                               ; preds = %85
  %93 = load i8, ptr %91, align 1, !tbaa !11
  %94 = sext i8 %93 to i32
  %95 = icmp eq i32 %87, %94
  br label %96

96:                                               ; preds = %92, %75, %69
  %97 = phi i1 [ false, %75 ], [ false, %69 ], [ %95, %92 ]
  br i1 %97, label %98, label %109

98:                                               ; preds = %96
  %99 = load i64, ptr %13, align 8, !tbaa !8
  %100 = add nsw i64 %99, 1
  store i64 %100, ptr %13, align 8, !tbaa !8
  br label %69, !llvm.loop !12

101:                                              ; preds = %54
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %4, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %144

105:                                              ; preds = %85, %80
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %4, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %5, align 4
  br label %144

109:                                              ; preds = %96
  %110 = load i64, ptr %13, align 8, !tbaa !8
  %111 = add nsw i64 %110, -1
  store i64 %111, ptr %13, align 8, !tbaa !8
  %112 = load i64, ptr %12, align 8, !tbaa !8
  %113 = getelementptr inbounds i64, ptr %35, i64 %112
  store i64 %110, ptr %113, align 8, !tbaa !8
  %114 = load i64, ptr %12, align 8, !tbaa !8
  %115 = load i64, ptr %13, align 8, !tbaa !8
  %116 = add nsw i64 %114, %115
  %117 = load i64, ptr %10, align 8, !tbaa !8
  %118 = icmp sgt i64 %116, %117
  br i1 %118, label %119, label %126

119:                                              ; preds = %109
  %120 = load i64, ptr %12, align 8, !tbaa !8
  %121 = load i64, ptr %13, align 8, !tbaa !8
  %122 = sub nsw i64 %120, %121
  store i64 %122, ptr %9, align 8, !tbaa !8
  %123 = load i64, ptr %12, align 8, !tbaa !8
  %124 = load i64, ptr %13, align 8, !tbaa !8
  %125 = add nsw i64 %123, %124
  store i64 %125, ptr %10, align 8, !tbaa !8
  br label %126

126:                                              ; preds = %119, %109
  %127 = load i64, ptr %11, align 8, !tbaa !8
  %128 = load i64, ptr %12, align 8, !tbaa !8
  %129 = getelementptr inbounds i64, ptr %35, i64 %128
  %130 = load i64, ptr %129, align 8, !tbaa !8
  %131 = mul nsw i64 %130, 2
  %132 = sub nsw i64 %131, 1
  %133 = icmp slt i64 %127, %132
  br i1 %133, label %134, label %140

134:                                              ; preds = %126
  %135 = load i64, ptr %12, align 8, !tbaa !8
  %136 = getelementptr inbounds i64, ptr %35, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !8
  %138 = mul nsw i64 %137, 2
  %139 = sub nsw i64 %138, 1
  store i64 %139, ptr %11, align 8, !tbaa !8
  br label %140

140:                                              ; preds = %134, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %141

141:                                              ; preds = %140
  %142 = load i64, ptr %12, align 8, !tbaa !8
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %12, align 8, !tbaa !8
  br label %40, !llvm.loop !14

144:                                              ; preds = %105, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %264

145:                                              ; preds = %44
  store i64 0, ptr %9, align 8, !tbaa !8
  store i64 -1, ptr %10, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  store i64 0, ptr %15, align 8, !tbaa !8
  br label %146

146:                                              ; preds = %248, %145
  %147 = load i64, ptr %15, align 8, !tbaa !8
  %148 = load i64, ptr %3, align 8, !tbaa !8
  %149 = icmp slt i64 %147, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %252

151:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %152 = load i64, ptr %15, align 8, !tbaa !8
  %153 = load i64, ptr %10, align 8, !tbaa !8
  %154 = icmp sgt i64 %152, %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  br i1 %154, label %155, label %156

155:                                              ; preds = %151
  br label %172

156:                                              ; preds = %151
  %157 = load i64, ptr %9, align 8, !tbaa !8
  %158 = load i64, ptr %10, align 8, !tbaa !8
  %159 = load i64, ptr %15, align 8, !tbaa !8
  %160 = sub nsw i64 %158, %159
  %161 = add nsw i64 %157, %160
  %162 = add nsw i64 %161, 1
  %163 = getelementptr inbounds i64, ptr %37, i64 %162
  %164 = load i64, ptr %10, align 8, !tbaa !8
  %165 = load i64, ptr %15, align 8, !tbaa !8
  %166 = sub nsw i64 %164, %165
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %17, align 8, !tbaa !8
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %169 unwind label %208

169:                                              ; preds = %156
  %170 = load i64, ptr %168, align 8, !tbaa !8
  %171 = add nsw i64 %170, 1
  br label %172

172:                                              ; preds = %169, %155
  %173 = phi i64 [ 1, %155 ], [ %171, %169 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  store i64 %173, ptr %16, align 8, !tbaa !8
  br label %174

174:                                              ; preds = %205, %172
  %175 = load i64, ptr %15, align 8, !tbaa !8
  %176 = load i64, ptr %16, align 8, !tbaa !8
  %177 = add nsw i64 %175, %176
  %178 = sub nsw i64 %177, 1
  %179 = load i64, ptr %3, align 8, !tbaa !8
  %180 = icmp slt i64 %178, %179
  br i1 %180, label %181, label %203

181:                                              ; preds = %174
  %182 = load i64, ptr %15, align 8, !tbaa !8
  %183 = load i64, ptr %16, align 8, !tbaa !8
  %184 = add nsw i64 %182, %183
  %185 = icmp sge i64 %184, 0
  br i1 %185, label %186, label %203

186:                                              ; preds = %181
  %187 = load i64, ptr %15, align 8, !tbaa !8
  %188 = load i64, ptr %16, align 8, !tbaa !8
  %189 = add nsw i64 %187, %188
  %190 = sub nsw i64 %189, 1
  %191 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %190)
          to label %192 unwind label %212

192:                                              ; preds = %186
  %193 = load i8, ptr %191, align 1, !tbaa !11
  %194 = sext i8 %193 to i32
  %195 = load i64, ptr %15, align 8, !tbaa !8
  %196 = load i64, ptr %16, align 8, !tbaa !8
  %197 = sub nsw i64 %195, %196
  %198 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %197)
          to label %199 unwind label %212

199:                                              ; preds = %192
  %200 = load i8, ptr %198, align 1, !tbaa !11
  %201 = sext i8 %200 to i32
  %202 = icmp eq i32 %194, %201
  br label %203

203:                                              ; preds = %199, %181, %174
  %204 = phi i1 [ false, %181 ], [ false, %174 ], [ %202, %199 ]
  br i1 %204, label %205, label %216

205:                                              ; preds = %203
  %206 = load i64, ptr %16, align 8, !tbaa !8
  %207 = add nsw i64 %206, 1
  store i64 %207, ptr %16, align 8, !tbaa !8
  br label %174, !llvm.loop !15

208:                                              ; preds = %156
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %4, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %251

212:                                              ; preds = %192, %186
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %4, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %5, align 4
  br label %251

216:                                              ; preds = %203
  %217 = load i64, ptr %16, align 8, !tbaa !8
  %218 = add nsw i64 %217, -1
  store i64 %218, ptr %16, align 8, !tbaa !8
  %219 = load i64, ptr %15, align 8, !tbaa !8
  %220 = getelementptr inbounds i64, ptr %37, i64 %219
  store i64 %218, ptr %220, align 8, !tbaa !8
  %221 = load i64, ptr %15, align 8, !tbaa !8
  %222 = load i64, ptr %16, align 8, !tbaa !8
  %223 = add nsw i64 %221, %222
  %224 = sub nsw i64 %223, 1
  %225 = load i64, ptr %10, align 8, !tbaa !8
  %226 = icmp sgt i64 %224, %225
  br i1 %226, label %227, label %235

227:                                              ; preds = %216
  %228 = load i64, ptr %15, align 8, !tbaa !8
  %229 = load i64, ptr %16, align 8, !tbaa !8
  %230 = sub nsw i64 %228, %229
  store i64 %230, ptr %9, align 8, !tbaa !8
  %231 = load i64, ptr %15, align 8, !tbaa !8
  %232 = load i64, ptr %16, align 8, !tbaa !8
  %233 = add nsw i64 %231, %232
  %234 = sub nsw i64 %233, 1
  store i64 %234, ptr %10, align 8, !tbaa !8
  br label %235

235:                                              ; preds = %227, %216
  %236 = load i64, ptr %11, align 8, !tbaa !8
  %237 = load i64, ptr %15, align 8, !tbaa !8
  %238 = getelementptr inbounds i64, ptr %37, i64 %237
  %239 = load i64, ptr %238, align 8, !tbaa !8
  %240 = mul nsw i64 %239, 2
  %241 = icmp slt i64 %236, %240
  br i1 %241, label %242, label %247

242:                                              ; preds = %235
  %243 = load i64, ptr %15, align 8, !tbaa !8
  %244 = getelementptr inbounds i64, ptr %37, i64 %243
  %245 = load i64, ptr %244, align 8, !tbaa !8
  %246 = mul nsw i64 %245, 2
  store i64 %246, ptr %11, align 8, !tbaa !8
  br label %247

247:                                              ; preds = %242, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %248

248:                                              ; preds = %247
  %249 = load i64, ptr %15, align 8, !tbaa !8
  %250 = add nsw i64 %249, 1
  store i64 %250, ptr %15, align 8, !tbaa !8
  br label %146, !llvm.loop !16

251:                                              ; preds = %212, %208
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %264

252:                                              ; preds = %150
  %253 = load i64, ptr %11, align 8, !tbaa !8
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %253)
          to label %255 unwind label %260

255:                                              ; preds = %252
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %254, ptr noundef @.str)
          to label %257 unwind label %260

257:                                              ; preds = %255
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  %258 = load ptr, ptr %6, align 8
  call void @llvm.stackrestore.p0(ptr %258)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #9
  %259 = load i32, ptr %1, align 4
  ret i32 %259

260:                                              ; preds = %255, %252
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %4, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %5, align 4
  br label %264

264:                                              ; preds = %260, %251, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %265

265:                                              ; preds = %264, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #9
  br label %266

266:                                              ; preds = %265
  %267 = load ptr, ptr %4, align 8
  %268 = load i32, ptr %5, align 4
  %269 = insertvalue { ptr, i32 } poison, ptr %267, 0
  %270 = insertvalue { ptr, i32 } %269, i32 %268, 1
  resume { ptr, i32 } %270
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216), i64 noundef) #2 align 2

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

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

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 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind willreturn }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 #8 = { 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 #9 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}


; 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" }
%"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] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %6 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %7 = getelementptr i8, ptr %6, i64 -24
  %8 = load i64, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %8
  %10 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %9, ptr noundef null)
  %11 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %13
  %15 = tail call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %14, i64 noundef 20)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #10
  %16 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %17 unwind label %29

17:                                               ; preds = %0
  %18 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %19 unwind label %29

19:                                               ; preds = %17
  %20 = load i64, ptr %2, align 8, !tbaa !8
  %21 = call ptr @llvm.stacksave.p0()
  %22 = alloca i64, i64 %20, align 16
  %23 = load i64, ptr %2, align 8, !tbaa !8
  %24 = alloca i64, i64 %23, align 16
  %25 = shl nuw i64 %20, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %22, i8 0, i64 %25, i1 false)
  %26 = shl nuw i64 %23, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %24, i8 0, i64 %26, i1 false)
  %27 = icmp sgt i64 %23, 0
  br i1 %27, label %.lr.ph100, label %._crit_edge

.preheader:                                       ; preds = %.critedge
  %28 = icmp sgt i64 %59, 0
  br i1 %28, label %.lr.ph113, label %._crit_edge

29:                                               ; preds = %17, %0
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %113

.lr.ph100:                                        ; preds = %19, %.critedge
  %.pre115120 = phi i64 [ %.pre115121, %.critedge ], [ %23, %19 ]
  %31 = phi i64 [ %59, %.critedge ], [ %23, %19 ]
  %.06899 = phi i64 [ %67, %.critedge ], [ 0, %19 ]
  %.06998 = phi i64 [ %.1, %.critedge ], [ 0, %19 ]
  %.07097 = phi i64 [ %spec.select88, %.critedge ], [ -1, %19 ]
  %.07496 = phi i64 [ %spec.select, %.critedge ], [ 0, %19 ]
  %32 = icmp sgt i64 %.06899, %.07097
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10
  br i1 %32, label %39, label %33

33:                                               ; preds = %.lr.ph100
  %34 = sub nsw i64 %.07097, %.06899
  %35 = getelementptr i64, ptr %22, i64 %.07496
  %36 = getelementptr i64, ptr %35, i64 %34
  store i64 %34, ptr %3, align 8, !tbaa !8
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %38 = load i64, ptr %37, align 8, !tbaa !8
  %.pre = load i64, ptr %2, align 8, !tbaa !8
  br label %39

39:                                               ; preds = %.lr.ph100, %33
  %.pre115119 = phi i64 [ %.pre, %33 ], [ %.pre115120, %.lr.ph100 ]
  %40 = phi i64 [ %.pre, %33 ], [ %31, %.lr.ph100 ]
  %41 = phi i64 [ %38, %33 ], [ 1, %.lr.ph100 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  %42 = add nsw i64 %41, %.06899
  %43 = icmp slt i64 %42, %40
  br i1 %43, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %39
  %44 = sub nsw i64 %.06899, %41
  %45 = icmp sgt i64 %44, -1
  br i1 %45, label %.lr.ph125, label %.critedge

.lr.ph125:                                        ; preds = %.lr.ph.preheader, %53
  %46 = phi i64 [ %57, %53 ], [ %44, %.lr.ph.preheader ]
  %.06791124 = phi i64 [ %54, %53 ], [ %41, %.lr.ph.preheader ]
  %47 = phi i64 [ %55, %53 ], [ %42, %.lr.ph.preheader ]
  %48 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %47)
  %49 = load i8, ptr %48, align 1, !tbaa !11
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %46)
  %51 = load i8, ptr %50, align 1, !tbaa !11
  %52 = icmp eq i8 %49, %51
  %.pre115.pre = load i64, ptr %2, align 8, !tbaa !8
  br i1 %52, label %53, label %.critedge

53:                                               ; preds = %.lr.ph125
  %54 = add nsw i64 %.06791124, 1
  %55 = add nsw i64 %54, %.06899
  %56 = icmp slt i64 %55, %.pre115.pre
  %57 = sub nsw i64 %.06899, %54
  %58 = icmp sgt i64 %57, -1
  %or.cond136 = select i1 %56, i1 %58, i1 false
  br i1 %or.cond136, label %.lr.ph125, label %.critedge, !llvm.loop !12

.critedge:                                        ; preds = %53, %.lr.ph125, %.lr.ph.preheader, %39
  %.pre115121 = phi i64 [ %.pre115119, %39 ], [ %.pre115119, %.lr.ph.preheader ], [ %.pre115.pre, %.lr.ph125 ], [ %.pre115.pre, %53 ]
  %59 = phi i64 [ %40, %39 ], [ %.pre115119, %.lr.ph.preheader ], [ %.pre115.pre, %.lr.ph125 ], [ %.pre115.pre, %53 ]
  %.067.lcssa = phi i64 [ %41, %39 ], [ %41, %.lr.ph.preheader ], [ %.06791124, %.lr.ph125 ], [ %54, %53 ]
  %60 = add nsw i64 %.067.lcssa, -1
  %61 = getelementptr inbounds i64, ptr %22, i64 %.06899
  store i64 %.067.lcssa, ptr %61, align 8, !tbaa !8
  %62 = add nsw i64 %60, %.06899
  %63 = icmp sgt i64 %62, %.07097
  %64 = sub nsw i64 %.06899, %60
  %spec.select = select i1 %63, i64 %64, i64 %.07496
  %spec.select88 = call i64 @llvm.smax.i64(i64 %62, i64 %.07097)
  %65 = shl nsw i64 %.067.lcssa, 1
  %66 = add nsw i64 %65, -1
  %.1 = call i64 @llvm.smax.i64(i64 %.06998, i64 %66)
  %67 = add nuw nsw i64 %.06899, 1
  %68 = icmp slt i64 %67, %59
  br i1 %68, label %.lr.ph100, label %.preheader, !llvm.loop !14

._crit_edge:                                      ; preds = %.critedge2, %19, %.preheader
  %.2.lcssa = phi i64 [ %.1, %.preheader ], [ 0, %19 ], [ %.3, %.critedge2 ]
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.2.lcssa)
          to label %108 unwind label %111

.lr.ph113:                                        ; preds = %.preheader, %.critedge2
  %70 = phi i64 [ %98, %.critedge2 ], [ %59, %.preheader ]
  %.066112 = phi i64 [ %106, %.critedge2 ], [ 0, %.preheader ]
  %.2111 = phi i64 [ %.3, %.critedge2 ], [ %.1, %.preheader ]
  %.272110 = phi i64 [ %spec.select90, %.critedge2 ], [ -1, %.preheader ]
  %.276109 = phi i64 [ %spec.select89, %.critedge2 ], [ 0, %.preheader ]
  %71 = icmp sgt i64 %.066112, %.272110
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10
  br i1 %71, label %81, label %72

72:                                               ; preds = %.lr.ph113
  %73 = sub nsw i64 %.272110, %.066112
  %74 = getelementptr i64, ptr %24, i64 %.276109
  %75 = getelementptr i64, ptr %74, i64 %73
  %76 = getelementptr i8, ptr %75, i64 8
  %77 = add nsw i64 %73, 1
  store i64 %77, ptr %4, align 8, !tbaa !8
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %79 = load i64, ptr %78, align 8, !tbaa !8
  %80 = add nsw i64 %79, 1
  %.pre116 = load i64, ptr %2, align 8, !tbaa !8
  br label %81

81:                                               ; preds = %.lr.ph113, %72
  %82 = phi i64 [ %.pre116, %72 ], [ %70, %.lr.ph113 ]
  %83 = phi i64 [ %80, %72 ], [ 1, %.lr.ph113 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  %84 = add nsw i64 %83, %.066112
  %.not102 = icmp sle i64 %84, %82
  %85 = icmp sgt i64 %84, -1
  %or.cond103 = and i1 %.not102, %85
  br i1 %or.cond103, label %.lr.ph105, label %.critedge2

.lr.ph105:                                        ; preds = %81, %94
  %86 = phi i64 [ %96, %94 ], [ %84, %81 ]
  %.0104 = phi i64 [ %95, %94 ], [ %83, %81 ]
  %87 = add nsw i64 %86, -1
  %88 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %87)
  %89 = load i8, ptr %88, align 1, !tbaa !11
  %90 = sub nsw i64 %.066112, %.0104
  %91 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %90)
  %92 = load i8, ptr %91, align 1, !tbaa !11
  %93 = icmp eq i8 %89, %92
  %.pre117.pre = load i64, ptr %2, align 8, !tbaa !8
  br i1 %93, label %94, label %.critedge2

94:                                               ; preds = %.lr.ph105
  %95 = add nsw i64 %.0104, 1
  %96 = add nsw i64 %95, %.066112
  %.not = icmp sle i64 %96, %.pre117.pre
  %97 = icmp sgt i64 %96, -1
  %or.cond = and i1 %.not, %97
  br i1 %or.cond, label %.lr.ph105, label %.critedge2, !llvm.loop !15

.critedge2:                                       ; preds = %.lr.ph105, %94, %81
  %98 = phi i64 [ %82, %81 ], [ %.pre117.pre, %94 ], [ %.pre117.pre, %.lr.ph105 ]
  %.0.lcssa = phi i64 [ %83, %81 ], [ %.0104, %.lr.ph105 ], [ %95, %94 ]
  %99 = add nsw i64 %.0.lcssa, -1
  %100 = getelementptr inbounds i64, ptr %24, i64 %.066112
  store i64 %99, ptr %100, align 8, !tbaa !8
  %101 = add nsw i64 %.066112, -1
  %102 = add i64 %101, %99
  %103 = icmp sgt i64 %102, %.272110
  %104 = sub nsw i64 %.066112, %99
  %spec.select89 = select i1 %103, i64 %104, i64 %.276109
  %spec.select90 = call i64 @llvm.smax.i64(i64 %102, i64 %.272110)
  %105 = shl nsw i64 %99, 1
  %.3 = call i64 @llvm.smax.i64(i64 %.2111, i64 %105)
  %106 = add nuw nsw i64 %.066112, 1
  %107 = icmp slt i64 %106, %98
  br i1 %107, label %.lr.ph113, label %._crit_edge, !llvm.loop !16

108:                                              ; preds = %._crit_edge
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @.str)
          to label %110 unwind label %111

110:                                              ; preds = %108
  call void @llvm.stackrestore.p0(ptr %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #10
  ret i32 0

111:                                              ; preds = %108, %._crit_edge
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %113

113:                                              ; preds = %111, %29
  %.pn = phi { ptr, i32 } [ %112, %111 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #10
  resume { ptr, i32 } %.pn
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216), i64 noundef) local_unnamed_addr #2 align 2

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #8

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #9

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 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 #8 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}


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