; LLVM IR from Dovyski/opengl-demos :: src/shader-transform-matrix (main)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.Shader = type { i32 }
%"struct.glm::vec" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }
%"struct.glm::mat" = type { [4 x %"struct.glm::vec.2"] }
%"struct.glm::vec.2" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon.4 }
%struct.anon.4 = type { float, float, float, float }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.7 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.7 = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [31 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@glad_glEnable = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@__const.main.vertices = external hidden unnamed_addr constant [216 x float], align 16
@glad_glGenVertexArrays = external global ptr, align 8
@glad_glGenBuffers = external global ptr, align 8
@glad_glBindVertexArray = external global ptr, align 8
@glad_glBindBuffer = external global ptr, align 8
@glad_glBufferData = external global ptr, align 8
@glad_glVertexAttribPointer = external global ptr, align 8
@glad_glEnableVertexAttribArray = external global ptr, align 8
@glad_glClearColor = external global ptr, align 8
@glad_glClear = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@glad_glDrawArrays = external global ptr, align 8
@glad_glDeleteVertexArrays = external global ptr, align 8
@glad_glDeleteBuffers = external global ptr, align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12processInputP10GLFWwindow(ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z25framebuffer_size_callbackP10GLFWwindowii(ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %class.Shader, align 4
  %5 = alloca [216 x float], align 16
  %6 = alloca [10 x %"struct.glm::vec"], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.glm::mat", align 4
  %10 = alloca float, align 4
  %11 = alloca %"struct.glm::mat", align 4
  %12 = alloca float, align 4
  %13 = alloca %"struct.glm::mat", align 4
  %14 = alloca %"struct.glm::mat", align 4
  %15 = alloca %"struct.glm::vec", align 4
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator", align 1
  %22 = alloca i32, align 4
  %23 = alloca %"struct.glm::mat", align 4
  %24 = alloca float, align 4
  %25 = alloca %"struct.glm::mat", align 4
  %26 = alloca float, align 4
  %27 = alloca %"struct.glm::mat", align 4
  %28 = alloca %"struct.glm::vec", align 4
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator", align 1
  store i32 0, ptr %1, align 4
  %31 = call i32 @glfwInit()
  call void @glfwWindowHint(i32 noundef 139266, i32 noundef 3)
  call void @glfwWindowHint(i32 noundef 139267, i32 noundef 3)
  call void @glfwWindowHint(i32 noundef 139272, i32 noundef 204801)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #9
  %32 = call ptr @glfwCreateWindow(i32 noundef 800, i32 noundef 600, ptr noundef @.str, ptr noundef null, ptr noundef null)
  store ptr %32, ptr %2, align 8, !tbaa !5
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %38

35:                                               ; preds = %0
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @glfwTerminate()
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %138

38:                                               ; preds = %0
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  call void @glfwMakeContextCurrent(ptr noundef %39)
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = call ptr @glfwSetFramebufferSizeCallback(ptr noundef %40, ptr noundef @_Z25framebuffer_size_callbackP10GLFWwindowii)
  %42 = call i32 @gladLoadGLLoader(ptr noundef @glfwGetProcAddress)
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %47, label %44

44:                                               ; preds = %38
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %138

47:                                               ; preds = %38
  %48 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %48(i32 noundef 2929)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  call void @_ZN6ShaderC2EPKcS1_S1_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 864, ptr %5) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.vertices, i64 864, i1 false)
  call void @llvm.lifetime.start.p0(i64 120, ptr %6) #9
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %49 = getelementptr inbounds %"struct.glm::vec", ptr %6, i64 1
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %49, float noundef 2.000000e+00, float noundef 5.000000e+00, float noundef -1.500000e+01)
  %50 = getelementptr inbounds %"struct.glm::vec", ptr %6, i64 2
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %50, float noundef -1.500000e+00, float noundef 0xC0019999A0000000, float noundef -2.500000e+00)
  %51 = getelementptr inbounds %"struct.glm::vec", ptr %6, i64 3
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %51, float noundef 0xC00E666660000000, float noundef -2.000000e+00, float noundef 0xC0289999A0000000)
  %52 = getelementptr inbounds %"struct.glm::vec", ptr %6, i64 4
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %52, float noundef 0x4003333340000000, float noundef 0xBFD99999A0000000, float noundef -3.500000e+00)
  %53 = getelementptr inbounds %"struct.glm::vec", ptr %6, i64 5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %53, float noundef 0xBFFB333340000000, float noundef 3.000000e+00, float noundef -7.500000e+00)
  %54 = getelementptr inbounds %"struct.glm::vec", ptr %6, i64 6
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %54, float noundef 0x3FF4CCCCC0000000, float noundef -2.000000e+00, float noundef -2.500000e+00)
  %55 = getelementptr inbounds %"struct.glm::vec", ptr %6, i64 7
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %55, float noundef 1.500000e+00, float noundef 2.000000e+00, float noundef -2.500000e+00)
  %56 = getelementptr inbounds %"struct.glm::vec", ptr %6, i64 8
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %56, float noundef 1.500000e+00, float noundef 0x3FC99999A0000000, float noundef -1.500000e+00)
  %57 = getelementptr inbounds %"struct.glm::vec", ptr %6, i64 9
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %57, float noundef 0xBFF4CCCCC0000000, float noundef 1.000000e+00, float noundef -1.500000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  %58 = load ptr, ptr @glad_glGenVertexArrays, align 8, !tbaa !5
  call void %58(i32 noundef 1, ptr noundef %8)
  %59 = load ptr, ptr @glad_glGenBuffers, align 8, !tbaa !5
  call void %59(i32 noundef 1, ptr noundef %7)
  %60 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %61 = load i32, ptr %8, align 4, !tbaa !9
  call void %60(i32 noundef %61)
  %62 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %63 = load i32, ptr %7, align 4, !tbaa !9
  call void %62(i32 noundef 34962, i32 noundef %63)
  %64 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !5
  %65 = getelementptr inbounds [216 x float], ptr %5, i64 0, i64 0
  call void %64(i32 noundef 34962, i64 noundef 864, ptr noundef %65, i32 noundef 35044)
  %66 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  call void %66(i32 noundef 0, i32 noundef 3, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 24, ptr noundef null)
  %67 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  call void %67(i32 noundef 0)
  %68 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  call void %68(i32 noundef 1, i32 noundef 3, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 24, ptr noundef inttoptr (i64 12 to ptr))
  %69 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  call void %69(i32 noundef 1)
  call void @_ZN6Shader3useEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  br label %70

70:                                               ; preds = %132, %47
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = call i32 @glfwWindowShouldClose(ptr noundef %71)
  %73 = icmp ne i32 %72, 0
  %74 = xor i1 %73, true
  br i1 %74, label %75, label %135

75:                                               ; preds = %70
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_Z12processInputP10GLFWwindow(ptr noundef %76)
  %77 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  call void %77(float noundef 0x3FC99999A0000000, float noundef 0x3FD3333340000000, float noundef 0x3FD3333340000000, float noundef 1.000000e+00)
  %78 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %78(i32 noundef 16640)
  call void @_ZN6Shader3useEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store float 1.000000e+00, ptr %10, align 4, !tbaa !11
  call void @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEC2ERKf(ptr noundef nonnull align 4 dereferenceable(64) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store float 1.000000e+00, ptr %12, align 4, !tbaa !11
  call void @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEC2ERKf(ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #9
  %79 = call noundef float @_ZN3glm7radiansIfEET_S1_(float noundef 4.500000e+01)
  call void @_ZN3glm11perspectiveIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_S2_(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %13, float noundef %79, float noundef 0x3FF5555560000000, float noundef 0x3FB99999A0000000, float noundef 1.000000e+02)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %13, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #9
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef -3.000000e+00)
  call void @_ZN3glm9translateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %14, ptr noundef nonnull align 4 dereferenceable(64) %9, ptr noundef nonnull align 4 dereferenceable(12) %15)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %14, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %80 unwind label %90

80:                                               ; preds = %75
  invoke void @_ZNK6Shader7setMat4ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3glm3matILi4ELi4EfLNS8_9qualifierE0EEE(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 4 dereferenceable(64) %11)
          to label %81 unwind label %94

81:                                               ; preds = %80
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %82 unwind label %99

82:                                               ; preds = %81
  invoke void @_ZNK6Shader7setMat4ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3glm3matILi4ELi4EfLNS8_9qualifierE0EEE(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 4 dereferenceable(64) %9)
          to label %83 unwind label %103

83:                                               ; preds = %82
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #9
  %84 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %85 = load i32, ptr %8, align 4, !tbaa !9
  call void %84(i32 noundef %85)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %120, %83
  %87 = load i32, ptr %22, align 4, !tbaa !9
  %88 = icmp ult i32 %87, 10
  br i1 %88, label %108, label %89

89:                                               ; preds = %86
  store i32 4, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %132

90:                                               ; preds = %75
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %18, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %19, align 4
  br label %98

94:                                               ; preds = %80
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %18, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %19, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  br label %98

98:                                               ; preds = %94, %90
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #9
  br label %134

99:                                               ; preds = %81
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %18, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %19, align 4
  br label %107

103:                                              ; preds = %82
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %18, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %19, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  br label %107

107:                                              ; preds = %103, %99
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #9
  br label %134

108:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store float 1.000000e+00, ptr %24, align 4, !tbaa !11
  call void @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEC2ERKf(ptr noundef nonnull align 4 dereferenceable(64) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #9
  %109 = load i32, ptr %22, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds [10 x %"struct.glm::vec"], ptr %6, i64 0, i64 %110
  call void @_ZN3glm9translateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %25, ptr noundef nonnull align 4 dereferenceable(64) %23, ptr noundef nonnull align 4 dereferenceable(12) %111)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %25, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %112 = load i32, ptr %22, align 4, !tbaa !9
  %113 = uitofp i32 %112 to float
  %114 = fmul float 2.000000e+01, %113
  store float %114, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #9
  %115 = load float, ptr %26, align 4, !tbaa !11
  %116 = call noundef float @_ZN3glm7radiansIfEET_S1_(float noundef %115)
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #9
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %28, float noundef 1.000000e+00, float noundef 0x3FD3333340000000, float noundef 5.000000e-01)
  call void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %27, ptr noundef nonnull align 4 dereferenceable(64) %23, float noundef %116, ptr noundef nonnull align 4 dereferenceable(12) %28)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %27, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %117 unwind label %123

117:                                              ; preds = %108
  invoke void @_ZNK6Shader7setMat4ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3glm3matILi4ELi4EfLNS8_9qualifierE0EEE(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 4 dereferenceable(64) %23)
          to label %118 unwind label %127

118:                                              ; preds = %117
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #9
  %119 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %119(i32 noundef 4, i32 noundef 0, i32 noundef 36)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #9
  br label %120

120:                                              ; preds = %118
  %121 = load i32, ptr %22, align 4, !tbaa !9
  %122 = add i32 %121, 1
  store i32 %122, ptr %22, align 4, !tbaa !9
  br label %86, !llvm.loop !15

123:                                              ; preds = %108
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %18, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %19, align 4
  br label %131

127:                                              ; preds = %117
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %18, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %19, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #9
  br label %131

131:                                              ; preds = %127, %123
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %134

132:                                              ; preds = %89
  %133 = load ptr, ptr %2, align 8, !tbaa !5
  call void @glfwSwapBuffers(ptr noundef %133)
  call void @glfwPollEvents()
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #9
  br label %70, !llvm.loop !17

134:                                              ; preds = %131, %107, %98
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 864, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #9
  br label %140

135:                                              ; preds = %70
  %136 = load ptr, ptr @glad_glDeleteVertexArrays, align 8, !tbaa !5
  call void %136(i32 noundef 1, ptr noundef %8)
  %137 = load ptr, ptr @glad_glDeleteBuffers, align 8, !tbaa !5
  call void %137(i32 noundef 1, ptr noundef %7)
  call void @glfwTerminate()
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 864, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  br label %138

138:                                              ; preds = %135, %44, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #9
  %139 = load i32, ptr %1, align 4
  ret i32 %139

140:                                              ; preds = %134
  %141 = load ptr, ptr %18, align 8
  %142 = load i32, ptr %19, align 4
  %143 = insertvalue { ptr, i32 } poison, ptr %141, 0
  %144 = insertvalue { ptr, i32 } %143, i32 %142, 1
  resume { ptr, i32 } %144
}

declare i32 @glfwInit() #2

declare void @glfwWindowHint(i32 noundef, i32 noundef) #2

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

declare ptr @glfwCreateWindow(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare void @glfwTerminate() #2

declare void @glfwMakeContextCurrent(ptr noundef) #2

declare ptr @glfwSetFramebufferSizeCallback(ptr noundef, ptr noundef) #2

declare i32 @gladLoadGLLoader(ptr noundef) #2

declare ptr @glfwGetProcAddress(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ShaderC2EPKcS1_S1_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef) unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Shader3useEv(ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

declare i32 @glfwWindowShouldClose(ptr noundef) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm11perspectiveIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_S2_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, float noundef, float noundef, float noundef, float noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3glm7radiansIfEET_S1_(float noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm9translateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(12)) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6Shader7setMat4ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3glm3matILi4ELi4EfLNS8_9qualifierE0EEE(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(64)) #0 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, ptr noundef nonnull align 4 dereferenceable(64), float noundef, ptr noundef nonnull align 4 dereferenceable(12)) #7

declare void @glfwSwapBuffers(ptr noundef) #2

declare void @glfwPollEvents() #2

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

attributes #0 = { 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 #1 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 #8 = { 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 #9 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{i64 0, i64 64, !14}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.Shader = type { i32 }
%"struct.glm::vec" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }
%"struct.glm::mat" = type { [4 x %"struct.glm::vec.2"] }
%"struct.glm::vec.2" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon.4 }
%struct.anon.4 = type { float, float, float, float }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.7 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.7 = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [31 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@glad_glEnable = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@__const.main.vertices = external hidden unnamed_addr constant [216 x float], align 16
@glad_glGenVertexArrays = external local_unnamed_addr global ptr, align 8
@glad_glGenBuffers = external local_unnamed_addr global ptr, align 8
@glad_glBindVertexArray = external local_unnamed_addr global ptr, align 8
@glad_glBindBuffer = external local_unnamed_addr global ptr, align 8
@glad_glBufferData = 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_glClearColor = external local_unnamed_addr global ptr, align 8
@glad_glClear = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@glad_glDrawArrays = external local_unnamed_addr global ptr, align 8
@glad_glDeleteVertexArrays = external local_unnamed_addr global ptr, align 8
@glad_glDeleteBuffers = external local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12processInputP10GLFWwindow(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z25framebuffer_size_callbackP10GLFWwindowii(ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 -1, 1) i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %class.Shader, align 4
  %2 = alloca [216 x float], align 16
  %3 = alloca [10 x %"struct.glm::vec"], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.glm::mat", align 4
  %7 = alloca float, align 4
  %8 = alloca %"struct.glm::mat", align 4
  %9 = alloca float, align 4
  %10 = alloca %"struct.glm::mat", align 4
  %11 = alloca %"struct.glm::mat", align 4
  %12 = alloca %"struct.glm::vec", align 4
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"struct.glm::mat", align 4
  %18 = alloca float, align 4
  %19 = alloca %"struct.glm::mat", align 4
  %20 = alloca %"struct.glm::mat", align 4
  %21 = alloca %"struct.glm::vec", align 4
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator", align 1
  %24 = tail call i32 @glfwInit()
  tail call void @glfwWindowHint(i32 noundef 139266, i32 noundef 3)
  tail call void @glfwWindowHint(i32 noundef 139267, i32 noundef 3)
  tail call void @glfwWindowHint(i32 noundef 139272, i32 noundef 204801)
  %25 = tail call ptr @glfwCreateWindow(i32 noundef 800, i32 noundef 600, ptr noundef nonnull @.str, ptr noundef null, ptr noundef null)
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %30

27:                                               ; preds = %0
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @glfwTerminate()
  br label %97

30:                                               ; preds = %0
  tail call void @glfwMakeContextCurrent(ptr noundef nonnull %25)
  %31 = tail call ptr @glfwSetFramebufferSizeCallback(ptr noundef nonnull %25, ptr noundef nonnull @_Z25framebuffer_size_callbackP10GLFWwindowii)
  %32 = tail call i32 @gladLoadGLLoader(ptr noundef nonnull @glfwGetProcAddress)
  %.not = icmp eq i32 %32, 0
  br i1 %.not, label %33, label %36

33:                                               ; preds = %30
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %97

36:                                               ; preds = %30
  %37 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  tail call void %37(i32 noundef 2929)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  call void @_ZN6ShaderC2EPKcS1_S1_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 864, ptr nonnull %2) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(864) %2, ptr noundef nonnull align 16 dereferenceable(864) @__const.main.vertices, i64 864, i1 false)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %3) #9
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %38 = getelementptr inbounds i8, ptr %3, i64 12
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %38, float noundef 2.000000e+00, float noundef 5.000000e+00, float noundef -1.500000e+01)
  %39 = getelementptr inbounds i8, ptr %3, i64 24
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %39, float noundef -1.500000e+00, float noundef 0xC0019999A0000000, float noundef -2.500000e+00)
  %40 = getelementptr inbounds i8, ptr %3, i64 36
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %40, float noundef 0xC00E666660000000, float noundef -2.000000e+00, float noundef 0xC0289999A0000000)
  %41 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %41, float noundef 0x4003333340000000, float noundef 0xBFD99999A0000000, float noundef -3.500000e+00)
  %42 = getelementptr inbounds i8, ptr %3, i64 60
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %42, float noundef 0xBFFB333340000000, float noundef 3.000000e+00, float noundef -7.500000e+00)
  %43 = getelementptr inbounds i8, ptr %3, i64 72
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %43, float noundef 0x3FF4CCCCC0000000, float noundef -2.000000e+00, float noundef -2.500000e+00)
  %44 = getelementptr inbounds i8, ptr %3, i64 84
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %44, float noundef 1.500000e+00, float noundef 2.000000e+00, float noundef -2.500000e+00)
  %45 = getelementptr inbounds i8, ptr %3, i64 96
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %45, float noundef 1.500000e+00, float noundef 0x3FC99999A0000000, float noundef -1.500000e+00)
  %46 = getelementptr inbounds i8, ptr %3, i64 108
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %46, float noundef 0xBFF4CCCCC0000000, float noundef 1.000000e+00, float noundef -1.500000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %47 = load ptr, ptr @glad_glGenVertexArrays, align 8, !tbaa !5
  call void %47(i32 noundef 1, ptr noundef nonnull %5)
  %48 = load ptr, ptr @glad_glGenBuffers, align 8, !tbaa !5
  call void %48(i32 noundef 1, ptr noundef nonnull %4)
  %49 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %50 = load i32, ptr %5, align 4, !tbaa !9
  call void %49(i32 noundef %50)
  %51 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %52 = load i32, ptr %4, align 4, !tbaa !9
  call void %51(i32 noundef 34962, i32 noundef %52)
  %53 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !5
  call void %53(i32 noundef 34962, i64 noundef 864, ptr noundef nonnull %2, i32 noundef 35044)
  %54 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  call void %54(i32 noundef 0, i32 noundef 3, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 24, ptr noundef null)
  %55 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  call void %55(i32 noundef 0)
  %56 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  call void %56(i32 noundef 1, i32 noundef 3, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 24, ptr noundef nonnull inttoptr (i64 12 to ptr))
  %57 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  call void %57(i32 noundef 1)
  call void @_ZN6Shader3useEv(ptr noundef nonnull align 4 dereferenceable(4) %1)
  %58 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %25)
  %.not2028 = icmp eq i32 %58, 0
  br i1 %.not2028, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %36, %68
  call void @_Z12processInputP10GLFWwindow(ptr noundef nonnull %25)
  %59 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  call void %59(float noundef 0x3FC99999A0000000, float noundef 0x3FD3333340000000, float noundef 0x3FD3333340000000, float noundef 1.000000e+00)
  %60 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %60(i32 noundef 16640)
  call void @_ZN6Shader3useEv(ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  store float 1.000000e+00, ptr %7, align 4, !tbaa !11
  call void @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEC2ERKf(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  store float 1.000000e+00, ptr %9, align 4, !tbaa !11
  call void @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEC2ERKf(ptr noundef nonnull align 4 dereferenceable(64) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #9
  %61 = call noundef float @_ZN3glm7radiansIfEET_S1_(float noundef 4.500000e+01)
  call void @_ZN3glm11perspectiveIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_S2_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %10, float noundef %61, float noundef 0x3FF5555560000000, float noundef 0x3FB99999A0000000, float noundef 1.000000e+02)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(64) %8, ptr noundef nonnull align 4 dereferenceable(64) %10, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #9
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef -3.000000e+00)
  call void @_ZN3glm9translateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %11, ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %11, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %62 unwind label %70

62:                                               ; preds = %.lr.ph
  invoke void @_ZNK6Shader7setMat4ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3glm3matILi4ELi4EfLNS8_9qualifierE0EEE(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 4 dereferenceable(64) %8)
          to label %63 unwind label %72

63:                                               ; preds = %62
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %64 unwind label %75

64:                                               ; preds = %63
  invoke void @_ZNK6Shader7setMat4ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3glm3matILi4ELi4EfLNS8_9qualifierE0EEE(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 4 dereferenceable(64) %6)
          to label %65 unwind label %77

65:                                               ; preds = %64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #9
  %66 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %67 = load i32, ptr %5, align 4, !tbaa !9
  call void %66(i32 noundef %67)
  br label %80

68:                                               ; preds = %87
  call void @glfwSwapBuffers(ptr noundef nonnull %25)
  call void @glfwPollEvents()
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #9
  %69 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %25)
  %.not20 = icmp eq i32 %69, 0
  br i1 %.not20, label %.lr.ph, label %._crit_edge, !llvm.loop !15

70:                                               ; preds = %.lr.ph
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %74

72:                                               ; preds = %62
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  br label %74

74:                                               ; preds = %72, %70
  %.pn = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  br label %94

75:                                               ; preds = %63
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %79

77:                                               ; preds = %64
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  br label %79

79:                                               ; preds = %77, %75
  %.pn22 = phi { ptr, i32 } [ %78, %77 ], [ %76, %75 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #9
  br label %94

80:                                               ; preds = %65, %87
  %indvars.iv = phi i64 [ 0, %65 ], [ %indvars.iv.next, %87 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #9
  store float 1.000000e+00, ptr %18, align 4, !tbaa !11
  call void @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEC2ERKf(ptr noundef nonnull align 4 dereferenceable(64) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #9
  %81 = getelementptr inbounds [10 x %"struct.glm::vec"], ptr %3, i64 0, i64 %indvars.iv
  call void @_ZN3glm9translateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %19, ptr noundef nonnull align 4 dereferenceable(64) %17, ptr noundef nonnull align 4 dereferenceable(12) %81)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(64) %17, ptr noundef nonnull align 4 dereferenceable(64) %19, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #9
  %82 = trunc nuw nsw i64 %indvars.iv to i32
  %83 = uitofp nneg i32 %82 to float
  %84 = fmul float %83, 2.000000e+01
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #9
  %85 = call noundef float @_ZN3glm7radiansIfEET_S1_(float noundef %84)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #9
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %21, float noundef 1.000000e+00, float noundef 0x3FD3333340000000, float noundef 5.000000e-01)
  call void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %20, ptr noundef nonnull align 4 dereferenceable(64) %17, float noundef %85, ptr noundef nonnull align 4 dereferenceable(12) %21)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(64) %17, ptr noundef nonnull align 4 dereferenceable(64) %20, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %86 unwind label %89

86:                                               ; preds = %80
  invoke void @_ZNK6Shader7setMat4ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3glm3matILi4ELi4EfLNS8_9qualifierE0EEE(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 4 dereferenceable(64) %17)
          to label %87 unwind label %91

87:                                               ; preds = %86
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #9
  %88 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %88(i32 noundef 4, i32 noundef 0, i32 noundef 36)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 10
  br i1 %exitcond.not, label %68, label %80, !llvm.loop !17

89:                                               ; preds = %80
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %93

91:                                               ; preds = %86
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  br label %93

93:                                               ; preds = %91, %89
  %.pn24 = phi { ptr, i32 } [ %92, %91 ], [ %90, %89 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #9
  br label %94

94:                                               ; preds = %93, %79, %74
  %.pn24.pn = phi { ptr, i32 } [ %.pn24, %93 ], [ %.pn22, %79 ], [ %.pn, %74 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 864, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn24.pn

._crit_edge:                                      ; preds = %68, %36
  %95 = load ptr, ptr @glad_glDeleteVertexArrays, align 8, !tbaa !5
  call void %95(i32 noundef 1, ptr noundef nonnull %5)
  %96 = load ptr, ptr @glad_glDeleteBuffers, align 8, !tbaa !5
  call void %96(i32 noundef 1, ptr noundef nonnull %4)
  call void @glfwTerminate()
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 864, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  br label %97

97:                                               ; preds = %._crit_edge, %33, %27
  %.0 = phi i32 [ -1, %27 ], [ 0, %._crit_edge ], [ -1, %33 ]
  ret i32 %.0
}

declare i32 @glfwInit() local_unnamed_addr #2

declare void @glfwWindowHint(i32 noundef, i32 noundef) local_unnamed_addr #2

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

declare ptr @glfwCreateWindow(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare void @glfwTerminate() local_unnamed_addr #2

declare void @glfwMakeContextCurrent(ptr noundef) local_unnamed_addr #2

declare ptr @glfwSetFramebufferSizeCallback(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @gladLoadGLLoader(ptr noundef) local_unnamed_addr #2

declare ptr @glfwGetProcAddress(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ShaderC2EPKcS1_S1_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Shader3useEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

declare i32 @glfwWindowShouldClose(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm11perspectiveIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_S2_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3glm7radiansIfEET_S1_(float noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm9translateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6Shader7setMat4ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3glm3matILi4ELi4EfLNS8_9qualifierE0EEE(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #0 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, ptr noundef nonnull align 4 dereferenceable(64), float noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #7

declare void @glfwSwapBuffers(ptr noundef) local_unnamed_addr #2

declare void @glfwPollEvents() local_unnamed_addr #2

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

attributes #0 = { 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 #1 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 #8 = { 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 #9 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{i64 0, i64 64, !14}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass