; LLVM IR from Tunghohin/Competitive_Coding :: Codeforces/cf1716_C.ll (Z5solvev)

; 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.segment_tree = type { [1600040 x %"struct.segment_tree<int>::Node"] }
%"struct.segment_tree<int>::Node" = type { i32, i32, i32 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::initializer_list" = type { ptr, i64 }

@a = external dso_local global [5 x [200010 x i32]], align 16
@line_ud = external dso_local global [400010 x i32], align 16
@line_du = external dso_local global [400010 x i32], align 16
@tr1 = external dso_local global %class.segment_tree, align 4
@tr2 = external dso_local global %class.segment_tree, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #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 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 i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::initializer_list", align 8
  %18 = alloca [3 x 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 i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i64, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca %"class.std::initializer_list", align 8
  %30 = alloca [3 x i64], align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %58, %0
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = icmp sle i32 %37, 2
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %61

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %54, %40
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = load i32, ptr %1, align 4, !tbaa !5
  %44 = icmp sle i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %57

46:                                               ; preds = %41
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [5 x [200010 x i32]], ptr @a, i64 0, i64 %48
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [200010 x i32], ptr %49, 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)
  br label %54

54:                                               ; preds = %46
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %4, align 4, !tbaa !5
  br label %41, !llvm.loop !9

57:                                               ; preds = %45
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %2, align 4, !tbaa !5
  br label %36, !llvm.loop !11

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

62:                                               ; preds = %106, %61
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = load i32, ptr %1, align 4, !tbaa !5
  %65 = icmp sle i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %109

67:                                               ; preds = %62
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds ([5 x [200010 x i32]], ptr @a, i64 0, i64 1), i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = load i32, ptr %5, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [400010 x i32], ptr @line_ud, i64 0, i64 %73
  store i32 %71, ptr %74, align 4, !tbaa !5
  %75 = load i32, ptr %1, align 4, !tbaa !5
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = sub nsw i32 %75, %76
  %78 = add nsw i32 %77, 1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds ([5 x [200010 x i32]], ptr @a, i64 0, i64 2), i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = load i32, ptr %1, align 4, !tbaa !5
  %84 = add nsw i32 %82, %83
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [400010 x i32], ptr @line_ud, i64 0, i64 %85
  store i32 %81, ptr %86, align 4, !tbaa !5
  %87 = load i32, ptr %5, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds ([5 x [200010 x i32]], ptr @a, i64 0, i64 2), i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = load i32, ptr %5, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [400010 x i32], ptr @line_du, i64 0, i64 %92
  store i32 %90, ptr %93, align 4, !tbaa !5
  %94 = load i32, ptr %1, align 4, !tbaa !5
  %95 = load i32, ptr %5, align 4, !tbaa !5
  %96 = sub nsw i32 %94, %95
  %97 = add nsw i32 %96, 1
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds ([5 x [200010 x i32]], ptr @a, i64 0, i64 1), i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = load i32, ptr %5, align 4, !tbaa !5
  %102 = load i32, ptr %1, align 4, !tbaa !5
  %103 = add nsw i32 %101, %102
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [400010 x i32], ptr @line_du, i64 0, i64 %104
  store i32 %100, ptr %105, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %67
  %107 = load i32, ptr %5, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %5, align 4, !tbaa !5
  br label %62, !llvm.loop !12

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

110:                                              ; preds = %124, %109
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = load i32, ptr %1, align 4, !tbaa !5
  %113 = mul nsw i32 2, %112
  %114 = icmp sle i32 %111, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %110
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %127

116:                                              ; preds = %110
  %117 = load i32, ptr %6, align 4, !tbaa !5
  %118 = sub nsw i32 %117, 2
  %119 = load i32, ptr %6, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [400010 x i32], ptr @line_ud, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = sub nsw i32 %122, %118
  store i32 %123, ptr %121, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %116
  %125 = load i32, ptr %6, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %6, align 4, !tbaa !5
  br label %110, !llvm.loop !13

127:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 2, ptr %7, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %142, %127
  %129 = load i32, ptr %7, align 4, !tbaa !5
  %130 = load i32, ptr %1, align 4, !tbaa !5
  %131 = mul nsw i32 2, %130
  %132 = icmp slt i32 %129, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %128
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %145

134:                                              ; preds = %128
  %135 = load i32, ptr %7, align 4, !tbaa !5
  %136 = sub nsw i32 %135, 1
  %137 = load i32, ptr %7, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [400010 x i32], ptr @line_du, i64 0, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = sub nsw i32 %140, %136
  store i32 %141, ptr %139, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %134
  %143 = load i32, ptr %7, align 4, !tbaa !5
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %7, align 4, !tbaa !5
  br label %128, !llvm.loop !14

145:                                              ; preds = %133
  %146 = load i32, ptr %1, align 4, !tbaa !5
  %147 = mul nsw i32 2, %146
  call void @_ZN12segment_treeIiE5buildEiiiPi(ptr noundef nonnull align 4 dereferenceable(19200480) @tr1, i32 noundef 1, i32 noundef 1, i32 noundef %147, ptr noundef @line_ud)
  %148 = load i32, ptr %1, align 4, !tbaa !5
  %149 = mul nsw i32 2, %148
  call void @_ZN12segment_treeIiE5buildEiiiPi(ptr noundef nonnull align 4 dereferenceable(19200480) @tr2, i32 noundef 1, i32 noundef 1, i32 noundef %149, ptr noundef @line_du)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 4557430888798830399, ptr %8, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %280, %145
  %151 = load i32, ptr %10, align 4, !tbaa !5
  %152 = load i32, ptr %1, align 4, !tbaa !5
  %153 = icmp sle i32 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %283

155:                                              ; preds = %150
  %156 = load i32, ptr %10, align 4, !tbaa !5
  %157 = srem i32 %156, 2
  %158 = icmp eq i32 %157, 1
  br i1 %158, label %159, label %219

159:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %160 = load i32, ptr %10, align 4, !tbaa !5
  %161 = sub nsw i32 %160, 1
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds ([5 x [200010 x i32]], ptr @a, i64 0, i64 1), i64 0, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %165 = load i32, ptr %10, align 4, !tbaa !5
  %166 = sub nsw i32 %165, 3
  %167 = mul nsw i32 %166, 2
  %168 = add nsw i32 %167, 2
  store i32 %168, ptr %13, align 4, !tbaa !5
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = sub nsw i32 %164, %170
  %172 = sext i32 %171 to i64
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  store i64 %172, ptr %11, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %173 = load i32, ptr %10, align 4, !tbaa !5
  %174 = sub nsw i32 %173, 1
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds ([5 x [200010 x i32]], ptr @a, i64 0, i64 2), i64 0, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %178 = load i32, ptr %10, align 4, !tbaa !5
  %179 = sub nsw i32 %178, 3
  %180 = mul nsw i32 %179, 2
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %16, align 4, !tbaa !5
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = sub nsw i32 %177, %183
  %185 = sext i32 %184 to i64
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  store i64 %185, ptr %14, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #5
  %186 = load i64, ptr %9, align 8, !tbaa !15
  store i64 %186, ptr %18, align 8, !tbaa !15
  %187 = getelementptr inbounds i64, ptr %18, i64 1
  %188 = load i64, ptr %11, align 8, !tbaa !15
  store i64 %188, ptr %187, align 8, !tbaa !15
  %189 = getelementptr inbounds i64, ptr %18, i64 2
  %190 = load i64, ptr %14, align 8, !tbaa !15
  store i64 %190, ptr %189, align 8, !tbaa !15
  %191 = getelementptr inbounds %"class.std::initializer_list", ptr %17, i32 0, i32 0
  store ptr %18, ptr %191, align 8, !tbaa !17
  %192 = getelementptr inbounds %"class.std::initializer_list", ptr %17, i32 0, i32 1
  store i64 3, ptr %192, align 8, !tbaa !21
  %193 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8
  %195 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %196 = load i64, ptr %195, align 8
  %197 = call noundef i64 @_ZSt3maxIxET_St16initializer_listIS0_E(ptr %194, i64 %196)
  store i64 %197, ptr %9, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i64 0, ptr %20, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %198 = load i32, ptr %10, align 4, !tbaa !5
  %199 = load i32, ptr %1, align 4, !tbaa !5
  %200 = mul nsw i32 2, %199
  %201 = load i32, ptr %10, align 4, !tbaa !5
  %202 = sub nsw i32 %200, %201
  %203 = add nsw i32 %202, 1
  %204 = call noundef i32 @_ZN12segment_treeIiE5queryEiii(ptr noundef nonnull align 4 dereferenceable(19200480) @tr1, i32 noundef 1, i32 noundef %198, i32 noundef %203)
  %205 = sext i32 %204 to i64
  %206 = load i32, ptr %10, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  %208 = sdiv i32 %207, 2
  %209 = sub nsw i32 %208, 1
  %210 = mul nsw i32 %209, 2
  %211 = sext i32 %210 to i64
  %212 = sub nsw i64 %205, %211
  store i64 %212, ptr %21, align 8, !tbaa !15
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %214 = load i64, ptr %213, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  store i64 %214, ptr %19, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %216 = load i64, ptr %215, align 8, !tbaa !15
  store i64 %216, ptr %22, align 8, !tbaa !15
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %218 = load i64, ptr %217, align 8, !tbaa !15
  store i64 %218, ptr %8, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %279

219:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %220 = load i32, ptr %10, align 4, !tbaa !5
  %221 = sub nsw i32 %220, 1
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds ([5 x [200010 x i32]], ptr @a, i64 0, i64 1), i64 0, i64 %222
  %224 = load i32, ptr %223, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %225 = load i32, ptr %10, align 4, !tbaa !5
  %226 = sub nsw i32 %225, 3
  %227 = mul nsw i32 %226, 2
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %25, align 4, !tbaa !5
  %229 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = sub nsw i32 %224, %230
  %232 = sext i32 %231 to i64
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  store i64 %232, ptr %23, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %233 = load i32, ptr %10, align 4, !tbaa !5
  %234 = sub nsw i32 %233, 1
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds ([5 x [200010 x i32]], ptr @a, i64 0, i64 2), i64 0, i64 %235
  %237 = load i32, ptr %236, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %238 = load i32, ptr %10, align 4, !tbaa !5
  %239 = sub nsw i32 %238, 3
  %240 = mul nsw i32 %239, 2
  %241 = add nsw i32 %240, 2
  store i32 %241, ptr %28, align 4, !tbaa !5
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %243 = load i32, ptr %242, align 4, !tbaa !5
  %244 = sub nsw i32 %237, %243
  %245 = sext i32 %244 to i64
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  store i64 %245, ptr %26, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #5
  %246 = load i64, ptr %9, align 8, !tbaa !15
  store i64 %246, ptr %30, align 8, !tbaa !15
  %247 = getelementptr inbounds i64, ptr %30, i64 1
  %248 = load i64, ptr %23, align 8, !tbaa !15
  store i64 %248, ptr %247, align 8, !tbaa !15
  %249 = getelementptr inbounds i64, ptr %30, i64 2
  %250 = load i64, ptr %26, align 8, !tbaa !15
  store i64 %250, ptr %249, align 8, !tbaa !15
  %251 = getelementptr inbounds %"class.std::initializer_list", ptr %29, i32 0, i32 0
  store ptr %30, ptr %251, align 8, !tbaa !17
  %252 = getelementptr inbounds %"class.std::initializer_list", ptr %29, i32 0, i32 1
  store i64 3, ptr %252, align 8, !tbaa !21
  %253 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 0
  %254 = load ptr, ptr %253, align 8
  %255 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 1
  %256 = load i64, ptr %255, align 8
  %257 = call noundef i64 @_ZSt3maxIxET_St16initializer_listIS0_E(ptr %254, i64 %256)
  store i64 %257, ptr %9, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  store i64 0, ptr %32, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %258 = load i32, ptr %10, align 4, !tbaa !5
  %259 = load i32, ptr %1, align 4, !tbaa !5
  %260 = mul nsw i32 2, %259
  %261 = load i32, ptr %10, align 4, !tbaa !5
  %262 = sub nsw i32 %260, %261
  %263 = add nsw i32 %262, 1
  %264 = call noundef i32 @_ZN12segment_treeIiE5queryEiii(ptr noundef nonnull align 4 dereferenceable(19200480) @tr2, i32 noundef 1, i32 noundef %258, i32 noundef %263)
  %265 = sext i32 %264 to i64
  %266 = load i32, ptr %10, align 4, !tbaa !5
  %267 = add nsw i32 %266, 1
  %268 = sdiv i32 %267, 2
  %269 = sub nsw i32 %268, 1
  %270 = mul nsw i32 %269, 2
  %271 = sext i32 %270 to i64
  %272 = sub nsw i64 %265, %271
  store i64 %272, ptr %33, align 8, !tbaa !15
  %273 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %274 = load i64, ptr %273, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  store i64 %274, ptr %31, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  %275 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %276 = load i64, ptr %275, align 8, !tbaa !15
  store i64 %276, ptr %34, align 8, !tbaa !15
  %277 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %34)
  %278 = load i64, ptr %277, align 8, !tbaa !15
  store i64 %278, ptr %8, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %279

279:                                              ; preds = %219, %159
  br label %280

280:                                              ; preds = %279
  %281 = load i32, ptr %10, align 4, !tbaa !5
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %10, align 4, !tbaa !5
  br label %150, !llvm.loop !22

283:                                              ; preds = %154
  %284 = load i64, ptr %8, align 8, !tbaa !15
  %285 = load i32, ptr %1, align 4, !tbaa !5
  %286 = mul nsw i32 2, %285
  %287 = sext i32 %286 to i64
  %288 = add nsw i64 %284, %287
  %289 = sub nsw i64 %288, 1
  %290 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %289)
  %291 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %290, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12segment_treeIiE5buildEiiiPi(ptr noundef nonnull align 4 dereferenceable(19200480), i32 noundef, i32 noundef, i32 noundef, ptr noundef) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt3maxIxET_St16initializer_listIS0_E(ptr, i64) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN12segment_treeIiE5queryEiii(ptr noundef nonnull align 4 dereferenceable(19200480), i32 noundef, i32 noundef, i32 noundef) #0 align 2

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

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

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

attributes #0 = { 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 #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 = { 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 = { 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 = !{!16, !16, i64 0}
!16 = !{!"long long", !7, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTSSt16initializer_listIxE", !19, i64 0, !20, i64 8}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!18, !20, i64 8}
!22 = distinct !{!22, !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.segment_tree = type { [1600040 x %"struct.segment_tree<int>::Node"] }
%"struct.segment_tree<int>::Node" = type { i32, i32, i32 }
%"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" }

@a = external dso_local global [5 x [200010 x i32]], align 16
@line_ud = external dso_local global [400010 x i32], align 16
@line_du = external dso_local global [400010 x i32], align 16
@tr1 = external dso_local global %class.segment_tree, align 4
@tr2 = external dso_local global %class.segment_tree, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [3 x i64], align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca [3 x i64], align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %22 = 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)
  %23 = load i32, ptr %1, align 4, !tbaa !5
  %24 = icmp slt i32 %23, 1
  br i1 %24, label %.preheader59.thread, label %.lr.ph

.preheader60:                                     ; preds = %.lr.ph.1
  %.not67 = icmp slt i32 %47, 1
  br i1 %.not67, label %.preheader59.thread, label %.lr.ph69.preheader

.lr.ph69.preheader:                               ; preds = %.preheader60
  %25 = zext nneg i32 %47 to i64
  %26 = add nuw i32 %47, 1
  %wide.trip.count = zext i32 %26 to i64
  %27 = zext nneg i32 %47 to i64
  %min.iters.check = icmp ult i32 %47, 8
  br i1 %min.iters.check, label %.lr.ph69.preheader166, label %vector.scevcheck

.lr.ph69.preheader166:                            ; preds = %middle.block, %vector.scevcheck, %.lr.ph69.preheader
  %indvars.iv92.ph = phi i64 [ 1, %vector.scevcheck ], [ 1, %.lr.ph69.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph69

vector.scevcheck:                                 ; preds = %.lr.ph69.preheader
  %28 = add nsw i64 %wide.trip.count, -2
  %29 = trunc i64 %28 to i32
  %30 = sub i32 %47, %29
  %31 = icmp sgt i32 %30, %47
  %32 = icmp ugt i64 %28, 4294967295
  %33 = or i1 %31, %32
  br i1 %33, label %.lr.ph69.preheader166, label %vector.ph

vector.ph:                                        ; preds = %vector.scevcheck
  %n.vec = and i64 %27, 2147483644
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %34 = trunc i64 %index to i32
  %35 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds (i8, ptr @a, i64 800040), i64 0, i64 %offset.idx
  %wide.load = load <4 x i32>, ptr %35, align 4, !tbaa !5
  %36 = getelementptr inbounds [400010 x i32], ptr @line_ud, i64 0, i64 %offset.idx
  store <4 x i32> %wide.load, ptr %36, align 4, !tbaa !5
  %37 = sub i32 %47, %34
  %38 = sext i32 %37 to i64
  %gep = getelementptr [200010 x i32], ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @a, i64 1600080), i64 -12), i64 0, i64 %38
  %wide.load124 = load <4 x i32>, ptr %gep, align 4, !tbaa !5
  %reverse = shufflevector <4 x i32> %wide.load124, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %39 = add nuw nsw i64 %offset.idx, %25
  %40 = getelementptr inbounds [400010 x i32], ptr @line_ud, i64 0, i64 %39
  store <4 x i32> %reverse, ptr %40, align 4, !tbaa !5
  %41 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds (i8, ptr @a, i64 1600080), i64 0, i64 %offset.idx
  %wide.load125 = load <4 x i32>, ptr %41, align 4, !tbaa !5
  %42 = getelementptr inbounds [400010 x i32], ptr @line_du, i64 0, i64 %offset.idx
  store <4 x i32> %wide.load125, ptr %42, align 4, !tbaa !5
  %gep172 = getelementptr [200010 x i32], ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @a, i64 800040), i64 -12), i64 0, i64 %38
  %wide.load126 = load <4 x i32>, ptr %gep172, align 4, !tbaa !5
  %reverse127 = shufflevector <4 x i32> %wide.load126, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %43 = getelementptr inbounds [400010 x i32], ptr @line_du, i64 0, i64 %39
  store <4 x i32> %reverse127, ptr %43, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %44 = icmp eq i64 %index.next, %n.vec
  br i1 %44, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %27
  br i1 %cmp.n, label %.preheader59, label %.lr.ph69.preheader166

._crit_edge:                                      ; preds = %.lr.ph
  %.not5764.1 = icmp slt i32 %51, 1
  br i1 %.not5764.1, label %.preheader59.thread, label %.lr.ph.1

.lr.ph.1:                                         ; preds = %._crit_edge, %.lr.ph.1
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %.lr.ph.1 ], [ 1, %._crit_edge ]
  %45 = getelementptr inbounds [5 x [200010 x i32]], ptr @a, i64 0, i64 2, i64 %indvars.iv.1
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %45)
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %47 = load i32, ptr %1, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %.not57.not.1 = icmp slt i64 %indvars.iv.1, %48
  br i1 %.not57.not.1, label %.lr.ph.1, label %.preheader60, !llvm.loop !13

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %49 = getelementptr inbounds [5 x [200010 x i32]], ptr @a, i64 0, i64 1, i64 %indvars.iv
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %49)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %51 = load i32, ptr %1, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %.not57.not = icmp slt i64 %indvars.iv, %52
  br i1 %.not57.not, label %.lr.ph, label %._crit_edge, !llvm.loop !13

.preheader59.thread:                              ; preds = %.preheader60, %._crit_edge, %0
  %.ph = phi i32 [ %51, %._crit_edge ], [ %47, %.preheader60 ], [ %23, %0 ]
  %53 = shl i32 %.ph, 1
  br label %._crit_edge76

.preheader59:                                     ; preds = %.lr.ph69, %middle.block
  %54 = shl nuw i32 %47, 1
  %.not5470 = icmp eq i32 %47, 1
  br i1 %.not5470, label %._crit_edge76, label %.lr.ph72.preheader

.lr.ph72.preheader:                               ; preds = %.preheader59
  %smax = call i32 @llvm.smax.i32(i32 %54, i32 3)
  %55 = add nuw nsw i32 %smax, 1
  %wide.trip.count99 = zext nneg i32 %55 to i64
  %56 = zext nneg i32 %smax to i64
  %57 = add nsw i64 %56, -2
  %min.iters.check130 = icmp ult i64 %57, 8
  br i1 %min.iters.check130, label %.lr.ph72.preheader165, label %vector.ph131

.lr.ph72.preheader165:                            ; preds = %middle.block128, %.lr.ph72.preheader
  %indvars.iv96.ph = phi i64 [ 3, %.lr.ph72.preheader ], [ %ind.end134, %middle.block128 ]
  br label %.lr.ph72

vector.ph131:                                     ; preds = %.lr.ph72.preheader
  %n.vec133 = and i64 %57, -8
  %ind.end134 = or disjoint i64 %n.vec133, 3
  br label %vector.body136

vector.body136:                                   ; preds = %vector.body136, %vector.ph131
  %index137 = phi i64 [ 0, %vector.ph131 ], [ %index.next142, %vector.body136 ]
  %vec.ind = phi <4 x i32> [ <i32 3, i32 4, i32 5, i32 6>, %vector.ph131 ], [ %vec.ind.next, %vector.body136 ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %offset.idx139 = or disjoint i64 %index137, 3
  %58 = getelementptr inbounds [400010 x i32], ptr @line_ud, i64 0, i64 %offset.idx139
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  %wide.load140 = load <4 x i32>, ptr %58, align 4, !tbaa !5
  %wide.load141 = load <4 x i32>, ptr %59, align 4, !tbaa !5
  %60 = sub <4 x i32> %wide.load140, %vec.ind
  %61 = sub <4 x i32> %wide.load141, %step.add
  %62 = add <4 x i32> %60, <i32 2, i32 2, i32 2, i32 2>
  %63 = add <4 x i32> %61, <i32 2, i32 2, i32 2, i32 2>
  store <4 x i32> %62, ptr %58, align 4, !tbaa !5
  store <4 x i32> %63, ptr %59, align 4, !tbaa !5
  %index.next142 = add nuw i64 %index137, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %64 = icmp eq i64 %index.next142, %n.vec133
  br i1 %64, label %middle.block128, label %vector.body136, !llvm.loop !14

middle.block128:                                  ; preds = %vector.body136
  %cmp.n143 = icmp eq i64 %57, %n.vec133
  br i1 %cmp.n143, label %.lr.ph75.preheader, label %.lr.ph72.preheader165

.lr.ph69:                                         ; preds = %.lr.ph69.preheader166, %.lr.ph69
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %.lr.ph69 ], [ %indvars.iv92.ph, %.lr.ph69.preheader166 ]
  %65 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds (i8, ptr @a, i64 800040), i64 0, i64 %indvars.iv92
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = getelementptr inbounds [400010 x i32], ptr @line_ud, i64 0, i64 %indvars.iv92
  store i32 %66, ptr %67, align 4, !tbaa !5
  %68 = trunc i64 %indvars.iv92 to i32
  %69 = sub i32 %47, %68
  %70 = add i32 %69, 1
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds (i8, ptr @a, i64 1600080), i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = add nuw nsw i64 %indvars.iv92, %25
  %75 = getelementptr inbounds [400010 x i32], ptr @line_ud, i64 0, i64 %74
  store i32 %73, ptr %75, align 4, !tbaa !5
  %76 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds (i8, ptr @a, i64 1600080), i64 0, i64 %indvars.iv92
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = getelementptr inbounds [400010 x i32], ptr @line_du, i64 0, i64 %indvars.iv92
  store i32 %77, ptr %78, align 4, !tbaa !5
  %79 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds (i8, ptr @a, i64 800040), i64 0, i64 %71
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = getelementptr inbounds [400010 x i32], ptr @line_du, i64 0, i64 %74
  store i32 %80, ptr %81, align 4, !tbaa !5
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next93, %wide.trip.count
  br i1 %exitcond.not, label %.preheader59, label %.lr.ph69, !llvm.loop !15

.lr.ph75.preheader:                               ; preds = %.lr.ph72, %middle.block128
  %smax104 = call i32 @llvm.smax.i32(i32 %54, i32 3)
  %wide.trip.count105 = zext nneg i32 %smax104 to i64
  %82 = add nsw i64 %wide.trip.count105, -2
  %min.iters.check146 = icmp ult i64 %82, 8
  br i1 %min.iters.check146, label %.lr.ph75.preheader164, label %vector.ph147

.lr.ph75.preheader164:                            ; preds = %middle.block144, %.lr.ph75.preheader
  %indvars.iv101.ph = phi i64 [ 2, %.lr.ph75.preheader ], [ %ind.end150, %middle.block144 ]
  br label %.lr.ph75

vector.ph147:                                     ; preds = %.lr.ph75.preheader
  %n.vec149 = and i64 %82, -8
  %ind.end150 = or disjoint i64 %n.vec149, 2
  br label %vector.body152

vector.body152:                                   ; preds = %vector.body152, %vector.ph147
  %index153 = phi i64 [ 0, %vector.ph147 ], [ %index.next161, %vector.body152 ]
  %vec.ind154 = phi <4 x i32> [ <i32 2, i32 3, i32 4, i32 5>, %vector.ph147 ], [ %vec.ind.next157, %vector.body152 ]
  %step.add155 = add <4 x i32> %vec.ind154, <i32 4, i32 4, i32 4, i32 4>
  %offset.idx158 = or disjoint i64 %index153, 2
  %83 = getelementptr inbounds [400010 x i32], ptr @line_du, i64 0, i64 %offset.idx158
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  %wide.load159 = load <4 x i32>, ptr %83, align 8, !tbaa !5
  %wide.load160 = load <4 x i32>, ptr %84, align 8, !tbaa !5
  %85 = sub <4 x i32> %wide.load159, %vec.ind154
  %86 = sub <4 x i32> %wide.load160, %step.add155
  %87 = add <4 x i32> %85, <i32 1, i32 1, i32 1, i32 1>
  %88 = add <4 x i32> %86, <i32 1, i32 1, i32 1, i32 1>
  store <4 x i32> %87, ptr %83, align 8, !tbaa !5
  store <4 x i32> %88, ptr %84, align 8, !tbaa !5
  %index.next161 = add nuw i64 %index153, 8
  %vec.ind.next157 = add <4 x i32> %vec.ind154, <i32 8, i32 8, i32 8, i32 8>
  %89 = icmp eq i64 %index.next161, %n.vec149
  br i1 %89, label %middle.block144, label %vector.body152, !llvm.loop !16

middle.block144:                                  ; preds = %vector.body152
  %cmp.n162 = icmp eq i64 %82, %n.vec149
  br i1 %cmp.n162, label %._crit_edge76, label %.lr.ph75.preheader164

.lr.ph72:                                         ; preds = %.lr.ph72.preheader165, %.lr.ph72
  %indvars.iv96 = phi i64 [ %indvars.iv.next97, %.lr.ph72 ], [ %indvars.iv96.ph, %.lr.ph72.preheader165 ]
  %90 = getelementptr inbounds [400010 x i32], ptr @line_ud, i64 0, i64 %indvars.iv96
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = trunc nuw nsw i64 %indvars.iv96 to i32
  %reass.sub83 = sub i32 %91, %92
  %93 = add i32 %reass.sub83, 2
  store i32 %93, ptr %90, align 4, !tbaa !5
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %exitcond100.not = icmp eq i64 %indvars.iv.next97, %wide.trip.count99
  br i1 %exitcond100.not, label %.lr.ph75.preheader, label %.lr.ph72, !llvm.loop !17

._crit_edge76:                                    ; preds = %.lr.ph75, %middle.block144, %.preheader59, %.preheader59.thread
  %94 = phi i32 [ %54, %.preheader59 ], [ %53, %.preheader59.thread ], [ %54, %middle.block144 ], [ %54, %.lr.ph75 ]
  call void @_ZN12segment_treeIiE5buildEiiiPi(ptr noundef nonnull align 4 dereferenceable(19200480) @tr1, i32 noundef 1, i32 noundef 1, i32 noundef %94, ptr noundef nonnull @line_ud)
  %95 = load i32, ptr %1, align 4, !tbaa !5
  %96 = shl nsw i32 %95, 1
  call void @_ZN12segment_treeIiE5buildEiiiPi(ptr noundef nonnull align 4 dereferenceable(19200480) @tr2, i32 noundef 1, i32 noundef 1, i32 noundef %96, ptr noundef nonnull @line_du)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store i64 4557430888798830399, ptr %2, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store i64 0, ptr %3, align 8, !tbaa !18
  %97 = load i32, ptr %1, align 4, !tbaa !5
  %.not5577 = icmp slt i32 %97, 1
  br i1 %.not5577, label %._crit_edge81, label %.lr.ph80

.lr.ph80:                                         ; preds = %._crit_edge76
  %98 = getelementptr inbounds i8, ptr %8, i64 8
  %99 = getelementptr inbounds i8, ptr %8, i64 16
  %100 = getelementptr inbounds i8, ptr %17, i64 8
  %101 = getelementptr inbounds i8, ptr %17, i64 16
  br label %113

.lr.ph75:                                         ; preds = %.lr.ph75.preheader164, %.lr.ph75
  %indvars.iv101 = phi i64 [ %indvars.iv.next102, %.lr.ph75 ], [ %indvars.iv101.ph, %.lr.ph75.preheader164 ]
  %102 = getelementptr inbounds [400010 x i32], ptr @line_du, i64 0, i64 %indvars.iv101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = trunc nuw nsw i64 %indvars.iv101 to i32
  %reass.sub84 = sub i32 %103, %104
  %105 = add i32 %reass.sub84, 1
  store i32 %105, ptr %102, align 4, !tbaa !5
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %exitcond106.not = icmp eq i64 %indvars.iv.next102, %wide.trip.count105
  br i1 %exitcond106.not, label %._crit_edge76, label %.lr.ph75, !llvm.loop !20

._crit_edge81:                                    ; preds = %175, %._crit_edge76
  %106 = phi i64 [ 4557430888798830399, %._crit_edge76 ], [ %.sink, %175 ]
  %.lcssa = phi i32 [ %97, %._crit_edge76 ], [ %176, %175 ]
  %107 = shl nsw i32 %.lcssa, 1
  %108 = sext i32 %107 to i64
  %109 = add nsw i64 %108, -1
  %110 = add i64 %109, %106
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %110)
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %111, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret void

113:                                              ; preds = %.lr.ph80, %175
  %indvars.iv107 = phi i64 [ 1, %.lr.ph80 ], [ %indvars.iv.next108, %175 ]
  %114 = trunc nuw nsw i64 %indvars.iv107 to i32
  %115 = and i32 %114, 1
  %.not56 = icmp eq i32 %115, 0
  %116 = add nsw i64 %indvars.iv107, -1
  %117 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds (i8, ptr @a, i64 800040), i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %indvars.iv107.tr110 = trunc i64 %indvars.iv107 to i32
  %119 = shl i32 %indvars.iv107.tr110, 1
  %120 = getelementptr inbounds [200010 x i32], ptr getelementptr inbounds (i8, ptr @a, i64 1600080), i64 0, i64 %116
  br i1 %.not56, label %147, label %121

121:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %122 = add i32 %119, -4
  store i32 %122, ptr %5, align 4, !tbaa !5
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = sub nsw i32 %118, %124
  %126 = sext i32 %125 to i64
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %127 = load i32, ptr %120, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %128 = add i32 %119, -5
  store i32 %128, ptr %7, align 4, !tbaa !5
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = sub nsw i32 %127, %130
  %132 = sext i32 %131 to i64
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  %133 = load i64, ptr %3, align 8, !tbaa !18
  store i64 %133, ptr %8, align 8, !tbaa !18
  store i64 %126, ptr %98, align 8, !tbaa !18
  store i64 %132, ptr %99, align 8, !tbaa !18
  %134 = call noundef i64 @_ZSt3maxIxET_St16initializer_listIS0_E(ptr nonnull %8, i64 3)
  store i64 %134, ptr %3, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  store i64 0, ptr %10, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %135 = load i32, ptr %1, align 4, !tbaa !5
  %136 = shl nsw i32 %135, 1
  %reass.sub85 = sub i32 %136, %114
  %137 = add i32 %reass.sub85, 1
  %138 = call noundef i32 @_ZN12segment_treeIiE5queryEiii(ptr noundef nonnull align 4 dereferenceable(19200480) @tr1, i32 noundef 1, i32 noundef %114, i32 noundef %137)
  %139 = sext i32 %138 to i64
  %140 = sub nsw i64 %139, %116
  store i64 %140, ptr %11, align 8, !tbaa !18
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %142 = load i64, ptr %141, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  store i64 %142, ptr %9, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %144 = load i64, ptr %143, align 8, !tbaa !18
  store i64 %144, ptr %12, align 8, !tbaa !18
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %146 = load i64, ptr %145, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %175

147:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  %148 = add i32 %119, -5
  store i32 %148, ptr %14, align 4, !tbaa !5
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = sub nsw i32 %118, %150
  %152 = sext i32 %151 to i64
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  %153 = load i32, ptr %120, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %154 = add i32 %119, -4
  store i32 %154, ptr %16, align 4, !tbaa !5
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = sub nsw i32 %153, %156
  %158 = sext i32 %157 to i64
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #6
  %159 = load i64, ptr %3, align 8, !tbaa !18
  store i64 %159, ptr %17, align 8, !tbaa !18
  store i64 %152, ptr %100, align 8, !tbaa !18
  store i64 %158, ptr %101, align 8, !tbaa !18
  %160 = call noundef i64 @_ZSt3maxIxET_St16initializer_listIS0_E(ptr nonnull %17, i64 3)
  store i64 %160, ptr %3, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  store i64 0, ptr %19, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  %161 = load i32, ptr %1, align 4, !tbaa !5
  %162 = shl nsw i32 %161, 1
  %163 = sub nsw i32 %162, %114
  %164 = or disjoint i32 %163, 1
  %165 = call noundef i32 @_ZN12segment_treeIiE5queryEiii(ptr noundef nonnull align 4 dereferenceable(19200480) @tr2, i32 noundef 1, i32 noundef %114, i32 noundef %164)
  %166 = sext i32 %165 to i64
  %167 = add nsw i64 %indvars.iv107, -2
  %168 = sub nsw i64 %166, %167
  store i64 %168, ptr %20, align 8, !tbaa !18
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %170 = load i64, ptr %169, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  store i64 %170, ptr %18, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %172 = load i64, ptr %171, align 8, !tbaa !18
  store i64 %172, ptr %21, align 8, !tbaa !18
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %174 = load i64, ptr %173, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  br label %175

175:                                              ; preds = %121, %147
  %.sink = phi i64 [ %174, %147 ], [ %146, %121 ]
  store i64 %.sink, ptr %2, align 8
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %176 = load i32, ptr %1, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %.not55.not = icmp slt i64 %indvars.iv107, %177
  br i1 %.not55.not, label %113, label %._crit_edge81, !llvm.loop !21
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12segment_treeIiE5buildEiiiPi(ptr noundef nonnull align 4 dereferenceable(19200480), i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_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 dso_local noundef i64 @_ZSt3maxIxET_St16initializer_listIS0_E(ptr, i64) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN12segment_treeIiE5queryEiii(ptr noundef nonnull align 4 dereferenceable(19200480), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) 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 #0 align 2

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

attributes #0 = { 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 #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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10, !11, !12}
!15 = distinct !{!15, !10, !11}
!16 = distinct !{!16, !10, !11, !12}
!17 = distinct !{!17, !10, !12, !11}
!18 = !{!19, !19, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = distinct !{!20, !10, !12, !11}
!21 = distinct !{!21, !10}


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