; LLVM IR from eyangch/competitive-programming :: Codeforces/1365 (a)

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

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

; 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 ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %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
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %23 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %24 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %25 = getelementptr i8, ptr %24, i64 -24
  %26 = load i64, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %26
  %28 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %27, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  %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) %2)
  br label %30

30:                                               ; preds = %210, %0
  %31 = load i32, ptr %2, align 4, !tbaa !8
  %32 = add nsw i32 %31, -1
  store i32 %32, ptr %2, align 4, !tbaa !8
  %33 = icmp ne i32 %31, 0
  br i1 %33, label %34, label %212

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %35 = 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)
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %37 = load i32, ptr %3, align 4, !tbaa !8
  %38 = zext i32 %37 to i64
  %39 = load i32, ptr %4, align 4, !tbaa !8
  %40 = zext i32 %39 to i64
  %41 = call ptr @llvm.stacksave.p0()
  store ptr %41, ptr %5, align 8
  %42 = mul nuw i64 %38, %40
  %43 = alloca i8, i64 %42, align 16
  store i64 %38, ptr %6, align 8
  store i64 %40, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !8
  br label %44

44:                                               ; preds = %68, %34
  %45 = load i32, ptr %8, align 4, !tbaa !8
  %46 = load i32, ptr %3, align 4, !tbaa !8
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  store i32 4, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %71

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !8
  br label %50

50:                                               ; preds = %64, %49
  %51 = load i32, ptr %10, align 4, !tbaa !8
  %52 = load i32, ptr %4, align 4, !tbaa !8
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 7, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %67

55:                                               ; preds = %50
  %56 = load i32, ptr %8, align 4, !tbaa !8
  %57 = sext i32 %56 to i64
  %58 = mul nsw i64 %57, %40
  %59 = getelementptr inbounds i8, ptr %43, i64 %58
  %60 = load i32, ptr %10, align 4, !tbaa !8
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds i8, ptr %59, i64 %61
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERb(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %62)
  br label %64

64:                                               ; preds = %55
  %65 = load i32, ptr %10, align 4, !tbaa !8
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %10, align 4, !tbaa !8
  br label %50, !llvm.loop !11

67:                                               ; preds = %54
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %8, align 4, !tbaa !8
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %8, align 4, !tbaa !8
  br label %44, !llvm.loop !13

71:                                               ; preds = %48
  %72 = load i32, ptr %3, align 4, !tbaa !8
  %73 = zext i32 %72 to i64
  %74 = alloca i8, i64 %73, align 16
  store i64 %73, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !8
  br label %75

75:                                               ; preds = %111, %71
  %76 = load i32, ptr %12, align 4, !tbaa !8
  %77 = load i32, ptr %3, align 4, !tbaa !8
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  store i32 10, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %114

80:                                               ; preds = %75
  %81 = load i32, ptr %12, align 4, !tbaa !8
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i8, ptr %74, i64 %82
  store i8 0, ptr %83, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !8
  br label %84

84:                                               ; preds = %107, %80
  %85 = load i32, ptr %13, align 4, !tbaa !8
  %86 = load i32, ptr %4, align 4, !tbaa !8
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  store i32 13, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %110

89:                                               ; preds = %84
  %90 = load i32, ptr %12, align 4, !tbaa !8
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %74, i64 %91
  %93 = load i32, ptr %12, align 4, !tbaa !8
  %94 = sext i32 %93 to i64
  %95 = mul nsw i64 %94, %40
  %96 = getelementptr inbounds i8, ptr %43, i64 %95
  %97 = load i32, ptr %13, align 4, !tbaa !8
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds i8, ptr %96, i64 %98
  %100 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIbERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %92, ptr noundef nonnull align 1 dereferenceable(1) %99)
  %101 = load i8, ptr %100, align 1, !tbaa !14, !range !16, !noundef !17
  %102 = trunc i8 %101 to i1
  %103 = load i32, ptr %12, align 4, !tbaa !8
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i8, ptr %74, i64 %104
  %106 = zext i1 %102 to i8
  store i8 %106, ptr %105, align 1, !tbaa !14
  br label %107

107:                                              ; preds = %89
  %108 = load i32, ptr %13, align 4, !tbaa !8
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %13, align 4, !tbaa !8
  br label %84, !llvm.loop !18

110:                                              ; preds = %88
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %12, align 4, !tbaa !8
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %12, align 4, !tbaa !8
  br label %75, !llvm.loop !19

114:                                              ; preds = %79
  %115 = load i32, ptr %4, align 4, !tbaa !8
  %116 = zext i32 %115 to i64
  %117 = alloca i8, i64 %116, align 16
  store i64 %116, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !8
  br label %118

118:                                              ; preds = %154, %114
  %119 = load i32, ptr %15, align 4, !tbaa !8
  %120 = load i32, ptr %4, align 4, !tbaa !8
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 16, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %157

123:                                              ; preds = %118
  %124 = load i32, ptr %15, align 4, !tbaa !8
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i8, ptr %117, i64 %125
  store i8 0, ptr %126, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !8
  br label %127

127:                                              ; preds = %150, %123
  %128 = load i32, ptr %16, align 4, !tbaa !8
  %129 = load i32, ptr %3, align 4, !tbaa !8
  %130 = icmp slt i32 %128, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %127
  store i32 19, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %153

132:                                              ; preds = %127
  %133 = load i32, ptr %16, align 4, !tbaa !8
  %134 = sext i32 %133 to i64
  %135 = mul nsw i64 %134, %40
  %136 = getelementptr inbounds i8, ptr %43, i64 %135
  %137 = load i32, ptr %15, align 4, !tbaa !8
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds i8, ptr %136, i64 %138
  %140 = load i32, ptr %15, align 4, !tbaa !8
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i8, ptr %117, i64 %141
  %143 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIbERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %139, ptr noundef nonnull align 1 dereferenceable(1) %142)
  %144 = load i8, ptr %143, align 1, !tbaa !14, !range !16, !noundef !17
  %145 = trunc i8 %144 to i1
  %146 = load i32, ptr %15, align 4, !tbaa !8
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds i8, ptr %117, i64 %147
  %149 = zext i1 %145 to i8
  store i8 %149, ptr %148, align 1, !tbaa !14
  br label %150

150:                                              ; preds = %132
  %151 = load i32, ptr %16, align 4, !tbaa !8
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %16, align 4, !tbaa !8
  br label %127, !llvm.loop !20

153:                                              ; preds = %131
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %15, align 4, !tbaa !8
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %15, align 4, !tbaa !8
  br label %118, !llvm.loop !21

157:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !8
  br label %158

158:                                              ; preds = %172, %157
  %159 = load i32, ptr %19, align 4, !tbaa !8
  %160 = load i32, ptr %3, align 4, !tbaa !8
  %161 = icmp slt i32 %159, %160
  br i1 %161, label %163, label %162

162:                                              ; preds = %158
  store i32 22, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %175

163:                                              ; preds = %158
  %164 = load i32, ptr %19, align 4, !tbaa !8
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds i8, ptr %74, i64 %165
  %167 = load i8, ptr %166, align 1, !tbaa !14, !range !16, !noundef !17
  %168 = trunc i8 %167 to i1
  %169 = zext i1 %168 to i32
  %170 = load i32, ptr %17, align 4, !tbaa !8
  %171 = add nsw i32 %170, %169
  store i32 %171, ptr %17, align 4, !tbaa !8
  br label %172

172:                                              ; preds = %163
  %173 = load i32, ptr %19, align 4, !tbaa !8
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %19, align 4, !tbaa !8
  br label %158, !llvm.loop !22

175:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !8
  br label %176

176:                                              ; preds = %190, %175
  %177 = load i32, ptr %20, align 4, !tbaa !8
  %178 = load i32, ptr %4, align 4, !tbaa !8
  %179 = icmp slt i32 %177, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %176
  store i32 25, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %193

181:                                              ; preds = %176
  %182 = load i32, ptr %20, align 4, !tbaa !8
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds i8, ptr %117, i64 %183
  %185 = load i8, ptr %184, align 1, !tbaa !14, !range !16, !noundef !17
  %186 = trunc i8 %185 to i1
  %187 = zext i1 %186 to i32
  %188 = load i32, ptr %18, align 4, !tbaa !8
  %189 = add nsw i32 %188, %187
  store i32 %189, ptr %18, align 4, !tbaa !8
  br label %190

190:                                              ; preds = %181
  %191 = load i32, ptr %20, align 4, !tbaa !8
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %20, align 4, !tbaa !8
  br label %176, !llvm.loop !23

193:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %194 = load i32, ptr %3, align 4, !tbaa !8
  %195 = load i32, ptr %17, align 4, !tbaa !8
  %196 = sub nsw i32 %194, %195
  store i32 %196, ptr %21, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %197 = load i32, ptr %4, align 4, !tbaa !8
  %198 = load i32, ptr %18, align 4, !tbaa !8
  %199 = sub nsw i32 %197, %198
  store i32 %199, ptr %22, align 4, !tbaa !8
  %200 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %201 = load i32, ptr %200, align 4, !tbaa !8
  %202 = srem i32 %201, 2
  %203 = icmp eq i32 %202, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br i1 %203, label %204, label %207

204:                                              ; preds = %193
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %205, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %210

207:                                              ; preds = %193
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %210

210:                                              ; preds = %207, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  %211 = load ptr, ptr %5, align 8
  call void @llvm.stackrestore.p0(ptr %211)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %30, !llvm.loop !24

212:                                              ; preds = %30
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %213 = load i32, ptr %1, align 4
  ret i32 %213
}

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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIbERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #6

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

; 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 @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 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)) #7

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

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 = { 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 = { 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 = { 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 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !10, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}


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

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

; 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 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %7 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %8 = getelementptr i8, ptr %7, i64 -24
  %9 = load i64, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %9
  %11 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %10, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  %12 = 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)
  %13 = load i32, ptr %1, align 4, !tbaa !8
  %14 = add nsw i32 %13, -1
  store i32 %14, ptr %1, align 4, !tbaa !8
  %.not78 = icmp eq i32 %13, 0
  br i1 %.not78, label %._crit_edge81, label %.lr.ph80

.lr.ph80:                                         ; preds = %0, %._crit_edge76
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  %15 = 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)
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %17 = load i32, ptr %2, align 4, !tbaa !8
  %18 = zext i32 %17 to i64
  %19 = load i32, ptr %3, align 4, !tbaa !8
  %20 = zext i32 %19 to i64
  %21 = call ptr @llvm.stacksave.p0()
  %22 = mul nuw i64 %20, %18
  %23 = alloca i8, i64 %22, align 16
  %24 = load i32, ptr %2, align 4, !tbaa !8
  %25 = icmp sgt i32 %24, 0
  %.pre113.pre = load i32, ptr %3, align 4, !tbaa !8
  br i1 %25, label %.preheader.lr.ph, label %._crit_edge51.thread118

._crit_edge51.thread118:                          ; preds = %.lr.ph80
  %26 = zext i32 %24 to i64
  %27 = alloca i8, i64 %26, align 16
  br label %._crit_edge59

.preheader.lr.ph:                                 ; preds = %.lr.ph80
  %28 = icmp sgt i32 %.pre113.pre, 0
  br i1 %28, label %.preheader, label %._crit_edge51.thread

._crit_edge51.thread:                             ; preds = %.preheader.lr.ph
  %29 = zext nneg i32 %24 to i64
  %30 = alloca i8, i64 %29, align 16
  br label %.lr.ph58.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %31 = phi i32 [ %41, %._crit_edge ], [ %24, %.preheader.lr.ph ]
  %32 = phi i32 [ %42, %._crit_edge ], [ %.pre113.pre, %.preheader.lr.ph ]
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %._crit_edge ], [ 0, %.preheader.lr.ph ]
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %34 = mul nuw nsw i64 %indvars.iv88, %20
  %35 = getelementptr inbounds i8, ptr %23, i64 %34
  br label %45

._crit_edge51:                                    ; preds = %._crit_edge
  %36 = zext i32 %41 to i64
  %37 = alloca i8, i64 %36, align 16
  %38 = icmp sgt i32 %41, 0
  br i1 %38, label %.lr.ph58.preheader, label %._crit_edge59

.lr.ph58.preheader:                               ; preds = %._crit_edge51.thread, %._crit_edge51
  %39 = phi ptr [ %30, %._crit_edge51.thread ], [ %37, %._crit_edge51 ]
  %40 = phi i32 [ %24, %._crit_edge51.thread ], [ %41, %._crit_edge51 ]
  %.pre113117 = phi i32 [ %.pre113.pre, %._crit_edge51.thread ], [ %42, %._crit_edge51 ]
  br label %.lr.ph58

._crit_edge.loopexit:                             ; preds = %45
  %.pre = load i32, ptr %2, align 4, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %41 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %31, %.preheader ]
  %42 = phi i32 [ %48, %._crit_edge.loopexit ], [ %32, %.preheader ]
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %43 = sext i32 %41 to i64
  %44 = icmp slt i64 %indvars.iv.next89, %43
  br i1 %44, label %.preheader, label %._crit_edge51, !llvm.loop !11

45:                                               ; preds = %.lr.ph, %45
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %45 ]
  %46 = getelementptr inbounds i8, ptr %35, i64 %indvars.iv
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERb(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %46)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = load i32, ptr %3, align 4, !tbaa !8
  %49 = sext i32 %48 to i64
  %50 = icmp slt i64 %indvars.iv.next, %49
  br i1 %50, label %45, label %._crit_edge.loopexit, !llvm.loop !14

._crit_edge59:                                    ; preds = %._crit_edge55, %._crit_edge51.thread118, %._crit_edge51
  %51 = phi ptr [ %37, %._crit_edge51 ], [ %27, %._crit_edge51.thread118 ], [ %39, %._crit_edge55 ]
  %52 = phi i32 [ %41, %._crit_edge51 ], [ %24, %._crit_edge51.thread118 ], [ %63, %._crit_edge55 ]
  %53 = phi i32 [ %42, %._crit_edge51 ], [ %.pre113.pre, %._crit_edge51.thread118 ], [ %64, %._crit_edge55 ]
  %54 = zext i32 %53 to i64
  %55 = alloca i8, i64 %54, align 16
  %56 = icmp sgt i32 %53, 0
  br i1 %56, label %.lr.ph66, label %.preheader46

.lr.ph58:                                         ; preds = %.lr.ph58.preheader, %._crit_edge55
  %57 = phi i32 [ %40, %.lr.ph58.preheader ], [ %63, %._crit_edge55 ]
  %58 = phi i32 [ %.pre113117, %.lr.ph58.preheader ], [ %64, %._crit_edge55 ]
  %indvars.iv94 = phi i64 [ 0, %.lr.ph58.preheader ], [ %indvars.iv.next95, %._crit_edge55 ]
  %59 = getelementptr inbounds i8, ptr %39, i64 %indvars.iv94
  store i8 0, ptr %59, align 1, !tbaa !15
  %60 = icmp sgt i32 %58, 0
  br i1 %60, label %.lr.ph54, label %._crit_edge55

.lr.ph54:                                         ; preds = %.lr.ph58
  %61 = mul nuw nsw i64 %indvars.iv94, %20
  %62 = getelementptr inbounds i8, ptr %23, i64 %61
  br label %67

._crit_edge55.loopexit:                           ; preds = %67
  %.pre112 = load i32, ptr %2, align 4, !tbaa !8
  br label %._crit_edge55

._crit_edge55:                                    ; preds = %._crit_edge55.loopexit, %.lr.ph58
  %63 = phi i32 [ %.pre112, %._crit_edge55.loopexit ], [ %57, %.lr.ph58 ]
  %64 = phi i32 [ %71, %._crit_edge55.loopexit ], [ %58, %.lr.ph58 ]
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %65 = sext i32 %63 to i64
  %66 = icmp slt i64 %indvars.iv.next95, %65
  br i1 %66, label %.lr.ph58, label %._crit_edge59, !llvm.loop !17

67:                                               ; preds = %.lr.ph54, %67
  %indvars.iv91 = phi i64 [ 0, %.lr.ph54 ], [ %indvars.iv.next92, %67 ]
  %68 = getelementptr inbounds i8, ptr %62, i64 %indvars.iv91
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIbERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %59, ptr noundef nonnull align 1 dereferenceable(1) %68)
  %70 = load i8, ptr %69, align 1, !tbaa !15, !range !18, !noundef !19
  store i8 %70, ptr %59, align 1, !tbaa !15
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %71 = load i32, ptr %3, align 4, !tbaa !8
  %72 = sext i32 %71 to i64
  %73 = icmp slt i64 %indvars.iv.next92, %72
  br i1 %73, label %67, label %._crit_edge55.loopexit, !llvm.loop !20

.preheader46:                                     ; preds = %._crit_edge63, %._crit_edge59
  %74 = phi i32 [ %52, %._crit_edge59 ], [ %89, %._crit_edge63 ]
  %.lcssa47 = phi i32 [ %53, %._crit_edge59 ], [ %88, %._crit_edge63 ]
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %.lr.ph70.preheader, label %.preheader45

.lr.ph70.preheader:                               ; preds = %.preheader46
  %wide.trip.count = zext nneg i32 %74 to i64
  %min.iters.check144 = icmp ult i32 %74, 8
  br i1 %min.iters.check144, label %.lr.ph70.preheader160, label %vector.ph145

.lr.ph70.preheader160:                            ; preds = %middle.block142, %.lr.ph70.preheader
  %indvars.iv103.ph = phi i64 [ 0, %.lr.ph70.preheader ], [ %n.vec147, %middle.block142 ]
  %.03768.ph = phi i32 [ 0, %.lr.ph70.preheader ], [ %83, %middle.block142 ]
  br label %.lr.ph70

vector.ph145:                                     ; preds = %.lr.ph70.preheader
  %n.vec147 = and i64 %wide.trip.count, 2147483640
  br label %vector.body149

vector.body149:                                   ; preds = %vector.body149, %vector.ph145
  %index150 = phi i64 [ 0, %vector.ph145 ], [ %index.next155, %vector.body149 ]
  %vec.phi151 = phi <4 x i32> [ zeroinitializer, %vector.ph145 ], [ %80, %vector.body149 ]
  %vec.phi152 = phi <4 x i32> [ zeroinitializer, %vector.ph145 ], [ %81, %vector.body149 ]
  %76 = getelementptr inbounds i8, ptr %51, i64 %index150
  %77 = getelementptr inbounds i8, ptr %76, i64 4
  %wide.load153 = load <4 x i8>, ptr %76, align 1, !tbaa !15
  %wide.load154 = load <4 x i8>, ptr %77, align 1, !tbaa !15
  %78 = zext <4 x i8> %wide.load153 to <4 x i32>
  %79 = zext <4 x i8> %wide.load154 to <4 x i32>
  %80 = add <4 x i32> %vec.phi151, %78
  %81 = add <4 x i32> %vec.phi152, %79
  %index.next155 = add nuw i64 %index150, 8
  %82 = icmp eq i64 %index.next155, %n.vec147
  br i1 %82, label %middle.block142, label %vector.body149, !llvm.loop !21

middle.block142:                                  ; preds = %vector.body149
  %bin.rdx156 = add <4 x i32> %81, %80
  %83 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx156)
  %cmp.n157 = icmp eq i64 %n.vec147, %wide.trip.count
  br i1 %cmp.n157, label %.preheader45, label %.lr.ph70.preheader160

.lr.ph66:                                         ; preds = %._crit_edge59, %._crit_edge63
  %84 = phi i32 [ %88, %._crit_edge63 ], [ %53, %._crit_edge59 ]
  %85 = phi i32 [ %89, %._crit_edge63 ], [ %52, %._crit_edge59 ]
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %._crit_edge63 ], [ 0, %._crit_edge59 ]
  %86 = getelementptr inbounds i8, ptr %55, i64 %indvars.iv100
  store i8 0, ptr %86, align 1, !tbaa !15
  %invariant.gep = getelementptr inbounds i8, ptr %23, i64 %indvars.iv100
  %87 = icmp sgt i32 %85, 0
  br i1 %87, label %.lr.ph62, label %._crit_edge63

._crit_edge63.loopexit:                           ; preds = %.lr.ph62
  %.pre114 = load i32, ptr %3, align 4, !tbaa !8
  br label %._crit_edge63

._crit_edge63:                                    ; preds = %._crit_edge63.loopexit, %.lr.ph66
  %88 = phi i32 [ %.pre114, %._crit_edge63.loopexit ], [ %84, %.lr.ph66 ]
  %89 = phi i32 [ %95, %._crit_edge63.loopexit ], [ %85, %.lr.ph66 ]
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %90 = sext i32 %88 to i64
  %91 = icmp slt i64 %indvars.iv.next101, %90
  br i1 %91, label %.lr.ph66, label %.preheader46, !llvm.loop !24

.lr.ph62:                                         ; preds = %.lr.ph66, %.lr.ph62
  %indvars.iv97 = phi i64 [ %indvars.iv.next98, %.lr.ph62 ], [ 0, %.lr.ph66 ]
  %92 = mul nuw nsw i64 %indvars.iv97, %20
  %gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %92
  %93 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIbERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %gep, ptr noundef nonnull align 1 dereferenceable(1) %86)
  %94 = load i8, ptr %93, align 1, !tbaa !15, !range !18, !noundef !19
  store i8 %94, ptr %86, align 1, !tbaa !15
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %95 = load i32, ptr %2, align 4, !tbaa !8
  %96 = sext i32 %95 to i64
  %97 = icmp slt i64 %indvars.iv.next98, %96
  br i1 %97, label %.lr.ph62, label %._crit_edge63.loopexit, !llvm.loop !25

.preheader45:                                     ; preds = %.lr.ph70, %middle.block142, %.preheader46
  %.037.lcssa = phi i32 [ 0, %.preheader46 ], [ %83, %middle.block142 ], [ %110, %.lr.ph70 ]
  %98 = icmp sgt i32 %.lcssa47, 0
  br i1 %98, label %.lr.ph75.preheader, label %._crit_edge76

.lr.ph75.preheader:                               ; preds = %.preheader45
  %wide.trip.count109 = zext nneg i32 %.lcssa47 to i64
  %min.iters.check = icmp ult i32 %.lcssa47, 8
  br i1 %min.iters.check, label %.lr.ph75.preheader159, label %vector.ph

.lr.ph75.preheader159:                            ; preds = %middle.block, %.lr.ph75.preheader
  %indvars.iv106.ph = phi i64 [ 0, %.lr.ph75.preheader ], [ %n.vec, %middle.block ]
  %.03673.ph = phi i32 [ 0, %.lr.ph75.preheader ], [ %106, %middle.block ]
  br label %.lr.ph75

vector.ph:                                        ; preds = %.lr.ph75.preheader
  %n.vec = and i64 %wide.trip.count109, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %103, %vector.body ]
  %vec.phi140 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %104, %vector.body ]
  %99 = getelementptr inbounds i8, ptr %55, i64 %index
  %100 = getelementptr inbounds i8, ptr %99, i64 4
  %wide.load = load <4 x i8>, ptr %99, align 8, !tbaa !15
  %wide.load141 = load <4 x i8>, ptr %100, align 4, !tbaa !15
  %101 = zext <4 x i8> %wide.load to <4 x i32>
  %102 = zext <4 x i8> %wide.load141 to <4 x i32>
  %103 = add <4 x i32> %vec.phi, %101
  %104 = add <4 x i32> %vec.phi140, %102
  %index.next = add nuw i64 %index, 8
  %105 = icmp eq i64 %index.next, %n.vec
  br i1 %105, label %middle.block, label %vector.body, !llvm.loop !26

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %104, %103
  %106 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count109
  br i1 %cmp.n, label %._crit_edge76, label %.lr.ph75.preheader159

.lr.ph70:                                         ; preds = %.lr.ph70.preheader160, %.lr.ph70
  %indvars.iv103 = phi i64 [ %indvars.iv.next104, %.lr.ph70 ], [ %indvars.iv103.ph, %.lr.ph70.preheader160 ]
  %.03768 = phi i32 [ %110, %.lr.ph70 ], [ %.03768.ph, %.lr.ph70.preheader160 ]
  %107 = getelementptr inbounds i8, ptr %51, i64 %indvars.iv103
  %108 = load i8, ptr %107, align 1, !tbaa !15, !range !18, !noundef !19
  %109 = zext nneg i8 %108 to i32
  %110 = add nuw nsw i32 %.03768, %109
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next104, %wide.trip.count
  br i1 %exitcond.not, label %.preheader45, label %.lr.ph70, !llvm.loop !27

._crit_edge76:                                    ; preds = %.lr.ph75, %middle.block, %.preheader45
  %.036.lcssa = phi i32 [ 0, %.preheader45 ], [ %106, %middle.block ], [ %124, %.lr.ph75 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %111 = sub nsw i32 %74, %.037.lcssa
  store i32 %111, ptr %4, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %112 = sub nsw i32 %.lcssa47, %.036.lcssa
  store i32 %112, ptr %5, align 4, !tbaa !8
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %114 = load i32, ptr %113, align 4, !tbaa !8
  %115 = and i32 %114, 1
  %116 = icmp eq i32 %115, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  %.str..str.1 = select i1 %116, ptr @.str, ptr @.str.1
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str..str.1)
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.stackrestore.p0(ptr %21)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  %119 = load i32, ptr %1, align 4, !tbaa !8
  %120 = add nsw i32 %119, -1
  store i32 %120, ptr %1, align 4, !tbaa !8
  %.not = icmp eq i32 %119, 0
  br i1 %.not, label %._crit_edge81, label %.lr.ph80, !llvm.loop !28

.lr.ph75:                                         ; preds = %.lr.ph75.preheader159, %.lr.ph75
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %.lr.ph75 ], [ %indvars.iv106.ph, %.lr.ph75.preheader159 ]
  %.03673 = phi i32 [ %124, %.lr.ph75 ], [ %.03673.ph, %.lr.ph75.preheader159 ]
  %121 = getelementptr inbounds i8, ptr %55, i64 %indvars.iv106
  %122 = load i8, ptr %121, align 1, !tbaa !15, !range !18, !noundef !19
  %123 = zext nneg i8 %122 to i32
  %124 = add nuw nsw i32 %.03673, %123
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %exitcond110.not = icmp eq i64 %indvars.iv.next107, %wide.trip.count109
  br i1 %exitcond110.not, label %._crit_edge76, label %.lr.ph75, !llvm.loop !29

._crit_edge81:                                    ; preds = %._crit_edge76, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  ret i32 0
}

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIbERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #6

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

; 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 @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5 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)) #7

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #8

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 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12, !13}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = distinct !{!14, !12}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !10, i64 0}
!17 = distinct !{!17, !12}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12, !22, !23}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12, !22, !23}
!27 = distinct !{!27, !12, !23, !22}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12, !23, !22}


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