; LLVM IR from Mohammed-Shoaib/Coding-Problems :: Codeforces/Solutions/1287C.ll (Z7garlandiRSt6vectorIiSaIiEE)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z7garlandiRSt6vectorIiSaIiEE(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1000000000, ptr %5, align 4, !tbaa !5
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = add nsw i32 %16, 1
  %18 = zext i32 %17 to i64
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = add nsw i32 %19, 1
  %21 = zext i32 %20 to i64
  %22 = call ptr @llvm.stacksave.p0()
  store ptr %22, ptr %6, align 8
  %23 = mul nuw i64 %18, %21
  %24 = alloca [2 x i32], i64 %23, align 16
  store i64 %18, ptr %7, align 8
  store i64 %21, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %58, %2
  %26 = load i32, ptr %9, align 4, !tbaa !5
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = icmp sle i32 %26, %27
  br i1 %28, label %30, label %29

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

30:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %54, %30
  %32 = load i32, ptr %11, align 4, !tbaa !5
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = icmp sle i32 %32, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %31
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = load i32, ptr %9, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = mul nsw i64 %39, %21
  %41 = getelementptr inbounds [2 x i32], ptr %24, i64 %40
  %42 = load i32, ptr %11, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [2 x i32], ptr %41, i64 %43
  %45 = getelementptr inbounds [2 x i32], ptr %44, i64 0, i64 1
  store i32 %37, ptr %45, align 4, !tbaa !5
  %46 = load i32, ptr %9, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = mul nsw i64 %47, %21
  %49 = getelementptr inbounds [2 x i32], ptr %24, i64 %48
  %50 = load i32, ptr %11, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [2 x i32], ptr %49, i64 %51
  %53 = getelementptr inbounds [2 x i32], ptr %52, i64 0, i64 0
  store i32 %37, ptr %53, align 8, !tbaa !5
  br label %54

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

57:                                               ; preds = %35
  br label %58

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

61:                                               ; preds = %29
  %62 = mul nsw i64 0, %21
  %63 = getelementptr inbounds [2 x i32], ptr %24, i64 %62
  %64 = getelementptr inbounds [2 x i32], ptr %63, i64 0
  %65 = getelementptr inbounds [2 x i32], ptr %64, i64 0, i64 1
  store i32 0, ptr %65, align 4, !tbaa !5
  %66 = mul nsw i64 0, %21
  %67 = getelementptr inbounds [2 x i32], ptr %24, i64 %66
  %68 = getelementptr inbounds [2 x i32], ptr %67, i64 0
  %69 = getelementptr inbounds [2 x i32], ptr %68, i64 0, i64 0
  store i32 0, ptr %69, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %176, %61
  %71 = load i32, ptr %12, align 4, !tbaa !5
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = icmp sle i32 %71, %72
  br i1 %73, label %75, label %74

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

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

76:                                               ; preds = %172, %75
  %77 = load i32, ptr %13, align 4, !tbaa !5
  %78 = load i32, ptr %12, align 4, !tbaa !5
  %79 = icmp sle i32 %77, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %175

81:                                               ; preds = %76
  %82 = load ptr, ptr %4, align 8, !tbaa !9
  %83 = load i32, ptr %12, align 4, !tbaa !5
  %84 = sub nsw i32 %83, 1
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %85) #5
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = srem i32 %87, 2
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %123

90:                                               ; preds = %81
  %91 = load i32, ptr %12, align 4, !tbaa !5
  %92 = sub nsw i32 %91, 1
  %93 = sext i32 %92 to i64
  %94 = mul nsw i64 %93, %21
  %95 = getelementptr inbounds [2 x i32], ptr %24, i64 %94
  %96 = load i32, ptr %13, align 4, !tbaa !5
  %97 = sub nsw i32 %96, 1
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [2 x i32], ptr %95, i64 %98
  %100 = getelementptr inbounds [2 x i32], ptr %99, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %101 = load i32, ptr %12, align 4, !tbaa !5
  %102 = sub nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = mul nsw i64 %103, %21
  %105 = getelementptr inbounds [2 x i32], ptr %24, i64 %104
  %106 = load i32, ptr %13, align 4, !tbaa !5
  %107 = sub nsw i32 %106, 1
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [2 x i32], ptr %105, i64 %108
  %110 = getelementptr inbounds [2 x i32], ptr %109, i64 0, i64 1
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %14, align 4, !tbaa !5
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %100, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = load i32, ptr %12, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = mul nsw i64 %116, %21
  %118 = getelementptr inbounds [2 x i32], ptr %24, i64 %117
  %119 = load i32, ptr %13, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [2 x i32], ptr %118, i64 %120
  %122 = getelementptr inbounds [2 x i32], ptr %121, i64 0, i64 0
  store i32 %114, ptr %122, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %123

123:                                              ; preds = %90, %81
  %124 = load ptr, ptr %4, align 8, !tbaa !9
  %125 = load i32, ptr %12, align 4, !tbaa !5
  %126 = sub nsw i32 %125, 1
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %127) #5
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = srem i32 %129, 2
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %140, label %132

132:                                              ; preds = %123
  %133 = load ptr, ptr %4, align 8, !tbaa !9
  %134 = load i32, ptr %12, align 4, !tbaa !5
  %135 = sub nsw i32 %134, 1
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %136) #5
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = icmp eq i32 %138, 0
  br i1 %139, label %140, label %171

140:                                              ; preds = %132, %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %141 = load i32, ptr %12, align 4, !tbaa !5
  %142 = sub nsw i32 %141, 1
  %143 = sext i32 %142 to i64
  %144 = mul nsw i64 %143, %21
  %145 = getelementptr inbounds [2 x i32], ptr %24, i64 %144
  %146 = load i32, ptr %13, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [2 x i32], ptr %145, i64 %147
  %149 = getelementptr inbounds [2 x i32], ptr %148, i64 0, i64 0
  %150 = load i32, ptr %149, align 8, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %15, align 4, !tbaa !5
  %152 = load i32, ptr %12, align 4, !tbaa !5
  %153 = sub nsw i32 %152, 1
  %154 = sext i32 %153 to i64
  %155 = mul nsw i64 %154, %21
  %156 = getelementptr inbounds [2 x i32], ptr %24, i64 %155
  %157 = load i32, ptr %13, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [2 x i32], ptr %156, i64 %158
  %160 = getelementptr inbounds [2 x i32], ptr %159, i64 0, i64 1
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %160)
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = load i32, ptr %12, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = mul nsw i64 %164, %21
  %166 = getelementptr inbounds [2 x i32], ptr %24, i64 %165
  %167 = load i32, ptr %13, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [2 x i32], ptr %166, i64 %168
  %170 = getelementptr inbounds [2 x i32], ptr %169, i64 0, i64 1
  store i32 %162, ptr %170, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %171

171:                                              ; preds = %140, %132
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %13, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %13, align 4, !tbaa !5
  br label %76, !llvm.loop !14

175:                                              ; preds = %80
  br label %176

176:                                              ; preds = %175
  %177 = load i32, ptr %12, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %12, align 4, !tbaa !5
  br label %70, !llvm.loop !15

179:                                              ; preds = %74
  %180 = load i32, ptr %3, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = mul nsw i64 %181, %21
  %183 = getelementptr inbounds [2 x i32], ptr %24, i64 %182
  %184 = load i32, ptr %3, align 4, !tbaa !5
  %185 = sdiv i32 %184, 2
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [2 x i32], ptr %183, i64 %186
  %188 = getelementptr inbounds [2 x i32], ptr %187, i64 0, i64 0
  %189 = load i32, ptr %3, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = mul nsw i64 %190, %21
  %192 = getelementptr inbounds [2 x i32], ptr %24, i64 %191
  %193 = load i32, ptr %3, align 4, !tbaa !5
  %194 = sdiv i32 %193, 2
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [2 x i32], ptr %192, i64 %195
  %197 = getelementptr inbounds [2 x i32], ptr %196, i64 0, i64 1
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %188, ptr noundef nonnull align 4 dereferenceable(4) %197)
  %199 = load i32, ptr %198, align 4, !tbaa !5
  store i32 1, ptr %10, align 4
  %200 = load ptr, ptr %6, align 8
  call void @llvm.stackrestore.p0(ptr %200)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret i32 %199
}

; 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
declare ptr @llvm.stacksave.p0() #2

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z7garlandiRSt6vectorIiSaIiEE(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = add i32 %0, 1
  %6 = zext i32 %5 to i64
  %7 = mul nuw i64 %6, %6
  %8 = alloca [2 x i32], i64 %7, align 16
  %.not52 = icmp slt i32 %0, 0
  br i1 %.not52, label %._crit_edge54.thread, label %.preheader49.preheader

.preheader49.preheader:                           ; preds = %2
  %min.iters.check = icmp ult i32 %5, 4
  %n.vec = and i64 %6, 4294967292
  %cmp.n = icmp eq i64 %n.vec, %6
  br label %.preheader49

._crit_edge54.thread:                             ; preds = %2
  %9 = getelementptr inbounds i8, ptr %8, i64 4
  store i32 0, ptr %9, align 4, !tbaa !5
  store i32 0, ptr %8, align 16, !tbaa !5
  br label %._crit_edge58

.preheader49:                                     ; preds = %.preheader49.preheader, %._crit_edge
  %indvars.iv60 = phi i64 [ %indvars.iv.next61, %._crit_edge ], [ 0, %.preheader49.preheader ]
  %10 = mul nuw nsw i64 %indvars.iv60, %6
  %11 = getelementptr inbounds [2 x i32], ptr %8, i64 %10
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader49
  %indvars.iv.ph = phi i64 [ 0, %.preheader49 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.body:                                      ; preds = %.preheader49, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader49 ]
  %12 = or disjoint i64 %index, 2
  %13 = getelementptr inbounds [2 x i32], ptr %11, i64 %index
  %14 = getelementptr inbounds [2 x i32], ptr %11, i64 %12
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr %13, align 8, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr %14, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %15 = icmp eq i64 %index.next, %n.vec
  br i1 %15, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge54:                                    ; preds = %._crit_edge
  %16 = getelementptr inbounds i8, ptr %8, i64 4
  store i32 0, ptr %16, align 4, !tbaa !5
  store i32 0, ptr %8, align 16, !tbaa !5
  %.not4556 = icmp eq i32 %0, 0
  br i1 %.not4556, label %._crit_edge58, label %.preheader

._crit_edge:                                      ; preds = %scalar.ph, %middle.block
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %exitcond64.not = icmp eq i64 %indvars.iv.next61, %6
  br i1 %exitcond64.not, label %._crit_edge54, label %.preheader49, !llvm.loop !13

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %17 = getelementptr inbounds [2 x i32], ptr %11, i64 %indvars.iv
  %18 = getelementptr inbounds i8, ptr %17, i64 4
  store i32 1000000000, ptr %18, align 4, !tbaa !5
  store i32 1000000000, ptr %17, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %6
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !14

.preheader:                                       ; preds = %._crit_edge54, %33
  %indvars.iv74 = phi i64 [ %indvars.iv.next75, %33 ], [ 1, %._crit_edge54 ]
  %indvars.iv72 = phi i64 [ %indvars.iv.next73, %33 ], [ 2, %._crit_edge54 ]
  %19 = add nsw i64 %indvars.iv74, -1
  %20 = mul nuw nsw i64 %19, %6
  %21 = getelementptr inbounds [2 x i32], ptr %8, i64 %20
  %22 = mul nuw nsw i64 %indvars.iv74, %6
  %23 = getelementptr inbounds [2 x i32], ptr %8, i64 %22
  br label %34

._crit_edge58:                                    ; preds = %33, %._crit_edge54.thread, %._crit_edge54
  %24 = sext i32 %0 to i64
  %25 = mul nsw i64 %6, %24
  %26 = getelementptr inbounds [2 x i32], ptr %8, i64 %25
  %27 = sdiv i32 %0, 2
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [2 x i32], ptr %26, i64 %28
  %30 = getelementptr inbounds i8, ptr %29, i64 4
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %32 = load i32, ptr %31, align 4, !tbaa !5
  ret i32 %32

33:                                               ; preds = %64
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %exitcond80.not = icmp eq i64 %indvars.iv.next75, %6
  br i1 %exitcond80.not, label %._crit_edge58, label %.preheader, !llvm.loop !15

34:                                               ; preds = %.preheader, %64
  %indvars.iv65 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next66, %64 ]
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %19) #3
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = and i32 %36, 1
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %48

39:                                               ; preds = %34
  %40 = getelementptr [2 x i32], ptr %21, i64 %indvars.iv65
  %41 = getelementptr i8, ptr %40, i64 -8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %42 = getelementptr i8, ptr %40, i64 -4
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %3, align 4, !tbaa !5
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %41, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = getelementptr inbounds [2 x i32], ptr %23, i64 %indvars.iv65
  store i32 %46, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %48

48:                                               ; preds = %39, %34
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %19) #3
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = and i32 %50, 1
  %.not47 = icmp eq i32 %51, 0
  br i1 %.not47, label %52, label %56

52:                                               ; preds = %48
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %19) #3
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %64

56:                                               ; preds = %52, %48
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %57 = getelementptr inbounds [2 x i32], ptr %21, i64 %indvars.iv65
  %58 = load i32, ptr %57, align 8, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %4, align 4, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %57, i64 4
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %60)
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = getelementptr inbounds [2 x i32], ptr %23, i64 %indvars.iv65, i64 1
  store i32 %62, ptr %63, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  br label %64

64:                                               ; preds = %52, %56
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %exitcond71.not = icmp eq i64 %indvars.iv.next66, %indvars.iv72
  br i1 %exitcond71.not, label %33, label %34, !llvm.loop !16
}

; 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

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

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

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


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