; LLVM IR from paroj/gltut :: framework/Scene.ll (ZN9Framework18MakeSamplerObjectsERSt6vectorIjSaIjEE)

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

@_funcptr_glGenSamplers = external global ptr, align 8
@_funcptr_glSamplerParameteri = external global ptr, align 8
@_funcptr_glGetFloatv = external global ptr, align 8
@_funcptr_glSamplerParameterf = external global ptr, align 8

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Framework18MakeSamplerObjectsERSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(24) %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 6)
  %6 = load ptr, ptr @_funcptr_glGenSamplers, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0) #3
  call void %6(i32 noundef 6, ptr noundef %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %9

9:                                                ; preds = %32, %1
  %10 = load i32, ptr %3, align 4, !tbaa !9
  %11 = icmp slt i32 %10, 6
  br i1 %11, label %13, label %12

12:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %35

13:                                               ; preds = %9
  %14 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = load i32, ptr %3, align 4, !tbaa !9
  %17 = sext i32 %16 to i64
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %17) #3
  %19 = load i32, ptr %18, align 4, !tbaa !9
  call void %14(i32 noundef %19, i32 noundef 10242, i32 noundef 10497)
  %20 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = load i32, ptr %3, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %23) #3
  %25 = load i32, ptr %24, align 4, !tbaa !9
  call void %20(i32 noundef %25, i32 noundef 10243, i32 noundef 10497)
  %26 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = load i32, ptr %3, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #3
  %31 = load i32, ptr %30, align 4, !tbaa !9
  call void %26(i32 noundef %31, i32 noundef 32882, i32 noundef 10497)
  br label %32

32:                                               ; preds = %13
  %33 = load i32, ptr %3, align 4, !tbaa !9
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %3, align 4, !tbaa !9
  br label %9, !llvm.loop !11

35:                                               ; preds = %12
  %36 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef 0) #3
  %39 = load i32, ptr %38, align 4, !tbaa !9
  call void %36(i32 noundef %39, i32 noundef 10240, i32 noundef 9728)
  %40 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef 0) #3
  %43 = load i32, ptr %42, align 4, !tbaa !9
  call void %40(i32 noundef %43, i32 noundef 10241, i32 noundef 9728)
  %44 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef 1) #3
  %47 = load i32, ptr %46, align 4, !tbaa !9
  call void %44(i32 noundef %47, i32 noundef 10240, i32 noundef 9729)
  %48 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef 1) #3
  %51 = load i32, ptr %50, align 4, !tbaa !9
  call void %48(i32 noundef %51, i32 noundef 10241, i32 noundef 9729)
  %52 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef 2) #3
  %55 = load i32, ptr %54, align 4, !tbaa !9
  call void %52(i32 noundef %55, i32 noundef 10240, i32 noundef 9728)
  %56 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef 2) #3
  %59 = load i32, ptr %58, align 4, !tbaa !9
  call void %56(i32 noundef %59, i32 noundef 10241, i32 noundef 9984)
  %60 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef 3) #3
  %63 = load i32, ptr %62, align 4, !tbaa !9
  call void %60(i32 noundef %63, i32 noundef 10240, i32 noundef 9729)
  %64 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef 3) #3
  %67 = load i32, ptr %66, align 4, !tbaa !9
  call void %64(i32 noundef %67, i32 noundef 10241, i32 noundef 9987)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store float 0.000000e+00, ptr %4, align 4, !tbaa !13
  %68 = load ptr, ptr @_funcptr_glGetFloatv, align 8, !tbaa !5
  call void %68(i32 noundef 34047, ptr noundef %4)
  %69 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef 4) #3
  %72 = load i32, ptr %71, align 4, !tbaa !9
  call void %69(i32 noundef %72, i32 noundef 10240, i32 noundef 9729)
  %73 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef 4) #3
  %76 = load i32, ptr %75, align 4, !tbaa !9
  call void %73(i32 noundef %76, i32 noundef 10241, i32 noundef 9987)
  %77 = load ptr, ptr @_funcptr_glSamplerParameterf, align 8, !tbaa !5
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef 4) #3
  %80 = load i32, ptr %79, align 4, !tbaa !9
  %81 = load float, ptr %4, align 4, !tbaa !13
  %82 = fdiv float %81, 2.000000e+00
  call void %77(i32 noundef %80, i32 noundef 34046, float noundef %82)
  %83 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef 5) #3
  %86 = load i32, ptr %85, align 4, !tbaa !9
  call void %83(i32 noundef %86, i32 noundef 10240, i32 noundef 9729)
  %87 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %88 = load ptr, ptr %2, align 8, !tbaa !5
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef 5) #3
  %90 = load i32, ptr %89, align 4, !tbaa !9
  call void %87(i32 noundef %90, i32 noundef 10241, i32 noundef 9987)
  %91 = load ptr, ptr @_funcptr_glSamplerParameterf, align 8, !tbaa !5
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef 5) #3
  %94 = load i32, ptr %93, align 4, !tbaa !9
  %95 = load float, ptr %4, align 4, !tbaa !13
  call void %91(i32 noundef %94, i32 noundef 34046, float noundef %95)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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"}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}


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

@_funcptr_glGenSamplers = external local_unnamed_addr global ptr, align 8
@_funcptr_glSamplerParameteri = external local_unnamed_addr global ptr, align 8
@_funcptr_glGetFloatv = external local_unnamed_addr global ptr, align 8
@_funcptr_glSamplerParameterf = external local_unnamed_addr global ptr, align 8

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Framework18MakeSamplerObjectsERSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(24) %0) local_unnamed_addr #1 {
  %2 = alloca float, align 4
  tail call void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 6)
  %3 = load ptr, ptr @_funcptr_glGenSamplers, align 8, !tbaa !5
  %4 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #3
  tail call void %3(i32 noundef 6, ptr noundef nonnull %4)
  %5 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %6 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #3
  %7 = load i32, ptr %6, align 4, !tbaa !9
  tail call void %5(i32 noundef %7, i32 noundef 10242, i32 noundef 10497)
  %8 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %9 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #3
  %10 = load i32, ptr %9, align 4, !tbaa !9
  tail call void %8(i32 noundef %10, i32 noundef 10243, i32 noundef 10497)
  %11 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %12 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #3
  %13 = load i32, ptr %12, align 4, !tbaa !9
  tail call void %11(i32 noundef %13, i32 noundef 32882, i32 noundef 10497)
  %14 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %15 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #3
  %16 = load i32, ptr %15, align 4, !tbaa !9
  tail call void %14(i32 noundef %16, i32 noundef 10242, i32 noundef 10497)
  %17 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #3
  %19 = load i32, ptr %18, align 4, !tbaa !9
  tail call void %17(i32 noundef %19, i32 noundef 10243, i32 noundef 10497)
  %20 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %21 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #3
  %22 = load i32, ptr %21, align 4, !tbaa !9
  tail call void %20(i32 noundef %22, i32 noundef 32882, i32 noundef 10497)
  %23 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %24 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 2) #3
  %25 = load i32, ptr %24, align 4, !tbaa !9
  tail call void %23(i32 noundef %25, i32 noundef 10242, i32 noundef 10497)
  %26 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %27 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 2) #3
  %28 = load i32, ptr %27, align 4, !tbaa !9
  tail call void %26(i32 noundef %28, i32 noundef 10243, i32 noundef 10497)
  %29 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %30 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 2) #3
  %31 = load i32, ptr %30, align 4, !tbaa !9
  tail call void %29(i32 noundef %31, i32 noundef 32882, i32 noundef 10497)
  %32 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %33 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 3) #3
  %34 = load i32, ptr %33, align 4, !tbaa !9
  tail call void %32(i32 noundef %34, i32 noundef 10242, i32 noundef 10497)
  %35 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %36 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 3) #3
  %37 = load i32, ptr %36, align 4, !tbaa !9
  tail call void %35(i32 noundef %37, i32 noundef 10243, i32 noundef 10497)
  %38 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %39 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 3) #3
  %40 = load i32, ptr %39, align 4, !tbaa !9
  tail call void %38(i32 noundef %40, i32 noundef 32882, i32 noundef 10497)
  %41 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %42 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 4) #3
  %43 = load i32, ptr %42, align 4, !tbaa !9
  tail call void %41(i32 noundef %43, i32 noundef 10242, i32 noundef 10497)
  %44 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %45 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 4) #3
  %46 = load i32, ptr %45, align 4, !tbaa !9
  tail call void %44(i32 noundef %46, i32 noundef 10243, i32 noundef 10497)
  %47 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %48 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 4) #3
  %49 = load i32, ptr %48, align 4, !tbaa !9
  tail call void %47(i32 noundef %49, i32 noundef 32882, i32 noundef 10497)
  %50 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 5) #3
  %52 = load i32, ptr %51, align 4, !tbaa !9
  tail call void %50(i32 noundef %52, i32 noundef 10242, i32 noundef 10497)
  %53 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %54 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 5) #3
  %55 = load i32, ptr %54, align 4, !tbaa !9
  tail call void %53(i32 noundef %55, i32 noundef 10243, i32 noundef 10497)
  %56 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %57 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 5) #3
  %58 = load i32, ptr %57, align 4, !tbaa !9
  tail call void %56(i32 noundef %58, i32 noundef 32882, i32 noundef 10497)
  %59 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %60 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #3
  %61 = load i32, ptr %60, align 4, !tbaa !9
  tail call void %59(i32 noundef %61, i32 noundef 10240, i32 noundef 9728)
  %62 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %63 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #3
  %64 = load i32, ptr %63, align 4, !tbaa !9
  tail call void %62(i32 noundef %64, i32 noundef 10241, i32 noundef 9728)
  %65 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %66 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #3
  %67 = load i32, ptr %66, align 4, !tbaa !9
  tail call void %65(i32 noundef %67, i32 noundef 10240, i32 noundef 9729)
  %68 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %69 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #3
  %70 = load i32, ptr %69, align 4, !tbaa !9
  tail call void %68(i32 noundef %70, i32 noundef 10241, i32 noundef 9729)
  %71 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %72 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 2) #3
  %73 = load i32, ptr %72, align 4, !tbaa !9
  tail call void %71(i32 noundef %73, i32 noundef 10240, i32 noundef 9728)
  %74 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %75 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 2) #3
  %76 = load i32, ptr %75, align 4, !tbaa !9
  tail call void %74(i32 noundef %76, i32 noundef 10241, i32 noundef 9984)
  %77 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %78 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 3) #3
  %79 = load i32, ptr %78, align 4, !tbaa !9
  tail call void %77(i32 noundef %79, i32 noundef 10240, i32 noundef 9729)
  %80 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %81 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 3) #3
  %82 = load i32, ptr %81, align 4, !tbaa !9
  tail call void %80(i32 noundef %82, i32 noundef 10241, i32 noundef 9987)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  store float 0.000000e+00, ptr %2, align 4, !tbaa !11
  %83 = load ptr, ptr @_funcptr_glGetFloatv, align 8, !tbaa !5
  call void %83(i32 noundef 34047, ptr noundef nonnull %2)
  %84 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 4) #3
  %86 = load i32, ptr %85, align 4, !tbaa !9
  call void %84(i32 noundef %86, i32 noundef 10240, i32 noundef 9729)
  %87 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 4) #3
  %89 = load i32, ptr %88, align 4, !tbaa !9
  call void %87(i32 noundef %89, i32 noundef 10241, i32 noundef 9987)
  %90 = load ptr, ptr @_funcptr_glSamplerParameterf, align 8, !tbaa !5
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 4) #3
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = load float, ptr %2, align 4, !tbaa !11
  %94 = fmul float %93, 5.000000e-01
  call void %90(i32 noundef %92, i32 noundef 34046, float noundef %94)
  %95 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 5) #3
  %97 = load i32, ptr %96, align 4, !tbaa !9
  call void %95(i32 noundef %97, i32 noundef 10240, i32 noundef 9729)
  %98 = load ptr, ptr @_funcptr_glSamplerParameteri, align 8, !tbaa !5
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 5) #3
  %100 = load i32, ptr %99, align 4, !tbaa !9
  call void %98(i32 noundef %100, i32 noundef 10241, i32 noundef 9987)
  %101 = load ptr, ptr @_funcptr_glSamplerParameterf, align 8, !tbaa !5
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 5) #3
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = load float, ptr %2, align 4, !tbaa !11
  call void %101(i32 noundef %103, i32 noundef 34046, float noundef %104)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass