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

; 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::DominatorBuilder" = type <{ ptr, i32, [4 x i8] }>
%"struct.spirv_cross::SPIRBlock" = type { %"struct.spirv_cross::IVariant.base", i32, i32, i32, %"class.spirv_cross::TypedID.209", %"class.spirv_cross::TypedID.209", %"class.spirv_cross::TypedID.209", %"class.spirv_cross::TypedID.201", %"class.spirv_cross::TypedID.201", %"class.spirv_cross::TypedID.209", %"class.spirv_cross::TypedID.209", %"class.spirv_cross::TypedID.209", %struct.anon, %"class.spirv_cross::SmallVector.218", %"class.spirv_cross::SmallVector.221", %"class.spirv_cross::SmallVector.224", %"class.spirv_cross::SmallVector.224", %"class.spirv_cross::SmallVector.227", %"class.spirv_cross::SmallVector.227", i8, i8, i8, %"class.spirv_cross::TypedID.209", %"class.spirv_cross::TypedID.209", %"class.spirv_cross::SmallVector.206", %"class.spirv_cross::SmallVector.206", %"class.spirv_cross::SmallVector.57" }
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.201" }>
%"class.spirv_cross::TypedID.201" = type { i32 }
%struct.anon = type { [3 x %"class.spirv_cross::TypedID.201"], %"class.spirv_cross::TypedID.201" }
%"class.spirv_cross::SmallVector.218" = type { %"class.spirv_cross::VectorView.219", i64, %"class.spirv_cross::AlignedBuffer.220" }
%"class.spirv_cross::VectorView.219" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.220" = type { [96 x i8] }
%"class.spirv_cross::SmallVector.221" = type { %"class.spirv_cross::VectorView.222", i64, %"class.spirv_cross::AlignedBuffer.223" }
%"class.spirv_cross::VectorView.222" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.223" = type { [96 x i8] }
%"class.spirv_cross::SmallVector.224" = type { %"class.spirv_cross::VectorView.225", i64, %"class.spirv_cross::AlignedBuffer.226" }
%"class.spirv_cross::VectorView.225" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.226" = type { [64 x i8] }
%"class.spirv_cross::SmallVector.227" = type { %"class.spirv_cross::VectorView.228", i64, %"class.spirv_cross::AlignedBuffer.229" }
%"class.spirv_cross::VectorView.228" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.229" = type { [128 x i8] }
%"class.spirv_cross::TypedID.209" = type { i32 }
%"class.spirv_cross::SmallVector.206" = type { %"class.spirv_cross::VectorView.207", i64, %"class.spirv_cross::AlignedBuffer.208" }
%"class.spirv_cross::VectorView.207" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.208" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.57" = type { %"class.spirv_cross::VectorView.58", i64, %"class.spirv_cross::AlignedBuffer.59" }
%"class.spirv_cross::VectorView.58" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.59" = type { [32 x i8] }
%"struct.spirv_cross::SPIRBlock::Case" = type <{ i64, %"class.spirv_cross::TypedID.209", [4 x i8] }>
%"struct.spirv_cross::SPIRFunction" = type <{ %"struct.spirv_cross::IVariant.base", %"class.spirv_cross::TypedID.202", %"class.spirv_cross::TypedID.202", [4 x i8], %"class.spirv_cross::SmallVector.203", %"class.spirv_cross::SmallVector.203", %"class.spirv_cross::SmallVector.206", %"class.spirv_cross::TypedID.209", [4 x i8], %"class.spirv_cross::SmallVector.210", %"class.spirv_cross::SmallVector.213", %"struct.spirv_cross::SPIRFunction::EntryLine", %"class.spirv_cross::SmallVector.216", %"class.spirv_cross::SmallVector.216", %"class.spirv_cross::SmallVector.57", i8, i8, i8, [5 x i8] }>
%"class.spirv_cross::TypedID.202" = type { i32 }
%"class.spirv_cross::SmallVector.203" = type { %"class.spirv_cross::VectorView.204", i64, %"class.spirv_cross::AlignedBuffer.205" }
%"class.spirv_cross::VectorView.204" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.205" = type { [160 x i8] }
%"class.spirv_cross::SmallVector.210" = type { %"class.spirv_cross::VectorView.211", i64, %"class.spirv_cross::AlignedBuffer.212" }
%"class.spirv_cross::VectorView.211" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.212" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.213" = type { %"class.spirv_cross::VectorView.214", i64, %"class.spirv_cross::AlignedBuffer.215" }
%"class.spirv_cross::VectorView.214" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.215" = type { [128 x i8] }
%"struct.spirv_cross::SPIRFunction::EntryLine" = type { i32, i32 }
%"class.spirv_cross::SmallVector.216" = type <{ %"class.spirv_cross::VectorView.217", i64, [8 x i8] }>
%"class.spirv_cross::VectorView.217" = type { ptr, i64 }

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356), i32 noundef) #0 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

declare noundef nonnull align 8 dereferenceable(152) ptr @_ZNK11spirv_cross8Compiler13get_case_listERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(976)) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross16DominatorBuilder29lift_continue_block_dominatorEv(ptr noundef nonnull align 8 dereferenceable(12) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  %12 = getelementptr inbounds %"class.spirv_cross::DominatorBuilder", ptr %11, i32 0, i32 1
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %14 = icmp ne i32 %13, 0
  br i1 %14, label %16, label %15

15:                                               ; preds = %1
  br label %122

16:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %17 = getelementptr inbounds %"class.spirv_cross::DominatorBuilder", ptr %11, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !12
  %19 = call noundef nonnull align 8 dereferenceable(3176) ptr @_ZNK11spirv_cross3CFG12get_compilerEv(ptr noundef nonnull align 8 dereferenceable(356) %18)
  %20 = getelementptr inbounds %"class.spirv_cross::DominatorBuilder", ptr %11, i32 0, i32 1
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = call noundef nonnull align 8 dereferenceable(976) ptr @_ZNK11spirv_cross8Compiler3getINS_9SPIRBlockEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %19, i32 noundef %21)
  store ptr %22, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %23 = getelementptr inbounds %"class.spirv_cross::DominatorBuilder", ptr %11, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !12
  %25 = getelementptr inbounds %"class.spirv_cross::DominatorBuilder", ptr %11, i32 0, i32 1
  %26 = load i32, ptr %25, align 8, !tbaa !9
  %27 = call noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356) %24, i32 noundef %26)
  store i32 %27, ptr %4, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  store i8 0, ptr %5, align 1, !tbaa !14
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 4, !tbaa !16
  switch i32 %30, label %110 [
    i32 1, label %31
    i32 2, label %42
    i32 3, label %63
  ]

31:                                               ; preds = %16
  %32 = getelementptr inbounds %"class.spirv_cross::DominatorBuilder", ptr %11, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !12
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %34, i32 0, i32 4
  %36 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %35)
  %37 = call noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356) %33, i32 noundef %36)
  %38 = load i32, ptr %4, align 4, !tbaa !13
  %39 = icmp ugt i32 %37, %38
  br i1 %39, label %40, label %41

40:                                               ; preds = %31
  store i8 1, ptr %5, align 1, !tbaa !14
  br label %41

41:                                               ; preds = %40, %31
  br label %111

42:                                               ; preds = %16
  %43 = getelementptr inbounds %"class.spirv_cross::DominatorBuilder", ptr %11, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !12
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %45, i32 0, i32 9
  %47 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %46)
  %48 = call noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356) %44, i32 noundef %47)
  %49 = load i32, ptr %4, align 4, !tbaa !13
  %50 = icmp ugt i32 %48, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %42
  store i8 1, ptr %5, align 1, !tbaa !14
  br label %52

52:                                               ; preds = %51, %42
  %53 = getelementptr inbounds %"class.spirv_cross::DominatorBuilder", ptr %11, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !12
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %55, i32 0, i32 10
  %57 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %56)
  %58 = call noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356) %54, i32 noundef %57)
  %59 = load i32, ptr %4, align 4, !tbaa !13
  %60 = icmp ugt i32 %58, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %52
  store i8 1, ptr %5, align 1, !tbaa !14
  br label %62

62:                                               ; preds = %61, %52
  br label %111

63:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %64 = getelementptr inbounds %"class.spirv_cross::DominatorBuilder", ptr %11, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !12
  %66 = call noundef nonnull align 8 dereferenceable(3176) ptr @_ZNK11spirv_cross3CFG12get_compilerEv(ptr noundef nonnull align 8 dereferenceable(356) %65)
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNK11spirv_cross8Compiler13get_case_listERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176) %66, ptr noundef nonnull align 8 dereferenceable(976) %67)
  store ptr %68, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %69, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %70) #4
  store ptr %71, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %72) #4
  store ptr %73, ptr %9, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %91, %63
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = icmp ne ptr %75, %76
  br i1 %77, label %79, label %78

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

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %80, ptr %10, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.spirv_cross::DominatorBuilder", ptr %11, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !12
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock::Case", ptr %83, i32 0, i32 1
  %85 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %84)
  %86 = call noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356) %82, i32 noundef %85)
  %87 = load i32, ptr %4, align 4, !tbaa !13
  %88 = icmp ugt i32 %86, %87
  br i1 %88, label %89, label %90

89:                                               ; preds = %79
  store i8 1, ptr %5, align 1, !tbaa !14
  br label %90

90:                                               ; preds = %89, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock::Case", ptr %92, i32 1
  store ptr %93, ptr %8, align 8, !tbaa !5
  br label %74

94:                                               ; preds = %78
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %95, i32 0, i32 11
  %97 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %96)
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %109

99:                                               ; preds = %94
  %100 = getelementptr inbounds %"class.spirv_cross::DominatorBuilder", ptr %11, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !12
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.spirv_cross::SPIRBlock", ptr %102, i32 0, i32 11
  %104 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %103)
  %105 = call noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356) %101, i32 noundef %104)
  %106 = load i32, ptr %4, align 4, !tbaa !13
  %107 = icmp ugt i32 %105, %106
  br i1 %107, label %108, label %109

108:                                              ; preds = %99
  store i8 1, ptr %5, align 1, !tbaa !14
  br label %109

109:                                              ; preds = %108, %99, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %111

110:                                              ; preds = %16
  br label %111

111:                                              ; preds = %110, %109, %62, %41
  %112 = load i8, ptr %5, align 1, !tbaa !14, !range !44, !noundef !45
  %113 = trunc i8 %112 to i1
  br i1 %113, label %114, label %121

114:                                              ; preds = %111
  %115 = getelementptr inbounds %"class.spirv_cross::DominatorBuilder", ptr %11, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !12
  %117 = call noundef nonnull align 8 dereferenceable(795) ptr @_ZNK11spirv_cross3CFG12get_functionEv(ptr noundef nonnull align 8 dereferenceable(356) %116)
  %118 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction", ptr %117, i32 0, i32 7
  %119 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %118)
  %120 = getelementptr inbounds %"class.spirv_cross::DominatorBuilder", ptr %11, i32 0, i32 1
  store i32 %119, ptr %120, align 8, !tbaa !9
  br label %121

121:                                              ; preds = %114, %111
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %122

122:                                              ; preds = %121, %15
  ret void
}

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

; 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) #0 align 2

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

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSN11spirv_cross16DominatorBuilderE", !6, i64 0, !11, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!17, !20, i64 12}
!17 = !{!"_ZTSN11spirv_cross9SPIRBlockE", !18, i64 0, !20, i64 12, !21, i64 16, !22, i64 20, !23, i64 24, !23, i64 28, !23, i64 32, !19, i64 36, !19, i64 40, !23, i64 44, !23, i64 48, !23, i64 52, !24, i64 56, !25, i64 72, !29, i64 192, !32, i64 312, !32, i64 400, !35, i64 488, !35, i64 640, !15, i64 792, !15, i64 793, !15, i64 794, !23, i64 796, !23, i64 800, !38, i64 808, !38, i64 864, !41, i64 920}
!18 = !{!"_ZTSN11spirv_cross8IVariantE", !19, i64 8}
!19 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !11, i64 0}
!20 = !{!"_ZTSN11spirv_cross9SPIRBlock10TerminatorE", !7, i64 0}
!21 = !{!"_ZTSN11spirv_cross9SPIRBlock5MergeE", !7, i64 0}
!22 = !{!"_ZTSN11spirv_cross9SPIRBlock5HintsE", !7, i64 0}
!23 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !11, i64 0}
!24 = !{!"_ZTSN11spirv_cross9SPIRBlockUt1_E", !7, i64 0, !19, i64 12}
!25 = !{!"_ZTSN11spirv_cross11SmallVectorINS_11InstructionELm8EEE", !26, i64 0, !27, i64 16, !28, i64 24}
!26 = !{!"_ZTSN11spirv_cross10VectorViewINS_11InstructionEEE", !6, i64 0, !27, i64 8}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_11InstructionELm8EEE", !7, i64 0}
!29 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock3PhiELm8EEE", !30, i64 0, !27, i64 16, !31, i64 24}
!30 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock3PhiEEE", !6, i64 0, !27, i64 8}
!31 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock3PhiELm8EEE", !7, i64 0}
!32 = !{!"_ZTSN11spirv_cross11SmallVectorISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !33, i64 0, !27, i64 16, !34, i64 24}
!33 = !{!"_ZTSN11spirv_cross10VectorViewISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEEEE", !6, i64 0, !27, i64 8}
!34 = !{!"_ZTSN11spirv_cross13AlignedBufferISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !7, i64 0}
!35 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock4CaseELm8EEE", !36, i64 0, !27, i64 16, !37, i64 24}
!36 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock4CaseEEE", !6, i64 0, !27, i64 8}
!37 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock4CaseELm8EEE", !7, i64 0}
!38 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE2EEELm8EEE", !39, i64 0, !27, i64 16, !40, i64 24}
!39 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE2EEEEE", !6, i64 0, !27, i64 8}
!40 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE2EEELm8EEE", !7, i64 0}
!41 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !42, i64 0, !27, i64 16, !43, i64 24}
!42 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !6, i64 0, !27, i64 8}
!43 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}
!44 = !{i8 0, i8 2}
!45 = !{}


; 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 uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356), i32 noundef) local_unnamed_addr #0 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 #1 align 2

declare noundef nonnull align 8 dereferenceable(152) ptr @_ZNK11spirv_cross8Compiler13get_case_listERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(976)) local_unnamed_addr #2

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

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

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

4:                                                ; preds = %1
  %5 = load ptr, ptr %0, align 8, !tbaa !11
  %6 = tail call noundef nonnull align 8 dereferenceable(3176) ptr @_ZNK11spirv_cross3CFG12get_compilerEv(ptr noundef nonnull align 8 dereferenceable(356) %5)
  %7 = load i32, ptr %2, align 8, !tbaa !5
  %8 = tail call noundef nonnull align 8 dereferenceable(976) ptr @_ZNK11spirv_cross8Compiler3getINS_9SPIRBlockEEERKT_j(ptr noundef nonnull align 8 dereferenceable(3176) %6, i32 noundef %7)
  %9 = load ptr, ptr %0, align 8, !tbaa !11
  %10 = load i32, ptr %2, align 8, !tbaa !5
  %11 = tail call noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356) %9, i32 noundef %10)
  %12 = getelementptr inbounds i8, ptr %8, i64 12
  %13 = load i32, ptr %12, align 4, !tbaa !12
  switch i32 %13, label %.thread [
    i32 1, label %14
    i32 2, label %20
    i32 3, label %31
  ]

14:                                               ; preds = %4
  %15 = load ptr, ptr %0, align 8, !tbaa !11
  %16 = getelementptr inbounds i8, ptr %8, i64 24
  %17 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %16)
  %18 = tail call noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356) %15, i32 noundef %17)
  %19 = icmp ugt i32 %18, %11
  br i1 %19, label %51, label %.thread

20:                                               ; preds = %4
  %21 = load ptr, ptr %0, align 8, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %8, i64 44
  %23 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %22)
  %24 = tail call noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356) %21, i32 noundef %23)
  %25 = icmp ugt i32 %24, %11
  %26 = load ptr, ptr %0, align 8, !tbaa !11
  %27 = getelementptr inbounds i8, ptr %8, i64 48
  %28 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %27)
  %29 = tail call noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356) %26, i32 noundef %28)
  %30 = icmp ugt i32 %29, %11
  %narrow = or i1 %25, %30
  br i1 %narrow, label %51, label %.thread

31:                                               ; preds = %4
  %32 = load ptr, ptr %0, align 8, !tbaa !11
  %33 = tail call noundef nonnull align 8 dereferenceable(3176) ptr @_ZNK11spirv_cross3CFG12get_compilerEv(ptr noundef nonnull align 8 dereferenceable(356) %32)
  %34 = tail call noundef nonnull align 8 dereferenceable(152) ptr @_ZNK11spirv_cross8Compiler13get_case_listERKNS_9SPIRBlockE(ptr noundef nonnull align 8 dereferenceable(3176) %33, ptr noundef nonnull align 8 dereferenceable(976) %8)
  %35 = tail call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %34) #3
  %36 = tail call noundef ptr @_ZNK11spirv_cross10VectorViewINS_9SPIRBlock4CaseEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %34) #3
  %.not2229 = icmp eq ptr %35, %36
  br i1 %.not2229, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %31
  %.1.lcssa = phi i1 [ false, %31 ], [ %spec.select25, %.lr.ph ]
  %37 = getelementptr inbounds i8, ptr %8, i64 52
  %38 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %37)
  %.not23 = icmp eq i32 %38, 0
  br i1 %.not23, label %50, label %45

.lr.ph:                                           ; preds = %31, %.lr.ph
  %.131 = phi i1 [ %spec.select25, %.lr.ph ], [ false, %31 ]
  %.02130 = phi ptr [ %44, %.lr.ph ], [ %35, %31 ]
  %39 = load ptr, ptr %0, align 8, !tbaa !11
  %40 = getelementptr inbounds i8, ptr %.02130, i64 8
  %41 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %40)
  %42 = tail call noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356) %39, i32 noundef %41)
  %43 = icmp ugt i32 %42, %11
  %spec.select25 = select i1 %43, i1 true, i1 %.131
  %44 = getelementptr inbounds i8, ptr %.02130, i64 16
  %.not22 = icmp eq ptr %44, %36
  br i1 %.not22, label %._crit_edge, label %.lr.ph

45:                                               ; preds = %._crit_edge
  %46 = load ptr, ptr %0, align 8, !tbaa !11
  %47 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %37)
  %48 = tail call noundef i32 @_ZNK11spirv_cross3CFG15get_visit_orderEj(ptr noundef nonnull align 8 dereferenceable(356) %46, i32 noundef %47)
  %49 = icmp ugt i32 %48, %11
  %spec.select26 = select i1 %49, i1 true, i1 %.1.lcssa
  br i1 %spec.select26, label %51, label %.thread

50:                                               ; preds = %._crit_edge
  br i1 %.1.lcssa, label %51, label %.thread

51:                                               ; preds = %20, %45, %14, %50
  %52 = load ptr, ptr %0, align 8, !tbaa !11
  %53 = tail call noundef nonnull align 8 dereferenceable(795) ptr @_ZNK11spirv_cross3CFG12get_functionEv(ptr noundef nonnull align 8 dereferenceable(356) %52)
  %54 = getelementptr inbounds i8, ptr %53, i64 448
  %55 = tail call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE6EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %54)
  store i32 %55, ptr %2, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %20, %45, %14, %4, %50, %51, %1
  ret void
}

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

; 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 #0 align 2

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

attributes #0 = { 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 #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 = { "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, !10, i64 8}
!6 = !{!"_ZTSN11spirv_cross16DominatorBuilderE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!13, !16, i64 12}
!13 = !{!"_ZTSN11spirv_cross9SPIRBlockE", !14, i64 0, !16, i64 12, !17, i64 16, !18, i64 20, !19, i64 24, !19, i64 28, !19, i64 32, !15, i64 36, !15, i64 40, !19, i64 44, !19, i64 48, !19, i64 52, !20, i64 56, !21, i64 72, !25, i64 192, !28, i64 312, !28, i64 400, !31, i64 488, !31, i64 640, !34, i64 792, !34, i64 793, !34, i64 794, !19, i64 796, !19, i64 800, !35, i64 808, !35, i64 864, !38, i64 920}
!14 = !{!"_ZTSN11spirv_cross8IVariantE", !15, i64 8}
!15 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !10, i64 0}
!16 = !{!"_ZTSN11spirv_cross9SPIRBlock10TerminatorE", !8, i64 0}
!17 = !{!"_ZTSN11spirv_cross9SPIRBlock5MergeE", !8, i64 0}
!18 = !{!"_ZTSN11spirv_cross9SPIRBlock5HintsE", !8, i64 0}
!19 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !10, i64 0}
!20 = !{!"_ZTSN11spirv_cross9SPIRBlockUt1_E", !8, i64 0, !15, i64 12}
!21 = !{!"_ZTSN11spirv_cross11SmallVectorINS_11InstructionELm8EEE", !22, i64 0, !23, i64 16, !24, i64 24}
!22 = !{!"_ZTSN11spirv_cross10VectorViewINS_11InstructionEEE", !7, i64 0, !23, i64 8}
!23 = !{!"long", !8, i64 0}
!24 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_11InstructionELm8EEE", !8, i64 0}
!25 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock3PhiELm8EEE", !26, i64 0, !23, i64 16, !27, i64 24}
!26 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock3PhiEEE", !7, i64 0, !23, i64 8}
!27 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock3PhiELm8EEE", !8, i64 0}
!28 = !{!"_ZTSN11spirv_cross11SmallVectorISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !29, i64 0, !23, i64 16, !30, i64 24}
!29 = !{!"_ZTSN11spirv_cross10VectorViewISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEEEE", !7, i64 0, !23, i64 8}
!30 = !{!"_ZTSN11spirv_cross13AlignedBufferISt4pairINS_7TypedIDILNS_5TypesE1EEENS2_ILS3_0EEEELm8EEE", !8, i64 0}
!31 = !{!"_ZTSN11spirv_cross11SmallVectorINS_9SPIRBlock4CaseELm8EEE", !32, i64 0, !23, i64 16, !33, i64 24}
!32 = !{!"_ZTSN11spirv_cross10VectorViewINS_9SPIRBlock4CaseEEE", !7, i64 0, !23, i64 8}
!33 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_9SPIRBlock4CaseELm8EEE", !8, i64 0}
!34 = !{!"bool", !8, i64 0}
!35 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE2EEELm8EEE", !36, i64 0, !23, i64 16, !37, i64 24}
!36 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE2EEEEE", !7, i64 0, !23, i64 8}
!37 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE2EEELm8EEE", !8, i64 0}
!38 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !39, i64 0, !23, i64 16, !40, i64 24}
!39 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !7, i64 0, !23, i64 8}
!40 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !8, i64 0}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass