; LLVM IR from Try/Tempest :: Engine/thirdparty/spirv_cross (spirv_cross)

; 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.anon.345 = type { ptr, ptr }
%"struct.spirv_cross::Compiler::AnalyzeVariableScopeAccessHandler" = type { %"struct.spirv_cross::Compiler::OpcodeHandler", ptr, ptr, %"class.std::unordered_map.301", %"class.std::unordered_map.301", %"class.std::unordered_map.194", %"class.std::unordered_map.301", %"class.std::unordered_map.301", %"class.std::unordered_set", %"class.std::unordered_map.301", ptr }
%"struct.spirv_cross::Compiler::OpcodeHandler" = type { ptr }
%"class.std::unordered_map.194" = type { %"class.std::_Hashtable.195" }
%"class.std::_Hashtable.195" = 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.std::unordered_set" = type { %"class.std::_Hashtable.74" }
%"class.std::_Hashtable.74" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.301" = type { %"class.std::_Hashtable.302" }
%"class.std::_Hashtable.302" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.spirv_cross::SPIRBlock" = type { %"struct.spirv_cross::IVariant.base", i32, i32, i32, %"class.spirv_cross::TypedID.165", %"class.spirv_cross::TypedID.165", %"class.spirv_cross::TypedID.165", %"class.spirv_cross::TypedID.162", %"class.spirv_cross::TypedID.162", %"class.spirv_cross::TypedID.165", %"class.spirv_cross::TypedID.165", %"class.spirv_cross::TypedID.165", %struct.anon, %"class.spirv_cross::SmallVector.208", %"class.spirv_cross::SmallVector.211", %"class.spirv_cross::SmallVector.214", %"class.spirv_cross::SmallVector.214", %"class.spirv_cross::SmallVector.217", %"class.spirv_cross::SmallVector.217", i8, i8, i8, %"class.spirv_cross::TypedID.165", %"class.spirv_cross::TypedID.165", %"class.spirv_cross::SmallVector.220", %"class.spirv_cross::SmallVector.220", %"class.spirv_cross::SmallVector.7" }
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.162" }>
%"class.spirv_cross::TypedID.162" = type { i32 }
%struct.anon = type { [3 x %"class.spirv_cross::TypedID.162"], %"class.spirv_cross::TypedID.162" }
%"class.spirv_cross::SmallVector.208" = type { %"class.spirv_cross::VectorView.209", i64, %"class.spirv_cross::AlignedBuffer.210" }
%"class.spirv_cross::VectorView.209" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.210" = type { [96 x i8] }
%"class.spirv_cross::SmallVector.211" = type { %"class.spirv_cross::VectorView.212", i64, %"class.spirv_cross::AlignedBuffer.213" }
%"class.spirv_cross::VectorView.212" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.213" = type { [96 x i8] }
%"class.spirv_cross::SmallVector.214" = type { %"class.spirv_cross::VectorView.215", i64, %"class.spirv_cross::AlignedBuffer.216" }
%"class.spirv_cross::VectorView.215" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.216" = type { [64 x i8] }
%"class.spirv_cross::SmallVector.217" = type { %"class.spirv_cross::VectorView.218", i64, %"class.spirv_cross::AlignedBuffer.219" }
%"class.spirv_cross::VectorView.218" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.219" = type { [128 x i8] }
%"class.spirv_cross::TypedID.165" = type { i32 }
%"class.spirv_cross::SmallVector.220" = type { %"class.spirv_cross::VectorView.221", i64, %"class.spirv_cross::AlignedBuffer.222" }
%"class.spirv_cross::VectorView.221" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.222" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.7" = type { %"class.spirv_cross::VectorView.8", i64, %"class.spirv_cross::AlignedBuffer.9" }
%"class.spirv_cross::VectorView.8" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.9" = type { [32 x i8] }
%"struct.spirv_cross::IVariant" = type <{ ptr, %"class.spirv_cross::TypedID.162", [4 x i8] }>
%"struct.spirv_cross::SPIRBlock::Case" = type <{ i64, %"class.spirv_cross::TypedID.165", [4 x i8] }>

; 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 i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZNK11spirv_cross8Compiler13get_case_listERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(976)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(976) %1) unnamed_addr #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %class.anon.345, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %"struct.spirv_cross::Compiler::AnalyzeVariableScopeAccessHandler", ptr %11, i32 0, i32 10
  store ptr %12, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  %14 = getelementptr inbounds %class.anon.345, ptr %5, i32 0, i32 0
  store ptr %11, ptr %14, align 8, !tbaa !22
  %15 = getelementptr inbounds %class.anon.345, ptr %5, i32 0, i32 1
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %16, ptr %15, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %17, i32 0, i32 1
  %19 = load i32, ptr %18, align 4, !tbaa !24
  switch i32 %19, label %82 [
    i32 1, label %20
    i32 2, label %30
    i32 3, label %43
  ]

20:                                               ; preds = %2
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %21, i32 0, i32 8
  %23 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %22)
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %24, i32 0, i32 1
  %26 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %25)
  call void @_ZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler22notify_variable_accessEjj(ptr noundef nonnull align 8 dereferenceable(424) %11, i32 noundef %23, i32 noundef %26)
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %27, i32 0, i32 4
  %29 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %28)
  call void @"_ZZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockEENK3$_0clEj"(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %29)
  br label %83

30:                                               ; preds = %2
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %31, i32 0, i32 8
  %33 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %32)
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %34, i32 0, i32 1
  %36 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %35)
  call void @_ZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler22notify_variable_accessEjj(ptr noundef nonnull align 8 dereferenceable(424) %11, i32 noundef %33, i32 noundef %36)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %37, i32 0, i32 9
  %39 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %38)
  call void @"_ZZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockEENK3$_0clEj"(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %39)
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %40, i32 0, i32 10
  %42 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %41)
  call void @"_ZZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockEENK3$_0clEj"(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %42)
  br label %83

43:                                               ; preds = %2
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %44, i32 0, i32 8
  %46 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %45)
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %47, i32 0, i32 1
  %49 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %48)
  call void @_ZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler22notify_variable_accessEjj(ptr noundef nonnull align 8 dereferenceable(424) %11, i32 noundef %46, i32 noundef %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %50 = getelementptr inbounds %"struct.spirv_cross::Compiler::AnalyzeVariableScopeAccessHandler", ptr %11, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !53
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNK11spirv_cross8Compiler13get_case_listERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176) %51, ptr noundef nonnull align 8 dereferenceable(976) %52)
  store ptr %53, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %54, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %55) #4
  store ptr %56, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %57) #4
  store ptr %58, ptr %9, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %69, %43
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = icmp ne ptr %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %72

64:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %65, ptr %10, align 8, !tbaa !5
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock::Case", ptr %66, i32 0, i32 1
  %68 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %67)
  call void @"_ZZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockEENK3$_0clEj"(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %68)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %69

69:                                               ; preds = %64
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock::Case", ptr %70, i32 1
  store ptr %71, ptr %8, align 8, !tbaa !5
  br label %59

72:                                               ; preds = %63
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %73, i32 0, i32 11
  %75 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %74)
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %81

77:                                               ; preds = %72
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %78, i32 0, i32 11
  %80 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %79)
  call void @"_ZZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockEENK3$_0clEj"(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %80)
  br label %81

81:                                               ; preds = %77, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %83

82:                                               ; preds = %2
  br label %83

83:                                               ; preds = %82, %81, %30, %20
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler22notify_variable_accessEjj(ptr noundef nonnull align 8 dereferenceable(424), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockEENK3$_0clEj"(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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 = { 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 #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, !6, i64 416}
!10 = !{!"_ZTSN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandlerE", !11, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 80, !18, i64 136, !12, i64 192, !12, i64 248, !20, i64 304, !12, i64 360, !6, i64 416}
!11 = !{!"_ZTSN11spirv_cross8Compiler13OpcodeHandlerE"}
!12 = !{!"_ZTSSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE", !13, i64 0}
!13 = !{!"_ZTSSt10_HashtableIjSt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEESaIS9_ENSt8__detail10_Select1stES6_S4_NSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !6, i64 48}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !19, i64 0}
!19 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !6, i64 48}
!20 = !{!"_ZTSSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableIjjSaIjENSt8__detail9_IdentityESt8equal_toIjESt4hashIjENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !6, i64 48}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTSZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockEE3$_0", !6, i64 0, !6, i64 8}
!24 = !{!25, !29, i64 12}
!25 = !{!"_ZTSN11spirv_cross9SPIRBlockE", !26, i64 0, !29, i64 12, !30, i64 16, !31, i64 20, !32, i64 24, !32, i64 28, !32, i64 32, !27, i64 36, !27, i64 40, !32, i64 44, !32, i64 48, !32, i64 52, !33, i64 56, !34, i64 72, !37, i64 192, !40, i64 312, !40, i64 400, !43, i64 488, !43, i64 640, !46, i64 792, !46, i64 793, !46, i64 794, !32, i64 796, !32, i64 800, !47, i64 808, !47, i64 864, !50, i64 920}
!26 = !{!"_ZTSN11spirv_cross8IVariantE", !27, i64 8}
!27 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !28, i64 0}
!28 = !{!"int", !7, i64 0}
!29 = !{!"_ZTSN11spirv_cross9SPIRBlock10TerminatorE", !7, i64 0}
!30 = !{!"_ZTSN11spirv_cross9SPIRBlock5MergeE", !7, i64 0}
!31 = !{!"_ZTSN11spirv_cross9SPIRBlock5HintsE", !7, i64 0}
!32 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !28, i64 0}
!33 = !{!"_ZTSN11spirv_cross9SPIRBlockUt1_E", !7, i64 0, !27, i64 12}
!34 = !{!"_ZTSN11spirv_cross11SmallVectorINS_11InstructionELm8EEE", !35, i64 0, !14, i64 16, !36, i64 24}
!35 = !{!"_ZTSN11spirv_cross10VectorViewINS_11InstructionEEE", !6, i64 0, !14, i64 8}
!36 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_11InstructionELm8EEE", !7, i64 0}
!37 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock3PhiELm8EEE", !38, i64 0, !14, i64 16, !39, i64 24}
!38 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock3PhiEEE", !6, i64 0, !14, i64 8}
!39 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock3PhiELm8EEE", !7, i64 0}
!40 = !{!"_ZTSN11spirv_cross11SmallVectorISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !41, i64 0, !14, i64 16, !42, i64 24}
!41 = !{!"_ZTSN11spirv_cross10VectorViewISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEEEE", !6, i64 0, !14, i64 8}
!42 = !{!"_ZTSN11spirv_cross13AlignedBufferISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !7, i64 0}
!43 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock4CaseELm8EEE", !44, i64 0, !14, i64 16, !45, i64 24}
!44 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock4CaseEEE", !6, i64 0, !14, i64 8}
!45 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock4CaseELm8EEE", !7, i64 0}
!46 = !{!"bool", !7, i64 0}
!47 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE2EEELm8EEE", !48, i64 0, !14, i64 16, !49, i64 24}
!48 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE2EEEEE", !6, i64 0, !14, i64 8}
!49 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE2EEELm8EEE", !7, i64 0}
!50 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !51, i64 0, !14, i64 16, !52, i64 24}
!51 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !6, i64 0, !14, i64 8}
!52 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}
!53 = !{!10, !6, i64 8}


; 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.anon.345 = type { ptr, ptr }

; 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZNK11spirv_cross8Compiler13get_case_listERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(976)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(976) %1) unnamed_addr #2 align 2 {
  %3 = alloca %class.anon.345, align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 416
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  store ptr %0, ptr %3, align 8, !tbaa !21
  %5 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr %1, ptr %5, align 8, !tbaa !23
  %6 = getelementptr inbounds i8, ptr %1, i64 12
  %7 = load i32, ptr %6, align 4, !tbaa !24
  switch i32 %7, label %41 [
    i32 1, label %8
    i32 2, label %15
    i32 3, label %24
  ]

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %1, i64 40
  %10 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %9)
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %11)
  tail call void @_ZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler22notify_variable_accessEjj(ptr noundef nonnull align 8 dereferenceable(424) %0, i32 noundef %10, i32 noundef %12)
  %13 = getelementptr inbounds i8, ptr %1, i64 24
  %14 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %13)
  br label %.sink.split

15:                                               ; preds = %2
  %16 = getelementptr inbounds i8, ptr %1, i64 40
  %17 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %16)
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  %19 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %18)
  tail call void @_ZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler22notify_variable_accessEjj(ptr noundef nonnull align 8 dereferenceable(424) %0, i32 noundef %17, i32 noundef %19)
  %20 = getelementptr inbounds i8, ptr %1, i64 44
  %21 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @"_ZZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockEENK3$_0clEj"(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef %21)
  %22 = getelementptr inbounds i8, ptr %1, i64 48
  %23 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %22)
  br label %.sink.split

24:                                               ; preds = %2
  %25 = getelementptr inbounds i8, ptr %1, i64 40
  %26 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %25)
  %27 = getelementptr inbounds i8, ptr %1, i64 8
  %28 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %27)
  tail call void @_ZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler22notify_variable_accessEjj(ptr noundef nonnull align 8 dereferenceable(424) %0, i32 noundef %26, i32 noundef %28)
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !53
  %31 = tail call noundef nonnull align 8 dereferenceable(152) ptr @_ZNK11spirv_cross8Compiler13get_case_listERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176) %30, ptr noundef nonnull align 8 dereferenceable(976) %1)
  %32 = tail call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %31) #4
  %33 = tail call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %31) #4
  %.not25 = icmp eq ptr %32, %33
  br i1 %.not25, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %24
  %34 = getelementptr inbounds i8, ptr %1, i64 52
  %35 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %34)
  %.not24 = icmp eq i32 %35, 0
  br i1 %.not24, label %41, label %39

.lr.ph:                                           ; preds = %24, %.lr.ph
  %.026 = phi ptr [ %38, %.lr.ph ], [ %32, %24 ]
  %36 = getelementptr inbounds i8, ptr %.026, i64 8
  %37 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %36)
  call void @"_ZZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockEENK3$_0clEj"(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef %37)
  %38 = getelementptr inbounds i8, ptr %.026, i64 16
  %.not = icmp eq ptr %38, %33
  br i1 %.not, label %._crit_edge, label %.lr.ph

39:                                               ; preds = %._crit_edge
  %40 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %34)
  br label %.sink.split

.sink.split:                                      ; preds = %8, %15, %39
  %.sink = phi i32 [ %40, %39 ], [ %23, %15 ], [ %14, %8 ]
  call void @"_ZZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockEENK3$_0clEj"(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef %.sink)
  br label %41

41:                                               ; preds = %.sink.split, %._crit_edge, %2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler22notify_variable_accessEjj(ptr noundef nonnull align 8 dereferenceable(424), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockEENK3$_0clEj"(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress 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 = { 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 #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, !8, i64 416}
!6 = !{!"_ZTSN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandlerE", !7, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !11, i64 80, !17, i64 136, !11, i64 192, !11, i64 248, !19, i64 304, !11, i64 360, !8, i64 416}
!7 = !{!"_ZTSN11spirv_cross8Compiler13OpcodeHandlerE"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSSt13unordered_mapIjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEES2_S4_SaISt4pairIKjS6_EEE", !12, i64 0}
!12 = !{!"_ZTSSt10_HashtableIjSt4pairIKjSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEESaIS9_ENSt8__detail10_Select1stES6_S4_NSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb0ELb0ELb1EEEE", !8, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !8, i64 48}
!13 = !{!"long", !9, i64 0}
!14 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !8, i64 0}
!15 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !16, i64 0, !13, i64 8}
!16 = !{!"float", !9, i64 0}
!17 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !18, i64 0}
!18 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !8, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !8, i64 48}
!19 = !{!"_ZTSSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE", !20, i64 0}
!20 = !{!"_ZTSSt10_HashtableIjjSaIjENSt8__detail9_IdentityESt8equal_toIjESt4hashIjENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !8, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !8, i64 48}
!21 = !{!22, !8, i64 0}
!22 = !{!"_ZTSZN11spirv_cross8Compiler33AnalyzeVariableScopeAccessHandler17set_current_blockERKNS_9SPIRBlockEE3$_0", !8, i64 0, !8, i64 8}
!23 = !{!8, !8, i64 0}
!24 = !{!25, !29, i64 12}
!25 = !{!"_ZTSN11spirv_cross9SPIRBlockE", !26, i64 0, !29, i64 12, !30, i64 16, !31, i64 20, !32, i64 24, !32, i64 28, !32, i64 32, !27, i64 36, !27, i64 40, !32, i64 44, !32, i64 48, !32, i64 52, !33, i64 56, !34, i64 72, !37, i64 192, !40, i64 312, !40, i64 400, !43, i64 488, !43, i64 640, !46, i64 792, !46, i64 793, !46, i64 794, !32, i64 796, !32, i64 800, !47, i64 808, !47, i64 864, !50, i64 920}
!26 = !{!"_ZTSN11spirv_cross8IVariantE", !27, i64 8}
!27 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !28, i64 0}
!28 = !{!"int", !9, i64 0}
!29 = !{!"_ZTSN11spirv_cross9SPIRBlock10TerminatorE", !9, i64 0}
!30 = !{!"_ZTSN11spirv_cross9SPIRBlock5MergeE", !9, i64 0}
!31 = !{!"_ZTSN11spirv_cross9SPIRBlock5HintsE", !9, i64 0}
!32 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !28, i64 0}
!33 = !{!"_ZTSN11spirv_cross9SPIRBlockUt1_E", !9, i64 0, !27, i64 12}
!34 = !{!"_ZTSN11spirv_cross11SmallVectorINS_11InstructionELm8EEE", !35, i64 0, !13, i64 16, !36, i64 24}
!35 = !{!"_ZTSN11spirv_cross10VectorViewINS_11InstructionEEE", !8, i64 0, !13, i64 8}
!36 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_11InstructionELm8EEE", !9, i64 0}
!37 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock3PhiELm8EEE", !38, i64 0, !13, i64 16, !39, i64 24}
!38 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock3PhiEEE", !8, i64 0, !13, i64 8}
!39 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock3PhiELm8EEE", !9, i64 0}
!40 = !{!"_ZTSN11spirv_cross11SmallVectorISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !41, i64 0, !13, i64 16, !42, i64 24}
!41 = !{!"_ZTSN11spirv_cross10VectorViewISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEEEE", !8, i64 0, !13, i64 8}
!42 = !{!"_ZTSN11spirv_cross13AlignedBufferISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !9, i64 0}
!43 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock4CaseELm8EEE", !44, i64 0, !13, i64 16, !45, i64 24}
!44 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock4CaseEEE", !8, i64 0, !13, i64 8}
!45 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock4CaseELm8EEE", !9, i64 0}
!46 = !{!"bool", !9, i64 0}
!47 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE2EEELm8EEE", !48, i64 0, !13, i64 16, !49, i64 24}
!48 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE2EEEEE", !8, i64 0, !13, i64 8}
!49 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE2EEELm8EEE", !9, i64 0}
!50 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !51, i64 0, !13, i64 16, !52, i64 24}
!51 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !8, i64 0, !13, i64 8}
!52 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !9, i64 0}
!53 = !{!6, !8, i64 8}


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