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

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

@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E5types = external hidden global [3 x ptr], align 16
@_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E4dims = external hidden global [10 x ptr], align 16
@_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E7has_lod = external hidden constant [10 x i8], align 1
@_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E9ret_types = external hidden global [10 x ptr], align 16
@_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E16return_arguments = external hidden constant [10 x i32], align 16
@.str.350 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.351 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.352 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.353 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.354 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.355 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.356 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.357 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.359 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.360 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.361 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.362 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.363 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.364 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.365 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.366 = external hidden unnamed_addr constant [12 x i8], align 1

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA1_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

declare void @_ZN11spirv_cross12CompilerGLSL11begin_scopeEv(ptr noundef nonnull align 8 dereferenceable(9848)) #2

declare void @_ZN11spirv_cross12CompilerGLSL9end_scopeEv(ptr noundef nonnull align 8 dereferenceable(9848)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_(ptr noundef nonnull align 8 dereferenceable(10528) %0, i64 noundef %1, ptr noundef %2, i1 noundef zeroext %3, ptr noundef %4) #3 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  %19 = zext i1 %3 to i8
  store i8 %19, ptr %9, align 1, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !5
  %20 = load ptr, ptr %6, align 8
  %21 = load i64, ptr %7, align 8, !tbaa !9
  %22 = icmp eq i64 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %5
  br label %133

24:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !13
  br label %25

25:                                               ; preds = %130, %24
  %26 = load i32, ptr %11, align 4, !tbaa !13
  %27 = icmp ult i32 %26, 10
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %133

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !13
  br label %30

30:                                               ; preds = %126, %29
  %31 = load i32, ptr %13, align 4, !tbaa !13
  %32 = icmp ult i32 %31, 3
  br i1 %32, label %34, label %33

33:                                               ; preds = %30
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %129

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %35 = load i32, ptr %13, align 4, !tbaa !13
  %36 = mul i32 16, %35
  %37 = load i32, ptr %11, align 4, !tbaa !13
  %38 = add i32 %36, %37
  store i32 %38, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %39 = load i32, ptr %14, align 4, !tbaa !13
  %40 = zext i32 %39 to i64
  %41 = shl i64 1, %40
  store i64 %41, ptr %15, align 8, !tbaa !9
  %42 = load i64, ptr %7, align 8, !tbaa !9
  %43 = load i64, ptr %15, align 8, !tbaa !9
  %44 = and i64 %42, %43
  %45 = icmp eq i64 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %34
  store i32 7, ptr %12, align 4
  br label %123

47:                                               ; preds = %34
  %48 = load i32, ptr %11, align 4, !tbaa !13
  %49 = zext i32 %48 to i64
  %50 = getelementptr inbounds [10 x ptr], ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E9ret_types, i64 0, i64 %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %51 = load i8, ptr %9, align 1, !tbaa !11, !range !15, !noundef !16
  %52 = trunc i8 %51 to i1
  %53 = zext i1 %52 to i64
  %54 = select i1 %52, ptr @.str.351, ptr @.str.16
  store ptr %54, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %55 = load i8, ptr %9, align 1, !tbaa !11, !range !15, !noundef !16
  %56 = trunc i8 %55 to i1
  %57 = zext i1 %56 to i64
  %58 = select i1 %56, ptr @.str.10, ptr @.str.9
  store ptr %58, ptr %17, align 8, !tbaa !5
  %59 = load i32, ptr %11, align 4, !tbaa !13
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds [10 x ptr], ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E4dims, i64 0, i64 %60
  %62 = load i32, ptr %13, align 4, !tbaa !13
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds [3 x ptr], ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E5types, i64 0, i64 %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %65 = load i8, ptr %9, align 1, !tbaa !11, !range !15, !noundef !16
  %66 = trunc i8 %65 to i1
  %67 = zext i1 %66 to i64
  %68 = select i1 %66, ptr @.str.9, ptr @.str.354
  store ptr %68, ptr %18, align 8, !tbaa !5
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRPKcRA5_S2_S3_RA6_S2_S3_S4_RA2_S2_S4_S4_S4_RA8_S2_S3_RA16_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 1 dereferenceable(5) @.str.350, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 1 dereferenceable(6) @.str.352, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull align 1 dereferenceable(2) @.str.17, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 1 dereferenceable(8) @.str.353, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 1 dereferenceable(16) @.str.355)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @_ZN11spirv_cross12CompilerGLSL11begin_scopeEv(ptr noundef nonnull align 8 dereferenceable(9848) %20)
  %69 = load i32, ptr %11, align 4, !tbaa !13
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds [10 x ptr], ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E9ret_types, i64 0, i64 %70
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRPKcRA6_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull align 1 dereferenceable(6) @.str.356)
  %72 = load i32, ptr %11, align 4, !tbaa !13
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds [10 x i32], ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E16return_arguments, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !13
  switch i32 %75, label %122 [
    i32 1, label %76
    i32 2, label %88
    i32 3, label %105
  ]

76:                                               ; preds = %47
  %77 = load i32, ptr %11, align 4, !tbaa !13
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds [10 x i8], ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E7has_lod, i64 0, i64 %78
  %80 = load i8, ptr %79, align 1, !tbaa !11, !range !15, !noundef !16
  %81 = trunc i8 %80 to i1
  br i1 %81, label %82, label %86

82:                                               ; preds = %76
  %83 = load i8, ptr %9, align 1, !tbaa !11, !range !15, !noundef !16
  %84 = trunc i8 %83 to i1
  br i1 %84, label %86, label %85

85:                                               ; preds = %82
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 1 dereferenceable(40) @.str.357)
  br label %87

86:                                               ; preds = %82, %76
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA26_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 1 dereferenceable(26) @.str.358)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 1 dereferenceable(12) @.str.359)
  br label %87

87:                                               ; preds = %86, %85
  br label %122

88:                                               ; preds = %47
  %89 = load i32, ptr %11, align 4, !tbaa !13
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds [10 x i8], ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E7has_lod, i64 0, i64 %90
  %92 = load i8, ptr %91, align 1, !tbaa !11, !range !15, !noundef !16
  %93 = trunc i8 %92 to i1
  br i1 %93, label %94, label %98

94:                                               ; preds = %88
  %95 = load i8, ptr %9, align 1, !tbaa !11, !range !15, !noundef !16
  %96 = trunc i8 %95 to i1
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA47_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 1 dereferenceable(47) @.str.360)
  br label %104

98:                                               ; preds = %94, %88
  %99 = load i8, ptr %9, align 1, !tbaa !11, !range !15, !noundef !16
  %100 = trunc i8 %99 to i1
  br i1 %100, label %102, label %101

101:                                              ; preds = %98
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 1 dereferenceable(40) @.str.361)
  br label %103

102:                                              ; preds = %98
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA33_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 1 dereferenceable(33) @.str.362)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 1 dereferenceable(12) @.str.359)
  br label %103

103:                                              ; preds = %102, %101
  br label %104

104:                                              ; preds = %103, %97
  br label %122

105:                                              ; preds = %47
  %106 = load i32, ptr %11, align 4, !tbaa !13
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds [10 x i8], ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E7has_lod, i64 0, i64 %107
  %109 = load i8, ptr %108, align 1, !tbaa !11, !range !15, !noundef !16
  %110 = trunc i8 %109 to i1
  br i1 %110, label %111, label %115

111:                                              ; preds = %105
  %112 = load i8, ptr %9, align 1, !tbaa !11, !range !15, !noundef !16
  %113 = trunc i8 %112 to i1
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA54_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 1 dereferenceable(54) @.str.363)
  br label %121

115:                                              ; preds = %111, %105
  %116 = load i8, ptr %9, align 1, !tbaa !11, !range !15, !noundef !16
  %117 = trunc i8 %116 to i1
  br i1 %117, label %119, label %118

118:                                              ; preds = %115
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA47_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 1 dereferenceable(47) @.str.364)
  br label %120

119:                                              ; preds = %115
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 1 dereferenceable(40) @.str.365)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 1 dereferenceable(12) @.str.359)
  br label %120

120:                                              ; preds = %119, %118
  br label %121

121:                                              ; preds = %120, %114
  br label %122

122:                                              ; preds = %121, %104, %87, %47
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 1 dereferenceable(12) @.str.366)
  call void @_ZN11spirv_cross12CompilerGLSL9end_scopeEv(ptr noundef nonnull align 8 dereferenceable(9848) %20)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA1_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %20, ptr noundef nonnull align 1 dereferenceable(1) @.str.9)
  store i32 0, ptr %12, align 4
  br label %123

123:                                              ; preds = %122, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %124 = load i32, ptr %12, align 4
  switch i32 %124, label %134 [
    i32 0, label %125
    i32 7, label %126
  ]

125:                                              ; preds = %123
  br label %126

126:                                              ; preds = %125, %123
  %127 = load i32, ptr %13, align 4, !tbaa !13
  %128 = add i32 %127, 1
  store i32 %128, ptr %13, align 4, !tbaa !13
  br label %30, !llvm.loop !17

129:                                              ; preds = %33
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %11, align 4, !tbaa !13
  %132 = add i32 %131, 1
  store i32 %132, ptr %11, align 4, !tbaa !13
  br label %25, !llvm.loop !19

133:                                              ; preds = %28, %23
  ret void

134:                                              ; preds = %123
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA54_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(54)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(40)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA33_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(33)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA47_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(47)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA26_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(26)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(12)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRPKcRA5_S2_S3_RA6_S2_S3_S4_RA2_S2_S4_S4_S4_RA8_S2_S3_RA16_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(5), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(6), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(2), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(16)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRPKcRA6_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(6)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { "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 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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

@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E5types = external hidden global [3 x ptr], align 16
@_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E4dims = external hidden global [10 x ptr], align 16
@_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E7has_lod = external hidden local_unnamed_addr constant [10 x i8], align 1
@_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E9ret_types = external hidden global [10 x ptr], align 16
@_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E16return_arguments = external hidden local_unnamed_addr constant [10 x i32], align 16
@.str.350 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.351 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.352 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.353 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.354 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.355 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.356 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.357 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.359 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.360 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.361 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.362 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.363 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.364 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.365 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.366 = external hidden unnamed_addr constant [12 x i8], align 1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA1_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

declare void @_ZN11spirv_cross12CompilerGLSL11begin_scopeEv(ptr noundef nonnull align 8 dereferenceable(9848)) local_unnamed_addr #2

declare void @_ZN11spirv_cross12CompilerGLSL9end_scopeEv(ptr noundef nonnull align 8 dereferenceable(9848)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_(ptr noundef nonnull align 8 dereferenceable(10528) %0, i64 noundef %1, ptr noundef %2, i1 noundef zeroext %3, ptr noundef %4) local_unnamed_addr #3 align 2 {
  %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 %2, ptr %6, align 8, !tbaa !5
  store ptr %4, ptr %7, align 8, !tbaa !5
  %11 = icmp eq i64 %1, 0
  br i1 %11, label %.loopexit, label %.preheader32

.preheader32:                                     ; preds = %5
  %12 = select i1 %3, ptr @.str.351, ptr @.str.16
  %13 = select i1 %3, ptr @.str.10, ptr @.str.9
  %14 = select i1 %3, ptr @.str.9, ptr @.str.354
  br label %.preheader

.preheader:                                       ; preds = %.preheader32, %96
  %indvars.iv = phi i64 [ 0, %.preheader32 ], [ %indvars.iv.next, %96 ]
  %15 = getelementptr inbounds [10 x ptr], ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E9ret_types, i64 0, i64 %indvars.iv
  %16 = getelementptr inbounds [10 x ptr], ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E4dims, i64 0, i64 %indvars.iv
  %17 = getelementptr inbounds [10 x i32], ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E16return_arguments, i64 0, i64 %indvars.iv
  %18 = getelementptr inbounds [10 x i8], ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E7has_lod, i64 0, i64 %indvars.iv
  %19 = shl nuw nsw i64 1, %indvars.iv
  %20 = and i64 %19, %1
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %44, label %22

22:                                               ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  store ptr %12, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store ptr %13, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  store ptr %14, ptr %10, align 8, !tbaa !5
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRPKcRA5_S2_S3_RA6_S2_S3_S4_RA2_S2_S4_S4_S4_RA8_S2_S3_RA16_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 1 dereferenceable(5) @.str.350, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 1 dereferenceable(6) @.str.352, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 1 dereferenceable(2) @.str.17, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E5types, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 1 dereferenceable(8) @.str.353, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 1 dereferenceable(16) @.str.355)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @_ZN11spirv_cross12CompilerGLSL11begin_scopeEv(ptr noundef nonnull align 8 dereferenceable(9848) %0)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRPKcRA6_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 1 dereferenceable(6) @.str.356)
  %23 = load i32, ptr %17, align 4, !tbaa !9
  switch i32 %23, label %43 [
    i32 1, label %24
    i32 2, label %29
    i32 3, label %36
  ]

24:                                               ; preds = %22
  %25 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %26 = trunc nuw i8 %25 to i1
  %.not = xor i1 %26, true
  %brmerge = or i1 %.not, %3
  br i1 %brmerge, label %28, label %27

27:                                               ; preds = %24
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(40) @.str.357)
  br label %43

28:                                               ; preds = %24
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA26_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(26) @.str.358)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(12) @.str.359)
  br label %43

29:                                               ; preds = %22
  %30 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %31 = trunc nuw i8 %30 to i1
  %.not28 = xor i1 %31, true
  %brmerge29 = or i1 %.not28, %3
  br i1 %brmerge29, label %33, label %32

32:                                               ; preds = %29
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA47_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(47) @.str.360)
  br label %43

33:                                               ; preds = %29
  br i1 %3, label %35, label %34

34:                                               ; preds = %33
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(40) @.str.361)
  br label %43

35:                                               ; preds = %33
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA33_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(33) @.str.362)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(12) @.str.359)
  br label %43

36:                                               ; preds = %22
  %37 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %38 = trunc nuw i8 %37 to i1
  %.not30 = xor i1 %38, true
  %brmerge31 = or i1 %.not30, %3
  br i1 %brmerge31, label %40, label %39

39:                                               ; preds = %36
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA54_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(54) @.str.363)
  br label %43

40:                                               ; preds = %36
  br i1 %3, label %42, label %41

41:                                               ; preds = %40
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA47_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(47) @.str.364)
  br label %43

42:                                               ; preds = %40
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(40) @.str.365)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(12) @.str.359)
  br label %43

43:                                               ; preds = %39, %42, %41, %32, %35, %34, %27, %28, %22
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(12) @.str.366)
  call void @_ZN11spirv_cross12CompilerGLSL9end_scopeEv(ptr noundef nonnull align 8 dereferenceable(9848) %0)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA1_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(1) @.str.9)
  br label %44

44:                                               ; preds = %.preheader, %43
  %45 = shl nuw nsw i64 65536, %indvars.iv
  %46 = and i64 %45, %1
  %47 = icmp eq i64 %46, 0
  br i1 %47, label %70, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  store ptr %12, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store ptr %13, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  store ptr %14, ptr %10, align 8, !tbaa !5
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRPKcRA5_S2_S3_RA6_S2_S3_S4_RA2_S2_S4_S4_S4_RA8_S2_S3_RA16_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 1 dereferenceable(5) @.str.350, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 1 dereferenceable(6) @.str.352, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 1 dereferenceable(2) @.str.17, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E5types, i64 8), ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 1 dereferenceable(8) @.str.353, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 1 dereferenceable(16) @.str.355)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @_ZN11spirv_cross12CompilerGLSL11begin_scopeEv(ptr noundef nonnull align 8 dereferenceable(9848) %0)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRPKcRA6_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 1 dereferenceable(6) @.str.356)
  %49 = load i32, ptr %17, align 4, !tbaa !9
  switch i32 %49, label %69 [
    i32 1, label %64
    i32 2, label %57
    i32 3, label %50
  ]

50:                                               ; preds = %48
  %51 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %52 = trunc nuw i8 %51 to i1
  %.not30.1 = xor i1 %52, true
  %brmerge31.1 = or i1 %.not30.1, %3
  br i1 %brmerge31.1, label %54, label %53

53:                                               ; preds = %50
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA54_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(54) @.str.363)
  br label %69

54:                                               ; preds = %50
  br i1 %3, label %56, label %55

55:                                               ; preds = %54
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA47_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(47) @.str.364)
  br label %69

56:                                               ; preds = %54
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(40) @.str.365)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(12) @.str.359)
  br label %69

57:                                               ; preds = %48
  %58 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %59 = trunc nuw i8 %58 to i1
  %.not28.1 = xor i1 %59, true
  %brmerge29.1 = or i1 %.not28.1, %3
  br i1 %brmerge29.1, label %61, label %60

60:                                               ; preds = %57
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA47_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(47) @.str.360)
  br label %69

61:                                               ; preds = %57
  br i1 %3, label %63, label %62

62:                                               ; preds = %61
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(40) @.str.361)
  br label %69

63:                                               ; preds = %61
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA33_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(33) @.str.362)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(12) @.str.359)
  br label %69

64:                                               ; preds = %48
  %65 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %66 = trunc nuw i8 %65 to i1
  %.not.1 = xor i1 %66, true
  %brmerge.1 = or i1 %.not.1, %3
  br i1 %brmerge.1, label %68, label %67

67:                                               ; preds = %64
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(40) @.str.357)
  br label %69

68:                                               ; preds = %64
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA26_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(26) @.str.358)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(12) @.str.359)
  br label %69

69:                                               ; preds = %68, %67, %63, %62, %60, %56, %55, %53, %48
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(12) @.str.366)
  call void @_ZN11spirv_cross12CompilerGLSL9end_scopeEv(ptr noundef nonnull align 8 dereferenceable(9848) %0)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA1_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(1) @.str.9)
  br label %70

70:                                               ; preds = %69, %44
  %71 = shl nuw nsw i64 4294967296, %indvars.iv
  %72 = and i64 %71, %1
  %73 = icmp eq i64 %72, 0
  br i1 %73, label %96, label %74

74:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  store ptr %12, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store ptr %13, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  store ptr %14, ptr %10, align 8, !tbaa !5
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRPKcRA5_S2_S3_RA6_S2_S3_S4_RA2_S2_S4_S4_S4_RA8_S2_S3_RA16_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 1 dereferenceable(5) @.str.350, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 1 dereferenceable(6) @.str.352, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 1 dereferenceable(2) @.str.17, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZN11spirv_cross12CompilerHLSL26emit_texture_size_variantsEmPKcbS2_E5types, i64 16), ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 1 dereferenceable(8) @.str.353, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 1 dereferenceable(16) @.str.355)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @_ZN11spirv_cross12CompilerGLSL11begin_scopeEv(ptr noundef nonnull align 8 dereferenceable(9848) %0)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRPKcRA6_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 1 dereferenceable(6) @.str.356)
  %75 = load i32, ptr %17, align 4, !tbaa !9
  switch i32 %75, label %95 [
    i32 1, label %90
    i32 2, label %83
    i32 3, label %76
  ]

76:                                               ; preds = %74
  %77 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %78 = trunc nuw i8 %77 to i1
  %.not30.2 = xor i1 %78, true
  %brmerge31.2 = or i1 %.not30.2, %3
  br i1 %brmerge31.2, label %80, label %79

79:                                               ; preds = %76
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA54_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(54) @.str.363)
  br label %95

80:                                               ; preds = %76
  br i1 %3, label %82, label %81

81:                                               ; preds = %80
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA47_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(47) @.str.364)
  br label %95

82:                                               ; preds = %80
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(40) @.str.365)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(12) @.str.359)
  br label %95

83:                                               ; preds = %74
  %84 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %85 = trunc nuw i8 %84 to i1
  %.not28.2 = xor i1 %85, true
  %brmerge29.2 = or i1 %.not28.2, %3
  br i1 %brmerge29.2, label %87, label %86

86:                                               ; preds = %83
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA47_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(47) @.str.360)
  br label %95

87:                                               ; preds = %83
  br i1 %3, label %89, label %88

88:                                               ; preds = %87
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(40) @.str.361)
  br label %95

89:                                               ; preds = %87
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA33_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(33) @.str.362)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(12) @.str.359)
  br label %95

90:                                               ; preds = %74
  %91 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %92 = trunc nuw i8 %91 to i1
  %.not.2 = xor i1 %92, true
  %brmerge.2 = or i1 %.not.2, %3
  br i1 %brmerge.2, label %94, label %93

93:                                               ; preds = %90
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(40) @.str.357)
  br label %95

94:                                               ; preds = %90
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA26_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(26) @.str.358)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(12) @.str.359)
  br label %95

95:                                               ; preds = %94, %93, %89, %88, %86, %82, %81, %79, %74
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(12) @.str.366)
  call void @_ZN11spirv_cross12CompilerGLSL9end_scopeEv(ptr noundef nonnull align 8 dereferenceable(9848) %0)
  call void @_ZN11spirv_cross12CompilerGLSL9statementIJRA1_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848) %0, ptr noundef nonnull align 1 dereferenceable(1) @.str.9)
  br label %96

96:                                               ; preds = %95, %70
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 10
  br i1 %exitcond.not, label %.loopexit, label %.preheader, !llvm.loop !15

.loopexit:                                        ; preds = %96, %5
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA54_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(54)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA40_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(40)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA33_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(33)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA47_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(47)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA26_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(26)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRA12_KcEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 1 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRPKcRA5_S2_S3_RA6_S2_S3_S4_RA2_S2_S4_S4_S4_RA8_S2_S3_RA16_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(5), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(6), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(2), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11spirv_cross12CompilerGLSL9statementIJRPKcRA6_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(6)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { "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 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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