; LLVM IR from VastoLorde95/Competitive-Programming :: SPOJ/Random/RAONE/A.ll (Z3geti)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }

@dp = external dso_local global [10 x [181 x [2 x i32]]], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6digitsi(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i32 noundef) #0

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

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3geti(i32 noundef %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca ptr, align 8
  %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
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = icmp sle i32 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %1
  store i32 0, ptr %2, align 4
  br label %176

25:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #5
  %26 = load i32, ptr %3, align 4, !tbaa !5
  call void @_Z6digitsi(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %4, i32 noundef %26)
  %27 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %27, ptr %28, align 8
  %29 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %30 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %29, ptr %30, align 8
  %31 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8
  %33 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %32, ptr %34)
          to label %35 unwind label %47

35:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %36 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %37 = trunc i64 %36 to i32
  store i32 %37, ptr %9, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @dp, i8 0, i64 14480, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 90, ptr %10, align 4, !tbaa !5
  %38 = load i32, ptr %10, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [181 x [2 x i32]], ptr @dp, i64 0, i64 %39
  %41 = getelementptr inbounds [2 x i32], ptr %40, i64 0, i64 1
  store i32 1, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %152, %35
  %43 = load i32, ptr %11, align 4, !tbaa !5
  %44 = load i32, ptr %9, align 4, !tbaa !5
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %51, label %46

46:                                               ; preds = %42
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %155

47:                                               ; preds = %25
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %7, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %8, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  br label %178

51:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 -90, ptr %13, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %148, %51
  %53 = load i32, ptr %13, align 4, !tbaa !5
  %54 = icmp sle i32 %53, 90
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %151

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %144, %56
  %58 = load i32, ptr %14, align 4, !tbaa !5
  %59 = icmp slt i32 %58, 2
  br i1 %59, label %61, label %60

60:                                               ; preds = %57
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %147

61:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %62 = load i32, ptr %11, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %63
  %65 = load i32, ptr %10, align 4, !tbaa !5
  %66 = load i32, ptr %13, align 4, !tbaa !5
  %67 = add nsw i32 %65, %66
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [181 x [2 x i32]], ptr %64, i64 0, i64 %68
  %70 = load i32, ptr %14, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [2 x i32], ptr %69, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  store i32 %73, ptr %15, align 4, !tbaa !5
  %74 = load i32, ptr %15, align 4, !tbaa !5
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %77, label %76

76:                                               ; preds = %61
  store i32 10, ptr %12, align 4
  br label %141

77:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %78 = load i32, ptr %14, align 4, !tbaa !5
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %85

80:                                               ; preds = %77
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %82) #5
  %84 = load i32, ptr %83, align 4, !tbaa !5
  br label %86

85:                                               ; preds = %77
  br label %86

86:                                               ; preds = %85, %80
  %87 = phi i32 [ %84, %80 ], [ 9, %85 ]
  store i32 %87, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %137, %86
  %89 = load i32, ptr %17, align 4, !tbaa !5
  %90 = load i32, ptr %16, align 4, !tbaa !5
  %91 = icmp sle i32 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %140

93:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %94 = load i32, ptr %9, align 4, !tbaa !5
  %95 = load i32, ptr %11, align 4, !tbaa !5
  %96 = sub nsw i32 %94, %95
  store i32 %96, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %97 = load i32, ptr %18, align 4, !tbaa !5
  %98 = and i32 %97, 1
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %104

100:                                              ; preds = %93
  %101 = load i32, ptr %13, align 4, !tbaa !5
  %102 = load i32, ptr %17, align 4, !tbaa !5
  %103 = sub nsw i32 %101, %102
  br label %108

104:                                              ; preds = %93
  %105 = load i32, ptr %13, align 4, !tbaa !5
  %106 = load i32, ptr %17, align 4, !tbaa !5
  %107 = add nsw i32 %105, %106
  br label %108

108:                                              ; preds = %104, %100
  %109 = phi i32 [ %103, %100 ], [ %107, %104 ]
  store i32 %109, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %110 = load i32, ptr %14, align 4, !tbaa !5
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %119

112:                                              ; preds = %108
  %113 = load i32, ptr %17, align 4, !tbaa !5
  %114 = load i32, ptr %11, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %115) #5
  %117 = load i32, ptr %116, align 4, !tbaa !5
  %118 = icmp eq i32 %113, %117
  br label %119

119:                                              ; preds = %112, %108
  %120 = phi i1 [ false, %108 ], [ %118, %112 ]
  %121 = zext i1 %120 to i32
  store i32 %121, ptr %20, align 4, !tbaa !5
  %122 = load i32, ptr %15, align 4, !tbaa !5
  %123 = load i32, ptr %11, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %125
  %127 = load i32, ptr %10, align 4, !tbaa !5
  %128 = load i32, ptr %19, align 4, !tbaa !5
  %129 = add nsw i32 %127, %128
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [181 x [2 x i32]], ptr %126, i64 0, i64 %130
  %132 = load i32, ptr %20, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [2 x i32], ptr %131, i64 0, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = add nsw i32 %135, %122
  store i32 %136, ptr %134, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %137

137:                                              ; preds = %119
  %138 = load i32, ptr %17, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %17, align 4, !tbaa !5
  br label %88, !llvm.loop !9

140:                                              ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  store i32 0, ptr %12, align 4
  br label %141

141:                                              ; preds = %140, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %142 = load i32, ptr %12, align 4
  switch i32 %142, label %183 [
    i32 0, label %143
    i32 10, label %144
  ]

143:                                              ; preds = %141
  br label %144

144:                                              ; preds = %143, %141
  %145 = load i32, ptr %14, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %14, align 4, !tbaa !5
  br label %57, !llvm.loop !11

147:                                              ; preds = %60
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %13, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %13, align 4, !tbaa !5
  br label %52, !llvm.loop !12

151:                                              ; preds = %55
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %11, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %11, align 4, !tbaa !5
  br label %42, !llvm.loop !13

155:                                              ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %156 = load i32, ptr %9, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %157
  %159 = load i32, ptr %10, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [181 x [2 x i32]], ptr %158, i64 0, i64 %161
  %163 = getelementptr inbounds [2 x i32], ptr %162, i64 0, i64 0
  %164 = load i32, ptr %163, align 8, !tbaa !5
  %165 = load i32, ptr %9, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %166
  %168 = load i32, ptr %10, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [181 x [2 x i32]], ptr %167, i64 0, i64 %170
  %172 = getelementptr inbounds [2 x i32], ptr %171, i64 0, i64 1
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = add nsw i32 %164, %173
  store i32 %174, ptr %21, align 4, !tbaa !5
  %175 = load i32, ptr %21, align 4, !tbaa !5
  store i32 %175, ptr %2, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  br label %176

176:                                              ; preds = %155, %24
  %177 = load i32, ptr %2, align 4
  ret i32 %177

178:                                              ; preds = %47
  %179 = load ptr, ptr %7, align 8
  %180 = load i32, ptr %8, align 4
  %181 = insertvalue { ptr, i32 } poison, ptr %179, 0
  %182 = insertvalue { ptr, i32 } %181, i32 %180, 1
  resume { ptr, i32 } %182

183:                                              ; preds = %141
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #3

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

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

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


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

@dp = external dso_local local_unnamed_addr global [10 x [181 x [2 x i32]]], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6digitsi(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, 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

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3geti(i32 noundef %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector", align 8
  %3 = icmp slt i32 %0, 1
  br i1 %3, label %147, label %4

4:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @_Z6digitsi(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %2, i32 noundef %0)
  %5 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %6 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %5, ptr %6)
          to label %7 unwind label %88

7:                                                ; preds = %4
  %8 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %9 = trunc i64 %8 to i32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(14480) @dp, i8 0, i64 14480, i1 false)
  store i32 1, ptr getelementptr inbounds (i8, ptr @dp, i64 724), align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.preheader53.preheader, label %._crit_edge

.preheader53.preheader:                           ; preds = %7
  %wide.trip.count = and i64 %8, 2147483647
  br label %.preheader53

.preheader53:                                     ; preds = %.preheader53.preheader, %.split68.us
  %indvars.iv126 = phi i64 [ 0, %.preheader53.preheader ], [ %indvars.iv.next127, %.split68.us ]
  %11 = trunc nuw nsw i64 %indvars.iv126 to i32
  %12 = sub i32 %9, %11
  %13 = and i32 %12, 1
  %.not52 = icmp eq i32 %13, 0
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  br i1 %.not52, label %.preheader.us.us, label %.preheader

.preheader.us.us:                                 ; preds = %.preheader53, %.loopexit.us.us.us.us.1
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %.loopexit.us.us.us.us.1 ], [ -90, %.preheader53 ]
  %14 = add nsw i64 %indvars.iv122, 90
  %15 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv126, i64 %14, i64 0
  %16 = load i32, ptr %15, align 8, !tbaa !5
  %.not.us.us.us.us = icmp eq i32 %16, 0
  br i1 %.not.us.us.us.us, label %.loopexit.us.us.us.us, label %.lr.ph.split.us.us.us.us.us

.loopexit.us.us.us.us:                            ; preds = %.lr.ph.split.us.us.us.us.us, %.preheader.us.us
  %17 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv126, i64 %14, i64 1
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %.not.us.us.us.us.1 = icmp eq i32 %18, 0
  br i1 %.not.us.us.us.us.1, label %.loopexit.us.us.us.us.1, label %19

19:                                               ; preds = %.loopexit.us.us.us.us
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv126) #5
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %.not5154.us.us.us.us.1 = icmp slt i32 %21, 0
  br i1 %.not5154.us.us.us.us.1, label %.loopexit.us.us.us.us.1, label %.lr.ph.split.us60.us.us.us.preheader.1

.lr.ph.split.us60.us.us.us.preheader.1:           ; preds = %19
  %22 = add nuw i32 %21, 1
  %wide.trip.count.1121 = zext i32 %22 to i64
  br label %.lr.ph.split.us60.us.us.us.1

.lr.ph.split.us60.us.us.us.1:                     ; preds = %.lr.ph.split.us60.us.us.us.1, %.lr.ph.split.us60.us.us.us.preheader.1
  %indvars.iv109.1 = phi i64 [ 0, %.lr.ph.split.us60.us.us.us.preheader.1 ], [ %indvars.iv.next110.1, %.lr.ph.split.us60.us.us.us.1 ]
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv126) #5
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = zext i32 %24 to i64
  %26 = icmp eq i64 %indvars.iv109.1, %25
  %27 = add nuw nsw i64 %14, %indvars.iv109.1
  %sext133 = shl i64 %27, 32
  %28 = ashr exact i64 %sext133, 32
  %29 = zext i1 %26 to i64
  %30 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %28, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = add nsw i32 %31, %18
  store i32 %32, ptr %30, align 4, !tbaa !5
  %indvars.iv.next110.1 = add nuw nsw i64 %indvars.iv109.1, 1
  %exitcond112.1.not = icmp eq i64 %indvars.iv.next110.1, %wide.trip.count.1121
  br i1 %exitcond112.1.not, label %.loopexit.us.us.us.us.1, label %.lr.ph.split.us60.us.us.us.1, !llvm.loop !9

.loopexit.us.us.us.us.1:                          ; preds = %.lr.ph.split.us60.us.us.us.1, %19, %.loopexit.us.us.us.us
  %indvars.iv.next123 = add nsw i64 %indvars.iv122, 1
  %exitcond125.not = icmp eq i64 %indvars.iv.next123, 91
  br i1 %exitcond125.not, label %.split68.us, label %.preheader.us.us, !llvm.loop !11

.lr.ph.split.us.us.us.us.us:                      ; preds = %.preheader.us.us
  %sext132 = shl i64 %14, 32
  %33 = ashr exact i64 %sext132, 32
  %34 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %33, i64 0
  %35 = load i32, ptr %34, align 8, !tbaa !5
  %36 = add nsw i32 %35, %16
  store i32 %36, ptr %34, align 8, !tbaa !5
  %37 = shl i64 %indvars.iv122, 32
  %sext132.1 = add i64 %37, 390842023936
  %38 = ashr exact i64 %sext132.1, 32
  %39 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %38, i64 0
  %40 = load i32, ptr %39, align 8, !tbaa !5
  %41 = add nsw i32 %40, %16
  store i32 %41, ptr %39, align 8, !tbaa !5
  %42 = shl i64 %indvars.iv122, 32
  %sext132.2 = add i64 %42, 395136991232
  %43 = ashr exact i64 %sext132.2, 32
  %44 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %43, i64 0
  %45 = load i32, ptr %44, align 8, !tbaa !5
  %46 = add nsw i32 %45, %16
  store i32 %46, ptr %44, align 8, !tbaa !5
  %47 = shl i64 %indvars.iv122, 32
  %sext132.3 = add i64 %47, 399431958528
  %48 = ashr exact i64 %sext132.3, 32
  %49 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %48, i64 0
  %50 = load i32, ptr %49, align 8, !tbaa !5
  %51 = add nsw i32 %50, %16
  store i32 %51, ptr %49, align 8, !tbaa !5
  %52 = shl i64 %indvars.iv122, 32
  %sext132.4 = add i64 %52, 403726925824
  %53 = ashr exact i64 %sext132.4, 32
  %54 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %53, i64 0
  %55 = load i32, ptr %54, align 8, !tbaa !5
  %56 = add nsw i32 %55, %16
  store i32 %56, ptr %54, align 8, !tbaa !5
  %57 = shl i64 %indvars.iv122, 32
  %sext132.5 = add i64 %57, 408021893120
  %58 = ashr exact i64 %sext132.5, 32
  %59 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %58, i64 0
  %60 = load i32, ptr %59, align 8, !tbaa !5
  %61 = add nsw i32 %60, %16
  store i32 %61, ptr %59, align 8, !tbaa !5
  %62 = shl i64 %indvars.iv122, 32
  %sext132.6 = add i64 %62, 412316860416
  %63 = ashr exact i64 %sext132.6, 32
  %64 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %63, i64 0
  %65 = load i32, ptr %64, align 8, !tbaa !5
  %66 = add nsw i32 %65, %16
  store i32 %66, ptr %64, align 8, !tbaa !5
  %67 = shl i64 %indvars.iv122, 32
  %sext132.7 = add i64 %67, 416611827712
  %68 = ashr exact i64 %sext132.7, 32
  %69 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %68, i64 0
  %70 = load i32, ptr %69, align 8, !tbaa !5
  %71 = add nsw i32 %70, %16
  store i32 %71, ptr %69, align 8, !tbaa !5
  %72 = shl i64 %indvars.iv122, 32
  %sext132.8 = add i64 %72, 420906795008
  %73 = ashr exact i64 %sext132.8, 32
  %74 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %73, i64 0
  %75 = load i32, ptr %74, align 8, !tbaa !5
  %76 = add nsw i32 %75, %16
  store i32 %76, ptr %74, align 8, !tbaa !5
  %77 = shl i64 %indvars.iv122, 32
  %sext132.9 = add i64 %77, 425201762304
  %78 = ashr exact i64 %sext132.9, 32
  %79 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %78, i64 0
  %80 = load i32, ptr %79, align 8, !tbaa !5
  %81 = add nsw i32 %80, %16
  store i32 %81, ptr %79, align 8, !tbaa !5
  br label %.loopexit.us.us.us.us

._crit_edge:                                      ; preds = %.split68.us, %7
  %sext = shl i64 %8, 32
  %82 = ashr exact i64 %sext, 32
  %83 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %82, i64 91
  %84 = load i32, ptr %83, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %83, i64 4
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = add nsw i32 %86, %84
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  br label %147

88:                                               ; preds = %4
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  resume { ptr, i32 } %89

.preheader:                                       ; preds = %.preheader53, %.loopexit.1
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit.1 ], [ -90, %.preheader53 ]
  %90 = add nsw i64 %indvars.iv, 90
  %91 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv126, i64 %90, i64 0
  %92 = load i32, ptr %91, align 8, !tbaa !5
  %.not = icmp eq i32 %92, 0
  br i1 %.not, label %.loopexit, label %.lr.ph.split.us.split

.split68.us:                                      ; preds = %.loopexit.1, %.loopexit.us.us.us.us.1
  %exitcond129.not = icmp eq i64 %indvars.iv.next127, %wide.trip.count
  br i1 %exitcond129.not, label %._crit_edge, label %.preheader53, !llvm.loop !12

.lr.ph.split.us.split:                            ; preds = %.preheader
  %93 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %90, i64 0
  %94 = load i32, ptr %93, align 8, !tbaa !5
  %95 = add nsw i32 %94, %92
  store i32 %95, ptr %93, align 8, !tbaa !5
  %96 = add nsw i64 %indvars.iv, 89
  %97 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %96, i64 0
  %98 = load i32, ptr %97, align 8, !tbaa !5
  %99 = add nsw i32 %98, %92
  store i32 %99, ptr %97, align 8, !tbaa !5
  %100 = add nsw i64 %indvars.iv, 88
  %101 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %100, i64 0
  %102 = load i32, ptr %101, align 8, !tbaa !5
  %103 = add nsw i32 %102, %92
  store i32 %103, ptr %101, align 8, !tbaa !5
  %104 = add nsw i64 %indvars.iv, 87
  %105 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %104, i64 0
  %106 = load i32, ptr %105, align 8, !tbaa !5
  %107 = add nsw i32 %106, %92
  store i32 %107, ptr %105, align 8, !tbaa !5
  %108 = add nsw i64 %indvars.iv, 86
  %109 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %108, i64 0
  %110 = load i32, ptr %109, align 8, !tbaa !5
  %111 = add nsw i32 %110, %92
  store i32 %111, ptr %109, align 8, !tbaa !5
  %112 = add nsw i64 %indvars.iv, 85
  %113 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %112, i64 0
  %114 = load i32, ptr %113, align 8, !tbaa !5
  %115 = add nsw i32 %114, %92
  store i32 %115, ptr %113, align 8, !tbaa !5
  %116 = add nsw i64 %indvars.iv, 84
  %117 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %116, i64 0
  %118 = load i32, ptr %117, align 8, !tbaa !5
  %119 = add nsw i32 %118, %92
  store i32 %119, ptr %117, align 8, !tbaa !5
  %120 = add nsw i64 %indvars.iv, 83
  %121 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %120, i64 0
  %122 = load i32, ptr %121, align 8, !tbaa !5
  %123 = add nsw i32 %122, %92
  store i32 %123, ptr %121, align 8, !tbaa !5
  %124 = add nsw i64 %indvars.iv, 82
  %125 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %124, i64 0
  %126 = load i32, ptr %125, align 8, !tbaa !5
  %127 = add nsw i32 %126, %92
  store i32 %127, ptr %125, align 8, !tbaa !5
  %128 = add nsw i64 %indvars.iv, 81
  %129 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %128, i64 0
  %130 = load i32, ptr %129, align 8, !tbaa !5
  %131 = add nsw i32 %130, %92
  store i32 %131, ptr %129, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph.split.us.split, %.preheader
  %132 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv126, i64 %90, i64 1
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %.not.1 = icmp eq i32 %133, 0
  br i1 %.not.1, label %.loopexit.1, label %134

134:                                              ; preds = %.loopexit
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv126) #5
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %.not5154.1 = icmp slt i32 %136, 0
  br i1 %.not5154.1, label %.loopexit.1, label %.lr.ph.split.preheader.1

.lr.ph.split.preheader.1:                         ; preds = %134
  %137 = add nuw i32 %136, 1
  %wide.trip.count.1 = zext i32 %137 to i64
  br label %.lr.ph.split.1

.lr.ph.split.1:                                   ; preds = %.lr.ph.split.1, %.lr.ph.split.preheader.1
  %indvars.iv.1 = phi i64 [ 0, %.lr.ph.split.preheader.1 ], [ %indvars.iv.next.1, %.lr.ph.split.1 ]
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv126) #5
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = zext i32 %139 to i64
  %141 = icmp eq i64 %indvars.iv.1, %140
  %142 = sub nsw i64 %90, %indvars.iv.1
  %143 = zext i1 %141 to i64
  %144 = getelementptr inbounds [10 x [181 x [2 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next127, i64 %142, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = add nsw i32 %145, %133
  store i32 %146, ptr %144, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, %wide.trip.count.1
  br i1 %exitcond.1.not, label %.loopexit.1, label %.lr.ph.split.1, !llvm.loop !9

.loopexit.1:                                      ; preds = %.lr.ph.split.1, %134, %.loopexit
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 91
  br i1 %exitcond.not, label %.split68.us, label %.preheader, !llvm.loop !11

147:                                              ; preds = %1, %._crit_edge
  %.0 = phi i32 [ %87, %._crit_edge ], [ 0, %1 ]
  ret i32 %.0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

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

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


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