; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Codesprints 2016/Codesprint April/Problem H (brute)

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

@g = external dso_local global [131072 x %"class.std::vector"], align 16
@f = external dso_local global [1310720 x i64], align 16
@p = external dso_local global [17 x [131072 x i32]], align 16
@cost = external dso_local global [131072 x i64], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsi(i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6updateix(i32 noundef, i64 noundef) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %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 i8, align 1
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  store i64 1, ptr getelementptr inbounds ([1310720 x i64], ptr @f, i64 0, i64 2), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds ([1310720 x i64], ptr @f, i64 0, i64 1), align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 3, ptr %2, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %48, %0
  %18 = load i32, ptr %2, align 4, !tbaa !9
  %19 = icmp slt i32 %18, 1310720
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %51

21:                                               ; preds = %17
  %22 = load i32, ptr %2, align 4, !tbaa !9
  %23 = sub nsw i32 %22, 1
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [1310720 x i64], ptr @f, i64 0, i64 %24
  %26 = load i64, ptr %25, align 8, !tbaa !5
  %27 = load i32, ptr %2, align 4, !tbaa !9
  %28 = sub nsw i32 %27, 2
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [1310720 x i64], ptr @f, i64 0, i64 %29
  %31 = load i64, ptr %30, align 8, !tbaa !5
  %32 = add nsw i64 %26, %31
  %33 = load i32, ptr %2, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [1310720 x i64], ptr @f, i64 0, i64 %34
  store i64 %32, ptr %35, align 8, !tbaa !5
  %36 = load i32, ptr %2, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [1310720 x i64], ptr @f, i64 0, i64 %37
  %39 = load i64, ptr %38, align 8, !tbaa !5
  %40 = icmp sge i64 %39, 1000000007
  br i1 %40, label %41, label %47

41:                                               ; preds = %21
  %42 = load i32, ptr %2, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [1310720 x i64], ptr @f, i64 0, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !5
  %46 = sub nsw i64 %45, 1000000007
  store i64 %46, ptr %44, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %41, %21
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %2, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %2, align 4, !tbaa !9
  br label %17, !llvm.loop !11

51:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %52 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %70, %51
  %54 = load i32, ptr %5, align 4, !tbaa !9
  %55 = load i32, ptr %3, align 4, !tbaa !9
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %73

58:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %59 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %6)
  %60 = load i32, ptr %6, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [131072 x %"class.std::vector"], ptr @g, i64 0, i64 %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %63 = load i32, ptr %5, align 4, !tbaa !9
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %7, align 4, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %65 = load i32, ptr %6, align 4, !tbaa !9
  %66 = load i32, ptr %5, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [131072 x i32], ptr @p, i64 0, i64 %68
  store i32 %65, ptr %69, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %70

70:                                               ; preds = %58
  %71 = load i32, ptr %5, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %5, align 4, !tbaa !9
  br label %53, !llvm.loop !13

73:                                               ; preds = %57
  call void @_Z3dfsi(i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %110, %73
  %75 = load i32, ptr %8, align 4, !tbaa !9
  %76 = icmp slt i32 %75, 17
  br i1 %76, label %78, label %77

77:                                               ; preds = %74
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %113

78:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %106, %78
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = load i32, ptr %3, align 4, !tbaa !9
  %82 = icmp sle i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %109

84:                                               ; preds = %79
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = sub nsw i32 %85, 1
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 %87
  %89 = load i32, ptr %8, align 4, !tbaa !9
  %90 = sub nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 %91
  %93 = load i32, ptr %10, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [131072 x i32], ptr %92, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [131072 x i32], ptr %88, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 %101
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [131072 x i32], ptr %102, i64 0, i64 %104
  store i32 %99, ptr %105, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %84
  %107 = load i32, ptr %10, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %10, align 4, !tbaa !9
  br label %79, !llvm.loop !14

109:                                              ; preds = %83
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %8, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %8, align 4, !tbaa !9
  br label %74, !llvm.loop !15

113:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %199, %113
  %115 = load i32, ptr %14, align 4, !tbaa !9
  %116 = load i32, ptr %4, align 4, !tbaa !9
  %117 = icmp sle i32 %115, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %114
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %202

119:                                              ; preds = %114
  %120 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %121 = load i8, ptr %11, align 1, !tbaa !16
  %122 = sext i8 %121 to i32
  %123 = icmp eq i32 %122, 85
  br i1 %123, label %124, label %128

124:                                              ; preds = %119
  %125 = load i64, ptr %12, align 8, !tbaa !5
  %126 = trunc i64 %125 to i32
  %127 = load i64, ptr %13, align 8, !tbaa !5
  call void @_Z6updateix(i32 noundef %126, i64 noundef %127)
  br label %198

128:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %129 = load i64, ptr %12, align 8, !tbaa !5
  %130 = trunc i64 %129 to i32
  %131 = load i64, ptr %13, align 8, !tbaa !5
  %132 = trunc i64 %131 to i32
  %133 = call noundef i32 @_Z3LCAii(i32 noundef %130, i32 noundef %132)
  store i32 %133, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !5
  br label %134

134:                                              ; preds = %152, %128
  br label %135

135:                                              ; preds = %134
  %136 = load i64, ptr %12, align 8, !tbaa !5
  %137 = getelementptr inbounds [131072 x i64], ptr @cost, i64 0, i64 %136
  %138 = load i64, ptr %137, align 8, !tbaa !5
  %139 = load i64, ptr %16, align 8, !tbaa !5
  %140 = add nsw i64 %139, %138
  store i64 %140, ptr %16, align 8, !tbaa !5
  %141 = load i64, ptr %16, align 8, !tbaa !5
  %142 = icmp sge i64 %141, 1000000007
  br i1 %142, label %143, label %146

143:                                              ; preds = %135
  %144 = load i64, ptr %16, align 8, !tbaa !5
  %145 = sub nsw i64 %144, 1000000007
  store i64 %145, ptr %16, align 8, !tbaa !5
  br label %146

146:                                              ; preds = %143, %135
  %147 = load i64, ptr %12, align 8, !tbaa !5
  %148 = load i32, ptr %15, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = icmp eq i64 %147, %149
  br i1 %150, label %151, label %152

151:                                              ; preds = %146
  br label %157

152:                                              ; preds = %146
  %153 = load i64, ptr %12, align 8, !tbaa !5
  %154 = getelementptr inbounds [131072 x i32], ptr @p, i64 0, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  store i64 %156, ptr %12, align 8, !tbaa !5
  br label %134, !llvm.loop !17

157:                                              ; preds = %151
  br label %158

158:                                              ; preds = %176, %157
  br label %159

159:                                              ; preds = %158
  %160 = load i64, ptr %13, align 8, !tbaa !5
  %161 = getelementptr inbounds [131072 x i64], ptr @cost, i64 0, i64 %160
  %162 = load i64, ptr %161, align 8, !tbaa !5
  %163 = load i64, ptr %16, align 8, !tbaa !5
  %164 = add nsw i64 %163, %162
  store i64 %164, ptr %16, align 8, !tbaa !5
  %165 = load i64, ptr %16, align 8, !tbaa !5
  %166 = icmp sge i64 %165, 1000000007
  br i1 %166, label %167, label %170

167:                                              ; preds = %159
  %168 = load i64, ptr %16, align 8, !tbaa !5
  %169 = sub nsw i64 %168, 1000000007
  store i64 %169, ptr %16, align 8, !tbaa !5
  br label %170

170:                                              ; preds = %167, %159
  %171 = load i64, ptr %13, align 8, !tbaa !5
  %172 = load i32, ptr %15, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = icmp eq i64 %171, %173
  br i1 %174, label %175, label %176

175:                                              ; preds = %170
  br label %181

176:                                              ; preds = %170
  %177 = load i64, ptr %13, align 8, !tbaa !5
  %178 = getelementptr inbounds [131072 x i32], ptr @p, i64 0, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  store i64 %180, ptr %13, align 8, !tbaa !5
  br label %158, !llvm.loop !18

181:                                              ; preds = %175
  %182 = load i32, ptr %15, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [131072 x i64], ptr @cost, i64 0, i64 %183
  %185 = load i64, ptr %184, align 8, !tbaa !5
  %186 = load i64, ptr %16, align 8, !tbaa !5
  %187 = sub nsw i64 %186, %185
  store i64 %187, ptr %16, align 8, !tbaa !5
  %188 = load i64, ptr %16, align 8, !tbaa !5
  %189 = add nsw i64 %188, 1000000007
  store i64 %189, ptr %16, align 8, !tbaa !5
  %190 = load i64, ptr %16, align 8, !tbaa !5
  %191 = icmp sge i64 %190, 1000000007
  br i1 %191, label %192, label %195

192:                                              ; preds = %181
  %193 = load i64, ptr %16, align 8, !tbaa !5
  %194 = sub nsw i64 %193, 1000000007
  store i64 %194, ptr %16, align 8, !tbaa !5
  br label %195

195:                                              ; preds = %192, %181
  %196 = load i64, ptr %16, align 8, !tbaa !5
  %197 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %196)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %198

198:                                              ; preds = %195, %124
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %14, align 4, !tbaa !9
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %14, align 4, !tbaa !9
  br label %114, !llvm.loop !19

202:                                              ; preds = %118
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  %203 = load i32, ptr %1, align 4
  ret i32 %203
}

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

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

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

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

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

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


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

%"class.std::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 }

@g = external dso_local global [131072 x %"class.std::vector"], align 16
@f = external dso_local local_unnamed_addr global [1310720 x i64], align 16
@p = external dso_local local_unnamed_addr global [17 x [131072 x i32]], align 16
@cost = external dso_local local_unnamed_addr global [131072 x i64], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsi(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6updateix(i32 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i8, align 1
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  store i64 1, ptr getelementptr inbounds (i8, ptr @f, i64 16), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @f, i64 8), align 8, !tbaa !5
  br label %12

8:                                                ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %10 = load i32, ptr %1, align 4, !tbaa !9
  %11 = icmp sgt i32 %10, 1
  br i1 %11, label %.lr.ph, label %._crit_edge

12:                                               ; preds = %21, %0
  %13 = phi i64 [ 1, %0 ], [ %spec.select.1, %21 ]
  %indvars.iv = phi i64 [ 3, %0 ], [ %indvars.iv.next.1, %21 ]
  %14 = add nsw i64 %indvars.iv, -2
  %15 = getelementptr inbounds [1310720 x i64], ptr @f, i64 0, i64 %14
  %16 = load i64, ptr %15, align 8, !tbaa !5
  %17 = add nsw i64 %16, %13
  %18 = getelementptr inbounds [1310720 x i64], ptr @f, i64 0, i64 %indvars.iv
  %19 = icmp sgt i64 %17, 1000000006
  %20 = add nsw i64 %17, -1000000007
  %spec.select = select i1 %19, i64 %20, i64 %17
  store i64 %spec.select, ptr %18, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1310720
  br i1 %exitcond.not, label %8, label %21, !llvm.loop !11

21:                                               ; preds = %12
  %22 = add nsw i64 %indvars.iv, -1
  %23 = getelementptr inbounds [1310720 x i64], ptr @f, i64 0, i64 %22
  %24 = load i64, ptr %23, align 8, !tbaa !5
  %25 = add nsw i64 %24, %spec.select
  %26 = getelementptr inbounds [1310720 x i64], ptr @f, i64 0, i64 %indvars.iv.next
  %27 = icmp sgt i64 %25, 1000000006
  %28 = add nsw i64 %25, -1000000007
  %spec.select.1 = select i1 %27, i64 %28, i64 %25
  store i64 %spec.select.1, ptr %26, align 8, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  br label %12

._crit_edge:                                      ; preds = %.lr.ph, %8
  call void @_Z3dfsi(i32 noundef 1)
  %29 = load i32, ptr %1, align 4, !tbaa !9
  %.not5158 = icmp slt i32 %29, 1
  br i1 %.not5158, label %.split64.us, label %.preheader55.preheader

.preheader55.preheader:                           ; preds = %._crit_edge
  %30 = zext nneg i32 %29 to i64
  %xtraiter = and i64 %30, 3
  %31 = icmp ult i32 %29, 4
  br i1 %31, label %._crit_edge61.preheader.unr-lcssa, label %.preheader55.preheader.new

.preheader55.preheader.new:                       ; preds = %.preheader55.preheader
  %unroll_iter = and i64 %30, 2147483644
  br label %507

.lr.ph:                                           ; preds = %8, %.lr.ph
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %.lr.ph ], [ 1, %8 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %3)
  %33 = load i32, ptr %3, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [131072 x %"class.std::vector"], ptr @g, i64 0, i64 %34
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %36 = trunc nuw nsw i64 %indvars.iv.next89 to i32
  store i32 %36, ptr %4, align 4, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  %37 = load i32, ptr %3, align 4, !tbaa !9
  %38 = getelementptr inbounds [131072 x i32], ptr @p, i64 0, i64 %indvars.iv.next89
  store i32 %37, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %39 = load i32, ptr %1, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = icmp slt i64 %indvars.iv.next89, %40
  br i1 %41, label %.lr.ph, label %._crit_edge, !llvm.loop !13

.split64.us.loopexit.unr-lcssa:                   ; preds = %._crit_edge61.14, %._crit_edge61.14.preheader
  %indvars.iv91.15.unr = phi i64 [ 1, %._crit_edge61.14.preheader ], [ %indvars.iv.next92.15.3, %._crit_edge61.14 ]
  %lcmp.mod189.not = icmp eq i64 %xtraiter187, 0
  br i1 %lcmp.mod189.not, label %.split64.us, label %._crit_edge61.14.epil

._crit_edge61.14.epil:                            ; preds = %.split64.us.loopexit.unr-lcssa, %._crit_edge61.14.epil
  %indvars.iv91.15.epil = phi i64 [ %indvars.iv.next92.15.epil, %._crit_edge61.14.epil ], [ %indvars.iv91.15.unr, %.split64.us.loopexit.unr-lcssa ]
  %epil.iter188 = phi i64 [ %epil.iter188.next, %._crit_edge61.14.epil ], [ 0, %.split64.us.loopexit.unr-lcssa ]
  %42 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %indvars.iv91.15.epil
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 15, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 16, i64 %indvars.iv91.15.epil
  store i32 %46, ptr %47, align 4, !tbaa !9
  %indvars.iv.next92.15.epil = add nuw nsw i64 %indvars.iv91.15.epil, 1
  %epil.iter188.next = add i64 %epil.iter188, 1
  %epil.iter188.cmp.not = icmp eq i64 %epil.iter188.next, %xtraiter187
  br i1 %epil.iter188.cmp.not, label %.split64.us, label %._crit_edge61.14.epil, !llvm.loop !14

.split64.us:                                      ; preds = %.split64.us.loopexit.unr-lcssa, %._crit_edge61.14.epil, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %48 = load i32, ptr %2, align 4, !tbaa !9
  %.not78 = icmp slt i32 %48, 1
  br i1 %.not78, label %._crit_edge82, label %.lr.ph81

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

._crit_edge61.1.preheader.unr-lcssa:              ; preds = %._crit_edge61, %._crit_edge61.preheader
  %indvars.iv91.1.unr = phi i64 [ 1, %._crit_edge61.preheader ], [ %indvars.iv.next92.1.3, %._crit_edge61 ]
  %lcmp.mod116.not = icmp eq i64 %xtraiter114, 0
  br i1 %lcmp.mod116.not, label %._crit_edge61.1.preheader, label %._crit_edge61.epil

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

._crit_edge61.1.preheader:                        ; preds = %._crit_edge61.epil, %._crit_edge61.1.preheader.unr-lcssa
  %xtraiter122 = and i64 %30, 3
  %79 = icmp ult i32 %29, 4
  br i1 %79, label %._crit_edge61.2.preheader.unr-lcssa, label %._crit_edge61.1.preheader.new

._crit_edge61.1.preheader.new:                    ; preds = %._crit_edge61.1.preheader
  %unroll_iter125 = and i64 %30, 2147483644
  br label %._crit_edge61.1

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

._crit_edge61.2.preheader.unr-lcssa:              ; preds = %._crit_edge61.1, %._crit_edge61.1.preheader
  %indvars.iv91.2.unr = phi i64 [ 1, %._crit_edge61.1.preheader ], [ %indvars.iv.next92.2.3, %._crit_edge61.1 ]
  %lcmp.mod124.not = icmp eq i64 %xtraiter122, 0
  br i1 %lcmp.mod124.not, label %._crit_edge61.2.preheader, label %._crit_edge61.1.epil

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

._crit_edge61.2.preheader:                        ; preds = %._crit_edge61.1.epil, %._crit_edge61.2.preheader.unr-lcssa
  %xtraiter127 = and i64 %30, 3
  %110 = icmp ult i32 %29, 4
  br i1 %110, label %._crit_edge61.3.preheader.unr-lcssa, label %._crit_edge61.2.preheader.new

._crit_edge61.2.preheader.new:                    ; preds = %._crit_edge61.2.preheader
  %unroll_iter130 = and i64 %30, 2147483644
  br label %._crit_edge61.2

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

._crit_edge61.3.preheader.unr-lcssa:              ; preds = %._crit_edge61.2, %._crit_edge61.2.preheader
  %indvars.iv91.3.unr = phi i64 [ 1, %._crit_edge61.2.preheader ], [ %indvars.iv.next92.3.3, %._crit_edge61.2 ]
  %lcmp.mod129.not = icmp eq i64 %xtraiter127, 0
  br i1 %lcmp.mod129.not, label %._crit_edge61.3.preheader, label %._crit_edge61.2.epil

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

._crit_edge61.3.preheader:                        ; preds = %._crit_edge61.2.epil, %._crit_edge61.3.preheader.unr-lcssa
  %xtraiter132 = and i64 %30, 3
  %141 = icmp ult i32 %29, 4
  br i1 %141, label %._crit_edge61.4.preheader.unr-lcssa, label %._crit_edge61.3.preheader.new

._crit_edge61.3.preheader.new:                    ; preds = %._crit_edge61.3.preheader
  %unroll_iter135 = and i64 %30, 2147483644
  br label %._crit_edge61.3

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

._crit_edge61.4.preheader.unr-lcssa:              ; preds = %._crit_edge61.3, %._crit_edge61.3.preheader
  %indvars.iv91.4.unr = phi i64 [ 1, %._crit_edge61.3.preheader ], [ %indvars.iv.next92.4.3, %._crit_edge61.3 ]
  %lcmp.mod134.not = icmp eq i64 %xtraiter132, 0
  br i1 %lcmp.mod134.not, label %._crit_edge61.4.preheader, label %._crit_edge61.3.epil

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

._crit_edge61.4.preheader:                        ; preds = %._crit_edge61.3.epil, %._crit_edge61.4.preheader.unr-lcssa
  %xtraiter137 = and i64 %30, 3
  %172 = icmp ult i32 %29, 4
  br i1 %172, label %._crit_edge61.5.preheader.unr-lcssa, label %._crit_edge61.4.preheader.new

._crit_edge61.4.preheader.new:                    ; preds = %._crit_edge61.4.preheader
  %unroll_iter140 = and i64 %30, 2147483644
  br label %._crit_edge61.4

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

._crit_edge61.5.preheader.unr-lcssa:              ; preds = %._crit_edge61.4, %._crit_edge61.4.preheader
  %indvars.iv91.5.unr = phi i64 [ 1, %._crit_edge61.4.preheader ], [ %indvars.iv.next92.5.3, %._crit_edge61.4 ]
  %lcmp.mod139.not = icmp eq i64 %xtraiter137, 0
  br i1 %lcmp.mod139.not, label %._crit_edge61.5.preheader, label %._crit_edge61.4.epil

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

._crit_edge61.5.preheader:                        ; preds = %._crit_edge61.4.epil, %._crit_edge61.5.preheader.unr-lcssa
  %xtraiter142 = and i64 %30, 3
  %203 = icmp ult i32 %29, 4
  br i1 %203, label %._crit_edge61.6.preheader.unr-lcssa, label %._crit_edge61.5.preheader.new

._crit_edge61.5.preheader.new:                    ; preds = %._crit_edge61.5.preheader
  %unroll_iter145 = and i64 %30, 2147483644
  br label %._crit_edge61.5

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

._crit_edge61.6.preheader.unr-lcssa:              ; preds = %._crit_edge61.5, %._crit_edge61.5.preheader
  %indvars.iv91.6.unr = phi i64 [ 1, %._crit_edge61.5.preheader ], [ %indvars.iv.next92.6.3, %._crit_edge61.5 ]
  %lcmp.mod144.not = icmp eq i64 %xtraiter142, 0
  br i1 %lcmp.mod144.not, label %._crit_edge61.6.preheader, label %._crit_edge61.5.epil

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

._crit_edge61.6.preheader:                        ; preds = %._crit_edge61.5.epil, %._crit_edge61.6.preheader.unr-lcssa
  %xtraiter147 = and i64 %30, 3
  %234 = icmp ult i32 %29, 4
  br i1 %234, label %._crit_edge61.7.preheader.unr-lcssa, label %._crit_edge61.6.preheader.new

._crit_edge61.6.preheader.new:                    ; preds = %._crit_edge61.6.preheader
  %unroll_iter150 = and i64 %30, 2147483644
  br label %._crit_edge61.6

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

._crit_edge61.7.preheader.unr-lcssa:              ; preds = %._crit_edge61.6, %._crit_edge61.6.preheader
  %indvars.iv91.7.unr = phi i64 [ 1, %._crit_edge61.6.preheader ], [ %indvars.iv.next92.7.3, %._crit_edge61.6 ]
  %lcmp.mod149.not = icmp eq i64 %xtraiter147, 0
  br i1 %lcmp.mod149.not, label %._crit_edge61.7.preheader, label %._crit_edge61.6.epil

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

._crit_edge61.7.preheader:                        ; preds = %._crit_edge61.6.epil, %._crit_edge61.7.preheader.unr-lcssa
  %xtraiter152 = and i64 %30, 3
  %265 = icmp ult i32 %29, 4
  br i1 %265, label %._crit_edge61.8.preheader.unr-lcssa, label %._crit_edge61.7.preheader.new

._crit_edge61.7.preheader.new:                    ; preds = %._crit_edge61.7.preheader
  %unroll_iter155 = and i64 %30, 2147483644
  br label %._crit_edge61.7

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

._crit_edge61.8.preheader.unr-lcssa:              ; preds = %._crit_edge61.7, %._crit_edge61.7.preheader
  %indvars.iv91.8.unr = phi i64 [ 1, %._crit_edge61.7.preheader ], [ %indvars.iv.next92.8.3, %._crit_edge61.7 ]
  %lcmp.mod154.not = icmp eq i64 %xtraiter152, 0
  br i1 %lcmp.mod154.not, label %._crit_edge61.8.preheader, label %._crit_edge61.7.epil

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

._crit_edge61.8.preheader:                        ; preds = %._crit_edge61.7.epil, %._crit_edge61.8.preheader.unr-lcssa
  %xtraiter157 = and i64 %30, 3
  %296 = icmp ult i32 %29, 4
  br i1 %296, label %._crit_edge61.9.preheader.unr-lcssa, label %._crit_edge61.8.preheader.new

._crit_edge61.8.preheader.new:                    ; preds = %._crit_edge61.8.preheader
  %unroll_iter160 = and i64 %30, 2147483644
  br label %._crit_edge61.8

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

._crit_edge61.9.preheader.unr-lcssa:              ; preds = %._crit_edge61.8, %._crit_edge61.8.preheader
  %indvars.iv91.9.unr = phi i64 [ 1, %._crit_edge61.8.preheader ], [ %indvars.iv.next92.9.3, %._crit_edge61.8 ]
  %lcmp.mod159.not = icmp eq i64 %xtraiter157, 0
  br i1 %lcmp.mod159.not, label %._crit_edge61.9.preheader, label %._crit_edge61.8.epil

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

._crit_edge61.9.preheader:                        ; preds = %._crit_edge61.8.epil, %._crit_edge61.9.preheader.unr-lcssa
  %xtraiter162 = and i64 %30, 3
  %327 = icmp ult i32 %29, 4
  br i1 %327, label %._crit_edge61.10.preheader.unr-lcssa, label %._crit_edge61.9.preheader.new

._crit_edge61.9.preheader.new:                    ; preds = %._crit_edge61.9.preheader
  %unroll_iter165 = and i64 %30, 2147483644
  br label %._crit_edge61.9

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

._crit_edge61.10.preheader.unr-lcssa:             ; preds = %._crit_edge61.9, %._crit_edge61.9.preheader
  %indvars.iv91.10.unr = phi i64 [ 1, %._crit_edge61.9.preheader ], [ %indvars.iv.next92.10.3, %._crit_edge61.9 ]
  %lcmp.mod164.not = icmp eq i64 %xtraiter162, 0
  br i1 %lcmp.mod164.not, label %._crit_edge61.10.preheader, label %._crit_edge61.9.epil

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

._crit_edge61.10.preheader:                       ; preds = %._crit_edge61.9.epil, %._crit_edge61.10.preheader.unr-lcssa
  %xtraiter167 = and i64 %30, 3
  %358 = icmp ult i32 %29, 4
  br i1 %358, label %._crit_edge61.11.preheader.unr-lcssa, label %._crit_edge61.10.preheader.new

._crit_edge61.10.preheader.new:                   ; preds = %._crit_edge61.10.preheader
  %unroll_iter170 = and i64 %30, 2147483644
  br label %._crit_edge61.10

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

._crit_edge61.11.preheader.unr-lcssa:             ; preds = %._crit_edge61.10, %._crit_edge61.10.preheader
  %indvars.iv91.11.unr = phi i64 [ 1, %._crit_edge61.10.preheader ], [ %indvars.iv.next92.11.3, %._crit_edge61.10 ]
  %lcmp.mod169.not = icmp eq i64 %xtraiter167, 0
  br i1 %lcmp.mod169.not, label %._crit_edge61.11.preheader, label %._crit_edge61.10.epil

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

._crit_edge61.11.preheader:                       ; preds = %._crit_edge61.10.epil, %._crit_edge61.11.preheader.unr-lcssa
  %xtraiter172 = and i64 %30, 3
  %389 = icmp ult i32 %29, 4
  br i1 %389, label %._crit_edge61.12.preheader.unr-lcssa, label %._crit_edge61.11.preheader.new

._crit_edge61.11.preheader.new:                   ; preds = %._crit_edge61.11.preheader
  %unroll_iter175 = and i64 %30, 2147483644
  br label %._crit_edge61.11

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

._crit_edge61.12.preheader.unr-lcssa:             ; preds = %._crit_edge61.11, %._crit_edge61.11.preheader
  %indvars.iv91.12.unr = phi i64 [ 1, %._crit_edge61.11.preheader ], [ %indvars.iv.next92.12.3, %._crit_edge61.11 ]
  %lcmp.mod174.not = icmp eq i64 %xtraiter172, 0
  br i1 %lcmp.mod174.not, label %._crit_edge61.12.preheader, label %._crit_edge61.11.epil

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

._crit_edge61.12.preheader:                       ; preds = %._crit_edge61.11.epil, %._crit_edge61.12.preheader.unr-lcssa
  %xtraiter177 = and i64 %30, 3
  %420 = icmp ult i32 %29, 4
  br i1 %420, label %._crit_edge61.13.preheader.unr-lcssa, label %._crit_edge61.12.preheader.new

._crit_edge61.12.preheader.new:                   ; preds = %._crit_edge61.12.preheader
  %unroll_iter180 = and i64 %30, 2147483644
  br label %._crit_edge61.12

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

._crit_edge61.13.preheader.unr-lcssa:             ; preds = %._crit_edge61.12, %._crit_edge61.12.preheader
  %indvars.iv91.13.unr = phi i64 [ 1, %._crit_edge61.12.preheader ], [ %indvars.iv.next92.13.3, %._crit_edge61.12 ]
  %lcmp.mod179.not = icmp eq i64 %xtraiter177, 0
  br i1 %lcmp.mod179.not, label %._crit_edge61.13.preheader, label %._crit_edge61.12.epil

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

._crit_edge61.13.preheader:                       ; preds = %._crit_edge61.12.epil, %._crit_edge61.13.preheader.unr-lcssa
  %xtraiter182 = and i64 %30, 3
  %451 = icmp ult i32 %29, 4
  br i1 %451, label %._crit_edge61.14.preheader.unr-lcssa, label %._crit_edge61.13.preheader.new

._crit_edge61.13.preheader.new:                   ; preds = %._crit_edge61.13.preheader
  %unroll_iter185 = and i64 %30, 2147483644
  br label %._crit_edge61.13

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

._crit_edge61.14.preheader.unr-lcssa:             ; preds = %._crit_edge61.13, %._crit_edge61.13.preheader
  %indvars.iv91.14.unr = phi i64 [ 1, %._crit_edge61.13.preheader ], [ %indvars.iv.next92.14.3, %._crit_edge61.13 ]
  %lcmp.mod184.not = icmp eq i64 %xtraiter182, 0
  br i1 %lcmp.mod184.not, label %._crit_edge61.14.preheader, label %._crit_edge61.13.epil

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

._crit_edge61.14.preheader:                       ; preds = %._crit_edge61.13.epil, %._crit_edge61.14.preheader.unr-lcssa
  %xtraiter187 = and i64 %30, 3
  %482 = icmp ult i32 %29, 4
  br i1 %482, label %.split64.us.loopexit.unr-lcssa, label %._crit_edge61.14.preheader.new

._crit_edge61.14.preheader.new:                   ; preds = %._crit_edge61.14.preheader
  %unroll_iter190 = and i64 %30, 2147483644
  br label %._crit_edge61.14

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

507:                                              ; preds = %507, %.preheader55.preheader.new
  %indvars.iv91 = phi i64 [ 1, %.preheader55.preheader.new ], [ %indvars.iv.next92.3113, %507 ]
  %niter = phi i64 [ 0, %.preheader55.preheader.new ], [ %niter.next.3, %507 ]
  %508 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %indvars.iv91
  %509 = load i32, ptr %508, align 4, !tbaa !9
  %510 = sext i32 %509 to i64
  %511 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %510
  %512 = load i32, ptr %511, align 4, !tbaa !9
  %513 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv91
  store i32 %512, ptr %513, align 4, !tbaa !9
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %514 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %indvars.iv.next92
  %515 = load i32, ptr %514, align 4, !tbaa !9
  %516 = sext i32 %515 to i64
  %517 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %516
  %518 = load i32, ptr %517, align 4, !tbaa !9
  %519 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv.next92
  store i32 %518, ptr %519, align 4, !tbaa !9
  %indvars.iv.next92.1109 = add nuw nsw i64 %indvars.iv91, 2
  %520 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %indvars.iv.next92.1109
  %521 = load i32, ptr %520, align 4, !tbaa !9
  %522 = sext i32 %521 to i64
  %523 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %522
  %524 = load i32, ptr %523, align 4, !tbaa !9
  %525 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv.next92.1109
  store i32 %524, ptr %525, align 4, !tbaa !9
  %indvars.iv.next92.2111 = add nuw nsw i64 %indvars.iv91, 3
  %526 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %indvars.iv.next92.2111
  %527 = load i32, ptr %526, align 4, !tbaa !9
  %528 = sext i32 %527 to i64
  %529 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %528
  %530 = load i32, ptr %529, align 4, !tbaa !9
  %531 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv.next92.2111
  store i32 %530, ptr %531, align 4, !tbaa !9
  %indvars.iv.next92.3113 = add nuw nsw i64 %indvars.iv91, 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_edge61.preheader.unr-lcssa, label %507, !llvm.loop !16

._crit_edge61.preheader.unr-lcssa:                ; preds = %507, %.preheader55.preheader
  %indvars.iv91.unr = phi i64 [ 1, %.preheader55.preheader ], [ %indvars.iv.next92.3113, %507 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge61.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge61.preheader.unr-lcssa, %.epil.preheader
  %indvars.iv91.epil = phi i64 [ %indvars.iv.next92.epil, %.epil.preheader ], [ %indvars.iv91.unr, %._crit_edge61.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge61.preheader.unr-lcssa ]
  %532 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %indvars.iv91.epil
  %533 = load i32, ptr %532, align 4, !tbaa !9
  %534 = sext i32 %533 to i64
  %535 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 0, i64 %534
  %536 = load i32, ptr %535, align 4, !tbaa !9
  %537 = getelementptr inbounds [17 x [131072 x i32]], ptr @p, i64 0, i64 1, i64 %indvars.iv91.epil
  store i32 %536, ptr %537, align 4, !tbaa !9
  %indvars.iv.next92.epil = add nuw nsw i64 %indvars.iv91.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_edge61.preheader, label %.epil.preheader, !llvm.loop !31

._crit_edge61.preheader:                          ; preds = %.epil.preheader, %._crit_edge61.preheader.unr-lcssa
  %xtraiter114 = and i64 %30, 3
  %538 = icmp ult i32 %29, 4
  br i1 %538, label %._crit_edge61.1.preheader.unr-lcssa, label %._crit_edge61.preheader.new

._crit_edge61.preheader.new:                      ; preds = %._crit_edge61.preheader
  %unroll_iter117 = and i64 %30, 2147483644
  br label %._crit_edge61

._crit_edge82:                                    ; preds = %588, %.split64.us
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0

.lr.ph81:                                         ; preds = %.split64.us, %588
  %.03779 = phi i32 [ %589, %588 ], [ 1, %.split64.us ]
  %539 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %540 = load i8, ptr %5, align 1, !tbaa !32
  %541 = icmp eq i8 %540, 85
  %542 = load i64, ptr %6, align 8, !tbaa !5
  %543 = trunc i64 %542 to i32
  %544 = load i64, ptr %7, align 8, !tbaa !5
  br i1 %541, label %545, label %546

545:                                              ; preds = %.lr.ph81
  call void @_Z6updateix(i32 noundef %543, i64 noundef %544)
  br label %588

546:                                              ; preds = %.lr.ph81
  %547 = trunc i64 %544 to i32
  %548 = call noundef i32 @_Z3LCAii(i32 noundef %543, i32 noundef %547)
  %549 = sext i32 %548 to i64
  %.promoted = load i64, ptr %6, align 8, !tbaa !5
  %550 = getelementptr inbounds [131072 x i64], ptr @cost, i64 0, i64 %.promoted
  %551 = load i64, ptr %550, align 8, !tbaa !5
  %552 = icmp sgt i64 %551, 1000000006
  %553 = add nsw i64 %551, -1000000007
  %spec.select5265 = select i1 %552, i64 %553, i64 %551
  %554 = icmp eq i64 %.promoted, %549
  br i1 %554, label %.preheader, label %.lr.ph68

..preheader_crit_edge:                            ; preds = %.lr.ph68
  store i64 %564, ptr %6, align 8, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %..preheader_crit_edge, %546
  %spec.select52.lcssa = phi i64 [ %spec.select52, %..preheader_crit_edge ], [ %spec.select5265, %546 ]
  %.promoted71 = load i64, ptr %7, align 8, !tbaa !5
  %555 = getelementptr inbounds [131072 x i64], ptr @cost, i64 0, i64 %.promoted71
  %556 = load i64, ptr %555, align 8, !tbaa !5
  %557 = add nsw i64 %556, %spec.select52.lcssa
  %558 = icmp sgt i64 %557, 1000000006
  %559 = add nsw i64 %557, -1000000007
  %spec.select5372 = select i1 %558, i64 %559, i64 %557
  %560 = icmp eq i64 %.promoted71, %549
  br i1 %560, label %581, label %.lr.ph74

.lr.ph68:                                         ; preds = %546, %.lr.ph68
  %spec.select5266 = phi i64 [ %spec.select52, %.lr.ph68 ], [ %spec.select5265, %546 ]
  %561 = phi i64 [ %564, %.lr.ph68 ], [ %.promoted, %546 ]
  %562 = getelementptr inbounds [131072 x i32], ptr @p, i64 0, i64 %561
  %563 = load i32, ptr %562, align 4, !tbaa !9
  %564 = sext i32 %563 to i64
  %565 = getelementptr inbounds [131072 x i64], ptr @cost, i64 0, i64 %564
  %566 = load i64, ptr %565, align 8, !tbaa !5
  %567 = add nsw i64 %566, %spec.select5266
  %568 = icmp sgt i64 %567, 1000000006
  %569 = add nsw i64 %567, -1000000007
  %spec.select52 = select i1 %568, i64 %569, i64 %567
  %570 = icmp eq i32 %563, %548
  br i1 %570, label %..preheader_crit_edge, label %.lr.ph68, !llvm.loop !33

.lr.ph74:                                         ; preds = %.preheader, %.lr.ph74
  %spec.select5373 = phi i64 [ %spec.select53, %.lr.ph74 ], [ %spec.select5372, %.preheader ]
  %571 = phi i64 [ %574, %.lr.ph74 ], [ %.promoted71, %.preheader ]
  %572 = getelementptr inbounds [131072 x i32], ptr @p, i64 0, i64 %571
  %573 = load i32, ptr %572, align 4, !tbaa !9
  %574 = sext i32 %573 to i64
  %575 = getelementptr inbounds [131072 x i64], ptr @cost, i64 0, i64 %574
  %576 = load i64, ptr %575, align 8, !tbaa !5
  %577 = add nsw i64 %576, %spec.select5373
  %578 = icmp sgt i64 %577, 1000000006
  %579 = add nsw i64 %577, -1000000007
  %spec.select53 = select i1 %578, i64 %579, i64 %577
  %580 = icmp eq i32 %573, %548
  br i1 %580, label %._crit_edge75, label %.lr.ph74, !llvm.loop !34

._crit_edge75:                                    ; preds = %.lr.ph74
  store i64 %574, ptr %7, align 8, !tbaa !5
  br label %581

581:                                              ; preds = %._crit_edge75, %.preheader
  %spec.select53.lcssa = phi i64 [ %spec.select53, %._crit_edge75 ], [ %spec.select5372, %.preheader ]
  %582 = getelementptr inbounds [131072 x i64], ptr @cost, i64 0, i64 %549
  %583 = load i64, ptr %582, align 8, !tbaa !5
  %584 = sub nsw i64 %spec.select53.lcssa, %583
  %585 = add nsw i64 %584, 1000000007
  %586 = icmp slt i64 %584, 0
  %spec.select54 = select i1 %586, i64 %585, i64 %584
  %587 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef %spec.select54)
  br label %588

588:                                              ; preds = %545, %581
  %589 = add nuw nsw i32 %.03779, 1
  %590 = load i32, ptr %2, align 4, !tbaa !9
  %.not.not = icmp slt i32 %.03779, %590
  br i1 %.not.not, label %.lr.ph81, label %._crit_edge82, !llvm.loop !35
}

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

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

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}
!31 = distinct !{!31, !15}
!32 = !{!7, !7, i64 0}
!33 = distinct !{!33, !12}
!34 = distinct !{!34, !12}
!35 = distinct !{!35, !12}


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