; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/294 Division 2/Problem E (E)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.7" = type { ptr }
%"struct.std::pair" = type { %"struct.std::pair.5", i32 }
%"struct.std::pair.5" = type { i32, i32 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@g = external dso_local global [131072 x %"class.std::vector"], align 16
@p = external dso_local global [17 x [131072 x i32]], align 16
@l = external dso_local global [131072 x i32], align 16
@sz = external dso_local global [131072 x i32], align 16
@beg = external dso_local global [131072 x i32], align 16
@seg = external dso_local global [131072 x %"class.std::vector.0"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3LCAii(i32 noundef, i32 noundef) #0

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z14getAncestorAtHii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsii(i32 noundef, i32 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #5 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %17 = alloca %"struct.std::pair", align 4
  %18 = alloca %"struct.std::pair.5", align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca { i64, i32 }, align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %29 = alloca %"struct.std::pair", align 4
  %30 = alloca %"struct.std::pair.5", align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca { i64, i32 }, align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %35 = alloca i32, align 4
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %39 = alloca %"struct.std::pair", align 4
  %40 = alloca %"struct.std::pair.5", align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca { i64, i32 }, align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  store i32 0, ptr %1, align 4
  %45 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %59, %0
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = load i32, ptr @n, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %62

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %52 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %3, ptr noundef %4)
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [131072 x %"class.std::vector"], ptr @g, i64 0, i64 %54
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [131072 x %"class.std::vector"], ptr @g, i64 0, i64 %57
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %59

59:                                               ; preds = %51
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %2, align 4, !tbaa !5
  br label %46, !llvm.loop !9

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

63:                                               ; preds = %99, %62
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = icmp slt i32 %64, 17
  br i1 %65, label %67, label %66

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

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %95, %67
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = load i32, ptr @n, align 4, !tbaa !5
  %71 = icmp sle i32 %69, %70
  br i1 %71, label %73, label %72

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

73:                                               ; preds = %68
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = sub nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 %76
  %78 = load i32, ptr %5, align 4, !tbaa !5
  %79 = sub nsw i32 %78, 1
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 %80
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [131072 x i32], ptr %81, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [131072 x i32], ptr %77, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 %90
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [131072 x i32], ptr %91, i64 0, i64 %93
  store i32 %88, ptr %94, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %73
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %7, align 4, !tbaa !5
  br label %68, !llvm.loop !11

98:                                               ; preds = %72
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %5, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %5, align 4, !tbaa !5
  br label %63, !llvm.loop !12

102:                                              ; preds = %66
  %103 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @m)
  br label %104

104:                                              ; preds = %362, %360, %102
  %105 = load i32, ptr @m, align 4, !tbaa !5
  %106 = add nsw i32 %105, -1
  store i32 %106, ptr @m, align 4, !tbaa !5
  %107 = icmp ne i32 %105, 0
  br i1 %107, label %108, label %363

108:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %109 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %8, ptr noundef %9)
  %110 = load i32, ptr %8, align 4, !tbaa !5
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = icmp eq i32 %110, %111
  br i1 %112, label %113, label %116

113:                                              ; preds = %108
  %114 = load i32, ptr @n, align 4, !tbaa !5
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %114)
  store i32 11, ptr %6, align 4
  br label %360, !llvm.loop !13

116:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = load i32, ptr %9, align 4, !tbaa !5
  %119 = call noundef i32 @_Z3LCAii(i32 noundef %117, i32 noundef %118)
  store i32 %119, ptr %10, align 4, !tbaa !5
  %120 = load i32, ptr %10, align 4, !tbaa !5
  %121 = load i32, ptr %8, align 4, !tbaa !5
  %122 = icmp eq i32 %120, %121
  br i1 %122, label %127, label %123

123:                                              ; preds = %116
  %124 = load i32, ptr %10, align 4, !tbaa !5
  %125 = load i32, ptr %9, align 4, !tbaa !5
  %126 = icmp eq i32 %124, %125
  br i1 %126, label %127, label %206

127:                                              ; preds = %123, %116
  %128 = load i32, ptr %10, align 4, !tbaa !5
  %129 = load i32, ptr %9, align 4, !tbaa !5
  %130 = icmp eq i32 %128, %129
  br i1 %130, label %131, label %132

131:                                              ; preds = %127
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9) #8
  br label %132

132:                                              ; preds = %131, %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %133 = load i32, ptr %9, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = load i32, ptr %8, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = sub nsw i32 %136, %140
  store i32 %141, ptr %11, align 4, !tbaa !5
  %142 = load i32, ptr %11, align 4, !tbaa !5
  %143 = srem i32 %142, 2
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %147

145:                                              ; preds = %132
  %146 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 11, ptr %6, align 4
  br label %205, !llvm.loop !13

147:                                              ; preds = %132
  %148 = load i32, ptr %11, align 4, !tbaa !5
  %149 = sdiv i32 %148, 2
  store i32 %149, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %150 = load i32, ptr %9, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = load i32, ptr %11, align 4, !tbaa !5
  %155 = sub nsw i32 %153, %154
  store i32 %155, ptr %12, align 4, !tbaa !5
  %156 = load i32, ptr %9, align 4, !tbaa !5
  %157 = load i32, ptr %12, align 4, !tbaa !5
  %158 = call noundef i32 @_Z14getAncestorAtHii(i32 noundef %156, i32 noundef %157)
  store i32 %158, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %159 = load i32, ptr %10, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %160
  %162 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %161) #8
  %163 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %15, i32 0, i32 0
  store ptr %162, ptr %163, align 8
  %164 = load i32, ptr %10, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %165
  %167 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #8
  %168 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %16, i32 0, i32 0
  store ptr %167, ptr %168, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %169 = load i32, ptr %9, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [131072 x i32], ptr @beg, i64 0, i64 %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 1000000000, ptr %19, align 4, !tbaa !5
  %172 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %171, ptr noundef nonnull align 4 dereferenceable(4) %19)
  store i64 %172, ptr %18, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 1000000000, ptr %20, align 4, !tbaa !5
  %173 = call { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(4) %20)
  store { i64, i32 } %173, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 8 %21, i64 12, i1 false)
  %174 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %15, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8
  %176 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %16, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8
  %178 = call ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IiiEiESt6vectorIS4_SaIS4_EEEES4_ET_SA_SA_RKT0_(ptr %175, ptr %177, ptr noundef nonnull align 4 dereferenceable(12) %17)
  %179 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %14, i32 0, i32 0
  store ptr %178, ptr %179, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %180 = load i32, ptr %10, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %181
  %183 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %182) #8
  %184 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %22, i32 0, i32 0
  store ptr %183, ptr %184, align 8
  %185 = call noundef i64 @_ZN9__gnu_cxxmiIPSt4pairIS1_IiiEiESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  %186 = sub nsw i64 %185, 1
  %187 = trunc i64 %186 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  store i32 %187, ptr %13, align 4, !tbaa !5
  %188 = load i32, ptr %10, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [131072 x i32], ptr @sz, i64 0, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = load i32, ptr %10, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %193
  %195 = load i32, ptr %13, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %194, i64 noundef %196) #8
  %198 = getelementptr inbounds %"struct.std::pair", ptr %197, i32 0, i32 1
  %199 = load i32, ptr %198, align 4, !tbaa !14
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [131072 x i32], ptr @sz, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = sub nsw i32 %191, %202
  %204 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %203)
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %205

205:                                              ; preds = %147, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %359

206:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %207 = load i32, ptr %8, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %208
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = load i32, ptr %10, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %212
  %214 = load i32, ptr %213, align 4, !tbaa !5
  %215 = sub nsw i32 %210, %214
  %216 = load i32, ptr %9, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = add nsw i32 %215, %219
  %221 = load i32, ptr %10, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %222
  %224 = load i32, ptr %223, align 4, !tbaa !5
  %225 = sub nsw i32 %220, %224
  store i32 %225, ptr %23, align 4, !tbaa !5
  %226 = load i32, ptr %23, align 4, !tbaa !5
  %227 = srem i32 %226, 2
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %231

229:                                              ; preds = %206
  %230 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 11, ptr %6, align 4
  br label %358, !llvm.loop !13

231:                                              ; preds = %206
  %232 = load i32, ptr %23, align 4, !tbaa !5
  %233 = sdiv i32 %232, 2
  store i32 %233, ptr %23, align 4, !tbaa !5
  %234 = load i32, ptr %8, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %235
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %238 = load i32, ptr %23, align 4, !tbaa !5
  %239 = sub nsw i32 %237, %238
  %240 = load i32, ptr %10, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %241
  %243 = load i32, ptr %242, align 4, !tbaa !5
  %244 = icmp slt i32 %239, %243
  br i1 %244, label %245, label %246

245:                                              ; preds = %231
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9) #8
  br label %246

246:                                              ; preds = %245, %231
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %247 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %247, ptr %24, align 4, !tbaa !5
  %248 = load i32, ptr %8, align 4, !tbaa !5
  %249 = load i32, ptr %8, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = load i32, ptr %23, align 4, !tbaa !5
  %254 = sub nsw i32 %252, %253
  %255 = call noundef i32 @_Z14getAncestorAtHii(i32 noundef %248, i32 noundef %254)
  store i32 %255, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %256 = load i32, ptr %10, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %257
  %259 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %258) #8
  %260 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %27, i32 0, i32 0
  store ptr %259, ptr %260, align 8
  %261 = load i32, ptr %10, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %262
  %264 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %263) #8
  %265 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %28, i32 0, i32 0
  store ptr %264, ptr %265, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %266 = load i32, ptr %8, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [131072 x i32], ptr @beg, i64 0, i64 %267
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 1000000000, ptr %31, align 4, !tbaa !5
  %269 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %268, ptr noundef nonnull align 4 dereferenceable(4) %31)
  store i64 %269, ptr %30, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  store i32 1000000000, ptr %32, align 4, !tbaa !5
  %270 = call { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(4) %32)
  store { i64, i32 } %270, ptr %33, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %33, i64 12, i1 false)
  %271 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %27, i32 0, i32 0
  %272 = load ptr, ptr %271, align 8
  %273 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %28, i32 0, i32 0
  %274 = load ptr, ptr %273, align 8
  %275 = call ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IiiEiESt6vectorIS4_SaIS4_EEEES4_ET_SA_SA_RKT0_(ptr %272, ptr %274, ptr noundef nonnull align 4 dereferenceable(12) %29)
  %276 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %26, i32 0, i32 0
  store ptr %275, ptr %276, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %277 = load i32, ptr %10, align 4, !tbaa !5
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %278
  %280 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %279) #8
  %281 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %34, i32 0, i32 0
  store ptr %280, ptr %281, align 8
  %282 = call noundef i64 @_ZN9__gnu_cxxmiIPSt4pairIS1_IiiEiESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  %283 = sub nsw i64 %282, 1
  %284 = trunc i64 %283 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  store i32 %284, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %285 = load i32, ptr %10, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [131072 x i32], ptr @sz, i64 0, i64 %286
  %288 = load i32, ptr %287, align 4, !tbaa !5
  %289 = load i32, ptr %10, align 4, !tbaa !5
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %290
  %292 = load i32, ptr %25, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %291, i64 noundef %293) #8
  %295 = getelementptr inbounds %"struct.std::pair", ptr %294, i32 0, i32 1
  %296 = load i32, ptr %295, align 4, !tbaa !14
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [131072 x i32], ptr @sz, i64 0, i64 %297
  %299 = load i32, ptr %298, align 4, !tbaa !5
  %300 = sub nsw i32 %288, %299
  store i32 %300, ptr %35, align 4, !tbaa !5
  %301 = load i32, ptr %10, align 4, !tbaa !5
  %302 = load i32, ptr %24, align 4, !tbaa !5
  %303 = icmp eq i32 %301, %302
  br i1 %303, label %304, label %355

304:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %305 = load i32, ptr %10, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %306
  %308 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %307) #8
  %309 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %37, i32 0, i32 0
  store ptr %308, ptr %309, align 8
  %310 = load i32, ptr %10, align 4, !tbaa !5
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %311
  %313 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %312) #8
  %314 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %38, i32 0, i32 0
  store ptr %313, ptr %314, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %315 = load i32, ptr %9, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [131072 x i32], ptr @beg, i64 0, i64 %316
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  store i32 1000000000, ptr %41, align 4, !tbaa !5
  %318 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %317, ptr noundef nonnull align 4 dereferenceable(4) %41)
  store i64 %318, ptr %40, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  store i32 1000000000, ptr %42, align 4, !tbaa !5
  %319 = call { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %40, ptr noundef nonnull align 4 dereferenceable(4) %42)
  store { i64, i32 } %319, ptr %43, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 8 %43, i64 12, i1 false)
  %320 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %37, i32 0, i32 0
  %321 = load ptr, ptr %320, align 8
  %322 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %38, i32 0, i32 0
  %323 = load ptr, ptr %322, align 8
  %324 = call ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IiiEiESt6vectorIS4_SaIS4_EEEES4_ET_SA_SA_RKT0_(ptr %321, ptr %323, ptr noundef nonnull align 4 dereferenceable(12) %39)
  %325 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %36, i32 0, i32 0
  store ptr %324, ptr %325, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %326 = load i32, ptr %10, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %327
  %329 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %328) #8
  %330 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %44, i32 0, i32 0
  store ptr %329, ptr %330, align 8
  %331 = call noundef i64 @_ZN9__gnu_cxxmiIPSt4pairIS1_IiiEiESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  %332 = sub nsw i64 %331, 1
  %333 = trunc i64 %332 to i32
  store i32 %333, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  %334 = load i32, ptr %10, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %335
  %337 = load i32, ptr %25, align 4, !tbaa !5
  %338 = sext i32 %337 to i64
  %339 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %336, i64 noundef %338) #8
  %340 = getelementptr inbounds %"struct.std::pair", ptr %339, i32 0, i32 1
  %341 = load i32, ptr %340, align 4, !tbaa !14
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [131072 x i32], ptr @sz, i64 0, i64 %342
  %344 = load i32, ptr %343, align 4, !tbaa !5
  %345 = load i32, ptr %35, align 4, !tbaa !5
  %346 = sub nsw i32 %345, %344
  store i32 %346, ptr %35, align 4, !tbaa !5
  %347 = load i32, ptr @n, align 4, !tbaa !5
  %348 = load i32, ptr %10, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [131072 x i32], ptr @sz, i64 0, i64 %349
  %351 = load i32, ptr %350, align 4, !tbaa !5
  %352 = sub nsw i32 %347, %351
  %353 = load i32, ptr %35, align 4, !tbaa !5
  %354 = add nsw i32 %353, %352
  store i32 %354, ptr %35, align 4, !tbaa !5
  br label %355

355:                                              ; preds = %304, %246
  %356 = load i32, ptr %35, align 4, !tbaa !5
  %357 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %356)
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  store i32 0, ptr %6, align 4
  br label %358

358:                                              ; preds = %355, %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %359

359:                                              ; preds = %358, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %360

360:                                              ; preds = %359, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  %361 = load i32, ptr %6, align 4
  switch i32 %361, label %364 [
    i32 0, label %362
    i32 11, label %104
  ]

362:                                              ; preds = %360
  br label %104, !llvm.loop !13

363:                                              ; preds = %104
  ret i32 0

364:                                              ; preds = %360
  unreachable
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

declare i32 @printf(ptr noundef, ...) #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IiiEiESt6vectorIS4_SaIS4_EEEES4_ET_SA_SA_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(12)) #7

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!15, !6, i64 8}
!15 = !{!"_ZTSSt4pairIS_IiiEiE", !16, i64 0, !6, i64 8}
!16 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.7" = type { ptr }
%"struct.std::pair" = type { %"struct.std::pair.5", i32 }
%"struct.std::pair.5" = type { i32, i32 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@g = external dso_local global [131072 x %"class.std::vector"], align 16
@p = external dso_local local_unnamed_addr global [17 x [131072 x i32]], align 16
@l = external dso_local local_unnamed_addr global [131072 x i32], align 16
@sz = external dso_local local_unnamed_addr global [131072 x i32], align 16
@beg = external dso_local global [131072 x i32], align 16
@seg = external dso_local global [131072 x %"class.std::vector.0"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3LCAii(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z14getAncestorAtHii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsii(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca %"struct.std::pair.5", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca %"struct.std::pair.5", align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca %"struct.std::pair.5", align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %23 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %24 = load i32, ptr @n, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, 1
  br i1 %25, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @_Z3dfsii(i32 noundef 1, i32 noundef 1)
  %26 = load i32, ptr @n, align 4, !tbaa !5
  %.not7578 = icmp slt i32 %26, 1
  br i1 %.not7578, label %.split84.us, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge
  %27 = zext nneg i32 %26 to i64
  %xtraiter = and i64 %27, 3
  %28 = icmp ult i32 %26, 4
  br i1 %28, label %._crit_edge81.preheader.unr-lcssa, label %.preheader.preheader.new

.preheader.preheader.new:                         ; preds = %.preheader.preheader
  %unroll_iter = and i64 %27, 2147483644
  br label %506

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.077 = phi i32 [ %36, %.lr.ph ], [ 1, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %30 = load i32, ptr %1, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [131072 x %"class.std::vector"], ptr @g, i64 0, i64 %31
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [131072 x %"class.std::vector"], ptr @g, i64 0, i64 %34
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %36 = add nuw nsw i32 %.077, 1
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.split84.us.loopexit.unr-lcssa:                   ; preds = %._crit_edge81.14, %._crit_edge81.14.preheader
  %indvars.iv.15.unr = phi i64 [ 1, %._crit_edge81.14.preheader ], [ %indvars.iv.next.15.3, %._crit_edge81.14 ]
  %lcmp.mod183.not = icmp eq i64 %xtraiter181, 0
  br i1 %lcmp.mod183.not, label %.split84.us, label %._crit_edge81.14.epil

._crit_edge81.14.epil:                            ; preds = %.split84.us.loopexit.unr-lcssa, %._crit_edge81.14.epil
  %indvars.iv.15.epil = phi i64 [ %indvars.iv.next.15.epil, %._crit_edge81.14.epil ], [ %indvars.iv.15.unr, %.split84.us.loopexit.unr-lcssa ]
  %epil.iter182 = phi i64 [ %epil.iter182.next, %._crit_edge81.14.epil ], [ 0, %.split84.us.loopexit.unr-lcssa ]
  %39 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %indvars.iv.15.epil
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 16, i64 %indvars.iv.15.epil
  store i32 %43, ptr %44, align 4, !tbaa !5
  %indvars.iv.next.15.epil = add nuw nsw i64 %indvars.iv.15.epil, 1
  %epil.iter182.next = add i64 %epil.iter182, 1
  %epil.iter182.cmp.not = icmp eq i64 %epil.iter182.next, %xtraiter181
  br i1 %epil.iter182.cmp.not, label %.split84.us, label %._crit_edge81.14.epil, !llvm.loop !11

.split84.us:                                      ; preds = %.split84.us.loopexit.unr-lcssa, %._crit_edge81.14.epil, %._crit_edge
  %45 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @m)
  %46 = load i32, ptr @m, align 4, !tbaa !5
  %47 = add nsw i32 %46, -1
  store i32 %47, ptr @m, align 4, !tbaa !5
  %.not85 = icmp eq i32 %46, 0
  br i1 %.not85, label %._crit_edge88, label %.lr.ph87

.lr.ph87:                                         ; preds = %.split84.us
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  %.sroa.221.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  br label %538

._crit_edge81:                                    ; preds = %._crit_edge81, %._crit_edge81.preheader.new
  %indvars.iv.1 = phi i64 [ 1, %._crit_edge81.preheader.new ], [ %indvars.iv.next.1.3, %._crit_edge81 ]
  %niter112 = phi i64 [ 0, %._crit_edge81.preheader.new ], [ %niter112.next.3, %._crit_edge81 ]
  %48 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv.1
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %indvars.iv.1
  store i32 %52, ptr %53, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %54 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv.next.1
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %indvars.iv.next.1
  store i32 %58, ptr %59, align 4, !tbaa !5
  %indvars.iv.next.1.1 = add nuw nsw i64 %indvars.iv.1, 2
  %60 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv.next.1.1
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %indvars.iv.next.1.1
  store i32 %64, ptr %65, align 4, !tbaa !5
  %indvars.iv.next.1.2 = add nuw nsw i64 %indvars.iv.1, 3
  %66 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv.next.1.2
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %indvars.iv.next.1.2
  store i32 %70, ptr %71, align 4, !tbaa !5
  %indvars.iv.next.1.3 = add nuw nsw i64 %indvars.iv.1, 4
  %niter112.next.3 = add i64 %niter112, 4
  %niter112.ncmp.3 = icmp eq i64 %niter112.next.3, %unroll_iter111
  br i1 %niter112.ncmp.3, label %._crit_edge81.1.preheader.unr-lcssa, label %._crit_edge81, !llvm.loop !13

._crit_edge81.1.preheader.unr-lcssa:              ; preds = %._crit_edge81, %._crit_edge81.preheader
  %indvars.iv.1.unr = phi i64 [ 1, %._crit_edge81.preheader ], [ %indvars.iv.next.1.3, %._crit_edge81 ]
  %lcmp.mod110.not = icmp eq i64 %xtraiter108, 0
  br i1 %lcmp.mod110.not, label %._crit_edge81.1.preheader, label %._crit_edge81.epil

._crit_edge81.epil:                               ; preds = %._crit_edge81.1.preheader.unr-lcssa, %._crit_edge81.epil
  %indvars.iv.1.epil = phi i64 [ %indvars.iv.next.1.epil, %._crit_edge81.epil ], [ %indvars.iv.1.unr, %._crit_edge81.1.preheader.unr-lcssa ]
  %epil.iter109 = phi i64 [ %epil.iter109.next, %._crit_edge81.epil ], [ 0, %._crit_edge81.1.preheader.unr-lcssa ]
  %72 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv.1.epil
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %indvars.iv.1.epil
  store i32 %76, ptr %77, align 4, !tbaa !5
  %indvars.iv.next.1.epil = add nuw nsw i64 %indvars.iv.1.epil, 1
  %epil.iter109.next = add i64 %epil.iter109, 1
  %epil.iter109.cmp.not = icmp eq i64 %epil.iter109.next, %xtraiter108
  br i1 %epil.iter109.cmp.not, label %._crit_edge81.1.preheader, label %._crit_edge81.epil, !llvm.loop !14

._crit_edge81.1.preheader:                        ; preds = %._crit_edge81.epil, %._crit_edge81.1.preheader.unr-lcssa
  %xtraiter116 = and i64 %27, 3
  %78 = icmp ult i32 %26, 4
  br i1 %78, label %._crit_edge81.2.preheader.unr-lcssa, label %._crit_edge81.1.preheader.new

._crit_edge81.1.preheader.new:                    ; preds = %._crit_edge81.1.preheader
  %unroll_iter119 = and i64 %27, 2147483644
  br label %._crit_edge81.1

._crit_edge81.1:                                  ; preds = %._crit_edge81.1, %._crit_edge81.1.preheader.new
  %indvars.iv.2 = phi i64 [ 1, %._crit_edge81.1.preheader.new ], [ %indvars.iv.next.2.3, %._crit_edge81.1 ]
  %niter120 = phi i64 [ 0, %._crit_edge81.1.preheader.new ], [ %niter120.next.3, %._crit_edge81.1 ]
  %79 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %indvars.iv.2
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %indvars.iv.2
  store i32 %83, ptr %84, align 4, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %85 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %indvars.iv.next.2
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %indvars.iv.next.2
  store i32 %89, ptr %90, align 4, !tbaa !5
  %indvars.iv.next.2.1 = add nuw nsw i64 %indvars.iv.2, 2
  %91 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %indvars.iv.next.2.1
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %indvars.iv.next.2.1
  store i32 %95, ptr %96, align 4, !tbaa !5
  %indvars.iv.next.2.2 = add nuw nsw i64 %indvars.iv.2, 3
  %97 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %indvars.iv.next.2.2
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %indvars.iv.next.2.2
  store i32 %101, ptr %102, align 4, !tbaa !5
  %indvars.iv.next.2.3 = add nuw nsw i64 %indvars.iv.2, 4
  %niter120.next.3 = add i64 %niter120, 4
  %niter120.ncmp.3 = icmp eq i64 %niter120.next.3, %unroll_iter119
  br i1 %niter120.ncmp.3, label %._crit_edge81.2.preheader.unr-lcssa, label %._crit_edge81.1, !llvm.loop !13

._crit_edge81.2.preheader.unr-lcssa:              ; preds = %._crit_edge81.1, %._crit_edge81.1.preheader
  %indvars.iv.2.unr = phi i64 [ 1, %._crit_edge81.1.preheader ], [ %indvars.iv.next.2.3, %._crit_edge81.1 ]
  %lcmp.mod118.not = icmp eq i64 %xtraiter116, 0
  br i1 %lcmp.mod118.not, label %._crit_edge81.2.preheader, label %._crit_edge81.1.epil

._crit_edge81.1.epil:                             ; preds = %._crit_edge81.2.preheader.unr-lcssa, %._crit_edge81.1.epil
  %indvars.iv.2.epil = phi i64 [ %indvars.iv.next.2.epil, %._crit_edge81.1.epil ], [ %indvars.iv.2.unr, %._crit_edge81.2.preheader.unr-lcssa ]
  %epil.iter117 = phi i64 [ %epil.iter117.next, %._crit_edge81.1.epil ], [ 0, %._crit_edge81.2.preheader.unr-lcssa ]
  %103 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %indvars.iv.2.epil
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 2, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %indvars.iv.2.epil
  store i32 %107, ptr %108, align 4, !tbaa !5
  %indvars.iv.next.2.epil = add nuw nsw i64 %indvars.iv.2.epil, 1
  %epil.iter117.next = add i64 %epil.iter117, 1
  %epil.iter117.cmp.not = icmp eq i64 %epil.iter117.next, %xtraiter116
  br i1 %epil.iter117.cmp.not, label %._crit_edge81.2.preheader, label %._crit_edge81.1.epil, !llvm.loop !15

._crit_edge81.2.preheader:                        ; preds = %._crit_edge81.1.epil, %._crit_edge81.2.preheader.unr-lcssa
  %xtraiter121 = and i64 %27, 3
  %109 = icmp ult i32 %26, 4
  br i1 %109, label %._crit_edge81.3.preheader.unr-lcssa, label %._crit_edge81.2.preheader.new

._crit_edge81.2.preheader.new:                    ; preds = %._crit_edge81.2.preheader
  %unroll_iter124 = and i64 %27, 2147483644
  br label %._crit_edge81.2

._crit_edge81.2:                                  ; preds = %._crit_edge81.2, %._crit_edge81.2.preheader.new
  %indvars.iv.3 = phi i64 [ 1, %._crit_edge81.2.preheader.new ], [ %indvars.iv.next.3.3, %._crit_edge81.2 ]
  %niter125 = phi i64 [ 0, %._crit_edge81.2.preheader.new ], [ %niter125.next.3, %._crit_edge81.2 ]
  %110 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %indvars.iv.3
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %indvars.iv.3
  store i32 %114, ptr %115, align 4, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv.3, 1
  %116 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %indvars.iv.next.3
  %117 = load i32, ptr %116, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %indvars.iv.next.3
  store i32 %120, ptr %121, align 4, !tbaa !5
  %indvars.iv.next.3.1 = add nuw nsw i64 %indvars.iv.3, 2
  %122 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %indvars.iv.next.3.1
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %indvars.iv.next.3.1
  store i32 %126, ptr %127, align 4, !tbaa !5
  %indvars.iv.next.3.2 = add nuw nsw i64 %indvars.iv.3, 3
  %128 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %indvars.iv.next.3.2
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %indvars.iv.next.3.2
  store i32 %132, ptr %133, align 4, !tbaa !5
  %indvars.iv.next.3.3 = add nuw nsw i64 %indvars.iv.3, 4
  %niter125.next.3 = add i64 %niter125, 4
  %niter125.ncmp.3 = icmp eq i64 %niter125.next.3, %unroll_iter124
  br i1 %niter125.ncmp.3, label %._crit_edge81.3.preheader.unr-lcssa, label %._crit_edge81.2, !llvm.loop !13

._crit_edge81.3.preheader.unr-lcssa:              ; preds = %._crit_edge81.2, %._crit_edge81.2.preheader
  %indvars.iv.3.unr = phi i64 [ 1, %._crit_edge81.2.preheader ], [ %indvars.iv.next.3.3, %._crit_edge81.2 ]
  %lcmp.mod123.not = icmp eq i64 %xtraiter121, 0
  br i1 %lcmp.mod123.not, label %._crit_edge81.3.preheader, label %._crit_edge81.2.epil

._crit_edge81.2.epil:                             ; preds = %._crit_edge81.3.preheader.unr-lcssa, %._crit_edge81.2.epil
  %indvars.iv.3.epil = phi i64 [ %indvars.iv.next.3.epil, %._crit_edge81.2.epil ], [ %indvars.iv.3.unr, %._crit_edge81.3.preheader.unr-lcssa ]
  %epil.iter122 = phi i64 [ %epil.iter122.next, %._crit_edge81.2.epil ], [ 0, %._crit_edge81.3.preheader.unr-lcssa ]
  %134 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %indvars.iv.3.epil
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 3, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %indvars.iv.3.epil
  store i32 %138, ptr %139, align 4, !tbaa !5
  %indvars.iv.next.3.epil = add nuw nsw i64 %indvars.iv.3.epil, 1
  %epil.iter122.next = add i64 %epil.iter122, 1
  %epil.iter122.cmp.not = icmp eq i64 %epil.iter122.next, %xtraiter121
  br i1 %epil.iter122.cmp.not, label %._crit_edge81.3.preheader, label %._crit_edge81.2.epil, !llvm.loop !16

._crit_edge81.3.preheader:                        ; preds = %._crit_edge81.2.epil, %._crit_edge81.3.preheader.unr-lcssa
  %xtraiter126 = and i64 %27, 3
  %140 = icmp ult i32 %26, 4
  br i1 %140, label %._crit_edge81.4.preheader.unr-lcssa, label %._crit_edge81.3.preheader.new

._crit_edge81.3.preheader.new:                    ; preds = %._crit_edge81.3.preheader
  %unroll_iter129 = and i64 %27, 2147483644
  br label %._crit_edge81.3

._crit_edge81.3:                                  ; preds = %._crit_edge81.3, %._crit_edge81.3.preheader.new
  %indvars.iv.4 = phi i64 [ 1, %._crit_edge81.3.preheader.new ], [ %indvars.iv.next.4.3, %._crit_edge81.3 ]
  %niter130 = phi i64 [ 0, %._crit_edge81.3.preheader.new ], [ %niter130.next.3, %._crit_edge81.3 ]
  %141 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %indvars.iv.4
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %indvars.iv.4
  store i32 %145, ptr %146, align 4, !tbaa !5
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv.4, 1
  %147 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %indvars.iv.next.4
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %indvars.iv.next.4
  store i32 %151, ptr %152, align 4, !tbaa !5
  %indvars.iv.next.4.1 = add nuw nsw i64 %indvars.iv.4, 2
  %153 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %indvars.iv.next.4.1
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %indvars.iv.next.4.1
  store i32 %157, ptr %158, align 4, !tbaa !5
  %indvars.iv.next.4.2 = add nuw nsw i64 %indvars.iv.4, 3
  %159 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %indvars.iv.next.4.2
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %indvars.iv.next.4.2
  store i32 %163, ptr %164, align 4, !tbaa !5
  %indvars.iv.next.4.3 = add nuw nsw i64 %indvars.iv.4, 4
  %niter130.next.3 = add i64 %niter130, 4
  %niter130.ncmp.3 = icmp eq i64 %niter130.next.3, %unroll_iter129
  br i1 %niter130.ncmp.3, label %._crit_edge81.4.preheader.unr-lcssa, label %._crit_edge81.3, !llvm.loop !13

._crit_edge81.4.preheader.unr-lcssa:              ; preds = %._crit_edge81.3, %._crit_edge81.3.preheader
  %indvars.iv.4.unr = phi i64 [ 1, %._crit_edge81.3.preheader ], [ %indvars.iv.next.4.3, %._crit_edge81.3 ]
  %lcmp.mod128.not = icmp eq i64 %xtraiter126, 0
  br i1 %lcmp.mod128.not, label %._crit_edge81.4.preheader, label %._crit_edge81.3.epil

._crit_edge81.3.epil:                             ; preds = %._crit_edge81.4.preheader.unr-lcssa, %._crit_edge81.3.epil
  %indvars.iv.4.epil = phi i64 [ %indvars.iv.next.4.epil, %._crit_edge81.3.epil ], [ %indvars.iv.4.unr, %._crit_edge81.4.preheader.unr-lcssa ]
  %epil.iter127 = phi i64 [ %epil.iter127.next, %._crit_edge81.3.epil ], [ 0, %._crit_edge81.4.preheader.unr-lcssa ]
  %165 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %indvars.iv.4.epil
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 4, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %indvars.iv.4.epil
  store i32 %169, ptr %170, align 4, !tbaa !5
  %indvars.iv.next.4.epil = add nuw nsw i64 %indvars.iv.4.epil, 1
  %epil.iter127.next = add i64 %epil.iter127, 1
  %epil.iter127.cmp.not = icmp eq i64 %epil.iter127.next, %xtraiter126
  br i1 %epil.iter127.cmp.not, label %._crit_edge81.4.preheader, label %._crit_edge81.3.epil, !llvm.loop !17

._crit_edge81.4.preheader:                        ; preds = %._crit_edge81.3.epil, %._crit_edge81.4.preheader.unr-lcssa
  %xtraiter131 = and i64 %27, 3
  %171 = icmp ult i32 %26, 4
  br i1 %171, label %._crit_edge81.5.preheader.unr-lcssa, label %._crit_edge81.4.preheader.new

._crit_edge81.4.preheader.new:                    ; preds = %._crit_edge81.4.preheader
  %unroll_iter134 = and i64 %27, 2147483644
  br label %._crit_edge81.4

._crit_edge81.4:                                  ; preds = %._crit_edge81.4, %._crit_edge81.4.preheader.new
  %indvars.iv.5 = phi i64 [ 1, %._crit_edge81.4.preheader.new ], [ %indvars.iv.next.5.3, %._crit_edge81.4 ]
  %niter135 = phi i64 [ 0, %._crit_edge81.4.preheader.new ], [ %niter135.next.3, %._crit_edge81.4 ]
  %172 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %indvars.iv.5
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %indvars.iv.5
  store i32 %176, ptr %177, align 4, !tbaa !5
  %indvars.iv.next.5 = add nuw nsw i64 %indvars.iv.5, 1
  %178 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %indvars.iv.next.5
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %indvars.iv.next.5
  store i32 %182, ptr %183, align 4, !tbaa !5
  %indvars.iv.next.5.1 = add nuw nsw i64 %indvars.iv.5, 2
  %184 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %indvars.iv.next.5.1
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %indvars.iv.next.5.1
  store i32 %188, ptr %189, align 4, !tbaa !5
  %indvars.iv.next.5.2 = add nuw nsw i64 %indvars.iv.5, 3
  %190 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %indvars.iv.next.5.2
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %indvars.iv.next.5.2
  store i32 %194, ptr %195, align 4, !tbaa !5
  %indvars.iv.next.5.3 = add nuw nsw i64 %indvars.iv.5, 4
  %niter135.next.3 = add i64 %niter135, 4
  %niter135.ncmp.3 = icmp eq i64 %niter135.next.3, %unroll_iter134
  br i1 %niter135.ncmp.3, label %._crit_edge81.5.preheader.unr-lcssa, label %._crit_edge81.4, !llvm.loop !13

._crit_edge81.5.preheader.unr-lcssa:              ; preds = %._crit_edge81.4, %._crit_edge81.4.preheader
  %indvars.iv.5.unr = phi i64 [ 1, %._crit_edge81.4.preheader ], [ %indvars.iv.next.5.3, %._crit_edge81.4 ]
  %lcmp.mod133.not = icmp eq i64 %xtraiter131, 0
  br i1 %lcmp.mod133.not, label %._crit_edge81.5.preheader, label %._crit_edge81.4.epil

._crit_edge81.4.epil:                             ; preds = %._crit_edge81.5.preheader.unr-lcssa, %._crit_edge81.4.epil
  %indvars.iv.5.epil = phi i64 [ %indvars.iv.next.5.epil, %._crit_edge81.4.epil ], [ %indvars.iv.5.unr, %._crit_edge81.5.preheader.unr-lcssa ]
  %epil.iter132 = phi i64 [ %epil.iter132.next, %._crit_edge81.4.epil ], [ 0, %._crit_edge81.5.preheader.unr-lcssa ]
  %196 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %indvars.iv.5.epil
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 5, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %indvars.iv.5.epil
  store i32 %200, ptr %201, align 4, !tbaa !5
  %indvars.iv.next.5.epil = add nuw nsw i64 %indvars.iv.5.epil, 1
  %epil.iter132.next = add i64 %epil.iter132, 1
  %epil.iter132.cmp.not = icmp eq i64 %epil.iter132.next, %xtraiter131
  br i1 %epil.iter132.cmp.not, label %._crit_edge81.5.preheader, label %._crit_edge81.4.epil, !llvm.loop !18

._crit_edge81.5.preheader:                        ; preds = %._crit_edge81.4.epil, %._crit_edge81.5.preheader.unr-lcssa
  %xtraiter136 = and i64 %27, 3
  %202 = icmp ult i32 %26, 4
  br i1 %202, label %._crit_edge81.6.preheader.unr-lcssa, label %._crit_edge81.5.preheader.new

._crit_edge81.5.preheader.new:                    ; preds = %._crit_edge81.5.preheader
  %unroll_iter139 = and i64 %27, 2147483644
  br label %._crit_edge81.5

._crit_edge81.5:                                  ; preds = %._crit_edge81.5, %._crit_edge81.5.preheader.new
  %indvars.iv.6 = phi i64 [ 1, %._crit_edge81.5.preheader.new ], [ %indvars.iv.next.6.3, %._crit_edge81.5 ]
  %niter140 = phi i64 [ 0, %._crit_edge81.5.preheader.new ], [ %niter140.next.3, %._crit_edge81.5 ]
  %203 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %indvars.iv.6
  %204 = load i32, ptr %203, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %indvars.iv.6
  store i32 %207, ptr %208, align 4, !tbaa !5
  %indvars.iv.next.6 = add nuw nsw i64 %indvars.iv.6, 1
  %209 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %indvars.iv.next.6
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %indvars.iv.next.6
  store i32 %213, ptr %214, align 4, !tbaa !5
  %indvars.iv.next.6.1 = add nuw nsw i64 %indvars.iv.6, 2
  %215 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %indvars.iv.next.6.1
  %216 = load i32, ptr %215, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %indvars.iv.next.6.1
  store i32 %219, ptr %220, align 4, !tbaa !5
  %indvars.iv.next.6.2 = add nuw nsw i64 %indvars.iv.6, 3
  %221 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %indvars.iv.next.6.2
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %indvars.iv.next.6.2
  store i32 %225, ptr %226, align 4, !tbaa !5
  %indvars.iv.next.6.3 = add nuw nsw i64 %indvars.iv.6, 4
  %niter140.next.3 = add i64 %niter140, 4
  %niter140.ncmp.3 = icmp eq i64 %niter140.next.3, %unroll_iter139
  br i1 %niter140.ncmp.3, label %._crit_edge81.6.preheader.unr-lcssa, label %._crit_edge81.5, !llvm.loop !13

._crit_edge81.6.preheader.unr-lcssa:              ; preds = %._crit_edge81.5, %._crit_edge81.5.preheader
  %indvars.iv.6.unr = phi i64 [ 1, %._crit_edge81.5.preheader ], [ %indvars.iv.next.6.3, %._crit_edge81.5 ]
  %lcmp.mod138.not = icmp eq i64 %xtraiter136, 0
  br i1 %lcmp.mod138.not, label %._crit_edge81.6.preheader, label %._crit_edge81.5.epil

._crit_edge81.5.epil:                             ; preds = %._crit_edge81.6.preheader.unr-lcssa, %._crit_edge81.5.epil
  %indvars.iv.6.epil = phi i64 [ %indvars.iv.next.6.epil, %._crit_edge81.5.epil ], [ %indvars.iv.6.unr, %._crit_edge81.6.preheader.unr-lcssa ]
  %epil.iter137 = phi i64 [ %epil.iter137.next, %._crit_edge81.5.epil ], [ 0, %._crit_edge81.6.preheader.unr-lcssa ]
  %227 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %indvars.iv.6.epil
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 6, i64 %229
  %231 = load i32, ptr %230, align 4, !tbaa !5
  %232 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %indvars.iv.6.epil
  store i32 %231, ptr %232, align 4, !tbaa !5
  %indvars.iv.next.6.epil = add nuw nsw i64 %indvars.iv.6.epil, 1
  %epil.iter137.next = add i64 %epil.iter137, 1
  %epil.iter137.cmp.not = icmp eq i64 %epil.iter137.next, %xtraiter136
  br i1 %epil.iter137.cmp.not, label %._crit_edge81.6.preheader, label %._crit_edge81.5.epil, !llvm.loop !19

._crit_edge81.6.preheader:                        ; preds = %._crit_edge81.5.epil, %._crit_edge81.6.preheader.unr-lcssa
  %xtraiter141 = and i64 %27, 3
  %233 = icmp ult i32 %26, 4
  br i1 %233, label %._crit_edge81.7.preheader.unr-lcssa, label %._crit_edge81.6.preheader.new

._crit_edge81.6.preheader.new:                    ; preds = %._crit_edge81.6.preheader
  %unroll_iter144 = and i64 %27, 2147483644
  br label %._crit_edge81.6

._crit_edge81.6:                                  ; preds = %._crit_edge81.6, %._crit_edge81.6.preheader.new
  %indvars.iv.7 = phi i64 [ 1, %._crit_edge81.6.preheader.new ], [ %indvars.iv.next.7.3, %._crit_edge81.6 ]
  %niter145 = phi i64 [ 0, %._crit_edge81.6.preheader.new ], [ %niter145.next.3, %._crit_edge81.6 ]
  %234 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %indvars.iv.7
  %235 = load i32, ptr %234, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %236
  %238 = load i32, ptr %237, align 4, !tbaa !5
  %239 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %indvars.iv.7
  store i32 %238, ptr %239, align 4, !tbaa !5
  %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv.7, 1
  %240 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %indvars.iv.next.7
  %241 = load i32, ptr %240, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %242
  %244 = load i32, ptr %243, align 4, !tbaa !5
  %245 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %indvars.iv.next.7
  store i32 %244, ptr %245, align 4, !tbaa !5
  %indvars.iv.next.7.1 = add nuw nsw i64 %indvars.iv.7, 2
  %246 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %indvars.iv.next.7.1
  %247 = load i32, ptr %246, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %248
  %250 = load i32, ptr %249, align 4, !tbaa !5
  %251 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %indvars.iv.next.7.1
  store i32 %250, ptr %251, align 4, !tbaa !5
  %indvars.iv.next.7.2 = add nuw nsw i64 %indvars.iv.7, 3
  %252 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %indvars.iv.next.7.2
  %253 = load i32, ptr %252, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %254
  %256 = load i32, ptr %255, align 4, !tbaa !5
  %257 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %indvars.iv.next.7.2
  store i32 %256, ptr %257, align 4, !tbaa !5
  %indvars.iv.next.7.3 = add nuw nsw i64 %indvars.iv.7, 4
  %niter145.next.3 = add i64 %niter145, 4
  %niter145.ncmp.3 = icmp eq i64 %niter145.next.3, %unroll_iter144
  br i1 %niter145.ncmp.3, label %._crit_edge81.7.preheader.unr-lcssa, label %._crit_edge81.6, !llvm.loop !13

._crit_edge81.7.preheader.unr-lcssa:              ; preds = %._crit_edge81.6, %._crit_edge81.6.preheader
  %indvars.iv.7.unr = phi i64 [ 1, %._crit_edge81.6.preheader ], [ %indvars.iv.next.7.3, %._crit_edge81.6 ]
  %lcmp.mod143.not = icmp eq i64 %xtraiter141, 0
  br i1 %lcmp.mod143.not, label %._crit_edge81.7.preheader, label %._crit_edge81.6.epil

._crit_edge81.6.epil:                             ; preds = %._crit_edge81.7.preheader.unr-lcssa, %._crit_edge81.6.epil
  %indvars.iv.7.epil = phi i64 [ %indvars.iv.next.7.epil, %._crit_edge81.6.epil ], [ %indvars.iv.7.unr, %._crit_edge81.7.preheader.unr-lcssa ]
  %epil.iter142 = phi i64 [ %epil.iter142.next, %._crit_edge81.6.epil ], [ 0, %._crit_edge81.7.preheader.unr-lcssa ]
  %258 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %indvars.iv.7.epil
  %259 = load i32, ptr %258, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 7, i64 %260
  %262 = load i32, ptr %261, align 4, !tbaa !5
  %263 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %indvars.iv.7.epil
  store i32 %262, ptr %263, align 4, !tbaa !5
  %indvars.iv.next.7.epil = add nuw nsw i64 %indvars.iv.7.epil, 1
  %epil.iter142.next = add i64 %epil.iter142, 1
  %epil.iter142.cmp.not = icmp eq i64 %epil.iter142.next, %xtraiter141
  br i1 %epil.iter142.cmp.not, label %._crit_edge81.7.preheader, label %._crit_edge81.6.epil, !llvm.loop !20

._crit_edge81.7.preheader:                        ; preds = %._crit_edge81.6.epil, %._crit_edge81.7.preheader.unr-lcssa
  %xtraiter146 = and i64 %27, 3
  %264 = icmp ult i32 %26, 4
  br i1 %264, label %._crit_edge81.8.preheader.unr-lcssa, label %._crit_edge81.7.preheader.new

._crit_edge81.7.preheader.new:                    ; preds = %._crit_edge81.7.preheader
  %unroll_iter149 = and i64 %27, 2147483644
  br label %._crit_edge81.7

._crit_edge81.7:                                  ; preds = %._crit_edge81.7, %._crit_edge81.7.preheader.new
  %indvars.iv.8 = phi i64 [ 1, %._crit_edge81.7.preheader.new ], [ %indvars.iv.next.8.3, %._crit_edge81.7 ]
  %niter150 = phi i64 [ 0, %._crit_edge81.7.preheader.new ], [ %niter150.next.3, %._crit_edge81.7 ]
  %265 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %indvars.iv.8
  %266 = load i32, ptr %265, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %267
  %269 = load i32, ptr %268, align 4, !tbaa !5
  %270 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %indvars.iv.8
  store i32 %269, ptr %270, align 4, !tbaa !5
  %indvars.iv.next.8 = add nuw nsw i64 %indvars.iv.8, 1
  %271 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %indvars.iv.next.8
  %272 = load i32, ptr %271, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %273
  %275 = load i32, ptr %274, align 4, !tbaa !5
  %276 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %indvars.iv.next.8
  store i32 %275, ptr %276, align 4, !tbaa !5
  %indvars.iv.next.8.1 = add nuw nsw i64 %indvars.iv.8, 2
  %277 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %indvars.iv.next.8.1
  %278 = load i32, ptr %277, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %279
  %281 = load i32, ptr %280, align 4, !tbaa !5
  %282 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %indvars.iv.next.8.1
  store i32 %281, ptr %282, align 4, !tbaa !5
  %indvars.iv.next.8.2 = add nuw nsw i64 %indvars.iv.8, 3
  %283 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %indvars.iv.next.8.2
  %284 = load i32, ptr %283, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %285
  %287 = load i32, ptr %286, align 4, !tbaa !5
  %288 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %indvars.iv.next.8.2
  store i32 %287, ptr %288, align 4, !tbaa !5
  %indvars.iv.next.8.3 = add nuw nsw i64 %indvars.iv.8, 4
  %niter150.next.3 = add i64 %niter150, 4
  %niter150.ncmp.3 = icmp eq i64 %niter150.next.3, %unroll_iter149
  br i1 %niter150.ncmp.3, label %._crit_edge81.8.preheader.unr-lcssa, label %._crit_edge81.7, !llvm.loop !13

._crit_edge81.8.preheader.unr-lcssa:              ; preds = %._crit_edge81.7, %._crit_edge81.7.preheader
  %indvars.iv.8.unr = phi i64 [ 1, %._crit_edge81.7.preheader ], [ %indvars.iv.next.8.3, %._crit_edge81.7 ]
  %lcmp.mod148.not = icmp eq i64 %xtraiter146, 0
  br i1 %lcmp.mod148.not, label %._crit_edge81.8.preheader, label %._crit_edge81.7.epil

._crit_edge81.7.epil:                             ; preds = %._crit_edge81.8.preheader.unr-lcssa, %._crit_edge81.7.epil
  %indvars.iv.8.epil = phi i64 [ %indvars.iv.next.8.epil, %._crit_edge81.7.epil ], [ %indvars.iv.8.unr, %._crit_edge81.8.preheader.unr-lcssa ]
  %epil.iter147 = phi i64 [ %epil.iter147.next, %._crit_edge81.7.epil ], [ 0, %._crit_edge81.8.preheader.unr-lcssa ]
  %289 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %indvars.iv.8.epil
  %290 = load i32, ptr %289, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 8, i64 %291
  %293 = load i32, ptr %292, align 4, !tbaa !5
  %294 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %indvars.iv.8.epil
  store i32 %293, ptr %294, align 4, !tbaa !5
  %indvars.iv.next.8.epil = add nuw nsw i64 %indvars.iv.8.epil, 1
  %epil.iter147.next = add i64 %epil.iter147, 1
  %epil.iter147.cmp.not = icmp eq i64 %epil.iter147.next, %xtraiter146
  br i1 %epil.iter147.cmp.not, label %._crit_edge81.8.preheader, label %._crit_edge81.7.epil, !llvm.loop !21

._crit_edge81.8.preheader:                        ; preds = %._crit_edge81.7.epil, %._crit_edge81.8.preheader.unr-lcssa
  %xtraiter151 = and i64 %27, 3
  %295 = icmp ult i32 %26, 4
  br i1 %295, label %._crit_edge81.9.preheader.unr-lcssa, label %._crit_edge81.8.preheader.new

._crit_edge81.8.preheader.new:                    ; preds = %._crit_edge81.8.preheader
  %unroll_iter154 = and i64 %27, 2147483644
  br label %._crit_edge81.8

._crit_edge81.8:                                  ; preds = %._crit_edge81.8, %._crit_edge81.8.preheader.new
  %indvars.iv.9 = phi i64 [ 1, %._crit_edge81.8.preheader.new ], [ %indvars.iv.next.9.3, %._crit_edge81.8 ]
  %niter155 = phi i64 [ 0, %._crit_edge81.8.preheader.new ], [ %niter155.next.3, %._crit_edge81.8 ]
  %296 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %indvars.iv.9
  %297 = load i32, ptr %296, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %298
  %300 = load i32, ptr %299, align 4, !tbaa !5
  %301 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %indvars.iv.9
  store i32 %300, ptr %301, align 4, !tbaa !5
  %indvars.iv.next.9 = add nuw nsw i64 %indvars.iv.9, 1
  %302 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %indvars.iv.next.9
  %303 = load i32, ptr %302, align 4, !tbaa !5
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %304
  %306 = load i32, ptr %305, align 4, !tbaa !5
  %307 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %indvars.iv.next.9
  store i32 %306, ptr %307, align 4, !tbaa !5
  %indvars.iv.next.9.1 = add nuw nsw i64 %indvars.iv.9, 2
  %308 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %indvars.iv.next.9.1
  %309 = load i32, ptr %308, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %310
  %312 = load i32, ptr %311, align 4, !tbaa !5
  %313 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %indvars.iv.next.9.1
  store i32 %312, ptr %313, align 4, !tbaa !5
  %indvars.iv.next.9.2 = add nuw nsw i64 %indvars.iv.9, 3
  %314 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %indvars.iv.next.9.2
  %315 = load i32, ptr %314, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %316
  %318 = load i32, ptr %317, align 4, !tbaa !5
  %319 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %indvars.iv.next.9.2
  store i32 %318, ptr %319, align 4, !tbaa !5
  %indvars.iv.next.9.3 = add nuw nsw i64 %indvars.iv.9, 4
  %niter155.next.3 = add i64 %niter155, 4
  %niter155.ncmp.3 = icmp eq i64 %niter155.next.3, %unroll_iter154
  br i1 %niter155.ncmp.3, label %._crit_edge81.9.preheader.unr-lcssa, label %._crit_edge81.8, !llvm.loop !13

._crit_edge81.9.preheader.unr-lcssa:              ; preds = %._crit_edge81.8, %._crit_edge81.8.preheader
  %indvars.iv.9.unr = phi i64 [ 1, %._crit_edge81.8.preheader ], [ %indvars.iv.next.9.3, %._crit_edge81.8 ]
  %lcmp.mod153.not = icmp eq i64 %xtraiter151, 0
  br i1 %lcmp.mod153.not, label %._crit_edge81.9.preheader, label %._crit_edge81.8.epil

._crit_edge81.8.epil:                             ; preds = %._crit_edge81.9.preheader.unr-lcssa, %._crit_edge81.8.epil
  %indvars.iv.9.epil = phi i64 [ %indvars.iv.next.9.epil, %._crit_edge81.8.epil ], [ %indvars.iv.9.unr, %._crit_edge81.9.preheader.unr-lcssa ]
  %epil.iter152 = phi i64 [ %epil.iter152.next, %._crit_edge81.8.epil ], [ 0, %._crit_edge81.9.preheader.unr-lcssa ]
  %320 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %indvars.iv.9.epil
  %321 = load i32, ptr %320, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 9, i64 %322
  %324 = load i32, ptr %323, align 4, !tbaa !5
  %325 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %indvars.iv.9.epil
  store i32 %324, ptr %325, align 4, !tbaa !5
  %indvars.iv.next.9.epil = add nuw nsw i64 %indvars.iv.9.epil, 1
  %epil.iter152.next = add i64 %epil.iter152, 1
  %epil.iter152.cmp.not = icmp eq i64 %epil.iter152.next, %xtraiter151
  br i1 %epil.iter152.cmp.not, label %._crit_edge81.9.preheader, label %._crit_edge81.8.epil, !llvm.loop !22

._crit_edge81.9.preheader:                        ; preds = %._crit_edge81.8.epil, %._crit_edge81.9.preheader.unr-lcssa
  %xtraiter156 = and i64 %27, 3
  %326 = icmp ult i32 %26, 4
  br i1 %326, label %._crit_edge81.10.preheader.unr-lcssa, label %._crit_edge81.9.preheader.new

._crit_edge81.9.preheader.new:                    ; preds = %._crit_edge81.9.preheader
  %unroll_iter159 = and i64 %27, 2147483644
  br label %._crit_edge81.9

._crit_edge81.9:                                  ; preds = %._crit_edge81.9, %._crit_edge81.9.preheader.new
  %indvars.iv.10 = phi i64 [ 1, %._crit_edge81.9.preheader.new ], [ %indvars.iv.next.10.3, %._crit_edge81.9 ]
  %niter160 = phi i64 [ 0, %._crit_edge81.9.preheader.new ], [ %niter160.next.3, %._crit_edge81.9 ]
  %327 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %indvars.iv.10
  %328 = load i32, ptr %327, align 4, !tbaa !5
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %329
  %331 = load i32, ptr %330, align 4, !tbaa !5
  %332 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %indvars.iv.10
  store i32 %331, ptr %332, align 4, !tbaa !5
  %indvars.iv.next.10 = add nuw nsw i64 %indvars.iv.10, 1
  %333 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %indvars.iv.next.10
  %334 = load i32, ptr %333, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %335
  %337 = load i32, ptr %336, align 4, !tbaa !5
  %338 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %indvars.iv.next.10
  store i32 %337, ptr %338, align 4, !tbaa !5
  %indvars.iv.next.10.1 = add nuw nsw i64 %indvars.iv.10, 2
  %339 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %indvars.iv.next.10.1
  %340 = load i32, ptr %339, align 4, !tbaa !5
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %341
  %343 = load i32, ptr %342, align 4, !tbaa !5
  %344 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %indvars.iv.next.10.1
  store i32 %343, ptr %344, align 4, !tbaa !5
  %indvars.iv.next.10.2 = add nuw nsw i64 %indvars.iv.10, 3
  %345 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %indvars.iv.next.10.2
  %346 = load i32, ptr %345, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %347
  %349 = load i32, ptr %348, align 4, !tbaa !5
  %350 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %indvars.iv.next.10.2
  store i32 %349, ptr %350, align 4, !tbaa !5
  %indvars.iv.next.10.3 = add nuw nsw i64 %indvars.iv.10, 4
  %niter160.next.3 = add i64 %niter160, 4
  %niter160.ncmp.3 = icmp eq i64 %niter160.next.3, %unroll_iter159
  br i1 %niter160.ncmp.3, label %._crit_edge81.10.preheader.unr-lcssa, label %._crit_edge81.9, !llvm.loop !13

._crit_edge81.10.preheader.unr-lcssa:             ; preds = %._crit_edge81.9, %._crit_edge81.9.preheader
  %indvars.iv.10.unr = phi i64 [ 1, %._crit_edge81.9.preheader ], [ %indvars.iv.next.10.3, %._crit_edge81.9 ]
  %lcmp.mod158.not = icmp eq i64 %xtraiter156, 0
  br i1 %lcmp.mod158.not, label %._crit_edge81.10.preheader, label %._crit_edge81.9.epil

._crit_edge81.9.epil:                             ; preds = %._crit_edge81.10.preheader.unr-lcssa, %._crit_edge81.9.epil
  %indvars.iv.10.epil = phi i64 [ %indvars.iv.next.10.epil, %._crit_edge81.9.epil ], [ %indvars.iv.10.unr, %._crit_edge81.10.preheader.unr-lcssa ]
  %epil.iter157 = phi i64 [ %epil.iter157.next, %._crit_edge81.9.epil ], [ 0, %._crit_edge81.10.preheader.unr-lcssa ]
  %351 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %indvars.iv.10.epil
  %352 = load i32, ptr %351, align 4, !tbaa !5
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 10, i64 %353
  %355 = load i32, ptr %354, align 4, !tbaa !5
  %356 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %indvars.iv.10.epil
  store i32 %355, ptr %356, align 4, !tbaa !5
  %indvars.iv.next.10.epil = add nuw nsw i64 %indvars.iv.10.epil, 1
  %epil.iter157.next = add i64 %epil.iter157, 1
  %epil.iter157.cmp.not = icmp eq i64 %epil.iter157.next, %xtraiter156
  br i1 %epil.iter157.cmp.not, label %._crit_edge81.10.preheader, label %._crit_edge81.9.epil, !llvm.loop !23

._crit_edge81.10.preheader:                       ; preds = %._crit_edge81.9.epil, %._crit_edge81.10.preheader.unr-lcssa
  %xtraiter161 = and i64 %27, 3
  %357 = icmp ult i32 %26, 4
  br i1 %357, label %._crit_edge81.11.preheader.unr-lcssa, label %._crit_edge81.10.preheader.new

._crit_edge81.10.preheader.new:                   ; preds = %._crit_edge81.10.preheader
  %unroll_iter164 = and i64 %27, 2147483644
  br label %._crit_edge81.10

._crit_edge81.10:                                 ; preds = %._crit_edge81.10, %._crit_edge81.10.preheader.new
  %indvars.iv.11 = phi i64 [ 1, %._crit_edge81.10.preheader.new ], [ %indvars.iv.next.11.3, %._crit_edge81.10 ]
  %niter165 = phi i64 [ 0, %._crit_edge81.10.preheader.new ], [ %niter165.next.3, %._crit_edge81.10 ]
  %358 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %indvars.iv.11
  %359 = load i32, ptr %358, align 4, !tbaa !5
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %360
  %362 = load i32, ptr %361, align 4, !tbaa !5
  %363 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %indvars.iv.11
  store i32 %362, ptr %363, align 4, !tbaa !5
  %indvars.iv.next.11 = add nuw nsw i64 %indvars.iv.11, 1
  %364 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %indvars.iv.next.11
  %365 = load i32, ptr %364, align 4, !tbaa !5
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %366
  %368 = load i32, ptr %367, align 4, !tbaa !5
  %369 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %indvars.iv.next.11
  store i32 %368, ptr %369, align 4, !tbaa !5
  %indvars.iv.next.11.1 = add nuw nsw i64 %indvars.iv.11, 2
  %370 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %indvars.iv.next.11.1
  %371 = load i32, ptr %370, align 4, !tbaa !5
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %372
  %374 = load i32, ptr %373, align 4, !tbaa !5
  %375 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %indvars.iv.next.11.1
  store i32 %374, ptr %375, align 4, !tbaa !5
  %indvars.iv.next.11.2 = add nuw nsw i64 %indvars.iv.11, 3
  %376 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %indvars.iv.next.11.2
  %377 = load i32, ptr %376, align 4, !tbaa !5
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %378
  %380 = load i32, ptr %379, align 4, !tbaa !5
  %381 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %indvars.iv.next.11.2
  store i32 %380, ptr %381, align 4, !tbaa !5
  %indvars.iv.next.11.3 = add nuw nsw i64 %indvars.iv.11, 4
  %niter165.next.3 = add i64 %niter165, 4
  %niter165.ncmp.3 = icmp eq i64 %niter165.next.3, %unroll_iter164
  br i1 %niter165.ncmp.3, label %._crit_edge81.11.preheader.unr-lcssa, label %._crit_edge81.10, !llvm.loop !13

._crit_edge81.11.preheader.unr-lcssa:             ; preds = %._crit_edge81.10, %._crit_edge81.10.preheader
  %indvars.iv.11.unr = phi i64 [ 1, %._crit_edge81.10.preheader ], [ %indvars.iv.next.11.3, %._crit_edge81.10 ]
  %lcmp.mod163.not = icmp eq i64 %xtraiter161, 0
  br i1 %lcmp.mod163.not, label %._crit_edge81.11.preheader, label %._crit_edge81.10.epil

._crit_edge81.10.epil:                            ; preds = %._crit_edge81.11.preheader.unr-lcssa, %._crit_edge81.10.epil
  %indvars.iv.11.epil = phi i64 [ %indvars.iv.next.11.epil, %._crit_edge81.10.epil ], [ %indvars.iv.11.unr, %._crit_edge81.11.preheader.unr-lcssa ]
  %epil.iter162 = phi i64 [ %epil.iter162.next, %._crit_edge81.10.epil ], [ 0, %._crit_edge81.11.preheader.unr-lcssa ]
  %382 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %indvars.iv.11.epil
  %383 = load i32, ptr %382, align 4, !tbaa !5
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 11, i64 %384
  %386 = load i32, ptr %385, align 4, !tbaa !5
  %387 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %indvars.iv.11.epil
  store i32 %386, ptr %387, align 4, !tbaa !5
  %indvars.iv.next.11.epil = add nuw nsw i64 %indvars.iv.11.epil, 1
  %epil.iter162.next = add i64 %epil.iter162, 1
  %epil.iter162.cmp.not = icmp eq i64 %epil.iter162.next, %xtraiter161
  br i1 %epil.iter162.cmp.not, label %._crit_edge81.11.preheader, label %._crit_edge81.10.epil, !llvm.loop !24

._crit_edge81.11.preheader:                       ; preds = %._crit_edge81.10.epil, %._crit_edge81.11.preheader.unr-lcssa
  %xtraiter166 = and i64 %27, 3
  %388 = icmp ult i32 %26, 4
  br i1 %388, label %._crit_edge81.12.preheader.unr-lcssa, label %._crit_edge81.11.preheader.new

._crit_edge81.11.preheader.new:                   ; preds = %._crit_edge81.11.preheader
  %unroll_iter169 = and i64 %27, 2147483644
  br label %._crit_edge81.11

._crit_edge81.11:                                 ; preds = %._crit_edge81.11, %._crit_edge81.11.preheader.new
  %indvars.iv.12 = phi i64 [ 1, %._crit_edge81.11.preheader.new ], [ %indvars.iv.next.12.3, %._crit_edge81.11 ]
  %niter170 = phi i64 [ 0, %._crit_edge81.11.preheader.new ], [ %niter170.next.3, %._crit_edge81.11 ]
  %389 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %indvars.iv.12
  %390 = load i32, ptr %389, align 4, !tbaa !5
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %391
  %393 = load i32, ptr %392, align 4, !tbaa !5
  %394 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %indvars.iv.12
  store i32 %393, ptr %394, align 4, !tbaa !5
  %indvars.iv.next.12 = add nuw nsw i64 %indvars.iv.12, 1
  %395 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %indvars.iv.next.12
  %396 = load i32, ptr %395, align 4, !tbaa !5
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %397
  %399 = load i32, ptr %398, align 4, !tbaa !5
  %400 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %indvars.iv.next.12
  store i32 %399, ptr %400, align 4, !tbaa !5
  %indvars.iv.next.12.1 = add nuw nsw i64 %indvars.iv.12, 2
  %401 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %indvars.iv.next.12.1
  %402 = load i32, ptr %401, align 4, !tbaa !5
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %403
  %405 = load i32, ptr %404, align 4, !tbaa !5
  %406 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %indvars.iv.next.12.1
  store i32 %405, ptr %406, align 4, !tbaa !5
  %indvars.iv.next.12.2 = add nuw nsw i64 %indvars.iv.12, 3
  %407 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %indvars.iv.next.12.2
  %408 = load i32, ptr %407, align 4, !tbaa !5
  %409 = sext i32 %408 to i64
  %410 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %409
  %411 = load i32, ptr %410, align 4, !tbaa !5
  %412 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %indvars.iv.next.12.2
  store i32 %411, ptr %412, align 4, !tbaa !5
  %indvars.iv.next.12.3 = add nuw nsw i64 %indvars.iv.12, 4
  %niter170.next.3 = add i64 %niter170, 4
  %niter170.ncmp.3 = icmp eq i64 %niter170.next.3, %unroll_iter169
  br i1 %niter170.ncmp.3, label %._crit_edge81.12.preheader.unr-lcssa, label %._crit_edge81.11, !llvm.loop !13

._crit_edge81.12.preheader.unr-lcssa:             ; preds = %._crit_edge81.11, %._crit_edge81.11.preheader
  %indvars.iv.12.unr = phi i64 [ 1, %._crit_edge81.11.preheader ], [ %indvars.iv.next.12.3, %._crit_edge81.11 ]
  %lcmp.mod168.not = icmp eq i64 %xtraiter166, 0
  br i1 %lcmp.mod168.not, label %._crit_edge81.12.preheader, label %._crit_edge81.11.epil

._crit_edge81.11.epil:                            ; preds = %._crit_edge81.12.preheader.unr-lcssa, %._crit_edge81.11.epil
  %indvars.iv.12.epil = phi i64 [ %indvars.iv.next.12.epil, %._crit_edge81.11.epil ], [ %indvars.iv.12.unr, %._crit_edge81.12.preheader.unr-lcssa ]
  %epil.iter167 = phi i64 [ %epil.iter167.next, %._crit_edge81.11.epil ], [ 0, %._crit_edge81.12.preheader.unr-lcssa ]
  %413 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %indvars.iv.12.epil
  %414 = load i32, ptr %413, align 4, !tbaa !5
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 12, i64 %415
  %417 = load i32, ptr %416, align 4, !tbaa !5
  %418 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %indvars.iv.12.epil
  store i32 %417, ptr %418, align 4, !tbaa !5
  %indvars.iv.next.12.epil = add nuw nsw i64 %indvars.iv.12.epil, 1
  %epil.iter167.next = add i64 %epil.iter167, 1
  %epil.iter167.cmp.not = icmp eq i64 %epil.iter167.next, %xtraiter166
  br i1 %epil.iter167.cmp.not, label %._crit_edge81.12.preheader, label %._crit_edge81.11.epil, !llvm.loop !25

._crit_edge81.12.preheader:                       ; preds = %._crit_edge81.11.epil, %._crit_edge81.12.preheader.unr-lcssa
  %xtraiter171 = and i64 %27, 3
  %419 = icmp ult i32 %26, 4
  br i1 %419, label %._crit_edge81.13.preheader.unr-lcssa, label %._crit_edge81.12.preheader.new

._crit_edge81.12.preheader.new:                   ; preds = %._crit_edge81.12.preheader
  %unroll_iter174 = and i64 %27, 2147483644
  br label %._crit_edge81.12

._crit_edge81.12:                                 ; preds = %._crit_edge81.12, %._crit_edge81.12.preheader.new
  %indvars.iv.13 = phi i64 [ 1, %._crit_edge81.12.preheader.new ], [ %indvars.iv.next.13.3, %._crit_edge81.12 ]
  %niter175 = phi i64 [ 0, %._crit_edge81.12.preheader.new ], [ %niter175.next.3, %._crit_edge81.12 ]
  %420 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %indvars.iv.13
  %421 = load i32, ptr %420, align 4, !tbaa !5
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %422
  %424 = load i32, ptr %423, align 4, !tbaa !5
  %425 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %indvars.iv.13
  store i32 %424, ptr %425, align 4, !tbaa !5
  %indvars.iv.next.13 = add nuw nsw i64 %indvars.iv.13, 1
  %426 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %indvars.iv.next.13
  %427 = load i32, ptr %426, align 4, !tbaa !5
  %428 = sext i32 %427 to i64
  %429 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %428
  %430 = load i32, ptr %429, align 4, !tbaa !5
  %431 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %indvars.iv.next.13
  store i32 %430, ptr %431, align 4, !tbaa !5
  %indvars.iv.next.13.1 = add nuw nsw i64 %indvars.iv.13, 2
  %432 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %indvars.iv.next.13.1
  %433 = load i32, ptr %432, align 4, !tbaa !5
  %434 = sext i32 %433 to i64
  %435 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %434
  %436 = load i32, ptr %435, align 4, !tbaa !5
  %437 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %indvars.iv.next.13.1
  store i32 %436, ptr %437, align 4, !tbaa !5
  %indvars.iv.next.13.2 = add nuw nsw i64 %indvars.iv.13, 3
  %438 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %indvars.iv.next.13.2
  %439 = load i32, ptr %438, align 4, !tbaa !5
  %440 = sext i32 %439 to i64
  %441 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %440
  %442 = load i32, ptr %441, align 4, !tbaa !5
  %443 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %indvars.iv.next.13.2
  store i32 %442, ptr %443, align 4, !tbaa !5
  %indvars.iv.next.13.3 = add nuw nsw i64 %indvars.iv.13, 4
  %niter175.next.3 = add i64 %niter175, 4
  %niter175.ncmp.3 = icmp eq i64 %niter175.next.3, %unroll_iter174
  br i1 %niter175.ncmp.3, label %._crit_edge81.13.preheader.unr-lcssa, label %._crit_edge81.12, !llvm.loop !13

._crit_edge81.13.preheader.unr-lcssa:             ; preds = %._crit_edge81.12, %._crit_edge81.12.preheader
  %indvars.iv.13.unr = phi i64 [ 1, %._crit_edge81.12.preheader ], [ %indvars.iv.next.13.3, %._crit_edge81.12 ]
  %lcmp.mod173.not = icmp eq i64 %xtraiter171, 0
  br i1 %lcmp.mod173.not, label %._crit_edge81.13.preheader, label %._crit_edge81.12.epil

._crit_edge81.12.epil:                            ; preds = %._crit_edge81.13.preheader.unr-lcssa, %._crit_edge81.12.epil
  %indvars.iv.13.epil = phi i64 [ %indvars.iv.next.13.epil, %._crit_edge81.12.epil ], [ %indvars.iv.13.unr, %._crit_edge81.13.preheader.unr-lcssa ]
  %epil.iter172 = phi i64 [ %epil.iter172.next, %._crit_edge81.12.epil ], [ 0, %._crit_edge81.13.preheader.unr-lcssa ]
  %444 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %indvars.iv.13.epil
  %445 = load i32, ptr %444, align 4, !tbaa !5
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 13, i64 %446
  %448 = load i32, ptr %447, align 4, !tbaa !5
  %449 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %indvars.iv.13.epil
  store i32 %448, ptr %449, align 4, !tbaa !5
  %indvars.iv.next.13.epil = add nuw nsw i64 %indvars.iv.13.epil, 1
  %epil.iter172.next = add i64 %epil.iter172, 1
  %epil.iter172.cmp.not = icmp eq i64 %epil.iter172.next, %xtraiter171
  br i1 %epil.iter172.cmp.not, label %._crit_edge81.13.preheader, label %._crit_edge81.12.epil, !llvm.loop !26

._crit_edge81.13.preheader:                       ; preds = %._crit_edge81.12.epil, %._crit_edge81.13.preheader.unr-lcssa
  %xtraiter176 = and i64 %27, 3
  %450 = icmp ult i32 %26, 4
  br i1 %450, label %._crit_edge81.14.preheader.unr-lcssa, label %._crit_edge81.13.preheader.new

._crit_edge81.13.preheader.new:                   ; preds = %._crit_edge81.13.preheader
  %unroll_iter179 = and i64 %27, 2147483644
  br label %._crit_edge81.13

._crit_edge81.13:                                 ; preds = %._crit_edge81.13, %._crit_edge81.13.preheader.new
  %indvars.iv.14 = phi i64 [ 1, %._crit_edge81.13.preheader.new ], [ %indvars.iv.next.14.3, %._crit_edge81.13 ]
  %niter180 = phi i64 [ 0, %._crit_edge81.13.preheader.new ], [ %niter180.next.3, %._crit_edge81.13 ]
  %451 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %indvars.iv.14
  %452 = load i32, ptr %451, align 4, !tbaa !5
  %453 = sext i32 %452 to i64
  %454 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %453
  %455 = load i32, ptr %454, align 4, !tbaa !5
  %456 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %indvars.iv.14
  store i32 %455, ptr %456, align 4, !tbaa !5
  %indvars.iv.next.14 = add nuw nsw i64 %indvars.iv.14, 1
  %457 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %indvars.iv.next.14
  %458 = load i32, ptr %457, align 4, !tbaa !5
  %459 = sext i32 %458 to i64
  %460 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %459
  %461 = load i32, ptr %460, align 4, !tbaa !5
  %462 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %indvars.iv.next.14
  store i32 %461, ptr %462, align 4, !tbaa !5
  %indvars.iv.next.14.1 = add nuw nsw i64 %indvars.iv.14, 2
  %463 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %indvars.iv.next.14.1
  %464 = load i32, ptr %463, align 4, !tbaa !5
  %465 = sext i32 %464 to i64
  %466 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %465
  %467 = load i32, ptr %466, align 4, !tbaa !5
  %468 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %indvars.iv.next.14.1
  store i32 %467, ptr %468, align 4, !tbaa !5
  %indvars.iv.next.14.2 = add nuw nsw i64 %indvars.iv.14, 3
  %469 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %indvars.iv.next.14.2
  %470 = load i32, ptr %469, align 4, !tbaa !5
  %471 = sext i32 %470 to i64
  %472 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %471
  %473 = load i32, ptr %472, align 4, !tbaa !5
  %474 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %indvars.iv.next.14.2
  store i32 %473, ptr %474, align 4, !tbaa !5
  %indvars.iv.next.14.3 = add nuw nsw i64 %indvars.iv.14, 4
  %niter180.next.3 = add i64 %niter180, 4
  %niter180.ncmp.3 = icmp eq i64 %niter180.next.3, %unroll_iter179
  br i1 %niter180.ncmp.3, label %._crit_edge81.14.preheader.unr-lcssa, label %._crit_edge81.13, !llvm.loop !13

._crit_edge81.14.preheader.unr-lcssa:             ; preds = %._crit_edge81.13, %._crit_edge81.13.preheader
  %indvars.iv.14.unr = phi i64 [ 1, %._crit_edge81.13.preheader ], [ %indvars.iv.next.14.3, %._crit_edge81.13 ]
  %lcmp.mod178.not = icmp eq i64 %xtraiter176, 0
  br i1 %lcmp.mod178.not, label %._crit_edge81.14.preheader, label %._crit_edge81.13.epil

._crit_edge81.13.epil:                            ; preds = %._crit_edge81.14.preheader.unr-lcssa, %._crit_edge81.13.epil
  %indvars.iv.14.epil = phi i64 [ %indvars.iv.next.14.epil, %._crit_edge81.13.epil ], [ %indvars.iv.14.unr, %._crit_edge81.14.preheader.unr-lcssa ]
  %epil.iter177 = phi i64 [ %epil.iter177.next, %._crit_edge81.13.epil ], [ 0, %._crit_edge81.14.preheader.unr-lcssa ]
  %475 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %indvars.iv.14.epil
  %476 = load i32, ptr %475, align 4, !tbaa !5
  %477 = sext i32 %476 to i64
  %478 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 14, i64 %477
  %479 = load i32, ptr %478, align 4, !tbaa !5
  %480 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %indvars.iv.14.epil
  store i32 %479, ptr %480, align 4, !tbaa !5
  %indvars.iv.next.14.epil = add nuw nsw i64 %indvars.iv.14.epil, 1
  %epil.iter177.next = add i64 %epil.iter177, 1
  %epil.iter177.cmp.not = icmp eq i64 %epil.iter177.next, %xtraiter176
  br i1 %epil.iter177.cmp.not, label %._crit_edge81.14.preheader, label %._crit_edge81.13.epil, !llvm.loop !27

._crit_edge81.14.preheader:                       ; preds = %._crit_edge81.13.epil, %._crit_edge81.14.preheader.unr-lcssa
  %xtraiter181 = and i64 %27, 3
  %481 = icmp ult i32 %26, 4
  br i1 %481, label %.split84.us.loopexit.unr-lcssa, label %._crit_edge81.14.preheader.new

._crit_edge81.14.preheader.new:                   ; preds = %._crit_edge81.14.preheader
  %unroll_iter184 = and i64 %27, 2147483644
  br label %._crit_edge81.14

._crit_edge81.14:                                 ; preds = %._crit_edge81.14, %._crit_edge81.14.preheader.new
  %indvars.iv.15 = phi i64 [ 1, %._crit_edge81.14.preheader.new ], [ %indvars.iv.next.15.3, %._crit_edge81.14 ]
  %niter185 = phi i64 [ 0, %._crit_edge81.14.preheader.new ], [ %niter185.next.3, %._crit_edge81.14 ]
  %482 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %indvars.iv.15
  %483 = load i32, ptr %482, align 4, !tbaa !5
  %484 = sext i32 %483 to i64
  %485 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %484
  %486 = load i32, ptr %485, align 4, !tbaa !5
  %487 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 16, i64 %indvars.iv.15
  store i32 %486, ptr %487, align 4, !tbaa !5
  %indvars.iv.next.15 = add nuw nsw i64 %indvars.iv.15, 1
  %488 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %indvars.iv.next.15
  %489 = load i32, ptr %488, align 4, !tbaa !5
  %490 = sext i32 %489 to i64
  %491 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %490
  %492 = load i32, ptr %491, align 4, !tbaa !5
  %493 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 16, i64 %indvars.iv.next.15
  store i32 %492, ptr %493, align 4, !tbaa !5
  %indvars.iv.next.15.1 = add nuw nsw i64 %indvars.iv.15, 2
  %494 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %indvars.iv.next.15.1
  %495 = load i32, ptr %494, align 4, !tbaa !5
  %496 = sext i32 %495 to i64
  %497 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %496
  %498 = load i32, ptr %497, align 4, !tbaa !5
  %499 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 16, i64 %indvars.iv.next.15.1
  store i32 %498, ptr %499, align 4, !tbaa !5
  %indvars.iv.next.15.2 = add nuw nsw i64 %indvars.iv.15, 3
  %500 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %indvars.iv.next.15.2
  %501 = load i32, ptr %500, align 4, !tbaa !5
  %502 = sext i32 %501 to i64
  %503 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %502
  %504 = load i32, ptr %503, align 4, !tbaa !5
  %505 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 16, i64 %indvars.iv.next.15.2
  store i32 %504, ptr %505, align 4, !tbaa !5
  %indvars.iv.next.15.3 = add nuw nsw i64 %indvars.iv.15, 4
  %niter185.next.3 = add i64 %niter185, 4
  %niter185.ncmp.3 = icmp eq i64 %niter185.next.3, %unroll_iter184
  br i1 %niter185.ncmp.3, label %.split84.us.loopexit.unr-lcssa, label %._crit_edge81.14, !llvm.loop !13

506:                                              ; preds = %506, %.preheader.preheader.new
  %indvars.iv = phi i64 [ 1, %.preheader.preheader.new ], [ %indvars.iv.next.3107, %506 ]
  %niter = phi i64 [ 0, %.preheader.preheader.new ], [ %niter.next.3, %506 ]
  %507 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %indvars.iv
  %508 = load i32, ptr %507, align 4, !tbaa !5
  %509 = sext i32 %508 to i64
  %510 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %509
  %511 = load i32, ptr %510, align 4, !tbaa !5
  %512 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv
  store i32 %511, ptr %512, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %513 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %indvars.iv.next
  %514 = load i32, ptr %513, align 4, !tbaa !5
  %515 = sext i32 %514 to i64
  %516 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %515
  %517 = load i32, ptr %516, align 4, !tbaa !5
  %518 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv.next
  store i32 %517, ptr %518, align 4, !tbaa !5
  %indvars.iv.next.1103 = add nuw nsw i64 %indvars.iv, 2
  %519 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %indvars.iv.next.1103
  %520 = load i32, ptr %519, align 4, !tbaa !5
  %521 = sext i32 %520 to i64
  %522 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %521
  %523 = load i32, ptr %522, align 4, !tbaa !5
  %524 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv.next.1103
  store i32 %523, ptr %524, align 4, !tbaa !5
  %indvars.iv.next.2105 = add nuw nsw i64 %indvars.iv, 3
  %525 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %indvars.iv.next.2105
  %526 = load i32, ptr %525, align 4, !tbaa !5
  %527 = sext i32 %526 to i64
  %528 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %527
  %529 = load i32, ptr %528, align 4, !tbaa !5
  %530 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv.next.2105
  store i32 %529, ptr %530, align 4, !tbaa !5
  %indvars.iv.next.3107 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge81.preheader.unr-lcssa, label %506, !llvm.loop !13

._crit_edge81.preheader.unr-lcssa:                ; preds = %506, %.preheader.preheader
  %indvars.iv.unr = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next.3107, %506 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge81.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge81.preheader.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge81.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge81.preheader.unr-lcssa ]
  %531 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %indvars.iv.epil
  %532 = load i32, ptr %531, align 4, !tbaa !5
  %533 = sext i32 %532 to i64
  %534 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %533
  %535 = load i32, ptr %534, align 4, !tbaa !5
  %536 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv.epil
  store i32 %535, ptr %536, align 4, !tbaa !5
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge81.preheader, label %.epil.preheader, !llvm.loop !28

._crit_edge81.preheader:                          ; preds = %.epil.preheader, %._crit_edge81.preheader.unr-lcssa
  %xtraiter108 = and i64 %27, 3
  %537 = icmp ult i32 %26, 4
  br i1 %537, label %._crit_edge81.1.preheader.unr-lcssa, label %._crit_edge81.preheader.new

._crit_edge81.preheader.new:                      ; preds = %._crit_edge81.preheader
  %unroll_iter111 = and i64 %27, 2147483644
  br label %._crit_edge81

538:                                              ; preds = %.lr.ph87, %669
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %539 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %540 = load i32, ptr %3, align 4, !tbaa !5
  %541 = load i32, ptr %4, align 4, !tbaa !5
  %542 = icmp eq i32 %540, %541
  br i1 %542, label %543, label %546

543:                                              ; preds = %538
  %544 = load i32, ptr @n, align 4, !tbaa !5
  %545 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %544)
  br label %669, !llvm.loop !29

546:                                              ; preds = %538
  %547 = call noundef i32 @_Z3LCAii(i32 noundef %540, i32 noundef %541)
  %548 = load i32, ptr %3, align 4, !tbaa !5
  %549 = icmp eq i32 %547, %548
  %.pre97 = load i32, ptr %4, align 4, !tbaa !5
  %550 = icmp eq i32 %547, %.pre97
  %or.cond = select i1 %549, i1 true, i1 %550
  br i1 %or.cond, label %551, label %595

551:                                              ; preds = %546
  %552 = icmp eq i32 %547, %.pre97
  br i1 %552, label %553, label %554

553:                                              ; preds = %551
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #7
  %.pre98 = load i32, ptr %4, align 4, !tbaa !5
  %.pre99 = load i32, ptr %3, align 4, !tbaa !5
  br label %554

554:                                              ; preds = %553, %551
  %555 = phi i32 [ %.pre99, %553 ], [ %548, %551 ]
  %556 = phi i32 [ %.pre98, %553 ], [ %.pre97, %551 ]
  %557 = sext i32 %556 to i64
  %558 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %557
  %559 = load i32, ptr %558, align 4, !tbaa !5
  %560 = sext i32 %555 to i64
  %561 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %560
  %562 = load i32, ptr %561, align 4, !tbaa !5
  %563 = sub nsw i32 %559, %562
  %564 = and i32 %563, 1
  %.not73 = icmp eq i32 %564, 0
  br i1 %.not73, label %567, label %565

565:                                              ; preds = %554
  %566 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %669, !llvm.loop !29

567:                                              ; preds = %554
  %568 = ashr exact i32 %563, 1
  %569 = sub nsw i32 %559, %568
  %570 = call noundef i32 @_Z14getAncestorAtHii(i32 noundef %556, i32 noundef %569)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %571 = sext i32 %570 to i64
  %572 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %571
  %573 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %572) #7
  %574 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %572) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %575 = load i32, ptr %4, align 4, !tbaa !5
  %576 = sext i32 %575 to i64
  %577 = getelementptr inbounds [131072 x i32], ptr @beg, i64 0, i64 %576
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 1000000000, ptr %8, align 4, !tbaa !5
  %578 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %577, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i64 %578, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  store i32 1000000000, ptr %9, align 4, !tbaa !5
  %579 = call { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %.fca.0.extract18 = extractvalue { i64, i32 } %579, 0
  %.fca.1.extract19 = extractvalue { i64, i32 } %579, 1
  store i64 %.fca.0.extract18, ptr %6, align 8
  store i32 %.fca.1.extract19, ptr %.sroa.221.0..sroa_idx, align 8
  %580 = call ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IiiEiESt6vectorIS4_SaIS4_EEEES4_ET_SA_SA_RKT0_(ptr %573, ptr %574, ptr noundef nonnull align 4 dereferenceable(12) %6)
  store ptr %580, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %581 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %572) #7
  store ptr %581, ptr %10, align 8
  %582 = call noundef i64 @_ZN9__gnu_cxxmiIPSt4pairIS1_IiiEiESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %583 = getelementptr inbounds [131072 x i32], ptr @sz, i64 0, i64 %571
  %584 = load i32, ptr %583, align 4, !tbaa !5
  %585 = shl i64 %582, 32
  %sext74 = add i64 %585, -4294967296
  %586 = ashr exact i64 %sext74, 32
  %587 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %572, i64 noundef %586) #7
  %588 = getelementptr inbounds i8, ptr %587, i64 8
  %589 = load i32, ptr %588, align 4, !tbaa !30
  %590 = sext i32 %589 to i64
  %591 = getelementptr inbounds [131072 x i32], ptr @sz, i64 0, i64 %590
  %592 = load i32, ptr %591, align 4, !tbaa !5
  %593 = sub nsw i32 %584, %592
  %594 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %593)
  br label %669

595:                                              ; preds = %546
  %596 = sext i32 %548 to i64
  %597 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %596
  %598 = load i32, ptr %597, align 4, !tbaa !5
  %599 = sext i32 %.pre97 to i64
  %600 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %599
  %601 = load i32, ptr %600, align 4, !tbaa !5
  %602 = add i32 %601, %598
  %603 = and i32 %602, 1
  %.not71 = icmp eq i32 %603, 0
  br i1 %.not71, label %606, label %604

604:                                              ; preds = %595
  %605 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %669, !llvm.loop !29

606:                                              ; preds = %595
  %607 = sext i32 %547 to i64
  %608 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %607
  %609 = load i32, ptr %608, align 4, !tbaa !5
  %610 = shl i32 %609, 1
  %611 = sub i32 %602, %610
  %612 = ashr exact i32 %611, 1
  %613 = sub nsw i32 %598, %612
  %614 = icmp slt i32 %613, %609
  br i1 %614, label %615, label %616

615:                                              ; preds = %606
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #7
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  %.phi.trans.insert = sext i32 %.pre to i64
  %.phi.trans.insert95 = getelementptr inbounds [131072 x i32], ptr @l, i64 0, i64 %.phi.trans.insert
  %.pre96 = load i32, ptr %.phi.trans.insert95, align 4, !tbaa !5
  %.pre100 = sub nsw i32 %.pre96, %612
  br label %616

616:                                              ; preds = %615, %606
  %.pre-phi101 = phi i32 [ %.pre100, %615 ], [ %613, %606 ]
  %617 = phi i32 [ %.pre, %615 ], [ %548, %606 ]
  %618 = call noundef i32 @_Z14getAncestorAtHii(i32 noundef %617, i32 noundef %.pre-phi101)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %619 = sext i32 %618 to i64
  %620 = getelementptr inbounds [131072 x %"class.std::vector.0"], ptr @seg, i64 0, i64 %619
  %621 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %620) #7
  %622 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %620) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %623 = load i32, ptr %3, align 4, !tbaa !5
  %624 = sext i32 %623 to i64
  %625 = getelementptr inbounds [131072 x i32], ptr @beg, i64 0, i64 %624
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  store i32 1000000000, ptr %14, align 4, !tbaa !5
  %626 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %625, ptr noundef nonnull align 4 dereferenceable(4) %14)
  store i64 %626, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  store i32 1000000000, ptr %15, align 4, !tbaa !5
  %627 = call { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %.fca.0.extract5 = extractvalue { i64, i32 } %627, 0
  %.fca.1.extract6 = extractvalue { i64, i32 } %627, 1
  store i64 %.fca.0.extract5, ptr %12, align 8
  store i32 %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  %628 = call ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IiiEiESt6vectorIS4_SaIS4_EEEES4_ET_SA_SA_RKT0_(ptr %621, ptr %622, ptr noundef nonnull align 4 dereferenceable(12) %12)
  store ptr %628, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %629 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %620) #7
  store ptr %629, ptr %16, align 8
  %630 = call noundef i64 @_ZN9__gnu_cxxmiIPSt4pairIS1_IiiEiESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %631 = getelementptr inbounds [131072 x i32], ptr @sz, i64 0, i64 %619
  %632 = load i32, ptr %631, align 4, !tbaa !5
  %633 = shl i64 %630, 32
  %sext = add i64 %633, -4294967296
  %634 = ashr exact i64 %sext, 32
  %635 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %620, i64 noundef %634) #7
  %636 = getelementptr inbounds i8, ptr %635, i64 8
  %637 = load i32, ptr %636, align 4, !tbaa !30
  %638 = sext i32 %637 to i64
  %639 = getelementptr inbounds [131072 x i32], ptr @sz, i64 0, i64 %638
  %640 = load i32, ptr %639, align 4, !tbaa !5
  %641 = sub nsw i32 %632, %640
  %642 = icmp eq i32 %618, %547
  br i1 %642, label %643, label %667

643:                                              ; preds = %616
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %644 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %620) #7
  %645 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %620) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %646 = load i32, ptr %4, align 4, !tbaa !5
  %647 = sext i32 %646 to i64
  %648 = getelementptr inbounds [131072 x i32], ptr @beg, i64 0, i64 %647
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #7
  store i32 1000000000, ptr %20, align 4, !tbaa !5
  %649 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %648, ptr noundef nonnull align 4 dereferenceable(4) %20)
  store i64 %649, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  store i32 1000000000, ptr %21, align 4, !tbaa !5
  %650 = call { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %.fca.0.extract = extractvalue { i64, i32 } %650, 0
  %.fca.1.extract = extractvalue { i64, i32 } %650, 1
  store i64 %.fca.0.extract, ptr %18, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %651 = call ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IiiEiESt6vectorIS4_SaIS4_EEEES4_ET_SA_SA_RKT0_(ptr %644, ptr %645, ptr noundef nonnull align 4 dereferenceable(12) %18)
  store ptr %651, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %652 = call ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %620) #7
  store ptr %652, ptr %22, align 8
  %653 = call noundef i64 @_ZN9__gnu_cxxmiIPSt4pairIS1_IiiEiESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  %654 = shl i64 %653, 32
  %sext72 = add i64 %654, -4294967296
  %655 = ashr exact i64 %sext72, 32
  %656 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %620, i64 noundef %655) #7
  %657 = getelementptr inbounds i8, ptr %656, i64 8
  %658 = load i32, ptr %657, align 4, !tbaa !30
  %659 = sext i32 %658 to i64
  %660 = getelementptr inbounds [131072 x i32], ptr @sz, i64 0, i64 %659
  %661 = load i32, ptr %660, align 4, !tbaa !5
  %662 = load i32, ptr @n, align 4, !tbaa !5
  %663 = load i32, ptr %631, align 4, !tbaa !5
  %664 = add i32 %641, %662
  %665 = add i32 %661, %663
  %666 = sub i32 %664, %665
  br label %667

667:                                              ; preds = %643, %616
  %.065 = phi i32 [ %666, %643 ], [ %641, %616 ]
  %668 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %.065)
  br label %669

669:                                              ; preds = %567, %565, %667, %604, %543
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %670 = load i32, ptr @m, align 4, !tbaa !5
  %671 = add nsw i32 %670, -1
  store i32 %671, ptr @m, align 4, !tbaa !5
  %.not = icmp eq i32 %670, 0
  br i1 %.not, label %._crit_edge88, label %538

._crit_edge88:                                    ; preds = %669, %.split84.us
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IiiEiESt6vectorIS4_SaIS4_EEEES4_ET_SA_SA_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairISt4pairIiiEiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIS0_IiiEiESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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


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