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

@lineWidthRange = external dso_local global [2 x i32], align 4
@lineVertexBufferObject = external dso_local global i32, align 4
@lineVertexArrayObject = external dso_local global i32, align 4
@.str.1 = external hidden unnamed_addr constant [130 x i8], align 1
@glad_glBindBuffer = external global ptr, align 8
@glad_glGetError = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@glad_glBufferSubData = external global ptr, align 8
@glad_glActiveTexture = external global ptr, align 8
@glad_glBindTexture = external global ptr, align 8
@glad_glBindVertexArray = external global ptr, align 8
@glad_glUseProgram = external global ptr, align 8
@_ZL11linesShader = external hidden global i32, align 4
@_ZL21lines_ModelViewMatrix = external hidden global i32, align 4
@_ZL22lines_ProjectionMatrix = external hidden global i32, align 4
@_ZL12lines_colour = external hidden global i32, align 4
@glad_glUniformMatrix4fv = external global ptr, align 8
@glad_glVertexAttribPointer = external global ptr, align 8
@glad_glEnableVertexAttribArray = external global ptr, align 8
@glad_glUniform4f = external global ptr, align 8
@glad_glDrawArrays = external global ptr, align 8
@glad_glLineWidth = external global ptr, align 8
@__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f = external hidden unnamed_addr constant [122 x i8], align 1

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f(ptr noundef nonnull align 8 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %4) unnamed_addr #3 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca [8 x float], align 16
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store float %4, ptr %10, align 4, !tbaa !9
  %15 = load ptr, ptr %6, align 8
  %16 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %17 = call i32 %16()
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %20

19:                                               ; preds = %5
  br label %22

20:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1964, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

21:                                               ; No predecessors!
  br label %22

22:                                               ; preds = %21, %19
  %23 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !5
  call void %23(i32 noundef 33984)
  %24 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  call void %24(i32 noundef 3553, i32 noundef 0)
  %25 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %26 = call i32 %25()
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %22
  br label %31

29:                                               ; preds = %22
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1968, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30, %28
  %32 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %33 = load i32, ptr @_ZL11linesShader, align 4, !tbaa !11
  call void %32(i32 noundef %33)
  %34 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %35 = call i32 %34()
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %31
  br label %40

38:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1972, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

39:                                               ; No predecessors!
  br label %40

40:                                               ; preds = %39, %37
  %41 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  %42 = load i32, ptr @_ZL22lines_ProjectionMatrix, align 4, !tbaa !11
  %43 = getelementptr inbounds %class.TinyGLInstancingRenderer, ptr %15, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds %struct.InternalDataRenderer, ptr %44, i32 0, i32 4
  %46 = getelementptr inbounds [16 x float], ptr %45, i64 0, i64 0
  call void %41(i32 noundef %42, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %46)
  %47 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  %48 = load i32, ptr @_ZL21lines_ModelViewMatrix, align 4, !tbaa !11
  %49 = getelementptr inbounds %class.TinyGLInstancingRenderer, ptr %15, i32 0, i32 2
  %50 = load ptr, ptr %49, align 8, !tbaa !13
  %51 = getelementptr inbounds %struct.InternalDataRenderer, ptr %50, i32 0, i32 5
  %52 = getelementptr inbounds [16 x float], ptr %51, i64 0, i64 0
  call void %47(i32 noundef %48, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %52)
  %53 = load ptr, ptr @glad_glUniform4f, align 8, !tbaa !5
  %54 = load i32, ptr @_ZL12lines_colour, align 4, !tbaa !11
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %55, i32 noundef 0)
  %57 = load float, ptr %56, align 4, !tbaa !9
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %58, i32 noundef 1)
  %60 = load float, ptr %59, align 4, !tbaa !9
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %61, i32 noundef 2)
  %63 = load float, ptr %62, align 4, !tbaa !9
  call void %53(i32 noundef %54, float noundef %57, float noundef %60, float noundef %63, float noundef 1.000000e+00)
  %64 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %65 = call i32 %64()
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %40
  br label %70

68:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1979, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

69:                                               ; No predecessors!
  br label %70

70:                                               ; preds = %69, %67
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %71, i32 noundef 0)
  %73 = load float, ptr %72, align 4, !tbaa !9
  store float %73, ptr %11, align 4, !tbaa !9
  %74 = getelementptr inbounds float, ptr %11, i64 1
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %75, i32 noundef 1)
  %77 = load float, ptr %76, align 4, !tbaa !9
  store float %77, ptr %74, align 4, !tbaa !9
  %78 = getelementptr inbounds float, ptr %11, i64 2
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %79, i32 noundef 2)
  %81 = load float, ptr %80, align 4, !tbaa !9
  store float %81, ptr %78, align 4, !tbaa !9
  %82 = getelementptr inbounds float, ptr %11, i64 3
  store float 1.000000e+00, ptr %82, align 4, !tbaa !9
  %83 = getelementptr inbounds float, ptr %11, i64 4
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %84, i32 noundef 0)
  %86 = load float, ptr %85, align 4, !tbaa !9
  store float %86, ptr %83, align 4, !tbaa !9
  %87 = getelementptr inbounds float, ptr %11, i64 5
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %88, i32 noundef 1)
  %90 = load float, ptr %89, align 4, !tbaa !9
  store float %90, ptr %87, align 4, !tbaa !9
  %91 = getelementptr inbounds float, ptr %11, i64 6
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %92, i32 noundef 2)
  %94 = load float, ptr %93, align 4, !tbaa !9
  store float %94, ptr %91, align 4, !tbaa !9
  %95 = getelementptr inbounds float, ptr %11, i64 7
  store float 1.000000e+00, ptr %95, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 32, ptr %12, align 4, !tbaa !11
  %96 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %97 = call i32 %96()
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %100

99:                                               ; preds = %70
  br label %102

100:                                              ; preds = %70
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1984, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

101:                                              ; No predecessors!
  br label %102

102:                                              ; preds = %101, %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %103 = load i32, ptr @lineWidthRange, align 4, !tbaa !11
  %104 = sitofp i32 %103 to float
  store float %104, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %105 = load i32, ptr getelementptr inbounds ([2 x i32], ptr @lineWidthRange, i64 0, i64 1), align 4, !tbaa !11
  %106 = sitofp i32 %105 to float
  store float %106, ptr %14, align 4, !tbaa !9
  call void @_Z9TinyClampIfEvRT_RKS0_S3_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %107 = load ptr, ptr @glad_glLineWidth, align 8, !tbaa !5
  %108 = load float, ptr %10, align 4, !tbaa !9
  call void %107(float noundef %108)
  %109 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %110 = call i32 %109()
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %102
  br label %115

113:                                              ; preds = %102
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1989, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

114:                                              ; No predecessors!
  br label %115

115:                                              ; preds = %114, %112
  %116 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %117 = load i32, ptr @lineVertexArrayObject, align 4, !tbaa !11
  call void %116(i32 noundef %117)
  %118 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %119 = call i32 %118()
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %122

121:                                              ; preds = %115
  br label %124

122:                                              ; preds = %115
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1992, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

123:                                              ; No predecessors!
  br label %124

124:                                              ; preds = %123, %121
  %125 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %126 = load i32, ptr @lineVertexBufferObject, align 4, !tbaa !11
  call void %125(i32 noundef 34962, i32 noundef %126)
  %127 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %128 = call i32 %127()
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %130, label %131

130:                                              ; preds = %124
  br label %133

131:                                              ; preds = %124
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1996, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

132:                                              ; No predecessors!
  br label %133

133:                                              ; preds = %132, %130
  %134 = load ptr, ptr @glad_glBufferSubData, align 8, !tbaa !5
  %135 = load i32, ptr %12, align 4, !tbaa !11
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [8 x float], ptr %11, i64 0, i64 0
  call void %134(i32 noundef 34962, i64 noundef 0, i64 noundef %136, ptr noundef %137)
  %138 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %139 = call i32 %138()
  %140 = icmp eq i32 %139, 0
  br i1 %140, label %141, label %142

141:                                              ; preds = %133
  br label %144

142:                                              ; preds = %133
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 2000, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

143:                                              ; No predecessors!
  br label %144

144:                                              ; preds = %143, %141
  %145 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  call void %145(i32 noundef 34962, i32 noundef 0)
  %146 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %147 = load i32, ptr @lineVertexBufferObject, align 4, !tbaa !11
  call void %146(i32 noundef 34962, i32 noundef %147)
  %148 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %149 = call i32 %148()
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %152

151:                                              ; preds = %144
  br label %154

152:                                              ; preds = %144
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 2004, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

153:                                              ; No predecessors!
  br label %154

154:                                              ; preds = %153, %151
  %155 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  call void %155(i32 noundef 0)
  %156 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  call void %156(i32 noundef 0, i32 noundef 4, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 0, ptr noundef null)
  %157 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %158 = call i32 %157()
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %154
  br label %163

161:                                              ; preds = %154
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 2008, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

162:                                              ; No predecessors!
  br label %163

163:                                              ; preds = %162, %160
  %164 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %164(i32 noundef 1, i32 noundef 0, i32 noundef 2)
  %165 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %166 = call i32 %165()
  %167 = icmp eq i32 %166, 0
  br i1 %167, label %168, label %169

168:                                              ; preds = %163
  br label %171

169:                                              ; preds = %163
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 2011, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

170:                                              ; No predecessors!
  br label %171

171:                                              ; preds = %170, %168
  %172 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  call void %172(i32 noundef 0)
  %173 = load ptr, ptr @glad_glLineWidth, align 8, !tbaa !5
  call void %173(float noundef 1.000000e+00)
  %174 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %175 = call i32 %174()
  %176 = icmp eq i32 %175, 0
  br i1 %176, label %177, label %178

177:                                              ; preds = %171
  br label %180

178:                                              ; preds = %171
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 2016, ptr noundef @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

179:                                              ; No predecessors!
  br label %180

180:                                              ; preds = %179, %177
  %181 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  call void %181(i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  ret void
}

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { noreturn nounwind }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 32}
!14 = !{!"_ZTS24TinyGLInstancingRenderer", !15, i64 8, !6, i64 32, !19, i64 40, !19, i64 41, !12, i64 44, !12, i64 48, !12, i64 52, !12, 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 = !{!"bool", !7, i64 0}


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

@lineWidthRange = external dso_local local_unnamed_addr global [2 x i32], align 4
@lineVertexBufferObject = external dso_local local_unnamed_addr global i32, align 4
@lineVertexArrayObject = external dso_local local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [130 x i8], align 1
@glad_glBindBuffer = external local_unnamed_addr global ptr, align 8
@glad_glGetError = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@glad_glBufferSubData = external local_unnamed_addr global ptr, align 8
@glad_glActiveTexture = external local_unnamed_addr global ptr, align 8
@glad_glBindTexture = external local_unnamed_addr global ptr, align 8
@glad_glBindVertexArray = external local_unnamed_addr global ptr, align 8
@glad_glUseProgram = external local_unnamed_addr global ptr, align 8
@_ZL11linesShader = external hidden local_unnamed_addr global i32, align 4
@_ZL21lines_ModelViewMatrix = external hidden local_unnamed_addr global i32, align 4
@_ZL22lines_ProjectionMatrix = external hidden local_unnamed_addr global i32, align 4
@_ZL12lines_colour = external hidden local_unnamed_addr global i32, align 4
@glad_glUniformMatrix4fv = external local_unnamed_addr global ptr, align 8
@glad_glVertexAttribPointer = external local_unnamed_addr global ptr, align 8
@glad_glEnableVertexAttribArray = external local_unnamed_addr global ptr, align 8
@glad_glUniform4f = external local_unnamed_addr global ptr, align 8
@glad_glDrawArrays = external local_unnamed_addr global ptr, align 8
@glad_glLineWidth = external local_unnamed_addr global ptr, align 8
@__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f = external hidden unnamed_addr constant [122 x i8], align 1

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f(ptr nocapture noundef nonnull readonly align 8 dereferenceable(60) %0, ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %4) unnamed_addr #3 align 2 {
  %6 = alloca float, align 4
  %7 = alloca [8 x float], align 16
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  store float %4, ptr %6, align 4, !tbaa !5
  %10 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %11 = tail call i32 %10()
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %14, label %13

13:                                               ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1964, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

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

20:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1968, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

21:                                               ; preds = %14
  %22 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  %23 = load i32, ptr @_ZL11linesShader, align 4, !tbaa !11
  tail call void %22(i32 noundef %23)
  %24 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %25 = tail call i32 %24()
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %28, label %27

27:                                               ; preds = %21
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1972, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

28:                                               ; preds = %21
  %29 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !9
  %30 = load i32, ptr @_ZL22lines_ProjectionMatrix, align 4, !tbaa !11
  %31 = getelementptr inbounds i8, ptr %0, i64 32
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %32, i64 144
  tail call void %29(i32 noundef %30, i32 noundef 1, i8 noundef zeroext 0, ptr noundef nonnull %33)
  %34 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !9
  %35 = load i32, ptr @_ZL21lines_ModelViewMatrix, align 4, !tbaa !11
  %36 = load ptr, ptr %31, align 8, !tbaa !13
  %37 = getelementptr inbounds i8, ptr %36, i64 208
  tail call void %34(i32 noundef %35, i32 noundef 1, i8 noundef zeroext 0, ptr noundef nonnull %37)
  %38 = load ptr, ptr @glad_glUniform4f, align 8, !tbaa !9
  %39 = load i32, ptr @_ZL12lines_colour, align 4, !tbaa !11
  %40 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 0)
  %41 = load float, ptr %40, align 4, !tbaa !5
  %42 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 1)
  %43 = load float, ptr %42, align 4, !tbaa !5
  %44 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 2)
  %45 = load float, ptr %44, align 4, !tbaa !5
  tail call void %38(i32 noundef %39, float noundef %41, float noundef %43, float noundef %45, float noundef 1.000000e+00)
  %46 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %47 = tail call i32 %46()
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %50, label %49

49:                                               ; preds = %28
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1979, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

50:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 0)
  %52 = load float, ptr %51, align 4, !tbaa !5
  store float %52, ptr %7, align 16, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %7, i64 4
  %54 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 1)
  %55 = load float, ptr %54, align 4, !tbaa !5
  store float %55, ptr %53, align 4, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %7, i64 8
  %57 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 2)
  %58 = load float, ptr %57, align 4, !tbaa !5
  store float %58, ptr %56, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %7, i64 12
  store float 1.000000e+00, ptr %59, align 4, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %7, i64 16
  %61 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 0)
  %62 = load float, ptr %61, align 4, !tbaa !5
  store float %62, ptr %60, align 16, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %7, i64 20
  %64 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 1)
  %65 = load float, ptr %64, align 4, !tbaa !5
  store float %65, ptr %63, align 4, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %7, i64 24
  %67 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK4TINY11TinyVector3IfNS_10FloatUtilsEEixEi(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 2)
  %68 = load float, ptr %67, align 4, !tbaa !5
  store float %68, ptr %66, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %7, i64 28
  store float 1.000000e+00, ptr %69, align 4, !tbaa !5
  %70 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %71 = tail call i32 %70()
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %74, label %73

73:                                               ; preds = %50
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1984, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

74:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %75 = load i32, ptr @lineWidthRange, align 4, !tbaa !11
  %76 = sitofp i32 %75 to float
  store float %76, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  %77 = load i32, ptr getelementptr inbounds (i8, ptr @lineWidthRange, i64 4), align 4, !tbaa !11
  %78 = sitofp i32 %77 to float
  store float %78, ptr %9, align 4, !tbaa !5
  call void @_Z9TinyClampIfEvRT_RKS0_S3_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  %79 = load ptr, ptr @glad_glLineWidth, align 8, !tbaa !9
  %80 = load float, ptr %6, align 4, !tbaa !5
  call void %79(float noundef %80)
  %81 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %82 = call i32 %81()
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %85, label %84

84:                                               ; preds = %74
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1989, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

85:                                               ; preds = %74
  %86 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !9
  %87 = load i32, ptr @lineVertexArrayObject, align 4, !tbaa !11
  call void %86(i32 noundef %87)
  %88 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %89 = call i32 %88()
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %92, label %91

91:                                               ; preds = %85
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1992, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

92:                                               ; preds = %85
  %93 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %94 = load i32, ptr @lineVertexBufferObject, align 4, !tbaa !11
  call void %93(i32 noundef 34962, i32 noundef %94)
  %95 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %96 = call i32 %95()
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %99, label %98

98:                                               ; preds = %92
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1996, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

99:                                               ; preds = %92
  %100 = load ptr, ptr @glad_glBufferSubData, align 8, !tbaa !9
  call void %100(i32 noundef 34962, i64 noundef 0, i64 noundef 32, ptr noundef nonnull %7)
  %101 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %102 = call i32 %101()
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %105, label %104

104:                                              ; preds = %99
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 2000, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

105:                                              ; preds = %99
  %106 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  call void %106(i32 noundef 34962, i32 noundef 0)
  %107 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %108 = load i32, ptr @lineVertexBufferObject, align 4, !tbaa !11
  call void %107(i32 noundef 34962, i32 noundef %108)
  %109 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %110 = call i32 %109()
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %113, label %112

112:                                              ; preds = %105
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 2004, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

113:                                              ; preds = %105
  %114 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !9
  call void %114(i32 noundef 0)
  %115 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !9
  call void %115(i32 noundef 0, i32 noundef 4, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 0, ptr noundef null)
  %116 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %117 = call i32 %116()
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %120, label %119

119:                                              ; preds = %113
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 2008, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

120:                                              ; preds = %113
  %121 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !9
  call void %121(i32 noundef 1, i32 noundef 0, i32 noundef 2)
  %122 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %123 = call i32 %122()
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %126, label %125

125:                                              ; preds = %120
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 2011, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

126:                                              ; preds = %120
  %127 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !9
  call void %127(i32 noundef 0)
  %128 = load ptr, ptr @glad_glLineWidth, align 8, !tbaa !9
  call void %128(float noundef 1.000000e+00)
  %129 = load ptr, ptr @glad_glGetError, align 8, !tbaa !9
  %130 = call i32 %129()
  %131 = icmp eq i32 %130, 0
  br i1 %131, label %133, label %132

132:                                              ; preds = %126
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 2016, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN24TinyGLInstancingRenderer9draw_lineERKN4TINY11TinyVector3IfNS0_10FloatUtilsEEES5_S5_f) #4
  unreachable

133:                                              ; preds = %126
  %134 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  call void %134(i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  ret void
}

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { noreturn nounwind }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 32}
!14 = !{!"_ZTS24TinyGLInstancingRenderer", !15, i64 8, !10, i64 32, !19, i64 40, !19, i64 41, !12, i64 44, !12, i64 48, !12, i64 52, !12, 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", !10, i64 0, !10, i64 8, !10, i64 16}
!19 = !{!"bool", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass