; LLVM IR from erwincoumans/tiny-differentiable-simulator :: src/visualizer/opengl (tiny_gl_instancing_renderer)

; 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.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.TinyGLInstancingRenderer = type <{ ptr, %"class.std::vector", ptr, i8, i8, [2 x i8], i32, i32, i32, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<b3GraphicsInstance *, std::allocator<b3GraphicsInstance *>>::_Vector_impl" }
%"struct.std::_Vector_base<b3GraphicsInstance *, std::allocator<b3GraphicsInstance *>>::_Vector_impl" = type { %"struct.std::_Vector_base<b3GraphicsInstance *, std::allocator<b3GraphicsInstance *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<b3GraphicsInstance *, std::allocator<b3GraphicsInstance *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.InternalDataRenderer = type <{ %struct.GLInstanceRendererInternalData.base, [4 x i8], %struct.TinyCamera, ptr, [16 x float], [16 x float], [16 x float], [16 x float], [16 x float], i8, [3 x i8], %"struct.TINY::TinyVector3", %"struct.TINY::TinyVector3", i32, %"class.std::vector.5", ptr, i32, i32, %class.TinyResizablePool, i32, i32, float, i8, [3 x i8] }>
%struct.GLInstanceRendererInternalData.base = type <{ %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0", i32, i32, i32, i32, i32 }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.TinyCamera = type { ptr, ptr }
%"struct.TINY::TinyVector3" = type { float, float, float, i32 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<InternalTextureHandle, std::allocator<InternalTextureHandle>>::_Vector_impl" }
%"struct.std::_Vector_base<InternalTextureHandle, std::allocator<InternalTextureHandle>>::_Vector_impl" = type { %"struct.std::_Vector_base<InternalTextureHandle, std::allocator<InternalTextureHandle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<InternalTextureHandle, std::allocator<InternalTextureHandle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.TinyResizablePool = type { ptr, %"class.std::vector.10", i32, i32 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<TinyPoolBodyHandle<TinyPublicGraphicsInstanceData>, std::allocator<TinyPoolBodyHandle<TinyPublicGraphicsInstanceData>>>::_Vector_impl" }
%"struct.std::_Vector_base<TinyPoolBodyHandle<TinyPublicGraphicsInstanceData>, std::allocator<TinyPoolBodyHandle<TinyPublicGraphicsInstanceData>>>::_Vector_impl" = type { %"struct.std::_Vector_base<TinyPoolBodyHandle<TinyPublicGraphicsInstanceData>, std::allocator<TinyPoolBodyHandle<TinyPublicGraphicsInstanceData>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TinyPoolBodyHandle<TinyPublicGraphicsInstanceData>, std::allocator<TinyPoolBodyHandle<TinyPublicGraphicsInstanceData>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.InternalTextureHandle = type { i32, i32, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [130 x i8], align 1
@glad_glGetError = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@glad_glActiveTexture = external global ptr, align 8
@glad_glBindTexture = external global ptr, align 8
@__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer14update_textureEiPKhb = external hidden unnamed_addr constant [88 x i8], align 1
@glad_glTexImage2D = external global ptr, align 8
@glad_glGenerateMipmap = external global ptr, align 8

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24TinyGLInstancingRenderer14update_textureEiPKhb(ptr noundef nonnull align 8 dereferenceable(60) %0, i32 noundef %1, ptr noundef %2, i1 noundef zeroext %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::vector.20", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  %16 = zext i1 %3 to i8
  store i8 %16, ptr %8, align 1, !tbaa !11
  %17 = load ptr, ptr %5, align 8
  %18 = load i32, ptr %6, align 4, !tbaa !9
  %19 = icmp sge i32 %18, 0
  br i1 %19, label %20, label %221

20:                                               ; preds = %4
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds %class.TinyGLInstancingRenderer, ptr %17, i32 0, i32 2
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = getelementptr inbounds %struct.InternalDataRenderer, ptr %24, i32 0, i32 14
  %26 = call noundef i64 @_ZNKSt6vectorI21InternalTextureHandleSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #4
  %27 = icmp ult i64 %22, %26
  br i1 %27, label %28, label %221

28:                                               ; preds = %20
  %29 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !5
  call void %29(i32 noundef 33984)
  %30 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %31 = call i32 %30()
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %28
  br label %36

34:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1021, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer14update_textureEiPKhb) #5
  unreachable

35:                                               ; No predecessors!
  br label %36

36:                                               ; preds = %35, %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %37 = getelementptr inbounds %class.TinyGLInstancingRenderer, ptr %17, i32 0, i32 2
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = getelementptr inbounds %struct.InternalDataRenderer, ptr %38, i32 0, i32 14
  %40 = load i32, ptr %6, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI21InternalTextureHandleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %41) #4
  store ptr %42, ptr %9, align 8, !tbaa !5
  %43 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.InternalTextureHandle, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 4, !tbaa !19
  call void %43(i32 noundef 3553, i32 noundef %46)
  %47 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %48 = call i32 %47()
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %36
  br label %53

51:                                               ; preds = %36
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1024, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer14update_textureEiPKhb) #5
  unreachable

52:                                               ; No predecessors!
  br label %53

53:                                               ; preds = %52, %50
  %54 = load i8, ptr %8, align 1, !tbaa !11, !range !21, !noundef !22
  %55 = trunc i8 %54 to i1
  br i1 %55, label %56, label %189

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.InternalTextureHandle, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 4, !tbaa !23
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.InternalTextureHandle, ptr %60, i32 0, i32 2
  %62 = load i32, ptr %61, align 4, !tbaa !24
  %63 = mul nsw i32 %59, %62
  %64 = mul nsw i32 %63, 3
  %65 = sext i32 %64 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %65)
          to label %66 unwind label %74

66:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %176, %66
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.InternalTextureHandle, ptr %69, i32 0, i32 2
  %71 = load i32, ptr %70, align 4, !tbaa !24
  %72 = icmp slt i32 %68, %71
  br i1 %72, label %78, label %73

73:                                               ; preds = %67
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %179

74:                                               ; preds = %179, %56
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %11, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %12, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %222

78:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %172, %78
  %80 = load i32, ptr %15, align 4, !tbaa !9
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.InternalTextureHandle, ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 4, !tbaa !23
  %84 = icmp slt i32 %80, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %79
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %175

86:                                               ; preds = %79
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load i32, ptr %15, align 4, !tbaa !9
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.InternalTextureHandle, ptr %89, i32 0, i32 2
  %91 = load i32, ptr %90, align 4, !tbaa !24
  %92 = sub nsw i32 %91, 1
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = sub nsw i32 %92, %93
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.InternalTextureHandle, ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 4, !tbaa !23
  %98 = mul nsw i32 %94, %97
  %99 = add nsw i32 %88, %98
  %100 = mul nsw i32 %99, 3
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds i8, ptr %87, i64 %101
  %103 = load i8, ptr %102, align 1, !tbaa !25
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = load i32, ptr %13, align 4, !tbaa !9
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.InternalTextureHandle, ptr %106, i32 0, i32 1
  %108 = load i32, ptr %107, align 4, !tbaa !23
  %109 = mul nsw i32 %105, %108
  %110 = add nsw i32 %104, %109
  %111 = mul nsw i32 %110, 3
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %112) #4
  store i8 %103, ptr %113, align 1, !tbaa !25
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load i32, ptr %15, align 4, !tbaa !9
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.InternalTextureHandle, ptr %116, i32 0, i32 2
  %118 = load i32, ptr %117, align 4, !tbaa !24
  %119 = sub nsw i32 %118, 1
  %120 = load i32, ptr %13, align 4, !tbaa !9
  %121 = sub nsw i32 %119, %120
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.InternalTextureHandle, ptr %122, i32 0, i32 1
  %124 = load i32, ptr %123, align 4, !tbaa !23
  %125 = mul nsw i32 %121, %124
  %126 = add nsw i32 %115, %125
  %127 = mul nsw i32 %126, 3
  %128 = add nsw i32 %127, 1
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds i8, ptr %114, i64 %129
  %131 = load i8, ptr %130, align 1, !tbaa !25
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.InternalTextureHandle, ptr %134, i32 0, i32 1
  %136 = load i32, ptr %135, align 4, !tbaa !23
  %137 = mul nsw i32 %133, %136
  %138 = add nsw i32 %132, %137
  %139 = mul nsw i32 %138, 3
  %140 = add nsw i32 %139, 1
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %141) #4
  store i8 %131, ptr %142, align 1, !tbaa !25
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = load i32, ptr %15, align 4, !tbaa !9
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.InternalTextureHandle, ptr %145, i32 0, i32 2
  %147 = load i32, ptr %146, align 4, !tbaa !24
  %148 = sub nsw i32 %147, 1
  %149 = load i32, ptr %13, align 4, !tbaa !9
  %150 = sub nsw i32 %148, %149
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.InternalTextureHandle, ptr %151, i32 0, i32 1
  %153 = load i32, ptr %152, align 4, !tbaa !23
  %154 = mul nsw i32 %150, %153
  %155 = add nsw i32 %144, %154
  %156 = mul nsw i32 %155, 3
  %157 = add nsw i32 %156, 2
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds i8, ptr %143, i64 %158
  %160 = load i8, ptr %159, align 1, !tbaa !25
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = load i32, ptr %13, align 4, !tbaa !9
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.InternalTextureHandle, ptr %163, i32 0, i32 1
  %165 = load i32, ptr %164, align 4, !tbaa !23
  %166 = mul nsw i32 %162, %165
  %167 = add nsw i32 %161, %166
  %168 = mul nsw i32 %167, 3
  %169 = add nsw i32 %168, 2
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %170) #4
  store i8 %160, ptr %171, align 1, !tbaa !25
  br label %172

172:                                              ; preds = %86
  %173 = load i32, ptr %15, align 4, !tbaa !9
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %15, align 4, !tbaa !9
  br label %79, !llvm.loop !26

175:                                              ; preds = %85
  br label %176

176:                                              ; preds = %175
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %13, align 4, !tbaa !9
  br label %67, !llvm.loop !28

179:                                              ; preds = %73
  %180 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.InternalTextureHandle, ptr %181, i32 0, i32 1
  %183 = load i32, ptr %182, align 4, !tbaa !23
  %184 = load ptr, ptr %9, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.InternalTextureHandle, ptr %184, i32 0, i32 2
  %186 = load i32, ptr %185, align 4, !tbaa !24
  %187 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #4
  invoke void %180(i32 noundef 3553, i32 noundef 0, i32 noundef 6407, i32 noundef %183, i32 noundef %186, i32 noundef 0, i32 noundef 6407, i32 noundef 5121, ptr noundef %187)
          to label %188 unwind label %74

188:                                              ; preds = %179
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  br label %199

189:                                              ; preds = %53
  %190 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.InternalTextureHandle, ptr %191, i32 0, i32 1
  %193 = load i32, ptr %192, align 4, !tbaa !23
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.InternalTextureHandle, ptr %194, i32 0, i32 2
  %196 = load i32, ptr %195, align 4, !tbaa !24
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  %198 = getelementptr inbounds i8, ptr %197, i64 0
  call void %190(i32 noundef 3553, i32 noundef 0, i32 noundef 6407, i32 noundef %193, i32 noundef %196, i32 noundef 0, i32 noundef 6407, i32 noundef 5121, ptr noundef %198)
  br label %199

199:                                              ; preds = %189, %188
  %200 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %201 = call i32 %200()
  %202 = icmp eq i32 %201, 0
  br i1 %202, label %203, label %204

203:                                              ; preds = %199
  br label %206

204:                                              ; preds = %199
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1048, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer14update_textureEiPKhb) #5
  unreachable

205:                                              ; No predecessors!
  br label %206

206:                                              ; preds = %205, %203
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.InternalTextureHandle, ptr %207, i32 0, i32 3
  %209 = load i32, ptr %208, align 4, !tbaa !29
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %213

211:                                              ; preds = %206
  %212 = load ptr, ptr @glad_glGenerateMipmap, align 8, !tbaa !5
  call void %212(i32 noundef 3553)
  br label %213

213:                                              ; preds = %211, %206
  %214 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %215 = call i32 %214()
  %216 = icmp eq i32 %215, 0
  br i1 %216, label %217, label %218

217:                                              ; preds = %213
  br label %220

218:                                              ; preds = %213
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1052, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer14update_textureEiPKhb) #5
  unreachable

219:                                              ; No predecessors!
  br label %220

220:                                              ; preds = %219, %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %221

221:                                              ; preds = %220, %20, %4
  ret void

222:                                              ; preds = %74
  %223 = load ptr, ptr %11, align 8
  %224 = load i32, ptr %12, align 4
  %225 = insertvalue { ptr, i32 } poison, ptr %223, 0
  %226 = insertvalue { ptr, i32 } %225, i32 %224, 1
  resume { ptr, i32 } %226
}

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 32}
!14 = !{!"_ZTS24TinyGLInstancingRenderer", !15, i64 8, !6, i64 32, !12, i64 40, !12, i64 41, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56}
!15 = !{!"_ZTSSt6vectorIP18b3GraphicsInstanceSaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIP18b3GraphicsInstanceSaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIP18b3GraphicsInstanceSaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIP18b3GraphicsInstanceSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!20, !10, i64 0}
!20 = !{!"_ZTS21InternalTextureHandle", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!20, !10, i64 4}
!24 = !{!20, !10, i64 8}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = !{!20, !10, i64 12}


; 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.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [130 x i8], align 1
@glad_glGetError = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@glad_glActiveTexture = external local_unnamed_addr global ptr, align 8
@glad_glBindTexture = external local_unnamed_addr global ptr, align 8
@__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer14update_textureEiPKhb = external hidden unnamed_addr constant [88 x i8], align 1
@glad_glTexImage2D = external local_unnamed_addr global ptr, align 8
@glad_glGenerateMipmap = external local_unnamed_addr global ptr, align 8

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24TinyGLInstancingRenderer14update_textureEiPKhb(ptr nocapture noundef nonnull readonly align 8 dereferenceable(60) %0, i32 noundef %1, ptr noundef %2, i1 noundef zeroext %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.20", align 8
  %6 = icmp sgt i32 %1, -1
  br i1 %6, label %7, label %123

7:                                                ; preds = %4
  %8 = zext nneg i32 %1 to i64
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 504
  %12 = tail call noundef i64 @_ZNKSt6vectorI21InternalTextureHandleSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %13 = icmp ugt i64 %12, %8
  br i1 %13, label %14, label %123

14:                                               ; preds = %7
  %15 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !16
  tail call void %15(i32 noundef 33984)
  %16 = load ptr, ptr @glad_glGetError, align 8, !tbaa !16
  %17 = tail call i32 %16()
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %20, label %19

19:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1021, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer14update_textureEiPKhb) #5
  unreachable

20:                                               ; preds = %14
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 504
  %23 = tail call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI21InternalTextureHandleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %8) #4
  %24 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !16
  %25 = load i32, ptr %23, align 4, !tbaa !17
  tail call void %24(i32 noundef 3553, i32 noundef %25)
  %26 = load ptr, ptr @glad_glGetError, align 8, !tbaa !16
  %27 = tail call i32 %26()
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %30, label %29

29:                                               ; preds = %20
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1024, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer14update_textureEiPKhb) #5
  unreachable

30:                                               ; preds = %20
  br i1 %3, label %31, label %102

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  %32 = getelementptr inbounds i8, ptr %23, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !19
  %34 = getelementptr inbounds i8, ptr %23, i64 8
  %35 = load i32, ptr %34, align 4, !tbaa !20
  %36 = mul i32 %33, 3
  %37 = mul i32 %36, %35
  %38 = sext i32 %37 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %38)
          to label %.preheader50 unwind label %49

.preheader50:                                     ; preds = %31
  %39 = load i32, ptr %34, align 4, !tbaa !20
  %40 = icmp sgt i32 %39, 0
  %.pre58 = load i32, ptr %32, align 4, !tbaa !19
  br i1 %40, label %.preheader.lr.ph, label %._crit_edge55

.preheader.lr.ph:                                 ; preds = %.preheader50
  %invariant.gep = getelementptr i8, ptr %2, i64 1
  %invariant.gep51 = getelementptr i8, ptr %2, i64 2
  %41 = icmp sgt i32 %.pre58, 0
  br i1 %41, label %.preheader, label %._crit_edge55

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %42 = phi i32 [ %51, %._crit_edge ], [ %39, %.preheader.lr.ph ]
  %43 = phi i32 [ %52, %._crit_edge ], [ %.pre58, %.preheader.lr.ph ]
  %.04554 = phi i32 [ %53, %._crit_edge ], [ 0, %.preheader.lr.ph ]
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %45 = xor i32 %.04554, -1
  br label %55

._crit_edge55:                                    ; preds = %._crit_edge, %.preheader.lr.ph, %.preheader50
  %46 = phi i32 [ %.pre58, %.preheader50 ], [ %.pre58, %.preheader.lr.ph ], [ %52, %._crit_edge ]
  %.lcssa = phi i32 [ %39, %.preheader50 ], [ %39, %.preheader.lr.ph ], [ %51, %._crit_edge ]
  %47 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !16
  %48 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #4
  invoke void %47(i32 noundef 3553, i32 noundef 0, i32 noundef 6407, i32 noundef %46, i32 noundef %.lcssa, i32 noundef 0, i32 noundef 6407, i32 noundef 5121, ptr noundef nonnull %48)
          to label %101 unwind label %49

49:                                               ; preds = %._crit_edge55, %31
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  resume { ptr, i32 } %50

._crit_edge.loopexit:                             ; preds = %55
  %.pre = load i32, ptr %34, align 4, !tbaa !20
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %51 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %42, %.preheader ]
  %52 = phi i32 [ %99, %._crit_edge.loopexit ], [ %43, %.preheader ]
  %53 = add nuw nsw i32 %.04554, 1
  %54 = icmp slt i32 %53, %51
  br i1 %54, label %.preheader, label %._crit_edge55, !llvm.loop !21

55:                                               ; preds = %.lr.ph, %55
  %56 = phi i32 [ %43, %.lr.ph ], [ %99, %55 ]
  %.053 = phi i32 [ 0, %.lr.ph ], [ %98, %55 ]
  %57 = load i32, ptr %34, align 4, !tbaa !20
  %58 = add i32 %57, %45
  %59 = mul nsw i32 %58, %56
  %60 = add nsw i32 %59, %.053
  %61 = mul nsw i32 %60, 3
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i8, ptr %2, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !24
  %65 = mul nsw i32 %56, %.04554
  %66 = add nsw i32 %65, %.053
  %67 = mul nsw i32 %66, 3
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %68) #4
  store i8 %64, ptr %69, align 1, !tbaa !24
  %70 = load i32, ptr %34, align 4, !tbaa !20
  %71 = add i32 %70, %45
  %72 = load i32, ptr %32, align 4, !tbaa !19
  %73 = mul nsw i32 %71, %72
  %74 = add nsw i32 %73, %.053
  %75 = mul nsw i32 %74, 3
  %76 = sext i32 %75 to i64
  %gep = getelementptr i8, ptr %invariant.gep, i64 %76
  %77 = load i8, ptr %gep, align 1, !tbaa !24
  %78 = mul nsw i32 %72, %.04554
  %79 = add nsw i32 %78, %.053
  %80 = mul nsw i32 %79, 3
  %81 = add nsw i32 %80, 1
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %82) #4
  store i8 %77, ptr %83, align 1, !tbaa !24
  %84 = load i32, ptr %34, align 4, !tbaa !20
  %85 = add i32 %84, %45
  %86 = load i32, ptr %32, align 4, !tbaa !19
  %87 = mul nsw i32 %85, %86
  %88 = add nsw i32 %87, %.053
  %89 = mul nsw i32 %88, 3
  %90 = sext i32 %89 to i64
  %gep52 = getelementptr i8, ptr %invariant.gep51, i64 %90
  %91 = load i8, ptr %gep52, align 1, !tbaa !24
  %92 = mul nsw i32 %86, %.04554
  %93 = add nsw i32 %92, %.053
  %94 = mul nsw i32 %93, 3
  %95 = add nsw i32 %94, 2
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %96) #4
  store i8 %91, ptr %97, align 1, !tbaa !24
  %98 = add nuw nsw i32 %.053, 1
  %99 = load i32, ptr %32, align 4, !tbaa !19
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %55, label %._crit_edge.loopexit, !llvm.loop !25

101:                                              ; preds = %._crit_edge55
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  br label %108

102:                                              ; preds = %30
  %103 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !16
  %104 = getelementptr inbounds i8, ptr %23, i64 4
  %105 = load i32, ptr %104, align 4, !tbaa !19
  %106 = getelementptr inbounds i8, ptr %23, i64 8
  %107 = load i32, ptr %106, align 4, !tbaa !20
  tail call void %103(i32 noundef 3553, i32 noundef 0, i32 noundef 6407, i32 noundef %105, i32 noundef %107, i32 noundef 0, i32 noundef 6407, i32 noundef 5121, ptr noundef %2)
  br label %108

108:                                              ; preds = %102, %101
  %109 = load ptr, ptr @glad_glGetError, align 8, !tbaa !16
  %110 = call i32 %109()
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %113, label %112

112:                                              ; preds = %108
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1048, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer14update_textureEiPKhb) #5
  unreachable

113:                                              ; preds = %108
  %114 = getelementptr inbounds i8, ptr %23, i64 12
  %115 = load i32, ptr %114, align 4, !tbaa !26
  %.not = icmp eq i32 %115, 0
  br i1 %.not, label %118, label %116

116:                                              ; preds = %113
  %117 = load ptr, ptr @glad_glGenerateMipmap, align 8, !tbaa !16
  call void %117(i32 noundef 3553)
  br label %118

118:                                              ; preds = %116, %113
  %119 = load ptr, ptr @glad_glGetError, align 8, !tbaa !16
  %120 = call i32 %119()
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1052, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer14update_textureEiPKhb) #5
  unreachable

123:                                              ; preds = %118, %7, %4
  ret void
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEED2Ev(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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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, !11, i64 32}
!6 = !{!"_ZTS24TinyGLInstancingRenderer", !7, i64 8, !11, i64 32, !14, i64 40, !14, i64 41, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56}
!7 = !{!"_ZTSSt6vectorIP18b3GraphicsInstanceSaIS1_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIP18b3GraphicsInstanceSaIS1_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIP18b3GraphicsInstanceSaIS1_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIP18b3GraphicsInstanceSaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"bool", !12, i64 0}
!15 = !{!"int", !12, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !15, i64 0}
!18 = !{!"_ZTS21InternalTextureHandle", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!19 = !{!18, !15, i64 4}
!20 = !{!18, !15, i64 8}
!21 = distinct !{!21, !22, !23}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.unswitch.partial.disable"}
!24 = !{!12, !12, i64 0}
!25 = distinct !{!25, !22}
!26 = !{!18, !15, i64 12}


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