; LLVM IR from goldest-star/seawave-animation :: src/vcl/shape/mesh/mesh_primitive/mesh_primitive.ll (ZN3vcl17connectivity_gridEmmbb)

; 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<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [3 x i32] }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vcl17connectivity_gridEmmbb(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, i64 noundef %1, i64 noundef %2, i1 noundef zeroext %3, i1 noundef zeroext %4) #0 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i1, align 1
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::array", align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::array", align 4
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"struct.std::array", align 4
  %29 = alloca %"struct.std::array", align 4
  %30 = alloca i64, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %"struct.std::array", align 4
  %36 = alloca %"struct.std::array", align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca %"struct.std::array", align 4
  %42 = alloca %"struct.std::array", align 4
  store ptr %0, ptr %6, align 8
  store i64 %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !5
  %43 = zext i1 %3 to i8
  store i8 %43, ptr %9, align 1, !tbaa !9
  %44 = zext i1 %4 to i8
  store i8 %44, ptr %10, align 1, !tbaa !9
  store i1 false, ptr %11, align 1
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store i64 0, ptr %12, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %114, %5
  %46 = load i64, ptr %12, align 8, !tbaa !5
  %47 = load i64, ptr %7, align 8, !tbaa !5
  %48 = sub i64 %47, 1
  %49 = icmp ult i64 %46, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %45
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %117

51:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store i64 0, ptr %14, align 8, !tbaa !5
  br label %52

52:                                               ; preds = %101, %51
  %53 = load i64, ptr %14, align 8, !tbaa !5
  %54 = load i64, ptr %8, align 8, !tbaa !5
  %55 = sub i64 %54, 1
  %56 = icmp ult i64 %53, %55
  br i1 %56, label %58, label %57

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

58:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %59 = load i64, ptr %14, align 8, !tbaa !5
  %60 = load i64, ptr %8, align 8, !tbaa !5
  %61 = load i64, ptr %12, align 8, !tbaa !5
  %62 = mul i64 %60, %61
  %63 = add i64 %59, %62
  %64 = trunc i64 %63 to i32
  store i32 %64, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %65 = load i64, ptr %14, align 8, !tbaa !5
  %66 = add i64 %65, 1
  %67 = load i64, ptr %8, align 8, !tbaa !5
  %68 = load i64, ptr %12, align 8, !tbaa !5
  %69 = mul i64 %67, %68
  %70 = add i64 %66, %69
  %71 = trunc i64 %70 to i32
  store i32 %71, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %72 = load i64, ptr %14, align 8, !tbaa !5
  %73 = load i64, ptr %8, align 8, !tbaa !5
  %74 = load i64, ptr %12, align 8, !tbaa !5
  %75 = add i64 %74, 1
  %76 = mul i64 %73, %75
  %77 = add i64 %72, %76
  %78 = trunc i64 %77 to i32
  store i32 %78, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %79 = load i64, ptr %14, align 8, !tbaa !5
  %80 = add i64 %79, 1
  %81 = load i64, ptr %8, align 8, !tbaa !5
  %82 = load i64, ptr %12, align 8, !tbaa !5
  %83 = add i64 %82, 1
  %84 = mul i64 %81, %83
  %85 = add i64 %80, %84
  %86 = trunc i64 %85 to i32
  store i32 %86, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #3
  %87 = getelementptr inbounds %"struct.std::array", ptr %19, i32 0, i32 0
  %88 = load i32, ptr %15, align 4, !tbaa !11
  store i32 %88, ptr %87, align 4, !tbaa !11
  %89 = getelementptr inbounds i32, ptr %87, i64 1
  %90 = load i32, ptr %16, align 4, !tbaa !11
  store i32 %90, ptr %89, align 4, !tbaa !11
  %91 = getelementptr inbounds i32, ptr %87, i64 2
  %92 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %92, ptr %91, align 4, !tbaa !11
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %93 unwind label %104

93:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #3
  %94 = getelementptr inbounds %"struct.std::array", ptr %22, i32 0, i32 0
  %95 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %95, ptr %94, align 4, !tbaa !11
  %96 = getelementptr inbounds i32, ptr %94, i64 1
  %97 = load i32, ptr %17, align 4, !tbaa !11
  store i32 %97, ptr %96, align 4, !tbaa !11
  %98 = getelementptr inbounds i32, ptr %94, i64 2
  %99 = load i32, ptr %15, align 4, !tbaa !11
  store i32 %99, ptr %98, align 4, !tbaa !11
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %22)
          to label %100 unwind label %108

100:                                              ; preds = %93
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %101

101:                                              ; preds = %100
  %102 = load i64, ptr %14, align 8, !tbaa !5
  %103 = add i64 %102, 1
  store i64 %103, ptr %14, align 8, !tbaa !5
  br label %52, !llvm.loop !13

104:                                              ; preds = %58
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %20, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #3
  br label %112

108:                                              ; preds = %93
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %20, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #3
  br label %112

112:                                              ; preds = %108, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %311

113:                                              ; preds = %57
  br label %114

114:                                              ; preds = %113
  %115 = load i64, ptr %12, align 8, !tbaa !5
  %116 = add i64 %115, 1
  store i64 %116, ptr %12, align 8, !tbaa !5
  br label %45, !llvm.loop !15

117:                                              ; preds = %50
  %118 = load i8, ptr %9, align 1, !tbaa !9, !range !16, !noundef !17
  %119 = trunc i8 %118 to i1
  %120 = zext i1 %119 to i32
  %121 = icmp eq i32 %120, 1
  br i1 %121, label %122, label %183

122:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  store i64 0, ptr %23, align 8, !tbaa !5
  br label %123

123:                                              ; preds = %170, %122
  %124 = load i64, ptr %23, align 8, !tbaa !5
  %125 = load i64, ptr %8, align 8, !tbaa !5
  %126 = sub i64 %125, 1
  %127 = icmp ult i64 %124, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %123
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  br label %182

129:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %130 = load i64, ptr %23, align 8, !tbaa !5
  %131 = load i64, ptr %8, align 8, !tbaa !5
  %132 = load i64, ptr %7, align 8, !tbaa !5
  %133 = sub i64 %132, 1
  %134 = mul i64 %131, %133
  %135 = add i64 %130, %134
  %136 = trunc i64 %135 to i32
  store i32 %136, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %137 = load i64, ptr %23, align 8, !tbaa !5
  %138 = add i64 %137, 1
  %139 = load i64, ptr %8, align 8, !tbaa !5
  %140 = load i64, ptr %7, align 8, !tbaa !5
  %141 = sub i64 %140, 1
  %142 = mul i64 %139, %141
  %143 = add i64 %138, %142
  %144 = trunc i64 %143 to i32
  store i32 %144, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %145 = load i64, ptr %23, align 8, !tbaa !5
  %146 = load i64, ptr %8, align 8, !tbaa !5
  %147 = mul i64 %146, 0
  %148 = add i64 %145, %147
  %149 = trunc i64 %148 to i32
  store i32 %149, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %150 = load i64, ptr %23, align 8, !tbaa !5
  %151 = add i64 %150, 1
  %152 = load i64, ptr %8, align 8, !tbaa !5
  %153 = mul i64 %152, 0
  %154 = add i64 %151, %153
  %155 = trunc i64 %154 to i32
  store i32 %155, ptr %27, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #3
  %156 = getelementptr inbounds %"struct.std::array", ptr %28, i32 0, i32 0
  %157 = load i32, ptr %24, align 4, !tbaa !11
  store i32 %157, ptr %156, align 4, !tbaa !11
  %158 = getelementptr inbounds i32, ptr %156, i64 1
  %159 = load i32, ptr %25, align 4, !tbaa !11
  store i32 %159, ptr %158, align 4, !tbaa !11
  %160 = getelementptr inbounds i32, ptr %156, i64 2
  %161 = load i32, ptr %27, align 4, !tbaa !11
  store i32 %161, ptr %160, align 4, !tbaa !11
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %28)
          to label %162 unwind label %173

162:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #3
  %163 = getelementptr inbounds %"struct.std::array", ptr %29, i32 0, i32 0
  %164 = load i32, ptr %27, align 4, !tbaa !11
  store i32 %164, ptr %163, align 4, !tbaa !11
  %165 = getelementptr inbounds i32, ptr %163, i64 1
  %166 = load i32, ptr %26, align 4, !tbaa !11
  store i32 %166, ptr %165, align 4, !tbaa !11
  %167 = getelementptr inbounds i32, ptr %163, i64 2
  %168 = load i32, ptr %24, align 4, !tbaa !11
  store i32 %168, ptr %167, align 4, !tbaa !11
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %29)
          to label %169 unwind label %177

169:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  br label %170

170:                                              ; preds = %169
  %171 = load i64, ptr %23, align 8, !tbaa !5
  %172 = add i64 %171, 1
  store i64 %172, ptr %23, align 8, !tbaa !5
  br label %123, !llvm.loop !18

173:                                              ; preds = %129
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %20, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #3
  br label %181

177:                                              ; preds = %162
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %20, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #3
  br label %181

181:                                              ; preds = %177, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  br label %311

182:                                              ; preds = %128
  br label %183

183:                                              ; preds = %182, %117
  %184 = load i8, ptr %10, align 1, !tbaa !9, !range !16, !noundef !17
  %185 = trunc i8 %184 to i1
  %186 = zext i1 %185 to i32
  %187 = icmp eq i32 %186, 1
  br i1 %187, label %188, label %249

188:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  store i64 0, ptr %30, align 8, !tbaa !5
  br label %189

189:                                              ; preds = %236, %188
  %190 = load i64, ptr %30, align 8, !tbaa !5
  %191 = load i64, ptr %7, align 8, !tbaa !5
  %192 = sub i64 %191, 1
  %193 = icmp ult i64 %190, %192
  br i1 %193, label %195, label %194

194:                                              ; preds = %189
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  br label %248

195:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  %196 = load i64, ptr %8, align 8, !tbaa !5
  %197 = sub i64 %196, 1
  %198 = load i64, ptr %8, align 8, !tbaa !5
  %199 = load i64, ptr %30, align 8, !tbaa !5
  %200 = mul i64 %198, %199
  %201 = add i64 %197, %200
  %202 = trunc i64 %201 to i32
  store i32 %202, ptr %31, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  %203 = load i64, ptr %8, align 8, !tbaa !5
  %204 = load i64, ptr %30, align 8, !tbaa !5
  %205 = mul i64 %203, %204
  %206 = add i64 0, %205
  %207 = trunc i64 %206 to i32
  store i32 %207, ptr %32, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  %208 = load i64, ptr %8, align 8, !tbaa !5
  %209 = sub i64 %208, 1
  %210 = load i64, ptr %8, align 8, !tbaa !5
  %211 = load i64, ptr %30, align 8, !tbaa !5
  %212 = add i64 %211, 1
  %213 = mul i64 %210, %212
  %214 = add i64 %209, %213
  %215 = trunc i64 %214 to i32
  store i32 %215, ptr %33, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #3
  %216 = load i64, ptr %8, align 8, !tbaa !5
  %217 = load i64, ptr %30, align 8, !tbaa !5
  %218 = add i64 %217, 1
  %219 = mul i64 %216, %218
  %220 = add i64 0, %219
  %221 = trunc i64 %220 to i32
  store i32 %221, ptr %34, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #3
  %222 = getelementptr inbounds %"struct.std::array", ptr %35, i32 0, i32 0
  %223 = load i32, ptr %31, align 4, !tbaa !11
  store i32 %223, ptr %222, align 4, !tbaa !11
  %224 = getelementptr inbounds i32, ptr %222, i64 1
  %225 = load i32, ptr %32, align 4, !tbaa !11
  store i32 %225, ptr %224, align 4, !tbaa !11
  %226 = getelementptr inbounds i32, ptr %222, i64 2
  %227 = load i32, ptr %34, align 4, !tbaa !11
  store i32 %227, ptr %226, align 4, !tbaa !11
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %35)
          to label %228 unwind label %239

228:                                              ; preds = %195
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #3
  %229 = getelementptr inbounds %"struct.std::array", ptr %36, i32 0, i32 0
  %230 = load i32, ptr %34, align 4, !tbaa !11
  store i32 %230, ptr %229, align 4, !tbaa !11
  %231 = getelementptr inbounds i32, ptr %229, i64 1
  %232 = load i32, ptr %33, align 4, !tbaa !11
  store i32 %232, ptr %231, align 4, !tbaa !11
  %233 = getelementptr inbounds i32, ptr %229, i64 2
  %234 = load i32, ptr %31, align 4, !tbaa !11
  store i32 %234, ptr %233, align 4, !tbaa !11
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %36)
          to label %235 unwind label %243

235:                                              ; preds = %228
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  br label %236

236:                                              ; preds = %235
  %237 = load i64, ptr %30, align 8, !tbaa !5
  %238 = add i64 %237, 1
  store i64 %238, ptr %30, align 8, !tbaa !5
  br label %189, !llvm.loop !19

239:                                              ; preds = %195
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %20, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #3
  br label %247

243:                                              ; preds = %228
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %20, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #3
  br label %247

247:                                              ; preds = %243, %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  br label %311

248:                                              ; preds = %194
  br label %249

249:                                              ; preds = %248, %183
  %250 = load i8, ptr %9, align 1, !tbaa !9, !range !16, !noundef !17
  %251 = trunc i8 %250 to i1
  %252 = zext i1 %251 to i32
  %253 = icmp eq i32 %252, 1
  br i1 %253, label %254, label %307

254:                                              ; preds = %249
  %255 = load i8, ptr %10, align 1, !tbaa !9, !range !16, !noundef !17
  %256 = trunc i8 %255 to i1
  %257 = zext i1 %256 to i32
  %258 = icmp eq i32 %257, 1
  br i1 %258, label %259, label %307

259:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #3
  %260 = load i64, ptr %8, align 8, !tbaa !5
  %261 = sub i64 %260, 1
  %262 = load i64, ptr %8, align 8, !tbaa !5
  %263 = load i64, ptr %7, align 8, !tbaa !5
  %264 = sub i64 %263, 1
  %265 = mul i64 %262, %264
  %266 = add i64 %261, %265
  %267 = trunc i64 %266 to i32
  store i32 %267, ptr %37, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #3
  %268 = load i64, ptr %8, align 8, !tbaa !5
  %269 = load i64, ptr %7, align 8, !tbaa !5
  %270 = sub i64 %269, 1
  %271 = mul i64 %268, %270
  %272 = add i64 0, %271
  %273 = trunc i64 %272 to i32
  store i32 %273, ptr %38, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #3
  %274 = load i64, ptr %8, align 8, !tbaa !5
  %275 = sub i64 %274, 1
  %276 = load i64, ptr %8, align 8, !tbaa !5
  %277 = mul i64 %276, 0
  %278 = add i64 %275, %277
  %279 = trunc i64 %278 to i32
  store i32 %279, ptr %39, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #3
  %280 = load i64, ptr %8, align 8, !tbaa !5
  %281 = mul i64 %280, 0
  %282 = add i64 0, %281
  %283 = trunc i64 %282 to i32
  store i32 %283, ptr %40, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #3
  %284 = getelementptr inbounds %"struct.std::array", ptr %41, i32 0, i32 0
  %285 = load i32, ptr %37, align 4, !tbaa !11
  store i32 %285, ptr %284, align 4, !tbaa !11
  %286 = getelementptr inbounds i32, ptr %284, i64 1
  %287 = load i32, ptr %38, align 4, !tbaa !11
  store i32 %287, ptr %286, align 4, !tbaa !11
  %288 = getelementptr inbounds i32, ptr %284, i64 2
  %289 = load i32, ptr %40, align 4, !tbaa !11
  store i32 %289, ptr %288, align 4, !tbaa !11
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %41)
          to label %290 unwind label %298

290:                                              ; preds = %259
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr %42) #3
  %291 = getelementptr inbounds %"struct.std::array", ptr %42, i32 0, i32 0
  %292 = load i32, ptr %40, align 4, !tbaa !11
  store i32 %292, ptr %291, align 4, !tbaa !11
  %293 = getelementptr inbounds i32, ptr %291, i64 1
  %294 = load i32, ptr %39, align 4, !tbaa !11
  store i32 %294, ptr %293, align 4, !tbaa !11
  %295 = getelementptr inbounds i32, ptr %291, i64 2
  %296 = load i32, ptr %37, align 4, !tbaa !11
  store i32 %296, ptr %295, align 4, !tbaa !11
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %42)
          to label %297 unwind label %302

297:                                              ; preds = %290
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  br label %307

298:                                              ; preds = %259
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %20, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #3
  br label %306

302:                                              ; preds = %290
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %20, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #3
  br label %306

306:                                              ; preds = %302, %298
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  br label %311

307:                                              ; preds = %297, %254, %249
  store i1 true, ptr %11, align 1
  store i32 1, ptr %13, align 4
  %308 = load i1, ptr %11, align 1
  br i1 %308, label %310, label %309

309:                                              ; preds = %307
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  br label %310

310:                                              ; preds = %309, %307
  ret void

311:                                              ; preds = %306, %247, %181, %112
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  br label %312

312:                                              ; preds = %311
  %313 = load ptr, ptr %20, align 8
  %314 = load i32, ptr %21, align 4
  %315 = insertvalue { ptr, i32 } poison, ptr %313, 0
  %316 = insertvalue { ptr, i32 } %315, i32 %314, 1
  resume { ptr, i32 } %316
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }

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

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


; 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<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [3 x i32] }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vcl17connectivity_gridEmmbb(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector") align 8 %0, i64 noundef %1, i64 noundef %2, i1 noundef zeroext %3, i1 noundef zeroext %4) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"struct.std::array", align 4
  %7 = alloca %"struct.std::array", align 4
  %8 = alloca %"struct.std::array", align 4
  %9 = alloca %"struct.std::array", align 4
  %10 = alloca %"struct.std::array", align 4
  %11 = alloca %"struct.std::array", align 4
  %12 = alloca %"struct.std::array", align 4
  %13 = alloca %"struct.std::array", align 4
  tail call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %14 = add i64 %1, -1
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %._crit_edge110, label %.preheader105.lr.ph

.preheader105.lr.ph:                              ; preds = %5
  %15 = add i64 %2, -1
  %.not118 = icmp eq i64 %15, 0
  %16 = getelementptr inbounds i8, ptr %6, i64 4
  %17 = getelementptr inbounds i8, ptr %6, i64 8
  %18 = getelementptr inbounds i8, ptr %7, i64 4
  %19 = getelementptr inbounds i8, ptr %7, i64 8
  br i1 %.not118, label %._crit_edge110, label %.preheader105.us

.preheader105.us:                                 ; preds = %.preheader105.lr.ph, %._crit_edge.us
  %.0109.us = phi i64 [ %21, %._crit_edge.us ], [ 0, %.preheader105.lr.ph ]
  %20 = mul i64 %.0109.us, %2
  %21 = add nuw i64 %.0109.us, 1
  %22 = mul i64 %21, %2
  br label %23

23:                                               ; preds = %.preheader105.us, %34
  %.082108.us = phi i64 [ 0, %.preheader105.us ], [ %26, %34 ]
  %24 = add i64 %.082108.us, %20
  %25 = trunc i64 %24 to i32
  %26 = add nuw i64 %.082108.us, 1
  %27 = add i64 %26, %20
  %28 = trunc i64 %27 to i32
  %29 = add i64 %26, %22
  %30 = trunc i64 %29 to i32
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #3
  store i32 %25, ptr %6, align 4, !tbaa !5
  store i32 %28, ptr %16, align 4, !tbaa !5
  store i32 %30, ptr %17, align 4, !tbaa !5
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %31 unwind label %.split.us

31:                                               ; preds = %23
  %32 = add i64 %.082108.us, %22
  %33 = trunc i64 %32 to i32
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #3
  store i32 %30, ptr %7, align 4, !tbaa !5
  store i32 %33, ptr %18, align 4, !tbaa !5
  store i32 %25, ptr %19, align 4, !tbaa !5
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %34 unwind label %.split113.us

34:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #3
  %exitcond.not = icmp eq i64 %26, %15
  br i1 %exitcond.not, label %._crit_edge.us, label %23, !llvm.loop !9

._crit_edge.us:                                   ; preds = %34
  %exitcond122.not = icmp eq i64 %21, %14
  br i1 %exitcond122.not, label %._crit_edge110, label %.preheader105.us, !llvm.loop !11

.split.us:                                        ; preds = %23
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #3
  br label %95

.split113.us:                                     ; preds = %31
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #3
  br label %95

._crit_edge110:                                   ; preds = %._crit_edge.us, %.preheader105.lr.ph, %5
  br i1 %3, label %.preheader104, label %.loopexit

.preheader104:                                    ; preds = %._crit_edge110
  %37 = add i64 %2, -1
  %.not119 = icmp eq i64 %37, 0
  br i1 %.not119, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader104
  %38 = mul i64 %14, %2
  %39 = getelementptr inbounds i8, ptr %8, i64 4
  %40 = getelementptr inbounds i8, ptr %8, i64 8
  %41 = getelementptr inbounds i8, ptr %9, i64 4
  %42 = getelementptr inbounds i8, ptr %9, i64 8
  br label %43

43:                                               ; preds = %.lr.ph, %52
  %.089115 = phi i64 [ 0, %.lr.ph ], [ %46, %52 ]
  %44 = add i64 %.089115, %38
  %45 = trunc i64 %44 to i32
  %46 = add nuw i64 %.089115, 1
  %47 = add i64 %46, %38
  %48 = trunc i64 %47 to i32
  %49 = trunc i64 %46 to i32
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #3
  store i32 %45, ptr %8, align 4, !tbaa !5
  store i32 %48, ptr %39, align 4, !tbaa !5
  store i32 %49, ptr %40, align 4, !tbaa !5
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %8)
          to label %50 unwind label %53

50:                                               ; preds = %43
  %51 = trunc i64 %.089115 to i32
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #3
  store i32 %49, ptr %9, align 4, !tbaa !5
  store i32 %51, ptr %41, align 4, !tbaa !5
  store i32 %45, ptr %42, align 4, !tbaa !5
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %52 unwind label %55

52:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #3
  %exitcond123.not = icmp eq i64 %46, %37
  br i1 %exitcond123.not, label %.loopexit, label %43, !llvm.loop !12

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

55:                                               ; preds = %50
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #3
  br label %95

.loopexit:                                        ; preds = %52, %.preheader104, %._crit_edge110
  br i1 %4, label %.preheader, label %.thread

.preheader:                                       ; preds = %.loopexit
  br i1 %.not, label %._crit_edge, label %.lr.ph117

.lr.ph117:                                        ; preds = %.preheader
  %57 = add i64 %2, -1
  %58 = getelementptr inbounds i8, ptr %10, i64 4
  %59 = getelementptr inbounds i8, ptr %10, i64 8
  %60 = getelementptr inbounds i8, ptr %11, i64 4
  %61 = getelementptr inbounds i8, ptr %11, i64 8
  br label %62

62:                                               ; preds = %.lr.ph117, %73
  %.090116 = phi i64 [ 0, %.lr.ph117 ], [ %67, %73 ]
  %63 = mul i64 %.090116, %2
  %64 = add i64 %63, %57
  %65 = trunc i64 %64 to i32
  %66 = trunc i64 %63 to i32
  %67 = add nuw i64 %.090116, 1
  %68 = mul i64 %67, %2
  %69 = trunc i64 %68 to i32
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #3
  store i32 %65, ptr %10, align 4, !tbaa !5
  store i32 %66, ptr %58, align 4, !tbaa !5
  store i32 %69, ptr %59, align 4, !tbaa !5
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %70 unwind label %74

70:                                               ; preds = %62
  %71 = add i64 %68, %57
  %72 = trunc i64 %71 to i32
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #3
  store i32 %69, ptr %11, align 4, !tbaa !5
  store i32 %72, ptr %60, align 4, !tbaa !5
  store i32 %65, ptr %61, align 4, !tbaa !5
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %73 unwind label %76

73:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #3
  %exitcond124.not = icmp eq i64 %67, %14
  br i1 %exitcond124.not, label %._crit_edge, label %62, !llvm.loop !13

74:                                               ; preds = %62
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #3
  br label %95

76:                                               ; preds = %70
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #3
  br label %95

._crit_edge:                                      ; preds = %73, %.preheader
  br i1 %3, label %78, label %.thread

78:                                               ; preds = %._crit_edge
  %79 = add i64 %2, -1
  %80 = mul i64 %14, %2
  %81 = add i64 %79, %80
  %82 = trunc i64 %81 to i32
  %83 = trunc i64 %80 to i32
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #3
  store i32 %82, ptr %12, align 4, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %12, i64 4
  store i32 %83, ptr %84, align 4, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %12, i64 8
  store i32 0, ptr %85, align 4, !tbaa !5
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %86 unwind label %91

86:                                               ; preds = %78
  %87 = trunc i64 %79 to i32
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #3
  store i32 0, ptr %13, align 4, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %13, i64 4
  store i32 %87, ptr %88, align 4, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %13, i64 8
  store i32 %82, ptr %89, align 4, !tbaa !5
  invoke void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %90 unwind label %93

90:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #3
  br label %.thread

91:                                               ; preds = %78
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #3
  br label %95

93:                                               ; preds = %86
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #3
  br label %95

.thread:                                          ; preds = %.loopexit, %90, %._crit_edge
  ret void

95:                                               ; preds = %91, %93, %74, %76, %53, %55, %.split.us, %.split113.us
  %.pn97.pn = phi { ptr, i32 } [ %36, %.split113.us ], [ %35, %.split.us ], [ %56, %55 ], [ %54, %53 ], [ %77, %76 ], [ %75, %74 ], [ %94, %93 ], [ %92, %91 ]
  call void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  resume { ptr, i32 } %.pn97.pn
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt5arrayIjLm3EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }

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

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


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