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

; 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.__gnu_cxx::__normal_iterator.155" = type { ptr }
%"struct.std::_List_const_iterator" = type { ptr }
%class.anon = type { ptr, ptr, ptr }
%class.anon.156 = type { ptr, ptr, ptr }
%class.anon.157 = type { ptr, ptr, ptr }
%class.anon.158 = type { ptr, ptr, ptr }
%class.anon.159 = type { ptr, ptr }
%"struct.glslang::TAttributeArgs" = type { i32, ptr }

@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [35 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 ptr @_ZNKSt7__cxx114listIN7glslang14TAttributeArgsENS1_14pool_allocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt20_List_const_iteratorIN7glslang14TAttributeArgsEES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNode(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.155", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.155", align 8
  %12 = alloca %"struct.std::_List_const_iterator", align 8
  %13 = alloca %"struct.std::_List_const_iterator", align 8
  %14 = alloca %class.anon, align 8
  %15 = alloca %class.anon.156, align 8
  %16 = alloca %class.anon.157, align 8
  %17 = alloca %class.anon.158, align 8
  %18 = alloca %class.anon.159, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds ptr, ptr %23, i64 14
  %25 = load ptr, ptr %24, align 8
  %26 = call noundef ptr %25(ptr noundef nonnull align 8 dereferenceable(32) %22)
  store ptr %26, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %78

29:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %31, i64 6
  %33 = load ptr, ptr %32, align 8
  %34 = call noundef ptr %33(ptr noundef nonnull align 8 dereferenceable(32) %30)
  store ptr %34, ptr %8, align 8, !tbaa !5
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %29
  store i32 1, ptr %9, align 4
  br label %75

38:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds ptr, ptr %40, i64 50
  %42 = load ptr, ptr %41, align 8
  %43 = call noundef nonnull align 8 dereferenceable(32) ptr %42(ptr noundef nonnull align 8 dereferenceable(352) %39)
  %44 = call ptr @_ZNSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %43) #5
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.155", ptr %10, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  br label %46

46:                                               ; preds = %67, %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds ptr, ptr %48, i64 50
  %50 = load ptr, ptr %49, align 8
  %51 = call noundef nonnull align 8 dereferenceable(32) ptr %50(ptr noundef nonnull align 8 dereferenceable(352) %47)
  %52 = call ptr @_ZNSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %51) #5
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.155", ptr %11, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  %54 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP11TIntermNodeSt6vectorIS2_N7glslang14pool_allocatorIS2_EEEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br i1 %54, label %56, label %55

55:                                               ; preds = %46
  store i32 2, ptr %9, align 4
  br label %69

56:                                               ; preds = %46
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP11TIntermNodeSt6vectorIS2_N7glslang14pool_allocatorIS2_EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = getelementptr inbounds ptr, ptr %59, i64 14
  %61 = load ptr, ptr %60, align 8
  %62 = call noundef ptr %61(ptr noundef nonnull align 8 dereferenceable(32) %58)
  store ptr %62, ptr %7, align 8, !tbaa !5
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %66

65:                                               ; preds = %56
  store i32 2, ptr %9, align 4
  br label %69

66:                                               ; preds = %56
  br label %67

67:                                               ; preds = %66
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP11TIntermNodeSt6vectorIS2_N7glslang14pool_allocatorIS2_EEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br label %46, !llvm.loop !11

69:                                               ; preds = %65, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = icmp eq ptr %71, null
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  store i32 1, ptr %9, align 4
  br label %75

74:                                               ; preds = %70
  store i32 0, ptr %9, align 4
  br label %75

75:                                               ; preds = %74, %73, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %76 = load i32, ptr %9, align 4
  switch i32 %76, label %170 [
    i32 0, label %77
  ]

77:                                               ; preds = %75
  br label %78

78:                                               ; preds = %77, %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = call ptr @_ZNKSt7__cxx114listIN7glslang14TAttributeArgsENS1_14pool_allocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %79) #5
  %81 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %12, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  br label %82

82:                                               ; preds = %167, %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = call ptr @_ZNKSt7__cxx114listIN7glslang14TAttributeArgsENS1_14pool_allocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %83) #5
  %85 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %13, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  %86 = call noundef zeroext i1 @_ZStneRKSt20_List_const_iteratorIN7glslang14TAttributeArgsEES4_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br i1 %86, label %88, label %87

87:                                               ; preds = %82
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %169

88:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  %89 = getelementptr inbounds %class.anon, ptr %14, i32 0, i32 0
  store ptr %12, ptr %89, align 8, !tbaa !5
  %90 = getelementptr inbounds %class.anon, ptr %14, i32 0, i32 1
  store ptr %21, ptr %90, align 8, !tbaa !13
  %91 = getelementptr inbounds %class.anon, ptr %14, i32 0, i32 2
  store ptr %6, ptr %91, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  %92 = getelementptr inbounds %class.anon.156, ptr %15, i32 0, i32 0
  store ptr %12, ptr %92, align 8, !tbaa !5
  %93 = getelementptr inbounds %class.anon.156, ptr %15, i32 0, i32 1
  store ptr %21, ptr %93, align 8, !tbaa !15
  %94 = getelementptr inbounds %class.anon.156, ptr %15, i32 0, i32 2
  store ptr %6, ptr %94, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  %95 = getelementptr inbounds %class.anon.157, ptr %16, i32 0, i32 0
  store ptr %12, ptr %95, align 8, !tbaa !5
  %96 = getelementptr inbounds %class.anon.157, ptr %16, i32 0, i32 1
  store ptr %21, ptr %96, align 8, !tbaa !17
  %97 = getelementptr inbounds %class.anon.157, ptr %16, i32 0, i32 2
  store ptr %6, ptr %97, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  %98 = getelementptr inbounds %class.anon.158, ptr %17, i32 0, i32 0
  store ptr %12, ptr %98, align 8, !tbaa !5
  %99 = getelementptr inbounds %class.anon.158, ptr %17, i32 0, i32 1
  store ptr %21, ptr %99, align 8, !tbaa !19
  %100 = getelementptr inbounds %class.anon.158, ptr %17, i32 0, i32 2
  store ptr %6, ptr %100, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %101 = getelementptr inbounds %class.anon.159, ptr %18, i32 0, i32 0
  store ptr %21, ptr %101, align 8, !tbaa !21
  %102 = getelementptr inbounds %class.anon.159, ptr %18, i32 0, i32 1
  store ptr %6, ptr %102, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !23
  %103 = call noundef ptr @_ZNKSt20_List_const_iteratorIN7glslang14TAttributeArgsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %104 = getelementptr inbounds %"struct.glslang::TAttributeArgs", ptr %103, i32 0, i32 0
  %105 = load i32, ptr %104, align 8, !tbaa !25
  switch i32 %105, label %157 [
    i32 18, label %106
    i32 19, label %111
    i32 27, label %116
    i32 28, label %121
    i32 29, label %127
    i32 30, label %133
    i32 31, label %139
    i32 32, label %145
    i32 33, label %151
  ]

106:                                              ; preds = %88
  %107 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_0clEPKc"(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef @.str.3)
  br i1 %107, label %108, label %110

108:                                              ; preds = %106
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN7glslang11TIntermLoop9setUnrollEv(ptr noundef nonnull align 8 dereferenceable(84) %109)
  br label %110

110:                                              ; preds = %108, %106
  br label %166

111:                                              ; preds = %88
  %112 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_0clEPKc"(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef @.str.5)
  br i1 %112, label %113, label %115

113:                                              ; preds = %111
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN7glslang11TIntermLoop13setDontUnrollEv(ptr noundef nonnull align 8 dereferenceable(84) %114)
  br label %115

115:                                              ; preds = %113, %111
  br label %166

116:                                              ; preds = %88
  %117 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_0clEPKc"(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef @.str.6)
  br i1 %117, label %118, label %120

118:                                              ; preds = %116
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN7glslang11TIntermLoop17setLoopDependencyEi(ptr noundef nonnull align 8 dereferenceable(84) %119, i32 noundef -1)
  br label %120

120:                                              ; preds = %118, %116
  br label %166

121:                                              ; preds = %88
  %122 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_1clEPKcRi"(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef @.str.7, ptr noundef nonnull align 4 dereferenceable(4) %19)
  br i1 %122, label %123, label %126

123:                                              ; preds = %121
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = load i32, ptr %19, align 4, !tbaa !23
  call void @_ZN7glslang11TIntermLoop17setLoopDependencyEi(ptr noundef nonnull align 8 dereferenceable(84) %124, i32 noundef %125)
  br label %126

126:                                              ; preds = %123, %121
  br label %166

127:                                              ; preds = %88
  call void @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_4clEPKc"(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef @.str.8)
  %128 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_2clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %20)
  br i1 %128, label %129, label %132

129:                                              ; preds = %127
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = load i32, ptr %20, align 4, !tbaa !23
  call void @_ZN7glslang11TIntermLoop16setMinIterationsEj(ptr noundef nonnull align 8 dereferenceable(84) %130, i32 noundef %131)
  br label %132

132:                                              ; preds = %129, %127
  br label %166

133:                                              ; preds = %88
  call void @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_4clEPKc"(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef @.str.9)
  %134 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_2clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef @.str.9, ptr noundef nonnull align 4 dereferenceable(4) %20)
  br i1 %134, label %135, label %138

135:                                              ; preds = %133
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = load i32, ptr %20, align 4, !tbaa !23
  call void @_ZN7glslang11TIntermLoop16setMaxIterationsEj(ptr noundef nonnull align 8 dereferenceable(84) %136, i32 noundef %137)
  br label %138

138:                                              ; preds = %135, %133
  br label %166

139:                                              ; preds = %88
  call void @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_4clEPKc"(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef @.str.10)
  %140 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_3clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef @.str.10, ptr noundef nonnull align 4 dereferenceable(4) %20)
  br i1 %140, label %141, label %144

141:                                              ; preds = %139
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = load i32, ptr %20, align 4, !tbaa !23
  call void @_ZN7glslang11TIntermLoop20setIterationMultipleEj(ptr noundef nonnull align 8 dereferenceable(84) %142, i32 noundef %143)
  br label %144

144:                                              ; preds = %141, %139
  br label %166

145:                                              ; preds = %88
  call void @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_4clEPKc"(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef @.str.11)
  %146 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_2clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef @.str.11, ptr noundef nonnull align 4 dereferenceable(4) %20)
  br i1 %146, label %147, label %150

147:                                              ; preds = %145
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = load i32, ptr %20, align 4, !tbaa !23
  call void @_ZN7glslang11TIntermLoop12setPeelCountEj(ptr noundef nonnull align 8 dereferenceable(84) %148, i32 noundef %149)
  br label %150

150:                                              ; preds = %147, %145
  br label %166

151:                                              ; preds = %88
  call void @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_4clEPKc"(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef @.str.12)
  %152 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_2clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef @.str.12, ptr noundef nonnull align 4 dereferenceable(4) %20)
  br i1 %152, label %153, label %156

153:                                              ; preds = %151
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = load i32, ptr %20, align 4, !tbaa !23
  call void @_ZN7glslang11TIntermLoop15setPartialCountEj(ptr noundef nonnull align 8 dereferenceable(84) %154, i32 noundef %155)
  br label %156

156:                                              ; preds = %153, %151
  br label %166

157:                                              ; preds = %88
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = load ptr, ptr %158, align 8, !tbaa !9
  %160 = getelementptr inbounds ptr, ptr %159, i64 0
  %161 = load ptr, ptr %160, align 8
  %162 = call noundef nonnull align 8 dereferenceable(24) ptr %161(ptr noundef nonnull align 8 dereferenceable(32) %158)
  %163 = load ptr, ptr %21, align 8, !tbaa !9
  %164 = getelementptr inbounds ptr, ptr %163, i64 43
  %165 = load ptr, ptr %164, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %165(ptr noundef nonnull align 8 dereferenceable(1176) %21, ptr noundef nonnull align 8 dereferenceable(24) %162, ptr noundef @.str.18, ptr noundef @.str.15, ptr noundef @.str.15)
  br label %166

166:                                              ; preds = %157, %156, %150, %144, %138, %132, %126, %120, %115, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  br label %167

167:                                              ; preds = %166
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt20_List_const_iteratorIN7glslang14TAttributeArgsEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br label %82, !llvm.loop !28

169:                                              ; preds = %87
  store i32 0, ptr %9, align 4
  br label %170

170:                                              ; preds = %169, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %171 = load i32, ptr %9, align 4
  switch i32 %171, label %173 [
    i32 0, label %172
    i32 1, label %172
  ]

172:                                              ; preds = %170, %170
  ret void

173:                                              ; preds = %170
  unreachable
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP11TIntermNodeSt6vectorIS2_N7glslang14pool_allocatorIS2_EEEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_0clEPKc"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang11TIntermLoop17setLoopDependencyEi(ptr noundef nonnull align 8 dereferenceable(84), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_1clEPKcRi"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_4clEPKc"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_2clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang11TIntermLoop16setMinIterationsEj(ptr noundef nonnull align 8 dereferenceable(84), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang11TIntermLoop16setMaxIterationsEj(ptr noundef nonnull align 8 dereferenceable(84), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_3clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang11TIntermLoop20setIterationMultipleEj(ptr noundef nonnull align 8 dereferenceable(84), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang11TIntermLoop12setPeelCountEj(ptr noundef nonnull align 8 dereferenceable(84), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang11TIntermLoop15setPartialCountEj(ptr noundef nonnull align 8 dereferenceable(84), 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeE3$_0", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!16, !6, i64 8}
!16 = !{!"_ZTSZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeE3$_1", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!18, !6, i64 8}
!18 = !{!"_ZTSZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeE3$_2", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!20, !6, i64 8}
!20 = !{!"_ZTSZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeE3$_3", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeE3$_4", !6, i64 0, !6, i64 8}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = !{!26, !27, i64 0}
!26 = !{!"_ZTSN7glslang14TAttributeArgsE", !27, i64 0, !6, i64 8}
!27 = !{!"_ZTSN7glslang14TAttributeTypeE", !7, i64 0}
!28 = distinct !{!28, !12}


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

%"class.__gnu_cxx::__normal_iterator.155" = type { ptr }
%"struct.std::_List_const_iterator" = type { ptr }
%class.anon = type { ptr, ptr, ptr }
%class.anon.156 = type { ptr, ptr, ptr }
%class.anon.157 = type { ptr, ptr, ptr }
%class.anon.158 = type { ptr, ptr, ptr }
%class.anon.159 = type { ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [35 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 ptr @_ZNKSt7__cxx114listIN7glslang14TAttributeArgsENS1_14pool_allocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt20_List_const_iteratorIN7glslang14TAttributeArgsEES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNode(ptr noundef nonnull align 8 dereferenceable(24912) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2) local_unnamed_addr #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.155", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.155", align 8
  %7 = alloca %"struct.std::_List_const_iterator", align 8
  %8 = alloca %"struct.std::_List_const_iterator", align 8
  %9 = alloca %class.anon, align 8
  %10 = alloca %class.anon.156, align 8
  %11 = alloca %class.anon.157, align 8
  %12 = alloca %class.anon.158, align 8
  %13 = alloca %class.anon.159, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %2, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %16, i64 112
  %18 = load ptr, ptr %17, align 8
  %19 = tail call noundef ptr %18(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %53

21:                                               ; preds = %3
  %22 = load ptr, ptr %2, align 8, !tbaa !9
  %23 = getelementptr inbounds i8, ptr %22, i64 48
  %24 = load ptr, ptr %23, align 8
  %25 = tail call noundef ptr %24(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %26 = icmp eq ptr %25, null
  br i1 %26, label %.thread, label %27

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %28 = load ptr, ptr %25, align 8, !tbaa !9
  %29 = getelementptr inbounds i8, ptr %28, i64 400
  %30 = load ptr, ptr %29, align 8
  %31 = tail call noundef nonnull align 8 dereferenceable(32) ptr %30(ptr noundef nonnull align 8 dereferenceable(352) %25)
  %32 = tail call ptr @_ZNSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %31) #5
  store ptr %32, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %33 = load ptr, ptr %25, align 8, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %33, i64 400
  %35 = load ptr, ptr %34, align 8
  %36 = tail call noundef nonnull align 8 dereferenceable(32) ptr %35(ptr noundef nonnull align 8 dereferenceable(352) %25)
  %37 = tail call ptr @_ZNSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %36) #5
  store ptr %37, ptr %6, align 8
  %38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP11TIntermNodeSt6vectorIS2_N7glslang14pool_allocatorIS2_EEEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br i1 %38, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %27, %45
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP11TIntermNodeSt6vectorIS2_N7glslang14pool_allocatorIS2_EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = getelementptr inbounds i8, ptr %41, i64 112
  %43 = load ptr, ptr %42, align 8
  %44 = call noundef ptr %43(ptr noundef nonnull align 8 dereferenceable(32) %40)
  %.not = icmp eq ptr %44, null
  br i1 %.not, label %45, label %.thread26

.thread26:                                        ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %53

45:                                               ; preds = %.lr.ph
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP11TIntermNodeSt6vectorIS2_N7glslang14pool_allocatorIS2_EEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %47 = load ptr, ptr %25, align 8, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %47, i64 400
  %49 = load ptr, ptr %48, align 8
  %50 = call noundef nonnull align 8 dereferenceable(32) ptr %49(ptr noundef nonnull align 8 dereferenceable(352) %25)
  %51 = call ptr @_ZNSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %50) #5
  store ptr %51, ptr %6, align 8
  %52 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP11TIntermNodeSt6vectorIS2_N7glslang14pool_allocatorIS2_EEEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br i1 %52, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %45, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %.thread

53:                                               ; preds = %.thread26, %3
  %.3 = phi ptr [ %19, %3 ], [ %44, %.thread26 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %54 = call ptr @_ZNKSt7__cxx114listIN7glslang14TAttributeArgsENS1_14pool_allocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  store ptr %54, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %55 = call ptr @_ZNKSt7__cxx114listIN7glslang14TAttributeArgsENS1_14pool_allocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  store ptr %55, ptr %8, align 8
  %56 = call noundef zeroext i1 @_ZStneRKSt20_List_const_iteratorIN7glslang14TAttributeArgsEES4_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br i1 %56, label %.lr.ph30, label %._crit_edge31

.lr.ph30:                                         ; preds = %53
  %57 = getelementptr inbounds i8, ptr %9, i64 8
  %58 = getelementptr inbounds i8, ptr %9, i64 16
  %59 = getelementptr inbounds i8, ptr %10, i64 8
  %60 = getelementptr inbounds i8, ptr %10, i64 16
  %61 = getelementptr inbounds i8, ptr %11, i64 8
  %62 = getelementptr inbounds i8, ptr %11, i64 16
  %63 = getelementptr inbounds i8, ptr %12, i64 8
  %64 = getelementptr inbounds i8, ptr %12, i64 16
  %65 = getelementptr inbounds i8, ptr %13, i64 8
  br label %66

._crit_edge31:                                    ; preds = %110, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %.thread

66:                                               ; preds = %.lr.ph30, %110
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  store ptr %7, ptr %9, align 8, !tbaa !5
  store ptr %0, ptr %57, align 8, !tbaa !13
  store ptr %4, ptr %58, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  store ptr %7, ptr %10, align 8, !tbaa !5
  store ptr %0, ptr %59, align 8, !tbaa !15
  store ptr %4, ptr %60, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  store ptr %7, ptr %11, align 8, !tbaa !5
  store ptr %0, ptr %61, align 8, !tbaa !17
  store ptr %4, ptr %62, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  store ptr %7, ptr %12, align 8, !tbaa !5
  store ptr %0, ptr %63, align 8, !tbaa !19
  store ptr %4, ptr %64, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  store ptr %0, ptr %13, align 8, !tbaa !21
  store ptr %4, ptr %65, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  store i32 0, ptr %14, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  store i32 0, ptr %15, align 4, !tbaa !23
  %67 = call noundef ptr @_ZNKSt20_List_const_iteratorIN7glslang14TAttributeArgsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %68 = load i32, ptr %67, align 8, !tbaa !25
  switch i32 %68, label %102 [
    i32 18, label %69
    i32 19, label %72
    i32 27, label %75
    i32 28, label %78
    i32 29, label %82
    i32 30, label %86
    i32 31, label %90
    i32 32, label %94
    i32 33, label %98
  ]

69:                                               ; preds = %66
  %70 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_0clEPKc"(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull @.str.3)
  br i1 %70, label %71, label %110

71:                                               ; preds = %69
  call void @_ZN7glslang11TIntermLoop9setUnrollEv(ptr noundef nonnull align 8 dereferenceable(84) %.3)
  br label %110

72:                                               ; preds = %66
  %73 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_0clEPKc"(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull @.str.5)
  br i1 %73, label %74, label %110

74:                                               ; preds = %72
  call void @_ZN7glslang11TIntermLoop13setDontUnrollEv(ptr noundef nonnull align 8 dereferenceable(84) %.3)
  br label %110

75:                                               ; preds = %66
  %76 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_0clEPKc"(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull @.str.6)
  br i1 %76, label %77, label %110

77:                                               ; preds = %75
  call void @_ZN7glslang11TIntermLoop17setLoopDependencyEi(ptr noundef nonnull align 8 dereferenceable(84) %.3, i32 noundef -1)
  br label %110

78:                                               ; preds = %66
  %79 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_1clEPKcRi"(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull @.str.7, ptr noundef nonnull align 4 dereferenceable(4) %14)
  br i1 %79, label %80, label %110

80:                                               ; preds = %78
  %81 = load i32, ptr %14, align 4, !tbaa !23
  call void @_ZN7glslang11TIntermLoop17setLoopDependencyEi(ptr noundef nonnull align 8 dereferenceable(84) %.3, i32 noundef %81)
  br label %110

82:                                               ; preds = %66
  call void @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_4clEPKc"(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull @.str.8)
  %83 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_2clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %15)
  br i1 %83, label %84, label %110

84:                                               ; preds = %82
  %85 = load i32, ptr %15, align 4, !tbaa !23
  call void @_ZN7glslang11TIntermLoop16setMinIterationsEj(ptr noundef nonnull align 8 dereferenceable(84) %.3, i32 noundef %85)
  br label %110

86:                                               ; preds = %66
  call void @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_4clEPKc"(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull @.str.9)
  %87 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_2clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull @.str.9, ptr noundef nonnull align 4 dereferenceable(4) %15)
  br i1 %87, label %88, label %110

88:                                               ; preds = %86
  %89 = load i32, ptr %15, align 4, !tbaa !23
  call void @_ZN7glslang11TIntermLoop16setMaxIterationsEj(ptr noundef nonnull align 8 dereferenceable(84) %.3, i32 noundef %89)
  br label %110

90:                                               ; preds = %66
  call void @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_4clEPKc"(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull @.str.10)
  %91 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_3clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull @.str.10, ptr noundef nonnull align 4 dereferenceable(4) %15)
  br i1 %91, label %92, label %110

92:                                               ; preds = %90
  %93 = load i32, ptr %15, align 4, !tbaa !23
  call void @_ZN7glslang11TIntermLoop20setIterationMultipleEj(ptr noundef nonnull align 8 dereferenceable(84) %.3, i32 noundef %93)
  br label %110

94:                                               ; preds = %66
  call void @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_4clEPKc"(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull @.str.11)
  %95 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_2clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull @.str.11, ptr noundef nonnull align 4 dereferenceable(4) %15)
  br i1 %95, label %96, label %110

96:                                               ; preds = %94
  %97 = load i32, ptr %15, align 4, !tbaa !23
  call void @_ZN7glslang11TIntermLoop12setPeelCountEj(ptr noundef nonnull align 8 dereferenceable(84) %.3, i32 noundef %97)
  br label %110

98:                                               ; preds = %66
  call void @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_4clEPKc"(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull @.str.12)
  %99 = call noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_2clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull @.str.12, ptr noundef nonnull align 4 dereferenceable(4) %15)
  br i1 %99, label %100, label %110

100:                                              ; preds = %98
  %101 = load i32, ptr %15, align 4, !tbaa !23
  call void @_ZN7glslang11TIntermLoop15setPartialCountEj(ptr noundef nonnull align 8 dereferenceable(84) %.3, i32 noundef %101)
  br label %110

102:                                              ; preds = %66
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = load ptr, ptr %103, align 8, !tbaa !9
  %105 = load ptr, ptr %104, align 8
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr %105(ptr noundef nonnull align 8 dereferenceable(32) %103)
  %107 = load ptr, ptr %0, align 8, !tbaa !9
  %108 = getelementptr inbounds i8, ptr %107, i64 344
  %109 = load ptr, ptr %108, align 8
  call void (ptr, ptr, ptr, ptr, ptr, ...) %109(ptr noundef nonnull align 8 dereferenceable(1176) %0, ptr noundef nonnull align 8 dereferenceable(24) %106, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.15)
  br label %110

110:                                              ; preds = %98, %100, %94, %96, %90, %92, %86, %88, %82, %84, %78, %80, %75, %77, %72, %74, %69, %71, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt20_List_const_iteratorIN7glslang14TAttributeArgsEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %112 = call ptr @_ZNKSt7__cxx114listIN7glslang14TAttributeArgsENS1_14pool_allocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  store ptr %112, ptr %8, align 8
  %113 = call noundef zeroext i1 @_ZStneRKSt20_List_const_iteratorIN7glslang14TAttributeArgsEES4_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br i1 %113, label %66, label %._crit_edge31, !llvm.loop !28

.thread:                                          ; preds = %21, %._crit_edge, %._crit_edge31
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP11TIntermNodeSt6vectorIS2_N7glslang14pool_allocatorIS2_EEEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_0clEPKc"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #4 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_1clEPKcRi"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_4clEPKc"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_2clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeENK3$_3clEPKcRj"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang11TIntermLoop15setPartialCountEj(ptr noundef nonnull align 8 dereferenceable(84), 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeE3$_0", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!16, !6, i64 8}
!16 = !{!"_ZTSZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeE3$_1", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!18, !6, i64 8}
!18 = !{!"_ZTSZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeE3$_2", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!20, !6, i64 8}
!20 = !{!"_ZTSZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeE3$_3", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSZN7glslang13TParseContext20handleLoopAttributesERKNS_5TListINS_14TAttributeArgsEEEP11TIntermNodeE3$_4", !6, i64 0, !6, i64 8}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = !{!26, !27, i64 0}
!26 = !{!"_ZTSN7glslang14TAttributeArgsE", !27, i64 0, !6, i64 8}
!27 = !{!"_ZTSN7glslang14TAttributeTypeE", !7, i64 0}
!28 = distinct !{!28, !12}


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