; LLVM IR from SourangshuGhosh/Fluid-Simulation-for-Computer-Graphics :: src (utils)

; 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.Array3d.20 = type <{ i32, i32, i32, [4 x i8], ptr, i8, [7 x i8], %"class.std::vector.10", i32, [4 x i8] }>
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Array3d.27 = type { i32, i32, i32, ptr, i8, i8, i32 }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<GridIndex, std::allocator<GridIndex>>::_Vector_impl" }
%"struct.std::_Vector_base<GridIndex, std::allocator<GridIndex>>::_Vector_impl" = type { %"struct.std::_Vector_base<GridIndex, std::allocator<GridIndex>>::_Vector_impl_data" }
%"struct.std::_Vector_base<GridIndex, std::allocator<GridIndex>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Array3d.28 = type { i32, i32, i32, ptr, i8, i8, i32 }
%struct.GridIndex = type { i32, i32, i32 }

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7Array3dISt6vectorIdSaIdEEE10getPointerEiii(ptr noundef nonnull align 8 dereferenceable(60), i32 noundef, i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dISt6vectorIdSaIdEEEC2Eiii(ptr noundef nonnull align 8 dereferenceable(60), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9GridIndexC2Eiii(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5utils23_getCollisionGridZSubd2ER12TriangleMeshdR7Array3dISt6vectorIdSaIdEEES7_(ptr noundef nonnull align 8 dereferenceable(232), double noundef, ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(60)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5utils12isCellInsideEiiidPSt6vectorIdSaIdEE(i32 noundef, i32 noundef, i32 noundef, double noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIbEC2Eiiib(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIbE3setEiiib(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN5utils15getCellFillMaskE9GridIndexdR7Array3dISt6vectorIdSaIdEEE(i64, i32, double noundef, ptr noundef nonnull align 8 dereferenceable(60)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5utils31getCellsInsideTriangleMeshSubd2ER12TriangleMeshiiidRSt6vectorI9GridIndexSaIS3_EERS2_IhSaIhEE(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6) #2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %class.Array3d.20, align 8
  %16 = alloca %class.Array3d.20, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %class.Array3d.27, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::vector.22", align 8
  %27 = alloca %"class.std::vector.22", align 8
  %28 = alloca %class.Array3d.28, align 8
  %29 = alloca i32, align 4
  %30 = alloca %struct.GridIndex, align 4
  %31 = alloca { i64, i32 }, align 4
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca i8, align 1
  %35 = alloca %struct.GridIndex, align 4
  %36 = alloca { i64, i32 }, align 4
  %37 = alloca %struct.GridIndex, align 4
  %38 = alloca { i64, i32 }, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca %struct.GridIndex, align 4
  %43 = alloca i8, align 1
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store double %4, ptr %12, align 8, !tbaa !11
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #4
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = load i32, ptr %10, align 4, !tbaa !9
  call void @_ZN7Array3dISt6vectorIdSaIdEEEC2Eiii(ptr noundef nonnull align 8 dereferenceable(60) %15, i32 noundef %44, i32 noundef %45, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #4
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = mul nsw i32 2, %46
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = mul nsw i32 2, %48
  invoke void @_ZN7Array3dISt6vectorIdSaIdEEEC2Eiii(ptr noundef nonnull align 8 dereferenceable(60) %16, i32 noundef %47, i32 noundef %49, i32 noundef 1)
          to label %50 unwind label %63

50:                                               ; preds = %7
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load double, ptr %12, align 8, !tbaa !11
  invoke void @_ZN5utils23_getCollisionGridZSubd2ER12TriangleMeshdR7Array3dISt6vectorIdSaIdEEES7_(ptr noundef nonnull align 8 dereferenceable(232) %51, double noundef %52, ptr noundef nonnull align 8 dereferenceable(60) %15, ptr noundef nonnull align 8 dereferenceable(60) %16)
          to label %53 unwind label %67

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = load i32, ptr %11, align 4, !tbaa !9
  invoke void @_ZN7Array3dIbEC2Eiiib(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %54, i32 noundef %55, i32 noundef %56, i1 noundef zeroext false)
          to label %57 unwind label %71

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %119, %57
  %59 = load i32, ptr %22, align 4, !tbaa !9
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %75, label %62

62:                                               ; preds = %58
  store i32 2, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %122

63:                                               ; preds = %7
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %17, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %18, align 4
  br label %275

67:                                               ; preds = %50
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %17, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %18, align 4
  br label %274

71:                                               ; preds = %53
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %17, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %18, align 4
  br label %273

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

76:                                               ; preds = %115, %75
  %77 = load i32, ptr %24, align 4, !tbaa !9
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %81, label %80

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

81:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %111, %81
  %83 = load i32, ptr %25, align 4, !tbaa !9
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  store i32 8, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %114

87:                                               ; preds = %82
  %88 = load i32, ptr %25, align 4, !tbaa !9
  %89 = load i32, ptr %24, align 4, !tbaa !9
  %90 = invoke noundef ptr @_ZN7Array3dISt6vectorIdSaIdEEE10getPointerEiii(ptr noundef nonnull align 8 dereferenceable(60) %15, i32 noundef %88, i32 noundef %89, i32 noundef 0)
          to label %91 unwind label %106

91:                                               ; preds = %87
  store ptr %90, ptr %20, align 8, !tbaa !5
  %92 = load i32, ptr %25, align 4, !tbaa !9
  %93 = load i32, ptr %24, align 4, !tbaa !9
  %94 = load i32, ptr %22, align 4, !tbaa !9
  %95 = load double, ptr %12, align 8, !tbaa !11
  %96 = load ptr, ptr %20, align 8, !tbaa !5
  %97 = invoke noundef zeroext i1 @_ZN5utils12isCellInsideEiiidPSt6vectorIdSaIdEE(i32 noundef %92, i32 noundef %93, i32 noundef %94, double noundef %95, ptr noundef %96)
          to label %98 unwind label %106

98:                                               ; preds = %91
  br i1 %97, label %99, label %110

99:                                               ; preds = %98
  %100 = load i32, ptr %25, align 4, !tbaa !9
  %101 = load i32, ptr %24, align 4, !tbaa !9
  %102 = load i32, ptr %22, align 4, !tbaa !9
  invoke void @_ZN7Array3dIbE3setEiiib(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %100, i32 noundef %101, i32 noundef %102, i1 noundef zeroext true)
          to label %103 unwind label %106

103:                                              ; preds = %99
  %104 = load i32, ptr %21, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %21, align 4, !tbaa !9
  br label %110

106:                                              ; preds = %99, %91, %87
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %17, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %272

110:                                              ; preds = %103, %98
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %25, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %25, align 4, !tbaa !9
  br label %82, !llvm.loop !13

114:                                              ; preds = %86
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %24, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %24, align 4, !tbaa !9
  br label %76, !llvm.loop !15

118:                                              ; preds = %80
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %22, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %22, align 4, !tbaa !9
  br label %58, !llvm.loop !16

122:                                              ; preds = %62
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #4
  call void @_ZNSt6vectorI9GridIndexSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #4
  call void @_ZNSt6vectorI9GridIndexSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #4
  %123 = load i32, ptr %21, align 4, !tbaa !9
  %124 = sdiv i32 %123, 2
  %125 = sext i32 %124 to i64
  invoke void @_ZNSt6vectorI9GridIndexSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %125)
          to label %126 unwind label %142

126:                                              ; preds = %122
  %127 = load i32, ptr %21, align 4, !tbaa !9
  %128 = sdiv i32 %127, 2
  %129 = sext i32 %128 to i64
  invoke void @_ZNSt6vectorI9GridIndexSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %129)
          to label %130 unwind label %142

130:                                              ; preds = %126
  invoke void @_ZN5utils21sortInsideBorderCellsER7Array3dIbERSt6vectorI9GridIndexSaIS4_EES7_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %131 unwind label %142

131:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #4
  %132 = load i32, ptr %9, align 4, !tbaa !9
  %133 = load i32, ptr %10, align 4, !tbaa !9
  %134 = load i32, ptr %11, align 4, !tbaa !9
  invoke void @_ZN7Array3dIhEC2Eiiih(ptr noundef nonnull align 8 dereferenceable(32) %28, i32 noundef %132, i32 noundef %133, i32 noundef %134, i8 noundef zeroext 0)
          to label %135 unwind label %146

135:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %136

136:                                              ; preds = %159, %135
  %137 = load i32, ptr %29, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = call noundef i64 @_ZNKSt6vectorI9GridIndexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
  %140 = icmp ult i64 %138, %139
  br i1 %140, label %150, label %141

141:                                              ; preds = %136
  store i32 11, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %166

142:                                              ; preds = %130, %126, %122
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %17, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %18, align 4
  br label %271

146:                                              ; preds = %131
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %17, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %18, align 4
  br label %270

150:                                              ; preds = %136
  %151 = load i32, ptr %29, align 4, !tbaa !9
  %152 = zext i32 %151 to i64
  %153 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI9GridIndexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %152) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %153, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %30, i64 12, i1 false)
  %154 = getelementptr inbounds { i64, i32 }, ptr %31, i32 0, i32 0
  %155 = load i64, ptr %154, align 4
  %156 = getelementptr inbounds { i64, i32 }, ptr %31, i32 0, i32 1
  %157 = load i32, ptr %156, align 4
  invoke void @_ZN7Array3dIhE3setE9GridIndexh(ptr noundef nonnull align 8 dereferenceable(32) %28, i64 %155, i32 %157, i8 noundef zeroext -1)
          to label %158 unwind label %162

158:                                              ; preds = %150
  br label %159

159:                                              ; preds = %158
  %160 = load i32, ptr %29, align 4, !tbaa !9
  %161 = add i32 %160, 1
  store i32 %161, ptr %29, align 4, !tbaa !9
  br label %136, !llvm.loop !18

162:                                              ; preds = %150
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %17, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %269

166:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %167 = load double, ptr %12, align 8, !tbaa !11
  %168 = fmul double 5.000000e-01, %167
  store double %168, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %195, %166
  %170 = load i32, ptr %33, align 4, !tbaa !9
  %171 = zext i32 %170 to i64
  %172 = call noundef i64 @_ZNKSt6vectorI9GridIndexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #4
  %173 = icmp ult i64 %171, %172
  br i1 %173, label %175, label %174

174:                                              ; preds = %169
  store i32 14, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  br label %202

175:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #4
  %176 = load i32, ptr %33, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI9GridIndexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %177) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %178, i64 12, i1 false), !tbaa.struct !17
  %179 = load double, ptr %32, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %35, i64 12, i1 false)
  %180 = getelementptr inbounds { i64, i32 }, ptr %36, i32 0, i32 0
  %181 = load i64, ptr %180, align 4
  %182 = getelementptr inbounds { i64, i32 }, ptr %36, i32 0, i32 1
  %183 = load i32, ptr %182, align 4
  %184 = invoke noundef zeroext i8 @_ZN5utils15getCellFillMaskE9GridIndexdR7Array3dISt6vectorIdSaIdEEE(i64 %181, i32 %183, double noundef %179, ptr noundef nonnull align 8 dereferenceable(60) %16)
          to label %185 unwind label %198

185:                                              ; preds = %175
  store i8 %184, ptr %34, align 1, !tbaa !19
  %186 = load i32, ptr %33, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI9GridIndexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %187) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %188, i64 12, i1 false), !tbaa.struct !17
  %189 = load i8, ptr %34, align 1, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %37, i64 12, i1 false)
  %190 = getelementptr inbounds { i64, i32 }, ptr %38, i32 0, i32 0
  %191 = load i64, ptr %190, align 4
  %192 = getelementptr inbounds { i64, i32 }, ptr %38, i32 0, i32 1
  %193 = load i32, ptr %192, align 4
  invoke void @_ZN7Array3dIhE3setE9GridIndexh(ptr noundef nonnull align 8 dereferenceable(32) %28, i64 %191, i32 %193, i8 noundef zeroext %189)
          to label %194 unwind label %198

194:                                              ; preds = %185
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #4
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %33, align 4, !tbaa !9
  %197 = add i32 %196, 1
  store i32 %197, ptr %33, align 4, !tbaa !9
  br label %169, !llvm.loop !20

198:                                              ; preds = %185, %175
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %17, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  br label %268

202:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  store i32 0, ptr %39, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %264, %202
  %204 = load i32, ptr %39, align 4, !tbaa !9
  %205 = load i32, ptr %11, align 4, !tbaa !9
  %206 = icmp slt i32 %204, %205
  br i1 %206, label %208, label %207

207:                                              ; preds = %203
  store i32 17, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  br label %267

208:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %209

209:                                              ; preds = %260, %208
  %210 = load i32, ptr %40, align 4, !tbaa !9
  %211 = load i32, ptr %10, align 4, !tbaa !9
  %212 = icmp slt i32 %210, %211
  br i1 %212, label %214, label %213

213:                                              ; preds = %209
  store i32 20, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  br label %263

214:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #4
  store i32 0, ptr %41, align 4, !tbaa !9
  br label %215

215:                                              ; preds = %255, %214
  %216 = load i32, ptr %41, align 4, !tbaa !9
  %217 = load i32, ptr %9, align 4, !tbaa !9
  %218 = icmp slt i32 %216, %217
  br i1 %218, label %220, label %219

219:                                              ; preds = %215
  store i32 23, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  br label %259

220:                                              ; preds = %215
  %221 = load i32, ptr %41, align 4, !tbaa !9
  %222 = load i32, ptr %40, align 4, !tbaa !9
  %223 = load i32, ptr %39, align 4, !tbaa !9
  %224 = invoke noundef zeroext i8 @_ZN7Array3dIhEclEiii(ptr noundef nonnull align 8 dereferenceable(32) %28, i32 noundef %221, i32 noundef %222, i32 noundef %223)
          to label %225 unwind label %242

225:                                              ; preds = %220
  %226 = zext i8 %224 to i32
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %254

228:                                              ; preds = %225
  %229 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %42) #4
  %230 = load i32, ptr %41, align 4, !tbaa !9
  %231 = load i32, ptr %40, align 4, !tbaa !9
  %232 = load i32, ptr %39, align 4, !tbaa !9
  invoke void @_ZN9GridIndexC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %42, i32 noundef %230, i32 noundef %231, i32 noundef %232)
          to label %233 unwind label %246

233:                                              ; preds = %228
  invoke void @_ZNSt6vectorI9GridIndexSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %229, ptr noundef nonnull align 4 dereferenceable(12) %42)
          to label %234 unwind label %246

234:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #4
  %235 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %43) #4
  %236 = load i32, ptr %41, align 4, !tbaa !9
  %237 = load i32, ptr %40, align 4, !tbaa !9
  %238 = load i32, ptr %39, align 4, !tbaa !9
  %239 = invoke noundef zeroext i8 @_ZN7Array3dIhEclEiii(ptr noundef nonnull align 8 dereferenceable(32) %28, i32 noundef %236, i32 noundef %237, i32 noundef %238)
          to label %240 unwind label %250

240:                                              ; preds = %234
  store i8 %239, ptr %43, align 1, !tbaa !19
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %235, ptr noundef nonnull align 1 dereferenceable(1) %43)
          to label %241 unwind label %250

241:                                              ; preds = %240
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #4
  br label %254

242:                                              ; preds = %220
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %17, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %18, align 4
  br label %258

246:                                              ; preds = %233, %228
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %17, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #4
  br label %258

250:                                              ; preds = %240, %234
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %17, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #4
  br label %258

254:                                              ; preds = %241, %225
  br label %255

255:                                              ; preds = %254
  %256 = load i32, ptr %41, align 4, !tbaa !9
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr %41, align 4, !tbaa !9
  br label %215, !llvm.loop !21

258:                                              ; preds = %250, %246, %242
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  br label %268

259:                                              ; preds = %219
  br label %260

260:                                              ; preds = %259
  %261 = load i32, ptr %40, align 4, !tbaa !9
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %40, align 4, !tbaa !9
  br label %209, !llvm.loop !22

263:                                              ; preds = %213
  br label %264

264:                                              ; preds = %263
  %265 = load i32, ptr %39, align 4, !tbaa !9
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %39, align 4, !tbaa !9
  br label %203, !llvm.loop !23

267:                                              ; preds = %207
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @_ZN7Array3dIhED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #4
  call void @_ZNSt6vectorI9GridIndexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #4
  call void @_ZNSt6vectorI9GridIndexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @_ZN7Array3dIbED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  call void @_ZN7Array3dISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(60) %16) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #4
  call void @_ZN7Array3dISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(60) %15) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #4
  ret void

268:                                              ; preds = %258, %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  br label %269

269:                                              ; preds = %268, %162
  call void @_ZN7Array3dIhED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #4
  br label %270

270:                                              ; preds = %269, %146
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #4
  br label %271

271:                                              ; preds = %270, %142
  call void @_ZNSt6vectorI9GridIndexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #4
  call void @_ZNSt6vectorI9GridIndexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #4
  br label %272

272:                                              ; preds = %271, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @_ZN7Array3dIbED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #4
  br label %273

273:                                              ; preds = %272, %71
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  br label %274

274:                                              ; preds = %273, %67
  call void @_ZN7Array3dISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(60) %16) #4
  br label %275

275:                                              ; preds = %274, %63
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #4
  call void @_ZN7Array3dISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(60) %15) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #4
  br label %276

276:                                              ; preds = %275
  %277 = load ptr, ptr %17, align 8
  %278 = load i32, ptr %18, align 4
  %279 = insertvalue { ptr, i32 } poison, ptr %277, 0
  %280 = insertvalue { ptr, i32 } %279, i32 %278, 1
  resume { ptr, i32 } %280
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIhEC2Eiiih(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIhE3setE9GridIndexh(ptr noundef nonnull align 8 dereferenceable(32), i64, i32, i8 noundef zeroext) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN7Array3dIhEclEiii(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef) #2 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9}
!18 = distinct !{!18, !14}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !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.Array3d.20 = type <{ i32, i32, i32, [4 x i8], ptr, i8, [7 x i8], %"class.std::vector.10", i32, [4 x i8] }>
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Array3d.27 = type { i32, i32, i32, ptr, i8, i8, i32 }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<GridIndex, std::allocator<GridIndex>>::_Vector_impl" }
%"struct.std::_Vector_base<GridIndex, std::allocator<GridIndex>>::_Vector_impl" = type { %"struct.std::_Vector_base<GridIndex, std::allocator<GridIndex>>::_Vector_impl_data" }
%"struct.std::_Vector_base<GridIndex, std::allocator<GridIndex>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Array3d.28 = type { i32, i32, i32, ptr, i8, i8, i32 }
%struct.GridIndex = type { i32, i32, i32 }

; 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: mustprogress uwtable
declare dso_local noundef ptr @_ZN7Array3dISt6vectorIdSaIdEEE10getPointerEiii(ptr noundef nonnull align 8 dereferenceable(60), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dISt6vectorIdSaIdEEEC2Eiii(ptr noundef nonnull align 8 dereferenceable(60), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5utils23_getCollisionGridZSubd2ER12TriangleMeshdR7Array3dISt6vectorIdSaIdEEES7_(ptr noundef nonnull align 8 dereferenceable(232), double noundef, ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5utils12isCellInsideEiiidPSt6vectorIdSaIdEE(i32 noundef, i32 noundef, i32 noundef, double noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5utils21sortInsideBorderCellsER7Array3dIbERSt6vectorI9GridIndexSaIS4_EES7_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIbEC2Eiiib(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIbE3setEiiib(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN5utils15getCellFillMaskE9GridIndexdR7Array3dISt6vectorIdSaIdEEE(i64, i32, double noundef, ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5utils31getCellsInsideTriangleMeshSubd2ER12TriangleMeshiiidRSt6vectorI9GridIndexSaIS3_EERS2_IhSaIhEE(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %8 = alloca %class.Array3d.20, align 8
  %9 = alloca %class.Array3d.20, align 8
  %10 = alloca %class.Array3d.27, align 8
  %11 = alloca %"class.std::vector.22", align 8
  %12 = alloca %"class.std::vector.22", align 8
  %13 = alloca %class.Array3d.28, align 8
  %14 = alloca %struct.GridIndex, align 4
  %15 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #3
  call void @_ZN7Array3dISt6vectorIdSaIdEEEC2Eiii(ptr noundef nonnull align 8 dereferenceable(60) %8, i32 noundef %1, i32 noundef %2, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #3
  %16 = shl nsw i32 %1, 1
  %17 = shl nsw i32 %2, 1
  invoke void @_ZN7Array3dISt6vectorIdSaIdEEEC2Eiii(ptr noundef nonnull align 8 dereferenceable(60) %9, i32 noundef %16, i32 noundef %17, i32 noundef 1)
          to label %18 unwind label %39

18:                                               ; preds = %7
  invoke void @_ZN5utils23_getCollisionGridZSubd2ER12TriangleMeshdR7Array3dISt6vectorIdSaIdEEES7_(ptr noundef nonnull align 8 dereferenceable(232) %0, double noundef %4, ptr noundef nonnull align 8 dereferenceable(60) %8, ptr noundef nonnull align 8 dereferenceable(60) %9)
          to label %19 unwind label %41

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #3
  invoke void @_ZN7Array3dIbEC2Eiiib(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext false)
          to label %.preheader116 unwind label %43

.preheader116:                                    ; preds = %19
  %20 = icmp sgt i32 %3, 0
  %21 = icmp sgt i32 %2, 0
  %22 = icmp sgt i32 %1, 0
  %23 = and i1 %21, %22
  %or.cond179 = and i1 %23, %20
  br i1 %or.cond179, label %.preheader115.us.us, label %._crit_edge

.preheader115.us.us:                              ; preds = %.preheader116, %._crit_edge124.split.us.us.us
  %.087129.us.us = phi i32 [ %.390.us.us.us, %._crit_edge124.split.us.us.us ], [ 0, %.preheader116 ]
  %.091127.us.us = phi i32 [ %35, %._crit_edge124.split.us.us.us ], [ 0, %.preheader116 ]
  br label %.preheader114.us.us.us

.preheader114.us.us.us:                           ; preds = %._crit_edge.us.us.us, %.preheader115.us.us
  %.188123.us.us.us = phi i32 [ %.087129.us.us, %.preheader115.us.us ], [ %.390.us.us.us, %._crit_edge.us.us.us ]
  %.092122.us.us.us = phi i32 [ 0, %.preheader115.us.us ], [ %34, %._crit_edge.us.us.us ]
  br label %24

24:                                               ; preds = %32, %.preheader114.us.us.us
  %.289121.us.us.us = phi i32 [ %.188123.us.us.us, %.preheader114.us.us.us ], [ %.390.us.us.us, %32 ]
  %.093120.us.us.us = phi i32 [ 0, %.preheader114.us.us.us ], [ %33, %32 ]
  %25 = invoke noundef ptr @_ZN7Array3dISt6vectorIdSaIdEEE10getPointerEiii(ptr noundef nonnull align 8 dereferenceable(60) %8, i32 noundef %.093120.us.us.us, i32 noundef %.092122.us.us.us, i32 noundef 0)
          to label %26 unwind label %.split.us.split.us.split.us

26:                                               ; preds = %24
  %27 = invoke noundef zeroext i1 @_ZN5utils12isCellInsideEiiidPSt6vectorIdSaIdEE(i32 noundef %.093120.us.us.us, i32 noundef %.092122.us.us.us, i32 noundef %.091127.us.us, double noundef %4, ptr noundef %25)
          to label %28 unwind label %.split.us.split.us.split.us

28:                                               ; preds = %26
  br i1 %27, label %29, label %32

29:                                               ; preds = %28
  invoke void @_ZN7Array3dIbE3setEiiib(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef %.093120.us.us.us, i32 noundef %.092122.us.us.us, i32 noundef %.091127.us.us, i1 noundef zeroext true)
          to label %30 unwind label %.split.us.split.us.split.us

30:                                               ; preds = %29
  %31 = add nsw i32 %.289121.us.us.us, 1
  br label %32

32:                                               ; preds = %30, %28
  %.390.us.us.us = phi i32 [ %31, %30 ], [ %.289121.us.us.us, %28 ]
  %33 = add nuw nsw i32 %.093120.us.us.us, 1
  %exitcond.not = icmp eq i32 %33, %1
  br i1 %exitcond.not, label %._crit_edge.us.us.us, label %24, !llvm.loop !5

._crit_edge.us.us.us:                             ; preds = %32
  %34 = add nuw nsw i32 %.092122.us.us.us, 1
  %exitcond174.not = icmp eq i32 %34, %2
  br i1 %exitcond174.not, label %._crit_edge124.split.us.us.us, label %.preheader114.us.us.us, !llvm.loop !7

._crit_edge124.split.us.us.us:                    ; preds = %._crit_edge.us.us.us
  %35 = add nuw nsw i32 %.091127.us.us, 1
  %exitcond175.not = icmp eq i32 %35, %3
  br i1 %exitcond175.not, label %._crit_edge.loopexit, label %.preheader115.us.us, !llvm.loop !8

.split.us.split.us.split.us:                      ; preds = %29, %26, %24
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %97

._crit_edge.loopexit:                             ; preds = %._crit_edge124.split.us.us.us
  %37 = sdiv i32 %.390.us.us.us, 2
  %38 = sext i32 %37 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader116
  %.087.lcssa = phi i64 [ 0, %.preheader116 ], [ %38, %._crit_edge.loopexit ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #3
  call void @_ZNSt6vectorI9GridIndexSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #3
  call void @_ZNSt6vectorI9GridIndexSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  invoke void @_ZNSt6vectorI9GridIndexSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.087.lcssa)
          to label %45 unwind label %51

39:                                               ; preds = %7
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %100

41:                                               ; preds = %18
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %99

43:                                               ; preds = %19
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %98

45:                                               ; preds = %._crit_edge
  invoke void @_ZNSt6vectorI9GridIndexSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.087.lcssa)
          to label %46 unwind label %51

46:                                               ; preds = %45
  invoke void @_ZN5utils21sortInsideBorderCellsER7Array3dIbERSt6vectorI9GridIndexSaIS4_EES7_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %47 unwind label %51

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #3
  invoke void @_ZN7Array3dIhEC2Eiiih(ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef %1, i32 noundef %2, i32 noundef %3, i8 noundef zeroext 0)
          to label %.preheader113 unwind label %53

.preheader113:                                    ; preds = %47
  %48 = call noundef i64 @_ZNKSt6vectorI9GridIndexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  %.not = icmp eq i64 %48, 0
  br i1 %.not, label %._crit_edge139, label %.lr.ph

._crit_edge139:                                   ; preds = %57, %.preheader113
  %49 = fmul double %4, 5.000000e-01
  %50 = call noundef i64 @_ZNKSt6vectorI9GridIndexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  %.not169 = icmp eq i64 %50, 0
  br i1 %.not169, label %.preheader112, label %.lr.ph142

51:                                               ; preds = %46, %45, %._crit_edge
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %96

53:                                               ; preds = %47
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %95

.lr.ph:                                           ; preds = %.preheader113, %57
  %55 = phi i64 [ %59, %57 ], [ 0, %.preheader113 ]
  %.094138 = phi i32 [ %58, %57 ], [ 0, %.preheader113 ]
  %56 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI9GridIndexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %55) #3
  %.sroa.028.0.copyload = load i64, ptr %56, align 4
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %56, i64 8
  %.sroa.229.0.copyload = load i32, ptr %.sroa.229.0..sroa_idx, align 4, !tbaa !9
  invoke void @_ZN7Array3dIhE3setE9GridIndexh(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 %.sroa.028.0.copyload, i32 %.sroa.229.0.copyload, i8 noundef zeroext -1)
          to label %57 unwind label %62

57:                                               ; preds = %.lr.ph
  %58 = add i32 %.094138, 1
  %59 = zext i32 %58 to i64
  %60 = call noundef i64 @_ZNKSt6vectorI9GridIndexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  %61 = icmp ugt i64 %60, %59
  br i1 %61, label %.lr.ph, label %._crit_edge139, !llvm.loop !13

62:                                               ; preds = %.lr.ph
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %94

.preheader112:                                    ; preds = %87, %._crit_edge139
  %64 = icmp sgt i32 %2, 0
  %65 = icmp sgt i32 %1, 0
  %66 = and i1 %64, %65
  %or.cond181 = and i1 %66, %20
  br i1 %or.cond181, label %.preheader111.us.us, label %._crit_edge158

.preheader111.us.us:                              ; preds = %.preheader112, %._crit_edge147.split.us.us.us
  %.076156.us.us = phi i32 [ %78, %._crit_edge147.split.us.us.us ], [ 0, %.preheader112 ]
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge145.us.us.us, %.preheader111.us.us
  %.075146.us.us.us = phi i32 [ 0, %.preheader111.us.us ], [ %77, %._crit_edge145.us.us.us ]
  br label %67

67:                                               ; preds = %75, %.preheader.us.us.us
  %.0143.us.us.us = phi i32 [ 0, %.preheader.us.us.us ], [ %76, %75 ]
  %68 = invoke noundef zeroext i8 @_ZN7Array3dIhEclEiii(ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef %.0143.us.us.us, i32 noundef %.075146.us.us.us, i32 noundef %.076156.us.us)
          to label %69 unwind label %.split.us148.split.us.split.us

69:                                               ; preds = %67
  %.not.us.us.us = icmp eq i8 %68, 0
  br i1 %.not.us.us.us, label %75, label %70

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #3
  call void @_ZN9GridIndexC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef %.0143.us.us.us, i32 noundef %.075146.us.us.us, i32 noundef %.076156.us.us)
  invoke void @_ZNSt6vectorI9GridIndexSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %71 unwind label %.split151.us.split.us.split.us

71:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #3
  %72 = invoke noundef zeroext i8 @_ZN7Array3dIhEclEiii(ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef %.0143.us.us.us, i32 noundef %.075146.us.us.us, i32 noundef %.076156.us.us)
          to label %73 unwind label %.split154.us.split.us.split.us

73:                                               ; preds = %71
  store i8 %72, ptr %15, align 1, !tbaa !14
  invoke void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %74 unwind label %.split154.us.split.us.split.us

74:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #3
  br label %75

75:                                               ; preds = %74, %69
  %76 = add nuw nsw i32 %.0143.us.us.us, 1
  %exitcond176.not = icmp eq i32 %76, %1
  br i1 %exitcond176.not, label %._crit_edge145.us.us.us, label %67, !llvm.loop !15

._crit_edge145.us.us.us:                          ; preds = %75
  %77 = add nuw nsw i32 %.075146.us.us.us, 1
  %exitcond177.not = icmp eq i32 %77, %2
  br i1 %exitcond177.not, label %._crit_edge147.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !16

._crit_edge147.split.us.us.us:                    ; preds = %._crit_edge145.us.us.us
  %78 = add nuw nsw i32 %.076156.us.us, 1
  %exitcond178.not = icmp eq i32 %78, %3
  br i1 %exitcond178.not, label %._crit_edge158, label %.preheader111.us.us, !llvm.loop !17

.split.us148.split.us.split.us:                   ; preds = %67
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %94

.split151.us.split.us.split.us:                   ; preds = %70
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #3
  br label %94

.split154.us.split.us.split.us:                   ; preds = %73, %71
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #3
  br label %94

.lr.ph142:                                        ; preds = %._crit_edge139, %87
  %82 = phi i64 [ %89, %87 ], [ 0, %._crit_edge139 ]
  %.095140 = phi i32 [ %88, %87 ], [ 0, %._crit_edge139 ]
  %83 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI9GridIndexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %82) #3
  %.sroa.019.0.copyload = load i64, ptr %83, align 4
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %83, i64 8
  %.sroa.220.0.copyload = load i32, ptr %.sroa.220.0..sroa_idx, align 4, !tbaa !9
  %84 = invoke noundef zeroext i8 @_ZN5utils15getCellFillMaskE9GridIndexdR7Array3dISt6vectorIdSaIdEEE(i64 %.sroa.019.0.copyload, i32 %.sroa.220.0.copyload, double noundef %49, ptr noundef nonnull align 8 dereferenceable(60) %9)
          to label %85 unwind label %92

85:                                               ; preds = %.lr.ph142
  %86 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI9GridIndexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %82) #3
  %.sroa.015.0.copyload = load i64, ptr %86, align 4
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %86, i64 8
  %.sroa.216.0.copyload = load i32, ptr %.sroa.216.0..sroa_idx, align 4, !tbaa !9
  invoke void @_ZN7Array3dIhE3setE9GridIndexh(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 %.sroa.015.0.copyload, i32 %.sroa.216.0.copyload, i8 noundef zeroext %84)
          to label %87 unwind label %92

87:                                               ; preds = %85
  %88 = add i32 %.095140, 1
  %89 = zext i32 %88 to i64
  %90 = call noundef i64 @_ZNKSt6vectorI9GridIndexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  %91 = icmp ugt i64 %90, %89
  br i1 %91, label %.lr.ph142, label %.preheader112, !llvm.loop !18

92:                                               ; preds = %85, %.lr.ph142
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %94

._crit_edge158:                                   ; preds = %._crit_edge147.split.us.us.us, %.preheader112
  call void @_ZN7Array3dIhED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #3
  call void @_ZNSt6vectorI9GridIndexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #3
  call void @_ZNSt6vectorI9GridIndexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #3
  call void @_ZN7Array3dIbED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #3
  call void @_ZN7Array3dISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(60) %9) #3
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #3
  call void @_ZN7Array3dISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(60) %8) #3
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #3
  ret void

94:                                               ; preds = %92, %.split154.us.split.us.split.us, %.split151.us.split.us.split.us, %.split.us148.split.us.split.us, %62
  %.pn102 = phi { ptr, i32 } [ %63, %62 ], [ %93, %92 ], [ %81, %.split154.us.split.us.split.us ], [ %80, %.split151.us.split.us.split.us ], [ %79, %.split.us148.split.us.split.us ]
  call void @_ZN7Array3dIhED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #3
  br label %95

95:                                               ; preds = %94, %53
  %.pn102.pn = phi { ptr, i32 } [ %.pn102, %94 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #3
  br label %96

96:                                               ; preds = %95, %51
  %.pn102.pn.pn = phi { ptr, i32 } [ %.pn102.pn, %95 ], [ %52, %51 ]
  call void @_ZNSt6vectorI9GridIndexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #3
  call void @_ZNSt6vectorI9GridIndexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #3
  br label %97

97:                                               ; preds = %96, %.split.us.split.us.split.us
  %.pn106 = phi { ptr, i32 } [ %36, %.split.us.split.us.split.us ], [ %.pn102.pn.pn, %96 ]
  call void @_ZN7Array3dIbED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #3
  br label %98

98:                                               ; preds = %97, %43
  %.pn106.pn = phi { ptr, i32 } [ %.pn106, %97 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #3
  br label %99

99:                                               ; preds = %98, %41
  %.pn106.pn.pn = phi { ptr, i32 } [ %.pn106.pn, %98 ], [ %42, %41 ]
  call void @_ZN7Array3dISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(60) %9) #3
  br label %100

100:                                              ; preds = %99, %39
  %.pn106.pn.pn.pn = phi { ptr, i32 } [ %.pn106.pn.pn, %99 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #3
  call void @_ZN7Array3dISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 8 dereferenceable(60) %8) #3
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #3
  resume { ptr, i32 } %.pn106.pn.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIhEC2Eiiih(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIhE3setE9GridIndexh(ptr noundef nonnull align 8 dereferenceable(32), i64, i32, i8 noundef zeroext) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN7Array3dIhEclEiii(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = distinct !{!13, !6}
!14 = !{!11, !11, i64 0}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}
!18 = distinct !{!18, !6}


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