; LLVM IR from hbatagelo/abcg :: abcg/external/glslang/SPIRV (SpvBuilder)

; 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.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.24" = type { i8 }

@.str.3 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__._ZN3spv7Builder22createCompositeCompareENS_10DecorationEjjb = external hidden unnamed_addr constant [66 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [54 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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 uwtable
declare dso_local noundef i32 @_ZN3spv7Builder12makeBoolTypeEv(ptr noundef nonnull align 8 dereferenceable(1096)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3spv7Builder14makeVectorTypeEji(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3spv7Builder9getTypeIdEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3spv7Builder21getMostBasicTypeClassEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3spv7Builder22getNumTypeConstituentsEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3spv7Builder18getContainedTypeIdEji(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3spv7Builder12setPrecisionEjNS_10DecorationE(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef, i32 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3spv7Builder22createCompositeExtractEjjRKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3spv7Builder13createUnaryOpENS_2OpEjj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef, i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3spv7Builder11createBinOpENS_2OpEjjj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3spv7Builder12isScalarTypeEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3spv7Builder22createCompositeCompareENS_10DecorationEjjb(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %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
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector.22", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::allocator.24", align 1
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !11
  store i32 %3, ptr %10, align 4, !tbaa !11
  %29 = zext i1 %4 to i8
  store i8 %29, ptr %11, align 1, !tbaa !13
  %30 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %31 = call noundef i32 @_ZN3spv7Builder12makeBoolTypeEv(ptr noundef nonnull align 8 dereferenceable(1096) %30)
  store i32 %31, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %32 = load i32, ptr %9, align 4, !tbaa !11
  %33 = call noundef i32 @_ZNK3spv7Builder9getTypeIdEj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %32)
  store i32 %33, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %34 = load i32, ptr %13, align 4, !tbaa !11
  %35 = call noundef i32 @_ZNK3spv7Builder22getNumTypeConstituentsEj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %34)
  store i32 %35, ptr %15, align 4, !tbaa !11
  %36 = load i32, ptr %13, align 4, !tbaa !11
  %37 = call noundef zeroext i1 @_ZNK3spv7Builder12isScalarTypeEj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %36)
  br i1 %37, label %41, label %38

38:                                               ; preds = %5
  %39 = load i32, ptr %13, align 4, !tbaa !11
  %40 = call noundef zeroext i1 @_ZNK3spv7Builder12isVectorTypeEj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %39)
  br i1 %40, label %41, label %99

41:                                               ; preds = %38, %5
  %42 = load i32, ptr %13, align 4, !tbaa !11
  %43 = load i32, ptr %10, align 4, !tbaa !11
  %44 = call noundef i32 @_ZNK3spv7Builder9getTypeIdEj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %43)
  %45 = icmp eq i32 %42, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %41
  br label %49

47:                                               ; preds = %41
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.3, i32 noundef 2330, ptr noundef @__PRETTY_FUNCTION__._ZN3spv7Builder22createCompositeCompareENS_10DecorationEjjb) #5
  unreachable

48:                                               ; No predecessors!
  br label %49

49:                                               ; preds = %48, %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %50 = load i32, ptr %13, align 4, !tbaa !11
  %51 = call noundef i32 @_ZNK3spv7Builder21getMostBasicTypeClassEj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %50)
  switch i32 %51, label %58 [
    i32 22, label %52
    i32 21, label %57
    i32 20, label %63
  ]

52:                                               ; preds = %49
  %53 = load i8, ptr %11, align 1, !tbaa !13, !range !15, !noundef !16
  %54 = trunc i8 %53 to i1
  %55 = zext i1 %54 to i64
  %56 = select i1 %54, i32 180, i32 183
  store i32 %56, ptr %16, align 4, !tbaa !17
  br label %68

57:                                               ; preds = %49
  br label %58

58:                                               ; preds = %57, %49
  %59 = load i8, ptr %11, align 1, !tbaa !13, !range !15, !noundef !16
  %60 = trunc i8 %59 to i1
  %61 = zext i1 %60 to i64
  %62 = select i1 %60, i32 170, i32 171
  store i32 %62, ptr %16, align 4, !tbaa !17
  br label %68

63:                                               ; preds = %49
  %64 = load i8, ptr %11, align 1, !tbaa !13, !range !15, !noundef !16
  %65 = trunc i8 %64 to i1
  %66 = zext i1 %65 to i64
  %67 = select i1 %65, i32 164, i32 165
  store i32 %67, ptr %16, align 4, !tbaa !17
  store i32 2147483647, ptr %8, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %63, %58, %52
  %69 = load i32, ptr %13, align 4, !tbaa !11
  %70 = call noundef zeroext i1 @_ZNK3spv7Builder12isScalarTypeEj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %69)
  br i1 %70, label %71, label %77

71:                                               ; preds = %68
  %72 = load i32, ptr %16, align 4, !tbaa !17
  %73 = load i32, ptr %12, align 4, !tbaa !11
  %74 = load i32, ptr %9, align 4, !tbaa !11
  %75 = load i32, ptr %10, align 4, !tbaa !11
  %76 = call noundef i32 @_ZN3spv7Builder11createBinOpENS_2OpEjjj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %72, i32 noundef %73, i32 noundef %74, i32 noundef %75)
  store i32 %76, ptr %14, align 4, !tbaa !11
  br label %95

77:                                               ; preds = %68
  %78 = load i32, ptr %16, align 4, !tbaa !17
  %79 = load i32, ptr %12, align 4, !tbaa !11
  %80 = load i32, ptr %15, align 4, !tbaa !11
  %81 = call noundef i32 @_ZN3spv7Builder14makeVectorTypeEji(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %79, i32 noundef %80)
  %82 = load i32, ptr %9, align 4, !tbaa !11
  %83 = load i32, ptr %10, align 4, !tbaa !11
  %84 = call noundef i32 @_ZN3spv7Builder11createBinOpENS_2OpEjjj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %78, i32 noundef %81, i32 noundef %82, i32 noundef %83)
  store i32 %84, ptr %14, align 4, !tbaa !11
  %85 = load i32, ptr %14, align 4, !tbaa !11
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = call noundef i32 @_ZN3spv7Builder12setPrecisionEjNS_10DecorationE(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %85, i32 noundef %86)
  %88 = load i8, ptr %11, align 1, !tbaa !13, !range !15, !noundef !16
  %89 = trunc i8 %88 to i1
  %90 = zext i1 %89 to i64
  %91 = select i1 %89, i32 155, i32 154
  %92 = load i32, ptr %12, align 4, !tbaa !11
  %93 = load i32, ptr %14, align 4, !tbaa !11
  %94 = call noundef i32 @_ZN3spv7Builder13createUnaryOpENS_2OpEjj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %91, i32 noundef %92, i32 noundef %93)
  store i32 %94, ptr %14, align 4, !tbaa !11
  br label %95

95:                                               ; preds = %77, %71
  %96 = load i32, ptr %14, align 4, !tbaa !11
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = call noundef i32 @_ZN3spv7Builder12setPrecisionEjNS_10DecorationE(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %96, i32 noundef %97)
  store i32 %98, ptr %6, align 4
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %198

99:                                               ; preds = %38
  %100 = load i32, ptr %13, align 4, !tbaa !11
  %101 = call noundef zeroext i1 @_ZNK3spv7Builder15isAggregateTypeEj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %100)
  br i1 %101, label %105, label %102

102:                                              ; preds = %99
  %103 = load i32, ptr %13, align 4, !tbaa !11
  %104 = call noundef zeroext i1 @_ZNK3spv7Builder12isMatrixTypeEj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %103)
  br label %105

105:                                              ; preds = %102, %99
  %106 = phi i1 [ true, %99 ], [ %104, %102 ]
  br i1 %106, label %107, label %108

107:                                              ; preds = %105
  br label %110

108:                                              ; preds = %105
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.3, i32 noundef 2364, ptr noundef @__PRETTY_FUNCTION__._ZN3spv7Builder22createCompositeCompareENS_10DecorationEjjb) #5
  unreachable

109:                                              ; No predecessors!
  br label %110

110:                                              ; preds = %109, %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %111

111:                                              ; preds = %188, %110
  %112 = load i32, ptr %18, align 4, !tbaa !11
  %113 = load i32, ptr %15, align 4, !tbaa !11
  %114 = icmp slt i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 3, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %196

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %117 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %117, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #4
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #4
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 1, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %118 unwind label %150

118:                                              ; preds = %116
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %119 = load i32, ptr %9, align 4, !tbaa !11
  %120 = invoke noundef i32 @_ZNK3spv7Builder9getTypeIdEj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %119)
          to label %121 unwind label %154

121:                                              ; preds = %118
  %122 = load i32, ptr %18, align 4, !tbaa !11
  %123 = invoke noundef i32 @_ZNK3spv7Builder18getContainedTypeIdEji(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %120, i32 noundef %122)
          to label %124 unwind label %154

124:                                              ; preds = %121
  store i32 %123, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %125 = load i32, ptr %10, align 4, !tbaa !11
  %126 = invoke noundef i32 @_ZNK3spv7Builder9getTypeIdEj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %125)
          to label %127 unwind label %158

127:                                              ; preds = %124
  %128 = load i32, ptr %18, align 4, !tbaa !11
  %129 = invoke noundef i32 @_ZNK3spv7Builder18getContainedTypeIdEji(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %126, i32 noundef %128)
          to label %130 unwind label %158

130:                                              ; preds = %127
  store i32 %129, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %131 = load i32, ptr %9, align 4, !tbaa !11
  %132 = load i32, ptr %24, align 4, !tbaa !11
  %133 = invoke noundef i32 @_ZN3spv7Builder22createCompositeExtractEjjRKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %131, i32 noundef %132, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %134 unwind label %162

134:                                              ; preds = %130
  store i32 %133, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %135 = load i32, ptr %10, align 4, !tbaa !11
  %136 = load i32, ptr %25, align 4, !tbaa !11
  %137 = invoke noundef i32 @_ZN3spv7Builder22createCompositeExtractEjjRKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %135, i32 noundef %136, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %138 unwind label %166

138:                                              ; preds = %134
  store i32 %137, ptr %27, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %139 = load i32, ptr %8, align 4, !tbaa !9
  %140 = load i32, ptr %26, align 4, !tbaa !11
  %141 = load i32, ptr %27, align 4, !tbaa !11
  %142 = load i8, ptr %11, align 1, !tbaa !13, !range !15, !noundef !16
  %143 = trunc i8 %142 to i1
  %144 = invoke noundef i32 @_ZN3spv7Builder22createCompositeCompareENS_10DecorationEjjb(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %139, i32 noundef %140, i32 noundef %141, i1 noundef zeroext %143)
          to label %145 unwind label %170

145:                                              ; preds = %138
  store i32 %144, ptr %28, align 4, !tbaa !11
  %146 = load i32, ptr %18, align 4, !tbaa !11
  %147 = icmp eq i32 %146, 0
  br i1 %147, label %148, label %174

148:                                              ; preds = %145
  %149 = load i32, ptr %28, align 4, !tbaa !11
  store i32 %149, ptr %14, align 4, !tbaa !11
  br label %187

150:                                              ; preds = %116
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %22, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %23, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %195

154:                                              ; preds = %121, %118
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %22, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %23, align 4
  br label %194

158:                                              ; preds = %127, %124
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %22, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %23, align 4
  br label %193

162:                                              ; preds = %130
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %22, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %23, align 4
  br label %192

166:                                              ; preds = %134
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %22, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %23, align 4
  br label %191

170:                                              ; preds = %183, %174, %138
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %22, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %191

174:                                              ; preds = %145
  %175 = load i8, ptr %11, align 1, !tbaa !13, !range !15, !noundef !16
  %176 = trunc i8 %175 to i1
  %177 = zext i1 %176 to i64
  %178 = select i1 %176, i32 167, i32 166
  %179 = load i32, ptr %12, align 4, !tbaa !11
  %180 = load i32, ptr %14, align 4, !tbaa !11
  %181 = load i32, ptr %28, align 4, !tbaa !11
  %182 = invoke noundef i32 @_ZN3spv7Builder11createBinOpENS_2OpEjjj(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %178, i32 noundef %179, i32 noundef %180, i32 noundef %181)
          to label %183 unwind label %170

183:                                              ; preds = %174
  %184 = load i32, ptr %8, align 4, !tbaa !9
  %185 = invoke noundef i32 @_ZN3spv7Builder12setPrecisionEjNS_10DecorationE(ptr noundef nonnull align 8 dereferenceable(1096) %30, i32 noundef %182, i32 noundef %184)
          to label %186 unwind label %170

186:                                              ; preds = %183
  store i32 %185, ptr %14, align 4, !tbaa !11
  br label %187

187:                                              ; preds = %186, %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #4
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %18, align 4, !tbaa !11
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %18, align 4, !tbaa !11
  br label %111, !llvm.loop !19

191:                                              ; preds = %170, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %192

192:                                              ; preds = %191, %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %193

193:                                              ; preds = %192, %158
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %194

194:                                              ; preds = %193, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  br label %195

195:                                              ; preds = %194, %150
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %200

196:                                              ; preds = %115
  %197 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %197, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %198

198:                                              ; preds = %196, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %199 = load i32, ptr %6, align 4
  ret i32 %199

200:                                              ; preds = %195
  %201 = load ptr, ptr %22, align 8
  %202 = load i32, ptr %23, align 4
  %203 = insertvalue { ptr, i32 } poison, ptr %201, 0
  %204 = insertvalue { ptr, i32 } %203, i32 %202, 1
  resume { ptr, i32 } %204
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3spv7Builder12isVectorTypeEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3spv7Builder15isAggregateTypeEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3spv7Builder12isMatrixTypeEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) #2 align 2

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

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


; 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.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.24" = type { i8 }

@.str.3 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__._ZN3spv7Builder22createCompositeCompareENS_10DecorationEjjb = external hidden unnamed_addr constant [66 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [54 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3spv7Builder14makeVectorTypeEji(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3spv7Builder9getTypeIdEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3spv7Builder21getMostBasicTypeClassEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3spv7Builder22getNumTypeConstituentsEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3spv7Builder18getContainedTypeIdEji(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3spv7Builder12setPrecisionEjNS_10DecorationE(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3spv7Builder22createCompositeExtractEjjRKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3spv7Builder13createUnaryOpENS_2OpEjj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3spv7Builder11createBinOpENS_2OpEjjj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3spv7Builder12isScalarTypeEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3spv7Builder22createCompositeCompareENS_10DecorationEjjb(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::vector.22", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::allocator.24", align 1
  %9 = tail call noundef i32 @_ZN3spv7Builder12makeBoolTypeEv(ptr noundef nonnull align 8 dereferenceable(1096) %0)
  %10 = tail call noundef i32 @_ZNK3spv7Builder9getTypeIdEj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %2)
  %11 = tail call noundef i32 @_ZNK3spv7Builder22getNumTypeConstituentsEj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %10)
  %12 = tail call noundef zeroext i1 @_ZNK3spv7Builder12isScalarTypeEj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %10)
  br i1 %12, label %15, label %13

13:                                               ; preds = %5
  %14 = tail call noundef zeroext i1 @_ZNK3spv7Builder12isVectorTypeEj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %10)
  br i1 %14, label %15, label %39

15:                                               ; preds = %13, %5
  %16 = tail call noundef i32 @_ZNK3spv7Builder9getTypeIdEj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %3)
  %17 = icmp eq i32 %10, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.3, i32 noundef 2330, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3spv7Builder22createCompositeCompareENS_10DecorationEjjb) #4
  unreachable

19:                                               ; preds = %15
  %20 = tail call noundef i32 @_ZNK3spv7Builder21getMostBasicTypeClassEj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %10)
  switch i32 %20, label %23 [
    i32 22, label %21
    i32 20, label %25
  ]

21:                                               ; preds = %19
  %22 = select i1 %4, i32 180, i32 183
  br label %27

23:                                               ; preds = %19
  %24 = select i1 %4, i32 170, i32 171
  br label %27

25:                                               ; preds = %19
  %26 = select i1 %4, i32 164, i32 165
  br label %27

27:                                               ; preds = %25, %23, %21
  %.058 = phi i32 [ %24, %23 ], [ %26, %25 ], [ %22, %21 ]
  %.056 = phi i32 [ %1, %23 ], [ 2147483647, %25 ], [ %1, %21 ]
  %28 = tail call noundef zeroext i1 @_ZNK3spv7Builder12isScalarTypeEj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %10)
  br i1 %28, label %29, label %31

29:                                               ; preds = %27
  %30 = tail call noundef i32 @_ZN3spv7Builder11createBinOpENS_2OpEjjj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %.058, i32 noundef %9, i32 noundef %2, i32 noundef %3)
  br label %37

31:                                               ; preds = %27
  %32 = tail call noundef i32 @_ZN3spv7Builder14makeVectorTypeEji(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %9, i32 noundef %11)
  %33 = tail call noundef i32 @_ZN3spv7Builder11createBinOpENS_2OpEjjj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %.058, i32 noundef %32, i32 noundef %2, i32 noundef %3)
  %34 = tail call noundef i32 @_ZN3spv7Builder12setPrecisionEjNS_10DecorationE(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %33, i32 noundef %.056)
  %35 = select i1 %4, i32 155, i32 154
  %36 = tail call noundef i32 @_ZN3spv7Builder13createUnaryOpENS_2OpEjj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %35, i32 noundef %9, i32 noundef %33)
  br label %37

37:                                               ; preds = %31, %29
  %.057 = phi i32 [ %30, %29 ], [ %36, %31 ]
  %38 = tail call noundef i32 @_ZN3spv7Builder12setPrecisionEjNS_10DecorationE(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %.057, i32 noundef %.056)
  br label %.loopexit

39:                                               ; preds = %13
  %40 = tail call noundef zeroext i1 @_ZNK3spv7Builder15isAggregateTypeEj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %10)
  br i1 %40, label %.critedge, label %41

41:                                               ; preds = %39
  %42 = tail call noundef zeroext i1 @_ZNK3spv7Builder12isMatrixTypeEj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %10)
  br i1 %42, label %.critedge, label %43

43:                                               ; preds = %41
  tail call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.3, i32 noundef 2364, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3spv7Builder22createCompositeCompareENS_10DecorationEjjb) #4
  unreachable

.critedge:                                        ; preds = %39, %41
  %44 = icmp sgt i32 %11, 0
  br i1 %44, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.critedge
  %45 = select i1 %4, i32 167, i32 166
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 1, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %46 unwind label %.loopexit.split-lp

46:                                               ; preds = %.lr.ph
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  %47 = invoke noundef i32 @_ZNK3spv7Builder9getTypeIdEj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %2)
          to label %48 unwind label %.loopexit.split-lp85

48:                                               ; preds = %46
  %49 = invoke noundef i32 @_ZNK3spv7Builder18getContainedTypeIdEji(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %47, i32 noundef 0)
          to label %50 unwind label %.loopexit.split-lp85

50:                                               ; preds = %48
  %51 = invoke noundef i32 @_ZNK3spv7Builder9getTypeIdEj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %3)
          to label %52 unwind label %.loopexit.split-lp90

52:                                               ; preds = %50
  %53 = invoke noundef i32 @_ZNK3spv7Builder18getContainedTypeIdEji(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %51, i32 noundef 0)
          to label %54 unwind label %.loopexit.split-lp90

54:                                               ; preds = %52
  %55 = invoke noundef i32 @_ZN3spv7Builder22createCompositeExtractEjjRKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %2, i32 noundef %49, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %56 unwind label %.loopexit.split-lp95

56:                                               ; preds = %54
  %57 = invoke noundef i32 @_ZN3spv7Builder22createCompositeExtractEjjRKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %3, i32 noundef %53, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %58 unwind label %.loopexit.split-lp100

58:                                               ; preds = %56
  %59 = invoke noundef i32 @_ZN3spv7Builder22createCompositeCompareENS_10DecorationEjjb(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %1, i32 noundef %55, i32 noundef %57, i1 noundef zeroext %4)
          to label %60 unwind label %.loopexit.split-lp105

60:                                               ; preds = %58
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  %exitcond.peel.not = icmp eq i32 %11, 1
  br i1 %exitcond.peel.not, label %.loopexit, label %.peel.next

.peel.next:                                       ; preds = %60, %80
  %.181 = phi i32 [ %79, %80 ], [ %59, %60 ]
  %.06780 = phi i32 [ %81, %80 ], [ 1, %60 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 %.06780, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKjRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 1, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %61 unwind label %.loopexit83

61:                                               ; preds = %.peel.next
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  %62 = invoke noundef i32 @_ZNK3spv7Builder9getTypeIdEj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %2)
          to label %63 unwind label %.loopexit84

63:                                               ; preds = %61
  %64 = invoke noundef i32 @_ZNK3spv7Builder18getContainedTypeIdEji(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %62, i32 noundef %.06780)
          to label %65 unwind label %.loopexit84

65:                                               ; preds = %63
  %66 = invoke noundef i32 @_ZNK3spv7Builder9getTypeIdEj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %3)
          to label %67 unwind label %.loopexit89

67:                                               ; preds = %65
  %68 = invoke noundef i32 @_ZNK3spv7Builder18getContainedTypeIdEji(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %66, i32 noundef %.06780)
          to label %69 unwind label %.loopexit89

69:                                               ; preds = %67
  %70 = invoke noundef i32 @_ZN3spv7Builder22createCompositeExtractEjjRKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %2, i32 noundef %64, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %71 unwind label %.loopexit94

71:                                               ; preds = %69
  %72 = invoke noundef i32 @_ZN3spv7Builder22createCompositeExtractEjjRKSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %3, i32 noundef %68, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %73 unwind label %.loopexit99

73:                                               ; preds = %71
  %74 = invoke noundef i32 @_ZN3spv7Builder22createCompositeCompareENS_10DecorationEjjb(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %1, i32 noundef %70, i32 noundef %72, i1 noundef zeroext %4)
          to label %76 unwind label %.loopexit104

.loopexit83:                                      ; preds = %.peel.next
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %75

.loopexit.split-lp:                               ; preds = %.lr.ph
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %75

75:                                               ; preds = %.loopexit.split-lp, %.loopexit83
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit83 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %83

.loopexit84:                                      ; preds = %61, %63
  %lpad.loopexit86 = landingpad { ptr, i32 }
          cleanup
  br label %82

.loopexit.split-lp85:                             ; preds = %46, %48
  %lpad.loopexit.split-lp87 = landingpad { ptr, i32 }
          cleanup
  br label %82

.loopexit89:                                      ; preds = %65, %67
  %lpad.loopexit91 = landingpad { ptr, i32 }
          cleanup
  br label %82

.loopexit.split-lp90:                             ; preds = %50, %52
  %lpad.loopexit.split-lp92 = landingpad { ptr, i32 }
          cleanup
  br label %82

.loopexit94:                                      ; preds = %69
  %lpad.loopexit96 = landingpad { ptr, i32 }
          cleanup
  br label %82

.loopexit.split-lp95:                             ; preds = %54
  %lpad.loopexit.split-lp97 = landingpad { ptr, i32 }
          cleanup
  br label %82

.loopexit99:                                      ; preds = %71
  %lpad.loopexit101 = landingpad { ptr, i32 }
          cleanup
  br label %82

.loopexit.split-lp100:                            ; preds = %56
  %lpad.loopexit.split-lp102 = landingpad { ptr, i32 }
          cleanup
  br label %82

.loopexit104:                                     ; preds = %73, %76, %78
  %lpad.loopexit106 = landingpad { ptr, i32 }
          cleanup
  br label %82

.loopexit.split-lp105:                            ; preds = %58
  %lpad.loopexit.split-lp107 = landingpad { ptr, i32 }
          cleanup
  br label %82

76:                                               ; preds = %73
  %77 = invoke noundef i32 @_ZN3spv7Builder11createBinOpENS_2OpEjjj(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %45, i32 noundef %9, i32 noundef %.181, i32 noundef %74)
          to label %78 unwind label %.loopexit104

78:                                               ; preds = %76
  %79 = invoke noundef i32 @_ZN3spv7Builder12setPrecisionEjNS_10DecorationE(ptr noundef nonnull align 8 dereferenceable(1096) %0, i32 noundef %77, i32 noundef %1)
          to label %80 unwind label %.loopexit104

80:                                               ; preds = %78
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  %81 = add nuw nsw i32 %.06780, 1
  %exitcond.not = icmp eq i32 %81, %11
  br i1 %exitcond.not, label %.loopexit, label %.peel.next, !llvm.loop !9

82:                                               ; preds = %.loopexit104, %.loopexit.split-lp105, %.loopexit99, %.loopexit.split-lp100, %.loopexit94, %.loopexit.split-lp95, %.loopexit89, %.loopexit.split-lp90, %.loopexit84, %.loopexit.split-lp85
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %lpad.loopexit86, %.loopexit84 ], [ %lpad.loopexit.split-lp87, %.loopexit.split-lp85 ], [ %lpad.loopexit91, %.loopexit89 ], [ %lpad.loopexit.split-lp92, %.loopexit.split-lp90 ], [ %lpad.loopexit96, %.loopexit94 ], [ %lpad.loopexit.split-lp97, %.loopexit.split-lp95 ], [ %lpad.loopexit101, %.loopexit99 ], [ %lpad.loopexit.split-lp102, %.loopexit.split-lp100 ], [ %lpad.loopexit106, %.loopexit104 ], [ %lpad.loopexit.split-lp107, %.loopexit.split-lp105 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  br label %83

83:                                               ; preds = %82, %75
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %82 ], [ %lpad.phi, %75 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  resume { ptr, i32 } %.pn.pn.pn.pn.pn

.loopexit:                                        ; preds = %80, %60, %.critedge, %37
  %.0 = phi i32 [ %38, %37 ], [ 0, %.critedge ], [ %59, %60 ], [ %79, %80 ]
  ret i32 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3spv7Builder12isVectorTypeEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3spv7Builder15isAggregateTypeEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3spv7Builder12isMatrixTypeEj(ptr noundef nonnull align 8 dereferenceable(1096), i32 noundef) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { noreturn nounwind "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 = { noreturn nounwind }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.peeled.count", i32 1}


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