; LLVM IR from kazunetakahashi/atcoder :: 201510_201609/1115_codefes2015_morning (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" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = 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 [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@_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 i64, align 8
  %4 = alloca [100010 x i64], align 16
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %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 i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %25 = 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)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 800080, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %27

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

31:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %40

32:                                               ; preds = %27
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %34
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %35)
  br label %37

37:                                               ; preds = %32
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %5, align 4, !tbaa !5
  br label %27, !llvm.loop !9

40:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 1000000000000010, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %84, %40
  %42 = load i64, ptr %6, align 8, !tbaa !11
  %43 = load i64, ptr %7, align 8, !tbaa !11
  %44 = sub nsw i64 %42, %43
  %45 = icmp sgt i64 %44, 1
  br i1 %45, label %46, label %85

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %47 = load i64, ptr %6, align 8, !tbaa !11
  %48 = load i64, ptr %7, align 8, !tbaa !11
  %49 = add nsw i64 %47, %48
  %50 = sdiv i64 %49, 2
  store i64 %50, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %73, %46
  %52 = load i32, ptr %10, align 4, !tbaa !5
  %53 = load i32, ptr %2, align 4, !tbaa !5
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %76

56:                                               ; preds = %51
  %57 = load i32, ptr %10, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !11
  %61 = load i64, ptr %8, align 8, !tbaa !11
  %62 = icmp sgt i64 %60, %61
  br i1 %62, label %63, label %72

63:                                               ; preds = %56
  %64 = load i32, ptr %10, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %65
  %67 = load i64, ptr %66, align 8, !tbaa !11
  %68 = load i64, ptr %8, align 8, !tbaa !11
  %69 = sub nsw i64 %67, %68
  %70 = load i64, ptr %9, align 8, !tbaa !11
  %71 = add nsw i64 %70, %69
  store i64 %71, ptr %9, align 8, !tbaa !11
  br label %72

72:                                               ; preds = %63, %56
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %10, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %10, align 4, !tbaa !5
  br label %51, !llvm.loop !13

76:                                               ; preds = %55
  %77 = load i64, ptr %9, align 8, !tbaa !11
  %78 = load i64, ptr %3, align 8, !tbaa !11
  %79 = icmp sle i64 %77, %78
  br i1 %79, label %80, label %82

80:                                               ; preds = %76
  %81 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %81, ptr %6, align 8, !tbaa !11
  br label %84

82:                                               ; preds = %76
  %83 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %83, ptr %7, align 8, !tbaa !11
  br label %84

84:                                               ; preds = %82, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %41, !llvm.loop !14

85:                                               ; preds = %41
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %87 = load i64, ptr %6, align 8, !tbaa !11
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %86, i64 noundef %87)
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %90 = load i64, ptr %3, align 8, !tbaa !11
  store i64 %90, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %119, %85
  %92 = load i32, ptr %12, align 4, !tbaa !5
  %93 = load i32, ptr %2, align 4, !tbaa !5
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %122

96:                                               ; preds = %91
  %97 = load i32, ptr %12, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %98
  %100 = load i64, ptr %99, align 8, !tbaa !11
  %101 = load i64, ptr %6, align 8, !tbaa !11
  %102 = sub nsw i64 %100, %101
  %103 = icmp sge i64 %102, 1
  br i1 %103, label %104, label %117

104:                                              ; preds = %96
  %105 = load i32, ptr %12, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !11
  %109 = load i64, ptr %6, align 8, !tbaa !11
  %110 = sub nsw i64 %108, %109
  %111 = load i64, ptr %11, align 8, !tbaa !11
  %112 = sub nsw i64 %111, %110
  store i64 %112, ptr %11, align 8, !tbaa !11
  %113 = load i64, ptr %6, align 8, !tbaa !11
  %114 = load i32, ptr %12, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %115
  store i64 %113, ptr %116, align 8, !tbaa !11
  br label %118

117:                                              ; preds = %96
  br label %118

118:                                              ; preds = %117, %104
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %12, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %12, align 4, !tbaa !5
  br label %91, !llvm.loop !15

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

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

127:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %138

128:                                              ; preds = %123
  %129 = load i32, ptr %13, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %130
  %132 = load i64, ptr %131, align 8, !tbaa !11
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i64 noundef %132)
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef @.str.1)
  br label %135

135:                                              ; preds = %128
  %136 = load i32, ptr %13, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %13, align 4, !tbaa !5
  br label %123, !llvm.loop !16

138:                                              ; preds = %127
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 1000000000000010, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %140

140:                                              ; preds = %160, %138
  %141 = load i32, ptr %16, align 4, !tbaa !5
  %142 = load i32, ptr %2, align 4, !tbaa !5
  %143 = icmp slt i32 %141, %142
  br i1 %143, label %145, label %144

144:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %163

145:                                              ; preds = %140
  %146 = load i64, ptr %14, align 8, !tbaa !11
  %147 = load i32, ptr %16, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %148
  %150 = load i64, ptr %149, align 8, !tbaa !11
  %151 = icmp sgt i64 %146, %150
  br i1 %151, label %152, label %159

152:                                              ; preds = %145
  %153 = load i32, ptr %16, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %154
  %156 = load i64, ptr %155, align 8, !tbaa !11
  store i64 %156, ptr %14, align 8, !tbaa !11
  %157 = load i32, ptr %16, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  store i64 %158, ptr %15, align 8, !tbaa !11
  br label %159

159:                                              ; preds = %152, %145
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %16, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %16, align 4, !tbaa !5
  br label %140, !llvm.loop !17

163:                                              ; preds = %144
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
  %165 = load i64, ptr %14, align 8, !tbaa !11
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %164, i64 noundef %165)
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 0, ptr %17, align 8, !tbaa !11
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.3)
  %169 = load i64, ptr %11, align 8, !tbaa !11
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %168, i64 noundef %169)
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %170, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %172

172:                                              ; preds = %184, %163
  %173 = load i64, ptr %11, align 8, !tbaa !11
  %174 = icmp sgt i64 %173, 0
  br i1 %174, label %175, label %182

175:                                              ; preds = %172
  %176 = load i64, ptr %15, align 8, !tbaa !11
  %177 = load i64, ptr %17, align 8, !tbaa !11
  %178 = add nsw i64 %176, %177
  %179 = load i32, ptr %2, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = icmp slt i64 %178, %180
  br label %182

182:                                              ; preds = %175, %172
  %183 = phi i1 [ false, %172 ], [ %181, %175 ]
  br i1 %183, label %184, label %206

184:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %185 = load i64, ptr %15, align 8, !tbaa !11
  %186 = load i64, ptr %17, align 8, !tbaa !11
  %187 = add nsw i64 %185, %186
  %188 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %187
  %189 = load i64, ptr %188, align 8, !tbaa !11
  %190 = load i64, ptr %14, align 8, !tbaa !11
  %191 = sub nsw i64 %189, %190
  store i64 %191, ptr %19, align 8, !tbaa !11
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %193 = load i64, ptr %192, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  store i64 %193, ptr %18, align 8, !tbaa !11
  %194 = load i64, ptr %18, align 8, !tbaa !11
  %195 = load i64, ptr %11, align 8, !tbaa !11
  %196 = sub nsw i64 %195, %194
  store i64 %196, ptr %11, align 8, !tbaa !11
  %197 = load i64, ptr %18, align 8, !tbaa !11
  %198 = load i64, ptr %15, align 8, !tbaa !11
  %199 = load i64, ptr %17, align 8, !tbaa !11
  %200 = add nsw i64 %198, %199
  %201 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %200
  %202 = load i64, ptr %201, align 8, !tbaa !11
  %203 = sub nsw i64 %202, %197
  store i64 %203, ptr %201, align 8, !tbaa !11
  %204 = load i64, ptr %17, align 8, !tbaa !11
  %205 = add nsw i64 %204, 1
  store i64 %205, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %172, !llvm.loop !18

206:                                              ; preds = %182
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %207

207:                                              ; preds = %217, %206
  %208 = load i64, ptr %11, align 8, !tbaa !11
  %209 = icmp sgt i64 %208, 0
  br i1 %209, label %210, label %215

210:                                              ; preds = %207
  %211 = load i64, ptr %15, align 8, !tbaa !11
  %212 = load i64, ptr %17, align 8, !tbaa !11
  %213 = add nsw i64 %211, %212
  %214 = icmp sge i64 %213, 0
  br label %215

215:                                              ; preds = %210, %207
  %216 = phi i1 [ false, %207 ], [ %214, %210 ]
  br i1 %216, label %217, label %239

217:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %218 = load i64, ptr %15, align 8, !tbaa !11
  %219 = load i64, ptr %17, align 8, !tbaa !11
  %220 = add nsw i64 %218, %219
  %221 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %220
  %222 = load i64, ptr %221, align 8, !tbaa !11
  %223 = load i64, ptr %14, align 8, !tbaa !11
  %224 = sub nsw i64 %222, %223
  store i64 %224, ptr %21, align 8, !tbaa !11
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %226 = load i64, ptr %225, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  store i64 %226, ptr %20, align 8, !tbaa !11
  %227 = load i64, ptr %20, align 8, !tbaa !11
  %228 = load i64, ptr %11, align 8, !tbaa !11
  %229 = sub nsw i64 %228, %227
  store i64 %229, ptr %11, align 8, !tbaa !11
  %230 = load i64, ptr %20, align 8, !tbaa !11
  %231 = load i64, ptr %15, align 8, !tbaa !11
  %232 = load i64, ptr %17, align 8, !tbaa !11
  %233 = add nsw i64 %231, %232
  %234 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %233
  %235 = load i64, ptr %234, align 8, !tbaa !11
  %236 = sub nsw i64 %235, %230
  store i64 %236, ptr %234, align 8, !tbaa !11
  %237 = load i64, ptr %17, align 8, !tbaa !11
  %238 = add nsw i64 %237, -1
  store i64 %238, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %207, !llvm.loop !19

239:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %240 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 0
  %241 = load i64, ptr %240, align 16, !tbaa !11
  %242 = load i32, ptr %2, align 4, !tbaa !5
  %243 = sub nsw i32 %242, 1
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %244
  %246 = load i64, ptr %245, align 8, !tbaa !11
  %247 = add nsw i64 %241, %246
  store i64 %247, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %248

248:                                              ; preds = %268, %239
  %249 = load i32, ptr %23, align 4, !tbaa !5
  %250 = load i32, ptr %2, align 4, !tbaa !5
  %251 = sub nsw i32 %250, 1
  %252 = icmp slt i32 %249, %251
  br i1 %252, label %254, label %253

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

254:                                              ; preds = %248
  %255 = load i32, ptr %23, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %256
  %258 = load i64, ptr %257, align 8, !tbaa !11
  %259 = load i32, ptr %23, align 4, !tbaa !5
  %260 = add nsw i32 %259, 1
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %261
  %263 = load i64, ptr %262, align 8, !tbaa !11
  %264 = sub nsw i64 %258, %263
  %265 = call noundef i64 @_ZSt3absx(i64 noundef %264)
  %266 = load i64, ptr %22, align 8, !tbaa !11
  %267 = add nsw i64 %266, %265
  store i64 %267, ptr %22, align 8, !tbaa !11
  br label %268

268:                                              ; preds = %254
  %269 = load i32, ptr %23, align 4, !tbaa !5
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %23, align 4, !tbaa !5
  br label %248, !llvm.loop !20

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

272:                                              ; preds = %291, %271
  %273 = load i32, ptr %24, align 4, !tbaa !5
  %274 = load i32, ptr %2, align 4, !tbaa !5
  %275 = icmp slt i32 %273, %274
  br i1 %275, label %277, label %276

276:                                              ; preds = %272
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %294

277:                                              ; preds = %272
  %278 = load i32, ptr %24, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %279
  %281 = load i64, ptr %280, align 8, !tbaa !11
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i64 noundef %281)
  %283 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %282, ptr noundef @.str.1)
  %284 = load i32, ptr %24, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [100010 x i64], ptr %4, i64 0, i64 %285
  %287 = load i64, ptr %286, align 8, !tbaa !11
  %288 = mul nsw i64 2, %287
  %289 = load i64, ptr %22, align 8, !tbaa !11
  %290 = add nsw i64 %289, %288
  store i64 %290, ptr %22, align 8, !tbaa !11
  br label %291

291:                                              ; preds = %277
  %292 = load i32, ptr %24, align 4, !tbaa !5
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %24, align 4, !tbaa !5
  br label %272, !llvm.loop !21

294:                                              ; preds = %276
  %295 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %296 = load i32, ptr %2, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = load i64, ptr %22, align 8, !tbaa !11
  %299 = add nsw i64 %298, %297
  store i64 %299, ptr %22, align 8, !tbaa !11
  %300 = load i64, ptr %22, align 8, !tbaa !11
  %301 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %300)
  %302 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %301, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 800080, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %303 = load i32, ptr %1, align 4
  ret i32 %303
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 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) #3 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) #5

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = { 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 #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 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !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" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = 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 [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@_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 i64, align 8
  %3 = alloca [100010 x i64], align 16
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 800080, ptr nonnull %3) #7
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %.preheader96.thread

.preheader96.thread:                              ; preds = %0
  %11 = load i64, ptr %2, align 8, !tbaa !9
  br label %.preheader96.split

.preheader96:                                     ; preds = %.lr.ph
  %12 = icmp sgt i32 %38, 0
  %13 = load i64, ptr %2, align 8, !tbaa !9
  br i1 %12, label %.lr.ph100.us.preheader, label %.preheader96.split

.lr.ph100.us.preheader:                           ; preds = %.preheader96
  %wide.trip.count = zext nneg i32 %38 to i64
  %min.iters.check = icmp ult i32 %38, 4
  %n.vec = and i64 %wide.trip.count, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %.lr.ph100.us

.lr.ph100.us:                                     ; preds = %.lr.ph100.us.preheader, %._crit_edge.us
  %.072103.us = phi i64 [ %.072..us, %._crit_edge.us ], [ 1000000000000010, %.lr.ph100.us.preheader ]
  %.086102.us = phi i64 [ %..086.us, %._crit_edge.us ], [ 0, %.lr.ph100.us.preheader ]
  %14 = add nsw i64 %.072103.us, %.086102.us
  %15 = sdiv i64 %14, 2
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph100.us
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %15, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %24, %vector.body ]
  %vec.phi179 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %25, %vector.body ]
  %16 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %index
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %wide.load = load <2 x i64>, ptr %16, align 16, !tbaa !9
  %wide.load180 = load <2 x i64>, ptr %17, align 16, !tbaa !9
  %18 = icmp sgt <2 x i64> %wide.load, %broadcast.splat
  %19 = icmp sgt <2 x i64> %wide.load180, %broadcast.splat
  %20 = sub nsw <2 x i64> %wide.load, %broadcast.splat
  %21 = sub nsw <2 x i64> %wide.load180, %broadcast.splat
  %22 = select <2 x i1> %18, <2 x i64> %20, <2 x i64> zeroinitializer
  %23 = select <2 x i1> %19, <2 x i64> %21, <2 x i64> zeroinitializer
  %24 = add <2 x i64> %22, %vec.phi
  %25 = add <2 x i64> %23, %vec.phi179
  %index.next = add nuw i64 %index, 4
  %26 = icmp eq i64 %index.next, %n.vec
  br i1 %26, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %25, %24
  %27 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph100.us
  %indvars.iv141.ph = phi i64 [ 0, %.lr.ph100.us ], [ %n.vec, %middle.block ]
  %.08498.us.ph = phi i64 [ 0, %.lr.ph100.us ], [ %27, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv141 = phi i64 [ %indvars.iv.next142, %scalar.ph ], [ %indvars.iv141.ph, %scalar.ph.preheader ]
  %.08498.us = phi i64 [ %.185.us, %scalar.ph ], [ %.08498.us.ph, %scalar.ph.preheader ]
  %28 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv141
  %29 = load i64, ptr %28, align 8, !tbaa !9
  %30 = icmp sgt i64 %29, %15
  %31 = sub nsw i64 %29, %15
  %32 = select i1 %30, i64 %31, i64 0
  %.185.us = add nsw i64 %32, %.08498.us
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next142, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !15

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  %.185.us.lcssa = phi i64 [ %27, %middle.block ], [ %.185.us, %scalar.ph ]
  %.not.us = icmp sgt i64 %.185.us.lcssa, %13
  %..086.us = select i1 %.not.us, i64 %15, i64 %.086102.us
  %.072..us = select i1 %.not.us, i64 %.072103.us, i64 %15
  %33 = sub nsw i64 %.072..us, %..086.us
  %34 = icmp sgt i64 %33, 1
  br i1 %34, label %.lr.ph100.us, label %.split.us, !llvm.loop !16

.preheader96.split:                               ; preds = %.preheader96.thread, %.preheader96
  %35 = phi i64 [ %11, %.preheader96.thread ], [ %13, %.preheader96 ]
  %.not = icmp slt i64 %35, 0
  br label %41

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %36 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %36)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = load i32, ptr %1, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = icmp slt i64 %indvars.iv.next, %39
  br i1 %40, label %.lr.ph, label %.preheader96, !llvm.loop !17

41:                                               ; preds = %.preheader96.split, %41
  %.072103 = phi i64 [ 1000000000000010, %.preheader96.split ], [ %.072., %41 ]
  %.086102 = phi i64 [ 0, %.preheader96.split ], [ %..086, %41 ]
  %42 = add nsw i64 %.072103, %.086102
  %43 = sdiv i64 %42, 2
  %..086 = select i1 %.not, i64 %43, i64 %.086102
  %.072. = select i1 %.not, i64 %.072103, i64 %43
  %44 = sub nsw i64 %.072., %..086
  %45 = icmp sgt i64 %44, 1
  br i1 %45, label %41, label %.split.us, !llvm.loop !16

.split.us:                                        ; preds = %41, %._crit_edge.us
  %.us-phi = phi i64 [ %.072..us, %._crit_edge.us ], [ %.072., %41 ]
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %46, i64 noundef %.us-phi)
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %49 = load i64, ptr %2, align 8, !tbaa !9
  %50 = load i32, ptr %1, align 4, !tbaa !5
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph106.preheader, label %.preheader95.thread

.preheader95.thread:                              ; preds = %.split.us
  store i64 %49, ptr %4, align 8, !tbaa !9
  br label %._crit_edge

.lr.ph106.preheader:                              ; preds = %.split.us
  %wide.trip.count147 = zext nneg i32 %50 to i64
  %xtraiter = and i64 %wide.trip.count147, 1
  %52 = icmp eq i32 %50, 1
  br i1 %52, label %.preheader95.unr-lcssa, label %.lr.ph106.preheader.new

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

.preheader95.unr-lcssa:                           ; preds = %73, %.lr.ph106.preheader
  %.lcssa184.ph = phi i64 [ poison, %.lr.ph106.preheader ], [ %74, %73 ]
  %indvars.iv144.unr = phi i64 [ 0, %.lr.ph106.preheader ], [ %indvars.iv.next145.1, %73 ]
  %.unr = phi i64 [ %49, %.lr.ph106.preheader ], [ %74, %73 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader95, label %.lr.ph106.epil

.lr.ph106.epil:                                   ; preds = %.preheader95.unr-lcssa
  %53 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv144.unr
  %54 = load i64, ptr %53, align 8, !tbaa !9
  %55 = sub nsw i64 %54, %.us-phi
  %56 = icmp sgt i64 %55, 0
  br i1 %56, label %57, label %.preheader95

57:                                               ; preds = %.lr.ph106.epil
  %58 = sub nsw i64 %.unr, %55
  store i64 %.us-phi, ptr %53, align 8, !tbaa !9
  br label %.preheader95

.preheader95:                                     ; preds = %.lr.ph106.epil, %57, %.preheader95.unr-lcssa
  %.lcssa184 = phi i64 [ %.lcssa184.ph, %.preheader95.unr-lcssa ], [ %58, %57 ], [ %.unr, %.lr.ph106.epil ]
  store i64 %.lcssa184, ptr %4, align 8, !tbaa !9
  br i1 %51, label %.lr.ph109, label %._crit_edge

.lr.ph106:                                        ; preds = %73, %.lr.ph106.preheader.new
  %indvars.iv144 = phi i64 [ 0, %.lr.ph106.preheader.new ], [ %indvars.iv.next145.1, %73 ]
  %59 = phi i64 [ %49, %.lr.ph106.preheader.new ], [ %74, %73 ]
  %niter = phi i64 [ 0, %.lr.ph106.preheader.new ], [ %niter.next.1, %73 ]
  %60 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv144
  %61 = load i64, ptr %60, align 16, !tbaa !9
  %62 = sub nsw i64 %61, %.us-phi
  %63 = icmp sgt i64 %62, 0
  br i1 %63, label %64, label %.lr.ph106.1

64:                                               ; preds = %.lr.ph106
  %65 = sub nsw i64 %59, %62
  store i64 %.us-phi, ptr %60, align 16, !tbaa !9
  br label %.lr.ph106.1

.lr.ph106.1:                                      ; preds = %64, %.lr.ph106
  %66 = phi i64 [ %65, %64 ], [ %59, %.lr.ph106 ]
  %indvars.iv.next145 = or disjoint i64 %indvars.iv144, 1
  %67 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv.next145
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = sub nsw i64 %68, %.us-phi
  %70 = icmp sgt i64 %69, 0
  br i1 %70, label %71, label %73

71:                                               ; preds = %.lr.ph106.1
  %72 = sub nsw i64 %66, %69
  store i64 %.us-phi, ptr %67, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %71, %.lr.ph106.1
  %74 = phi i64 [ %72, %71 ], [ %66, %.lr.ph106.1 ]
  %indvars.iv.next145.1 = add nuw nsw i64 %indvars.iv144, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader95.unr-lcssa, label %.lr.ph106, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph109, %.preheader95.thread, %.preheader95
  %.pr165 = phi i64 [ %49, %.preheader95.thread ], [ %.lcssa184, %.preheader95 ], [ %.lcssa184, %.lr.ph109 ]
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %76 = load i32, ptr %1, align 4, !tbaa !5
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %.lr.ph114.preheader, label %._crit_edge115

.lr.ph114.preheader:                              ; preds = %._crit_edge
  %wide.trip.count155 = zext nneg i32 %76 to i64
  %xtraiter191 = and i64 %wide.trip.count155, 3
  %78 = icmp ult i32 %76, 4
  br i1 %78, label %._crit_edge115.loopexit.unr-lcssa, label %.lr.ph114.preheader.new

.lr.ph114.preheader.new:                          ; preds = %.lr.ph114.preheader
  %unroll_iter195 = and i64 %wide.trip.count155, 2147483644
  br label %.lr.ph114

.lr.ph109:                                        ; preds = %.preheader95, %.lr.ph109
  %indvars.iv149 = phi i64 [ %indvars.iv.next150, %.lr.ph109 ], [ 0, %.preheader95 ]
  %79 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv149
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i64 noundef %80)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull @.str.1)
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %83 = load i32, ptr %1, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = icmp slt i64 %indvars.iv.next150, %84
  br i1 %85, label %.lr.ph109, label %._crit_edge, !llvm.loop !19

._crit_edge115.loopexit.unr-lcssa:                ; preds = %.lr.ph114, %.lr.ph114.preheader
  %spec.select.lcssa.ph = phi i64 [ poison, %.lr.ph114.preheader ], [ %spec.select.3, %.lr.ph114 ]
  %spec.select94.lcssa.ph = phi i64 [ poison, %.lr.ph114.preheader ], [ %spec.select94.3, %.lr.ph114 ]
  %indvars.iv152.unr = phi i64 [ 0, %.lr.ph114.preheader ], [ %indvars.iv.next153.3, %.lr.ph114 ]
  %.077111.unr = phi i64 [ 0, %.lr.ph114.preheader ], [ %spec.select94.3, %.lr.ph114 ]
  %.079110.unr = phi i64 [ 1000000000000010, %.lr.ph114.preheader ], [ %spec.select.3, %.lr.ph114 ]
  %lcmp.mod192.not = icmp eq i64 %xtraiter191, 0
  br i1 %lcmp.mod192.not, label %._crit_edge115, label %.lr.ph114.epil

.lr.ph114.epil:                                   ; preds = %._crit_edge115.loopexit.unr-lcssa, %.lr.ph114.epil
  %indvars.iv152.epil = phi i64 [ %indvars.iv.next153.epil, %.lr.ph114.epil ], [ %indvars.iv152.unr, %._crit_edge115.loopexit.unr-lcssa ]
  %.077111.epil = phi i64 [ %spec.select94.epil, %.lr.ph114.epil ], [ %.077111.unr, %._crit_edge115.loopexit.unr-lcssa ]
  %.079110.epil = phi i64 [ %spec.select.epil, %.lr.ph114.epil ], [ %.079110.unr, %._crit_edge115.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph114.epil ], [ 0, %._crit_edge115.loopexit.unr-lcssa ]
  %86 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv152.epil
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = icmp sgt i64 %.079110.epil, %87
  %spec.select.epil = call i64 @llvm.smin.i64(i64 %.079110.epil, i64 %87)
  %spec.select94.epil = select i1 %88, i64 %indvars.iv152.epil, i64 %.077111.epil
  %indvars.iv.next153.epil = add nuw nsw i64 %indvars.iv152.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter191
  br i1 %epil.iter.cmp.not, label %._crit_edge115, label %.lr.ph114.epil, !llvm.loop !20

._crit_edge115:                                   ; preds = %._crit_edge115.loopexit.unr-lcssa, %.lr.ph114.epil, %._crit_edge
  %.079.lcssa = phi i64 [ 1000000000000010, %._crit_edge ], [ %spec.select.lcssa.ph, %._crit_edge115.loopexit.unr-lcssa ], [ %spec.select.epil, %.lr.ph114.epil ]
  %.077.lcssa = phi i64 [ 0, %._crit_edge ], [ %spec.select94.lcssa.ph, %._crit_edge115.loopexit.unr-lcssa ], [ %spec.select94.epil, %.lr.ph114.epil ]
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.2)
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %89, i64 noundef %.079.lcssa)
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.3)
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %92, i64 noundef %.pr165)
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %95 = icmp sgt i64 %.pr165, 0
  br i1 %95, label %.lr.ph120, label %._crit_edge124

.lr.ph114:                                        ; preds = %.lr.ph114, %.lr.ph114.preheader.new
  %indvars.iv152 = phi i64 [ 0, %.lr.ph114.preheader.new ], [ %indvars.iv.next153.3, %.lr.ph114 ]
  %.077111 = phi i64 [ 0, %.lr.ph114.preheader.new ], [ %spec.select94.3, %.lr.ph114 ]
  %.079110 = phi i64 [ 1000000000000010, %.lr.ph114.preheader.new ], [ %spec.select.3, %.lr.ph114 ]
  %niter196 = phi i64 [ 0, %.lr.ph114.preheader.new ], [ %niter196.next.3, %.lr.ph114 ]
  %96 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv152
  %97 = load i64, ptr %96, align 16, !tbaa !9
  %98 = icmp sgt i64 %.079110, %97
  %spec.select = call i64 @llvm.smin.i64(i64 %.079110, i64 %97)
  %spec.select94 = select i1 %98, i64 %indvars.iv152, i64 %.077111
  %indvars.iv.next153 = or disjoint i64 %indvars.iv152, 1
  %99 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv.next153
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = icmp sgt i64 %spec.select, %100
  %spec.select.1 = call i64 @llvm.smin.i64(i64 %spec.select, i64 %100)
  %spec.select94.1 = select i1 %101, i64 %indvars.iv.next153, i64 %spec.select94
  %indvars.iv.next153.1 = or disjoint i64 %indvars.iv152, 2
  %102 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv.next153.1
  %103 = load i64, ptr %102, align 16, !tbaa !9
  %104 = icmp sgt i64 %spec.select.1, %103
  %spec.select.2 = call i64 @llvm.smin.i64(i64 %spec.select.1, i64 %103)
  %spec.select94.2 = select i1 %104, i64 %indvars.iv.next153.1, i64 %spec.select94.1
  %indvars.iv.next153.2 = or disjoint i64 %indvars.iv152, 3
  %105 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv.next153.2
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = icmp sgt i64 %spec.select.2, %106
  %spec.select.3 = call i64 @llvm.smin.i64(i64 %spec.select.2, i64 %106)
  %spec.select94.3 = select i1 %107, i64 %indvars.iv.next153.2, i64 %spec.select94.2
  %indvars.iv.next153.3 = add nuw nsw i64 %indvars.iv152, 4
  %niter196.next.3 = add i64 %niter196, 4
  %niter196.ncmp.3 = icmp eq i64 %niter196.next.3, %unroll_iter195
  br i1 %niter196.ncmp.3, label %._crit_edge115.loopexit.unr-lcssa, label %.lr.ph114, !llvm.loop !22

.lr.ph120:                                        ; preds = %._crit_edge115, %111
  %.074118 = phi i64 [ %121, %111 ], [ 0, %._crit_edge115 ]
  %108 = add nsw i64 %.074118, %.077.lcssa
  %109 = load i32, ptr %1, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %.not172 = icmp slt i64 %108, %110
  br i1 %.not172, label %111, label %.critedge

111:                                              ; preds = %.lr.ph120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %112 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %108
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = sub nsw i64 %113, %.079.lcssa
  store i64 %114, ptr %5, align 8, !tbaa !9
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %116 = load i64, ptr %115, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %117 = load i64, ptr %4, align 8, !tbaa !9
  %118 = sub nsw i64 %117, %116
  store i64 %118, ptr %4, align 8, !tbaa !9
  %119 = load i64, ptr %112, align 8, !tbaa !9
  %120 = sub nsw i64 %119, %116
  store i64 %120, ptr %112, align 8, !tbaa !9
  %121 = add nuw nsw i64 %.074118, 1
  %122 = icmp sgt i64 %118, 0
  br i1 %122, label %.lr.ph120, label %._crit_edge124, !llvm.loop !23

.critedge:                                        ; preds = %.lr.ph120
  %123 = icmp sgt i64 %.077.lcssa, -1
  br i1 %123, label %.lr.ph123.preheader, label %._crit_edge124

.lr.ph123.preheader:                              ; preds = %.critedge
  %invariant.op = xor i64 %.077.lcssa, -1
  br label %.lr.ph123

.lr.ph123:                                        ; preds = %.lr.ph123.preheader, %.lr.ph123
  %.175122 = phi i64 [ %134, %.lr.ph123 ], [ 0, %.lr.ph123.preheader ]
  %124 = add nsw i64 %.175122, %.077.lcssa
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %125 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %124
  %126 = load i64, ptr %125, align 8, !tbaa !9
  %127 = sub nsw i64 %126, %.079.lcssa
  store i64 %127, ptr %6, align 8, !tbaa !9
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %129 = load i64, ptr %128, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %130 = load i64, ptr %4, align 8, !tbaa !9
  %131 = sub nsw i64 %130, %129
  store i64 %131, ptr %4, align 8, !tbaa !9
  %132 = load i64, ptr %125, align 8, !tbaa !9
  %133 = sub nsw i64 %132, %129
  store i64 %133, ptr %125, align 8, !tbaa !9
  %134 = add nsw i64 %.175122, -1
  %135 = icmp sgt i64 %131, 0
  %136 = icmp sgt i64 %134, %invariant.op
  %137 = select i1 %135, i1 %136, i1 false
  br i1 %137, label %.lr.ph123, label %._crit_edge124, !llvm.loop !24

._crit_edge124:                                   ; preds = %111, %.lr.ph123, %._crit_edge115, %.critedge
  %138 = load i64, ptr %3, align 16, !tbaa !9
  %139 = load i32, ptr %1, align 4, !tbaa !5
  %140 = add nsw i32 %139, -1
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %141
  %143 = load i64, ptr %142, align 8, !tbaa !9
  %144 = add nsw i64 %143, %138
  %145 = icmp sgt i32 %139, 1
  br i1 %145, label %.lr.ph128, label %.preheader

.preheader:                                       ; preds = %.lr.ph128, %._crit_edge124
  %146 = phi i32 [ %139, %._crit_edge124 ], [ %155, %.lr.ph128 ]
  %.070.lcssa = phi i64 [ %144, %._crit_edge124 ], [ %154, %.lr.ph128 ]
  %147 = icmp sgt i32 %146, 0
  br i1 %147, label %.lr.ph132, label %._crit_edge133

.lr.ph128:                                        ; preds = %._crit_edge124, %.lr.ph128
  %indvars.iv157 = phi i64 [ %indvars.iv.next158, %.lr.ph128 ], [ 0, %._crit_edge124 ]
  %.070125 = phi i64 [ %154, %.lr.ph128 ], [ %144, %._crit_edge124 ]
  %148 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv157
  %149 = load i64, ptr %148, align 8, !tbaa !9
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %150 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv.next158
  %151 = load i64, ptr %150, align 8, !tbaa !9
  %152 = sub nsw i64 %149, %151
  %153 = call noundef i64 @_ZSt3absx(i64 noundef %152)
  %154 = add nsw i64 %153, %.070125
  %155 = load i32, ptr %1, align 4, !tbaa !5
  %156 = add nsw i32 %155, -1
  %157 = sext i32 %156 to i64
  %158 = icmp slt i64 %indvars.iv.next158, %157
  br i1 %158, label %.lr.ph128, label %.preheader, !llvm.loop !25

._crit_edge133:                                   ; preds = %.lr.ph132, %.preheader
  %.1.lcssa = phi i64 [ %.070.lcssa, %.preheader ], [ %171, %.lr.ph132 ]
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %160 = load i32, ptr %1, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = add nsw i64 %.1.lcssa, %161
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %162)
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 800080, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

.lr.ph132:                                        ; preds = %.preheader, %.lr.ph132
  %indvars.iv160 = phi i64 [ %indvars.iv.next161, %.lr.ph132 ], [ 0, %.preheader ]
  %.1130 = phi i64 [ %171, %.lr.ph132 ], [ %.070.lcssa, %.preheader ]
  %165 = getelementptr inbounds [100010 x i64], ptr %3, i64 0, i64 %indvars.iv160
  %166 = load i64, ptr %165, align 8, !tbaa !9
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i64 noundef %166)
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %167, ptr noundef nonnull @.str.1)
  %169 = load i64, ptr %165, align 8, !tbaa !9
  %170 = shl nsw i64 %169, 1
  %171 = add nsw i64 %170, %.1130
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %172 = load i32, ptr %1, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = icmp slt i64 %indvars.iv.next161, %173
  br i1 %174, label %.lr.ph132, label %._crit_edge133, !llvm.loop !26
}

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

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

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

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

; Function Attrs: inlinehint mustprogress 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 #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 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 #3 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) local_unnamed_addr #5

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #6

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = { 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 #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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12, !14, !13}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}


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