; LLVM IR from hbatagelo/abcg :: abcg/external/glslang/glslang/MachineIndependent (ParseContextBase)

; 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.15 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [24 x i8], align 1
@_ZN7glslangL19MaxSwizzleSelectorsE = external hidden constant i32, align 4
@.str.27 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [47 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: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang17TParseContextBase20parseSwizzleSelectorERKNS_10TSourceLocERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEiRNS_17TSwizzleSelectorsIiEE(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %3, ptr noundef nonnull align 4 dereferenceable(20) %4) unnamed_addr #3 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca [4 x i32], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  %17 = load ptr, ptr %6, align 8
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %18) #4
  %20 = icmp ugt i64 %19, 4
  br i1 %20, label %21, label %28

21:                                               ; preds = %5
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %23) #4
  %25 = load ptr, ptr %17, align 8, !tbaa !11
  %26 = getelementptr inbounds ptr, ptr %25, i64 42
  %27 = load ptr, ptr %26, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %27(ptr noundef nonnull align 8 dereferenceable(1176) %17, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef @.str.26, ptr noundef %24, ptr noundef @.str.15)
  br label %28

28:                                               ; preds = %21, %5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %29) #4
  %31 = trunc i64 %30 to i32
  store i32 %31, ptr %13, align 4, !tbaa !9
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7glslangL19MaxSwizzleSelectorsE, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %33 = load i32, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  store i32 %33, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %114, %28
  %35 = load i32, ptr %14, align 4, !tbaa !9
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %117

39:                                               ; preds = %34
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = load i32, ptr %14, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %40, i64 noundef %42) #4
  %44 = load i8, ptr %43, align 1, !tbaa !13
  %45 = sext i8 %44 to i32
  switch i32 %45, label %106 [
    i32 120, label %46
    i32 114, label %51
    i32 115, label %56
    i32 121, label %61
    i32 103, label %66
    i32 116, label %71
    i32 122, label %76
    i32 98, label %81
    i32 112, label %86
    i32 119, label %91
    i32 97, label %96
    i32 113, label %101
  ]

46:                                               ; preds = %39
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %47, i32 noundef 0)
  %48 = load i32, ptr %14, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %49
  store i32 0, ptr %50, align 4, !tbaa !13
  br label %113

51:                                               ; preds = %39
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %52, i32 noundef 0)
  %53 = load i32, ptr %14, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %54
  store i32 1, ptr %55, align 4, !tbaa !13
  br label %113

56:                                               ; preds = %39
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %57, i32 noundef 0)
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %59
  store i32 2, ptr %60, align 4, !tbaa !13
  br label %113

61:                                               ; preds = %39
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %62, i32 noundef 1)
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %64
  store i32 0, ptr %65, align 4, !tbaa !13
  br label %113

66:                                               ; preds = %39
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %67, i32 noundef 1)
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %69
  store i32 1, ptr %70, align 4, !tbaa !13
  br label %113

71:                                               ; preds = %39
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %72, i32 noundef 1)
  %73 = load i32, ptr %14, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %74
  store i32 2, ptr %75, align 4, !tbaa !13
  br label %113

76:                                               ; preds = %39
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %77, i32 noundef 2)
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %79
  store i32 0, ptr %80, align 4, !tbaa !13
  br label %113

81:                                               ; preds = %39
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %82, i32 noundef 2)
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %84
  store i32 1, ptr %85, align 4, !tbaa !13
  br label %113

86:                                               ; preds = %39
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %87, i32 noundef 2)
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %89
  store i32 2, ptr %90, align 4, !tbaa !13
  br label %113

91:                                               ; preds = %39
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %92, i32 noundef 3)
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %94
  store i32 0, ptr %95, align 4, !tbaa !13
  br label %113

96:                                               ; preds = %39
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %97, i32 noundef 3)
  %98 = load i32, ptr %14, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %99
  store i32 1, ptr %100, align 4, !tbaa !13
  br label %113

101:                                              ; preds = %39
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %102, i32 noundef 3)
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %104
  store i32 2, ptr %105, align 4, !tbaa !13
  br label %113

106:                                              ; preds = %39
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %108) #4
  %110 = load ptr, ptr %17, align 8, !tbaa !11
  %111 = getelementptr inbounds ptr, ptr %110, i64 42
  %112 = load ptr, ptr %111, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %112(ptr noundef nonnull align 8 dereferenceable(1176) %17, ptr noundef nonnull align 8 dereferenceable(24) %107, ptr noundef @.str.27, ptr noundef %109, ptr noundef @.str.15)
  br label %113

113:                                              ; preds = %106, %101, %96, %91, %86, %81, %76, %71, %66, %61, %56, %51, %46
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %14, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %14, align 4, !tbaa !9
  br label %34, !llvm.loop !14

117:                                              ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %163, %117
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = call noundef i32 @_ZNK7glslang17TSwizzleSelectorsIiE4sizeEv(ptr noundef nonnull align 4 dereferenceable(20) %120)
  %122 = icmp slt i32 %119, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %118
  store i32 6, ptr %16, align 4
  br label %166

124:                                              ; preds = %118
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = call noundef i32 @_ZNK7glslang17TSwizzleSelectorsIiEixEi(ptr noundef nonnull align 4 dereferenceable(20) %125, i32 noundef %126)
  %128 = load i32, ptr %9, align 4, !tbaa !9
  %129 = icmp sge i32 %127, %128
  br i1 %129, label %130, label %139

130:                                              ; preds = %124
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %132) #4
  %134 = load ptr, ptr %17, align 8, !tbaa !11
  %135 = getelementptr inbounds ptr, ptr %134, i64 42
  %136 = load ptr, ptr %135, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %136(ptr noundef nonnull align 8 dereferenceable(1176) %17, ptr noundef nonnull align 8 dereferenceable(24) %131, ptr noundef @.str.28, ptr noundef %133, ptr noundef @.str.15)
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = load i32, ptr %15, align 4, !tbaa !9
  call void @_ZN7glslang17TSwizzleSelectorsIiE6resizeEi(ptr noundef nonnull align 4 dereferenceable(20) %137, i32 noundef %138)
  store i32 6, ptr %16, align 4
  br label %166

139:                                              ; preds = %124
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = icmp sgt i32 %140, 0
  br i1 %141, label %142, label %162

142:                                              ; preds = %139
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !13
  %147 = load i32, ptr %15, align 4, !tbaa !9
  %148 = sub nsw i32 %147, 1
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !13
  %152 = icmp ne i32 %146, %151
  br i1 %152, label %153, label %162

153:                                              ; preds = %142
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %155) #4
  %157 = load ptr, ptr %17, align 8, !tbaa !11
  %158 = getelementptr inbounds ptr, ptr %157, i64 42
  %159 = load ptr, ptr %158, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %159(ptr noundef nonnull align 8 dereferenceable(1176) %17, ptr noundef nonnull align 8 dereferenceable(24) %154, ptr noundef @.str.29, ptr noundef %156, ptr noundef @.str.15)
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = load i32, ptr %15, align 4, !tbaa !9
  call void @_ZN7glslang17TSwizzleSelectorsIiE6resizeEi(ptr noundef nonnull align 4 dereferenceable(20) %160, i32 noundef %161)
  store i32 6, ptr %16, align 4
  br label %166

162:                                              ; preds = %142, %139
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %15, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %15, align 4, !tbaa !9
  br label %118, !llvm.loop !16

166:                                              ; preds = %153, %130, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = call noundef i32 @_ZNK7glslang17TSwizzleSelectorsIiE4sizeEv(ptr noundef nonnull align 4 dereferenceable(20) %168)
  %170 = icmp eq i32 %169, 0
  br i1 %170, label %171, label %173

171:                                              ; preds = %167
  %172 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %172, i32 noundef 0)
  br label %173

173:                                              ; preds = %171, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7glslang17TSwizzleSelectorsIiE4sizeEv(ptr noundef nonnull align 4 dereferenceable(20)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7glslang17TSwizzleSelectorsIiEixEi(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang17TSwizzleSelectorsIiE6resizeEi(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint 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 #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 = !{!"vtable pointer", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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.15 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [24 x i8], align 1
@_ZN7glslangL19MaxSwizzleSelectorsE = external hidden constant i32, align 4
@.str.27 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [47 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: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang17TParseContextBase20parseSwizzleSelectorERKNS_10TSourceLocERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS_14pool_allocatorIcEEEEiRNS_17TSwizzleSelectorsIiEE(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %3, ptr noundef nonnull align 4 dereferenceable(20) %4) unnamed_addr #3 align 2 {
  %6 = alloca [4 x i32], align 16
  %7 = alloca i32, align 4
  %8 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %2) #4
  %9 = icmp ugt i64 %8, 4
  br i1 %9, label %10, label %15

10:                                               ; preds = %5
  %11 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %2) #4
  %12 = load ptr, ptr %0, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 336
  %14 = load ptr, ptr %13, align 8
  tail call void (ptr, ptr, ptr, ptr, ptr, ...) %14(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull @.str.26, ptr noundef %11, ptr noundef nonnull @.str.15)
  br label %15

15:                                               ; preds = %10, %5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %16 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %2) #4
  %17 = trunc i64 %16 to i32
  store i32 %17, ptr %7, align 4, !tbaa !8
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @_ZN7glslangL19MaxSwizzleSelectorsE, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %19 = load i32, ptr %18, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %15
  %wide.trip.count = zext nneg i32 %19 to i64
  br label %.lr.ph

.preheader:                                       ; preds = %58, %15
  %21 = call noundef i32 @_ZNK7glslang17TSwizzleSelectorsIiE4sizeEv(ptr noundef nonnull align 4 dereferenceable(20) %4)
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph61.preheader, label %.loopexit

.lr.ph61.preheader:                               ; preds = %.preheader
  %23 = call noundef i32 @_ZNK7glslang17TSwizzleSelectorsIiEixEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 0)
  %.not.peel = icmp slt i32 %23, %3
  br i1 %.not.peel, label %24, label %.loopexit.sink.split

24:                                               ; preds = %.lr.ph61.preheader
  %25 = call noundef i32 @_ZNK7glslang17TSwizzleSelectorsIiE4sizeEv(ptr noundef nonnull align 4 dereferenceable(20) %4)
  %26 = icmp sgt i32 %25, 1
  br i1 %26, label %.lr.ph61, label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph.preheader, %58
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %58 ]
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %indvars.iv) #4
  %28 = load i8, ptr %27, align 1, !tbaa !11
  switch i8 %28, label %53 [
    i8 120, label %29
    i8 114, label %31
    i8 115, label %33
    i8 121, label %35
    i8 103, label %37
    i8 116, label %39
    i8 122, label %41
    i8 98, label %43
    i8 112, label %45
    i8 119, label %47
    i8 97, label %49
    i8 113, label %51
  ]

29:                                               ; preds = %.lr.ph
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 0)
  %30 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 0, ptr %30, align 4, !tbaa !11
  br label %58

31:                                               ; preds = %.lr.ph
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 0)
  %32 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 1, ptr %32, align 4, !tbaa !11
  br label %58

33:                                               ; preds = %.lr.ph
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 0)
  %34 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 2, ptr %34, align 4, !tbaa !11
  br label %58

35:                                               ; preds = %.lr.ph
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 1)
  %36 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 0, ptr %36, align 4, !tbaa !11
  br label %58

37:                                               ; preds = %.lr.ph
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 1)
  %38 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 1, ptr %38, align 4, !tbaa !11
  br label %58

39:                                               ; preds = %.lr.ph
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 1)
  %40 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 2, ptr %40, align 4, !tbaa !11
  br label %58

41:                                               ; preds = %.lr.ph
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 2)
  %42 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 0, ptr %42, align 4, !tbaa !11
  br label %58

43:                                               ; preds = %.lr.ph
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 2)
  %44 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 1, ptr %44, align 4, !tbaa !11
  br label %58

45:                                               ; preds = %.lr.ph
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 2)
  %46 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 2, ptr %46, align 4, !tbaa !11
  br label %58

47:                                               ; preds = %.lr.ph
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 3)
  %48 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 0, ptr %48, align 4, !tbaa !11
  br label %58

49:                                               ; preds = %.lr.ph
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 3)
  %50 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 1, ptr %50, align 4, !tbaa !11
  br label %58

51:                                               ; preds = %.lr.ph
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 3)
  %52 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 2, ptr %52, align 4, !tbaa !11
  br label %58

53:                                               ; preds = %.lr.ph
  %54 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %2) #4
  %55 = load ptr, ptr %0, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 336
  %57 = load ptr, ptr %56, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %57(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull @.str.27, ptr noundef %54, ptr noundef nonnull @.str.15)
  br label %58

58:                                               ; preds = %29, %31, %33, %35, %37, %39, %41, %43, %45, %47, %49, %51, %53
  %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 %.preheader, label %.lr.ph, !llvm.loop !12

.lr.ph61:                                         ; preds = %24, %69
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %69 ], [ 1, %24 ]
  %59 = trunc nuw nsw i64 %indvars.iv65 to i32
  %60 = call noundef i32 @_ZNK7glslang17TSwizzleSelectorsIiEixEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef %59)
  %.not = icmp slt i32 %60, %3
  br i1 %.not, label %62, label %.loopexit69

.loopexit69:                                      ; preds = %.lr.ph61
  %61 = trunc nuw nsw i64 %indvars.iv65 to i32
  br label %.loopexit.sink.split

62:                                               ; preds = %.lr.ph61
  %63 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %indvars.iv65
  %64 = load i32, ptr %63, align 4, !tbaa !11
  %65 = add nsw i64 %indvars.iv65, -1
  %66 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !11
  %.not56 = icmp eq i32 %64, %67
  br i1 %.not56, label %69, label %.loopexit70

.loopexit70:                                      ; preds = %62
  %68 = trunc nuw nsw i64 %indvars.iv65 to i32
  br label %.loopexit.sink.split

69:                                               ; preds = %62
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %70 = call noundef i32 @_ZNK7glslang17TSwizzleSelectorsIiE4sizeEv(ptr noundef nonnull align 4 dereferenceable(20) %4)
  %71 = sext i32 %70 to i64
  %72 = icmp slt i64 %indvars.iv.next66, %71
  br i1 %72, label %.lr.ph61, label %.loopexit, !llvm.loop !14

.loopexit.sink.split:                             ; preds = %.loopexit69, %.lr.ph61.preheader, %.loopexit70
  %.str.29.sink = phi ptr [ @.str.29, %.loopexit70 ], [ @.str.28, %.lr.ph61.preheader ], [ @.str.28, %.loopexit69 ]
  %.sink = phi i32 [ %68, %.loopexit70 ], [ 0, %.lr.ph61.preheader ], [ %61, %.loopexit69 ]
  %73 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %2) #4
  %74 = load ptr, ptr %0, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 336
  %76 = load ptr, ptr %75, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %76(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull %.str.29.sink, ptr noundef %73, ptr noundef nonnull @.str.15)
  call void @_ZN7glslang17TSwizzleSelectorsIiE6resizeEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef %.sink)
  br label %.loopexit

.loopexit:                                        ; preds = %69, %.loopexit.sink.split, %24, %.preheader
  %77 = call noundef i32 @_ZNK7glslang17TSwizzleSelectorsIiE4sizeEv(ptr noundef nonnull align 4 dereferenceable(20) %4)
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %.loopexit
  call void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20) %4, i32 noundef 0)
  br label %80

80:                                               ; preds = %79, %.loopexit
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang17TSwizzleSelectorsIiE9push_backEi(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7glslang17TSwizzleSelectorsIiE4sizeEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7glslang17TSwizzleSelectorsIiEixEi(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang17TSwizzleSelectorsIiE6resizeEi(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress 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 = { inlinehint 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13, !15}
!15 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass