; LLVM IR from AdarshGaur/Competitive-Programming :: SPOJ (NUMOFPAL - Number of Palindromes)

; 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 ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, 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
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %20 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %21 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %22 = getelementptr i8, ptr %21, i64 -24
  %23 = load i64, ptr %22, align 8
  %24 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %23
  %25 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %24, ptr noundef null)
  %26 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %27 = getelementptr i8, ptr %26, i64 -24
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %28
  %30 = call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %29, 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
  %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) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %32 unwind label %46

32:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %33 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  store i64 %33, ptr %5, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  store i64 0, ptr %6, align 8, !tbaa !8
  %34 = load i64, ptr %5, align 8, !tbaa !8
  %35 = call ptr @llvm.stacksave.p0()
  store ptr %35, ptr %7, align 8
  %36 = alloca i64, i64 %34, align 16
  store i64 %34, ptr %8, align 8
  %37 = load i64, ptr %5, align 8, !tbaa !8
  %38 = alloca i64, i64 %37, align 16
  store i64 %37, ptr %9, align 8
  %39 = mul nuw i64 8, %34
  call void @llvm.memset.p0.i64(ptr align 16 %36, i8 0, i64 %39, i1 false)
  %40 = mul nuw i64 8, %37
  call void @llvm.memset.p0.i64(ptr align 16 %38, i8 0, i64 %40, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  store i64 0, 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 -1, ptr %12, align 8, !tbaa !8
  br label %41

41:                                               ; preds = %133, %32
  %42 = load i64, ptr %10, align 8, !tbaa !8
  %43 = load i64, ptr %5, align 8, !tbaa !8
  %44 = icmp slt i64 %42, %43
  br i1 %44, label %50, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %137

46:                                               ; preds = %0
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %3, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %4, align 4
  br label %250

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

54:                                               ; preds = %50
  br label %68

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

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

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

70:                                               ; preds = %99, %68
  %71 = load i64, ptr %10, align 8, !tbaa !8
  %72 = load i64, ptr %13, align 8, !tbaa !8
  %73 = add nsw i64 %71, %72
  %74 = load i64, ptr %5, align 8, !tbaa !8
  %75 = icmp slt i64 %73, %74
  br i1 %75, label %76, label %97

76:                                               ; preds = %70
  %77 = load i64, ptr %10, align 8, !tbaa !8
  %78 = load i64, ptr %13, align 8, !tbaa !8
  %79 = sub nsw i64 %77, %78
  %80 = icmp sge i64 %79, 0
  br i1 %80, label %81, label %97

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

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

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

97:                                               ; preds = %93, %76, %70
  %98 = phi i1 [ false, %76 ], [ false, %70 ], [ %96, %93 ]
  br i1 %98, label %99, label %110

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

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

106:                                              ; preds = %86, %81
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %3, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %4, align 4
  br label %136

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

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

127:                                              ; preds = %120, %110
  %128 = load i64, ptr %10, align 8, !tbaa !8
  %129 = getelementptr inbounds i64, ptr %36, i64 %128
  %130 = load i64, ptr %129, align 8, !tbaa !8
  %131 = load i64, ptr %6, align 8, !tbaa !8
  %132 = add nsw i64 %131, %130
  store i64 %132, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %133

133:                                              ; preds = %127
  %134 = load i64, ptr %10, align 8, !tbaa !8
  %135 = add nsw i64 %134, 1
  store i64 %135, ptr %10, align 8, !tbaa !8
  br label %41, !llvm.loop !14

136:                                              ; preds = %106, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %249

137:                                              ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  store i64 0, ptr %15, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  store i64 0, ptr %16, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  store i64 -1, ptr %17, align 8, !tbaa !8
  br label %138

138:                                              ; preds = %233, %137
  %139 = load i64, ptr %15, align 8, !tbaa !8
  %140 = load i64, ptr %5, align 8, !tbaa !8
  %141 = icmp slt i64 %139, %140
  br i1 %141, label %143, label %142

142:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %237

143:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %144 = load i64, ptr %15, align 8, !tbaa !8
  %145 = load i64, ptr %17, align 8, !tbaa !8
  %146 = icmp sgt i64 %144, %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  br i1 %146, label %147, label %148

147:                                              ; preds = %143
  br label %163

148:                                              ; preds = %143
  %149 = load i64, ptr %16, align 8, !tbaa !8
  %150 = load i64, ptr %17, align 8, !tbaa !8
  %151 = load i64, ptr %15, align 8, !tbaa !8
  %152 = sub nsw i64 %150, %151
  %153 = add nsw i64 %152, 1
  %154 = add nsw i64 %149, %153
  %155 = getelementptr inbounds i64, ptr %38, i64 %154
  %156 = load i64, ptr %17, align 8, !tbaa !8
  %157 = load i64, ptr %15, align 8, !tbaa !8
  %158 = sub nsw i64 %156, %157
  %159 = add nsw i64 %158, 1
  store i64 %159, ptr %19, align 8, !tbaa !8
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %161 unwind label %200

161:                                              ; preds = %148
  %162 = load i64, ptr %160, align 8, !tbaa !8
  br label %163

163:                                              ; preds = %161, %147
  %164 = phi i64 [ 0, %147 ], [ %162, %161 ]
  %165 = add nsw i64 %164, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  store i64 %165, ptr %18, align 8, !tbaa !8
  br label %166

166:                                              ; preds = %197, %163
  %167 = load i64, ptr %15, align 8, !tbaa !8
  %168 = load i64, ptr %18, align 8, !tbaa !8
  %169 = add nsw i64 %167, %168
  %170 = sub nsw i64 %169, 1
  %171 = load i64, ptr %5, align 8, !tbaa !8
  %172 = icmp slt i64 %170, %171
  br i1 %172, label %173, label %195

173:                                              ; preds = %166
  %174 = load i64, ptr %15, align 8, !tbaa !8
  %175 = load i64, ptr %18, align 8, !tbaa !8
  %176 = sub nsw i64 %174, %175
  %177 = icmp sge i64 %176, 0
  br i1 %177, label %178, label %195

178:                                              ; preds = %173
  %179 = load i64, ptr %15, align 8, !tbaa !8
  %180 = load i64, ptr %18, align 8, !tbaa !8
  %181 = sub nsw i64 %179, %180
  %182 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %181)
          to label %183 unwind label %204

183:                                              ; preds = %178
  %184 = load i8, ptr %182, align 1, !tbaa !11
  %185 = sext i8 %184 to i32
  %186 = load i64, ptr %15, align 8, !tbaa !8
  %187 = load i64, ptr %18, align 8, !tbaa !8
  %188 = add nsw i64 %186, %187
  %189 = sub nsw i64 %188, 1
  %190 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %189)
          to label %191 unwind label %204

191:                                              ; preds = %183
  %192 = load i8, ptr %190, align 1, !tbaa !11
  %193 = sext i8 %192 to i32
  %194 = icmp eq i32 %185, %193
  br label %195

195:                                              ; preds = %191, %173, %166
  %196 = phi i1 [ false, %173 ], [ false, %166 ], [ %194, %191 ]
  br i1 %196, label %197, label %208

197:                                              ; preds = %195
  %198 = load i64, ptr %18, align 8, !tbaa !8
  %199 = add nsw i64 %198, 1
  store i64 %199, ptr %18, align 8, !tbaa !8
  br label %166, !llvm.loop !15

200:                                              ; preds = %148
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %3, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %236

204:                                              ; preds = %183, %178
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %3, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %4, align 4
  br label %236

208:                                              ; preds = %195
  %209 = load i64, ptr %18, align 8, !tbaa !8
  %210 = add nsw i64 %209, -1
  store i64 %210, ptr %18, align 8, !tbaa !8
  %211 = load i64, ptr %15, align 8, !tbaa !8
  %212 = getelementptr inbounds i64, ptr %38, i64 %211
  store i64 %210, ptr %212, align 8, !tbaa !8
  %213 = load i64, ptr %15, align 8, !tbaa !8
  %214 = load i64, ptr %18, align 8, !tbaa !8
  %215 = add nsw i64 %213, %214
  %216 = sub nsw i64 %215, 1
  %217 = load i64, ptr %17, align 8, !tbaa !8
  %218 = icmp sgt i64 %216, %217
  br i1 %218, label %219, label %227

219:                                              ; preds = %208
  %220 = load i64, ptr %15, align 8, !tbaa !8
  %221 = load i64, ptr %18, align 8, !tbaa !8
  %222 = sub nsw i64 %220, %221
  store i64 %222, ptr %16, align 8, !tbaa !8
  %223 = load i64, ptr %15, align 8, !tbaa !8
  %224 = load i64, ptr %18, align 8, !tbaa !8
  %225 = add nsw i64 %223, %224
  %226 = sub nsw i64 %225, 1
  store i64 %226, ptr %17, align 8, !tbaa !8
  br label %227

227:                                              ; preds = %219, %208
  %228 = load i64, ptr %15, align 8, !tbaa !8
  %229 = getelementptr inbounds i64, ptr %38, i64 %228
  %230 = load i64, ptr %229, align 8, !tbaa !8
  %231 = load i64, ptr %6, align 8, !tbaa !8
  %232 = add nsw i64 %231, %230
  store i64 %232, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %233

233:                                              ; preds = %227
  %234 = load i64, ptr %15, align 8, !tbaa !8
  %235 = add nsw i64 %234, 1
  store i64 %235, ptr %15, align 8, !tbaa !8
  br label %138, !llvm.loop !16

236:                                              ; preds = %204, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %249

237:                                              ; preds = %142
  %238 = load i64, ptr %6, align 8, !tbaa !8
  %239 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %238)
          to label %240 unwind label %245

240:                                              ; preds = %237
  %241 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef @.str)
          to label %242 unwind label %245

242:                                              ; preds = %240
  store i32 0, ptr %1, align 4
  %243 = load ptr, ptr %7, align 8
  call void @llvm.stackrestore.p0(ptr %243)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #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
  %244 = load i32, ptr %1, align 4
  ret i32 %244

245:                                              ; preds = %240, %237
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %3, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %4, align 4
  br label %249

249:                                              ; preds = %245, %236, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  br label %250

250:                                              ; preds = %249, %46
  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 %251

251:                                              ; preds = %250
  %252 = load ptr, ptr %3, align 8
  %253 = load i32, ptr %4, align 4
  %254 = insertvalue { ptr, i32 } poison, ptr %252, 0
  %255 = insertvalue { ptr, i32 } %254, i32 %253, 1
  resume { ptr, i32 } %255
}

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; 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)) #6

; 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) #7

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

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

; 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 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { 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 #8 = { 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 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %5 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %6 = getelementptr i8, ptr %5, i64 -24
  %7 = load i64, ptr %6, align 8
  %8 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %7
  %9 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %8, ptr noundef null)
  %10 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %11 = getelementptr i8, ptr %10, i64 -24
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %12
  %14 = tail call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %13, 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
  %15 = 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) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %16 unwind label %23

16:                                               ; preds = %0
  %17 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #10
  %18 = call ptr @llvm.stacksave.p0()
  %19 = alloca i64, i64 %17, align 16
  %20 = alloca i64, i64 %17, align 16
  %21 = shl nuw i64 %17, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %19, i8 0, i64 %21, i1 false)
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %20, i8 0, i64 %21, i1 false)
  %22 = icmp sgt i64 %17, 0
  br i1 %22, label %.lr.ph105, label %._crit_edge

.preheader:                                       ; preds = %.critedge
  br i1 %22, label %.lr.ph111, label %._crit_edge

23:                                               ; preds = %0
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %90

.lr.ph105:                                        ; preds = %16, %.critedge
  %.075104 = phi i64 [ %spec.select93, %.critedge ], [ -1, %16 ]
  %.077103 = phi i64 [ %spec.select, %.critedge ], [ 0, %16 ]
  %.079102 = phi i64 [ %55, %.critedge ], [ 0, %16 ]
  %.082101 = phi i64 [ %54, %.critedge ], [ 0, %16 ]
  %25 = icmp sgt i64 %.079102, %.075104
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #10
  br i1 %25, label %32, label %26

26:                                               ; preds = %.lr.ph105
  %27 = sub nsw i64 %.075104, %.079102
  %28 = getelementptr i64, ptr %19, i64 %.077103
  %29 = getelementptr i64, ptr %28, i64 %27
  store i64 %27, ptr %2, align 8, !tbaa !8
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %31 = load i64, ptr %30, align 8, !tbaa !8
  br label %32

32:                                               ; preds = %.lr.ph105, %26
  %33 = phi i64 [ %31, %26 ], [ 1, %.lr.ph105 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  %34 = add nsw i64 %33, %.079102
  %35 = icmp slt i64 %34, %17
  br i1 %35, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %32, %45
  %36 = phi i64 [ %47, %45 ], [ %34, %32 ]
  %.07496 = phi i64 [ %46, %45 ], [ %33, %32 ]
  %37 = sub nsw i64 %.079102, %.07496
  %38 = icmp sgt i64 %37, -1
  br i1 %38, label %39, label %.critedge

39:                                               ; preds = %.lr.ph
  %40 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %36)
  %41 = load i8, ptr %40, align 1, !tbaa !11
  %42 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %37)
  %43 = load i8, ptr %42, align 1, !tbaa !11
  %44 = icmp eq i8 %41, %43
  br i1 %44, label %45, label %.critedge

45:                                               ; preds = %39
  %46 = add nsw i64 %.07496, 1
  %47 = add nsw i64 %46, %.079102
  %48 = icmp slt i64 %47, %17
  br i1 %48, label %.lr.ph, label %.critedge, !llvm.loop !12

.critedge:                                        ; preds = %39, %45, %.lr.ph, %32
  %.074.lcssa = phi i64 [ %33, %32 ], [ %.07496, %.lr.ph ], [ %46, %45 ], [ %.07496, %39 ]
  %49 = add nsw i64 %.074.lcssa, -1
  %50 = getelementptr inbounds i64, ptr %19, i64 %.079102
  store i64 %.074.lcssa, ptr %50, align 8, !tbaa !8
  %51 = add nsw i64 %49, %.079102
  %52 = icmp sgt i64 %51, %.075104
  %53 = sub nsw i64 %.079102, %49
  %spec.select = select i1 %52, i64 %53, i64 %.077103
  %spec.select93 = call i64 @llvm.smax.i64(i64 %51, i64 %.075104)
  %54 = add nsw i64 %.074.lcssa, %.082101
  %55 = add nuw nsw i64 %.079102, 1
  %exitcond.not = icmp eq i64 %55, %17
  br i1 %exitcond.not, label %.preheader, label %.lr.ph105, !llvm.loop !14

._crit_edge:                                      ; preds = %.critedge2, %16, %.preheader
  %.183.lcssa = phi i64 [ %54, %.preheader ], [ 0, %16 ], [ %83, %.critedge2 ]
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.183.lcssa)
          to label %85 unwind label %88

.lr.ph111:                                        ; preds = %.preheader, %.critedge2
  %.070110 = phi i64 [ %spec.select95, %.critedge2 ], [ -1, %.preheader ]
  %.071109 = phi i64 [ %spec.select94, %.critedge2 ], [ 0, %.preheader ]
  %.073108 = phi i64 [ %84, %.critedge2 ], [ 0, %.preheader ]
  %.183107 = phi i64 [ %83, %.critedge2 ], [ %54, %.preheader ]
  %57 = icmp sgt i64 %.073108, %.070110
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10
  br i1 %57, label %65, label %58

58:                                               ; preds = %.lr.ph111
  %59 = sub nsw i64 %.070110, %.073108
  %60 = add nsw i64 %59, 1
  %61 = getelementptr i64, ptr %20, i64 %.071109
  %62 = getelementptr i64, ptr %61, i64 %60
  store i64 %60, ptr %3, align 8, !tbaa !8
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %64 = load i64, ptr %63, align 8, !tbaa !8
  br label %65

65:                                               ; preds = %.lr.ph111, %58
  %66 = phi i64 [ %64, %58 ], [ 0, %.lr.ph111 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  br label %67

67:                                               ; preds = %73, %65
  %.0.in = phi i64 [ %66, %65 ], [ %.0, %73 ]
  %.0 = add nsw i64 %.0.in, 1
  %68 = add i64 %.0.in, %.073108
  %69 = icmp slt i64 %68, %17
  br i1 %69, label %70, label %.critedge2

70:                                               ; preds = %67
  %71 = sub nsw i64 %.073108, %.0
  %72 = icmp sgt i64 %71, -1
  br i1 %72, label %73, label %.critedge2

73:                                               ; preds = %70
  %74 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %71)
  %75 = load i8, ptr %74, align 1, !tbaa !11
  %76 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %68)
  %77 = load i8, ptr %76, align 1, !tbaa !11
  %78 = icmp eq i8 %75, %77
  br i1 %78, label %67, label %.critedge2, !llvm.loop !15

.critedge2:                                       ; preds = %70, %67, %73
  %79 = getelementptr inbounds i64, ptr %20, i64 %.073108
  store i64 %.0.in, ptr %79, align 8, !tbaa !8
  %80 = add nsw i64 %68, -1
  %81 = icmp sgt i64 %80, %.070110
  %82 = sub nsw i64 %.073108, %.0.in
  %spec.select94 = select i1 %81, i64 %82, i64 %.071109
  %spec.select95 = call i64 @llvm.smax.i64(i64 %80, i64 %.070110)
  %83 = add nsw i64 %.0.in, %.183107
  %84 = add nuw nsw i64 %.073108, 1
  %exitcond115.not = icmp eq i64 %84, %17
  br i1 %exitcond115.not, label %._crit_edge, label %.lr.ph111, !llvm.loop !16

85:                                               ; preds = %._crit_edge
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull @.str)
          to label %87 unwind label %88

87:                                               ; preds = %85
  call void @llvm.stackrestore.p0(ptr %18)
  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

88:                                               ; preds = %85, %._crit_edge
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %90

90:                                               ; preds = %88, %23
  %.pn = phi { ptr, i32 } [ %89, %88 ], [ %24, %23 ]
  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

declare i32 @__gxx_personality_v0(...)

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

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

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

; 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 #6

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

; 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 #8 align 2

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

; 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 nocallback nofree nosync nounwind willreturn }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { 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 #8 = { 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,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass