; LLVM IR from Try/Tempest :: Engine/libspirv (libspirv)

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

%"struct.libspirv::Bytecode::Iterator" = type <{ ptr, i32, [4 x i8] }>
%"struct.libspirv::Bytecode::TraverseContext" = type { %"struct.libspirv::Bytecode::Iterator", %"struct.libspirv::Bytecode::Iterator", i8, [7 x i8] }
%"struct.libspirv::Bytecode::AccessChain" = type <{ ptr, i32, [4 x i8] }>

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [74 x i8], align 1
@__PRETTY_FUNCTION__._ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE = external hidden unnamed_addr constant [157 x i8], align 1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8libspirv8Bytecode10isTypeDeclEN3spv2OpE(i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef nonnull align 8 dereferenceable(32) %5) #3 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  %22 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.libspirv::Bytecode::TraverseContext", ptr %23, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !11
  br label %25

25:                                               ; preds = %217, %6
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.libspirv::Bytecode::TraverseContext", ptr %26, i32 0, i32 1
  %28 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %13, ptr noundef nonnull align 8 dereferenceable(12) %27)
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  store i32 2, ptr %14, align 4
  br label %218

30:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %13)
  store ptr %31, ptr %15, align 8, !tbaa !5
  %32 = load ptr, ptr %15, align 8, !tbaa !5
  %33 = call noundef i32 @_ZNK8libspirv8Bytecode6OpCode2opEv(ptr noundef nonnull align 4 dereferenceable(4) %32)
  %34 = call noundef zeroext i1 @_ZN8libspirv8Bytecode10isTypeDeclEN3spv2OpE(i32 noundef %33)
  br i1 %34, label %36, label %35

35:                                               ; preds = %30
  store i32 4, ptr %14, align 4
  br label %215

36:                                               ; preds = %30
  %37 = load ptr, ptr %15, align 8, !tbaa !5
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %37, i16 noundef zeroext 1)
  %39 = load i32, ptr %38, align 4, !tbaa !9
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = icmp ne i32 %39, %40
  br i1 %41, label %42, label %43

42:                                               ; preds = %36
  store i32 4, ptr %14, align 4
  br label %215

43:                                               ; preds = %36
  %44 = load ptr, ptr %15, align 8, !tbaa !5
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = load i32, ptr %11, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds %"struct.libspirv::Bytecode::AccessChain", ptr %45, i64 %47
  %49 = getelementptr inbounds %"struct.libspirv::Bytecode::AccessChain", ptr %48, i32 0, i32 0
  store ptr %44, ptr %49, align 8, !tbaa !12
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds %"struct.libspirv::Bytecode::AccessChain", ptr %50, i64 %52
  %54 = getelementptr inbounds %"struct.libspirv::Bytecode::AccessChain", ptr %53, i32 0, i32 1
  store i32 0, ptr %54, align 8, !tbaa !14
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.libspirv::Bytecode::TraverseContext", ptr %55, i32 0, i32 2
  %57 = load i8, ptr %56, align 8, !tbaa !15
  %58 = zext i8 %57 to i32
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %65

60:                                               ; preds = %43
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = add i32 %63, 1
  call void @_ZNKSt8functionIFvPKN8libspirv8Bytecode11AccessChainEjEEclES4_j(ptr noundef nonnull align 8 dereferenceable(32) %61, ptr noundef %62, i32 noundef %64)
  br label %65

65:                                               ; preds = %60, %43
  %66 = load ptr, ptr %15, align 8, !tbaa !5
  %67 = call noundef i32 @_ZNK8libspirv8Bytecode6OpCode2opEv(ptr noundef nonnull align 4 dereferenceable(4) %66)
  switch i32 %67, label %202 [
    i32 19, label %68
    i32 20, label %68
    i32 21, label %68
    i32 22, label %68
    i32 23, label %69
    i32 24, label %69
    i32 25, label %96
    i32 26, label %96
    i32 27, label %96
    i32 28, label %97
    i32 29, label %153
    i32 30, label %162
    i32 31, label %203
    i32 32, label %192
    i32 33, label %201
    i32 34, label %201
    i32 35, label %201
    i32 36, label %201
    i32 37, label %201
    i32 38, label %201
    i32 39, label %201
  ]

68:                                               ; preds = %65, %65, %65, %65
  br label %203

69:                                               ; preds = %65, %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %92, %69
  %71 = load i32, ptr %16, align 4, !tbaa !9
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %72, i16 noundef zeroext 3)
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = icmp ult i32 %71, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %70
  store i32 6, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %95

77:                                               ; preds = %70
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds %"struct.libspirv::Bytecode::AccessChain", ptr %79, i64 %81
  %83 = getelementptr inbounds %"struct.libspirv::Bytecode::AccessChain", ptr %82, i32 0, i32 1
  store i32 %78, ptr %83, align 8, !tbaa !14
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %85, i16 noundef zeroext 2)
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = add i32 %89, 1
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE(ptr noundef nonnull align 8 dereferenceable(20) %22, ptr noundef nonnull align 8 dereferenceable(33) %84, i32 noundef %87, ptr noundef %88, i32 noundef %90, ptr noundef nonnull align 8 dereferenceable(32) %91)
  br label %92

92:                                               ; preds = %77
  %93 = load i32, ptr %16, align 4, !tbaa !9
  %94 = add i32 %93, 1
  store i32 %94, ptr %16, align 4, !tbaa !9
  br label %70, !llvm.loop !19

95:                                               ; preds = %76
  br label %203

96:                                               ; preds = %65, %65, %65
  br label %203

97:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 1, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.libspirv::Bytecode::TraverseContext", ptr %98, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %99, i64 16, i1 false), !tbaa.struct !11
  br label %100

100:                                              ; preds = %126, %97
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.libspirv::Bytecode::TraverseContext", ptr %101, i32 0, i32 1
  %103 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %18, ptr noundef nonnull align 8 dereferenceable(12) %102)
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 9, ptr %14, align 4
  br label %127

105:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %18)
  store ptr %106, ptr %19, align 8, !tbaa !5
  %107 = load ptr, ptr %19, align 8, !tbaa !5
  %108 = call noundef i32 @_ZNK8libspirv8Bytecode6OpCode2opEv(ptr noundef nonnull align 4 dereferenceable(4) %107)
  %109 = icmp eq i32 %108, 43
  br i1 %109, label %110, label %122

110:                                              ; preds = %105
  %111 = load ptr, ptr %19, align 8, !tbaa !5
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %111, i16 noundef zeroext 2)
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %114, i16 noundef zeroext 3)
  %116 = load i32, ptr %115, align 4, !tbaa !9
  %117 = icmp eq i32 %113, %116
  br i1 %117, label %118, label %122

118:                                              ; preds = %110
  %119 = load ptr, ptr %19, align 8, !tbaa !5
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %119, i16 noundef zeroext 3)
  %121 = load i32, ptr %120, align 4, !tbaa !9
  store i32 %121, ptr %17, align 4, !tbaa !9
  store i32 9, ptr %14, align 4
  br label %123

122:                                              ; preds = %110, %105
  store i32 0, ptr %14, align 4
  br label %123

123:                                              ; preds = %122, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %124 = load i32, ptr %14, align 4
  switch i32 %124, label %127 [
    i32 0, label %125
  ]

125:                                              ; preds = %123
  br label %126

126:                                              ; preds = %125
  call void @_ZN8libspirv8Bytecode8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(12) %18)
  br label %100, !llvm.loop !21

127:                                              ; preds = %123, %104
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br label %128

128:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %149, %128
  %130 = load i32, ptr %20, align 4, !tbaa !9
  %131 = load i32, ptr %17, align 4, !tbaa !9
  %132 = icmp ult i32 %130, %131
  br i1 %132, label %134, label %133

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

134:                                              ; preds = %129
  %135 = load i32, ptr %20, align 4, !tbaa !9
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = load i32, ptr %11, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds %"struct.libspirv::Bytecode::AccessChain", ptr %136, i64 %138
  %140 = getelementptr inbounds %"struct.libspirv::Bytecode::AccessChain", ptr %139, i32 0, i32 1
  store i32 %135, ptr %140, align 8, !tbaa !14
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %142, i16 noundef zeroext 2)
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = load i32, ptr %11, align 4, !tbaa !9
  %147 = add i32 %146, 1
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE(ptr noundef nonnull align 8 dereferenceable(20) %22, ptr noundef nonnull align 8 dereferenceable(33) %141, i32 noundef %144, ptr noundef %145, i32 noundef %147, ptr noundef nonnull align 8 dereferenceable(32) %148)
  br label %149

149:                                              ; preds = %134
  %150 = load i32, ptr %20, align 4, !tbaa !9
  %151 = add i32 %150, 1
  store i32 %151, ptr %20, align 4, !tbaa !9
  br label %129, !llvm.loop !22

152:                                              ; preds = %133
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %203

153:                                              ; preds = %65
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %155, i16 noundef zeroext 2)
  %157 = load i32, ptr %156, align 4, !tbaa !9
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = add i32 %159, 1
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE(ptr noundef nonnull align 8 dereferenceable(20) %22, ptr noundef nonnull align 8 dereferenceable(33) %154, i32 noundef %157, ptr noundef %158, i32 noundef %160, ptr noundef nonnull align 8 dereferenceable(32) %161)
  br label %203

162:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 2, ptr %21, align 4, !tbaa !9
  br label %163

163:                                              ; preds = %188, %162
  %164 = load i32, ptr %21, align 4, !tbaa !9
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = call noundef zeroext i16 @_ZNK8libspirv8Bytecode6OpCode6lengthEv(ptr noundef nonnull align 4 dereferenceable(4) %165)
  %167 = zext i16 %166 to i32
  %168 = icmp ult i32 %164, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %163
  store i32 15, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %191

170:                                              ; preds = %163
  %171 = load i32, ptr %21, align 4, !tbaa !9
  %172 = sub i32 %171, 2
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = load i32, ptr %11, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = getelementptr inbounds %"struct.libspirv::Bytecode::AccessChain", ptr %173, i64 %175
  %177 = getelementptr inbounds %"struct.libspirv::Bytecode::AccessChain", ptr %176, i32 0, i32 1
  store i32 %172, ptr %177, align 8, !tbaa !14
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = load ptr, ptr %15, align 8, !tbaa !5
  %180 = load i32, ptr %21, align 4, !tbaa !9
  %181 = trunc i32 %180 to i16
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %179, i16 noundef zeroext %181)
  %183 = load i32, ptr %182, align 4, !tbaa !9
  %184 = load ptr, ptr %10, align 8, !tbaa !5
  %185 = load i32, ptr %11, align 4, !tbaa !9
  %186 = add i32 %185, 1
  %187 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE(ptr noundef nonnull align 8 dereferenceable(20) %22, ptr noundef nonnull align 8 dereferenceable(33) %178, i32 noundef %183, ptr noundef %184, i32 noundef %186, ptr noundef nonnull align 8 dereferenceable(32) %187)
  br label %188

188:                                              ; preds = %170
  %189 = load i32, ptr %21, align 4, !tbaa !9
  %190 = add i32 %189, 1
  store i32 %190, ptr %21, align 4, !tbaa !9
  br label %163, !llvm.loop !23

191:                                              ; preds = %169
  br label %203

192:                                              ; preds = %65
  %193 = load ptr, ptr %8, align 8, !tbaa !5
  %194 = load ptr, ptr %15, align 8, !tbaa !5
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %194, i16 noundef zeroext 3)
  %196 = load i32, ptr %195, align 4, !tbaa !9
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  %198 = load i32, ptr %11, align 4, !tbaa !9
  %199 = add i32 %198, 1
  %200 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE(ptr noundef nonnull align 8 dereferenceable(20) %22, ptr noundef nonnull align 8 dereferenceable(33) %193, i32 noundef %196, ptr noundef %197, i32 noundef %199, ptr noundef nonnull align 8 dereferenceable(32) %200)
  br label %203

201:                                              ; preds = %65, %65, %65, %65, %65, %65, %65
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 259, ptr noundef @__PRETTY_FUNCTION__._ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE) #6
  unreachable

202:                                              ; preds = %65
  br label %203

203:                                              ; preds = %202, %192, %191, %153, %152, %96, %95, %68, %65
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.libspirv::Bytecode::TraverseContext", ptr %204, i32 0, i32 2
  %206 = load i8, ptr %205, align 8, !tbaa !15
  %207 = zext i8 %206 to i32
  %208 = icmp eq i32 %207, 1
  br i1 %208, label %209, label %214

209:                                              ; preds = %203
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  %211 = load ptr, ptr %10, align 8, !tbaa !5
  %212 = load i32, ptr %11, align 4, !tbaa !9
  %213 = add i32 %212, 1
  call void @_ZNKSt8functionIFvPKN8libspirv8Bytecode11AccessChainEjEEclES4_j(ptr noundef nonnull align 8 dereferenceable(32) %210, ptr noundef %211, i32 noundef %213)
  br label %214

214:                                              ; preds = %209, %203
  store i32 2, ptr %14, align 4
  br label %215

215:                                              ; preds = %214, %42, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %216 = load i32, ptr %14, align 4
  switch i32 %216, label %218 [
    i32 4, label %217
  ]

217:                                              ; preds = %215
  call void @_ZN8libspirv8Bytecode8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(12) %13)
  br label %25, !llvm.loop !24

218:                                              ; preds = %215, %29
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %219

219:                                              ; preds = %218
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvPKN8libspirv8Bytecode11AccessChainEjEEclES4_j(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK8libspirv8Bytecode6OpCode6lengthEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

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


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

%"struct.libspirv::Bytecode::Iterator" = type <{ ptr, i32, [4 x i8] }>
%"struct.libspirv::Bytecode::AccessChain" = type <{ ptr, i32, [4 x i8] }>

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [74 x i8], align 1
@__PRETTY_FUNCTION__._ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE = external hidden unnamed_addr constant [157 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8libspirv8Bytecode10isTypeDeclEN3spv2OpE(i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef nonnull align 8 dereferenceable(32) %5) local_unnamed_addr #3 align 2 {
  %7 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %8 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %1, i64 16, i1 false), !tbaa.struct !5
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  %10 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %9)
  br i1 %10, label %.lr.ph, label %.loopexit83

.lr.ph:                                           ; preds = %6, %.critedge
  %11 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %7)
  %12 = call noundef i32 @_ZNK8libspirv8Bytecode6OpCode2opEv(ptr noundef nonnull align 4 dereferenceable(4) %11)
  %13 = call noundef zeroext i1 @_ZN8libspirv8Bytecode10isTypeDeclEN3spv2OpE(i32 noundef %12)
  br i1 %13, label %14, label %.critedge

14:                                               ; preds = %.lr.ph
  %15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %11, i16 noundef zeroext 1)
  %16 = load i32, ptr %15, align 4, !tbaa !10
  %.not = icmp eq i32 %16, %2
  br i1 %.not, label %17, label %.critedge

17:                                               ; preds = %14
  %18 = zext i32 %4 to i64
  %19 = getelementptr inbounds %"struct.libspirv::Bytecode::AccessChain", ptr %3, i64 %18
  store ptr %11, ptr %19, align 8, !tbaa !12
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  store i32 0, ptr %20, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %1, i64 32
  %22 = load i8, ptr %21, align 8, !tbaa !15
  %23 = icmp eq i8 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %17
  %25 = add i32 %4, 1
  call void @_ZNKSt8functionIFvPKN8libspirv8Bytecode11AccessChainEjEEclES4_j(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull %3, i32 noundef %25)
  br label %26

26:                                               ; preds = %24, %17
  %27 = call noundef i32 @_ZNK8libspirv8Bytecode6OpCode2opEv(ptr noundef nonnull align 4 dereferenceable(4) %11)
  switch i32 %27, label %.loopexit [
    i32 39, label %72
    i32 38, label %72
    i32 37, label %72
    i32 36, label %72
    i32 23, label %31
    i32 24, label %31
    i32 35, label %72
    i32 34, label %72
    i32 33, label %72
    i32 28, label %42
    i32 29, label %.loopexit.sink.split
    i32 30, label %.preheader
    i32 32, label %71
  ]

.preheader:                                       ; preds = %26
  %28 = call noundef zeroext i16 @_ZNK8libspirv8Bytecode6OpCode6lengthEv(ptr noundef nonnull align 4 dereferenceable(4) %11)
  %29 = icmp ugt i16 %28, 2
  br i1 %29, label %.lr.ph88, label %.loopexit

.lr.ph88:                                         ; preds = %.preheader
  %30 = add i32 %4, 1
  br label %62

31:                                               ; preds = %26, %26
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %11, i16 noundef zeroext 3)
  %33 = load i32, ptr %32, align 4, !tbaa !10
  %.not95 = icmp eq i32 %33, 0
  br i1 %.not95, label %.loopexit, label %.lr.ph93

.lr.ph93:                                         ; preds = %31
  %34 = add i32 %4, 1
  br label %35

35:                                               ; preds = %.lr.ph93, %35
  %.07692 = phi i32 [ 0, %.lr.ph93 ], [ %38, %35 ]
  store i32 %.07692, ptr %20, align 8, !tbaa !14
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %11, i16 noundef zeroext 2)
  %37 = load i32, ptr %36, align 4, !tbaa !10
  call void @_ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, i32 noundef %37, ptr noundef nonnull %3, i32 noundef %34, ptr noundef nonnull align 8 dereferenceable(32) %5)
  %38 = add nuw i32 %.07692, 1
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %11, i16 noundef zeroext 3)
  %40 = load i32, ptr %39, align 4, !tbaa !10
  %41 = icmp ult i32 %38, %40
  br i1 %41, label %35, label %.loopexit, !llvm.loop !19

42:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %1, i64 16, i1 false), !tbaa.struct !5
  %43 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %9)
  br i1 %43, label %.lr.ph89, label %.loopexit81.thread

.lr.ph89:                                         ; preds = %42, %53
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %8)
  %45 = call noundef i32 @_ZNK8libspirv8Bytecode6OpCode2opEv(ptr noundef nonnull align 4 dereferenceable(4) %44)
  %46 = icmp eq i32 %45, 43
  br i1 %46, label %47, label %53

47:                                               ; preds = %.lr.ph89
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %44, i16 noundef zeroext 2)
  %49 = load i32, ptr %48, align 4, !tbaa !10
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %11, i16 noundef zeroext 3)
  %51 = load i32, ptr %50, align 4, !tbaa !10
  %52 = icmp eq i32 %49, %51
  br i1 %52, label %.loopexit81, label %53

53:                                               ; preds = %47, %.lr.ph89
  call void @_ZN8libspirv8Bytecode8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(12) %8)
  %54 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %9)
  br i1 %54, label %.lr.ph89, label %.loopexit81.thread, !llvm.loop !21

.loopexit81.thread:                               ; preds = %53, %42
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %.lr.ph91

.loopexit81:                                      ; preds = %47
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %44, i16 noundef zeroext 3)
  %56 = load i32, ptr %55, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  %.not94 = icmp eq i32 %56, 0
  br i1 %.not94, label %.loopexit, label %.lr.ph91

.lr.ph91:                                         ; preds = %.loopexit81.thread, %.loopexit81
  %.2103 = phi i32 [ 1, %.loopexit81.thread ], [ %56, %.loopexit81 ]
  %57 = add i32 %4, 1
  br label %58

58:                                               ; preds = %.lr.ph91, %58
  %.07290 = phi i32 [ 0, %.lr.ph91 ], [ %61, %58 ]
  store i32 %.07290, ptr %20, align 8, !tbaa !14
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %11, i16 noundef zeroext 2)
  %60 = load i32, ptr %59, align 4, !tbaa !10
  call void @_ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, i32 noundef %60, ptr noundef %3, i32 noundef %57, ptr noundef nonnull align 8 dereferenceable(32) %5)
  %61 = add nuw i32 %.07290, 1
  %exitcond.not = icmp eq i32 %61, %.2103
  br i1 %exitcond.not, label %.loopexit, label %58, !llvm.loop !22

62:                                               ; preds = %.lr.ph88, %62
  %.087 = phi i32 [ 2, %.lr.ph88 ], [ %67, %62 ]
  %63 = add nsw i32 %.087, -2
  store i32 %63, ptr %20, align 8, !tbaa !14
  %64 = trunc nuw i32 %.087 to i16
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %11, i16 noundef zeroext %64)
  %66 = load i32, ptr %65, align 4, !tbaa !10
  call void @_ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, i32 noundef %66, ptr noundef nonnull %3, i32 noundef %30, ptr noundef nonnull align 8 dereferenceable(32) %5)
  %67 = add nuw nsw i32 %.087, 1
  %68 = call noundef zeroext i16 @_ZNK8libspirv8Bytecode6OpCode6lengthEv(ptr noundef nonnull align 4 dereferenceable(4) %11)
  %69 = zext i16 %68 to i32
  %70 = icmp ult i32 %67, %69
  br i1 %70, label %62, label %.loopexit, !llvm.loop !23

71:                                               ; preds = %26
  br label %.loopexit.sink.split

72:                                               ; preds = %26, %26, %26, %26, %26, %26, %26
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 259, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE) #6
  unreachable

.loopexit.sink.split:                             ; preds = %26, %71
  %.sink = phi i16 [ 3, %71 ], [ 2, %26 ]
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %11, i16 noundef zeroext %.sink)
  %74 = load i32, ptr %73, align 4, !tbaa !10
  %75 = add i32 %4, 1
  call void @_ZN8libspirv8Bytecode16implTraverseTypeERNS0_15TraverseContextEjPNS0_11AccessChainEjRSt8functionIFvPKS3_jEE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(33) %1, i32 noundef %74, ptr noundef nonnull %3, i32 noundef %75, ptr noundef nonnull align 8 dereferenceable(32) %5)
  br label %.loopexit

.loopexit:                                        ; preds = %62, %58, %35, %.loopexit.sink.split, %.preheader, %.loopexit81, %31, %26
  %76 = load i8, ptr %21, align 8, !tbaa !15
  %77 = icmp eq i8 %76, 1
  br i1 %77, label %78, label %.loopexit83

78:                                               ; preds = %.loopexit
  %79 = add i32 %4, 1
  call void @_ZNKSt8functionIFvPKN8libspirv8Bytecode11AccessChainEjEEclES4_j(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %3, i32 noundef %79)
  br label %.loopexit83

.critedge:                                        ; preds = %14, %.lr.ph
  call void @_ZN8libspirv8Bytecode8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(12) %7)
  %80 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %9)
  br i1 %80, label %.lr.ph, label %.loopexit83, !llvm.loop !24

.loopexit83:                                      ; preds = %.critedge, %6, %78, %.loopexit
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvPKN8libspirv8Bytecode11AccessChainEjEEclES4_j(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK8libspirv8Bytecode6OpCode6lengthEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{i64 0, i64 8, !6, i64 8, i64 4, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"_ZTSN8libspirv8Bytecode11AccessChainE", !7, i64 0, !11, i64 8}
!14 = !{!13, !11, i64 8}
!15 = !{!16, !18, i64 32}
!16 = !{!"_ZTSN8libspirv8Bytecode15TraverseContextE", !17, i64 0, !17, i64 16, !18, i64 32}
!17 = !{!"_ZTSN8libspirv8Bytecode8IteratorE", !7, i64 0, !11, i64 8}
!18 = !{!"_ZTSN8libspirv8Bytecode12TraverseModeE", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}


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