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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14ShaderAnalyzer12mappingTableERN8libspirv15MutableBytecode8IteratorEj(ptr noundef nonnull align 8 dereferenceable(6596) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [258 x i32], align 16
  %10 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %11 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %12 = getelementptr inbounds %class.ShaderAnalyzer, ptr %11, i32 0, i32 18
  %13 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %12)
  store i32 %13, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %14 = getelementptr inbounds %class.ShaderAnalyzer, ptr %11, i32 0, i32 18
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = getelementptr inbounds %class.ShaderAnalyzer, ptr %11, i32 0, i32 10
  %18 = load i32, ptr %17, align 8, !tbaa !11
  %19 = call noundef i32 @_ZN8libspirv15MutableBytecode11OpTypeArrayERNS0_8IteratorEjj(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef %16, i32 noundef %18)
  store i32 %19, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1032, ptr %9) #4
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 1032, i1 false)
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = getelementptr inbounds [258 x i32], ptr %9, i64 0, i64 0
  store i32 %20, ptr %21, align 16, !tbaa !9
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = getelementptr inbounds [258 x i32], ptr %9, i64 0, i64 1
  store i32 %22, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store i64 0, ptr %10, align 8, !tbaa !35
  br label %24

24:                                               ; preds = %43, %3
  %25 = load i64, ptr %10, align 8, !tbaa !35
  %26 = getelementptr inbounds %class.ShaderAnalyzer, ptr %11, i32 0, i32 10
  %27 = load i32, ptr %26, align 8, !tbaa !11
  %28 = zext i32 %27 to i64
  %29 = icmp ult i64 %25, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %46

31:                                               ; preds = %24
  %32 = getelementptr inbounds %class.ShaderAnalyzer, ptr %11, i32 0, i32 18
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = getelementptr inbounds %class.ShaderAnalyzer, ptr %11, i32 0, i32 13
  %36 = load i64, ptr %10, align 8, !tbaa !35
  %37 = getelementptr inbounds [768 x i32], ptr %35, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = call noundef i32 @_ZN8libspirv15MutableBytecode10OpConstantERNS0_8IteratorEjj(ptr noundef nonnull align 8 dereferenceable(48) %32, ptr noundef nonnull align 8 dereferenceable(24) %33, i32 noundef %34, i32 noundef %38)
  %40 = load i64, ptr %10, align 8, !tbaa !35
  %41 = add i64 %40, 2
  %42 = getelementptr inbounds [258 x i32], ptr %9, i64 0, i64 %41
  store i32 %39, ptr %42, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %31
  %44 = load i64, ptr %10, align 8, !tbaa !35
  %45 = add i64 %44, 1
  store i64 %45, ptr %10, align 8, !tbaa !35
  br label %24, !llvm.loop !36

46:                                               ; preds = %30
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds [258 x i32], ptr %9, i64 0, i64 0
  %49 = getelementptr inbounds %class.ShaderAnalyzer, ptr %11, i32 0, i32 10
  %50 = load i32, ptr %49, align 8, !tbaa !11
  %51 = add i32 %50, 2
  %52 = zext i32 %51 to i64
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpEPKjm(ptr noundef nonnull align 8 dereferenceable(24) %47, i32 noundef 44, ptr noundef %48, i64 noundef %52)
  %53 = load i32, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1032, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret i32 %53
}

declare noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48)) #3

declare noundef i32 @_ZN8libspirv15MutableBytecode11OpTypeArrayERNS0_8IteratorEjj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #3

declare noundef i32 @_ZN8libspirv15MutableBytecode10OpConstantERNS0_8IteratorEjj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #3

declare void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpEPKjm(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef, i64 noundef) #3

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

!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, !10, i64 40}
!12 = !{!"_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, !13, i64 6200, !6, i64 6256, !19, i64 6264, !25, i64 6312, !27, i64 6368, !29, i64 6424, !31, i64 6480, !33, i64 6536, !10, i64 6592}
!13 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !14, i64 0}
!14 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer7VaryingEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !6, i64 48}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !15, i64 8}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTSN8libspirv15MutableBytecodeE", !20, i64 0, !21, i64 24}
!20 = !{!"_ZTSN8libspirv8BytecodeE", !6, i64 0, !15, i64 8, !10, i64 16}
!21 = !{!"_ZTSSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer3RegESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !26, i64 0}
!26 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer3RegEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !6, i64 48}
!27 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer4TypeESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !28, i64 0}
!28 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer4TypeEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !6, i64 48}
!29 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer3VarESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !30, i64 0}
!30 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer3VarEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !6, i64 48}
!31 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer8FunctionESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !32, i64 0}
!32 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer8FunctionEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !6, i64 48}
!33 = !{!"_ZTSSt13unordered_mapIjN14ShaderAnalyzer3CFGESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !34, i64 0}
!34 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN14ShaderAnalyzer3CFGEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !6, i64 48}
!35 = !{!15, !15, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"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"

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14ShaderAnalyzer12mappingTableERN8libspirv15MutableBytecode8IteratorEj(ptr noundef nonnull align 8 dereferenceable(6596) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2) local_unnamed_addr #2 align 2 {
  %4 = alloca [258 x i32], align 16
  %5 = getelementptr inbounds i8, ptr %0, i64 6264
  %6 = tail call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = tail call noundef i32 @_ZN8libspirv15MutableBytecode11OpTypeArrayERNS0_8IteratorEjj(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %8)
  call void @llvm.lifetime.start.p0(i64 1032, ptr nonnull %4) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1032) %4, i8 0, i64 1032, i1 false)
  store i32 %9, ptr %4, align 16, !tbaa !33
  %10 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 %6, ptr %10, align 4, !tbaa !33
  %11 = load i32, ptr %7, align 8, !tbaa !5
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %12 = getelementptr inbounds i8, ptr %0, i64 52
  br label %15

._crit_edge.loopexit:                             ; preds = %15
  %13 = add i32 %22, 2
  %14 = zext i32 %13 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %3
  %.lcssa = phi i64 [ 2, %3 ], [ %14, %._crit_edge.loopexit ]
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpEPKjm(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 44, ptr noundef nonnull %4, i64 noundef %.lcssa)
  call void @llvm.lifetime.end.p0(i64 1032, ptr nonnull %4) #4
  ret i32 %6

15:                                               ; preds = %.lr.ph, %15
  %.012 = phi i64 [ 0, %.lr.ph ], [ %21, %15 ]
  %16 = getelementptr inbounds [768 x i32], ptr %12, i64 0, i64 %.012
  %17 = load i32, ptr %16, align 4, !tbaa !33
  %18 = tail call noundef i32 @_ZN8libspirv15MutableBytecode10OpConstantERNS0_8IteratorEjj(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %17)
  %19 = add nuw nsw i64 %.012, 2
  %20 = getelementptr inbounds [258 x i32], ptr %4, i64 0, i64 %19
  store i32 %18, ptr %20, align 4, !tbaa !33
  %21 = add nuw nsw i64 %.012, 1
  %22 = load i32, ptr %7, align 8, !tbaa !5
  %23 = zext i32 %22 to i64
  %24 = icmp ult i64 %21, %23
  br i1 %24, label %15, label %._crit_edge.loopexit, !llvm.loop !34
}

declare noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3

declare noundef i32 @_ZN8libspirv15MutableBytecode11OpTypeArrayERNS0_8IteratorEjj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #3

declare noundef i32 @_ZN8libspirv15MutableBytecode10OpConstantERNS0_8IteratorEjj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpEPKjm(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

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

!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 40}
!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}
!35 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass