; LLVM IR from unitreerobotics/kinect_teleoperate :: src/extern/glfw/src/src/vulkan.ll (glfwInitVulkan)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct._GLFWlibrary = type { i32, %struct.GLFWallocator, %struct._GLFWplatform, %struct.anon, ptr, ptr, ptr, ptr, i32, i32, [16 x %struct._GLFWjoystick], ptr, i32, %struct._GLFWtls, %struct._GLFWtls, %struct._GLFWmutex, %struct.anon.8, %struct.anon.9, %struct.anon.10, %struct.anon.11, %struct.anon.12, %struct._GLFWlibraryNull }
%struct.GLFWallocator = type { ptr, ptr, ptr, ptr }
%struct._GLFWplatform = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon = type { %struct._GLFWinitconfig, %struct._GLFWfbconfig, %struct._GLFWwndconfig, %struct._GLFWctxconfig, i32 }
%struct._GLFWinitconfig = type { i32, i32, i32, ptr, %struct.anon.0, %struct.anon.1, %struct.anon.2 }
%struct.anon.0 = type { i32, i32 }
%struct.anon.1 = type { i32 }
%struct.anon.2 = type { i32 }
%struct._GLFWfbconfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 }
%struct._GLFWwndconfig = type { i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.anon.3, %struct.anon.4, %struct.anon.5, %struct.anon.6 }
%struct.anon.3 = type { [256 x i8] }
%struct.anon.4 = type { [256 x i8], [256 x i8] }
%struct.anon.5 = type { i32, i32 }
%struct.anon.6 = type { [256 x i8] }
%struct._GLFWctxconfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, %struct.anon.7 }
%struct.anon.7 = type { i32 }
%struct._GLFWjoystick = type { i32, i32, ptr, i32, ptr, i32, ptr, i32, [128 x i8], ptr, [33 x i8], ptr }
%struct._GLFWtls = type { %struct._GLFWtlsPOSIX }
%struct._GLFWtlsPOSIX = type { i32, i32 }
%struct._GLFWmutex = type { %struct._GLFWmutexPOSIX }
%struct._GLFWmutexPOSIX = type { i32, %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.anon.8 = type { i64, %struct._GLFWtimerPOSIX }
%struct._GLFWtimerPOSIX = type { i32, i64 }
%struct.anon.9 = type { i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon.10 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon.11 = type { i32, ptr, [2 x ptr], ptr, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.anon.12 = type { ptr, ptr }
%struct._GLFWlibraryNull = type { i32, i32, ptr, ptr, [121 x i16], [349 x i8] }
%struct.VkExtensionProperties = type { [256 x i8], i32 }

@_glfw = external global %struct._GLFWlibrary, align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @_glfwInitVulkan(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %10 = load i32, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), align 8, !tbaa !9
  %11 = icmp ne i32 %10, 0
  br i1 %11, label %12, label %13

12:                                               ; preds = %1
  store i32 1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %164

13:                                               ; preds = %1
  %14 = load ptr, ptr getelementptr inbounds (%struct._GLFWinitconfig, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 3), i32 0, i32 3), align 8, !tbaa !35
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %18

16:                                               ; preds = %13
  %17 = load ptr, ptr getelementptr inbounds (%struct._GLFWinitconfig, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 3), i32 0, i32 3), align 8, !tbaa !35
  store ptr %17, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 3), align 8, !tbaa !36
  br label %34

18:                                               ; preds = %13
  %19 = call ptr @_glfwPlatformLoadModule(ptr noundef @.str)
  store ptr %19, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 1), align 8, !tbaa !37
  %20 = load ptr, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 1), align 8, !tbaa !37
  %21 = icmp ne ptr %20, null
  br i1 %21, label %27, label %22

22:                                               ; preds = %18
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = icmp eq i32 %23, 2
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef @.str.1)
  br label %26

26:                                               ; preds = %25, %22
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %164

27:                                               ; preds = %18
  %28 = load ptr, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 1), align 8, !tbaa !37
  %29 = call ptr @_glfwPlatformGetModuleSymbol(ptr noundef %28, ptr noundef @.str.2)
  store ptr %29, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 3), align 8, !tbaa !36
  %30 = load ptr, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 3), align 8, !tbaa !36
  %31 = icmp ne ptr %30, null
  br i1 %31, label %33, label %32

32:                                               ; preds = %27
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef @.str.3)
  call void @_glfwTerminateVulkan()
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %164

33:                                               ; preds = %27
  br label %34

34:                                               ; preds = %33, %16
  %35 = load ptr, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 3), align 8, !tbaa !36
  %36 = call ptr %35(ptr noundef null, ptr noundef @.str.4)
  store ptr %36, ptr %6, align 8, !tbaa !38
  %37 = load ptr, ptr %6, align 8, !tbaa !38
  %38 = icmp ne ptr %37, null
  br i1 %38, label %40, label %39

39:                                               ; preds = %34
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef @.str.5)
  call void @_glfwTerminateVulkan()
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %164

40:                                               ; preds = %34
  %41 = load ptr, ptr %6, align 8, !tbaa !38
  %42 = call i32 %41(ptr noundef null, ptr noundef %8, ptr noundef null)
  store i32 %42, ptr %4, align 4, !tbaa !5
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %52

45:                                               ; preds = %40
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = icmp eq i32 %46, 2
  br i1 %47, label %48, label %51

48:                                               ; preds = %45
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = call ptr @_glfwGetVulkanResultString(i32 noundef %49)
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef @.str.6, ptr noundef %50)
  br label %51

51:                                               ; preds = %48, %45
  call void @_glfwTerminateVulkan()
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %164

52:                                               ; preds = %40
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = zext i32 %53 to i64
  %55 = call ptr @_glfw_calloc(i64 noundef %54, i64 noundef 260)
  store ptr %55, ptr %5, align 8, !tbaa !38
  %56 = load ptr, ptr %6, align 8, !tbaa !38
  %57 = load ptr, ptr %5, align 8, !tbaa !38
  %58 = call i32 %56(ptr noundef null, ptr noundef %8, ptr noundef %57)
  store i32 %58, ptr %4, align 4, !tbaa !5
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %65

61:                                               ; preds = %52
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = call ptr @_glfwGetVulkanResultString(i32 noundef %62)
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef @.str.7, ptr noundef %63)
  %64 = load ptr, ptr %5, align 8, !tbaa !38
  call void @_glfw_free(ptr noundef %64)
  call void @_glfwTerminateVulkan()
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %164

65:                                               ; preds = %52
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %158, %65
  %67 = load i32, ptr %7, align 4, !tbaa !5
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = icmp ult i32 %67, %68
  br i1 %69, label %70, label %161

70:                                               ; preds = %66
  %71 = load ptr, ptr %5, align 8, !tbaa !38
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds %struct.VkExtensionProperties, ptr %71, i64 %73
  %75 = getelementptr inbounds %struct.VkExtensionProperties, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds [256 x i8], ptr %75, i64 0, i64 0
  %77 = call i32 @strcmp(ptr noundef %76, ptr noundef @.str.8) #5
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %70
  store i32 1, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 4), align 8, !tbaa !39
  br label %157

80:                                               ; preds = %70
  %81 = load ptr, ptr %5, align 8, !tbaa !38
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds %struct.VkExtensionProperties, ptr %81, i64 %83
  %85 = getelementptr inbounds %struct.VkExtensionProperties, ptr %84, i32 0, i32 0
  %86 = getelementptr inbounds [256 x i8], ptr %85, i64 0, i64 0
  %87 = call i32 @strcmp(ptr noundef %86, ptr noundef @.str.9) #5
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %80
  store i32 1, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 5), align 4, !tbaa !40
  br label %156

90:                                               ; preds = %80
  %91 = load ptr, ptr %5, align 8, !tbaa !38
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds %struct.VkExtensionProperties, ptr %91, i64 %93
  %95 = getelementptr inbounds %struct.VkExtensionProperties, ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds [256 x i8], ptr %95, i64 0, i64 0
  %97 = call i32 @strcmp(ptr noundef %96, ptr noundef @.str.10) #5
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %100

99:                                               ; preds = %90
  store i32 1, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 6), align 8, !tbaa !41
  br label %155

100:                                              ; preds = %90
  %101 = load ptr, ptr %5, align 8, !tbaa !38
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds %struct.VkExtensionProperties, ptr %101, i64 %103
  %105 = getelementptr inbounds %struct.VkExtensionProperties, ptr %104, i32 0, i32 0
  %106 = getelementptr inbounds [256 x i8], ptr %105, i64 0, i64 0
  %107 = call i32 @strcmp(ptr noundef %106, ptr noundef @.str.11) #5
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %100
  store i32 1, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 7), align 4, !tbaa !42
  br label %154

110:                                              ; preds = %100
  %111 = load ptr, ptr %5, align 8, !tbaa !38
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds %struct.VkExtensionProperties, ptr %111, i64 %113
  %115 = getelementptr inbounds %struct.VkExtensionProperties, ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds [256 x i8], ptr %115, i64 0, i64 0
  %117 = call i32 @strcmp(ptr noundef %116, ptr noundef @.str.12) #5
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %110
  store i32 1, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 8), align 8, !tbaa !43
  br label %153

120:                                              ; preds = %110
  %121 = load ptr, ptr %5, align 8, !tbaa !38
  %122 = load i32, ptr %7, align 4, !tbaa !5
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds %struct.VkExtensionProperties, ptr %121, i64 %123
  %125 = getelementptr inbounds %struct.VkExtensionProperties, ptr %124, i32 0, i32 0
  %126 = getelementptr inbounds [256 x i8], ptr %125, i64 0, i64 0
  %127 = call i32 @strcmp(ptr noundef %126, ptr noundef @.str.13) #5
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %120
  store i32 1, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 9), align 4, !tbaa !44
  br label %152

130:                                              ; preds = %120
  %131 = load ptr, ptr %5, align 8, !tbaa !38
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds %struct.VkExtensionProperties, ptr %131, i64 %133
  %135 = getelementptr inbounds %struct.VkExtensionProperties, ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds [256 x i8], ptr %135, i64 0, i64 0
  %137 = call i32 @strcmp(ptr noundef %136, ptr noundef @.str.14) #5
  %138 = icmp eq i32 %137, 0
  br i1 %138, label %139, label %140

139:                                              ; preds = %130
  store i32 1, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 10), align 8, !tbaa !45
  br label %151

140:                                              ; preds = %130
  %141 = load ptr, ptr %5, align 8, !tbaa !38
  %142 = load i32, ptr %7, align 4, !tbaa !5
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds %struct.VkExtensionProperties, ptr %141, i64 %143
  %145 = getelementptr inbounds %struct.VkExtensionProperties, ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds [256 x i8], ptr %145, i64 0, i64 0
  %147 = call i32 @strcmp(ptr noundef %146, ptr noundef @.str.15) #5
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %150

149:                                              ; preds = %140
  store i32 1, ptr getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 11), align 4, !tbaa !46
  br label %150

150:                                              ; preds = %149, %140
  br label %151

151:                                              ; preds = %150, %139
  br label %152

152:                                              ; preds = %151, %129
  br label %153

153:                                              ; preds = %152, %119
  br label %154

154:                                              ; preds = %153, %109
  br label %155

155:                                              ; preds = %154, %99
  br label %156

156:                                              ; preds = %155, %89
  br label %157

157:                                              ; preds = %156, %79
  br label %158

158:                                              ; preds = %157
  %159 = load i32, ptr %7, align 4, !tbaa !5
  %160 = add i32 %159, 1
  store i32 %160, ptr %7, align 4, !tbaa !5
  br label %66, !llvm.loop !47

161:                                              ; preds = %66
  %162 = load ptr, ptr %5, align 8, !tbaa !38
  call void @_glfw_free(ptr noundef %162)
  store i32 1, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), align 8, !tbaa !9
  %163 = load ptr, ptr getelementptr inbounds (%struct._GLFWplatform, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 2), i32 0, i32 69), align 8, !tbaa !49
  call void %163(ptr noundef getelementptr inbounds (%struct.anon.11, ptr getelementptr inbounds (%struct._GLFWlibrary, ptr @_glfw, i32 0, i32 19), i32 0, i32 2))
  store i32 1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %164

164:                                              ; preds = %161, %61, %51, %39, %32, %26, %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  %165 = load i32, ptr %2, align 4
  ret i32 %165
}

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

declare ptr @_glfwPlatformLoadModule(ptr noundef) #2

declare void @_glfwInputError(i32 noundef, ptr noundef, ...) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @_glfwTerminateVulkan() #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @_glfwGetVulkanResultString(i32 noundef) #0

declare ptr @_glfw_calloc(i64 noundef, i64 noundef) #2

declare void @_glfw_free(ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

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

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 6200}
!10 = !{!"_GLFWlibrary", !6, i64 0, !11, i64 8, !13, i64 40, !14, i64 616, !12, i64 1896, !12, i64 1904, !12, i64 1912, !12, i64 1920, !6, i64 1928, !6, i64 1932, !7, i64 1936, !12, i64 5776, !6, i64 5784, !24, i64 5788, !24, i64 5796, !26, i64 5808, !28, i64 5856, !30, i64 5880, !31, i64 6136, !32, i64 6200, !33, i64 6272, !34, i64 6288}
!11 = !{!"GLFWallocator", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"_GLFWplatform", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !12, i64 328, !12, i64 336, !12, i64 344, !12, i64 352, !12, i64 360, !12, i64 368, !12, i64 376, !12, i64 384, !12, i64 392, !12, i64 400, !12, i64 408, !12, i64 416, !12, i64 424, !12, i64 432, !12, i64 440, !12, i64 448, !12, i64 456, !12, i64 464, !12, i64 472, !12, i64 480, !12, i64 488, !12, i64 496, !12, i64 504, !12, i64 512, !12, i64 520, !12, i64 528, !12, i64 536, !12, i64 544, !12, i64 552, !12, i64 560, !12, i64 568}
!14 = !{!"", !15, i64 0, !18, i64 40, !20, i64 112, !23, i64 1216, !6, i64 1272}
!15 = !{!"_GLFWinitconfig", !6, i64 0, !6, i64 4, !6, i64 8, !12, i64 16, !16, i64 24, !17, i64 32, !17, i64 36}
!16 = !{!"", !6, i64 0, !6, i64 4}
!17 = !{!"", !6, i64 0}
!18 = !{!"_GLFWfbconfig", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !19, i64 64}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_GLFWwndconfig", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !12, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68, !21, i64 72, !22, i64 328, !16, i64 840, !21, i64 848}
!21 = !{!"", !7, i64 0}
!22 = !{!"", !7, i64 0, !7, i64 256}
!23 = !{!"_GLFWctxconfig", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !12, i64 40, !17, i64 48}
!24 = !{!"_GLFWtls", !25, i64 0}
!25 = !{!"_GLFWtlsPOSIX", !6, i64 0, !6, i64 4}
!26 = !{!"_GLFWmutex", !27, i64 0}
!27 = !{!"_GLFWmutexPOSIX", !6, i64 0, !7, i64 8}
!28 = !{!"", !19, i64 0, !29, i64 8}
!29 = !{!"_GLFWtimerPOSIX", !6, i64 0, !19, i64 8}
!30 = !{!"", !6, i64 0, !12, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248}
!31 = !{!"", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56}
!32 = !{!"", !6, i64 0, !12, i64 8, !7, i64 16, !12, i64 32, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68}
!33 = !{!"", !12, i64 0, !12, i64 8}
!34 = !{!"_GLFWlibraryNull", !6, i64 0, !6, i64 4, !12, i64 8, !12, i64 16, !7, i64 24, !7, i64 266}
!35 = !{!10, !12, i64 632}
!36 = !{!10, !12, i64 6232}
!37 = !{!10, !12, i64 6208}
!38 = !{!12, !12, i64 0}
!39 = !{!10, !6, i64 6240}
!40 = !{!10, !6, i64 6244}
!41 = !{!10, !6, i64 6248}
!42 = !{!10, !6, i64 6252}
!43 = !{!10, !6, i64 6256}
!44 = !{!10, !6, i64 6260}
!45 = !{!10, !6, i64 6264}
!46 = !{!10, !6, i64 6268}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}
!49 = !{!10, !12, i64 592}


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

%struct._GLFWlibrary = type { i32, %struct.GLFWallocator, %struct._GLFWplatform, %struct.anon, ptr, ptr, ptr, ptr, i32, i32, [16 x %struct._GLFWjoystick], ptr, i32, %struct._GLFWtls, %struct._GLFWtls, %struct._GLFWmutex, %struct.anon.8, %struct.anon.9, %struct.anon.10, %struct.anon.11, %struct.anon.12, %struct._GLFWlibraryNull }
%struct.GLFWallocator = type { ptr, ptr, ptr, ptr }
%struct._GLFWplatform = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon = type { %struct._GLFWinitconfig, %struct._GLFWfbconfig, %struct._GLFWwndconfig, %struct._GLFWctxconfig, i32 }
%struct._GLFWinitconfig = type { i32, i32, i32, ptr, %struct.anon.0, %struct.anon.1, %struct.anon.2 }
%struct.anon.0 = type { i32, i32 }
%struct.anon.1 = type { i32 }
%struct.anon.2 = type { i32 }
%struct._GLFWfbconfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 }
%struct._GLFWwndconfig = type { i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.anon.3, %struct.anon.4, %struct.anon.5, %struct.anon.6 }
%struct.anon.3 = type { [256 x i8] }
%struct.anon.4 = type { [256 x i8], [256 x i8] }
%struct.anon.5 = type { i32, i32 }
%struct.anon.6 = type { [256 x i8] }
%struct._GLFWctxconfig = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, %struct.anon.7 }
%struct.anon.7 = type { i32 }
%struct._GLFWjoystick = type { i32, i32, ptr, i32, ptr, i32, ptr, i32, [128 x i8], ptr, [33 x i8], ptr }
%struct._GLFWtls = type { %struct._GLFWtlsPOSIX }
%struct._GLFWtlsPOSIX = type { i32, i32 }
%struct._GLFWmutex = type { %struct._GLFWmutexPOSIX }
%struct._GLFWmutexPOSIX = type { i32, %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.anon.8 = type { i64, %struct._GLFWtimerPOSIX }
%struct._GLFWtimerPOSIX = type { i32, i64 }
%struct.anon.9 = type { i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon.10 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon.11 = type { i32, ptr, [2 x ptr], ptr, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.anon.12 = type { ptr, ptr }
%struct._GLFWlibraryNull = type { i32, i32, ptr, ptr, [121 x i16], [349 x i8] }
%struct.VkExtensionProperties = type { [256 x i8], i32 }

@_glfw = external global %struct._GLFWlibrary, align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @_glfwInitVulkan(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %3 = load i32, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6200), align 8, !tbaa !5
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %4, label %68

4:                                                ; preds = %1
  %5 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 632), align 8, !tbaa !34
  %.not36 = icmp eq ptr %5, null
  br i1 %.not36, label %7, label %6

6:                                                ; preds = %4
  store ptr %5, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6232), align 8, !tbaa !35
  br label %15

7:                                                ; preds = %4
  %8 = tail call ptr @_glfwPlatformLoadModule(ptr noundef nonnull @.str) #4
  store ptr %8, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6208), align 8, !tbaa !36
  %.not37 = icmp eq ptr %8, null
  br i1 %.not37, label %9, label %12

9:                                                ; preds = %7
  %10 = icmp eq i32 %0, 2
  br i1 %10, label %11, label %68

11:                                               ; preds = %9
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef nonnull @.str.1) #4
  br label %68

12:                                               ; preds = %7
  %13 = tail call ptr @_glfwPlatformGetModuleSymbol(ptr noundef nonnull %8, ptr noundef nonnull @.str.2) #4
  store ptr %13, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6232), align 8, !tbaa !35
  %.not38 = icmp eq ptr %13, null
  br i1 %.not38, label %14, label %15

14:                                               ; preds = %12
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef nonnull @.str.3) #4
  tail call void @_glfwTerminateVulkan()
  br label %68

15:                                               ; preds = %12, %6
  %16 = phi ptr [ %13, %12 ], [ %5, %6 ]
  %17 = tail call ptr %16(ptr noundef null, ptr noundef nonnull @.str.4) #4
  %.not39 = icmp eq ptr %17, null
  br i1 %.not39, label %18, label %19

18:                                               ; preds = %15
  tail call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef nonnull @.str.5) #4
  tail call void @_glfwTerminateVulkan()
  br label %68

19:                                               ; preds = %15
  %20 = call i32 %17(ptr noundef null, ptr noundef nonnull %2, ptr noundef null) #4
  %.not40 = icmp eq i32 %20, 0
  br i1 %.not40, label %26, label %21

21:                                               ; preds = %19
  %22 = icmp eq i32 %0, 2
  br i1 %22, label %23, label %25

23:                                               ; preds = %21
  %24 = call ptr @_glfwGetVulkanResultString(i32 noundef %20)
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef nonnull @.str.6, ptr noundef %24) #4
  br label %25

25:                                               ; preds = %23, %21
  call void @_glfwTerminateVulkan()
  br label %68

26:                                               ; preds = %19
  %27 = load i32, ptr %2, align 4, !tbaa !37
  %28 = zext i32 %27 to i64
  %29 = call ptr @_glfw_calloc(i64 noundef %28, i64 noundef 260) #4
  %30 = call i32 %17(ptr noundef null, ptr noundef nonnull %2, ptr noundef %29) #4
  %.not41 = icmp eq i32 %30, 0
  br i1 %.not41, label %.preheader, label %32

.preheader:                                       ; preds = %26
  %31 = load i32, ptr %2, align 4, !tbaa !37
  %.not43 = icmp eq i32 %31, 0
  br i1 %.not43, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = zext i32 %31 to i64
  br label %.lr.ph

32:                                               ; preds = %26
  %33 = call ptr @_glfwGetVulkanResultString(i32 noundef %30)
  call void (i32, ptr, ...) @_glfwInputError(i32 noundef 65542, ptr noundef nonnull @.str.7, ptr noundef %33) #4
  call void @_glfw_free(ptr noundef %29) #4
  call void @_glfwTerminateVulkan()
  br label %68

.lr.ph:                                           ; preds = %.lr.ph.preheader, %66
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %66 ]
  %34 = getelementptr inbounds %struct.VkExtensionProperties, ptr %29, i64 %indvars.iv
  %35 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %34, ptr noundef nonnull dereferenceable(1) @.str.8) #5
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %.lr.ph
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6240), align 8, !tbaa !38
  br label %66

38:                                               ; preds = %.lr.ph
  %39 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %34, ptr noundef nonnull dereferenceable(1) @.str.9) #5
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6244), align 4, !tbaa !39
  br label %66

42:                                               ; preds = %38
  %43 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %34, ptr noundef nonnull dereferenceable(1) @.str.10) #5
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6248), align 8, !tbaa !40
  br label %66

46:                                               ; preds = %42
  %47 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %34, ptr noundef nonnull dereferenceable(1) @.str.11) #5
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %46
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6252), align 4, !tbaa !41
  br label %66

50:                                               ; preds = %46
  %51 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %34, ptr noundef nonnull dereferenceable(1) @.str.12) #5
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %50
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6256), align 8, !tbaa !42
  br label %66

54:                                               ; preds = %50
  %55 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %34, ptr noundef nonnull dereferenceable(1) @.str.13) #5
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %54
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6260), align 4, !tbaa !43
  br label %66

58:                                               ; preds = %54
  %59 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %34, ptr noundef nonnull dereferenceable(1) @.str.14) #5
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %58
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6264), align 8, !tbaa !44
  br label %66

62:                                               ; preds = %58
  %63 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %34, ptr noundef nonnull dereferenceable(1) @.str.15) #5
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %62
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6268), align 4, !tbaa !45
  br label %66

66:                                               ; preds = %37, %45, %53, %61, %65, %62, %57, %49, %41
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !46

._crit_edge:                                      ; preds = %66, %.preheader
  call void @_glfw_free(ptr noundef %29) #4
  store i32 1, ptr getelementptr inbounds (i8, ptr @_glfw, i64 6200), align 8, !tbaa !5
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @_glfw, i64 592), align 8, !tbaa !48
  call void %67(ptr noundef nonnull getelementptr inbounds (i8, ptr @_glfw, i64 6216)) #4
  br label %68

68:                                               ; preds = %9, %11, %1, %._crit_edge, %32, %25, %18, %14
  %.030 = phi i32 [ 0, %25 ], [ 0, %32 ], [ 1, %._crit_edge ], [ 0, %18 ], [ 0, %14 ], [ 1, %1 ], [ 0, %11 ], [ 0, %9 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  ret i32 %.030
}

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

declare ptr @_glfwPlatformLoadModule(ptr noundef) local_unnamed_addr #2

declare void @_glfwInputError(i32 noundef, ptr noundef, ...) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @_glfwTerminateVulkan() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @_glfwGetVulkanResultString(i32 noundef) local_unnamed_addr #0

declare ptr @_glfw_calloc(i64 noundef, i64 noundef) local_unnamed_addr #2

declare void @_glfw_free(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

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

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

!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, !7, i64 6200}
!6 = !{!"_GLFWlibrary", !7, i64 0, !10, i64 8, !12, i64 40, !13, i64 616, !11, i64 1896, !11, i64 1904, !11, i64 1912, !11, i64 1920, !7, i64 1928, !7, i64 1932, !8, i64 1936, !11, i64 5776, !7, i64 5784, !23, i64 5788, !23, i64 5796, !25, i64 5808, !27, i64 5856, !29, i64 5880, !30, i64 6136, !31, i64 6200, !32, i64 6272, !33, i64 6288}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"GLFWallocator", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_GLFWplatform", !7, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360, !11, i64 368, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400, !11, i64 408, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568}
!13 = !{!"", !14, i64 0, !17, i64 40, !19, i64 112, !22, i64 1216, !7, i64 1272}
!14 = !{!"_GLFWinitconfig", !7, i64 0, !7, i64 4, !7, i64 8, !11, i64 16, !15, i64 24, !16, i64 32, !16, i64 36}
!15 = !{!"", !7, i64 0, !7, i64 4}
!16 = !{!"", !7, i64 0}
!17 = !{!"_GLFWfbconfig", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !18, i64 64}
!18 = !{!"long", !8, i64 0}
!19 = !{!"_GLFWwndconfig", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !11, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !20, i64 72, !21, i64 328, !15, i64 840, !20, i64 848}
!20 = !{!"", !8, i64 0}
!21 = !{!"", !8, i64 0, !8, i64 256}
!22 = !{!"_GLFWctxconfig", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !11, i64 40, !16, i64 48}
!23 = !{!"_GLFWtls", !24, i64 0}
!24 = !{!"_GLFWtlsPOSIX", !7, i64 0, !7, i64 4}
!25 = !{!"_GLFWmutex", !26, i64 0}
!26 = !{!"_GLFWmutexPOSIX", !7, i64 0, !8, i64 8}
!27 = !{!"", !18, i64 0, !28, i64 8}
!28 = !{!"_GLFWtimerPOSIX", !7, i64 0, !18, i64 8}
!29 = !{!"", !7, i64 0, !11, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248}
!30 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56}
!31 = !{!"", !7, i64 0, !11, i64 8, !8, i64 16, !11, i64 32, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68}
!32 = !{!"", !11, i64 0, !11, i64 8}
!33 = !{!"_GLFWlibraryNull", !7, i64 0, !7, i64 4, !11, i64 8, !11, i64 16, !8, i64 24, !8, i64 266}
!34 = !{!6, !11, i64 632}
!35 = !{!6, !11, i64 6232}
!36 = !{!6, !11, i64 6208}
!37 = !{!7, !7, i64 0}
!38 = !{!6, !7, i64 6240}
!39 = !{!6, !7, i64 6244}
!40 = !{!6, !7, i64 6248}
!41 = !{!6, !7, i64 6252}
!42 = !{!6, !7, i64 6256}
!43 = !{!6, !7, i64 6260}
!44 = !{!6, !7, i64 6264}
!45 = !{!6, !7, i64 6268}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = !{!6, !11, i64 592}


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