; LLVM IR from kazunetakahashi/atcoder :: 2019/0831_chokudai004/A.ll (Z4calciii)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@N = external dso_local global i32, align 4
@B = external dso_local global %"class.std::vector", align 8
@ans = external dso_local global %"class.std::vector.0", align 8

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

; 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) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z4calciii(i32 noundef %0, i32 noundef %1, i32 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  %17 = load i32, ptr %6, align 4, !tbaa !5
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %19) #2
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %22) #2
  store i32 %17, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %93, %3
  %25 = load i32, ptr %8, align 4, !tbaa !5
  %26 = icmp slt i32 %25, 3
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  br label %96

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #2
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #2
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #2
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %89, %28
  %30 = load i32, ptr %12, align 4, !tbaa !5
  %31 = load i32, ptr @N, align 4, !tbaa !5
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %34, label %33

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

34:                                               ; preds = %29
  br label %35

35:                                               ; preds = %54, %34
  %36 = load i32, ptr %11, align 4, !tbaa !5
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = icmp sle i32 %36, %37
  br i1 %38, label %52, label %39

39:                                               ; preds = %35
  %40 = load i32, ptr %11, align 4, !tbaa !5
  %41 = load i32, ptr @N, align 4, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %43, label %50

43:                                               ; preds = %39
  %44 = load i32, ptr %10, align 4, !tbaa !5
  %45 = load i32, ptr %8, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef %46) #2
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = icmp slt i32 %44, %48
  br label %50

50:                                               ; preds = %43, %39
  %51 = phi i1 [ false, %39 ], [ %49, %43 ]
  br label %52

52:                                               ; preds = %50, %35
  %53 = phi i1 [ true, %35 ], [ %51, %50 ]
  br i1 %53, label %54, label %65

54:                                               ; preds = %52
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %56) #2
  %58 = load i32, ptr %11, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %11, align 4, !tbaa !5
  %60 = sext i32 %58 to i64
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %60) #2
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = load i32, ptr %10, align 4, !tbaa !5
  %64 = add nsw i32 %63, %62
  store i32 %64, ptr %10, align 4, !tbaa !5
  br label %35, !llvm.loop !9

65:                                               ; preds = %52
  %66 = load i32, ptr %10, align 4, !tbaa !5
  %67 = load i32, ptr %8, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef %68) #2
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = icmp eq i32 %66, %70
  br i1 %71, label %72, label %79

72:                                               ; preds = %65
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef %74) #2
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = add nsw i32 %77, %76
  store i32 %78, ptr %7, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %72, %65
  %80 = load i32, ptr %4, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %81) #2
  %83 = load i32, ptr %12, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84) #2
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = sub nsw i32 %87, %86
  store i32 %88, ptr %10, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %79
  %90 = load i32, ptr %12, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %12, align 4, !tbaa !5
  br label %29, !llvm.loop !11

92:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %8, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %8, align 4, !tbaa !5
  br label %24, !llvm.loop !12

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

97:                                               ; preds = %166, %96
  %98 = load i32, ptr %13, align 4, !tbaa !5
  %99 = icmp slt i32 %98, 3
  br i1 %99, label %101, label %100

100:                                              ; preds = %97
  store i32 10, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #2
  br label %169

101:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #2
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #2
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #2
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %162, %101
  %103 = load i32, ptr %16, align 4, !tbaa !5
  %104 = load i32, ptr @N, align 4, !tbaa !5
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102
  store i32 13, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #2
  br label %165

107:                                              ; preds = %102
  br label %108

108:                                              ; preds = %127, %107
  %109 = load i32, ptr %15, align 4, !tbaa !5
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = icmp sle i32 %109, %110
  br i1 %111, label %125, label %112

112:                                              ; preds = %108
  %113 = load i32, ptr %15, align 4, !tbaa !5
  %114 = load i32, ptr @N, align 4, !tbaa !5
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %116, label %123

116:                                              ; preds = %112
  %117 = load i32, ptr %14, align 4, !tbaa !5
  %118 = load i32, ptr %13, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef %119) #2
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = icmp slt i32 %117, %121
  br label %123

123:                                              ; preds = %116, %112
  %124 = phi i1 [ false, %112 ], [ %122, %116 ]
  br label %125

125:                                              ; preds = %123, %108
  %126 = phi i1 [ true, %108 ], [ %124, %123 ]
  br i1 %126, label %127, label %138

127:                                              ; preds = %125
  %128 = load i32, ptr %15, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %15, align 4, !tbaa !5
  %130 = sext i32 %128 to i64
  %131 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %130) #2
  %132 = load i32, ptr %5, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %133) #2
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = load i32, ptr %14, align 4, !tbaa !5
  %137 = add nsw i32 %136, %135
  store i32 %137, ptr %14, align 4, !tbaa !5
  br label %108, !llvm.loop !13

138:                                              ; preds = %125
  %139 = load i32, ptr %14, align 4, !tbaa !5
  %140 = load i32, ptr %13, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef %141) #2
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = icmp eq i32 %139, %143
  br i1 %144, label %145, label %152

145:                                              ; preds = %138
  %146 = load i32, ptr %13, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef %147) #2
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = load i32, ptr %7, align 4, !tbaa !5
  %151 = add nsw i32 %150, %149
  store i32 %151, ptr %7, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %145, %138
  %153 = load i32, ptr %16, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %154) #2
  %156 = load i32, ptr %5, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %157) #2
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = load i32, ptr %14, align 4, !tbaa !5
  %161 = sub nsw i32 %160, %159
  store i32 %161, ptr %14, align 4, !tbaa !5
  br label %162

162:                                              ; preds = %152
  %163 = load i32, ptr %16, align 4, !tbaa !5
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %16, align 4, !tbaa !5
  br label %102, !llvm.loop !14

165:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #2
  br label %166

166:                                              ; preds = %165
  %167 = load i32, ptr %13, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %13, align 4, !tbaa !5
  br label %97, !llvm.loop !15

169:                                              ; preds = %100
  %170 = load i32, ptr %4, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %171) #2
  %173 = load i32, ptr %5, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %174) #2
  store i32 0, ptr %175, align 4, !tbaa !5
  %176 = load i32, ptr %7, align 4, !tbaa !5
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  ret i32 %176
}

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@N = external dso_local local_unnamed_addr global i32, align 4
@B = external dso_local global %"class.std::vector", align 8
@ans = external dso_local global %"class.std::vector.0", align 8

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z4calciii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = sext i32 %0 to i64
  %5 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %4) #1
  %6 = sext i32 %1 to i64
  %7 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #1
  store i32 %2, ptr %7, align 4, !tbaa !5
  %8 = load i32, ptr @N, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.preheader65, label %.split83.us

.preheader64:                                     ; preds = %60
  %10 = icmp sgt i32 %65, 0
  br i1 %10, label %.preheader, label %.split83.us

.preheader65:                                     ; preds = %3, %92
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %92 ], [ 0, %3 ]
  %.05569 = phi i64 [ %indvars.iv, %92 ], [ 0, %3 ]
  %.05768 = phi i32 [ %96, %92 ], [ 0, %3 ]
  %.16167 = phi i32 [ %.2, %92 ], [ 0, %3 ]
  %sext = shl i64 %.05569, 32
  %11 = ashr exact i64 %sext, 32
  br label %72

._crit_edge:                                      ; preds = %92
  %12 = icmp sgt i32 %97, 0
  br i1 %12, label %.preheader65.1, label %.split83.us

.preheader65.1:                                   ; preds = %._crit_edge, %30
  %indvars.iv88.1 = phi i64 [ %indvars.iv.next89.1, %30 ], [ 0, %._crit_edge ]
  %.05569.1 = phi i64 [ %indvars.iv.1, %30 ], [ 0, %._crit_edge ]
  %.05768.1 = phi i32 [ %34, %30 ], [ 0, %._crit_edge ]
  %.16167.1 = phi i32 [ %.2.1, %30 ], [ %.2, %._crit_edge ]
  %sext103 = shl i64 %.05569.1, 32
  %13 = ashr exact i64 %sext103, 32
  br label %14

14:                                               ; preds = %.critedge.1, %.preheader65.1
  %indvars.iv.1 = phi i64 [ %13, %.preheader65.1 ], [ %indvars.iv.next.1, %.critedge.1 ]
  %.158.1 = phi i32 [ %.05768.1, %.preheader65.1 ], [ %42, %.critedge.1 ]
  %.not62.1 = icmp sgt i64 %indvars.iv.1, %6
  br i1 %.not62.1, label %15, label %.critedge.1

15:                                               ; preds = %14
  %16 = load i32, ptr @N, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = icmp slt i64 %indvars.iv.1, %17
  br i1 %18, label %19, label %.critedge2.1

19:                                               ; preds = %15
  %20 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 1) #1
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = icmp slt i32 %.158.1, %21
  br i1 %22, label %.critedge.1, label %.critedge2.1

.critedge2.1:                                     ; preds = %19, %15
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 1) #1
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = icmp eq i32 %.158.1, %24
  br i1 %25, label %26, label %30

26:                                               ; preds = %.critedge2.1
  %27 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 1) #1
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = add nsw i32 %28, %.16167.1
  br label %30

30:                                               ; preds = %26, %.critedge2.1
  %.2.1 = phi i32 [ %29, %26 ], [ %.16167.1, %.critedge2.1 ]
  %31 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %4) #1
  %32 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %indvars.iv88.1) #1
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = sub nsw i32 %.158.1, %33
  %indvars.iv.next89.1 = add nuw nsw i64 %indvars.iv88.1, 1
  %35 = load i32, ptr @N, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = icmp slt i64 %indvars.iv.next89.1, %36
  br i1 %37, label %.preheader65.1, label %._crit_edge.1, !llvm.loop !9

._crit_edge.1:                                    ; preds = %30
  %38 = icmp sgt i32 %35, 0
  br i1 %38, label %.preheader65.2, label %.split83.us

.critedge.1:                                      ; preds = %19, %14
  %39 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %4) #1
  %indvars.iv.next.1 = add nsw i64 %indvars.iv.1, 1
  %40 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %indvars.iv.1) #1
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = add nsw i32 %41, %.158.1
  br label %14, !llvm.loop !11

.preheader65.2:                                   ; preds = %._crit_edge.1, %60
  %indvars.iv88.2 = phi i64 [ %indvars.iv.next89.2, %60 ], [ 0, %._crit_edge.1 ]
  %.05569.2 = phi i64 [ %indvars.iv.2, %60 ], [ 0, %._crit_edge.1 ]
  %.05768.2 = phi i32 [ %64, %60 ], [ 0, %._crit_edge.1 ]
  %.16167.2 = phi i32 [ %.2.2, %60 ], [ %.2.1, %._crit_edge.1 ]
  %sext104 = shl i64 %.05569.2, 32
  %43 = ashr exact i64 %sext104, 32
  br label %44

44:                                               ; preds = %.critedge.2, %.preheader65.2
  %indvars.iv.2 = phi i64 [ %43, %.preheader65.2 ], [ %indvars.iv.next.2, %.critedge.2 ]
  %.158.2 = phi i32 [ %.05768.2, %.preheader65.2 ], [ %71, %.critedge.2 ]
  %.not62.2 = icmp sgt i64 %indvars.iv.2, %6
  br i1 %.not62.2, label %45, label %.critedge.2

45:                                               ; preds = %44
  %46 = load i32, ptr @N, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = icmp slt i64 %indvars.iv.2, %47
  br i1 %48, label %49, label %.critedge2.2

49:                                               ; preds = %45
  %50 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 2) #1
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = icmp slt i32 %.158.2, %51
  br i1 %52, label %.critedge.2, label %.critedge2.2

.critedge2.2:                                     ; preds = %49, %45
  %53 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 2) #1
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = icmp eq i32 %.158.2, %54
  br i1 %55, label %56, label %60

56:                                               ; preds = %.critedge2.2
  %57 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 2) #1
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = add nsw i32 %58, %.16167.2
  br label %60

60:                                               ; preds = %56, %.critedge2.2
  %.2.2 = phi i32 [ %59, %56 ], [ %.16167.2, %.critedge2.2 ]
  %61 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %4) #1
  %62 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %indvars.iv88.2) #1
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = sub nsw i32 %.158.2, %63
  %indvars.iv.next89.2 = add nuw nsw i64 %indvars.iv88.2, 1
  %65 = load i32, ptr @N, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = icmp slt i64 %indvars.iv.next89.2, %66
  br i1 %67, label %.preheader65.2, label %.preheader64, !llvm.loop !9

.critedge.2:                                      ; preds = %49, %44
  %68 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %4) #1
  %indvars.iv.next.2 = add nsw i64 %indvars.iv.2, 1
  %69 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %indvars.iv.2) #1
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = add nsw i32 %70, %.158.2
  br label %44, !llvm.loop !11

72:                                               ; preds = %.preheader65, %.critedge
  %indvars.iv = phi i64 [ %11, %.preheader65 ], [ %indvars.iv.next, %.critedge ]
  %.158 = phi i32 [ %.05768, %.preheader65 ], [ %84, %.critedge ]
  %.not62 = icmp sgt i64 %indvars.iv, %6
  br i1 %.not62, label %73, label %.critedge

73:                                               ; preds = %72
  %74 = load i32, ptr @N, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv, %75
  br i1 %76, label %77, label %.critedge2

77:                                               ; preds = %73
  %78 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 0) #1
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = icmp slt i32 %.158, %79
  br i1 %80, label %.critedge, label %.critedge2

.critedge:                                        ; preds = %72, %77
  %81 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %4) #1
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %82 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %indvars.iv) #1
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = add nsw i32 %83, %.158
  br label %72, !llvm.loop !11

.critedge2:                                       ; preds = %73, %77
  %85 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 0) #1
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = icmp eq i32 %.158, %86
  br i1 %87, label %88, label %92

88:                                               ; preds = %.critedge2
  %89 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 0) #1
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = add nsw i32 %90, %.16167
  br label %92

92:                                               ; preds = %88, %.critedge2
  %.2 = phi i32 [ %91, %88 ], [ %.16167, %.critedge2 ]
  %93 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %4) #1
  %94 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %indvars.iv88) #1
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = sub nsw i32 %.158, %95
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %97 = load i32, ptr @N, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = icmp slt i64 %indvars.iv.next89, %98
  br i1 %99, label %.preheader65, label %._crit_edge, !llvm.loop !9

.split83.us:                                      ; preds = %151, %._crit_edge77, %._crit_edge, %3, %._crit_edge77.1, %._crit_edge.1, %.preheader64
  %.us-phi84 = phi i32 [ %.2.2, %.preheader64 ], [ %.2.1, %._crit_edge.1 ], [ %.5.1, %._crit_edge77.1 ], [ 0, %3 ], [ %.2, %._crit_edge ], [ %.5, %._crit_edge77 ], [ %.5.2, %151 ]
  %100 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %4) #1
  %101 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %6) #1
  store i32 0, ptr %101, align 4, !tbaa !5
  ret i32 %.us-phi84

.preheader:                                       ; preds = %.preheader64, %183
  %indvars.iv97 = phi i64 [ %indvars.iv.next98, %183 ], [ 0, %.preheader64 ]
  %.05075 = phi i64 [ %indvars.iv94, %183 ], [ 0, %.preheader64 ]
  %.05174 = phi i32 [ %187, %183 ], [ 0, %.preheader64 ]
  %.473 = phi i32 [ %.5, %183 ], [ %.2.2, %.preheader64 ]
  %sext105 = shl i64 %.05075, 32
  %102 = ashr exact i64 %sext105, 32
  br label %163

._crit_edge77:                                    ; preds = %183
  %103 = icmp sgt i32 %188, 0
  br i1 %103, label %.preheader.1, label %.split83.us

.preheader.1:                                     ; preds = %._crit_edge77, %121
  %indvars.iv97.1 = phi i64 [ %indvars.iv.next98.1, %121 ], [ 0, %._crit_edge77 ]
  %.05075.1 = phi i64 [ %indvars.iv94.1, %121 ], [ 0, %._crit_edge77 ]
  %.05174.1 = phi i32 [ %125, %121 ], [ 0, %._crit_edge77 ]
  %.473.1 = phi i32 [ %.5.1, %121 ], [ %.5, %._crit_edge77 ]
  %sext106 = shl i64 %.05075.1, 32
  %104 = ashr exact i64 %sext106, 32
  br label %105

105:                                              ; preds = %.critedge4.1, %.preheader.1
  %indvars.iv94.1 = phi i64 [ %104, %.preheader.1 ], [ %indvars.iv.next95.1, %.critedge4.1 ]
  %.152.1 = phi i32 [ %.05174.1, %.preheader.1 ], [ %133, %.critedge4.1 ]
  %.not.1 = icmp sgt i64 %indvars.iv94.1, %4
  br i1 %.not.1, label %106, label %.critedge4.1

106:                                              ; preds = %105
  %107 = load i32, ptr @N, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = icmp slt i64 %indvars.iv94.1, %108
  br i1 %109, label %110, label %.critedge6.1

110:                                              ; preds = %106
  %111 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 1) #1
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = icmp slt i32 %.152.1, %112
  br i1 %113, label %.critedge4.1, label %.critedge6.1

.critedge6.1:                                     ; preds = %110, %106
  %114 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 1) #1
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = icmp eq i32 %.152.1, %115
  br i1 %116, label %117, label %121

117:                                              ; preds = %.critedge6.1
  %118 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 1) #1
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = add nsw i32 %119, %.473.1
  br label %121

121:                                              ; preds = %117, %.critedge6.1
  %.5.1 = phi i32 [ %120, %117 ], [ %.473.1, %.critedge6.1 ]
  %122 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %indvars.iv97.1) #1
  %123 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %6) #1
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = sub nsw i32 %.152.1, %124
  %indvars.iv.next98.1 = add nuw nsw i64 %indvars.iv97.1, 1
  %126 = load i32, ptr @N, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = icmp slt i64 %indvars.iv.next98.1, %127
  br i1 %128, label %.preheader.1, label %._crit_edge77.1, !llvm.loop !12

._crit_edge77.1:                                  ; preds = %121
  %129 = icmp sgt i32 %126, 0
  br i1 %129, label %.preheader.2, label %.split83.us

.critedge4.1:                                     ; preds = %110, %105
  %indvars.iv.next95.1 = add nsw i64 %indvars.iv94.1, 1
  %130 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %indvars.iv94.1) #1
  %131 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %6) #1
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = add nsw i32 %132, %.152.1
  br label %105, !llvm.loop !13

.preheader.2:                                     ; preds = %._crit_edge77.1, %151
  %indvars.iv97.2 = phi i64 [ %indvars.iv.next98.2, %151 ], [ 0, %._crit_edge77.1 ]
  %.05075.2 = phi i64 [ %indvars.iv94.2, %151 ], [ 0, %._crit_edge77.1 ]
  %.05174.2 = phi i32 [ %155, %151 ], [ 0, %._crit_edge77.1 ]
  %.473.2 = phi i32 [ %.5.2, %151 ], [ %.5.1, %._crit_edge77.1 ]
  %sext107 = shl i64 %.05075.2, 32
  %134 = ashr exact i64 %sext107, 32
  br label %135

135:                                              ; preds = %.critedge4.2, %.preheader.2
  %indvars.iv94.2 = phi i64 [ %134, %.preheader.2 ], [ %indvars.iv.next95.2, %.critedge4.2 ]
  %.152.2 = phi i32 [ %.05174.2, %.preheader.2 ], [ %162, %.critedge4.2 ]
  %.not.2 = icmp sgt i64 %indvars.iv94.2, %4
  br i1 %.not.2, label %136, label %.critedge4.2

136:                                              ; preds = %135
  %137 = load i32, ptr @N, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = icmp slt i64 %indvars.iv94.2, %138
  br i1 %139, label %140, label %.critedge6.2

140:                                              ; preds = %136
  %141 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 2) #1
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = icmp slt i32 %.152.2, %142
  br i1 %143, label %.critedge4.2, label %.critedge6.2

.critedge6.2:                                     ; preds = %140, %136
  %144 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 2) #1
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = icmp eq i32 %.152.2, %145
  br i1 %146, label %147, label %151

147:                                              ; preds = %.critedge6.2
  %148 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 2) #1
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = add nsw i32 %149, %.473.2
  br label %151

151:                                              ; preds = %147, %.critedge6.2
  %.5.2 = phi i32 [ %150, %147 ], [ %.473.2, %.critedge6.2 ]
  %152 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %indvars.iv97.2) #1
  %153 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef %6) #1
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = sub nsw i32 %.152.2, %154
  %indvars.iv.next98.2 = add nuw nsw i64 %indvars.iv97.2, 1
  %156 = load i32, ptr @N, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = icmp slt i64 %indvars.iv.next98.2, %157
  br i1 %158, label %.preheader.2, label %.split83.us, !llvm.loop !12

.critedge4.2:                                     ; preds = %140, %135
  %indvars.iv.next95.2 = add nsw i64 %indvars.iv94.2, 1
  %159 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %indvars.iv94.2) #1
  %160 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %6) #1
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = add nsw i32 %161, %.152.2
  br label %135, !llvm.loop !13

163:                                              ; preds = %.preheader, %.critedge4
  %indvars.iv94 = phi i64 [ %102, %.preheader ], [ %indvars.iv.next95, %.critedge4 ]
  %.152 = phi i32 [ %.05174, %.preheader ], [ %175, %.critedge4 ]
  %.not = icmp sgt i64 %indvars.iv94, %4
  br i1 %.not, label %164, label %.critedge4

164:                                              ; preds = %163
  %165 = load i32, ptr @N, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = icmp slt i64 %indvars.iv94, %166
  br i1 %167, label %168, label %.critedge6

168:                                              ; preds = %164
  %169 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 0) #1
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = icmp slt i32 %.152, %170
  br i1 %171, label %.critedge4, label %.critedge6

.critedge4:                                       ; preds = %163, %168
  %indvars.iv.next95 = add nsw i64 %indvars.iv94, 1
  %172 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %indvars.iv94) #1
  %173 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %6) #1
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = add nsw i32 %174, %.152
  br label %163, !llvm.loop !13

.critedge6:                                       ; preds = %164, %168
  %176 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 0) #1
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = icmp eq i32 %.152, %177
  br i1 %178, label %179, label %183

179:                                              ; preds = %.critedge6
  %180 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @B, i64 noundef 0) #1
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %182 = add nsw i32 %181, %.473
  br label %183

183:                                              ; preds = %179, %.critedge6
  %.5 = phi i32 [ %182, %179 ], [ %.473, %.critedge6 ]
  %184 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %indvars.iv97) #1
  %185 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %6) #1
  %186 = load i32, ptr %185, align 4, !tbaa !5
  %187 = sub nsw i32 %.152, %186
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %188 = load i32, ptr @N, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = icmp slt i64 %indvars.iv.next98, %189
  br i1 %190, label %.preheader, label %._crit_edge77, !llvm.loop !12
}

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 = { nounwind }

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

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


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