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

; 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.spirv_cross::Compiler" = type { ptr, %"class.spirv_cross::ParsedIR", %"class.spirv_cross::SmallVector.92", %"class.spirv_cross::SmallVector.92", ptr, ptr, i32, %"class.std::unordered_set.95", i8, %"class.std::unordered_set", i8, i8, %"class.spirv_cross::SmallVector.114", %"class.spirv_cross::SmallVector.92", %"class.std::function", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.spirv_cross::Bitset", %"class.spirv_cross::Bitset", i32, i32, i8, %"class.std::unordered_set", i8, i8, i32, %"class.std::unordered_map.117", %"class.spirv_cross::SmallVector.92", %"class.std::unordered_map.131", %"class.std::unordered_set", i8, %"class.std::unordered_map.145" }
%"class.spirv_cross::ParsedIR" = type { %"class.std::unique_ptr", %"class.std::vector", %"class.spirv_cross::SmallVector", %"class.std::unordered_map", [14 x %"class.spirv_cross::SmallVector.7"], %"class.spirv_cross::SmallVector.7", %"class.spirv_cross::SmallVector.7", %"class.std::unordered_map.10", %"class.spirv_cross::SmallVector.24", %"class.spirv_cross::SmallVector.27", %"class.spirv_cross::SmallVector.30", %"class.std::unordered_map.33", %"class.std::unordered_map.52", %"class.spirv_cross::TypedID", %"struct.spirv_cross::ParsedIR::Source", i32, i32, i32, i32, %"class.std::__cxx11::basic_string", %"class.spirv_cross::Bitset", %"class.std::unordered_set" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.spirv_cross::SmallVector" = type { %"class.spirv_cross::VectorView", i64, %"class.spirv_cross::AlignedBuffer" }
%"class.spirv_cross::VectorView" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer" = type { [192 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.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] }
%"class.std::unordered_map.10" = type { %"class.std::_Hashtable.11" }
%"class.std::_Hashtable.11" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::SmallVector.24" = type { %"class.spirv_cross::VectorView.25", i64, %"class.spirv_cross::AlignedBuffer.26" }
%"class.spirv_cross::VectorView.25" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.26" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.27" = type { %"class.spirv_cross::VectorView.28", i64, %"class.spirv_cross::AlignedBuffer.29" }
%"class.spirv_cross::VectorView.28" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.29" = type { [256 x i8] }
%"class.spirv_cross::SmallVector.30" = type { %"class.spirv_cross::VectorView.31", i64, %"class.spirv_cross::AlignedBuffer.32" }
%"class.spirv_cross::VectorView.31" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.32" = type { [8 x i8] }
%"class.std::unordered_map.33" = type { %"class.std::_Hashtable.34" }
%"class.std::_Hashtable.34" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.52" = type { %"class.std::_Hashtable.53" }
%"class.std::_Hashtable.53" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::TypedID" = type { i32 }
%"struct.spirv_cross::ParsedIR::Source" = type <{ i32, i8, i8, i8, i8 }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::unordered_set.95" = type { %"class.std::_Hashtable.96" }
%"class.std::_Hashtable.96" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::SmallVector.114" = type { %"class.spirv_cross::VectorView.115", i64, %"class.spirv_cross::AlignedBuffer.116" }
%"class.spirv_cross::VectorView.115" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.116" = type { [96 x i8] }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.spirv_cross::Bitset" = type { i64, %"class.std::unordered_set" }
%"class.std::unordered_map.117" = type { %"class.std::_Hashtable.118" }
%"class.std::_Hashtable.118" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"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] }
%"class.std::unordered_map.131" = type { %"class.std::_Hashtable.132" }
%"class.std::_Hashtable.132" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", 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 }
%"class.std::unordered_map.145" = type { %"class.std::_Hashtable.146" }
%"class.std::_Hashtable.146" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.spirv_cross::SPIRVariable" = type { %"struct.spirv_cross::IVariant.base", %"class.spirv_cross::TypedID.163", i32, i32, %"class.spirv_cross::TypedID.162", %"class.spirv_cross::TypedID.164", %"class.spirv_cross::SmallVector.92", i8, i8, %"class.spirv_cross::TypedID.162", %"class.spirv_cross::SmallVector.7", i8, i8, i8, i8, i32, %"class.spirv_cross::TypedID.165", i8, i8, i8, ptr }
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.162" }>
%"class.spirv_cross::TypedID.163" = type { i32 }
%"class.spirv_cross::TypedID.164" = type { i32 }
%"class.spirv_cross::TypedID.162" = type { i32 }
%"class.spirv_cross::TypedID.165" = type { i32 }
%"struct.spirv_cross::SPIRAccessChain" = type { %"struct.spirv_cross::IVariant.base", %"class.spirv_cross::TypedID.163", i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, %"class.spirv_cross::TypedID.164", i32, i32, i8, i8, %"class.spirv_cross::SmallVector.7" }
%"struct.spirv_cross::SPIRExpression" = type <{ %"struct.spirv_cross::IVariant.base", %"class.spirv_cross::TypedID.162", %"class.std::__cxx11::basic_string", %"class.spirv_cross::TypedID.163", %"class.spirv_cross::TypedID.162", i8, i8, i8, i8, [4 x i8], %"class.spirv_cross::SmallVector.7", %"class.spirv_cross::SmallVector.7", %"class.spirv_cross::SmallVector.7", i32, [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 nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK11spirv_cross8Compiler12is_immutableEj(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %1) #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %8 = load ptr, ptr %4, align 8
  %9 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %8, i32 0, i32 1
  %10 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %9, i32 0, i32 2
  %11 = load i32, ptr %5, align 4, !tbaa !9
  %12 = zext i32 %11 to i64
  %13 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %12) #3
  %14 = call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %13)
  %15 = icmp eq i32 %14, 2
  br i1 %15, label %16, label %37

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %17 = load i32, ptr %5, align 4, !tbaa !9
  %18 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNK11spirv_cross8Compiler3getINS_12SPIRVariableEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %8, i32 noundef %17)
  store ptr %18, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %19, i32 0, i32 2
  %21 = load i32, ptr %20, align 8, !tbaa !11
  %22 = icmp eq i32 %21, 0
  %23 = zext i1 %22 to i8
  store i8 %23, ptr %7, align 1, !tbaa !27
  %24 = load i8, ptr %7, align 1, !tbaa !27, !range !28, !noundef !29
  %25 = trunc i8 %24 to i1
  br i1 %25, label %35, label %26

26:                                               ; preds = %16
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.spirv_cross::SPIRVariable", ptr %27, i32 0, i32 12
  %29 = load i8, ptr %28, align 1, !tbaa !30, !range !28, !noundef !29
  %30 = trunc i8 %29 to i1
  br i1 %30, label %35, label %31

31:                                               ; preds = %26
  %32 = load i32, ptr %5, align 4, !tbaa !9
  %33 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler20expression_is_lvalueEj(ptr noundef nonnull align 8 dereferenceable(3176) %8, i32 noundef %32)
  %34 = xor i1 %33, true
  br label %35

35:                                               ; preds = %31, %26, %16
  %36 = phi i1 [ true, %26 ], [ true, %16 ], [ %34, %31 ]
  store i1 %36, ptr %3, align 1
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %91

37:                                               ; preds = %2
  %38 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %8, i32 0, i32 1
  %39 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %38, i32 0, i32 2
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %39, i64 noundef %41) #3
  %43 = call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %42)
  %44 = icmp eq i32 %43, 11
  br i1 %44, label %45, label %51

45:                                               ; preds = %37
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK11spirv_cross8Compiler3getINS_15SPIRAccessChainEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %8, i32 noundef %46)
  %48 = getelementptr inbounds %"struct.spirv_cross::SPIRAccessChain", ptr %47, i32 0, i32 10
  %49 = load i8, ptr %48, align 1, !tbaa !31, !range !28, !noundef !29
  %50 = trunc i8 %49 to i1
  store i1 %50, ptr %3, align 1
  br label %91

51:                                               ; preds = %37
  %52 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %8, i32 0, i32 1
  %53 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %52, i32 0, i32 2
  %54 = load i32, ptr %5, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %53, i64 noundef %55) #3
  %57 = call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %56)
  %58 = icmp eq i32 %57, 8
  br i1 %58, label %59, label %65

59:                                               ; preds = %51
  %60 = load i32, ptr %5, align 4, !tbaa !9
  %61 = call noundef nonnull align 8 dereferenceable(236) ptr @_ZNK11spirv_cross8Compiler3getINS_14SPIRExpressionEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %8, i32 noundef %60)
  %62 = getelementptr inbounds %"struct.spirv_cross::SPIRExpression", ptr %61, i32 0, i32 5
  %63 = load i8, ptr %62, align 8, !tbaa !35, !range !28, !noundef !29
  %64 = trunc i8 %63 to i1
  store i1 %64, ptr %3, align 1
  br label %91

65:                                               ; preds = %51
  %66 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %8, i32 0, i32 1
  %67 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %66, i32 0, i32 2
  %68 = load i32, ptr %5, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %67, i64 noundef %69) #3
  %71 = call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %70)
  %72 = icmp eq i32 %71, 3
  br i1 %72, label %89, label %73

73:                                               ; preds = %65
  %74 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %8, i32 0, i32 1
  %75 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %74, i32 0, i32 2
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %75, i64 noundef %77) #3
  %79 = call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %78)
  %80 = icmp eq i32 %79, 9
  br i1 %80, label %89, label %81

81:                                               ; preds = %73
  %82 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %8, i32 0, i32 1
  %83 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %82, i32 0, i32 2
  %84 = load i32, ptr %5, align 4, !tbaa !9
  %85 = zext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %83, i64 noundef %85) #3
  %87 = call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %86)
  %88 = icmp eq i32 %87, 12
  br i1 %88, label %89, label %90

89:                                               ; preds = %81, %73, %65
  store i1 true, ptr %3, align 1
  br label %91

90:                                               ; preds = %81
  store i1 false, ptr %3, align 1
  br label %91

91:                                               ; preds = %90, %89, %59, %45, %35
  %92 = load i1, ptr %3, align 1
  ret i1 %92
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross8Compiler20expression_is_lvalueEj(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) #2 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 = { 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, !16, i64 16}
!12 = !{!"_ZTSN11spirv_cross12SPIRVariableE", !13, i64 0, !15, i64 12, !16, i64 16, !10, i64 20, !14, i64 24, !17, i64 28, !18, i64 32, !22, i64 88, !22, i64 89, !14, i64 92, !23, i64 96, !22, i64 152, !22, i64 153, !22, i64 154, !22, i64 155, !10, i64 156, !26, i64 160, !22, i64 164, !22, i64 165, !22, i64 166, !6, i64 168}
!13 = !{!"_ZTSN11spirv_cross8IVariantE", !14, i64 8}
!14 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !10, i64 0}
!15 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !10, i64 0}
!16 = !{!"_ZTSN3spv12StorageClassE", !7, i64 0}
!17 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE2EEE", !10, i64 0}
!18 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !19, i64 0, !20, i64 16, !21, i64 24}
!19 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !6, i64 0, !20, i64 8}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !24, i64 0, !20, i64 16, !25, i64 24}
!24 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !6, i64 0, !20, i64 8}
!25 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}
!26 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !10, i64 0}
!27 = !{!22, !22, i64 0}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!12, !22, i64 153}
!31 = !{!32, !22, i64 105}
!32 = !{!"_ZTSN11spirv_cross15SPIRAccessChainE", !13, i64 0, !15, i64 12, !16, i64 16, !33, i64 24, !33, i64 56, !10, i64 88, !17, i64 92, !10, i64 96, !10, i64 100, !22, i64 104, !22, i64 105, !23, i64 112}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !34, i64 0, !20, i64 8, !7, i64 16}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!35 = !{!36, !22, i64 56}
!36 = !{!"_ZTSN11spirv_cross14SPIRExpressionE", !13, i64 0, !14, i64 12, !33, i64 16, !15, i64 48, !14, i64 52, !22, i64 56, !22, i64 57, !22, i64 58, !22, i64 59, !23, i64 64, !23, i64 120, !23, i64 176, !10, i64 232}


; 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 nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK11spirv_cross8Compiler12is_immutableEj(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %1) local_unnamed_addr #1 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 40
  %4 = zext i32 %1 to i64
  %5 = tail call noundef nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %4) #2
  %6 = tail call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %5)
  %7 = icmp eq i32 %6, 2
  br i1 %7, label %8, label %20

8:                                                ; preds = %2
  %9 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNK11spirv_cross8Compiler3getINS_12SPIRVariableEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %1)
  %10 = getelementptr inbounds i8, ptr %9, i64 16
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %50, label %13

13:                                               ; preds = %8
  %14 = getelementptr inbounds i8, ptr %9, i64 153
  %15 = load i8, ptr %14, align 1, !tbaa !25, !range !26, !noundef !27
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %50, label %17

17:                                               ; preds = %13
  %18 = tail call noundef zeroext i1 @_ZNK11spirv_cross8Compiler20expression_is_lvalueEj(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %1)
  %19 = xor i1 %18, true
  br label %50

20:                                               ; preds = %2
  %21 = tail call noundef nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %4) #2
  %22 = tail call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %21)
  %23 = icmp eq i32 %22, 11
  br i1 %23, label %24, label %29

24:                                               ; preds = %20
  %25 = tail call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK11spirv_cross8Compiler3getINS_15SPIRAccessChainEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %1)
  %26 = getelementptr inbounds i8, ptr %25, i64 105
  %27 = load i8, ptr %26, align 1, !tbaa !28, !range !26, !noundef !27
  %28 = trunc nuw i8 %27 to i1
  br label %50

29:                                               ; preds = %20
  %30 = tail call noundef nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %4) #2
  %31 = tail call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %30)
  %32 = icmp eq i32 %31, 8
  br i1 %32, label %33, label %38

33:                                               ; preds = %29
  %34 = tail call noundef nonnull align 8 dereferenceable(236) ptr @_ZNK11spirv_cross8Compiler3getINS_14SPIRExpressionEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %1)
  %35 = getelementptr inbounds i8, ptr %34, i64 56
  %36 = load i8, ptr %35, align 8, !tbaa !32, !range !26, !noundef !27
  %37 = trunc nuw i8 %36 to i1
  br label %50

38:                                               ; preds = %29
  %39 = tail call noundef nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %4) #2
  %40 = tail call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %39)
  %41 = icmp eq i32 %40, 3
  br i1 %41, label %50, label %42

42:                                               ; preds = %38
  %43 = tail call noundef nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %4) #2
  %44 = tail call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %43)
  %45 = icmp eq i32 %44, 9
  br i1 %45, label %50, label %46

46:                                               ; preds = %42
  %47 = tail call noundef nonnull align 8 dereferenceable(21) ptr @_ZNK11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %4) #2
  %48 = tail call noundef i32 @_ZNK11spirv_cross7Variant8get_typeEv(ptr noundef nonnull align 8 dereferenceable(21) %47)
  %49 = icmp eq i32 %48, 12
  br label %50

50:                                               ; preds = %46, %38, %42, %8, %13, %17, %33, %24
  %.0 = phi i1 [ %28, %24 ], [ %37, %33 ], [ true, %13 ], [ true, %8 ], [ %19, %17 ], [ true, %42 ], [ true, %38 ], [ %49, %46 ]
  ret i1 %.0
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(176) ptr @_ZNK11spirv_cross8Compiler3getINS_12SPIRVariableEEERKT_j(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(236) ptr @_ZNK11spirv_cross8Compiler3getINS_14SPIRExpressionEEERKT_j(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(168) ptr @_ZNK11spirv_cross8Compiler3getINS_15SPIRAccessChainEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) local_unnamed_addr #1 align 2

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

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" }
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 = { 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, !13, i64 16}
!6 = !{!"_ZTSN11spirv_cross12SPIRVariableE", !7, i64 0, !12, i64 12, !13, i64 16, !9, i64 20, !8, i64 24, !14, i64 28, !15, i64 32, !20, i64 88, !20, i64 89, !8, i64 92, !21, i64 96, !20, i64 152, !20, i64 153, !20, i64 154, !20, i64 155, !9, i64 156, !24, i64 160, !20, i64 164, !20, i64 165, !20, i64 166, !17, i64 168}
!7 = !{!"_ZTSN11spirv_cross8IVariantE", !8, i64 8}
!8 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !9, i64 0}
!13 = !{!"_ZTSN3spv12StorageClassE", !10, i64 0}
!14 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE2EEE", !9, i64 0}
!15 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !16, i64 0, !18, i64 16, !19, i64 24}
!16 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !17, i64 0, !18, i64 8}
!17 = !{!"any pointer", !10, i64 0}
!18 = !{!"long", !10, i64 0}
!19 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !10, i64 0}
!20 = !{!"bool", !10, i64 0}
!21 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !22, i64 0, !18, i64 16, !23, i64 24}
!22 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !17, i64 0, !18, i64 8}
!23 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !10, i64 0}
!24 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !9, i64 0}
!25 = !{!6, !20, i64 153}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!29, !20, i64 105}
!29 = !{!"_ZTSN11spirv_cross15SPIRAccessChainE", !7, i64 0, !12, i64 12, !13, i64 16, !30, i64 24, !30, i64 56, !9, i64 88, !14, i64 92, !9, i64 96, !9, i64 100, !20, i64 104, !20, i64 105, !21, i64 112}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !31, i64 0, !18, i64 8, !10, i64 16}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !17, i64 0}
!32 = !{!33, !20, i64 56}
!33 = !{!"_ZTSN11spirv_cross14SPIRExpressionE", !7, i64 0, !8, i64 12, !30, i64 16, !12, i64 48, !8, i64 52, !20, i64 56, !20, i64 57, !20, i64 58, !20, i64 59, !21, i64 64, !21, i64 120, !21, i64 176, !9, i64 232}


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