; LLVM IR from merpheus-dev/LavaEngine :: src/Platforms/OpenGL/PostProccessing (GLBloomPostProcess)

; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.Lava::OpenGL::GLBloomPostProcess" = type { %"class.Lava::PostProcessingEffect.base", ptr, ptr, ptr, [2 x i32], [2 x i32] }
%"class.Lava::PostProcessingEffect.base" = type <{ ptr, i32, i32, i32 }>
%"class.Lava::PostProcessingEffect" = type <{ ptr, i32, i32, i32, [4 x i8] }>

@__glewBindFramebuffer = external global ptr, align 8
@__glewActiveTexture = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 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

declare i32 @__gxx_personality_v0(...)

declare void @glBindTexture(i32 noundef, i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Lava6OpenGL18GLBloomPostProcess6RenderEPjb(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, i1 noundef zeroext %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::shared_ptr", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::shared_ptr", align 8
  %13 = alloca %"class.std::shared_ptr", align 8
  %14 = alloca %"class.std::shared_ptr", align 8
  %15 = alloca %"class.std::shared_ptr", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %16 = zext i1 %2 to i8
  store i8 %16, ptr %6, align 1, !tbaa !9
  %17 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  store i8 1, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %18

18:                                               ; preds = %78, %3
  %19 = load i32, ptr %8, align 4, !tbaa !11
  %20 = icmp ult i32 %19, 10
  br i1 %20, label %22, label %21

21:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %90

22:                                               ; preds = %18
  %23 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.Lava::OpenGL::GLBloomPostProcess", ptr %17, i32 0, i32 4
  %25 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %26 = trunc i8 %25 to i1
  %27 = zext i1 %26 to i64
  %28 = getelementptr inbounds [2 x i32], ptr %24, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !11
  call void %23(i32 noundef 36160, i32 noundef %29)
  %30 = getelementptr inbounds %"class.Lava::OpenGL::GLBloomPostProcess", ptr %17, i32 0, i32 2
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  %33 = getelementptr inbounds ptr, ptr %32, i64 3
  %34 = load ptr, ptr %33, align 8
  call void %34(ptr noundef nonnull align 8 dereferenceable(40) %31)
  %35 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !5
  call void %35(i32 noundef 33987)
  %36 = load i32, ptr %8, align 4, !tbaa !11
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %42

38:                                               ; preds = %22
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds i32, ptr %39, i64 1
  %41 = load i32, ptr %40, align 4, !tbaa !11
  br label %50

42:                                               ; preds = %22
  %43 = getelementptr inbounds %"class.Lava::OpenGL::GLBloomPostProcess", ptr %17, i32 0, i32 5
  %44 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %45 = trunc i8 %44 to i1
  %46 = xor i1 %45, true
  %47 = zext i1 %46 to i64
  %48 = getelementptr inbounds [2 x i32], ptr %43, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !11
  br label %50

50:                                               ; preds = %42, %38
  %51 = phi i32 [ %41, %38 ], [ %49, %42 ]
  call void @glBindTexture(i32 noundef 3553, i32 noundef %51)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
  %52 = getelementptr inbounds %"class.Lava::OpenGL::GLBloomPostProcess", ptr %17, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !15
  call void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %9, ptr noundef nonnull align 8 dereferenceable(40) %53, i32 noundef 1)
  %54 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  %55 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %56 = trunc i8 %55 to i1
  %57 = load ptr, ptr %54, align 8, !tbaa !18
  %58 = getelementptr inbounds ptr, ptr %57, i64 0
  %59 = load ptr, ptr %58, align 8
  invoke void %59(ptr noundef nonnull align 8 dereferenceable(36) %54, ptr noundef @.str.3, i1 noundef zeroext %56)
          to label %60 unwind label %81

60:                                               ; preds = %50
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  %61 = getelementptr inbounds %"class.Lava::OpenGL::GLBloomPostProcess", ptr %17, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  call void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %12, ptr noundef nonnull align 8 dereferenceable(40) %62, i32 noundef 1)
  %63 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  %64 = load ptr, ptr %63, align 8, !tbaa !18
  %65 = getelementptr inbounds ptr, ptr %64, i64 2
  %66 = load ptr, ptr %65, align 8
  invoke void %66(ptr noundef nonnull align 8 dereferenceable(36) %63, ptr noundef @.str.4, i32 noundef 3)
          to label %67 unwind label %85

67:                                               ; preds = %60
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @glDrawArrays(i32 noundef 5, i32 noundef 0, i32 noundef 4)
  %68 = getelementptr inbounds %"class.Lava::OpenGL::GLBloomPostProcess", ptr %17, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !15
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  %71 = getelementptr inbounds ptr, ptr %70, i64 4
  %72 = load ptr, ptr %71, align 8
  call void %72(ptr noundef nonnull align 8 dereferenceable(40) %69)
  %73 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !5
  call void %73(i32 noundef 36160, i32 noundef 0)
  %74 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %75 = trunc i8 %74 to i1
  %76 = xor i1 %75, true
  %77 = zext i1 %76 to i8
  store i8 %77, ptr %7, align 1, !tbaa !9
  br label %78

78:                                               ; preds = %67
  %79 = load i32, ptr %8, align 4, !tbaa !11
  %80 = add i32 %79, 1
  store i32 %80, ptr %8, align 4, !tbaa !11
  br label %18, !llvm.loop !20

81:                                               ; preds = %50
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %10, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %11, align 4
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  br label %89

85:                                               ; preds = %60
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %10, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %11, align 4
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  br label %89

89:                                               ; preds = %85, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %158

90:                                               ; preds = %21
  %91 = load i8, ptr %6, align 1, !tbaa !9, !range !13, !noundef !14
  %92 = trunc i8 %91 to i1
  br i1 %92, label %97, label %93

93:                                               ; preds = %90
  %94 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !5
  %95 = getelementptr inbounds %"class.Lava::PostProcessingEffect", ptr %17, i32 0, i32 2
  %96 = load i32, ptr %95, align 4, !tbaa !22
  call void %94(i32 noundef 36160, i32 noundef %96)
  br label %97

97:                                               ; preds = %93, %90
  %98 = getelementptr inbounds %"class.Lava::OpenGL::GLBloomPostProcess", ptr %17, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !23
  %100 = load ptr, ptr %99, align 8, !tbaa !18
  %101 = getelementptr inbounds ptr, ptr %100, i64 3
  %102 = load ptr, ptr %101, align 8
  call void %102(ptr noundef nonnull align 8 dereferenceable(40) %99)
  %103 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !5
  call void %103(i32 noundef 33987)
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds i32, ptr %104, i64 0
  %106 = load i32, ptr %105, align 4, !tbaa !11
  call void @glBindTexture(i32 noundef 3553, i32 noundef %106)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  %107 = getelementptr inbounds %"class.Lava::OpenGL::GLBloomPostProcess", ptr %17, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !23
  call void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %108, i32 noundef 1)
  %109 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  %110 = load ptr, ptr %109, align 8, !tbaa !18
  %111 = getelementptr inbounds ptr, ptr %110, i64 2
  %112 = load ptr, ptr %111, align 8
  invoke void %112(ptr noundef nonnull align 8 dereferenceable(36) %109, ptr noundef @.str.5, i32 noundef 3)
          to label %113 unwind label %145

113:                                              ; preds = %97
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  %114 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !5
  call void %114(i32 noundef 33988)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %115 = getelementptr inbounds %"class.Lava::OpenGL::GLBloomPostProcess", ptr %17, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !23
  call void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %14, ptr noundef nonnull align 8 dereferenceable(40) %116, i32 noundef 1)
  %117 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #4
  %118 = load ptr, ptr %117, align 8, !tbaa !18
  %119 = getelementptr inbounds ptr, ptr %118, i64 2
  %120 = load ptr, ptr %119, align 8
  invoke void %120(ptr noundef nonnull align 8 dereferenceable(36) %117, ptr noundef @.str.6, i32 noundef 4)
          to label %121 unwind label %149

121:                                              ; preds = %113
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  %122 = getelementptr inbounds %"class.Lava::OpenGL::GLBloomPostProcess", ptr %17, i32 0, i32 5
  %123 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %124 = trunc i8 %123 to i1
  %125 = xor i1 %124, true
  %126 = zext i1 %125 to i64
  %127 = getelementptr inbounds [2 x i32], ptr %122, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !11
  call void @glBindTexture(i32 noundef 3553, i32 noundef %128)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %129 = getelementptr inbounds %"class.Lava::OpenGL::GLBloomPostProcess", ptr %17, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8, !tbaa !23
  call void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %15, ptr noundef nonnull align 8 dereferenceable(40) %130, i32 noundef 1)
  %131 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #4
  %132 = load ptr, ptr %131, align 8, !tbaa !18
  %133 = getelementptr inbounds ptr, ptr %132, i64 1
  %134 = load ptr, ptr %133, align 8
  invoke void %134(ptr noundef nonnull align 8 dereferenceable(36) %131, ptr noundef @.str.7, float noundef 1.000000e+00)
          to label %135 unwind label %153

135:                                              ; preds = %121
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @glDrawArrays(i32 noundef 5, i32 noundef 0, i32 noundef 4)
  %136 = getelementptr inbounds %"class.Lava::OpenGL::GLBloomPostProcess", ptr %17, i32 0, i32 1
  %137 = load ptr, ptr %136, align 8, !tbaa !23
  %138 = load ptr, ptr %137, align 8, !tbaa !18
  %139 = getelementptr inbounds ptr, ptr %138, i64 4
  %140 = load ptr, ptr %139, align 8
  call void %140(ptr noundef nonnull align 8 dereferenceable(40) %137)
  %141 = load i8, ptr %6, align 1, !tbaa !9, !range !13, !noundef !14
  %142 = trunc i8 %141 to i1
  br i1 %142, label %157, label %143

143:                                              ; preds = %135
  %144 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !5
  call void %144(i32 noundef 36160, i32 noundef 0)
  br label %157

145:                                              ; preds = %97
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %10, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %11, align 4
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  br label %158

149:                                              ; preds = %113
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %10, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %11, align 4
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  br label %158

153:                                              ; preds = %121
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %10, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %11, align 4
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  br label %158

157:                                              ; preds = %143, %135
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  ret void

158:                                              ; preds = %153, %149, %145, %89
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  br label %159

159:                                              ; preds = %158
  %160 = load ptr, ptr %10, align 8
  %161 = load i32, ptr %11, align 4
  %162 = insertvalue { ptr, i32 } poison, ptr %160, 0
  %163 = insertvalue { ptr, i32 } %162, i32 %161, 1
  resume { ptr, i32 } %163
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

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

declare void @glDrawArrays(i32 noundef, i32 noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !6, i64 32}
!16 = !{!"_ZTSN4Lava6OpenGL18GLBloomPostProcessE", !17, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !7, i64 48, !7, i64 56}
!17 = !{!"_ZTSN4Lava20PostProcessingEffectE", !12, i64 8, !12, i64 12, !12, i64 16}
!18 = !{!19, !19, i64 0}
!19 = !{!"vtable pointer", !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!17, !12, i64 12}
!23 = !{!16, !6, i64 24}


; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@__glewBindFramebuffer = external local_unnamed_addr global ptr, align 8
@__glewActiveTexture = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 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

declare i32 @__gxx_personality_v0(...)

declare void @glBindTexture(i32 noundef, i32 noundef) local_unnamed_addr #1

; 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
define dso_local void @_ZN4Lava6OpenGL18GLBloomPostProcess6RenderEPjb(ptr nocapture noundef nonnull readonly align 8 dereferenceable(64) %0, ptr nocapture noundef readonly %1, i1 noundef zeroext %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
.peel.begin:
  %3 = alloca %"class.std::shared_ptr", align 8
  %4 = alloca %"class.std::shared_ptr", align 8
  %5 = alloca %"class.std::shared_ptr", align 8
  %6 = alloca %"class.std::shared_ptr", align 8
  %7 = alloca %"class.std::shared_ptr", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = getelementptr inbounds i8, ptr %1, i64 4
  %11 = getelementptr inbounds i8, ptr %0, i64 56
  %12 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 52
  %14 = load i32, ptr %13, align 4, !tbaa !9
  tail call void %12(i32 noundef 36160, i32 noundef %14)
  %15 = load ptr, ptr %9, align 8, !tbaa !11
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %16, i64 24
  %18 = load ptr, ptr %17, align 8
  tail call void %18(ptr noundef nonnull align 8 dereferenceable(40) %15)
  %19 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !5
  tail call void %19(i32 noundef 33987)
  %20 = load i32, ptr %10, align 4, !tbaa !9
  tail call void @glBindTexture(i32 noundef 3553, i32 noundef %20)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %21 = load ptr, ptr %9, align 8, !tbaa !11
  call void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %3, ptr noundef nonnull align 8 dereferenceable(40) %21, i32 noundef 1)
  %22 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  %23 = load ptr, ptr %22, align 8, !tbaa !14
  %24 = load ptr, ptr %23, align 8
  invoke void %24(ptr noundef nonnull align 8 dereferenceable(36) %22, ptr noundef nonnull @.str.3, i1 noundef zeroext true)
          to label %25 unwind label %.loopexit.split-lp

25:                                               ; preds = %.peel.begin
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %26 = load ptr, ptr %9, align 8, !tbaa !11
  call void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %4, ptr noundef nonnull align 8 dereferenceable(40) %26, i32 noundef 1)
  %27 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  %30 = load ptr, ptr %29, align 8
  invoke void %30(ptr noundef nonnull align 8 dereferenceable(36) %27, ptr noundef nonnull @.str.4, i32 noundef 3)
          to label %.peel.next unwind label %.loopexit.split-lp28

.peel.next:                                       ; preds = %25
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  call void @glDrawArrays(i32 noundef 5, i32 noundef 0, i32 noundef 4)
  %31 = load ptr, ptr %9, align 8, !tbaa !11
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  %33 = getelementptr inbounds i8, ptr %32, i64 32
  %34 = load ptr, ptr %33, align 8
  call void %34(ptr noundef nonnull align 8 dereferenceable(40) %31)
  %35 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !5
  call void %35(i32 noundef 36160, i32 noundef 0)
  br label %36

.loopexit32:                                      ; preds = %60
  br i1 %2, label %73, label %69

36:                                               ; preds = %.peel.next, %60
  %.01623 = phi i32 [ 1, %.peel.next ], [ %66, %60 ]
  %.01722 = phi i1 [ false, %.peel.next ], [ %46, %60 ]
  %37 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !5
  %38 = zext i1 %.01722 to i64
  %39 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !9
  call void %37(i32 noundef 36160, i32 noundef %40)
  %41 = load ptr, ptr %9, align 8, !tbaa !11
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  %43 = getelementptr inbounds i8, ptr %42, i64 24
  %44 = load ptr, ptr %43, align 8
  call void %44(ptr noundef nonnull align 8 dereferenceable(40) %41)
  %45 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !5
  call void %45(i32 noundef 33987)
  %46 = xor i1 %.01722, true
  %47 = zext i1 %46 to i64
  %48 = getelementptr inbounds [2 x i32], ptr %11, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !9
  call void @glBindTexture(i32 noundef 3553, i32 noundef %49)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %50 = load ptr, ptr %9, align 8, !tbaa !11
  call void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %3, ptr noundef nonnull align 8 dereferenceable(40) %50, i32 noundef 1)
  %51 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  %52 = load ptr, ptr %51, align 8, !tbaa !14
  %53 = load ptr, ptr %52, align 8
  invoke void %53(ptr noundef nonnull align 8 dereferenceable(36) %51, ptr noundef nonnull @.str.3, i1 noundef zeroext %.01722)
          to label %54 unwind label %.loopexit

54:                                               ; preds = %36
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %55 = load ptr, ptr %9, align 8, !tbaa !11
  call void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %4, ptr noundef nonnull align 8 dereferenceable(40) %55, i32 noundef 1)
  %56 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  %57 = load ptr, ptr %56, align 8, !tbaa !14
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  %59 = load ptr, ptr %58, align 8
  invoke void %59(ptr noundef nonnull align 8 dereferenceable(36) %56, ptr noundef nonnull @.str.4, i32 noundef 3)
          to label %60 unwind label %.loopexit27

60:                                               ; preds = %54
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  call void @glDrawArrays(i32 noundef 5, i32 noundef 0, i32 noundef 4)
  %61 = load ptr, ptr %9, align 8, !tbaa !11
  %62 = load ptr, ptr %61, align 8, !tbaa !14
  %63 = getelementptr inbounds i8, ptr %62, i64 32
  %64 = load ptr, ptr %63, align 8
  call void %64(ptr noundef nonnull align 8 dereferenceable(40) %61)
  %65 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !5
  call void %65(i32 noundef 36160, i32 noundef 0)
  %66 = add nuw nsw i32 %.01623, 1
  %exitcond.not = icmp eq i32 %66, 10
  br i1 %exitcond.not, label %.loopexit32, label %36, !llvm.loop !16

.loopexit:                                        ; preds = %36
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %67

.loopexit.split-lp:                               ; preds = %.peel.begin
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %67

67:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  br label %114

.loopexit27:                                      ; preds = %54
  %lpad.loopexit29 = landingpad { ptr, i32 }
          cleanup
  br label %68

.loopexit.split-lp28:                             ; preds = %25
  %lpad.loopexit.split-lp30 = landingpad { ptr, i32 }
          cleanup
  br label %68

68:                                               ; preds = %.loopexit.split-lp28, %.loopexit27
  %lpad.phi31 = phi { ptr, i32 } [ %lpad.loopexit29, %.loopexit27 ], [ %lpad.loopexit.split-lp30, %.loopexit.split-lp28 ]
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  br label %114

69:                                               ; preds = %.loopexit32
  %70 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %0, i64 12
  %72 = load i32, ptr %71, align 4, !tbaa !19
  call void %70(i32 noundef 36160, i32 noundef %72)
  br label %73

73:                                               ; preds = %69, %.loopexit32
  %74 = getelementptr inbounds i8, ptr %0, i64 24
  %75 = load ptr, ptr %74, align 8, !tbaa !20
  %76 = load ptr, ptr %75, align 8, !tbaa !14
  %77 = getelementptr inbounds i8, ptr %76, i64 24
  %78 = load ptr, ptr %77, align 8
  call void %78(ptr noundef nonnull align 8 dereferenceable(40) %75)
  %79 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !5
  call void %79(i32 noundef 33987)
  %80 = load i32, ptr %1, align 4, !tbaa !9
  call void @glBindTexture(i32 noundef 3553, i32 noundef %80)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %81 = load ptr, ptr %74, align 8, !tbaa !20
  call void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %5, ptr noundef nonnull align 8 dereferenceable(40) %81, i32 noundef 1)
  %82 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  %83 = load ptr, ptr %82, align 8, !tbaa !14
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  %85 = load ptr, ptr %84, align 8
  invoke void %85(ptr noundef nonnull align 8 dereferenceable(36) %82, ptr noundef nonnull @.str.5, i32 noundef 3)
          to label %86 unwind label %107

86:                                               ; preds = %73
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  %87 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !5
  call void %87(i32 noundef 33988)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %88 = load ptr, ptr %74, align 8, !tbaa !20
  call void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %6, ptr noundef nonnull align 8 dereferenceable(40) %88, i32 noundef 1)
  %89 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  %90 = load ptr, ptr %89, align 8, !tbaa !14
  %91 = getelementptr inbounds i8, ptr %90, i64 16
  %92 = load ptr, ptr %91, align 8
  invoke void %92(ptr noundef nonnull align 8 dereferenceable(36) %89, ptr noundef nonnull @.str.6, i32 noundef 4)
          to label %93 unwind label %109

93:                                               ; preds = %86
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  %94 = load i32, ptr %11, align 8, !tbaa !9
  call void @glBindTexture(i32 noundef 3553, i32 noundef %94)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %95 = load ptr, ptr %74, align 8, !tbaa !20
  call void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %7, ptr noundef nonnull align 8 dereferenceable(40) %95, i32 noundef 1)
  %96 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  %97 = load ptr, ptr %96, align 8, !tbaa !14
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  %99 = load ptr, ptr %98, align 8
  invoke void %99(ptr noundef nonnull align 8 dereferenceable(36) %96, ptr noundef nonnull @.str.7, float noundef 1.000000e+00)
          to label %100 unwind label %111

100:                                              ; preds = %93
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @glDrawArrays(i32 noundef 5, i32 noundef 0, i32 noundef 4)
  %101 = load ptr, ptr %74, align 8, !tbaa !20
  %102 = load ptr, ptr %101, align 8, !tbaa !14
  %103 = getelementptr inbounds i8, ptr %102, i64 32
  %104 = load ptr, ptr %103, align 8
  call void %104(ptr noundef nonnull align 8 dereferenceable(40) %101)
  br i1 %2, label %113, label %105

105:                                              ; preds = %100
  %106 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !5
  call void %106(i32 noundef 36160, i32 noundef 0)
  br label %113

107:                                              ; preds = %73
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %114

109:                                              ; preds = %86
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %114

111:                                              ; preds = %93
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4Lava6ShaderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  br label %114

113:                                              ; preds = %105, %100
  ret void

114:                                              ; preds = %67, %68, %111, %109, %107
  %.pn.pn = phi { ptr, i32 } [ %112, %111 ], [ %110, %109 ], [ %108, %107 ], [ %lpad.phi31, %68 ], [ %lpad.phi, %67 ]
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Lava10ShaderBank9GetShaderEi(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #3 align 2

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

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

declare void @glDrawArrays(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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, !6, i64 32}
!12 = !{!"_ZTSN4Lava6OpenGL18GLBloomPostProcessE", !13, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !7, i64 48, !7, i64 56}
!13 = !{!"_ZTSN4Lava20PostProcessingEffectE", !10, i64 8, !10, i64 12, !10, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = distinct !{!16, !17, !18}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.peeled.count", i32 1}
!19 = !{!13, !10, i64 12}
!20 = !{!12, !6, i64 24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass