; LLVM IR from Try/Tempest :: Engine/gapi/spirv (shaderanalyzer)

; 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.ShaderAnalyzer = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [768 x i32], [768 x i32], [4 x i8], %"class.std::unordered_map", ptr, %"class.libspirv::MutableBytecode", %"class.std::unordered_map.13", %"class.std::unordered_map.27", %"class.std::unordered_map.41", %"class.std::unordered_map.55", %"class.std::unordered_map.69", i32, [4 x i8] }>
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.libspirv::MutableBytecode" = type { %"class.libspirv::Bytecode.base", %"class.std::vector.8" }
%"class.libspirv::Bytecode.base" = type <{ ptr, i64, i32 }>
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl" }
%"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl" = type { %"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map.13" = type { %"class.std::_Hashtable.14" }
%"class.std::_Hashtable.14" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.27" = type { %"class.std::_Hashtable.28" }
%"class.std::_Hashtable.28" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.41" = type { %"class.std::_Hashtable.42" }
%"class.std::_Hashtable.42" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.55" = type { %"class.std::_Hashtable.56" }
%"class.std::_Hashtable.56" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.69" = type { %"class.std::_Hashtable.70" }
%"class.std::_Hashtable.70" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

; 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 nounwind uwtable
declare dso_local noundef zeroext i16 @_ZorN14ShaderAnalyzer10AccessBitsES0_(i16 noundef zeroext, i16 noundef zeroext) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14ShaderAnalyzer26markOutputsAsThreadRelatedEjjNS_10AccessBitsE(ptr noundef nonnull align 8 dereferenceable(6596) %0, i32 noundef %1, i32 noundef %2, i16 noundef zeroext %3) #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i16, align 2
  %9 = alloca i32, align 4
  %10 = alloca i16, align 2
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i16 %3, ptr %8, align 2, !tbaa !11
  %17 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %18 = getelementptr inbounds %class.ShaderAnalyzer, ptr %17, i32 0, i32 24
  %19 = load i32, ptr %18, align 8, !tbaa !13
  store i32 %19, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %10) #3
  %20 = call noundef zeroext i16 @_ZorN14ShaderAnalyzer10AccessBitsES0_(i16 noundef zeroext 1, i16 noundef zeroext 2)
  %21 = call noundef zeroext i16 @_ZorN14ShaderAnalyzer10AccessBitsES0_(i16 noundef zeroext %20, i16 noundef zeroext 8)
  %22 = call noundef zeroext i16 @_ZorN14ShaderAnalyzer10AccessBitsES0_(i16 noundef zeroext %21, i16 noundef zeroext 32)
  %23 = call noundef zeroext i16 @_ZorN14ShaderAnalyzer10AccessBitsES0_(i16 noundef zeroext %22, i16 noundef zeroext 4)
  store i16 %23, ptr %10, align 2, !tbaa !11
  %24 = load i16, ptr %8, align 2, !tbaa !11
  %25 = zext i16 %24 to i32
  %26 = load i16, ptr %10, align 2, !tbaa !11
  %27 = zext i16 %26 to i32
  %28 = xor i32 %27, -1
  %29 = and i32 %25, %28
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %4
  store i32 256, ptr %9, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %31, %4
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = icmp eq i32 %33, -1
  br i1 %34, label %35, label %67

35:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %36 = getelementptr inbounds %class.ShaderAnalyzer, ptr %17, i32 0, i32 13
  store ptr %36, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = getelementptr inbounds [768 x i32], ptr %37, i64 0, i64 0
  store ptr %38, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = getelementptr inbounds [768 x i32], ptr %39, i64 0, i64 0
  %41 = getelementptr inbounds i32, ptr %40, i64 768
  store ptr %41, ptr %13, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %63, %35
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = icmp ne ptr %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %66

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %48, ptr %14, align 8, !tbaa !5
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = icmp eq i32 %50, 257
  br i1 %51, label %57, label %52

52:                                               ; preds = %47
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = icmp eq i32 %54, %55
  br i1 %56, label %57, label %60

57:                                               ; preds = %52, %47
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %58, ptr %59, align 4, !tbaa !9
  br label %62

60:                                               ; preds = %52
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 256, ptr %61, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %60, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %63

63:                                               ; preds = %62
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = getelementptr inbounds i32, ptr %64, i32 1
  store ptr %65, ptr %12, align 8, !tbaa !5
  br label %42

66:                                               ; preds = %46
  store i32 1, ptr %15, align 4
  br label %86

67:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %68 = getelementptr inbounds %class.ShaderAnalyzer, ptr %17, i32 0, i32 13
  %69 = load i32, ptr %6, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds [768 x i32], ptr %68, i64 0, i64 %70
  store ptr %71, ptr %16, align 8, !tbaa !5
  %72 = load ptr, ptr %16, align 8, !tbaa !5
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = icmp eq i32 %73, 257
  br i1 %74, label %80, label %75

75:                                               ; preds = %67
  %76 = load ptr, ptr %16, align 8, !tbaa !5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = load i32, ptr %9, align 4, !tbaa !9
  %79 = icmp eq i32 %77, %78
  br i1 %79, label %80, label %83

80:                                               ; preds = %75, %67
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 %81, ptr %82, align 4, !tbaa !9
  br label %85

83:                                               ; preds = %75
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 256, ptr %84, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %83, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  store i32 0, ptr %15, align 4
  br label %86

86:                                               ; preds = %85, %66
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  %87 = load i32, ptr %15, align 4
  switch i32 %87, label %89 [
    i32 0, label %88
    i32 1, label %88
  ]

88:                                               ; preds = %86, %86
  ret void

89:                                               ; preds = %86
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = !{!"_ZTSN14ShaderAnalyzer10AccessBitsE", !7, i64 0}
!13 = !{!14, !10, i64 6592}
!14 = !{!"_ZTS14ShaderAnalyzer", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !7, i64 52, !7, i64 3124, !15, i64 6200, !6, i64 6256, !21, i64 6264, !27, i64 6312, !29, i64 6368, !31, i64 6424, !33, i64 6480, !35, i64 6536, !10, i64 6592}
!15 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer7VaryingEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!19 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !20, i64 0, !17, i64 8}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSN8libspirv15MutableBytecodeE", !22, i64 0, !23, i64 24}
!22 = !{!"_ZTSN8libspirv8BytecodeE", !6, i64 0, !17, i64 8, !10, i64 16}
!23 = !{!"_ZTSSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer3RegESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !28, i64 0}
!28 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer3RegEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!29 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer4TypeESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !30, i64 0}
!30 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer4TypeEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!31 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer3VarESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !32, i64 0}
!32 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer3VarEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!33 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer8FunctionESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !34, i64 0}
!34 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer8FunctionEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!35 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer3CFGESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !36, i64 0}
!36 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer3CFGEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}


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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZorN14ShaderAnalyzer10AccessBitsES0_(i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN14ShaderAnalyzer26markOutputsAsThreadRelatedEjjNS_10AccessBitsE(ptr nocapture noundef nonnull align 8 dereferenceable(6596) %0, i32 noundef %1, i32 noundef %2, i16 noundef zeroext %3) local_unnamed_addr #0 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 6592
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = tail call noundef zeroext i16 @_ZorN14ShaderAnalyzer10AccessBitsES0_(i16 noundef zeroext 1, i16 noundef zeroext 2)
  %8 = tail call noundef zeroext i16 @_ZorN14ShaderAnalyzer10AccessBitsES0_(i16 noundef zeroext %7, i16 noundef zeroext 8)
  %9 = tail call noundef zeroext i16 @_ZorN14ShaderAnalyzer10AccessBitsES0_(i16 noundef zeroext %8, i16 noundef zeroext 32)
  %10 = tail call noundef zeroext i16 @_ZorN14ShaderAnalyzer10AccessBitsES0_(i16 noundef zeroext %9, i16 noundef zeroext 4)
  %11 = zext i16 %3 to i32
  %12 = zext i16 %10 to i32
  %13 = xor i32 %12, -1
  %14 = and i32 %13, %11
  %.not = icmp eq i32 %14, 0
  %spec.select = select i1 %.not, i32 %6, i32 256
  %15 = icmp eq i32 %1, -1
  br i1 %15, label %vector.ph, label %29

vector.ph:                                        ; preds = %4
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %spec.select, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %16 = shl i64 %index, 2
  %17 = getelementptr i8, ptr %0, i64 %16
  %18 = getelementptr i8, ptr %17, i64 52
  %19 = getelementptr i8, ptr %17, i64 68
  %wide.load = load <4 x i32>, ptr %18, align 4, !tbaa !33
  %wide.load31 = load <4 x i32>, ptr %19, align 4, !tbaa !33
  %20 = icmp eq <4 x i32> %wide.load, <i32 257, i32 257, i32 257, i32 257>
  %21 = icmp eq <4 x i32> %wide.load31, <i32 257, i32 257, i32 257, i32 257>
  %22 = icmp eq <4 x i32> %wide.load, %broadcast.splat
  %23 = icmp eq <4 x i32> %wide.load31, %broadcast.splat
  %24 = select <4 x i1> %20, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i1> %22
  %25 = select <4 x i1> %21, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i1> %23
  %26 = select <4 x i1> %24, <4 x i32> %broadcast.splat, <4 x i32> <i32 256, i32 256, i32 256, i32 256>
  %27 = select <4 x i1> %25, <4 x i32> %broadcast.splat, <4 x i32> <i32 256, i32 256, i32 256, i32 256>
  store <4 x i32> %26, ptr %18, align 4, !tbaa !33
  store <4 x i32> %27, ptr %19, align 4, !tbaa !33
  %index.next = add nuw i64 %index, 8
  %28 = icmp eq i64 %index.next, 768
  br i1 %28, label %.loopexit, label %vector.body, !llvm.loop !34

29:                                               ; preds = %4
  %30 = getelementptr inbounds i8, ptr %0, i64 52
  %31 = zext i32 %1 to i64
  %32 = getelementptr inbounds [768 x i32], ptr %30, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !33
  %34 = icmp eq i32 %33, 257
  %35 = icmp eq i32 %33, %spec.select
  %or.cond29 = select i1 %34, i1 true, i1 %35
  %storemerge = select i1 %or.cond29, i32 %spec.select, i32 256
  store i32 %storemerge, ptr %32, align 4, !tbaa !33
  br label %.loopexit

.loopexit:                                        ; preds = %vector.body, %29
  ret void
}

attributes #0 = { 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" }

!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 6592}
!6 = !{!"_ZTS14ShaderAnalyzer", !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, !8, i64 52, !8, i64 3124, !10, i64 6200, !12, i64 6256, !17, i64 6264, !23, i64 6312, !25, i64 6368, !27, i64 6424, !29, i64 6480, !31, i64 6536, !7, i64 6592}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !11, i64 0}
!11 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer7VaryingEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !12, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !12, i64 48}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !12, i64 0}
!15 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !16, i64 0, !13, i64 8}
!16 = !{!"float", !8, i64 0}
!17 = !{!"_ZTSN8libspirv15MutableBytecodeE", !18, i64 0, !19, i64 24}
!18 = !{!"_ZTSN8libspirv8BytecodeE", !12, i64 0, !13, i64 8, !7, i64 16}
!19 = !{!"_ZTSSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!23 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer3RegESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !24, i64 0}
!24 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer3RegEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !12, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !12, i64 48}
!25 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer4TypeESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !26, i64 0}
!26 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer4TypeEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !12, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !12, i64 48}
!27 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer3VarESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !28, i64 0}
!28 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer3VarEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !12, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !12, i64 48}
!29 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer8FunctionESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !30, i64 0}
!30 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer8FunctionEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !12, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !12, i64 48}
!31 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer3CFGESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !32, i64 0}
!32 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer3CFGEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !12, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !12, i64 48}
!33 = !{!7, !7, i64 0}
!34 = distinct !{!34, !35, !36}
!35 = !{!"llvm.loop.isvectorized", i32 1}
!36 = !{!"llvm.loop.unroll.runtime.disable"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass