; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2019-20/Jan/Plat (nondec_divide)

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

%struct.modular = type { i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<modular<int>, std::allocator<modular<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<modular<int>, std::allocator<modular<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<modular<int>, std::allocator<modular<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<modular<int>, std::allocator<modular<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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 }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [20 x %struct.modular] }

@K = external dso_local global i32, align 4
@tmp = external dso_local global [100000 x %struct.modular], align 16
@ans = external dso_local global %"class.std::vector", align 8
@A = external dso_local global %"class.std::vector.3", align 8

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

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) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt5arrayI7modularIiELm20EEC2Ev(ptr noundef nonnull align 4 dereferenceable(80)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI7modularIiELm20EEixEm(ptr noundef nonnull align 4 dereferenceable(80), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4diviSt6vectorISt5arrayIiLm3EESaIS1_EEii(ptr noundef %0, i32 noundef %1, i32 noundef %2) #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca ptr, align 8
  %11 = alloca %struct.modular, align 4
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector.8", align 8
  %15 = alloca %"class.std::vector.8", align 8
  %16 = alloca %"class.std::vector.8", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::vector.8", align 8
  %24 = alloca %"class.std::vector.8", align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"struct.std::array", align 4
  %28 = alloca i32, align 4
  %29 = alloca %struct.modular, align 4
  %30 = alloca i64, align 8
  %31 = alloca i32, align 4
  %32 = alloca %struct.modular, align 4
  %33 = alloca i64, align 8
  %34 = alloca i32, align 4
  %35 = alloca %"struct.std::array", align 4
  %36 = alloca i32, align 4
  %37 = alloca %struct.modular, align 4
  %38 = alloca i64, align 8
  %39 = alloca i32, align 4
  %40 = alloca %struct.modular, align 4
  %41 = alloca i64, align 8
  %42 = alloca i32, align 4
  %43 = alloca ptr, align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %46 = alloca ptr, align 8
  %47 = alloca %struct.modular, align 4
  %48 = alloca %struct.modular, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %49 = call noundef i64 @_ZNKSt6vectorISt5arrayIiLm3EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %50 = trunc i64 %49 to i32
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %53, label %52

52:                                               ; preds = %3
  br label %410

53:                                               ; preds = %3
  %54 = load i32, ptr %5, align 4, !tbaa !9
  %55 = load i32, ptr %6, align 4, !tbaa !9
  %56 = icmp eq i32 %54, %55
  br i1 %56, label %57, label %77

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr %0, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #7
  %60 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %59, ptr %60, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #7
  %63 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %62, ptr %63, align 8
  br label %64

64:                                               ; preds = %74, %57
  %65 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br i1 %65, label %67, label %66

66:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %76

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %68 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  store ptr %68, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 2, ptr %12, align 8, !tbaa !11
  call void @_ZN7modularIiEC2ERKx(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %69, i64 noundef 2) #7
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI7modularIiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %72) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %11, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %74

74:                                               ; preds = %67
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br label %64

76:                                               ; preds = %66
  br label %410

77:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %78 = load i32, ptr %5, align 4, !tbaa !9
  %79 = load i32, ptr %6, align 4, !tbaa !9
  %80 = add nsw i32 %78, %79
  %81 = sdiv i32 %80, 2
  store i32 %81, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #7
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #7
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store ptr %0, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #7
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %83, ptr %84, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  %86 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #7
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %86, ptr %87, align 8
  br label %88

88:                                               ; preds = %119, %77
  %89 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br i1 %89, label %91, label %90

90:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %121

91:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %92 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  store ptr %92, ptr %20, align 8, !tbaa !5
  %93 = load ptr, ptr %20, align 8, !tbaa !5
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %93, i64 noundef 1) #7
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = icmp sle i32 %95, %96
  br i1 %97, label %98, label %105

98:                                               ; preds = %91
  %99 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(12) %99)
          to label %100 unwind label %101

100:                                              ; preds = %98
  br label %118

101:                                              ; preds = %114, %111, %98
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %21, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %411

105:                                              ; preds = %91
  %106 = load ptr, ptr %20, align 8, !tbaa !5
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %106, i64 noundef 0) #7
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = load i32, ptr %13, align 4, !tbaa !9
  %110 = icmp sgt i32 %108, %109
  br i1 %110, label %111, label %114

111:                                              ; preds = %105
  %112 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(12) %112)
          to label %113 unwind label %101

113:                                              ; preds = %111
  br label %117

114:                                              ; preds = %105
  %115 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(12) %115)
          to label %116 unwind label %101

116:                                              ; preds = %114
  br label %117

117:                                              ; preds = %116, %113
  br label %118

118:                                              ; preds = %117, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %119

119:                                              ; preds = %118
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br label %88

121:                                              ; preds = %90
  invoke void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %122 unwind label %135

122:                                              ; preds = %121
  %123 = load i32, ptr %5, align 4, !tbaa !9
  %124 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @_Z4diviSt6vectorISt5arrayIiLm3EESaIS1_EEii(ptr noundef %23, i32 noundef %123, i32 noundef %124)
          to label %125 unwind label %139

125:                                              ; preds = %122
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  invoke void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %126 unwind label %135

126:                                              ; preds = %125
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  %129 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_Z4diviSt6vectorISt5arrayIiLm3EESaIS1_EEii(ptr noundef %24, i32 noundef %128, i32 noundef %129)
          to label %130 unwind label %143

130:                                              ; preds = %126
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @_ZSt4swapISt5arrayIiLm3EESaIS1_EEvRSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  %131 = call noundef i64 @_ZNKSt6vectorISt5arrayIiLm3EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %132 = trunc i64 %131 to i32
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %147, label %134

134:                                              ; preds = %130
  store i32 1, ptr %25, align 4
  br label %408

135:                                              ; preds = %125, %121
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %21, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %22, align 4
  br label %411

139:                                              ; preds = %122
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %21, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %22, align 4
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  br label %411

143:                                              ; preds = %126
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %21, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %22, align 4
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  br label %411

147:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %148

148:                                              ; preds = %403, %147
  %149 = load i32, ptr %26, align 4, !tbaa !9
  %150 = load i32, ptr @K, align 4, !tbaa !9
  %151 = icmp slt i32 %149, %150
  br i1 %151, label %153, label %152

152:                                              ; preds = %148
  store i32 6, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %407

153:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 80, ptr %27) #7
  call void @llvm.memset.p0.i64(ptr align 4 %27, i8 0, i64 80, i1 false)
  invoke void @_ZNSt5arrayI7modularIiELm20EEC2Ev(ptr noundef nonnull align 4 dereferenceable(80) %27)
          to label %154 unwind label %161

154:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %155 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %155, ptr %28, align 4, !tbaa !9
  br label %156

156:                                              ; preds = %257, %154
  %157 = load i32, ptr %28, align 4, !tbaa !9
  %158 = load i32, ptr %5, align 4, !tbaa !9
  %159 = icmp sge i32 %157, %158
  br i1 %159, label %165, label %160

160:                                              ; preds = %156
  store i32 9, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %261

161:                                              ; preds = %153
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %21, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %22, align 4
  br label %270

165:                                              ; preds = %156
  %166 = load i32, ptr %28, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %167) #7
  %169 = load i32, ptr %168, align 4, !tbaa !9
  %170 = load i32, ptr %26, align 4, !tbaa !9
  %171 = icmp sle i32 %169, %170
  br i1 %171, label %172, label %222

172:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %173 = load i32, ptr %28, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %174) #7
  %176 = load i32, ptr %175, align 4, !tbaa !9
  %177 = load i32, ptr %26, align 4, !tbaa !9
  %178 = icmp eq i32 %176, %177
  %179 = zext i1 %178 to i64
  store i64 %179, ptr %30, align 8, !tbaa !11
  invoke void @_ZN7modularIiEC2ERKx(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %180 unwind label %191

180:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %181 = load i32, ptr %28, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %182) #7
  %184 = load i32, ptr %183, align 4, !tbaa !9
  store i32 %184, ptr %31, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %201, %180
  %186 = load i32, ptr %31, align 4, !tbaa !9
  %187 = load i32, ptr %26, align 4, !tbaa !9
  %188 = add nsw i32 %187, 1
  %189 = icmp slt i32 %186, %188
  br i1 %189, label %195, label %190

190:                                              ; preds = %185
  store i32 12, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %208

191:                                              ; preds = %172
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %21, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %221

195:                                              ; preds = %185
  %196 = load i32, ptr %31, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI7modularIiELm20EEixEm(ptr noundef nonnull align 4 dereferenceable(80) %27, i64 noundef %197) #7
  %199 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %198)
          to label %200 unwind label %204

200:                                              ; preds = %195
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %31, align 4, !tbaa !9
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %31, align 4, !tbaa !9
  br label %185, !llvm.loop !14

204:                                              ; preds = %195
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %21, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %221

208:                                              ; preds = %190
  %209 = load i32, ptr %28, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %210) #7
  %212 = load i32, ptr %211, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI7modularIiELm20EEixEm(ptr noundef nonnull align 4 dereferenceable(80) %27, i64 noundef %213) #7
  %215 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %214, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %216 unwind label %217

216:                                              ; preds = %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %222

217:                                              ; preds = %208
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %21, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %22, align 4
  br label %221

221:                                              ; preds = %217, %204, %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %260

222:                                              ; preds = %216, %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %223 = load i32, ptr %26, align 4, !tbaa !9
  %224 = icmp eq i32 %223, 0
  %225 = zext i1 %224 to i64
  store i64 %225, ptr %33, align 8, !tbaa !11
  invoke void @_ZN7modularIiEC2ERKx(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %226 unwind label %236

226:                                              ; preds = %222
  %227 = load i32, ptr %28, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [100000 x %struct.modular], ptr @tmp, i64 0, i64 %228
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %229, ptr align 4 %32, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %230

230:                                              ; preds = %249, %226
  %231 = load i32, ptr %34, align 4, !tbaa !9
  %232 = load i32, ptr %26, align 4, !tbaa !9
  %233 = add nsw i32 %232, 1
  %234 = icmp slt i32 %231, %233
  br i1 %234, label %240, label %235

235:                                              ; preds = %230
  store i32 15, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %256

236:                                              ; preds = %222
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %21, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %260

240:                                              ; preds = %230
  %241 = load i32, ptr %34, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI7modularIiELm20EEixEm(ptr noundef nonnull align 4 dereferenceable(80) %27, i64 noundef %242) #7
  %244 = load i32, ptr %28, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [100000 x %struct.modular], ptr @tmp, i64 0, i64 %245
  %247 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %246, ptr noundef nonnull align 4 dereferenceable(4) %243)
          to label %248 unwind label %252

248:                                              ; preds = %240
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %34, align 4, !tbaa !9
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %34, align 4, !tbaa !9
  br label %230, !llvm.loop !16

252:                                              ; preds = %240
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %21, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %260

256:                                              ; preds = %235
  br label %257

257:                                              ; preds = %256
  %258 = load i32, ptr %28, align 4, !tbaa !9
  %259 = add nsw i32 %258, -1
  store i32 %259, ptr %28, align 4, !tbaa !9
  br label %156, !llvm.loop !17

260:                                              ; preds = %252, %236, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %270

261:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 80, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr %35) #7
  call void @llvm.memset.p0.i64(ptr align 4 %35, i8 0, i64 80, i1 false)
  invoke void @_ZNSt5arrayI7modularIiELm20EEC2Ev(ptr noundef nonnull align 4 dereferenceable(80) %35)
          to label %262 unwind label %271

262:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %263 = load i32, ptr %13, align 4, !tbaa !9
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %36, align 4, !tbaa !9
  br label %265

265:                                              ; preds = %357, %262
  %266 = load i32, ptr %36, align 4, !tbaa !9
  %267 = load i32, ptr %6, align 4, !tbaa !9
  %268 = icmp sle i32 %266, %267
  br i1 %268, label %275, label %269

269:                                              ; preds = %265
  store i32 18, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %361

270:                                              ; preds = %260, %161
  call void @llvm.lifetime.end.p0(i64 80, ptr %27) #7
  br label %406

271:                                              ; preds = %261
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %21, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %22, align 4
  br label %371

275:                                              ; preds = %265
  %276 = load i32, ptr %36, align 4, !tbaa !9
  %277 = sext i32 %276 to i64
  %278 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %277) #7
  %279 = load i32, ptr %278, align 4, !tbaa !9
  %280 = load i32, ptr %26, align 4, !tbaa !9
  %281 = icmp sge i32 %279, %280
  br i1 %281, label %282, label %325

282:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  store i64 1, ptr %38, align 8, !tbaa !11
  invoke void @_ZN7modularIiEC2ERKx(ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %283 unwind label %294

283:                                              ; preds = %282
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  %284 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %284, ptr %39, align 4, !tbaa !9
  br label %285

285:                                              ; preds = %304, %283
  %286 = load i32, ptr %39, align 4, !tbaa !9
  %287 = load i32, ptr %36, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %288) #7
  %290 = load i32, ptr %289, align 4, !tbaa !9
  %291 = add nsw i32 %290, 1
  %292 = icmp slt i32 %286, %291
  br i1 %292, label %298, label %293

293:                                              ; preds = %285
  store i32 21, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %311

294:                                              ; preds = %282
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %21, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %324

298:                                              ; preds = %285
  %299 = load i32, ptr %39, align 4, !tbaa !9
  %300 = sext i32 %299 to i64
  %301 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI7modularIiELm20EEixEm(ptr noundef nonnull align 4 dereferenceable(80) %35, i64 noundef %300) #7
  %302 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef nonnull align 4 dereferenceable(4) %301)
          to label %303 unwind label %307

303:                                              ; preds = %298
  br label %304

304:                                              ; preds = %303
  %305 = load i32, ptr %39, align 4, !tbaa !9
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %39, align 4, !tbaa !9
  br label %285, !llvm.loop !18

307:                                              ; preds = %298
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %21, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %324

311:                                              ; preds = %293
  %312 = load i32, ptr %36, align 4, !tbaa !9
  %313 = sext i32 %312 to i64
  %314 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %313) #7
  %315 = load i32, ptr %314, align 4, !tbaa !9
  %316 = sext i32 %315 to i64
  %317 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI7modularIiELm20EEixEm(ptr noundef nonnull align 4 dereferenceable(80) %35, i64 noundef %316) #7
  %318 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %317, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %319 unwind label %320

319:                                              ; preds = %311
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  br label %325

320:                                              ; preds = %311
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %21, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %22, align 4
  br label %324

324:                                              ; preds = %320, %307, %294
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  br label %360

325:                                              ; preds = %319, %275
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  store i64 1, ptr %41, align 8, !tbaa !11
  invoke void @_ZN7modularIiEC2ERKx(ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %326 unwind label %336

326:                                              ; preds = %325
  %327 = load i32, ptr %36, align 4, !tbaa !9
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [100000 x %struct.modular], ptr @tmp, i64 0, i64 %328
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %329, ptr align 4 %40, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  %330 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %330, ptr %42, align 4, !tbaa !9
  br label %331

331:                                              ; preds = %349, %326
  %332 = load i32, ptr %42, align 4, !tbaa !9
  %333 = load i32, ptr @K, align 4, !tbaa !9
  %334 = icmp slt i32 %332, %333
  br i1 %334, label %340, label %335

335:                                              ; preds = %331
  store i32 24, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  br label %356

336:                                              ; preds = %325
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %21, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %360

340:                                              ; preds = %331
  %341 = load i32, ptr %42, align 4, !tbaa !9
  %342 = sext i32 %341 to i64
  %343 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI7modularIiELm20EEixEm(ptr noundef nonnull align 4 dereferenceable(80) %35, i64 noundef %342) #7
  %344 = load i32, ptr %36, align 4, !tbaa !9
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [100000 x %struct.modular], ptr @tmp, i64 0, i64 %345
  %347 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %346, ptr noundef nonnull align 4 dereferenceable(4) %343)
          to label %348 unwind label %352

348:                                              ; preds = %340
  br label %349

349:                                              ; preds = %348
  %350 = load i32, ptr %42, align 4, !tbaa !9
  %351 = add nsw i32 %350, 1
  store i32 %351, ptr %42, align 4, !tbaa !9
  br label %331, !llvm.loop !19

352:                                              ; preds = %340
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %21, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  br label %360

356:                                              ; preds = %335
  br label %357

357:                                              ; preds = %356
  %358 = load i32, ptr %36, align 4, !tbaa !9
  %359 = add nsw i32 %358, 1
  store i32 %359, ptr %36, align 4, !tbaa !9
  br label %265, !llvm.loop !20

360:                                              ; preds = %352, %336, %324
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %371

361:                                              ; preds = %269
  call void @llvm.lifetime.end.p0(i64 80, ptr %35) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #7
  store ptr %0, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %362 = load ptr, ptr %43, align 8, !tbaa !5
  %363 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %362) #7
  %364 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  store ptr %363, ptr %364, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %365 = load ptr, ptr %43, align 8, !tbaa !5
  %366 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %365) #7
  %367 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %45, i32 0, i32 0
  store ptr %366, ptr %367, align 8
  br label %368

368:                                              ; preds = %396, %361
  %369 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %45) #7
  br i1 %369, label %372, label %370

370:                                              ; preds = %368
  store i32 27, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  br label %402

371:                                              ; preds = %360, %271
  call void @llvm.lifetime.end.p0(i64 80, ptr %35) #7
  br label %406

372:                                              ; preds = %368
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #7
  %373 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #7
  store ptr %373, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  %374 = load ptr, ptr %46, align 8, !tbaa !5
  %375 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %374, i64 noundef 0) #7
  %376 = load i32, ptr %375, align 4, !tbaa !9
  %377 = sext i32 %376 to i64
  %378 = getelementptr inbounds [100000 x %struct.modular], ptr @tmp, i64 0, i64 %377
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %378, i64 4, i1 false), !tbaa.struct !13
  %379 = load ptr, ptr %46, align 8, !tbaa !5
  %380 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %379, i64 noundef 1) #7
  %381 = load i32, ptr %380, align 4, !tbaa !9
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds [100000 x %struct.modular], ptr @tmp, i64 0, i64 %382
  %384 = getelementptr inbounds %struct.modular, ptr %48, i32 0, i32 0
  %385 = load i32, ptr %384, align 4
  %386 = invoke i32 @_Zml7modularIiERKS0_(i32 %385, ptr noundef nonnull align 4 dereferenceable(4) %383)
          to label %387 unwind label %398

387:                                              ; preds = %372
  %388 = getelementptr inbounds %struct.modular, ptr %47, i32 0, i32 0
  store i32 %386, ptr %388, align 4
  %389 = load ptr, ptr %46, align 8, !tbaa !5
  %390 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %389, i64 noundef 2) #7
  %391 = load i32, ptr %390, align 4, !tbaa !9
  %392 = sext i32 %391 to i64
  %393 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI7modularIiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %392) #7
  %394 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %393, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %395 unwind label %398

395:                                              ; preds = %387
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  br label %396

396:                                              ; preds = %395
  %397 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #7
  br label %368

398:                                              ; preds = %387, %372
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %21, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  br label %406

402:                                              ; preds = %370
  br label %403

403:                                              ; preds = %402
  %404 = load i32, ptr %26, align 4, !tbaa !9
  %405 = add nsw i32 %404, 1
  store i32 %405, ptr %26, align 4, !tbaa !9
  br label %148, !llvm.loop !21

406:                                              ; preds = %398, %371, %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %411

407:                                              ; preds = %152
  store i32 0, ptr %25, align 4
  br label %408

408:                                              ; preds = %407, %134
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  %409 = load i32, ptr %25, align 4
  switch i32 %409, label %417 [
    i32 0, label %410
    i32 1, label %410
  ]

410:                                              ; preds = %408, %408, %76, %52
  ret void

411:                                              ; preds = %406, %143, %139, %135, %101
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %412

412:                                              ; preds = %411
  %413 = load ptr, ptr %21, align 8
  %414 = load i32, ptr %22, align 4
  %415 = insertvalue { ptr, i32 } poison, ptr %413, 0
  %416 = insertvalue { ptr, i32 } %415, i32 %414, 1
  resume { ptr, i32 } %416

417:                                              ; preds = %408
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; 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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }

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

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


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

%struct.modular = type { i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<modular<int>, std::allocator<modular<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<modular<int>, std::allocator<modular<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<modular<int>, std::allocator<modular<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<modular<int>, std::allocator<modular<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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 }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<int, 3>, std::allocator<std::array<int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [20 x %struct.modular] }

@K = external dso_local local_unnamed_addr global i32, align 4
@tmp = external dso_local global [100000 x %struct.modular], align 16
@ans = external dso_local global %"class.std::vector", align 8
@A = external dso_local global %"class.std::vector.3", align 8

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

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) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt5arrayI7modularIiELm20EEC2Ev(ptr noundef nonnull align 4 dereferenceable(80)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4diviSt6vectorISt5arrayIiLm3EESaIS1_EEii(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %struct.modular, align 4
  %7 = alloca i64, align 8
  %8 = alloca %"class.std::vector.8", align 8
  %9 = alloca %"class.std::vector.8", align 8
  %10 = alloca %"class.std::vector.8", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.std::vector.8", align 8
  %14 = alloca %"class.std::vector.8", align 8
  %15 = alloca %"struct.std::array", align 4
  %16 = alloca %struct.modular, align 4
  %17 = alloca i64, align 8
  %18 = alloca %struct.modular, align 4
  %19 = alloca i64, align 8
  %20 = alloca %"struct.std::array", align 4
  %21 = alloca %struct.modular, align 4
  %22 = alloca i64, align 8
  %23 = alloca %struct.modular, align 4
  %24 = alloca i64, align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %struct.modular, align 4
  %28 = tail call noundef i64 @_ZNKSt6vectorISt5arrayIiLm3EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %29 = and i64 %28, 4294967295
  %.not = icmp eq i64 %29, 0
  br i1 %.not, label %165, label %30

30:                                               ; preds = %3
  %31 = icmp eq i32 %1, %2
  br i1 %31, label %32, label %44

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %33 = tail call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %33, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %34 = tail call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %34, ptr %5, align 8
  %35 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %35, label %.lr.ph122, label %._crit_edge123

._crit_edge123:                                   ; preds = %.lr.ph122, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %165

.lr.ph122:                                        ; preds = %32, %.lr.ph122
  %36 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  store i64 2, ptr %7, align 8, !tbaa !5
  call void @_ZN7modularIiEC2ERKx(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %36, i64 noundef 2) #6
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI7modularIiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %39) #6
  %41 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %41, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %43 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %43, label %.lr.ph122, label %._crit_edge123

44:                                               ; preds = %30
  %45 = add nsw i32 %2, %1
  %46 = sdiv i32 %45, 2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %47 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %47, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %48 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %48, ptr %12, align 8
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %49, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %60, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  invoke void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %63 unwind label %76

.lr.ph:                                           ; preds = %44, %60
  %50 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %50, i64 noundef 1) #6
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %.not88 = icmp sgt i32 %52, %46
  br i1 %.not88, label %55, label %.invoke

53:                                               ; preds = %.invoke
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %166

55:                                               ; preds = %.lr.ph
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %50, i64 noundef 0) #6
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = icmp sgt i32 %57, %46
  %. = select i1 %58, ptr %10, ptr %9
  br label %.invoke

.invoke:                                          ; preds = %.lr.ph, %55
  %59 = phi ptr [ %., %55 ], [ %8, %.lr.ph ]
  invoke void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 4 dereferenceable(12) %50)
          to label %60 unwind label %53

60:                                               ; preds = %.invoke
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %62 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %62, label %.lr.ph, label %._crit_edge

63:                                               ; preds = %._crit_edge
  invoke void @_Z4diviSt6vectorISt5arrayIiLm3EESaIS1_EEii(ptr noundef nonnull %13, i32 noundef %1, i32 noundef %46)
          to label %64 unwind label %78

64:                                               ; preds = %63
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  invoke void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %65 unwind label %76

65:                                               ; preds = %64
  %66 = add nsw i32 %46, 1
  invoke void @_Z4diviSt6vectorISt5arrayIiLm3EESaIS1_EEii(ptr noundef nonnull %14, i32 noundef %66, i32 noundef %2)
          to label %67 unwind label %80

67:                                               ; preds = %65
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @_ZSt4swapISt5arrayIiLm3EESaIS1_EEvRSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %68 = call noundef i64 @_ZNKSt6vectorISt5arrayIiLm3EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %69 = and i64 %68, 4294967295
  %.not79 = icmp ne i64 %69, 0
  %70 = load i32, ptr @K, align 4
  %71 = icmp sgt i32 %70, 0
  %or.cond = select i1 %.not79, i1 %71, i1 false
  br i1 %or.cond, label %.lr.ph120, label %.loopexit

.lr.ph120:                                        ; preds = %67
  %.not8099 = icmp slt i32 %46, %1
  %.not81112.not = icmp slt i32 %46, %2
  %72 = sext i32 %46 to i64
  %73 = sext i32 %1 to i64
  %74 = add nsw i64 %72, 1
  %75 = add i32 %2, 1
  br label %82

76:                                               ; preds = %64, %._crit_edge
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %166

78:                                               ; preds = %63
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %166

80:                                               ; preds = %65
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br label %166

82:                                               ; preds = %.lr.ph120, %._crit_edge118
  %indvars.iv148 = phi i64 [ 1, %.lr.ph120 ], [ %indvars.iv.next149, %._crit_edge118 ]
  %indvars.iv135 = phi i64 [ 0, %.lr.ph120 ], [ %indvars.iv.next136, %._crit_edge118 ]
  %indvars152 = trunc i64 %indvars.iv135 to i32
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %15) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(80) %15, i8 0, i64 80, i1 false)
  invoke void @_ZNSt5arrayI7modularIiELm20EEC2Ev(ptr noundef nonnull align 4 dereferenceable(80) %15)
          to label %.preheader91 unwind label %85

.preheader91:                                     ; preds = %82
  br i1 %.not8099, label %._crit_edge102, label %.lr.ph101

.lr.ph101:                                        ; preds = %.preheader91
  %83 = icmp eq i32 %indvars152, 0
  %84 = zext i1 %83 to i64
  br label %87

._crit_edge102:                                   ; preds = %109, %.preheader91
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %20) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(80) %20, i8 0, i64 80, i1 false)
  invoke void @_ZNSt5arrayI7modularIiELm20EEC2Ev(ptr noundef nonnull align 4 dereferenceable(80) %20)
          to label %.preheader unwind label %116

.preheader:                                       ; preds = %._crit_edge102
  br i1 %.not81112.not, label %.lr.ph114, label %._crit_edge115

85:                                               ; preds = %82
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #6
  br label %166

87:                                               ; preds = %.lr.ph101, %109
  %indvars.iv132 = phi i64 [ %72, %.lr.ph101 ], [ %indvars.iv.next133, %109 ]
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %indvars.iv132) #6
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %.not85 = icmp sgt i32 %89, %indvars152
  br i1 %.not85, label %106, label %90

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %indvars.iv132) #6
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = icmp eq i32 %92, %indvars152
  %94 = zext i1 %93 to i64
  store i64 %94, ptr %17, align 8, !tbaa !5
  call void @_ZN7modularIiEC2ERKx(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %indvars.iv132) #6
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %.not8693 = icmp sgt i32 %96, %indvars152
  br i1 %.not8693, label %._crit_edge97, label %.lr.ph96.preheader

.lr.ph96.preheader:                               ; preds = %90
  %97 = sext i32 %96 to i64
  br label %.lr.ph96

._crit_edge97:                                    ; preds = %.lr.ph96, %90
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %indvars.iv132) #6
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI7modularIiELm20EEixEm(ptr noundef nonnull align 4 dereferenceable(80) %15, i64 noundef %100) #6
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %101, ptr noundef nonnull align 4 dereferenceable(4) %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  br label %106

.lr.ph96:                                         ; preds = %.lr.ph96.preheader, %.lr.ph96
  %indvars.iv = phi i64 [ %97, %.lr.ph96.preheader ], [ %indvars.iv.next, %.lr.ph96 ]
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI7modularIiELm20EEixEm(ptr noundef nonnull align 4 dereferenceable(80) %15, i64 noundef %indvars.iv) #6
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %103)
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %105 = and i64 %indvars.iv.next, 4294967295
  %exitcond.not = icmp eq i64 %105, %indvars.iv148
  br i1 %exitcond.not, label %._crit_edge97, label %.lr.ph96, !llvm.loop !11

106:                                              ; preds = %._crit_edge97, %87
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  store i64 %84, ptr %19, align 8, !tbaa !5
  call void @_ZN7modularIiEC2ERKx(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %107 = getelementptr inbounds [100000 x %struct.modular], ptr @tmp, i64 0, i64 %indvars.iv132
  %108 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %108, ptr %107, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  br label %110

109:                                              ; preds = %110
  %indvars.iv.next133 = add nsw i64 %indvars.iv132, -1
  %.not80.not = icmp sgt i64 %indvars.iv132, %73
  br i1 %.not80.not, label %87, label %._crit_edge102, !llvm.loop !13

110:                                              ; preds = %106, %110
  %indvars.iv128 = phi i64 [ 0, %106 ], [ %indvars.iv.next129, %110 ]
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI7modularIiELm20EEixEm(ptr noundef nonnull align 4 dereferenceable(80) %15, i64 noundef %indvars.iv128) #6
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %107, ptr noundef nonnull align 4 dereferenceable(4) %111)
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %exitcond131.not = icmp eq i64 %indvars.iv.next129, %indvars.iv148
  br i1 %exitcond131.not, label %109, label %110, !llvm.loop !14

._crit_edge115:                                   ; preds = %._crit_edge111, %.preheader
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #6
  %113 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %113, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #6
  %114 = call ptr @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %114, ptr %26, align 8
  %115 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br i1 %115, label %.lr.ph117, label %._crit_edge118

116:                                              ; preds = %._crit_edge102
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %20) #6
  br label %166

.lr.ph114:                                        ; preds = %.preheader, %._crit_edge111
  %indvars.iv143 = phi i64 [ %indvars.iv.next144, %._crit_edge111 ], [ %74, %.preheader ]
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %indvars.iv143) #6
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %.not83 = icmp slt i32 %119, %indvars152
  br i1 %.not83, label %133, label %120

120:                                              ; preds = %.lr.ph114
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  store i64 1, ptr %22, align 8, !tbaa !5
  call void @_ZN7modularIiEC2ERKx(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %indvars.iv143) #6
  %122 = load i32, ptr %121, align 4, !tbaa !9
  %.not84103 = icmp slt i32 %122, %indvars152
  br i1 %.not84103, label %._crit_edge107, label %.lr.ph106

._crit_edge107:                                   ; preds = %.lr.ph106, %120
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %indvars.iv143) #6
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI7modularIiELm20EEixEm(ptr noundef nonnull align 4 dereferenceable(80) %20, i64 noundef %125) #6
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %126, ptr noundef nonnull align 4 dereferenceable(4) %21)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  br label %133

.lr.ph106:                                        ; preds = %120, %.lr.ph106
  %indvars.iv137 = phi i64 [ %indvars.iv.next138, %.lr.ph106 ], [ %indvars.iv135, %120 ]
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI7modularIiELm20EEixEm(ptr noundef nonnull align 4 dereferenceable(80) %20, i64 noundef %indvars.iv137) #6
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %128)
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @A, i64 noundef %indvars.iv143) #6
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %.not84.not = icmp slt i64 %indvars.iv137, %132
  br i1 %.not84.not, label %.lr.ph106, label %._crit_edge107, !llvm.loop !15

133:                                              ; preds = %._crit_edge107, %.lr.ph114
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #6
  store i64 1, ptr %24, align 8, !tbaa !5
  call void @_ZN7modularIiEC2ERKx(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %134 = getelementptr inbounds [100000 x %struct.modular], ptr @tmp, i64 0, i64 %indvars.iv143
  %135 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %135, ptr %134, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  %136 = load i32, ptr @K, align 4, !tbaa !9
  %137 = icmp sgt i32 %136, %indvars152
  br i1 %137, label %.lr.ph110, label %._crit_edge111

._crit_edge111:                                   ; preds = %.lr.ph110, %133
  %indvars.iv.next144 = add nsw i64 %indvars.iv143, 1
  %lftr.wideiv146 = trunc i64 %indvars.iv.next144 to i32
  %exitcond147.not = icmp eq i32 %75, %lftr.wideiv146
  br i1 %exitcond147.not, label %._crit_edge115, label %.lr.ph114, !llvm.loop !16

.lr.ph110:                                        ; preds = %133, %.lr.ph110
  %indvars.iv140 = phi i64 [ %indvars.iv.next141, %.lr.ph110 ], [ %indvars.iv135, %133 ]
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI7modularIiELm20EEixEm(ptr noundef nonnull align 4 dereferenceable(80) %20, i64 noundef %indvars.iv140) #6
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %134, ptr noundef nonnull align 4 dereferenceable(4) %138)
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %140 = load i32, ptr @K, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = icmp slt i64 %indvars.iv.next141, %141
  br i1 %142, label %.lr.ph110, label %._crit_edge111, !llvm.loop !17

._crit_edge118:                                   ; preds = %155, %._crit_edge115
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #6
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %indvars151 = trunc i64 %indvars.iv.next136 to i32
  %143 = load i32, ptr @K, align 4, !tbaa !9
  %144 = icmp sgt i32 %143, %indvars151
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  br i1 %144, label %82, label %.loopexit, !llvm.loop !18

.lr.ph117:                                        ; preds = %._crit_edge115, %155
  %145 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #6
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %145, i64 noundef 0) #6
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [100000 x %struct.modular], ptr @tmp, i64 0, i64 %148
  %.sroa.0.0.copyload = load i32, ptr %149, align 4, !tbaa !9
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %145, i64 noundef 1) #6
  %151 = load i32, ptr %150, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [100000 x %struct.modular], ptr @tmp, i64 0, i64 %152
  %154 = invoke i32 @_Zml7modularIiERKS0_(i32 %.sroa.0.0.copyload, ptr noundef nonnull align 4 dereferenceable(4) %153)
          to label %155 unwind label %163

155:                                              ; preds = %.lr.ph117
  store i32 %154, ptr %27, align 4
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %145, i64 noundef 2) #6
  %157 = load i32, ptr %156, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorI7modularIiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ans, i64 noundef %158) #6
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7modularIiEpLERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %159, ptr noundef nonnull align 4 dereferenceable(4) %27)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %162 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br i1 %162, label %.lr.ph117, label %._crit_edge118

163:                                              ; preds = %.lr.ph117
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #6
  br label %166

.loopexit:                                        ; preds = %._crit_edge118, %67
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %165

165:                                              ; preds = %3, %.loopexit, %._crit_edge123
  ret void

166:                                              ; preds = %85, %116, %163, %80, %78, %76, %53
  %.pn89 = phi { ptr, i32 } [ %54, %53 ], [ %81, %80 ], [ %77, %76 ], [ %79, %78 ], [ %164, %163 ], [ %117, %116 ], [ %86, %85 ]
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorISt5arrayIiLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  resume { ptr, i32 } %.pn89
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5arrayIiLm3EESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

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

; 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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass