; 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::Instruction" = type { i16, i16, i32, 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 uwtable
define dso_local noundef zeroext i1 @_ZN11spirv_cross8Compiler36may_read_undefined_variable_in_blockERKNS_9SPIRBlockEj(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 8 dereferenceable(976) %1, i32 noundef %2) #2 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %18 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %19, i32 0, i32 13
  store ptr %20, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_11InstructionEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #3
  store ptr %22, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_11InstructionEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #3
  store ptr %24, ptr %10, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %154, %3
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = icmp ne ptr %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  store i32 2, ptr %11, align 4
  br label %157

30:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %31, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = call noundef ptr @_ZNK11spirv_cross8Compiler6streamERKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(3176) %18, ptr noundef nonnull align 4 dereferenceable(12) %32)
  store ptr %33, ptr %13, align 8, !tbaa !5
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.spirv_cross::Instruction", ptr %34, i32 0, i32 0
  %36 = load i16, ptr %35, align 4, !tbaa !11
  %37 = zext i16 %36 to i32
  switch i32 %37, label %146 [
    i32 62, label %38
    i32 63, label %38
    i32 65, label %46
    i32 66, label %46
    i32 67, label %46
    i32 169, label %54
    i32 245, label %68
    i32 83, label %103
    i32 61, label %103
    i32 57, label %111
  ]

38:                                               ; preds = %30, %30
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  %40 = getelementptr inbounds i32, ptr %39, i64 0
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = icmp eq i32 %41, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %38
  store i1 false, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %148

45:                                               ; preds = %38
  br label %147

46:                                               ; preds = %30, %30, %30
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  %48 = getelementptr inbounds i32, ptr %47, i64 2
  %49 = load i32, ptr %48, align 4, !tbaa !9
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = icmp eq i32 %49, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %46
  store i1 true, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %148

53:                                               ; preds = %46
  br label %147

54:                                               ; preds = %30
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = getelementptr inbounds i32, ptr %55, i64 3
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = load i32, ptr %7, align 4, !tbaa !9
  %59 = icmp eq i32 %57, %58
  br i1 %59, label %66, label %60

60:                                               ; preds = %54
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = getelementptr inbounds i32, ptr %61, i64 4
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = load i32, ptr %7, align 4, !tbaa !9
  %65 = icmp eq i32 %63, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %60, %54
  store i1 true, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %148

67:                                               ; preds = %60
  br label %147

68:                                               ; preds = %30
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.spirv_cross::Instruction", ptr %69, i32 0, i32 3
  %71 = load i32, ptr %70, align 4, !tbaa !14
  %72 = icmp ult i32 %71, 2
  br i1 %72, label %73, label %74

73:                                               ; preds = %68
  br label %147

74:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.spirv_cross::Instruction", ptr %75, i32 0, i32 3
  %77 = load i32, ptr %76, align 4, !tbaa !14
  %78 = sub i32 %77, 2
  store i32 %78, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %95, %74
  %80 = load i32, ptr %15, align 4, !tbaa !9
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = icmp ult i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  store i32 5, ptr %11, align 4
  br label %98

84:                                               ; preds = %79
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = load i32, ptr %15, align 4, !tbaa !9
  %87 = add i32 %86, 2
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds i32, ptr %85, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %91 = load i32, ptr %7, align 4, !tbaa !9
  %92 = icmp eq i32 %90, %91
  br i1 %92, label %93, label %94

93:                                               ; preds = %84
  store i1 true, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %98

94:                                               ; preds = %84
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %15, align 4, !tbaa !9
  %97 = add i32 %96, 2
  store i32 %97, ptr %15, align 4, !tbaa !9
  br label %79, !llvm.loop !15

98:                                               ; preds = %93, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  %99 = load i32, ptr %11, align 4
  switch i32 %99, label %101 [
    i32 5, label %100
  ]

100:                                              ; preds = %98
  store i32 4, ptr %11, align 4
  br label %101

101:                                              ; preds = %100, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  %102 = load i32, ptr %11, align 4
  switch i32 %102, label %148 [
    i32 4, label %147
  ]

103:                                              ; preds = %30, %30
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds i32, ptr %104, i64 2
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = load i32, ptr %7, align 4, !tbaa !9
  %108 = icmp eq i32 %106, %107
  br i1 %108, label %109, label %110

109:                                              ; preds = %103
  store i1 true, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %148

110:                                              ; preds = %103
  br label %147

111:                                              ; preds = %30
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.spirv_cross::Instruction", ptr %112, i32 0, i32 3
  %114 = load i32, ptr %113, align 4, !tbaa !14
  %115 = icmp ult i32 %114, 3
  br i1 %115, label %116, label %117

116:                                              ; preds = %111
  br label %147

117:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.spirv_cross::Instruction", ptr %118, i32 0, i32 3
  %120 = load i32, ptr %119, align 4, !tbaa !14
  %121 = sub i32 %120, 3
  store i32 %121, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %138, %117
  %123 = load i32, ptr %17, align 4, !tbaa !9
  %124 = load i32, ptr %16, align 4, !tbaa !9
  %125 = icmp ult i32 %123, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %122
  store i32 8, ptr %11, align 4
  br label %141

127:                                              ; preds = %122
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = load i32, ptr %17, align 4, !tbaa !9
  %130 = add i32 %129, 3
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds i32, ptr %128, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = load i32, ptr %7, align 4, !tbaa !9
  %135 = icmp eq i32 %133, %134
  br i1 %135, label %136, label %137

136:                                              ; preds = %127
  store i1 true, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %141

137:                                              ; preds = %127
  br label %138

138:                                              ; preds = %137
  %139 = load i32, ptr %17, align 4, !tbaa !9
  %140 = add i32 %139, 1
  store i32 %140, ptr %17, align 4, !tbaa !9
  br label %122, !llvm.loop !17

141:                                              ; preds = %136, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  %142 = load i32, ptr %11, align 4
  switch i32 %142, label %144 [
    i32 8, label %143
  ]

143:                                              ; preds = %141
  store i32 4, ptr %11, align 4
  br label %144

144:                                              ; preds = %143, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  %145 = load i32, ptr %11, align 4
  switch i32 %145, label %148 [
    i32 4, label %147
  ]

146:                                              ; preds = %30
  br label %147

147:                                              ; preds = %146, %144, %116, %110, %101, %73, %67, %53, %45
  store i32 0, ptr %11, align 4
  br label %148

148:                                              ; preds = %147, %144, %109, %101, %66, %52, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  %149 = load i32, ptr %11, align 4
  switch i32 %149, label %151 [
    i32 0, label %150
  ]

150:                                              ; preds = %148
  store i32 0, ptr %11, align 4
  br label %151

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

153:                                              ; preds = %151
  br label %154

154:                                              ; preds = %153
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.spirv_cross::Instruction", ptr %155, i32 1
  store ptr %156, ptr %9, align 8, !tbaa !5
  br label %25

157:                                              ; preds = %151, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %158 = load i32, ptr %11, align 4
  switch i32 %158, label %162 [
    i32 2, label %159
    i32 1, label %160
  ]

159:                                              ; preds = %157
  store i1 true, ptr %4, align 1
  br label %160

160:                                              ; preds = %159, %157
  %161 = load i1, ptr %4, align 1
  ret i1 %161

162:                                              ; preds = %157
  unreachable
}

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, !13, i64 0}
!12 = !{!"_ZTSN11spirv_cross11InstructionE", !13, i64 0, !13, i64 2, !10, i64 4, !10, i64 8}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !10, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !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"

; 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 uwtable
define dso_local noundef zeroext i1 @_ZN11spirv_cross8Compiler36may_read_undefined_variable_in_blockERKNS_9SPIRBlockEj(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 8 dereferenceable(976) %1, i32 noundef %2) local_unnamed_addr #1 align 2 {
  %4 = getelementptr inbounds i8, ptr %1, i64 72
  %5 = tail call noundef ptr @_ZNK11spirv_cross10VectorViewINS_11InstructionEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #2
  %6 = tail call noundef ptr @_ZNK11spirv_cross10VectorViewINS_11InstructionEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #2
  %.not79 = icmp eq ptr %5, %6
  br i1 %.not79, label %.thread67, label %.lr.ph82

.lr.ph82:                                         ; preds = %3, %.loopexit
  %.05280 = phi ptr [ %49, %.loopexit ], [ %5, %3 ]
  %7 = tail call noundef ptr @_ZNK11spirv_cross8Compiler6streamERKNS_11InstructionE(ptr noundef nonnull align 8 dereferenceable(3176) %0, ptr noundef nonnull align 4 dereferenceable(12) %.05280)
  %8 = load i16, ptr %.05280, align 4, !tbaa !5
  switch i16 %8, label %.loopexit [
    i16 62, label %9
    i16 63, label %9
    i16 65, label %12
    i16 66, label %12
    i16 67, label %12
    i16 169, label %16
    i16 245, label %24
    i16 83, label %36
    i16 61, label %36
    i16 57, label %40
  ]

9:                                                ; preds = %.lr.ph82, %.lr.ph82
  %10 = load i32, ptr %7, align 4, !tbaa !11
  %11 = icmp eq i32 %10, %2
  br i1 %11, label %.thread67, label %.loopexit

12:                                               ; preds = %.lr.ph82, %.lr.ph82, %.lr.ph82
  %13 = getelementptr inbounds i8, ptr %7, i64 8
  %14 = load i32, ptr %13, align 4, !tbaa !11
  %15 = icmp eq i32 %14, %2
  br i1 %15, label %.thread67, label %.loopexit

16:                                               ; preds = %.lr.ph82
  %17 = getelementptr inbounds i8, ptr %7, i64 12
  %18 = load i32, ptr %17, align 4, !tbaa !11
  %19 = icmp eq i32 %18, %2
  br i1 %19, label %.thread67, label %20

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %7, i64 16
  %22 = load i32, ptr %21, align 4, !tbaa !11
  %23 = icmp eq i32 %22, %2
  br i1 %23, label %.thread67, label %.loopexit

24:                                               ; preds = %.lr.ph82
  %25 = getelementptr inbounds i8, ptr %.05280, i64 8
  %26 = load i32, ptr %25, align 4, !tbaa !12
  %27 = icmp ult i32 %26, 2
  br i1 %27, label %.loopexit, label %28

28:                                               ; preds = %24
  %29 = add i32 %26, -2
  %30 = zext i32 %29 to i64
  br label %31

31:                                               ; preds = %32, %28
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %32 ], [ 0, %28 ]
  %.not61 = icmp ult i64 %indvars.iv105, %30
  br i1 %.not61, label %32, label %.loopexit

32:                                               ; preds = %31
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 2
  %33 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next106
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = icmp eq i32 %34, %2
  br i1 %35, label %.thread67, label %31, !llvm.loop !13

36:                                               ; preds = %.lr.ph82, %.lr.ph82
  %37 = getelementptr inbounds i8, ptr %7, i64 8
  %38 = load i32, ptr %37, align 4, !tbaa !11
  %39 = icmp eq i32 %38, %2
  br i1 %39, label %.thread67, label %.loopexit

40:                                               ; preds = %.lr.ph82
  %41 = getelementptr inbounds i8, ptr %.05280, i64 8
  %42 = load i32, ptr %41, align 4, !tbaa !12
  %43 = icmp ult i32 %42, 3
  br i1 %43, label %.loopexit, label %44

44:                                               ; preds = %40
  %45 = add i32 %42, -3
  %.not6077.not = icmp eq i32 %45, 0
  br i1 %.not6077.not, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %44
  %wide.trip.count = zext i32 %45 to i64
  %invariant.gep = getelementptr inbounds i8, ptr %7, i64 12
  br label %.lr.ph

46:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !15

.lr.ph:                                           ; preds = %.lr.ph.preheader, %46
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %46 ]
  %gep = getelementptr inbounds i32, ptr %invariant.gep, i64 %indvars.iv
  %47 = load i32, ptr %gep, align 4, !tbaa !11
  %48 = icmp eq i32 %47, %2
  br i1 %48, label %.thread67, label %46

.loopexit:                                        ; preds = %46, %31, %44, %.lr.ph82, %40, %36, %24, %20, %12, %9
  %49 = getelementptr inbounds i8, ptr %.05280, i64 12
  %.not = icmp eq ptr %49, %6
  br i1 %.not, label %.thread67, label %.lr.ph82

.thread67:                                        ; preds = %.loopexit, %9, %12, %20, %16, %36, %.lr.ph, %32, %3
  %.not76 = phi i1 [ true, %3 ], [ false, %32 ], [ false, %.lr.ph ], [ true, %.loopexit ], [ false, %9 ], [ false, %12 ], [ false, %20 ], [ false, %16 ], [ false, %36 ]
  %.5 = phi i1 [ undef, %3 ], [ true, %32 ], [ true, %.lr.ph ], [ undef, %.loopexit ], [ false, %9 ], [ true, %12 ], [ true, %20 ], [ true, %16 ], [ true, %36 ]
  %spec.select = or i1 %.not76, %.5
  ret i1 %spec.select
}

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, !7, i64 0}
!6 = !{!"_ZTSN11spirv_cross11InstructionE", !7, i64 0, !7, i64 2, !10, i64 4, !10, i64 8}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!6, !10, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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