; LLVM IR from kazunetakahashi/atcoder :: 2017/1102_ABC076 (D)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::_Setprecision" = type { i32 }

@N = external dso_local global i32, align 4
@T = external dso_local global i32, align 4
@t = external dso_local global [110 x i32], align 16
@v = external dso_local global [110 x i32], align 16
@w = external dso_local global [50000 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::_Setprecision", align 4
  store i32 0, ptr %1, align 4
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  store i32 0, ptr @T, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %40, %0
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = load i32, ptr @N, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %24, label %23

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

24:                                               ; preds = %19
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [110 x i32], ptr @t, i64 0, i64 %26
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [110 x i32], ptr @t, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = mul nsw i32 %32, 2
  store i32 %33, ptr %31, align 4, !tbaa !5
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [110 x i32], ptr @t, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = load i32, ptr @T, align 4, !tbaa !5
  %39 = add nsw i32 %38, %37
  store i32 %39, ptr @T, align 4, !tbaa !5
  br label %40

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

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

44:                                               ; preds = %59, %43
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = load i32, ptr @N, align 4, !tbaa !5
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %62

49:                                               ; preds = %44
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [110 x i32], ptr @v, i64 0, i64 %51
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %52)
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [110 x i32], ptr @v, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = mul nsw i32 %57, 2
  store i32 %58, ptr %56, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %49
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %3, align 4, !tbaa !5
  br label %44, !llvm.loop !11

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

63:                                               ; preds = %77, %62
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = load i32, ptr @T, align 4, !tbaa !5
  %66 = icmp sle i32 %64, %65
  br i1 %66, label %68, label %67

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

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %69 = load i32, ptr @T, align 4, !tbaa !5
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = sub nsw i32 %69, %70
  store i32 %71, ptr %5, align 4, !tbaa !5
  %72 = 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)
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %75
  store i32 %73, ptr %76, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %77

77:                                               ; preds = %68
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %4, align 4, !tbaa !5
  br label %63, !llvm.loop !12

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

81:                                               ; preds = %180, %80
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = load i32, ptr @N, align 4, !tbaa !5
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %183

86:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [110 x i32], ptr @t, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = add nsw i32 %87, %91
  store i32 %92, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %118, %86
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = load i32, ptr %10, align 4, !tbaa !5
  %96 = sub nsw i32 %94, %95
  %97 = icmp sge i32 %96, 0
  br i1 %97, label %99, label %98

98:                                               ; preds = %93
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %121

99:                                               ; preds = %93
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = load i32, ptr %10, align 4, !tbaa !5
  %102 = sub nsw i32 %100, %101
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %105 = load i32, ptr %7, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [110 x i32], ptr @v, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = add nsw i32 %108, %109
  store i32 %110, ptr %11, align 4, !tbaa !5
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %104, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = load i32, ptr %6, align 4, !tbaa !5
  %114 = load i32, ptr %10, align 4, !tbaa !5
  %115 = sub nsw i32 %113, %114
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %116
  store i32 %112, ptr %117, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %118

118:                                              ; preds = %99
  %119 = load i32, ptr %10, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %10, align 4, !tbaa !5
  br label %93, !llvm.loop !13

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

123:                                              ; preds = %140, %121
  %124 = load i32, ptr %12, align 4, !tbaa !5
  %125 = load i32, ptr %9, align 4, !tbaa !5
  %126 = icmp sle i32 %124, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %123
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %143

128:                                              ; preds = %123
  %129 = load i32, ptr %12, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %130
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [110 x i32], ptr @v, i64 0, i64 %133
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %131, ptr noundef nonnull align 4 dereferenceable(4) %134)
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = load i32, ptr %12, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %138
  store i32 %136, ptr %139, align 4, !tbaa !5
  br label %140

140:                                              ; preds = %128
  %141 = load i32, ptr %12, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %12, align 4, !tbaa !5
  br label %123, !llvm.loop !14

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

144:                                              ; preds = %170, %143
  %145 = load i32, ptr %9, align 4, !tbaa !5
  %146 = load i32, ptr %13, align 4, !tbaa !5
  %147 = add nsw i32 %145, %146
  %148 = load i32, ptr @T, align 4, !tbaa !5
  %149 = icmp sle i32 %147, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %144
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %173

151:                                              ; preds = %144
  %152 = load i32, ptr %9, align 4, !tbaa !5
  %153 = load i32, ptr %13, align 4, !tbaa !5
  %154 = add nsw i32 %152, %153
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %157 = load i32, ptr %7, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [110 x i32], ptr @v, i64 0, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = load i32, ptr %13, align 4, !tbaa !5
  %162 = add nsw i32 %160, %161
  store i32 %162, ptr %14, align 4, !tbaa !5
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %156, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = load i32, ptr %9, align 4, !tbaa !5
  %166 = load i32, ptr %13, align 4, !tbaa !5
  %167 = add nsw i32 %165, %166
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %168
  store i32 %164, ptr %169, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %170

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

173:                                              ; preds = %150
  %174 = load i32, ptr %7, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [110 x i32], ptr @t, i64 0, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = load i32, ptr %6, align 4, !tbaa !5
  %179 = add nsw i32 %178, %177
  store i32 %179, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %180

180:                                              ; preds = %173
  %181 = load i32, ptr %7, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %7, align 4, !tbaa !5
  br label %81, !llvm.loop !16

183:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store double 0.000000e+00, ptr %15, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %184

184:                                              ; preds = %205, %183
  %185 = load i32, ptr %16, align 4, !tbaa !5
  %186 = load i32, ptr @T, align 4, !tbaa !5
  %187 = icmp slt i32 %185, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  store i32 23, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %208

189:                                              ; preds = %184
  %190 = load i32, ptr %16, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = sitofp i32 %193 to double
  %195 = load i32, ptr %16, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = sitofp i32 %199 to double
  %201 = fadd double %194, %200
  %202 = fdiv double %201, 2.000000e+00
  %203 = load double, ptr %15, align 8, !tbaa !17
  %204 = fadd double %203, %202
  store double %204, ptr %15, align 8, !tbaa !17
  br label %205

205:                                              ; preds = %189
  %206 = load i32, ptr %16, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %16, align 4, !tbaa !5
  br label %184, !llvm.loop !19

208:                                              ; preds = %188
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt5fixedRSt8ios_base)
  %210 = call i32 @_ZSt12setprecisioni(i32 noundef 10)
  %211 = getelementptr inbounds %"struct.std::_Setprecision", ptr %17, i32 0, i32 0
  store i32 %210, ptr %211, align 4
  %212 = getelementptr inbounds %"struct.std::_Setprecision", ptr %17, i32 0, i32 0
  %213 = load i32, ptr %212, align 4
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %209, i32 %213)
  %215 = load double, ptr %15, align 8, !tbaa !17
  %216 = fdiv double %215, 4.000000e+00
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %214, double noundef %216)
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %217, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %219 = load i32, ptr %1, align 4
  ret i32 %219
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) #3

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@N = external dso_local global i32, align 4
@T = external dso_local local_unnamed_addr global i32, align 4
@t = external dso_local global [110 x i32], align 16
@v = external dso_local global [110 x i32], align 16
@w = external dso_local global [50000 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  store i32 0, ptr @T, align 4, !tbaa !5
  %6 = load i32, ptr @N, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %.lr.ph68.preheader

.preheader61:                                     ; preds = %.lr.ph
  %8 = icmp sgt i32 %15, 0
  br i1 %8, label %.lr.ph64, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %9 = getelementptr inbounds [110 x i32], ptr @t, i64 0, i64 %indvars.iv
  %10 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %11 = load i32, ptr %9, align 4, !tbaa !5
  %12 = shl nsw i32 %11, 1
  store i32 %12, ptr %9, align 4, !tbaa !5
  %13 = load i32, ptr @T, align 4, !tbaa !5
  %14 = add nsw i32 %13, %12
  store i32 %14, ptr @T, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %15 = load i32, ptr @N, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = icmp slt i64 %indvars.iv.next, %16
  br i1 %17, label %.lr.ph, label %.preheader61, !llvm.loop !9

._crit_edge.loopexit:                             ; preds = %.lr.ph64
  %.pre = load i32, ptr @T, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader61
  %18 = phi i32 [ %24, %._crit_edge.loopexit ], [ %15, %.preheader61 ]
  %19 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %14, %.preheader61 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 0, ptr %1, align 4, !tbaa !5
  %.not65 = icmp slt i32 %19, 0
  br i1 %.not65, label %._crit_edge69, label %.lr.ph68.preheader

.lr.ph68.preheader:                               ; preds = %._crit_edge.thread, %._crit_edge
  %.ph = phi i32 [ %19, %._crit_edge ], [ 0, %._crit_edge.thread ]
  br label %.lr.ph68

.lr.ph64:                                         ; preds = %.preheader61, %.lr.ph64
  %indvars.iv89 = phi i64 [ %indvars.iv.next90, %.lr.ph64 ], [ 0, %.preheader61 ]
  %20 = getelementptr inbounds [110 x i32], ptr @v, i64 0, i64 %indvars.iv89
  %21 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %22 = load i32, ptr %20, align 4, !tbaa !5
  %23 = shl nsw i32 %22, 1
  store i32 %23, ptr %20, align 4, !tbaa !5
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %24 = load i32, ptr @N, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = icmp slt i64 %indvars.iv.next90, %25
  br i1 %26, label %.lr.ph64, label %._crit_edge.loopexit, !llvm.loop !11

._crit_edge69.loopexit:                           ; preds = %.lr.ph68
  %.pre114 = load i32, ptr @N, align 4, !tbaa !5
  br label %._crit_edge69

._crit_edge69:                                    ; preds = %._crit_edge69.loopexit, %._crit_edge
  %27 = phi i32 [ %38, %._crit_edge69.loopexit ], [ %19, %._crit_edge ]
  %28 = phi i32 [ %.pre114, %._crit_edge69.loopexit ], [ %18, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph83, label %.preheader

.lr.ph68:                                         ; preds = %.lr.ph68.preheader, %.lr.ph68
  %30 = phi i32 [ %38, %.lr.ph68 ], [ %.ph, %.lr.ph68.preheader ]
  %storemerge66 = phi i32 [ %37, %.lr.ph68 ], [ 0, %.lr.ph68.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %31 = sub nsw i32 %30, %storemerge66
  store i32 %31, ptr %2, align 4, !tbaa !5
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = load i32, ptr %1, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %35
  store i32 %33, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %37 = add nsw i32 %34, 1
  store i32 %37, ptr %1, align 4, !tbaa !5
  %38 = load i32, ptr @T, align 4, !tbaa !5
  %.not.not = icmp slt i32 %34, %38
  br i1 %.not.not, label %.lr.ph68, label %._crit_edge69.loopexit, !llvm.loop !12

.preheader:                                       ; preds = %._crit_edge79, %._crit_edge69
  %39 = phi i32 [ %27, %._crit_edge69 ], [ %66, %._crit_edge79 ]
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph86.preheader, label %._crit_edge87

.lr.ph86.preheader:                               ; preds = %.preheader
  %wide.trip.count112 = zext nneg i32 %39 to i64
  %.pre115 = load i32, ptr @w, align 16, !tbaa !5
  %xtraiter = and i64 %wide.trip.count112, 1
  %41 = icmp eq i32 %39, 1
  br i1 %41, label %._crit_edge87.loopexit.unr-lcssa, label %.lr.ph86.preheader.new

.lr.ph86.preheader.new:                           ; preds = %.lr.ph86.preheader
  %unroll_iter = and i64 %wide.trip.count112, 2147483646
  br label %.lr.ph86

.lr.ph83:                                         ; preds = %._crit_edge69, %._crit_edge79
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %._crit_edge79 ], [ 0, %._crit_edge69 ]
  %.05380 = phi i32 [ %68, %._crit_edge79 ], [ 0, %._crit_edge69 ]
  %42 = getelementptr inbounds [110 x i32], ptr @t, i64 0, i64 %indvars.iv106
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = add i32 %43, %.05380
  %45 = icmp sgt i32 %.05380, -1
  br i1 %45, label %.lr.ph72, label %.preheader60

.lr.ph72:                                         ; preds = %.lr.ph83
  %46 = getelementptr inbounds [110 x i32], ptr @v, i64 0, i64 %indvars.iv106
  %47 = zext nneg i32 %.05380 to i64
  %48 = add nuw i32 %.05380, 1
  %wide.trip.count = zext i32 %48 to i64
  br label %52

.preheader60:                                     ; preds = %52, %.lr.ph83
  %.not5773 = icmp slt i32 %43, 0
  br i1 %.not5773, label %.preheader59, label %.lr.ph75

.lr.ph75:                                         ; preds = %.preheader60
  %49 = getelementptr inbounds [110 x i32], ptr @v, i64 0, i64 %indvars.iv106
  %50 = sext i32 %.05380 to i64
  %smax = call i32 @llvm.smax.i32(i32 %.05380, i32 %44)
  %51 = add i32 %smax, 1
  br label %62

52:                                               ; preds = %.lr.ph72, %52
  %indvars.iv94 = phi i64 [ 0, %.lr.ph72 ], [ %indvars.iv.next95, %52 ]
  %indvars.iv92 = phi i64 [ %47, %.lr.ph72 ], [ %indvars.iv.next93, %52 ]
  %53 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %indvars.iv92
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %54 = load i32, ptr %46, align 4, !tbaa !5
  %55 = trunc nuw nsw i64 %indvars.iv94 to i32
  %56 = add nsw i32 %54, %55
  store i32 %56, ptr %3, align 4, !tbaa !5
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %53, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %58 = load i32, ptr %57, align 4, !tbaa !5
  store i32 %58, ptr %53, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %indvars.iv.next93 = add nsw i64 %indvars.iv92, -1
  %exitcond.not = icmp eq i64 %indvars.iv.next95, %wide.trip.count
  br i1 %exitcond.not, label %.preheader60, label %52, !llvm.loop !13

.preheader59:                                     ; preds = %62, %.preheader60
  %59 = load i32, ptr @T, align 4, !tbaa !5
  %.not5876 = icmp sgt i32 %44, %59
  br i1 %.not5876, label %._crit_edge79, label %.lr.ph78

.lr.ph78:                                         ; preds = %.preheader59
  %60 = getelementptr inbounds [110 x i32], ptr @v, i64 0, i64 %indvars.iv106
  %61 = sext i32 %44 to i64
  br label %72

62:                                               ; preds = %.lr.ph75, %62
  %indvars.iv99 = phi i64 [ %50, %.lr.ph75 ], [ %indvars.iv.next100, %62 ]
  %63 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %indvars.iv99
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %63, ptr noundef nonnull align 4 dereferenceable(4) %49)
  %65 = load i32, ptr %64, align 4, !tbaa !5
  store i32 %65, ptr %63, align 4, !tbaa !5
  %indvars.iv.next100 = add nsw i64 %indvars.iv99, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next100 to i32
  %exitcond102.not = icmp eq i32 %51, %lftr.wideiv
  br i1 %exitcond102.not, label %.preheader59, label %62, !llvm.loop !14

._crit_edge79:                                    ; preds = %72, %.preheader59
  %66 = phi i32 [ %59, %.preheader59 ], [ %81, %72 ]
  %67 = load i32, ptr %42, align 4, !tbaa !5
  %68 = add nsw i32 %67, %.05380
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %69 = load i32, ptr @N, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = icmp slt i64 %indvars.iv.next107, %70
  br i1 %71, label %.lr.ph83, label %.preheader, !llvm.loop !15

72:                                               ; preds = %.lr.ph78, %72
  %indvars.iv103 = phi i64 [ 0, %.lr.ph78 ], [ %indvars.iv.next104, %72 ]
  %73 = add nsw i64 %indvars.iv103, %61
  %74 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %73
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %75 = load i32, ptr %60, align 4, !tbaa !5
  %76 = trunc nuw nsw i64 %indvars.iv103 to i32
  %77 = add nsw i32 %75, %76
  store i32 %77, ptr %4, align 4, !tbaa !5
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %74, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %79 = load i32, ptr %78, align 4, !tbaa !5
  store i32 %79, ptr %74, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %80 = add nsw i64 %indvars.iv.next104, %61
  %81 = load i32, ptr @T, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %.not58 = icmp sgt i64 %80, %82
  br i1 %.not58, label %._crit_edge79, label %72, !llvm.loop !16

._crit_edge87.loopexit.unr-lcssa.loopexit:        ; preds = %.lr.ph86
  %83 = add nuw nsw i64 %indvars.iv109, 3
  br label %._crit_edge87.loopexit.unr-lcssa

._crit_edge87.loopexit.unr-lcssa:                 ; preds = %._crit_edge87.loopexit.unr-lcssa.loopexit, %.lr.ph86.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph86.preheader ], [ %111, %._crit_edge87.loopexit.unr-lcssa.loopexit ]
  %.unr = phi i32 [ %.pre115, %.lr.ph86.preheader ], [ %107, %._crit_edge87.loopexit.unr-lcssa.loopexit ]
  %indvars.iv109.unr = phi i64 [ 1, %.lr.ph86.preheader ], [ %83, %._crit_edge87.loopexit.unr-lcssa.loopexit ]
  %.04784.unr = phi double [ 0.000000e+00, %.lr.ph86.preheader ], [ %111, %._crit_edge87.loopexit.unr-lcssa.loopexit ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge87.loopexit, label %.lr.ph86.epil

.lr.ph86.epil:                                    ; preds = %._crit_edge87.loopexit.unr-lcssa
  %84 = sitofp i32 %.unr to double
  %85 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %indvars.iv109.unr
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = sitofp i32 %86 to double
  %88 = fadd double %84, %87
  %89 = fmul double %88, 5.000000e-01
  %90 = fadd double %.04784.unr, %89
  br label %._crit_edge87.loopexit

._crit_edge87.loopexit:                           ; preds = %._crit_edge87.loopexit.unr-lcssa, %.lr.ph86.epil
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge87.loopexit.unr-lcssa ], [ %90, %.lr.ph86.epil ]
  %91 = fmul double %.lcssa, 2.500000e-01
  br label %._crit_edge87

._crit_edge87:                                    ; preds = %._crit_edge87.loopexit, %.preheader
  %.047.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %91, %._crit_edge87.loopexit ]
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
  %93 = call i32 @_ZSt12setprecisioni(i32 noundef 10)
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %92, i32 %93)
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %94, double noundef %.047.lcssa)
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0

.lr.ph86:                                         ; preds = %.lr.ph86, %.lr.ph86.preheader.new
  %97 = phi i32 [ %.pre115, %.lr.ph86.preheader.new ], [ %107, %.lr.ph86 ]
  %indvars.iv109 = phi i64 [ 0, %.lr.ph86.preheader.new ], [ %indvars.iv.next110.1, %.lr.ph86 ]
  %.04784 = phi double [ 0.000000e+00, %.lr.ph86.preheader.new ], [ %111, %.lr.ph86 ]
  %niter = phi i64 [ 0, %.lr.ph86.preheader.new ], [ %niter.next.1, %.lr.ph86 ]
  %98 = sitofp i32 %97 to double
  %indvars.iv.next110 = or disjoint i64 %indvars.iv109, 1
  %99 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %indvars.iv.next110
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = sitofp i32 %100 to double
  %102 = fadd double %98, %101
  %103 = fmul double %102, 5.000000e-01
  %104 = fadd double %.04784, %103
  %105 = sitofp i32 %100 to double
  %indvars.iv.next110.1 = add nuw nsw i64 %indvars.iv109, 2
  %106 = getelementptr inbounds [50000 x i32], ptr @w, i64 0, i64 %indvars.iv.next110.1
  %107 = load i32, ptr %106, align 8, !tbaa !5
  %108 = sitofp i32 %107 to double
  %109 = fadd double %105, %108
  %110 = fmul double %109, 5.000000e-01
  %111 = fadd double %104, %110
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge87.loopexit.unr-lcssa.loopexit, label %.lr.ph86, !llvm.loop !17
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #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)) #4

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

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

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

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


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