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

%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.spirv_cross::BufferRange" = type { i32, i64, i64 }
%"struct.spirv_cross::Compiler::BufferAccessHandler" = type { %"struct.spirv_cross::Compiler::OpcodeHandler", ptr, ptr, i32, %"class.std::unordered_set" }
%"struct.spirv_cross::Compiler::OpcodeHandler" = type { ptr }
%"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 }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.spirv_cross::SPIRType" = type { %"struct.spirv_cross::IVariant.base", i32, i32, i32, i32, i32, %"class.spirv_cross::SmallVector.92", %"class.spirv_cross::SmallVector.166", i32, i8, i8, i32, %"class.spirv_cross::SmallVector.169", %"class.spirv_cross::SmallVector.92", %"struct.spirv_cross::SPIRType::ImageType", %"class.spirv_cross::TypedID.163", %"class.spirv_cross::TypedID.163", %"class.std::unordered_set.172" }
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.162" }>
%"class.spirv_cross::TypedID.162" = type { i32 }
%"class.spirv_cross::SmallVector.166" = type { %"class.spirv_cross::VectorView.167", i64, %"class.spirv_cross::AlignedBuffer.168" }
%"class.spirv_cross::VectorView.167" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.168" = type { [8 x i8] }
%"class.spirv_cross::SmallVector.169" = type { %"class.spirv_cross::VectorView.170", i64, %"class.spirv_cross::AlignedBuffer.171" }
%"class.spirv_cross::VectorView.170" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.171" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.92" = type { %"class.spirv_cross::VectorView.93", i64, %"class.spirv_cross::AlignedBuffer.94" }
%"class.spirv_cross::VectorView.93" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.94" = type { [32 x i8] }
%"struct.spirv_cross::SPIRType::ImageType" = type { %"class.spirv_cross::TypedID.163", i32, i8, i8, i8, i32, i32, i32 }
%"class.spirv_cross::TypedID.163" = type { i32 }
%"class.std::unordered_set.172" = type { %"class.std::_Hashtable.173" }
%"class.std::_Hashtable.173" = 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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(336) ptr @_ZNK11spirv_cross8Compiler15expression_typeEj(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(360) ptr @_ZNK11spirv_cross8Compiler3getINS_12SPIRConstantEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross12SPIRConstant6scalarEjj(ptr noundef nonnull align 8 dereferenceable(360), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross8Compiler25type_struct_member_offsetERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK11spirv_cross8Compiler31get_declared_struct_member_sizeERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11spirv_cross8Compiler19BufferAccessHandler6handleEN3spv2OpEPKjj(ptr noundef nonnull align 8 dereferenceable(88) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca %"struct.spirv_cross::BufferRange", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !11
  %20 = load ptr, ptr %6, align 8
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = icmp ne i32 %21, 65
  br i1 %22, label %23, label %30

23:                                               ; preds = %4
  %24 = load i32, ptr %7, align 4, !tbaa !9
  %25 = icmp ne i32 %24, 66
  br i1 %25, label %26, label %30

26:                                               ; preds = %23
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = icmp ne i32 %27, 67
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  store i1 true, ptr %5, align 1
  br label %124

30:                                               ; preds = %26, %23, %4
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = icmp eq i32 %31, 67
  %33 = zext i1 %32 to i8
  store i8 %33, ptr %10, align 1, !tbaa !13
  %34 = load i32, ptr %9, align 4, !tbaa !11
  %35 = load i8, ptr %10, align 1, !tbaa !13, !range !15, !noundef !16
  %36 = trunc i8 %35 to i1
  %37 = zext i1 %36 to i64
  %38 = select i1 %36, i32 5, i32 4
  %39 = icmp ult i32 %34, %38
  br i1 %39, label %40, label %41

40:                                               ; preds = %30
  store i1 false, ptr %5, align 1
  store i32 1, ptr %11, align 4
  br label %123

41:                                               ; preds = %30
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds i32, ptr %42, i64 2
  %44 = load i32, ptr %43, align 4, !tbaa !11
  %45 = getelementptr inbounds %"struct.spirv_cross::Compiler::BufferAccessHandler", ptr %20, i32 0, i32 3
  %46 = load i32, ptr %45, align 8, !tbaa !17
  %47 = icmp ne i32 %44, %46
  br i1 %47, label %48, label %49

48:                                               ; preds = %41
  store i1 true, ptr %5, align 1
  store i32 1, ptr %11, align 4
  br label %123

49:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %50 = getelementptr inbounds %"struct.spirv_cross::Compiler::BufferAccessHandler", ptr %20, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !26
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load i8, ptr %10, align 1, !tbaa !13, !range !15, !noundef !16
  %54 = trunc i8 %53 to i1
  %55 = zext i1 %54 to i64
  %56 = select i1 %54, i32 4, i32 3
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i32, ptr %52, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !11
  %60 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZNK11spirv_cross8Compiler3getINS_12SPIRConstantEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %51, i32 noundef %59)
  %61 = call noundef i32 @_ZNK11spirv_cross12SPIRConstant6scalarEjj(ptr noundef nonnull align 8 dereferenceable(360) %60, i32 noundef 0, i32 noundef 0)
  store i32 %61, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %62 = getelementptr inbounds %"struct.spirv_cross::Compiler::BufferAccessHandler", ptr %20, i32 0, i32 4
  %63 = call ptr @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE4findERKj(ptr noundef nonnull align 8 dereferenceable(56) %62, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %64 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %13, i32 0, i32 0
  %65 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %64, i32 0, i32 0
  store ptr %63, ptr %65, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %66 = getelementptr inbounds %"struct.spirv_cross::Compiler::BufferAccessHandler", ptr %20, i32 0, i32 4
  %67 = call ptr @_ZSt3endISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %66)
  %68 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %14, i32 0, i32 0
  %69 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %68, i32 0, i32 0
  store ptr %67, ptr %69, align 8
  %70 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIjLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br i1 %70, label %71, label %72

71:                                               ; preds = %49
  store i1 true, ptr %5, align 1
  store i32 1, ptr %11, align 4
  br label %122

72:                                               ; preds = %49
  %73 = getelementptr inbounds %"struct.spirv_cross::Compiler::BufferAccessHandler", ptr %20, i32 0, i32 4
  %74 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56) %73, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %75 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 0
  %76 = extractvalue { ptr, i8 } %74, 0
  store ptr %76, ptr %75, align 8
  %77 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 1
  %78 = extractvalue { ptr, i8 } %74, 1
  store i8 %78, ptr %77, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %79 = getelementptr inbounds %"struct.spirv_cross::Compiler::BufferAccessHandler", ptr %20, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !26
  %81 = getelementptr inbounds %"struct.spirv_cross::Compiler::BufferAccessHandler", ptr %20, i32 0, i32 3
  %82 = load i32, ptr %81, align 8, !tbaa !17
  %83 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZNK11spirv_cross8Compiler15expression_typeEj(ptr noundef nonnull align 8 dereferenceable(3176) %80, i32 noundef %82)
  store ptr %83, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %84 = getelementptr inbounds %"struct.spirv_cross::Compiler::BufferAccessHandler", ptr %20, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !26
  %86 = load ptr, ptr %16, align 8, !tbaa !5
  %87 = load i32, ptr %12, align 4, !tbaa !11
  %88 = call noundef i32 @_ZNK11spirv_cross8Compiler25type_struct_member_offsetERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176) %85, ptr noundef nonnull align 8 dereferenceable(336) %86, i32 noundef %87)
  store i32 %88, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %89 = load i32, ptr %12, align 4, !tbaa !11
  %90 = add i32 %89, 1
  %91 = zext i32 %90 to i64
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %92, i32 0, i32 12
  %94 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %93) #4
  %95 = icmp ult i64 %91, %94
  br i1 %95, label %96, label %106

96:                                               ; preds = %72
  %97 = getelementptr inbounds %"struct.spirv_cross::Compiler::BufferAccessHandler", ptr %20, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8, !tbaa !26
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = load i32, ptr %12, align 4, !tbaa !11
  %101 = add i32 %100, 1
  %102 = call noundef i32 @_ZNK11spirv_cross8Compiler25type_struct_member_offsetERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176) %98, ptr noundef nonnull align 8 dereferenceable(336) %99, i32 noundef %101)
  %103 = load i32, ptr %17, align 4, !tbaa !11
  %104 = sub i32 %102, %103
  %105 = zext i32 %104 to i64
  store i64 %105, ptr %18, align 8, !tbaa !27
  br label %112

106:                                              ; preds = %72
  %107 = getelementptr inbounds %"struct.spirv_cross::Compiler::BufferAccessHandler", ptr %20, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !26
  %109 = load ptr, ptr %16, align 8, !tbaa !5
  %110 = load i32, ptr %12, align 4, !tbaa !11
  %111 = call noundef i64 @_ZNK11spirv_cross8Compiler31get_declared_struct_member_sizeERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176) %108, ptr noundef nonnull align 8 dereferenceable(336) %109, i32 noundef %110)
  store i64 %111, ptr %18, align 8, !tbaa !27
  br label %112

112:                                              ; preds = %106, %96
  %113 = getelementptr inbounds %"struct.spirv_cross::Compiler::BufferAccessHandler", ptr %20, i32 0, i32 2
  %114 = load ptr, ptr %113, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #4
  %115 = getelementptr inbounds %"struct.spirv_cross::BufferRange", ptr %19, i32 0, i32 0
  %116 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %116, ptr %115, align 8, !tbaa !29
  %117 = getelementptr inbounds %"struct.spirv_cross::BufferRange", ptr %19, i32 0, i32 1
  %118 = load i32, ptr %17, align 4, !tbaa !11
  %119 = zext i32 %118 to i64
  store i64 %119, ptr %117, align 8, !tbaa !31
  %120 = getelementptr inbounds %"struct.spirv_cross::BufferRange", ptr %19, i32 0, i32 2
  %121 = load i64, ptr %18, align 8, !tbaa !27
  store i64 %121, ptr %120, align 8, !tbaa !32
  call void @_ZN11spirv_cross11SmallVectorINS_11BufferRangeELm8EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(216) %114, ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #4
  store i1 true, ptr %5, align 1
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %122

122:                                              ; preds = %112, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %123

123:                                              ; preds = %122, %48, %40
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  br label %124

124:                                              ; preds = %123, %29
  %125 = load i1, ptr %5, align 1
  ret i1 %125
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIjLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE4findERKj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3endISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56)) #3

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorINS_11BufferRangeELm8EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 8 dereferenceable(24)) #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !12, i64 24}
!18 = !{!"_ZTSN11spirv_cross8Compiler19BufferAccessHandlerE", !19, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !20, i64 32}
!19 = !{!"_ZTSN11spirv_cross8Compiler13OpcodeHandlerE"}
!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, !22, i64 8, !23, i64 16, !22, i64 24, !24, i64 32, !6, i64 48}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!24 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !25, i64 0, !22, i64 8}
!25 = !{!"float", !7, i64 0}
!26 = !{!18, !6, i64 8}
!27 = !{!22, !22, i64 0}
!28 = !{!18, !6, i64 16}
!29 = !{!30, !12, i64 0}
!30 = !{!"_ZTSN11spirv_cross11BufferRangeE", !12, i64 0, !22, i64 8, !22, i64 16}
!31 = !{!30, !22, i64 8}
!32 = !{!30, !22, i64 16}


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

%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.spirv_cross::BufferRange" = type { i32, i64, i64 }

; 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
declare dso_local noundef nonnull align 8 dereferenceable(336) ptr @_ZNK11spirv_cross8Compiler15expression_typeEj(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(360) ptr @_ZNK11spirv_cross8Compiler3getINS_12SPIRConstantEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross12SPIRConstant6scalarEjj(ptr noundef nonnull align 8 dereferenceable(360), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross8Compiler25type_struct_member_offsetERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK11spirv_cross8Compiler31get_declared_struct_member_sizeERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11spirv_cross8Compiler19BufferAccessHandler6handleEN3spv2OpEPKjj(ptr noundef nonnull align 8 dereferenceable(88) %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca %"struct.spirv_cross::BufferRange", align 8
  %9 = add i32 %1, -68
  %or.cond3 = icmp ult i32 %9, -3
  br i1 %or.cond3, label %61, label %10

10:                                               ; preds = %4
  %11 = icmp eq i32 %1, 67
  %12 = select i1 %11, i32 5, i32 4
  %.not21 = icmp ugt i32 %12, %3
  br i1 %.not21, label %61, label %13

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %2, i64 8
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = load i32, ptr %16, align 8, !tbaa !9
  %.not = icmp eq i32 %15, %17
  br i1 %.not, label %18, label %61

18:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !19
  %21 = select i1 %11, i64 4, i64 3
  %22 = getelementptr inbounds i32, ptr %2, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = tail call noundef nonnull align 8 dereferenceable(360) ptr @_ZNK11spirv_cross8Compiler3getINS_12SPIRConstantEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %20, i32 noundef %23)
  %25 = tail call noundef i32 @_ZNK11spirv_cross12SPIRConstant6scalarEjj(ptr noundef nonnull align 8 dereferenceable(360) %24, i32 noundef 0, i32 noundef 0)
  store i32 %25, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %26 = getelementptr inbounds i8, ptr %0, i64 32
  %27 = call ptr @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE4findERKj(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store ptr %27, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %28 = call ptr @_ZSt3endISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56) %26)
  store ptr %28, ptr %7, align 8
  %29 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIjLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br i1 %29, label %60, label %30

30:                                               ; preds = %18
  %31 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56) %26, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %32 = load ptr, ptr %19, align 8, !tbaa !19
  %33 = load i32, ptr %16, align 8, !tbaa !9
  %34 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZNK11spirv_cross8Compiler15expression_typeEj(ptr noundef nonnull align 8 dereferenceable(3176) %32, i32 noundef %33)
  %35 = load ptr, ptr %19, align 8, !tbaa !19
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = call noundef i32 @_ZNK11spirv_cross8Compiler25type_struct_member_offsetERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176) %35, ptr noundef nonnull align 8 dereferenceable(336) %34, i32 noundef %36)
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = add i32 %38, 1
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds i8, ptr %34, i64 136
  %42 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %41) #4
  %43 = icmp ugt i64 %42, %40
  %44 = load ptr, ptr %19, align 8, !tbaa !19
  %45 = load i32, ptr %5, align 4, !tbaa !5
  br i1 %43, label %46, label %51

46:                                               ; preds = %30
  %47 = add i32 %45, 1
  %48 = call noundef i32 @_ZNK11spirv_cross8Compiler25type_struct_member_offsetERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176) %44, ptr noundef nonnull align 8 dereferenceable(336) %34, i32 noundef %47)
  %49 = sub i32 %48, %37
  %50 = zext i32 %49 to i64
  br label %53

51:                                               ; preds = %30
  %52 = call noundef i64 @_ZNK11spirv_cross8Compiler31get_declared_struct_member_sizeERKNS_8SPIRTypeEj(ptr noundef nonnull align 8 dereferenceable(3176) %44, ptr noundef nonnull align 8 dereferenceable(336) %34, i32 noundef %45)
  br label %53

53:                                               ; preds = %51, %46
  %.0 = phi i64 [ %50, %46 ], [ %52, %51 ]
  %54 = getelementptr inbounds i8, ptr %0, i64 16
  %55 = load ptr, ptr %54, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  %56 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %56, ptr %8, align 8, !tbaa !21
  %57 = getelementptr inbounds i8, ptr %8, i64 8
  %58 = zext i32 %37 to i64
  store i64 %58, ptr %57, align 8, !tbaa !23
  %59 = getelementptr inbounds i8, ptr %8, i64 16
  store i64 %.0, ptr %59, align 8, !tbaa !24
  call void @_ZN11spirv_cross11SmallVectorINS_11BufferRangeELm8EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(216) %55, ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  br label %60

60:                                               ; preds = %18, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  br label %61

61:                                               ; preds = %60, %10, %13, %4
  %.2 = phi i1 [ true, %4 ], [ true, %13 ], [ false, %10 ], [ true, %60 ]
  ret i1 %.2
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIjLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE4findERKj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3endISt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorINS_11BufferRangeELm8EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 8 dereferenceable(24)) 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 24}
!10 = !{!"_ZTSN11spirv_cross8Compiler19BufferAccessHandlerE", !11, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !13, i64 32}
!11 = !{!"_ZTSN11spirv_cross8Compiler13OpcodeHandlerE"}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"_ZTSSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE", !14, i64 0}
!14 = !{!"_ZTSSt10_HashtableIjjSaIjENSt8__detail9_IdentityESt8equal_toIjESt4hashIjENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !12, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !12, i64 48}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !12, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !15, i64 8}
!18 = !{!"float", !7, i64 0}
!19 = !{!10, !12, i64 8}
!20 = !{!10, !12, i64 16}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSN11spirv_cross11BufferRangeE", !6, i64 0, !15, i64 8, !15, i64 16}
!23 = !{!22, !15, i64 8}
!24 = !{!22, !15, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass