; LLVM IR from Dovyski/opengl-demos :: src/shader-uniform (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 }

@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 [9 x i8], align 1
@glad_glUniform4f = 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 float, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %15 = 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) #7
  %16 = call ptr @glfwCreateWindow(i32 noundef 800, i32 noundef 600, ptr noundef @.str.2, ptr noundef null, ptr noundef null)
  store ptr %16, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %22

19:                                               ; preds = %0
  %20 = 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)
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %20, 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 %144

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

28:                                               ; preds = %22
  %29 = 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)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %144

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

42:                                               ; preds = %31
  %43 = load ptr, ptr @glad_glGetShaderInfoLog, align 8, !tbaa !5
  %44 = load i32, ptr %4, align 4, !tbaa !9
  %45 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  call void %43(i32 noundef %44, i32 noundef 512, ptr noundef null, ptr noundef %45)
  %46 = 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)
  %47 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef %47)
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %50

50:                                               ; preds = %42, %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %51 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !5
  %52 = call i32 %51(i32 noundef 35632)
  store i32 %52, ptr %7, align 4, !tbaa !9
  %53 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  %54 = load i32, ptr %7, align 4, !tbaa !9
  call void %53(i32 noundef %54, i32 noundef 1, ptr noundef @fragmentShaderSource, ptr noundef null)
  %55 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  %56 = load i32, ptr %7, align 4, !tbaa !9
  call void %55(i32 noundef %56)
  %57 = load ptr, ptr @glad_glGetShaderiv, align 8, !tbaa !5
  %58 = load i32, ptr %7, align 4, !tbaa !9
  call void %57(i32 noundef %58, i32 noundef 35713, ptr noundef %5)
  %59 = load i32, ptr %5, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %69, label %61

61:                                               ; preds = %50
  %62 = load ptr, ptr @glad_glGetShaderInfoLog, align 8, !tbaa !5
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  call void %62(i32 noundef %63, i32 noundef 512, ptr noundef null, ptr noundef %64)
  %65 = 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)
  %66 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef %66)
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %69

69:                                               ; preds = %61, %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %70 = load ptr, ptr @glad_glCreateProgram, align 8, !tbaa !5
  %71 = call i32 %70()
  store i32 %71, ptr %8, align 4, !tbaa !9
  %72 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  %73 = load i32, ptr %8, align 4, !tbaa !9
  %74 = load i32, ptr %4, align 4, !tbaa !9
  call void %72(i32 noundef %73, i32 noundef %74)
  %75 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  %76 = load i32, ptr %8, align 4, !tbaa !9
  %77 = load i32, ptr %7, align 4, !tbaa !9
  call void %75(i32 noundef %76, i32 noundef %77)
  %78 = load ptr, ptr @glad_glLinkProgram, align 8, !tbaa !5
  %79 = load i32, ptr %8, align 4, !tbaa !9
  call void %78(i32 noundef %79)
  %80 = load ptr, ptr @glad_glGetProgramiv, align 8, !tbaa !5
  %81 = load i32, ptr %8, align 4, !tbaa !9
  call void %80(i32 noundef %81, i32 noundef 35714, ptr noundef %5)
  %82 = load i32, ptr %5, align 4, !tbaa !9
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %92, label %84

84:                                               ; preds = %69
  %85 = load ptr, ptr @glad_glGetProgramInfoLog, align 8, !tbaa !5
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  call void %85(i32 noundef %86, i32 noundef 512, ptr noundef null, ptr noundef %87)
  %88 = 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)
  %89 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef %89)
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %92

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

114:                                              ; preds = %119, %92
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = call i32 @glfwWindowShouldClose(ptr noundef %115)
  %117 = icmp ne i32 %116, 0
  %118 = xor i1 %117, true
  br i1 %118, label %119, label %141

119:                                              ; preds = %114
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_Z12processInputP10GLFWwindow(ptr noundef %120)
  %121 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  call void %121(float noundef 0x3FC99999A0000000, float noundef 0x3FD3333340000000, float noundef 0x3FD3333340000000, float noundef 1.000000e+00)
  %122 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %122(i32 noundef 16384)
  %123 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %124 = load i32, ptr %8, align 4, !tbaa !9
  call void %123(i32 noundef %124)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %125 = call double @glfwGetTime()
  %126 = fptrunc double %125 to float
  store float %126, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %127 = load float, ptr %12, align 4, !tbaa !11
  %128 = call noundef float @_ZSt3sinf(float noundef %127)
  %129 = fdiv float %128, 2.000000e+00
  %130 = fadd float %129, 5.000000e-01
  store float %130, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %131 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %132 = load i32, ptr %8, align 4, !tbaa !9
  %133 = call i32 %131(i32 noundef %132, ptr noundef @.str.8)
  store i32 %133, ptr %14, align 4, !tbaa !9
  %134 = load ptr, ptr @glad_glUniform4f, align 8, !tbaa !5
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = load float, ptr %13, align 4, !tbaa !11
  call void %134(i32 noundef %135, float noundef 0.000000e+00, float noundef %136, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %137 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %138 = load i32, ptr %11, align 4, !tbaa !9
  call void %137(i32 noundef %138)
  %139 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %139(i32 noundef 4, i32 noundef 0, i32 noundef 3)
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  call void @glfwSwapBuffers(ptr noundef %140)
  call void @glfwPollEvents()
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %114, !llvm.loop !13

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

144:                                              ; preds = %141, %28, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %145 = load i32, ptr %1, align 4
  ret i32 %145
}

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

declare double @glfwGetTime() #2

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

declare void @glfwSwapBuffers(ptr noundef) #2

declare void @glfwPollEvents() #2

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

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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = distinct !{!13, !14}
!14 = !{!"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 }

@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 [9 x i8], align 1
@glad_glUniform4f = 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 = 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)
  %7 = tail call ptr @glfwCreateWindow(i32 noundef 800, i32 noundef 600, ptr noundef nonnull @.str.2, ptr noundef null, ptr noundef null)
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %12

9:                                                ; preds = %0
  %10 = 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)
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @glfwTerminate()
  br label %89

12:                                               ; preds = %0
  tail call void @glfwMakeContextCurrent(ptr noundef nonnull %7)
  %13 = tail call ptr @glfwSetFramebufferSizeCallback(ptr noundef nonnull %7, ptr noundef nonnull @_Z25framebuffer_size_callbackP10GLFWwindowii)
  %14 = tail call i32 @gladLoadGLLoader(ptr noundef nonnull @glfwGetProcAddress)
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %15, label %18

15:                                               ; preds = %12
  %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.4)
  %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_)
  br label %89

18:                                               ; preds = %12
  %19 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !5
  %20 = tail call i32 %19(i32 noundef 35633)
  %21 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  tail call void %21(i32 noundef %20, i32 noundef 1, ptr noundef nonnull @vertexShaderSource, ptr noundef null)
  %22 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  tail call void %22(i32 noundef %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %2) #7
  %23 = load ptr, ptr @glad_glGetShaderiv, align 8, !tbaa !5
  call void %23(i32 noundef %20, i32 noundef 35713, ptr noundef nonnull %1)
  %24 = load i32, ptr %1, align 4, !tbaa !9
  %.not29 = icmp eq i32 %24, 0
  br i1 %.not29, label %25, label %30

25:                                               ; preds = %18
  %26 = load ptr, ptr @glad_glGetShaderInfoLog, align 8, !tbaa !5
  call void %26(i32 noundef %20, i32 noundef 512, ptr noundef null, ptr noundef nonnull %2)
  %27 = 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)
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull %2)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %30

30:                                               ; preds = %25, %18
  %31 = load ptr, ptr @glad_glCreateShader, align 8, !tbaa !5
  %32 = call i32 %31(i32 noundef 35632)
  %33 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  call void %33(i32 noundef %32, i32 noundef 1, ptr noundef nonnull @fragmentShaderSource, ptr noundef null)
  %34 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  call void %34(i32 noundef %32)
  %35 = load ptr, ptr @glad_glGetShaderiv, align 8, !tbaa !5
  call void %35(i32 noundef %32, i32 noundef 35713, ptr noundef nonnull %1)
  %36 = load i32, ptr %1, align 4, !tbaa !9
  %.not30 = icmp eq i32 %36, 0
  br i1 %.not30, label %37, label %42

37:                                               ; preds = %30
  %38 = load ptr, ptr @glad_glGetShaderInfoLog, align 8, !tbaa !5
  call void %38(i32 noundef %32, i32 noundef 512, ptr noundef null, ptr noundef nonnull %2)
  %39 = 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)
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull %2)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %42

42:                                               ; preds = %37, %30
  %43 = load ptr, ptr @glad_glCreateProgram, align 8, !tbaa !5
  %44 = call i32 %43()
  %45 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  call void %45(i32 noundef %44, i32 noundef %20)
  %46 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  call void %46(i32 noundef %44, i32 noundef %32)
  %47 = load ptr, ptr @glad_glLinkProgram, align 8, !tbaa !5
  call void %47(i32 noundef %44)
  %48 = load ptr, ptr @glad_glGetProgramiv, align 8, !tbaa !5
  call void %48(i32 noundef %44, i32 noundef 35714, ptr noundef nonnull %1)
  %49 = load i32, ptr %1, align 4, !tbaa !9
  %.not31 = icmp eq i32 %49, 0
  br i1 %.not31, label %50, label %55

50:                                               ; preds = %42
  %51 = load ptr, ptr @glad_glGetProgramInfoLog, align 8, !tbaa !5
  call void %51(i32 noundef %44, i32 noundef 512, ptr noundef null, ptr noundef nonnull %2)
  %52 = 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)
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull %2)
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %55

55:                                               ; preds = %50, %42
  %56 = load ptr, ptr @glad_glDeleteShader, align 8, !tbaa !5
  call void %56(i32 noundef %20)
  %57 = load ptr, ptr @glad_glDeleteShader, align 8, !tbaa !5
  call void %57(i32 noundef %32)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %3) #7
  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
  %58 = getelementptr inbounds i8, ptr %3, i64 12
  store <2 x float> <float 5.000000e-01, float -5.000000e-01>, ptr %58, align 4
  %59 = getelementptr inbounds i8, ptr %3, i64 28
  store float 5.000000e-01, ptr %59, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %60 = load ptr, ptr @glad_glGenVertexArrays, align 8, !tbaa !5
  call void %60(i32 noundef 1, ptr noundef nonnull %5)
  %61 = load ptr, ptr @glad_glGenBuffers, align 8, !tbaa !5
  call void %61(i32 noundef 1, ptr noundef nonnull %4)
  %62 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %63 = load i32, ptr %5, align 4, !tbaa !9
  call void %62(i32 noundef %63)
  %64 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %65 = load i32, ptr %4, align 4, !tbaa !9
  call void %64(i32 noundef 34962, i32 noundef %65)
  %66 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !5
  call void %66(i32 noundef 34962, i64 noundef 36, ptr noundef nonnull %3, i32 noundef 35044)
  %67 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  call void %67(i32 noundef 0, i32 noundef 3, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 12, ptr noundef null)
  %68 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  call void %68(i32 noundef 0)
  %69 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  call void %69(i32 noundef 34962, i32 noundef 0)
  %70 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  call void %70(i32 noundef 0)
  %71 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %7)
  %.not3233 = icmp eq i32 %71, 0
  br i1 %.not3233, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %55, %.lr.ph
  call void @_Z12processInputP10GLFWwindow(ptr noundef nonnull %7)
  %72 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  call void %72(float noundef 0x3FC99999A0000000, float noundef 0x3FD3333340000000, float noundef 0x3FD3333340000000, float noundef 1.000000e+00)
  %73 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  call void %73(i32 noundef 16384)
  %74 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  call void %74(i32 noundef %44)
  %75 = call double @glfwGetTime()
  %76 = fptrunc double %75 to float
  %77 = call noundef float @_ZSt3sinf(float noundef %76)
  %78 = fmul float %77, 5.000000e-01
  %79 = fadd float %78, 5.000000e-01
  %80 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %81 = call i32 %80(i32 noundef %44, ptr noundef nonnull @.str.8)
  %82 = load ptr, ptr @glad_glUniform4f, align 8, !tbaa !5
  call void %82(i32 noundef %81, float noundef 0.000000e+00, float noundef %79, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %83 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %84 = load i32, ptr %5, align 4, !tbaa !9
  call void %83(i32 noundef %84)
  %85 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %85(i32 noundef 4, i32 noundef 0, i32 noundef 3)
  call void @glfwSwapBuffers(ptr noundef nonnull %7)
  call void @glfwPollEvents()
  %86 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %7)
  %.not32 = icmp eq i32 %86, 0
  br i1 %.not32, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %55
  %87 = load ptr, ptr @glad_glDeleteVertexArrays, align 8, !tbaa !5
  call void %87(i32 noundef 1, ptr noundef nonnull %5)
  %88 = load ptr, ptr @glad_glDeleteBuffers, align 8, !tbaa !5
  call void %88(i32 noundef 1, ptr noundef nonnull %4)
  call void @glfwTerminate()
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  br label %89

89:                                               ; preds = %._crit_edge, %15, %9
  %.0 = phi i32 [ -1, %9 ], [ 0, %._crit_edge ], [ -1, %15 ]
  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

declare double @glfwGetTime() local_unnamed_addr #2

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

declare void @glfwSwapBuffers(ptr noundef) local_unnamed_addr #2

declare void @glfwPollEvents() local_unnamed_addr #2

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

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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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