; 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.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::SPIRBlock::Phi" = type { %"class.spirv_cross::TypedID.162", %"class.spirv_cross::TypedID.165", %"class.spirv_cross::TypedID.164" }
%"class.spirv_cross::TypedID.164" = type { i32 }
%"struct.spirv_cross::IVariant" = type <{ ptr, %"class.spirv_cross::TypedID.162", [4 x i8] }>
%"struct.spirv_cross::Instruction" = type { i16, i16, i32, i32 }
%"struct.spirv_cross::SPIRExtension" = type { %"struct.spirv_cross::IVariant.base", i32 }

; 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 ptr @_ZNK11spirv_cross10VectorViewINS_11InstructionEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK11spirv_cross8Compiler6streamERKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; 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(16) ptr @_ZNK11spirv_cross8Compiler3getINS_13SPIRExtensionEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK11spirv_cross8Compiler13block_is_noopERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 8 dereferenceable(976) %1) #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %25, i32 0, i32 1
  %27 = load i32, ptr %26, align 4, !tbaa !9
  %28 = icmp ne i32 %27, 1
  br i1 %28, label %29, label %30

29:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %165

30:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %31, i32 0, i32 4
  %33 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %32)
  %34 = call noundef nonnull align 8 dereferenceable(976) ptr @_ZNK11spirv_cross8Compiler3getINS_9SPIRBlockEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %24, i32 noundef %33)
  store ptr %34, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %35, i32 0, i32 14
  store ptr %36, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock3PhiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %37) #3
  store ptr %38, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock3PhiEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %39) #3
  store ptr %40, ptr %9, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %68, %30
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = icmp ne ptr %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 2, ptr %10, align 4
  br label %71

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %47, ptr %11, align 8, !tbaa !5
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock::Phi", ptr %48, i32 0, i32 1
  %50 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %49)
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %51, i32 0, i32 1
  %53 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %52)
  %54 = icmp eq i32 %50, %53
  br i1 %54, label %63, label %55

55:                                               ; preds = %46
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock::Phi", ptr %56, i32 0, i32 1
  %58 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %57)
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %59, i32 0, i32 1
  %61 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %60)
  %62 = icmp eq i32 %58, %61
  br i1 %62, label %63, label %64

63:                                               ; preds = %55, %46
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %65

64:                                               ; preds = %55
  store i32 0, ptr %10, align 4
  br label %65

65:                                               ; preds = %64, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  %66 = load i32, ptr %10, align 4
  switch i32 %66, label %71 [
    i32 0, label %67
  ]

67:                                               ; preds = %65
  br label %68

68:                                               ; preds = %67
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock::Phi", ptr %69, i32 1
  store ptr %70, ptr %8, align 8, !tbaa !5
  br label %41

71:                                               ; preds = %65, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  %72 = load i32, ptr %10, align 4
  switch i32 %72, label %164 [
    i32 2, label %73
  ]

73:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %74, i32 0, i32 14
  store ptr %75, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock3PhiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %76) #3
  store ptr %77, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock3PhiEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %78) #3
  store ptr %79, ptr %14, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %99, %73
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = icmp ne ptr %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  store i32 4, ptr %10, align 4
  br label %102

85:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %86, ptr %15, align 8, !tbaa !5
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock::Phi", ptr %87, i32 0, i32 1
  %89 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %88)
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %90, i32 0, i32 1
  %92 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %91)
  %93 = icmp eq i32 %89, %92
  br i1 %93, label %94, label %95

94:                                               ; preds = %85
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %96

95:                                               ; preds = %85
  store i32 0, ptr %10, align 4
  br label %96

96:                                               ; preds = %95, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  %97 = load i32, ptr %10, align 4
  switch i32 %97, label %102 [
    i32 0, label %98
  ]

98:                                               ; preds = %96
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock::Phi", ptr %100, i32 1
  store ptr %101, ptr %13, align 8, !tbaa !5
  br label %80

102:                                              ; preds = %96, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %103 = load i32, ptr %10, align 4
  switch i32 %103, label %164 [
    i32 4, label %104
  ]

104:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %105, i32 0, i32 13
  store ptr %106, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %107 = load ptr, ptr %16, align 8, !tbaa !5
  %108 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_11InstructionEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %107) #3
  store ptr %108, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %109 = load ptr, ptr %16, align 8, !tbaa !5
  %110 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_11InstructionEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %109) #3
  store ptr %110, ptr %18, align 8, !tbaa !5
  br label %111

111:                                              ; preds = %158, %104
  %112 = load ptr, ptr %17, align 8, !tbaa !5
  %113 = load ptr, ptr %18, align 8, !tbaa !5
  %114 = icmp ne ptr %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 6, ptr %10, align 4
  br label %161

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %117 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %117, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %118 = load ptr, ptr %19, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.spirv_cross::Instruction", ptr %118, i32 0, i32 0
  %120 = load i16, ptr %119, align 4, !tbaa !39
  %121 = zext i16 %120 to i32
  store i32 %121, ptr %20, align 4, !tbaa !42
  %122 = load i32, ptr %20, align 4, !tbaa !42
  switch i32 %122, label %150 [
    i32 8, label %123
    i32 317, label %123
    i32 12, label %124
  ]

123:                                              ; preds = %116, %116
  br label %151

124:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %125 = load ptr, ptr %19, align 8, !tbaa !5
  %126 = call noundef ptr @_ZNK11spirv_cross8Compiler6streamERKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(3176) %24, ptr noundef nonnull align 4 dereferenceable(12) %125)
  store ptr %126, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %127 = load ptr, ptr %21, align 8, !tbaa !5
  %128 = getelementptr inbounds i32, ptr %127, i64 2
  %129 = load i32, ptr %128, align 4, !tbaa !44
  %130 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK11spirv_cross8Compiler3getINS_13SPIRExtensionEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %24, i32 noundef %129)
  %131 = getelementptr inbounds %"struct.spirv_cross::SPIRExtension", ptr %130, i32 0, i32 1
  %132 = load i32, ptr %131, align 4, !tbaa !45
  store i32 %132, ptr %22, align 4, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #3
  %133 = load i32, ptr %22, align 4, !tbaa !48
  %134 = icmp eq i32 %133, 8
  br i1 %134, label %141, label %135

135:                                              ; preds = %124
  %136 = load i32, ptr %22, align 4, !tbaa !48
  %137 = icmp eq i32 %136, 2
  br i1 %137, label %141, label %138

138:                                              ; preds = %135
  %139 = load i32, ptr %22, align 4, !tbaa !48
  %140 = icmp eq i32 %139, 9
  br label %141

141:                                              ; preds = %138, %135, %124
  %142 = phi i1 [ true, %135 ], [ true, %124 ], [ %140, %138 ]
  %143 = zext i1 %142 to i8
  store i8 %143, ptr %23, align 1, !tbaa !49
  %144 = load i8, ptr %23, align 1, !tbaa !49, !range !50, !noundef !51
  %145 = trunc i8 %144 to i1
  br i1 %145, label %147, label %146

146:                                              ; preds = %141
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %148

147:                                              ; preds = %141
  store i32 8, ptr %10, align 4
  br label %148

148:                                              ; preds = %147, %146
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  %149 = load i32, ptr %10, align 4
  switch i32 %149, label %152 [
    i32 8, label %151
  ]

150:                                              ; preds = %116
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %152

151:                                              ; preds = %148, %123
  store i32 0, ptr %10, align 4
  br label %152

152:                                              ; preds = %151, %150, %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  %153 = load i32, ptr %10, align 4
  switch i32 %153, label %155 [
    i32 0, label %154
  ]

154:                                              ; preds = %152
  store i32 0, ptr %10, align 4
  br label %155

155:                                              ; preds = %154, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  %156 = load i32, ptr %10, align 4
  switch i32 %156, label %161 [
    i32 0, label %157
  ]

157:                                              ; preds = %155
  br label %158

158:                                              ; preds = %157
  %159 = load ptr, ptr %17, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.spirv_cross::Instruction", ptr %159, i32 1
  store ptr %160, ptr %17, align 8, !tbaa !5
  br label %111

161:                                              ; preds = %155, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  %162 = load i32, ptr %10, align 4
  switch i32 %162, label %164 [
    i32 6, label %163
  ]

163:                                              ; preds = %161
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %164

164:                                              ; preds = %163, %161, %102, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %165

165:                                              ; preds = %164, %29
  %166 = load i1, ptr %3, align 1
  ret i1 %166
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock3PhiEE3endEv(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 = { 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, !14, i64 12}
!10 = !{!"_ZTSN11spirv_cross9SPIRBlockE", !11, i64 0, !14, i64 12, !15, i64 16, !16, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !12, i64 36, !12, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !18, i64 56, !19, i64 72, !23, i64 192, !26, i64 312, !26, i64 400, !29, i64 488, !29, i64 640, !32, i64 792, !32, i64 793, !32, i64 794, !17, i64 796, !17, i64 800, !33, i64 808, !33, i64 864, !36, i64 920}
!11 = !{!"_ZTSN11spirv_cross8IVariantE", !12, i64 8}
!12 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSN11spirv_cross9SPIRBlock10TerminatorE", !7, i64 0}
!15 = !{!"_ZTSN11spirv_cross9SPIRBlock5MergeE", !7, i64 0}
!16 = !{!"_ZTSN11spirv_cross9SPIRBlock5HintsE", !7, i64 0}
!17 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !13, i64 0}
!18 = !{!"_ZTSN11spirv_cross9SPIRBlockUt1_E", !7, i64 0, !12, i64 12}
!19 = !{!"_ZTSN11spirv_cross11SmallVectorINS_11InstructionELm8EEE", !20, i64 0, !21, i64 16, !22, i64 24}
!20 = !{!"_ZTSN11spirv_cross10VectorViewINS_11InstructionEEE", !6, i64 0, !21, i64 8}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_11InstructionELm8EEE", !7, i64 0}
!23 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock3PhiELm8EEE", !24, i64 0, !21, i64 16, !25, i64 24}
!24 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock3PhiEEE", !6, i64 0, !21, i64 8}
!25 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock3PhiELm8EEE", !7, i64 0}
!26 = !{!"_ZTSN11spirv_cross11SmallVectorISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !27, i64 0, !21, i64 16, !28, i64 24}
!27 = !{!"_ZTSN11spirv_cross10VectorViewISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEEEE", !6, i64 0, !21, i64 8}
!28 = !{!"_ZTSN11spirv_cross13AlignedBufferISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !7, i64 0}
!29 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock4CaseELm8EEE", !30, i64 0, !21, i64 16, !31, i64 24}
!30 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock4CaseEEE", !6, i64 0, !21, i64 8}
!31 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock4CaseELm8EEE", !7, i64 0}
!32 = !{!"bool", !7, i64 0}
!33 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE2EEELm8EEE", !34, i64 0, !21, i64 16, !35, i64 24}
!34 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE2EEEEE", !6, i64 0, !21, i64 8}
!35 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE2EEELm8EEE", !7, i64 0}
!36 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !37, i64 0, !21, i64 16, !38, i64 24}
!37 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !6, i64 0, !21, i64 8}
!38 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}
!39 = !{!40, !41, i64 0}
!40 = !{!"_ZTSN11spirv_cross11InstructionE", !41, i64 0, !41, i64 2, !13, i64 4, !13, i64 8}
!41 = !{!"short", !7, i64 0}
!42 = !{!43, !43, i64 0}
!43 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!44 = !{!13, !13, i64 0}
!45 = !{!46, !47, i64 12}
!46 = !{!"_ZTSN11spirv_cross13SPIRExtensionE", !11, i64 0, !47, i64 12}
!47 = !{!"_ZTSN11spirv_cross13SPIRExtension9ExtensionE", !7, i64 0}
!48 = !{!47, !47, i64 0}
!49 = !{!32, !32, i64 0}
!50 = !{i8 0, i8 2}
!51 = !{}


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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK11spirv_cross8Compiler13block_is_noopERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 8 dereferenceable(976) %1) local_unnamed_addr #1 align 2 {
  %3 = getelementptr inbounds i8, ptr %1, i64 12
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %.not = icmp eq i32 %4, 1
  br i1 %.not, label %5, label %switch.edge

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %1, i64 24
  %7 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  %8 = tail call noundef nonnull align 8 dereferenceable(976) ptr @_ZNK11spirv_cross8Compiler3getINS_9SPIRBlockEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %7)
  %9 = getelementptr inbounds i8, ptr %1, i64 192
  %10 = tail call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock3PhiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #2
  %11 = tail call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock3PhiEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #2
  %.not6577 = icmp eq ptr %10, %11
  br i1 %.not6577, label %.critedge70, label %.lr.ph

.lr.ph:                                           ; preds = %5
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = getelementptr inbounds i8, ptr %8, i64 8
  br label %16

14:                                               ; preds = %.critedge
  %15 = getelementptr inbounds i8, ptr %.05478, i64 12
  %.not65 = icmp eq ptr %15, %11
  br i1 %.not65, label %.critedge70, label %16

16:                                               ; preds = %.lr.ph, %14
  %.05478 = phi ptr [ %10, %.lr.ph ], [ %15, %14 ]
  %17 = getelementptr inbounds i8, ptr %.05478, i64 4
  %18 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %17)
  %19 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %12)
  %20 = icmp eq i32 %18, %19
  br i1 %20, label %switch.edge, label %.critedge

.critedge:                                        ; preds = %16
  %21 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %17)
  %22 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %13)
  %23 = icmp eq i32 %21, %22
  br i1 %23, label %switch.edge, label %14

.critedge70:                                      ; preds = %14, %5
  %24 = getelementptr inbounds i8, ptr %8, i64 192
  %25 = tail call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock3PhiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %24) #2
  %26 = tail call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock3PhiEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %24) #2
  %.not6679 = icmp eq ptr %25, %26
  br i1 %.not6679, label %.critedge72, label %.lr.ph81

.lr.ph81:                                         ; preds = %.critedge70
  %27 = getelementptr inbounds i8, ptr %1, i64 8
  br label %30

28:                                               ; preds = %30
  %29 = getelementptr inbounds i8, ptr %.06280, i64 12
  %.not66 = icmp eq ptr %29, %26
  br i1 %.not66, label %.critedge72, label %30

30:                                               ; preds = %.lr.ph81, %28
  %.06280 = phi ptr [ %25, %.lr.ph81 ], [ %29, %28 ]
  %31 = getelementptr inbounds i8, ptr %.06280, i64 4
  %32 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %31)
  %33 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %27)
  %.not67 = icmp eq i32 %32, %33
  br i1 %.not67, label %switch.edge, label %28

.critedge72:                                      ; preds = %28, %.critedge70
  %34 = getelementptr inbounds i8, ptr %1, i64 72
  %35 = tail call noundef ptr @_ZNK11spirv_cross10VectorViewINS_11InstructionEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %34) #2
  %36 = tail call noundef ptr @_ZNK11spirv_cross10VectorViewINS_11InstructionEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %34) #2
  %.not6882 = icmp eq ptr %35, %36
  br i1 %.not6882, label %switch.edge, label %.lr.ph84

.lr.ph84:                                         ; preds = %.critedge72, %.critedge74
  %.06383 = phi ptr [ %45, %.critedge74 ], [ %35, %.critedge72 ]
  %37 = load i16, ptr %.06383, align 4, !tbaa !38
  switch i16 %37, label %switch.edge [
    i16 8, label %.critedge74
    i16 317, label %.critedge74
    i16 12, label %38
  ]

38:                                               ; preds = %.lr.ph84
  %39 = tail call noundef ptr @_ZNK11spirv_cross8Compiler6streamERKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 4 dereferenceable(12) %.06383)
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = load i32, ptr %40, align 4, !tbaa !41
  %42 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK11spirv_cross8Compiler3getINS_13SPIRExtensionEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %0, i32 noundef %41)
  %43 = getelementptr inbounds i8, ptr %42, i64 12
  %44 = load i32, ptr %43, align 4, !tbaa !42
  switch i32 %44, label %switch.edge [
    i32 8, label %.critedge74
    i32 2, label %.critedge74
    i32 9, label %.critedge74
  ]

.critedge74:                                      ; preds = %38, %38, %38, %.lr.ph84, %.lr.ph84
  %45 = getelementptr inbounds i8, ptr %.06383, i64 12
  %.not68 = icmp eq ptr %45, %36
  br i1 %.not68, label %switch.edge, label %.lr.ph84

switch.edge:                                      ; preds = %16, %.critedge, %30, %38, %.lr.ph84, %.critedge74, %.critedge72, %2
  %.12 = phi i1 [ false, %2 ], [ true, %.critedge72 ], [ false, %38 ], [ false, %.lr.ph84 ], [ true, %.critedge74 ], [ false, %30 ], [ false, %.critedge ], [ false, %16 ]
  ret i1 %.12
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(976) ptr @_ZNK11spirv_cross8Compiler3getINS_9SPIRBlockEEERKT_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 ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock3PhiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock3PhiEE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 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, !12, i64 12}
!6 = !{!"_ZTSN11spirv_cross9SPIRBlockE", !7, i64 0, !12, i64 12, !13, i64 16, !14, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !8, i64 36, !8, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !16, i64 56, !17, i64 72, !22, i64 192, !25, i64 312, !25, i64 400, !28, i64 488, !28, i64 640, !31, i64 792, !31, i64 793, !31, i64 794, !15, i64 796, !15, i64 800, !32, i64 808, !32, i64 864, !35, i64 920}
!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_cross9SPIRBlock10TerminatorE", !10, i64 0}
!13 = !{!"_ZTSN11spirv_cross9SPIRBlock5MergeE", !10, i64 0}
!14 = !{!"_ZTSN11spirv_cross9SPIRBlock5HintsE", !10, i64 0}
!15 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !9, i64 0}
!16 = !{!"_ZTSN11spirv_cross9SPIRBlockUt1_E", !10, i64 0, !8, i64 12}
!17 = !{!"_ZTSN11spirv_cross11SmallVectorINS_11InstructionELm8EEE", !18, i64 0, !20, i64 16, !21, i64 24}
!18 = !{!"_ZTSN11spirv_cross10VectorViewINS_11InstructionEEE", !19, i64 0, !20, i64 8}
!19 = !{!"any pointer", !10, i64 0}
!20 = !{!"long", !10, i64 0}
!21 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_11InstructionELm8EEE", !10, i64 0}
!22 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock3PhiELm8EEE", !23, i64 0, !20, i64 16, !24, i64 24}
!23 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock3PhiEEE", !19, i64 0, !20, i64 8}
!24 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock3PhiELm8EEE", !10, i64 0}
!25 = !{!"_ZTSN11spirv_cross11SmallVectorISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !26, i64 0, !20, i64 16, !27, i64 24}
!26 = !{!"_ZTSN11spirv_cross10VectorViewISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEEEE", !19, i64 0, !20, i64 8}
!27 = !{!"_ZTSN11spirv_cross13AlignedBufferISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !10, i64 0}
!28 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock4CaseELm8EEE", !29, i64 0, !20, i64 16, !30, i64 24}
!29 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock4CaseEEE", !19, i64 0, !20, i64 8}
!30 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock4CaseELm8EEE", !10, i64 0}
!31 = !{!"bool", !10, i64 0}
!32 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE2EEELm8EEE", !33, i64 0, !20, i64 16, !34, i64 24}
!33 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE2EEEEE", !19, i64 0, !20, i64 8}
!34 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE2EEELm8EEE", !10, i64 0}
!35 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !36, i64 0, !20, i64 16, !37, i64 24}
!36 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !19, i64 0, !20, i64 8}
!37 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !10, i64 0}
!38 = !{!39, !40, i64 0}
!39 = !{!"_ZTSN11spirv_cross11InstructionE", !40, i64 0, !40, i64 2, !9, i64 4, !9, i64 8}
!40 = !{!"short", !10, i64 0}
!41 = !{!9, !9, i64 0}
!42 = !{!43, !44, i64 12}
!43 = !{!"_ZTSN11spirv_cross13SPIRExtensionE", !7, i64 0, !44, i64 12}
!44 = !{!"_ZTSN11spirv_cross13SPIRExtension9ExtensionE", !10, i64 0}


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