; LLVM IR from erwincoumans/tiny-differentiable-simulator :: src/visualizer/opengl/tiny_opengl3_app.ll (ZN14TinyOpenGL3App22dump_next_frame_to_pngEPKc)

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

%struct.TinyOpenGL3App = type { %struct.TinyCommonGraphicsApp.base, ptr, ptr, ptr }
%struct.TinyCommonGraphicsApp.base = type <{ ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, float, float, float, float, i8, [3 x i8], [3 x float] }>
%struct.TinyOpenGL3AppInternalData = type { i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32 }
%struct.TinyCommonGraphicsApp = type <{ ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, float, float, float, float, i8, [3 x i8], [3 x float], [4 x i8] }>

@glad_glBindTexture = external global ptr, align 8
@glad_glGenTextures = external global ptr, align 8
@glad_glTexImage2D = external global ptr, align 8
@glad_glTexParameteri = external global ptr, align 8

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14TinyOpenGL3App22dump_next_frame_to_pngEPKc(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.TinyOpenGL3App, ptr %8, i32 0, i32 1
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %12 = getelementptr inbounds %struct.TinyOpenGL3AppInternalData, ptr %11, i32 0, i32 9
  store ptr %9, ptr %12, align 8, !tbaa !14
  %13 = getelementptr inbounds %struct.TinyOpenGL3App, ptr %8, i32 0, i32 1
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds %struct.TinyOpenGL3AppInternalData, ptr %14, i32 0, i32 11
  %16 = load ptr, ptr %15, align 8, !tbaa !17
  %17 = icmp ne ptr %16, null
  br i1 %17, label %99, label %18

18:                                               ; preds = %2
  %19 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #5
  invoke void @_ZN17GLRenderToTextureC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %20 unwind label %95

20:                                               ; preds = %18
  %21 = getelementptr inbounds %struct.TinyOpenGL3App, ptr %8, i32 0, i32 1
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = getelementptr inbounds %struct.TinyOpenGL3AppInternalData, ptr %22, i32 0, i32 11
  store ptr %19, ptr %23, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %24 = load ptr, ptr @glad_glGenTextures, align 8, !tbaa !5
  call void %24(i32 noundef 1, ptr noundef %7)
  %25 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %26 = load i32, ptr %7, align 4, !tbaa !18
  call void %25(i32 noundef 3553, i32 noundef %26)
  %27 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.TinyOpenGL3App, ptr %8, i32 0, i32 3
  %29 = load ptr, ptr %28, align 8, !tbaa !19
  %30 = load ptr, ptr %29, align 8, !tbaa !20
  %31 = getelementptr inbounds ptr, ptr %30, i64 47
  %32 = load ptr, ptr %31, align 8
  %33 = call noundef i32 %32(ptr noundef nonnull align 8 dereferenceable(60) %29)
  %34 = sitofp i32 %33 to float
  %35 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %8, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !22
  %37 = load ptr, ptr %36, align 8, !tbaa !20
  %38 = getelementptr inbounds ptr, ptr %37, i64 24
  %39 = load ptr, ptr %38, align 8
  %40 = call noundef float %39(ptr noundef nonnull align 8 dereferenceable(8) %36)
  %41 = fmul float %34, %40
  %42 = fptosi float %41 to i32
  %43 = getelementptr inbounds %struct.TinyOpenGL3App, ptr %8, i32 0, i32 3
  %44 = load ptr, ptr %43, align 8, !tbaa !19
  %45 = load ptr, ptr %44, align 8, !tbaa !20
  %46 = getelementptr inbounds ptr, ptr %45, i64 48
  %47 = load ptr, ptr %46, align 8
  %48 = call noundef i32 %47(ptr noundef nonnull align 8 dereferenceable(60) %44)
  %49 = sitofp i32 %48 to float
  %50 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %8, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !22
  %52 = load ptr, ptr %51, align 8, !tbaa !20
  %53 = getelementptr inbounds ptr, ptr %52, i64 24
  %54 = load ptr, ptr %53, align 8
  %55 = call noundef float %54(ptr noundef nonnull align 8 dereferenceable(8) %51)
  %56 = fmul float %49, %55
  %57 = fptosi float %56 to i32
  call void %27(i32 noundef 3553, i32 noundef 0, i32 noundef 34836, i32 noundef %42, i32 noundef %57, i32 noundef 0, i32 noundef 6408, i32 noundef 5126, ptr noundef null)
  %58 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  call void %58(i32 noundef 3553, i32 noundef 10240, i32 noundef 9728)
  %59 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  call void %59(i32 noundef 3553, i32 noundef 10241, i32 noundef 9987)
  %60 = getelementptr inbounds %struct.TinyOpenGL3App, ptr %8, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.TinyOpenGL3AppInternalData, ptr %61, i32 0, i32 11
  %63 = load ptr, ptr %62, align 8, !tbaa !17
  %64 = getelementptr inbounds %struct.TinyOpenGL3App, ptr %8, i32 0, i32 3
  %65 = load ptr, ptr %64, align 8, !tbaa !19
  %66 = load ptr, ptr %65, align 8, !tbaa !20
  %67 = getelementptr inbounds ptr, ptr %66, i64 47
  %68 = load ptr, ptr %67, align 8
  %69 = call noundef i32 %68(ptr noundef nonnull align 8 dereferenceable(60) %65)
  %70 = sitofp i32 %69 to float
  %71 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %8, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !22
  %73 = load ptr, ptr %72, align 8, !tbaa !20
  %74 = getelementptr inbounds ptr, ptr %73, i64 24
  %75 = load ptr, ptr %74, align 8
  %76 = call noundef float %75(ptr noundef nonnull align 8 dereferenceable(8) %72)
  %77 = fmul float %70, %76
  %78 = fptosi float %77 to i32
  %79 = getelementptr inbounds %struct.TinyOpenGL3App, ptr %8, i32 0, i32 3
  %80 = load ptr, ptr %79, align 8, !tbaa !19
  %81 = load ptr, ptr %80, align 8, !tbaa !20
  %82 = getelementptr inbounds ptr, ptr %81, i64 48
  %83 = load ptr, ptr %82, align 8
  %84 = call noundef i32 %83(ptr noundef nonnull align 8 dereferenceable(60) %80)
  %85 = sitofp i32 %84 to float
  %86 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %8, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8, !tbaa !22
  %88 = load ptr, ptr %87, align 8, !tbaa !20
  %89 = getelementptr inbounds ptr, ptr %88, i64 24
  %90 = load ptr, ptr %89, align 8
  %91 = call noundef float %90(ptr noundef nonnull align 8 dereferenceable(8) %87)
  %92 = fmul float %85, %91
  %93 = fptosi float %92 to i32
  %94 = load i32, ptr %7, align 4, !tbaa !18
  call void @_ZN17GLRenderToTexture4initEiiji(ptr noundef nonnull align 8 dereferenceable(24) %63, i32 noundef %78, i32 noundef %93, i32 noundef %94, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %99

95:                                               ; preds = %18
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %5, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %19, i64 noundef 24) #7
  br label %105

99:                                               ; preds = %20, %2
  %100 = getelementptr inbounds %struct.TinyOpenGL3App, ptr %8, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.TinyOpenGL3AppInternalData, ptr %101, i32 0, i32 11
  %103 = load ptr, ptr %102, align 8, !tbaa !17
  %104 = call noundef zeroext i1 @_ZN17GLRenderToTexture6enableEv(ptr noundef nonnull align 8 dereferenceable(24) %103)
  ret void

105:                                              ; preds = %95
  %106 = load ptr, ptr %5, align 8
  %107 = load i32, ptr %6, align 4
  %108 = insertvalue { ptr, i32 } poison, ptr %106, 0
  %109 = insertvalue { ptr, i32 } %108, i32 %107, 1
  resume { ptr, i32 } %109
}

declare void @_ZN17GLRenderToTextureC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

declare void @_ZN17GLRenderToTexture4initEiiji(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare noundef zeroext i1 @_ZN17GLRenderToTexture6enableEv(ptr noundef nonnull align 8 dereferenceable(24)) #4

attributes #0 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nobuiltin 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 #5 = { builtin allocsize(0) }
attributes #6 = { nounwind }
attributes #7 = { builtin 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, !6, i64 80}
!10 = !{!"_ZTS14TinyOpenGL3App", !11, i64 0, !6, i64 80, !6, i64 88, !6, i64 96}
!11 = !{!"_ZTS21TinyCommonGraphicsApp", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 41, !12, i64 42, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !12, i64 60, !7, i64 64}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !6, i64 56}
!15 = !{!"_ZTS26TinyOpenGL3AppInternalData", !16, i64 0, !16, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !16, i64 40, !16, i64 44, !16, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !16, i64 88, !16, i64 92, !16, i64 96, !16, i64 100}
!16 = !{!"int", !7, i64 0}
!17 = !{!15, !6, i64 72}
!18 = !{!16, !16, i64 0}
!19 = !{!10, !6, i64 96}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !8, i64 0}
!22 = !{!11, !6, i64 8}


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

@glad_glBindTexture = external local_unnamed_addr global ptr, align 8
@glad_glGenTextures = external local_unnamed_addr global ptr, align 8
@glad_glTexImage2D = external local_unnamed_addr global ptr, align 8
@glad_glTexParameteri = external local_unnamed_addr global ptr, align 8

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14TinyOpenGL3App22dump_next_frame_to_pngEPKc(ptr nocapture noundef nonnull readonly align 8 dereferenceable(104) %0, ptr noundef %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = getelementptr inbounds i8, ptr %0, i64 80
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 56
  store ptr %1, ptr %6, align 8, !tbaa !13
  %7 = getelementptr inbounds i8, ptr %5, i64 72
  %8 = load ptr, ptr %7, align 8, !tbaa !16
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %9, label %80

9:                                                ; preds = %2
  %10 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #5
  invoke void @_ZN17GLRenderToTextureC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %11 unwind label %78

11:                                               ; preds = %9
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 72
  store ptr %10, ptr %13, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %14 = load ptr, ptr @glad_glGenTextures, align 8, !tbaa !17
  call void %14(i32 noundef 1, ptr noundef nonnull %3)
  %15 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !17
  %16 = load i32, ptr %3, align 4, !tbaa !18
  call void %15(i32 noundef 3553, i32 noundef %16)
  %17 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %0, i64 96
  %19 = load ptr, ptr %18, align 8, !tbaa !19
  %20 = load ptr, ptr %19, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %20, i64 376
  %22 = load ptr, ptr %21, align 8
  %23 = call noundef i32 %22(ptr noundef nonnull align 8 dereferenceable(60) %19)
  %24 = sitofp i32 %23 to float
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !22
  %27 = load ptr, ptr %26, align 8, !tbaa !20
  %28 = getelementptr inbounds i8, ptr %27, i64 192
  %29 = load ptr, ptr %28, align 8
  %30 = call noundef float %29(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %31 = fmul float %30, %24
  %32 = fptosi float %31 to i32
  %33 = load ptr, ptr %18, align 8, !tbaa !19
  %34 = load ptr, ptr %33, align 8, !tbaa !20
  %35 = getelementptr inbounds i8, ptr %34, i64 384
  %36 = load ptr, ptr %35, align 8
  %37 = call noundef i32 %36(ptr noundef nonnull align 8 dereferenceable(60) %33)
  %38 = sitofp i32 %37 to float
  %39 = load ptr, ptr %25, align 8, !tbaa !22
  %40 = load ptr, ptr %39, align 8, !tbaa !20
  %41 = getelementptr inbounds i8, ptr %40, i64 192
  %42 = load ptr, ptr %41, align 8
  %43 = call noundef float %42(ptr noundef nonnull align 8 dereferenceable(8) %39)
  %44 = fmul float %43, %38
  %45 = fptosi float %44 to i32
  call void %17(i32 noundef 3553, i32 noundef 0, i32 noundef 34836, i32 noundef %32, i32 noundef %45, i32 noundef 0, i32 noundef 6408, i32 noundef 5126, ptr noundef null)
  %46 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !17
  call void %46(i32 noundef 3553, i32 noundef 10240, i32 noundef 9728)
  %47 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !17
  call void %47(i32 noundef 3553, i32 noundef 10241, i32 noundef 9987)
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i64 72
  %50 = load ptr, ptr %49, align 8, !tbaa !16
  %51 = load ptr, ptr %18, align 8, !tbaa !19
  %52 = load ptr, ptr %51, align 8, !tbaa !20
  %53 = getelementptr inbounds i8, ptr %52, i64 376
  %54 = load ptr, ptr %53, align 8
  %55 = call noundef i32 %54(ptr noundef nonnull align 8 dereferenceable(60) %51)
  %56 = sitofp i32 %55 to float
  %57 = load ptr, ptr %25, align 8, !tbaa !22
  %58 = load ptr, ptr %57, align 8, !tbaa !20
  %59 = getelementptr inbounds i8, ptr %58, i64 192
  %60 = load ptr, ptr %59, align 8
  %61 = call noundef float %60(ptr noundef nonnull align 8 dereferenceable(8) %57)
  %62 = fmul float %61, %56
  %63 = fptosi float %62 to i32
  %64 = load ptr, ptr %18, align 8, !tbaa !19
  %65 = load ptr, ptr %64, align 8, !tbaa !20
  %66 = getelementptr inbounds i8, ptr %65, i64 384
  %67 = load ptr, ptr %66, align 8
  %68 = call noundef i32 %67(ptr noundef nonnull align 8 dereferenceable(60) %64)
  %69 = sitofp i32 %68 to float
  %70 = load ptr, ptr %25, align 8, !tbaa !22
  %71 = load ptr, ptr %70, align 8, !tbaa !20
  %72 = getelementptr inbounds i8, ptr %71, i64 192
  %73 = load ptr, ptr %72, align 8
  %74 = call noundef float %73(ptr noundef nonnull align 8 dereferenceable(8) %70)
  %75 = fmul float %74, %69
  %76 = fptosi float %75 to i32
  %77 = load i32, ptr %3, align 4, !tbaa !18
  call void @_ZN17GLRenderToTexture4initEiiji(ptr noundef nonnull align 8 dereferenceable(24) %50, i32 noundef %63, i32 noundef %76, i32 noundef %77, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  %.pre = load ptr, ptr %4, align 8, !tbaa !5
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 72
  %.pre3 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !16
  br label %80

78:                                               ; preds = %9
  %79 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %10, i64 noundef 24) #7
  resume { ptr, i32 } %79

80:                                               ; preds = %11, %2
  %81 = phi ptr [ %.pre3, %11 ], [ %8, %2 ]
  %82 = call noundef zeroext i1 @_ZN17GLRenderToTexture6enableEv(ptr noundef nonnull align 8 dereferenceable(24) %81)
  ret void
}

declare void @_ZN17GLRenderToTextureC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

declare void @_ZN17GLRenderToTexture4initEiiji(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN17GLRenderToTexture6enableEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

attributes #0 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nobuiltin 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 #5 = { builtin allocsize(0) }
attributes #6 = { nounwind }
attributes #7 = { builtin 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, !8, i64 80}
!6 = !{!"_ZTS14TinyOpenGL3App", !7, i64 0, !8, i64 80, !8, i64 88, !8, i64 96}
!7 = !{!"_ZTS21TinyCommonGraphicsApp", !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !11, i64 40, !11, i64 41, !11, i64 42, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !11, i64 60, !9, i64 64}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"float", !9, i64 0}
!13 = !{!14, !8, i64 56}
!14 = !{!"_ZTS26TinyOpenGL3AppInternalData", !15, i64 0, !15, i64 4, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !15, i64 40, !15, i64 44, !15, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !15, i64 88, !15, i64 92, !15, i64 96, !15, i64 100}
!15 = !{!"int", !9, i64 0}
!16 = !{!14, !8, i64 72}
!17 = !{!8, !8, i64 0}
!18 = !{!15, !15, i64 0}
!19 = !{!6, !8, i64 96}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !10, i64 0}
!22 = !{!7, !8, i64 8}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass