; LLVM IR from Dovyski/opengl-demos :: src/shader-transform-rotate (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 }
%"struct.glm::mat" = type { [4 x %"struct.glm::vec"] }
%"struct.glm::vec" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float, float }
%"struct.glm::vec.2" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon.4 }
%struct.anon.4 = type { float, float, float }

@vertexShaderSource = external dso_local global ptr, align 8
@fragmentShaderSource = external dso_local global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@glad_glCreateShader = external global ptr, align 8
@glad_glShaderSource = external global ptr, align 8
@glad_glCompileShader = external global ptr, align 8
@glad_glGetShaderiv = external global ptr, align 8
@glad_glGetShaderInfoLog = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [45 x i8], align 1
@glad_glCreateProgram = external global ptr, align 8
@glad_glAttachShader = external global ptr, align 8
@glad_glLinkProgram = external global ptr, align 8
@glad_glGetProgramiv = external global ptr, align 8
@glad_glGetProgramInfoLog = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [40 x i8], align 1
@glad_glDeleteShader = external global ptr, align 8
@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
@glad_glUseProgram = external global ptr, align 8
@glad_glGetUniformLocation = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@glad_glUniformMatrix4fv = external global ptr, align 8
@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 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [512 x i8], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [9 x float], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.glm::mat", align 4
  %13 = alloca float, align 4
  %14 = alloca %"struct.glm::mat", align 4
  %15 = alloca %"struct.glm::vec.2", align 4
  %16 = alloca %"struct.glm::mat", align 4
  %17 = alloca %"struct.glm::vec.2", align 4
  %18 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %19 = 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
  %20 = call ptr @glfwCreateWindow(i32 noundef 800, i32 noundef 600, ptr noundef @.str.2, ptr noundef null, ptr noundef null)
  store ptr %20, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %26

23:                                               ; preds = %0
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %24, 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 %146

26:                                               ; preds = %0
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  call void @glfwMakeContextCurrent(ptr noundef %27)
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = call ptr @glfwSetFramebufferSizeCallback(ptr noundef %28, ptr noundef @_Z25framebuffer_size_callbackP10GLFWwindowii)
  %30 = call i32 @gladLoadGLLoader(ptr noundef @glfwGetProcAddress)
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %35, label %32

32:                                               ; preds = %26
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %146

35:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  %36 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !5
  %37 = call i32 %36(i32 noundef 35633)
  store i32 %37, ptr %4, align 4, !tbaa !9
  %38 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  %39 = load i32, ptr %4, align 4, !tbaa !9
  call void %38(i32 noundef %39, i32 noundef 1, ptr noundef @vertexShaderSource, ptr noundef null)
  %40 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  %41 = load i32, ptr %4, align 4, !tbaa !9
  call void %40(i32 noundef %41)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.start.p0(i64 512, ptr %6) #9
  %42 = load ptr, ptr @glad_glGetShaderiv, align 8, !tbaa !5
  %43 = load i32, ptr %4, align 4, !tbaa !9
  call void %42(i32 noundef %43, i32 noundef 35713, ptr noundef %5)
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %54, label %46

46:                                               ; preds = %35
  %47 = load ptr, ptr @glad_glGetShaderInfoLog, align 8, !tbaa !5
  %48 = load i32, ptr %4, align 4, !tbaa !9
  %49 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  call void %47(i32 noundef %48, i32 noundef 512, ptr noundef null, ptr noundef %49)
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  %51 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef %51)
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %54

54:                                               ; preds = %46, %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %55 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !5
  %56 = call i32 %55(i32 noundef 35632)
  store i32 %56, ptr %7, align 4, !tbaa !9
  %57 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  %58 = load i32, ptr %7, align 4, !tbaa !9
  call void %57(i32 noundef %58, i32 noundef 1, ptr noundef @fragmentShaderSource, ptr noundef null)
  %59 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  %60 = load i32, ptr %7, align 4, !tbaa !9
  call void %59(i32 noundef %60)
  %61 = load ptr, ptr @glad_glGetShaderiv, align 8, !tbaa !5
  %62 = load i32, ptr %7, align 4, !tbaa !9
  call void %61(i32 noundef %62, i32 noundef 35713, ptr noundef %5)
  %63 = load i32, ptr %5, align 4, !tbaa !9
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %73, label %65

65:                                               ; preds = %54
  %66 = load ptr, ptr @glad_glGetShaderInfoLog, align 8, !tbaa !5
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  call void %66(i32 noundef %67, i32 noundef 512, ptr noundef null, ptr noundef %68)
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %70 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef %70)
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %73

73:                                               ; preds = %65, %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  %74 = load ptr, ptr @glad_glCreateProgram, align 8, !tbaa !5
  %75 = call i32 %74()
  store i32 %75, ptr %8, align 4, !tbaa !9
  %76 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  %77 = load i32, ptr %8, align 4, !tbaa !9
  %78 = load i32, ptr %4, align 4, !tbaa !9
  call void %76(i32 noundef %77, i32 noundef %78)
  %79 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  %80 = load i32, ptr %8, align 4, !tbaa !9
  %81 = load i32, ptr %7, align 4, !tbaa !9
  call void %79(i32 noundef %80, i32 noundef %81)
  %82 = load ptr, ptr @glad_glLinkProgram, align 8, !tbaa !5
  %83 = load i32, ptr %8, align 4, !tbaa !9
  call void %82(i32 noundef %83)
  %84 = load ptr, ptr @glad_glGetProgramiv, align 8, !tbaa !5
  %85 = load i32, ptr %8, align 4, !tbaa !9
  call void %84(i32 noundef %85, i32 noundef 35714, ptr noundef %5)
  %86 = load i32, ptr %5, align 4, !tbaa !9
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %96, label %88

88:                                               ; preds = %73
  %89 = load ptr, ptr @glad_glGetProgramInfoLog, align 8, !tbaa !5
  %90 = load i32, ptr %8, align 4, !tbaa !9
  %91 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  call void %89(i32 noundef %90, i32 noundef 512, ptr noundef null, ptr noundef %91)
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %93 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef %93)
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %96

96:                                               ; preds = %88, %73
  %97 = load ptr, ptr @glad_glDeleteShader, align 8, !tbaa !5
  %98 = load i32, ptr %4, align 4, !tbaa !9
  call void %97(i32 noundef %98)
  %99 = load ptr, ptr @glad_glDeleteShader, align 8, !tbaa !5
  %100 = load i32, ptr %7, align 4, !tbaa !9
  call void %99(i32 noundef %100)
  call void @llvm.lifetime.start.p0(i64 36, ptr %9) #9
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 36, i1 false)
  %101 = getelementptr inbounds [9 x float], ptr %9, i32 0, i32 0
  store float -5.000000e-01, ptr %101, align 16
  %102 = getelementptr inbounds [9 x float], ptr %9, i32 0, i32 1
  store float -5.000000e-01, ptr %102, align 4
  %103 = getelementptr inbounds [9 x float], ptr %9, i32 0, i32 3
  store float 5.000000e-01, ptr %103, align 4
  %104 = getelementptr inbounds [9 x float], ptr %9, i32 0, i32 4
  store float -5.000000e-01, ptr %104, align 16
  %105 = getelementptr inbounds [9 x float], ptr %9, i32 0, i32 7
  store float 5.000000e-01, ptr %105, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %106 = load ptr, ptr @glad_glGenVertexArrays, align 8, !tbaa !5
  call void %106(i32 noundef 1, ptr noundef %11)
  %107 = load ptr, ptr @glad_glGenBuffers, align 8, !tbaa !5
  call void %107(i32 noundef 1, ptr noundef %10)
  %108 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %109 = load i32, ptr %11, align 4, !tbaa !9
  call void %108(i32 noundef %109)
  %110 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %111 = load i32, ptr %10, align 4, !tbaa !9
  call void %110(i32 noundef 34962, i32 noundef %111)
  %112 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !5
  %113 = getelementptr inbounds [9 x float], ptr %9, i64 0, i64 0
  call void %112(i32 noundef 34962, i64 noundef 36, ptr noundef %113, i32 noundef 35044)
  %114 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  call void %114(i32 noundef 0, i32 noundef 3, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 12, ptr noundef null)
  %115 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  call void %115(i32 noundef 0)
  %116 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  call void %116(i32 noundef 34962, i32 noundef 0)
  %117 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  call void %117(i32 noundef 0)
  br label %118

118:                                              ; preds = %123, %96
  %119 = load ptr, ptr %2, align 8, !tbaa !5
  %120 = call i32 @glfwWindowShouldClose(ptr noundef %119)
  %121 = icmp ne i32 %120, 0
  %122 = xor i1 %121, true
  br i1 %122, label %123, label %143

123:                                              ; preds = %118
  %124 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_Z12processInputP10GLFWwindow(ptr noundef %124)
  %125 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  call void %125(float noundef 0x3FC99999A0000000, float noundef 0x3FD3333340000000, float noundef 0x3FD3333340000000, float noundef 1.000000e+00)
  %126 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %126(i32 noundef 16384)
  %127 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %128 = load i32, ptr %8, align 4, !tbaa !9
  call void %127(i32 noundef %128)
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store float 1.000000e+00, ptr %13, align 4, !tbaa !11
  call void @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEC2ERKf(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.end.p0(i64 4, 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 5.000000e-01, float noundef -5.000000e-01, float noundef 0.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) %12, ptr noundef nonnull align 4 dereferenceable(12) %15)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, 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 64, ptr %16) #9
  %129 = call double @glfwGetTime()
  %130 = fmul double %129, 1.000000e+01
  %131 = call noundef double @_ZN3glm7radiansIdEET_S1_(double noundef %130)
  %132 = fptrunc double %131 to float
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #9
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %16, ptr noundef nonnull align 4 dereferenceable(64) %12, float noundef %132, ptr noundef nonnull align 4 dereferenceable(12) %17)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %16, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %133 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %134 = load i32, ptr %8, align 4, !tbaa !9
  %135 = call i32 %133(i32 noundef %134, ptr noundef @.str.8)
  store i32 %135, ptr %18, align 4, !tbaa !9
  %136 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  %137 = load i32, ptr %18, align 4, !tbaa !9
  %138 = call noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3matILi4ELi4ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(64) %12)
  call void %136(i32 noundef %137, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %138)
  %139 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %140 = load i32, ptr %11, align 4, !tbaa !9
  call void %139(i32 noundef %140)
  %141 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %141(i32 noundef 4, i32 noundef 0, i32 noundef 3)
  %142 = load ptr, ptr %2, align 8, !tbaa !5
  call void @glfwSwapBuffers(ptr noundef %142)
  call void @glfwPollEvents()
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #9
  br label %118, !llvm.loop !15

143:                                              ; preds = %118
  %144 = load ptr, ptr @glad_glDeleteVertexArrays, align 8, !tbaa !5
  call void %144(i32 noundef 1, ptr noundef %11)
  %145 = load ptr, ptr @glad_glDeleteBuffers, align 8, !tbaa !5
  call void %145(i32 noundef 1, ptr noundef %10)
  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 %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 36, 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 512, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  br label %146

146:                                              ; preds = %143, %32, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #9
  %147 = load i32, ptr %1, align 4
  ret i32 %147
}

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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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 @_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)) #6

; 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 #7 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) #8

; 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)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN3glm7radiansIdEET_S1_(double noundef) #7

declare double @glfwGetTime() #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3matILi4ELi4ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(64)) #7

declare void @glfwSwapBuffers(ptr noundef) #2

declare void @glfwPollEvents() #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: write) }
attributes #6 = { 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 #7 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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"}


; 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 }
%"struct.glm::mat" = type { [4 x %"struct.glm::vec"] }
%"struct.glm::vec" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float, float }
%"struct.glm::vec.2" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon.4 }
%struct.anon.4 = type { float, float, float }

@vertexShaderSource = external dso_local global ptr, align 8
@fragmentShaderSource = external dso_local global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@glad_glCreateShader = external local_unnamed_addr global ptr, align 8
@glad_glShaderSource = external local_unnamed_addr global ptr, align 8
@glad_glCompileShader = external local_unnamed_addr global ptr, align 8
@glad_glGetShaderiv = external local_unnamed_addr global ptr, align 8
@glad_glGetShaderInfoLog = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [45 x i8], align 1
@glad_glCreateProgram = external local_unnamed_addr global ptr, align 8
@glad_glAttachShader = external local_unnamed_addr global ptr, align 8
@glad_glLinkProgram = external local_unnamed_addr global ptr, align 8
@glad_glGetProgramiv = external local_unnamed_addr global ptr, align 8
@glad_glGetProgramInfoLog = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [40 x i8], align 1
@glad_glDeleteShader = external local_unnamed_addr global ptr, align 8
@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
@glad_glUseProgram = external local_unnamed_addr global ptr, align 8
@glad_glGetUniformLocation = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@glad_glUniformMatrix4fv = external local_unnamed_addr global ptr, align 8
@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 {
  %1 = alloca i32, align 4
  %2 = alloca [512 x i8], align 16
  %3 = alloca [9 x float], 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 %"struct.glm::vec.2", align 4
  %10 = alloca %"struct.glm::mat", align 4
  %11 = alloca %"struct.glm::vec.2", align 4
  %12 = 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)
  %13 = tail call ptr @glfwCreateWindow(i32 noundef 800, i32 noundef 600, ptr noundef nonnull @.str.2, ptr noundef null, ptr noundef null)
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %18

15:                                               ; preds = %0
  %16 = 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.3)
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @glfwTerminate()
  br label %95

18:                                               ; preds = %0
  tail call void @glfwMakeContextCurrent(ptr noundef nonnull %13)
  %19 = tail call ptr @glfwSetFramebufferSizeCallback(ptr noundef nonnull %13, ptr noundef nonnull @_Z25framebuffer_size_callbackP10GLFWwindowii)
  %20 = tail call i32 @gladLoadGLLoader(ptr noundef nonnull @glfwGetProcAddress)
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %21, label %24

21:                                               ; preds = %18
  %22 = 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.4)
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %95

24:                                               ; preds = %18
  %25 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !5
  %26 = tail call i32 %25(i32 noundef 35633)
  %27 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  tail call void %27(i32 noundef %26, i32 noundef 1, ptr noundef nonnull @vertexShaderSource, ptr noundef null)
  %28 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  tail call void %28(i32 noundef %26)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %2) #9
  %29 = load ptr, ptr @glad_glGetShaderiv, align 8, !tbaa !5
  call void %29(i32 noundef %26, i32 noundef 35713, ptr noundef nonnull %1)
  %30 = load i32, ptr %1, align 4, !tbaa !9
  %.not27 = icmp eq i32 %30, 0
  br i1 %.not27, label %31, label %36

31:                                               ; preds = %24
  %32 = load ptr, ptr @glad_glGetShaderInfoLog, align 8, !tbaa !5
  call void %32(i32 noundef %26, i32 noundef 512, ptr noundef null, ptr noundef nonnull %2)
  %33 = 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.5)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull %2)
  %35 = 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 %36

36:                                               ; preds = %31, %24
  %37 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !5
  %38 = call i32 %37(i32 noundef 35632)
  %39 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  call void %39(i32 noundef %38, i32 noundef 1, ptr noundef nonnull @fragmentShaderSource, ptr noundef null)
  %40 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  call void %40(i32 noundef %38)
  %41 = load ptr, ptr @glad_glGetShaderiv, align 8, !tbaa !5
  call void %41(i32 noundef %38, i32 noundef 35713, ptr noundef nonnull %1)
  %42 = load i32, ptr %1, align 4, !tbaa !9
  %.not28 = icmp eq i32 %42, 0
  br i1 %.not28, label %43, label %48

43:                                               ; preds = %36
  %44 = load ptr, ptr @glad_glGetShaderInfoLog, align 8, !tbaa !5
  call void %44(i32 noundef %38, i32 noundef 512, ptr noundef null, ptr noundef nonnull %2)
  %45 = 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.6)
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull %2)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %48

48:                                               ; preds = %43, %36
  %49 = load ptr, ptr @glad_glCreateProgram, align 8, !tbaa !5
  %50 = call i32 %49()
  %51 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  call void %51(i32 noundef %50, i32 noundef %26)
  %52 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  call void %52(i32 noundef %50, i32 noundef %38)
  %53 = load ptr, ptr @glad_glLinkProgram, align 8, !tbaa !5
  call void %53(i32 noundef %50)
  %54 = load ptr, ptr @glad_glGetProgramiv, align 8, !tbaa !5
  call void %54(i32 noundef %50, i32 noundef 35714, ptr noundef nonnull %1)
  %55 = load i32, ptr %1, align 4, !tbaa !9
  %.not29 = icmp eq i32 %55, 0
  br i1 %.not29, label %56, label %61

56:                                               ; preds = %48
  %57 = load ptr, ptr @glad_glGetProgramInfoLog, align 8, !tbaa !5
  call void %57(i32 noundef %50, i32 noundef 512, ptr noundef null, ptr noundef nonnull %2)
  %58 = 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.7)
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull %2)
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %61

61:                                               ; preds = %56, %48
  %62 = load ptr, ptr @glad_glDeleteShader, align 8, !tbaa !5
  call void %62(i32 noundef %26)
  %63 = load ptr, ptr @glad_glDeleteShader, align 8, !tbaa !5
  call void %63(i32 noundef %38)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %3) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) %3, i8 0, i64 36, i1 false)
  store <2 x float> <float -5.000000e-01, float -5.000000e-01>, ptr %3, align 16
  %64 = getelementptr inbounds i8, ptr %3, i64 12
  store <2 x float> <float 5.000000e-01, float -5.000000e-01>, ptr %64, align 4
  %65 = getelementptr inbounds i8, ptr %3, i64 28
  store float 5.000000e-01, ptr %65, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %66 = load ptr, ptr @glad_glGenVertexArrays, align 8, !tbaa !5
  call void %66(i32 noundef 1, ptr noundef nonnull %5)
  %67 = load ptr, ptr @glad_glGenBuffers, align 8, !tbaa !5
  call void %67(i32 noundef 1, ptr noundef nonnull %4)
  %68 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %69 = load i32, ptr %5, align 4, !tbaa !9
  call void %68(i32 noundef %69)
  %70 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %71 = load i32, ptr %4, align 4, !tbaa !9
  call void %70(i32 noundef 34962, i32 noundef %71)
  %72 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !5
  call void %72(i32 noundef 34962, i64 noundef 36, ptr noundef nonnull %3, i32 noundef 35044)
  %73 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  call void %73(i32 noundef 0, i32 noundef 3, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 12, ptr noundef null)
  %74 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  call void %74(i32 noundef 0)
  %75 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  call void %75(i32 noundef 34962, i32 noundef 0)
  %76 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  call void %76(i32 noundef 0)
  %77 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %13)
  %.not3031 = icmp eq i32 %77, 0
  br i1 %.not3031, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %61, %.lr.ph
  call void @_Z12processInputP10GLFWwindow(ptr noundef nonnull %13)
  %78 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  call void %78(float noundef 0x3FC99999A0000000, float noundef 0x3FD3333340000000, float noundef 0x3FD3333340000000, float noundef 1.000000e+00)
  %79 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %79(i32 noundef 16384)
  %80 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  call void %80(i32 noundef %50)
  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 12, ptr nonnull %9) #9
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef 5.000000e-01, float noundef -5.000000e-01, float noundef 0.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 %8, ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %8, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #9
  %81 = call double @glfwGetTime()
  %82 = fmul double %81, 1.000000e+01
  %83 = call noundef double @_ZN3glm7radiansIdEET_S1_(double noundef %82)
  %84 = fptrunc double %83 to float
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #9
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %11, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %10, ptr noundef nonnull align 4 dereferenceable(64) %6, float noundef %84, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %10, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #9
  %85 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %86 = call i32 %85(i32 noundef %50, ptr noundef nonnull @.str.8)
  %87 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  %88 = call noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3matILi4ELi4ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(64) %6)
  call void %87(i32 noundef %86, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %88)
  %89 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %90 = load i32, ptr %5, align 4, !tbaa !9
  call void %89(i32 noundef %90)
  %91 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %91(i32 noundef 4, i32 noundef 0, i32 noundef 3)
  call void @glfwSwapBuffers(ptr noundef nonnull %13)
  call void @glfwPollEvents()
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #9
  %92 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %13)
  %.not30 = icmp eq i32 %92, 0
  br i1 %.not30, label %.lr.ph, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph, %61
  %93 = load ptr, ptr @glad_glDeleteVertexArrays, align 8, !tbaa !5
  call void %93(i32 noundef 1, ptr noundef nonnull %5)
  %94 = load ptr, ptr @glad_glDeleteBuffers, align 8, !tbaa !5
  call void %94(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 36, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  br label %95

95:                                               ; preds = %._crit_edge, %21, %15
  %.0 = phi i32 [ -1, %15 ], [ 0, %._crit_edge ], [ -1, %21 ]
  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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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 @_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 #6

; 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 #7 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) #8

; 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 #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN3glm7radiansIdEET_S1_(double noundef) local_unnamed_addr #7

declare double @glfwGetTime() local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3matILi4ELi4ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #7

declare void @glfwSwapBuffers(ptr noundef) local_unnamed_addr #2

declare void @glfwPollEvents() local_unnamed_addr #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: write) }
attributes #6 = { 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 #7 = { 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 #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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"}


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