; LLVM IR from Dragons-Lake/REI :: sources/REI/3rdParty/spirv_reflect (spirv_reflect)

; 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.SpvReflectShaderModule = type { i32, ptr, i32, i32, ptr, i32, i32, ptr, ptr, i32, i32, i32, ptr, i32, [64 x %struct.SpvReflectDescriptorSet], i32, ptr, i32, ptr, i32, ptr, ptr }
%struct.SpvReflectDescriptorSet = type { i32, i32, ptr }
%struct.SpvReflectDescriptorBinding = type { i32, ptr, i32, i32, i32, i32, i32, %struct.SpvReflectImageTraits, %struct.SpvReflectBlockVariable, %struct.SpvReflectBindingArrayTraits, i32, i32, i32, ptr, ptr, %struct.anon }
%struct.SpvReflectImageTraits = type { i32, i32, i32, i32, i32, i32 }
%struct.SpvReflectBlockVariable = type { i32, ptr, i32, i32, i32, i32, i32, %struct.SpvReflectNumericTraits, %struct.SpvReflectArrayTraits, i32, i32, ptr, ptr }
%struct.SpvReflectNumericTraits = type { %struct.Scalar, %struct.Vector, %struct.Matrix }
%struct.Scalar = type { i32, i32 }
%struct.Vector = type { i32 }
%struct.Matrix = type { i32, i32, i32 }
%struct.SpvReflectArrayTraits = type { i32, [32 x i32], i32 }
%struct.SpvReflectBindingArrayTraits = type { i32, [32 x i32] }
%struct.anon = type { i32, i32 }
%struct.SpvReflectEntryPoint = type { ptr, i32, i32, i32, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, %struct.LocalSize, i32, i32 }
%struct.LocalSize = type { i32, i32, i32 }
%struct.SpvReflectInterfaceVariable = type { i32, ptr, i32, i32, ptr, i32, i32, %struct.SpvReflectNumericTraits, %struct.SpvReflectArrayTraits, i32, ptr, i32, ptr, %struct.anon.0 }
%struct.anon.0 = type { i32 }
%struct.Internal = type { i64, ptr, i32, i64, ptr }
%struct.SpvReflectTypeDescription = type { i32, i32, ptr, ptr, i32, i32, i32, %struct.Traits, i32, ptr }
%struct.Traits = type { %struct.SpvReflectNumericTraits, %struct.SpvReflectImageTraits, %struct.SpvReflectArrayTraits }

; Function Attrs: nounwind
declare void @free(ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @spvReflectDestroyShaderModule(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %16, i32 0, i32 21
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %1
  br label %343

21:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  store i64 0, ptr %3, align 8, !tbaa !12
  br label %22

22:                                               ; preds = %38, %21
  %23 = load i64, ptr %3, align 8, !tbaa !12
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %24, i32 0, i32 13
  %26 = load i32, ptr %25, align 8, !tbaa !14
  %27 = zext i32 %26 to i64
  %28 = icmp ult i64 %23, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  br label %41

30:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %31, i32 0, i32 14
  %33 = load i64, ptr %3, align 8, !tbaa !12
  %34 = getelementptr inbounds [64 x %struct.SpvReflectDescriptorSet], ptr %32, i64 0, i64 %33
  store ptr %34, ptr %4, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.SpvReflectDescriptorSet, ptr %35, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  call void @free(ptr noundef %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  br label %38

38:                                               ; preds = %30
  %39 = load i64, ptr %3, align 8, !tbaa !12
  %40 = add i64 %39, 1
  store i64 %40, ptr %3, align 8, !tbaa !12
  br label %22, !llvm.loop !17

41:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store i64 0, ptr %5, align 8, !tbaa !12
  br label %42

42:                                               ; preds = %58, %41
  %43 = load i64, ptr %5, align 8, !tbaa !12
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %44, i32 0, i32 11
  %46 = load i32, ptr %45, align 8, !tbaa !19
  %47 = zext i32 %46 to i64
  %48 = icmp ult i64 %43, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %61

50:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %51, i32 0, i32 12
  %53 = load ptr, ptr %52, align 8, !tbaa !20
  %54 = load i64, ptr %5, align 8, !tbaa !12
  %55 = getelementptr inbounds %struct.SpvReflectDescriptorBinding, ptr %53, i64 %54
  store ptr %55, ptr %6, align 8, !tbaa !5
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.SpvReflectDescriptorBinding, ptr %56, i32 0, i32 8
  call void @SafeFreeBlockVariables(ptr noundef %57)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %58

58:                                               ; preds = %50
  %59 = load i64, ptr %5, align 8, !tbaa !12
  %60 = add i64 %59, 1
  store i64 %60, ptr %5, align 8, !tbaa !12
  br label %42, !llvm.loop !21

61:                                               ; preds = %49
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %62, i32 0, i32 12
  %64 = load ptr, ptr %63, align 8, !tbaa !20
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %72

66:                                               ; preds = %61
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %67, i32 0, i32 12
  %69 = load ptr, ptr %68, align 8, !tbaa !20
  call void @free(ptr noundef %69) #3
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %70, i32 0, i32 12
  store ptr null, ptr %71, align 8, !tbaa !20
  br label %72

72:                                               ; preds = %66, %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store i64 0, ptr %7, align 8, !tbaa !12
  br label %73

73:                                               ; preds = %216, %72
  %74 = load i64, ptr %7, align 8, !tbaa !12
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %75, i32 0, i32 3
  %77 = load i32, ptr %76, align 4, !tbaa !22
  %78 = zext i32 %77 to i64
  %79 = icmp ult i64 %74, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %73
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %219

81:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !23
  %85 = load i64, ptr %7, align 8, !tbaa !12
  %86 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %84, i64 %85
  store ptr %86, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store i64 0, ptr %10, align 8, !tbaa !12
  br label %87

87:                                               ; preds = %101, %81
  %88 = load i64, ptr %10, align 8, !tbaa !12
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %89, i32 0, i32 4
  %91 = load i32, ptr %90, align 4, !tbaa !24
  %92 = zext i32 %91 to i64
  %93 = icmp ult i64 %88, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %87
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %104

95:                                               ; preds = %87
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %96, i32 0, i32 5
  %98 = load ptr, ptr %97, align 8, !tbaa !27
  %99 = load i64, ptr %10, align 8, !tbaa !12
  %100 = getelementptr inbounds %struct.SpvReflectInterfaceVariable, ptr %98, i64 %99
  call void @SafeFreeInterfaceVariable(ptr noundef %100)
  br label %101

101:                                              ; preds = %95
  %102 = load i64, ptr %10, align 8, !tbaa !12
  %103 = add i64 %102, 1
  store i64 %103, ptr %10, align 8, !tbaa !12
  br label %87, !llvm.loop !28

104:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store i64 0, ptr %11, align 8, !tbaa !12
  br label %105

105:                                              ; preds = %119, %104
  %106 = load i64, ptr %11, align 8, !tbaa !12
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %107, i32 0, i32 6
  %109 = load i32, ptr %108, align 8, !tbaa !29
  %110 = zext i32 %109 to i64
  %111 = icmp ult i64 %106, %110
  br i1 %111, label %113, label %112

112:                                              ; preds = %105
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %122

113:                                              ; preds = %105
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %114, i32 0, i32 7
  %116 = load ptr, ptr %115, align 8, !tbaa !30
  %117 = load i64, ptr %11, align 8, !tbaa !12
  %118 = getelementptr inbounds %struct.SpvReflectInterfaceVariable, ptr %116, i64 %117
  call void @SafeFreeInterfaceVariable(ptr noundef %118)
  br label %119

119:                                              ; preds = %113
  %120 = load i64, ptr %11, align 8, !tbaa !12
  %121 = add i64 %120, 1
  store i64 %121, ptr %11, align 8, !tbaa !12
  br label %105, !llvm.loop !31

122:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !32
  br label %123

123:                                              ; preds = %157, %122
  %124 = load i32, ptr %12, align 4, !tbaa !32
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %125, i32 0, i32 8
  %127 = load i32, ptr %126, align 8, !tbaa !33
  %128 = icmp ult i32 %124, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %123
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %160

130:                                              ; preds = %123
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %131, i32 0, i32 9
  %133 = load ptr, ptr %132, align 8, !tbaa !34
  %134 = load i32, ptr %12, align 4, !tbaa !32
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds %struct.SpvReflectDescriptorSet, ptr %133, i64 %135
  %137 = getelementptr inbounds %struct.SpvReflectDescriptorSet, ptr %136, i32 0, i32 2
  %138 = load ptr, ptr %137, align 8, !tbaa !15
  %139 = icmp ne ptr %138, null
  br i1 %139, label %140, label %156

140:                                              ; preds = %130
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %141, i32 0, i32 9
  %143 = load ptr, ptr %142, align 8, !tbaa !34
  %144 = load i32, ptr %12, align 4, !tbaa !32
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds %struct.SpvReflectDescriptorSet, ptr %143, i64 %145
  %147 = getelementptr inbounds %struct.SpvReflectDescriptorSet, ptr %146, i32 0, i32 2
  %148 = load ptr, ptr %147, align 8, !tbaa !15
  call void @free(ptr noundef %148) #3
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %149, i32 0, i32 9
  %151 = load ptr, ptr %150, align 8, !tbaa !34
  %152 = load i32, ptr %12, align 4, !tbaa !32
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds %struct.SpvReflectDescriptorSet, ptr %151, i64 %153
  %155 = getelementptr inbounds %struct.SpvReflectDescriptorSet, ptr %154, i32 0, i32 2
  store ptr null, ptr %155, align 8, !tbaa !15
  br label %156

156:                                              ; preds = %140, %130
  br label %157

157:                                              ; preds = %156
  %158 = load i32, ptr %12, align 4, !tbaa !32
  %159 = add i32 %158, 1
  store i32 %159, ptr %12, align 4, !tbaa !32
  br label %123, !llvm.loop !35

160:                                              ; preds = %129
  %161 = load ptr, ptr %9, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %161, i32 0, i32 9
  %163 = load ptr, ptr %162, align 8, !tbaa !34
  %164 = icmp ne ptr %163, null
  br i1 %164, label %165, label %171

165:                                              ; preds = %160
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %166, i32 0, i32 9
  %168 = load ptr, ptr %167, align 8, !tbaa !34
  call void @free(ptr noundef %168) #3
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %169, i32 0, i32 9
  store ptr null, ptr %170, align 8, !tbaa !34
  br label %171

171:                                              ; preds = %165, %160
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %172, i32 0, i32 5
  %174 = load ptr, ptr %173, align 8, !tbaa !27
  %175 = icmp ne ptr %174, null
  br i1 %175, label %176, label %182

176:                                              ; preds = %171
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %177, i32 0, i32 5
  %179 = load ptr, ptr %178, align 8, !tbaa !27
  call void @free(ptr noundef %179) #3
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %180, i32 0, i32 5
  store ptr null, ptr %181, align 8, !tbaa !27
  br label %182

182:                                              ; preds = %176, %171
  %183 = load ptr, ptr %9, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %183, i32 0, i32 7
  %185 = load ptr, ptr %184, align 8, !tbaa !30
  %186 = icmp ne ptr %185, null
  br i1 %186, label %187, label %193

187:                                              ; preds = %182
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %188, i32 0, i32 7
  %190 = load ptr, ptr %189, align 8, !tbaa !30
  call void @free(ptr noundef %190) #3
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %191, i32 0, i32 7
  store ptr null, ptr %192, align 8, !tbaa !30
  br label %193

193:                                              ; preds = %187, %182
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %194, i32 0, i32 11
  %196 = load ptr, ptr %195, align 8, !tbaa !36
  %197 = icmp ne ptr %196, null
  br i1 %197, label %198, label %204

198:                                              ; preds = %193
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %199, i32 0, i32 11
  %201 = load ptr, ptr %200, align 8, !tbaa !36
  call void @free(ptr noundef %201) #3
  %202 = load ptr, ptr %9, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %202, i32 0, i32 11
  store ptr null, ptr %203, align 8, !tbaa !36
  br label %204

204:                                              ; preds = %198, %193
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %205, i32 0, i32 13
  %207 = load ptr, ptr %206, align 8, !tbaa !37
  %208 = icmp ne ptr %207, null
  br i1 %208, label %209, label %215

209:                                              ; preds = %204
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %210, i32 0, i32 13
  %212 = load ptr, ptr %211, align 8, !tbaa !37
  call void @free(ptr noundef %212) #3
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %213, i32 0, i32 13
  store ptr null, ptr %214, align 8, !tbaa !37
  br label %215

215:                                              ; preds = %209, %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %216

216:                                              ; preds = %215
  %217 = load i64, ptr %7, align 8, !tbaa !12
  %218 = add i64 %217, 1
  store i64 %218, ptr %7, align 8, !tbaa !12
  br label %73, !llvm.loop !38

219:                                              ; preds = %80
  %220 = load ptr, ptr %2, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %220, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !23
  %223 = icmp ne ptr %222, null
  br i1 %223, label %224, label %230

224:                                              ; preds = %219
  %225 = load ptr, ptr %2, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %225, i32 0, i32 4
  %227 = load ptr, ptr %226, align 8, !tbaa !23
  call void @free(ptr noundef %227) #3
  %228 = load ptr, ptr %2, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %228, i32 0, i32 4
  store ptr null, ptr %229, align 8, !tbaa !23
  br label %230

230:                                              ; preds = %224, %219
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store i64 0, ptr %13, align 8, !tbaa !12
  br label %231

231:                                              ; preds = %245, %230
  %232 = load i64, ptr %13, align 8, !tbaa !12
  %233 = load ptr, ptr %2, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %233, i32 0, i32 19
  %235 = load i32, ptr %234, align 8, !tbaa !39
  %236 = zext i32 %235 to i64
  %237 = icmp ult i64 %232, %236
  br i1 %237, label %239, label %238

238:                                              ; preds = %231
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %248

239:                                              ; preds = %231
  %240 = load ptr, ptr %2, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %240, i32 0, i32 20
  %242 = load ptr, ptr %241, align 8, !tbaa !40
  %243 = load i64, ptr %13, align 8, !tbaa !12
  %244 = getelementptr inbounds %struct.SpvReflectBlockVariable, ptr %242, i64 %243
  call void @SafeFreeBlockVariables(ptr noundef %244)
  br label %245

245:                                              ; preds = %239
  %246 = load i64, ptr %13, align 8, !tbaa !12
  %247 = add i64 %246, 1
  store i64 %247, ptr %13, align 8, !tbaa !12
  br label %231, !llvm.loop !41

248:                                              ; preds = %238
  %249 = load ptr, ptr %2, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %249, i32 0, i32 20
  %251 = load ptr, ptr %250, align 8, !tbaa !40
  %252 = icmp ne ptr %251, null
  br i1 %252, label %253, label %259

253:                                              ; preds = %248
  %254 = load ptr, ptr %2, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %254, i32 0, i32 20
  %256 = load ptr, ptr %255, align 8, !tbaa !40
  call void @free(ptr noundef %256) #3
  %257 = load ptr, ptr %2, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %257, i32 0, i32 20
  store ptr null, ptr %258, align 8, !tbaa !40
  br label %259

259:                                              ; preds = %253, %248
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store i64 0, ptr %14, align 8, !tbaa !12
  br label %260

260:                                              ; preds = %295, %259
  %261 = load i64, ptr %14, align 8, !tbaa !12
  %262 = load ptr, ptr %2, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %262, i32 0, i32 21
  %264 = load ptr, ptr %263, align 8, !tbaa !9
  %265 = getelementptr inbounds %struct.Internal, ptr %264, i32 0, i32 3
  %266 = load i64, ptr %265, align 8, !tbaa !42
  %267 = icmp ult i64 %261, %266
  br i1 %267, label %269, label %268

268:                                              ; preds = %260
  store i32 23, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %298

269:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %270 = load ptr, ptr %2, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %270, i32 0, i32 21
  %272 = load ptr, ptr %271, align 8, !tbaa !9
  %273 = getelementptr inbounds %struct.Internal, ptr %272, i32 0, i32 4
  %274 = load ptr, ptr %273, align 8, !tbaa !44
  %275 = load i64, ptr %14, align 8, !tbaa !12
  %276 = getelementptr inbounds %struct.SpvReflectTypeDescription, ptr %274, i64 %275
  store ptr %276, ptr %15, align 8, !tbaa !5
  %277 = load ptr, ptr %15, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.SpvReflectTypeDescription, ptr %277, i32 0, i32 9
  %279 = load ptr, ptr %278, align 8, !tbaa !45
  %280 = icmp ne ptr %279, null
  br i1 %280, label %281, label %283

281:                                              ; preds = %269
  %282 = load ptr, ptr %15, align 8, !tbaa !5
  call void @SafeFreeTypes(ptr noundef %282)
  br label %283

283:                                              ; preds = %281, %269
  %284 = load ptr, ptr %15, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.SpvReflectTypeDescription, ptr %284, i32 0, i32 9
  %286 = load ptr, ptr %285, align 8, !tbaa !45
  %287 = icmp ne ptr %286, null
  br i1 %287, label %288, label %294

288:                                              ; preds = %283
  %289 = load ptr, ptr %15, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.SpvReflectTypeDescription, ptr %289, i32 0, i32 9
  %291 = load ptr, ptr %290, align 8, !tbaa !45
  call void @free(ptr noundef %291) #3
  %292 = load ptr, ptr %15, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.SpvReflectTypeDescription, ptr %292, i32 0, i32 9
  store ptr null, ptr %293, align 8, !tbaa !45
  br label %294

294:                                              ; preds = %288, %283
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %295

295:                                              ; preds = %294
  %296 = load i64, ptr %14, align 8, !tbaa !12
  %297 = add i64 %296, 1
  store i64 %297, ptr %14, align 8, !tbaa !12
  br label %260, !llvm.loop !54

298:                                              ; preds = %268
  %299 = load ptr, ptr %2, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %299, i32 0, i32 21
  %301 = load ptr, ptr %300, align 8, !tbaa !9
  %302 = getelementptr inbounds %struct.Internal, ptr %301, i32 0, i32 4
  %303 = load ptr, ptr %302, align 8, !tbaa !44
  %304 = icmp ne ptr %303, null
  br i1 %304, label %305, label %315

305:                                              ; preds = %298
  %306 = load ptr, ptr %2, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %306, i32 0, i32 21
  %308 = load ptr, ptr %307, align 8, !tbaa !9
  %309 = getelementptr inbounds %struct.Internal, ptr %308, i32 0, i32 4
  %310 = load ptr, ptr %309, align 8, !tbaa !44
  call void @free(ptr noundef %310) #3
  %311 = load ptr, ptr %2, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %311, i32 0, i32 21
  %313 = load ptr, ptr %312, align 8, !tbaa !9
  %314 = getelementptr inbounds %struct.Internal, ptr %313, i32 0, i32 4
  store ptr null, ptr %314, align 8, !tbaa !44
  br label %315

315:                                              ; preds = %305, %298
  %316 = load ptr, ptr %2, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %316, i32 0, i32 21
  %318 = load ptr, ptr %317, align 8, !tbaa !9
  %319 = getelementptr inbounds %struct.Internal, ptr %318, i32 0, i32 1
  %320 = load ptr, ptr %319, align 8, !tbaa !55
  %321 = icmp ne ptr %320, null
  br i1 %321, label %322, label %332

322:                                              ; preds = %315
  %323 = load ptr, ptr %2, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %323, i32 0, i32 21
  %325 = load ptr, ptr %324, align 8, !tbaa !9
  %326 = getelementptr inbounds %struct.Internal, ptr %325, i32 0, i32 1
  %327 = load ptr, ptr %326, align 8, !tbaa !55
  call void @free(ptr noundef %327) #3
  %328 = load ptr, ptr %2, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %328, i32 0, i32 21
  %330 = load ptr, ptr %329, align 8, !tbaa !9
  %331 = getelementptr inbounds %struct.Internal, ptr %330, i32 0, i32 1
  store ptr null, ptr %331, align 8, !tbaa !55
  br label %332

332:                                              ; preds = %322, %315
  %333 = load ptr, ptr %2, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %333, i32 0, i32 21
  %335 = load ptr, ptr %334, align 8, !tbaa !9
  %336 = icmp ne ptr %335, null
  br i1 %336, label %337, label %343

337:                                              ; preds = %332
  %338 = load ptr, ptr %2, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %338, i32 0, i32 21
  %340 = load ptr, ptr %339, align 8, !tbaa !9
  call void @free(ptr noundef %340) #3
  %341 = load ptr, ptr %2, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %341, i32 0, i32 21
  store ptr null, ptr %342, align 8, !tbaa !9
  br label %343

343:                                              ; preds = %337, %332, %20
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @SafeFreeBlockVariables(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @SafeFreeInterfaceVariable(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @SafeFreeTypes(ptr noundef) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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/C++ TBAA"}
!9 = !{!10, !6, i64 1160}
!10 = !{!"SpvReflectShaderModule", !11, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !6, i64 24, !11, i64 32, !11, i64 36, !6, i64 40, !6, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !6, i64 72, !11, i64 80, !7, i64 88, !11, i64 1112, !6, i64 1120, !11, i64 1128, !6, i64 1136, !11, i64 1144, !6, i64 1152, !6, i64 1160}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !11, i64 80}
!15 = !{!16, !6, i64 8}
!16 = !{!"SpvReflectDescriptorSet", !11, i64 0, !11, i64 4, !6, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!10, !11, i64 64}
!20 = !{!10, !6, i64 72}
!21 = distinct !{!21, !18}
!22 = !{!10, !11, i64 20}
!23 = !{!10, !6, i64 24}
!24 = !{!25, !11, i64 20}
!25 = !{!"SpvReflectEntryPoint", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !6, i64 24, !11, i64 32, !6, i64 40, !11, i64 48, !6, i64 56, !11, i64 64, !6, i64 72, !11, i64 80, !6, i64 88, !26, i64 96, !11, i64 108, !11, i64 112}
!26 = !{!"LocalSize", !11, i64 0, !11, i64 4, !11, i64 8}
!27 = !{!25, !6, i64 24}
!28 = distinct !{!28, !18}
!29 = !{!25, !11, i64 32}
!30 = !{!25, !6, i64 40}
!31 = distinct !{!31, !18}
!32 = !{!11, !11, i64 0}
!33 = !{!25, !11, i64 48}
!34 = !{!25, !6, i64 56}
!35 = distinct !{!35, !18}
!36 = !{!25, !6, i64 72}
!37 = !{!25, !6, i64 88}
!38 = distinct !{!38, !18}
!39 = !{!10, !11, i64 1144}
!40 = !{!10, !6, i64 1152}
!41 = distinct !{!41, !18}
!42 = !{!43, !13, i64 24}
!43 = !{!"Internal", !13, i64 0, !6, i64 8, !11, i64 16, !13, i64 24, !6, i64 32}
!44 = !{!43, !6, i64 32}
!45 = !{!46, !6, i64 224}
!46 = !{!"SpvReflectTypeDescription", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !47, i64 36, !11, i64 220, !6, i64 224}
!47 = !{!"Traits", !48, i64 0, !52, i64 24, !53, i64 48}
!48 = !{!"SpvReflectNumericTraits", !49, i64 0, !50, i64 8, !51, i64 12}
!49 = !{!"Scalar", !11, i64 0, !11, i64 4}
!50 = !{!"Vector", !11, i64 0}
!51 = !{!"Matrix", !11, i64 0, !11, i64 4, !11, i64 8}
!52 = !{!"SpvReflectImageTraits", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!53 = !{!"SpvReflectArrayTraits", !11, i64 0, !7, i64 4, !11, i64 132}
!54 = distinct !{!54, !18}
!55 = !{!43, !6, i64 8}


; 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.SpvReflectDescriptorSet = type { i32, i32, ptr }
%struct.SpvReflectDescriptorBinding = type { i32, ptr, i32, i32, i32, i32, i32, %struct.SpvReflectImageTraits, %struct.SpvReflectBlockVariable, %struct.SpvReflectBindingArrayTraits, i32, i32, i32, ptr, ptr, %struct.anon }
%struct.SpvReflectImageTraits = type { i32, i32, i32, i32, i32, i32 }
%struct.SpvReflectBlockVariable = type { i32, ptr, i32, i32, i32, i32, i32, %struct.SpvReflectNumericTraits, %struct.SpvReflectArrayTraits, i32, i32, ptr, ptr }
%struct.SpvReflectNumericTraits = type { %struct.Scalar, %struct.Vector, %struct.Matrix }
%struct.Scalar = type { i32, i32 }
%struct.Vector = type { i32 }
%struct.Matrix = type { i32, i32, i32 }
%struct.SpvReflectArrayTraits = type { i32, [32 x i32], i32 }
%struct.SpvReflectBindingArrayTraits = type { i32, [32 x i32] }
%struct.anon = type { i32, i32 }
%struct.SpvReflectEntryPoint = type { ptr, i32, i32, i32, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, %struct.LocalSize, i32, i32 }
%struct.LocalSize = type { i32, i32, i32 }
%struct.SpvReflectInterfaceVariable = type { i32, ptr, i32, i32, ptr, i32, i32, %struct.SpvReflectNumericTraits, %struct.SpvReflectArrayTraits, i32, ptr, i32, ptr, %struct.anon.0 }
%struct.anon.0 = type { i32 }
%struct.SpvReflectTypeDescription = type { i32, i32, ptr, ptr, i32, i32, i32, %struct.Traits, i32, ptr }
%struct.Traits = type { %struct.SpvReflectNumericTraits, %struct.SpvReflectImageTraits, %struct.SpvReflectArrayTraits }

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @spvReflectDestroyShaderModule(ptr nocapture noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 1160
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = icmp eq ptr %3, null
  br i1 %4, label %139, label %.preheader122

.preheader122:                                    ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 80
  %6 = load i32, ptr %5, align 8, !tbaa !11
  %.not146 = icmp eq i32 %6, 0
  br i1 %.not146, label %.preheader121, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader122
  %7 = getelementptr inbounds i8, ptr %0, i64 88
  br label %11

.preheader121:                                    ; preds = %11, %.preheader122
  %8 = getelementptr inbounds i8, ptr %0, i64 64
  %9 = load i32, ptr %8, align 8, !tbaa !12
  %.not147 = icmp eq i32 %9, 0
  br i1 %.not147, label %._crit_edge, label %.lr.ph125

.lr.ph125:                                        ; preds = %.preheader121
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  br label %20

11:                                               ; preds = %.lr.ph, %11
  %.0123 = phi i64 [ 0, %.lr.ph ], [ %14, %11 ]
  %12 = getelementptr inbounds [64 x %struct.SpvReflectDescriptorSet], ptr %7, i64 0, i64 %.0123, i32 2
  %13 = load ptr, ptr %12, align 8, !tbaa !13
  tail call void @free(ptr noundef %13) #2
  %14 = add nuw nsw i64 %.0123, 1
  %15 = load i32, ptr %5, align 8, !tbaa !11
  %16 = zext i32 %15 to i64
  %17 = icmp ult i64 %14, %16
  br i1 %17, label %11, label %.preheader121, !llvm.loop !15

._crit_edge:                                      ; preds = %20, %.preheader121
  %18 = getelementptr inbounds i8, ptr %0, i64 72
  %19 = load ptr, ptr %18, align 8, !tbaa !17
  %.not = icmp eq ptr %19, null
  br i1 %.not, label %28, label %27

20:                                               ; preds = %.lr.ph125, %20
  %.089124 = phi i64 [ 0, %.lr.ph125 ], [ %23, %20 ]
  %21 = load ptr, ptr %10, align 8, !tbaa !17
  %22 = getelementptr inbounds %struct.SpvReflectDescriptorBinding, ptr %21, i64 %.089124, i32 8
  tail call void @SafeFreeBlockVariables(ptr noundef nonnull %22)
  %23 = add nuw nsw i64 %.089124, 1
  %24 = load i32, ptr %8, align 8, !tbaa !12
  %25 = zext i32 %24 to i64
  %26 = icmp ult i64 %23, %25
  br i1 %26, label %20, label %._crit_edge, !llvm.loop !18

27:                                               ; preds = %._crit_edge
  tail call void @free(ptr noundef nonnull %19) #2
  store ptr null, ptr %18, align 8, !tbaa !17
  br label %28

28:                                               ; preds = %27, %._crit_edge
  %29 = getelementptr inbounds i8, ptr %0, i64 20
  %30 = load i32, ptr %29, align 4, !tbaa !19
  %.not148 = icmp eq i32 %30, 0
  br i1 %.not148, label %._crit_edge137, label %.lr.ph136

.lr.ph136:                                        ; preds = %28
  %31 = getelementptr inbounds i8, ptr %0, i64 24
  br label %34

._crit_edge137:                                   ; preds = %89, %28
  %32 = getelementptr inbounds i8, ptr %0, i64 24
  %33 = load ptr, ptr %32, align 8, !tbaa !20
  %.not104 = icmp eq ptr %33, null
  br i1 %.not104, label %95, label %94

34:                                               ; preds = %.lr.ph136, %89
  %.090134 = phi i64 [ 0, %.lr.ph136 ], [ %90, %89 ]
  %35 = load ptr, ptr %31, align 8, !tbaa !20
  %36 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %35, i64 %.090134
  %37 = getelementptr inbounds i8, ptr %36, i64 20
  %38 = load i32, ptr %37, align 4, !tbaa !21
  %.not149 = icmp eq i32 %38, 0
  br i1 %.not149, label %.preheader120, label %.lr.ph128

.lr.ph128:                                        ; preds = %34
  %39 = getelementptr inbounds i8, ptr %36, i64 24
  br label %43

.preheader120:                                    ; preds = %43, %34
  %40 = getelementptr inbounds i8, ptr %36, i64 32
  %41 = load i32, ptr %40, align 8, !tbaa !24
  %.not150 = icmp eq i32 %41, 0
  br i1 %.not150, label %.preheader, label %.lr.ph130

.lr.ph130:                                        ; preds = %.preheader120
  %42 = getelementptr inbounds i8, ptr %36, i64 40
  br label %52

43:                                               ; preds = %.lr.ph128, %43
  %.088126 = phi i64 [ 0, %.lr.ph128 ], [ %46, %43 ]
  %44 = load ptr, ptr %39, align 8, !tbaa !25
  %45 = getelementptr inbounds %struct.SpvReflectInterfaceVariable, ptr %44, i64 %.088126
  tail call void @SafeFreeInterfaceVariable(ptr noundef %45)
  %46 = add nuw nsw i64 %.088126, 1
  %47 = load i32, ptr %37, align 4, !tbaa !21
  %48 = zext i32 %47 to i64
  %49 = icmp ult i64 %46, %48
  br i1 %49, label %43, label %.preheader120, !llvm.loop !26

.preheader:                                       ; preds = %52, %.preheader120
  %50 = getelementptr inbounds i8, ptr %36, i64 48
  %51 = load i32, ptr %50, align 8, !tbaa !27
  %.not151 = icmp eq i32 %51, 0
  %.phi.trans.insert = getelementptr inbounds i8, ptr %36, i64 56
  %.pre157 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !28
  br i1 %.not151, label %._crit_edge133, label %.lr.ph132

52:                                               ; preds = %.lr.ph130, %52
  %.087129 = phi i64 [ 0, %.lr.ph130 ], [ %55, %52 ]
  %53 = load ptr, ptr %42, align 8, !tbaa !29
  %54 = getelementptr inbounds %struct.SpvReflectInterfaceVariable, ptr %53, i64 %.087129
  tail call void @SafeFreeInterfaceVariable(ptr noundef %54)
  %55 = add nuw nsw i64 %.087129, 1
  %56 = load i32, ptr %40, align 8, !tbaa !24
  %57 = zext i32 %56 to i64
  %58 = icmp ult i64 %55, %57
  br i1 %58, label %52, label %.preheader, !llvm.loop !30

._crit_edge133:                                   ; preds = %.preheader
  %.not111 = icmp eq ptr %.pre157, null
  br i1 %.not111, label %73, label %._crit_edge133.thread

.lr.ph132:                                        ; preds = %.preheader, %66
  %59 = phi i32 [ %67, %66 ], [ %51, %.preheader ]
  %60 = phi ptr [ %68, %66 ], [ %.pre157, %.preheader ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %66 ], [ 0, %.preheader ]
  %61 = getelementptr inbounds %struct.SpvReflectDescriptorSet, ptr %60, i64 %indvars.iv, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %.not116 = icmp eq ptr %62, null
  br i1 %.not116, label %66, label %63

63:                                               ; preds = %.lr.ph132
  tail call void @free(ptr noundef nonnull %62) #2
  %64 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !28
  %65 = getelementptr inbounds %struct.SpvReflectDescriptorSet, ptr %64, i64 %indvars.iv, i32 2
  store ptr null, ptr %65, align 8, !tbaa !13
  %.pre156 = load i32, ptr %50, align 8, !tbaa !27
  br label %66

66:                                               ; preds = %.lr.ph132, %63
  %67 = phi i32 [ %59, %.lr.ph132 ], [ %.pre156, %63 ]
  %68 = phi ptr [ %60, %.lr.ph132 ], [ %64, %63 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %69 = zext i32 %67 to i64
  %70 = icmp ult i64 %indvars.iv.next, %69
  br i1 %70, label %.lr.ph132, label %._crit_edge133.thread, !llvm.loop !31

._crit_edge133.thread:                            ; preds = %66, %._crit_edge133
  %71 = phi ptr [ %.pre157, %._crit_edge133 ], [ %68, %66 ]
  %72 = getelementptr inbounds i8, ptr %36, i64 56
  tail call void @free(ptr noundef nonnull %71) #2
  store ptr null, ptr %72, align 8, !tbaa !28
  br label %73

73:                                               ; preds = %._crit_edge133.thread, %._crit_edge133
  %74 = getelementptr inbounds i8, ptr %36, i64 24
  %75 = load ptr, ptr %74, align 8, !tbaa !25
  %.not112 = icmp eq ptr %75, null
  br i1 %.not112, label %77, label %76

76:                                               ; preds = %73
  tail call void @free(ptr noundef nonnull %75) #2
  store ptr null, ptr %74, align 8, !tbaa !25
  br label %77

77:                                               ; preds = %76, %73
  %78 = getelementptr inbounds i8, ptr %36, i64 40
  %79 = load ptr, ptr %78, align 8, !tbaa !29
  %.not113 = icmp eq ptr %79, null
  br i1 %.not113, label %81, label %80

80:                                               ; preds = %77
  tail call void @free(ptr noundef nonnull %79) #2
  store ptr null, ptr %78, align 8, !tbaa !29
  br label %81

81:                                               ; preds = %80, %77
  %82 = getelementptr inbounds i8, ptr %36, i64 72
  %83 = load ptr, ptr %82, align 8, !tbaa !32
  %.not114 = icmp eq ptr %83, null
  br i1 %.not114, label %85, label %84

84:                                               ; preds = %81
  tail call void @free(ptr noundef nonnull %83) #2
  store ptr null, ptr %82, align 8, !tbaa !32
  br label %85

85:                                               ; preds = %84, %81
  %86 = getelementptr inbounds i8, ptr %36, i64 88
  %87 = load ptr, ptr %86, align 8, !tbaa !33
  %.not115 = icmp eq ptr %87, null
  br i1 %.not115, label %89, label %88

88:                                               ; preds = %85
  tail call void @free(ptr noundef nonnull %87) #2
  store ptr null, ptr %86, align 8, !tbaa !33
  br label %89

89:                                               ; preds = %88, %85
  %90 = add nuw nsw i64 %.090134, 1
  %91 = load i32, ptr %29, align 4, !tbaa !19
  %92 = zext i32 %91 to i64
  %93 = icmp ult i64 %90, %92
  br i1 %93, label %34, label %._crit_edge137, !llvm.loop !34

94:                                               ; preds = %._crit_edge137
  tail call void @free(ptr noundef nonnull %33) #2
  store ptr null, ptr %32, align 8, !tbaa !20
  br label %95

95:                                               ; preds = %94, %._crit_edge137
  %96 = getelementptr inbounds i8, ptr %0, i64 1144
  %97 = load i32, ptr %96, align 8, !tbaa !35
  %.not152 = icmp eq i32 %97, 0
  br i1 %.not152, label %._crit_edge141, label %.lr.ph140

.lr.ph140:                                        ; preds = %95
  %98 = getelementptr inbounds i8, ptr %0, i64 1152
  br label %101

._crit_edge141:                                   ; preds = %101, %95
  %99 = getelementptr inbounds i8, ptr %0, i64 1152
  %100 = load ptr, ptr %99, align 8, !tbaa !36
  %.not105 = icmp eq ptr %100, null
  br i1 %.not105, label %109, label %108

101:                                              ; preds = %.lr.ph140, %101
  %.085138 = phi i64 [ 0, %.lr.ph140 ], [ %104, %101 ]
  %102 = load ptr, ptr %98, align 8, !tbaa !36
  %103 = getelementptr inbounds %struct.SpvReflectBlockVariable, ptr %102, i64 %.085138
  tail call void @SafeFreeBlockVariables(ptr noundef %103)
  %104 = add nuw nsw i64 %.085138, 1
  %105 = load i32, ptr %96, align 8, !tbaa !35
  %106 = zext i32 %105 to i64
  %107 = icmp ult i64 %104, %106
  br i1 %107, label %101, label %._crit_edge141, !llvm.loop !37

108:                                              ; preds = %._crit_edge141
  tail call void @free(ptr noundef nonnull %100) #2
  store ptr null, ptr %99, align 8, !tbaa !36
  br label %109

109:                                              ; preds = %108, %._crit_edge141
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 24
  %112 = load i64, ptr %111, align 8, !tbaa !38
  %.not153 = icmp eq i64 %112, 0
  br i1 %.not153, label %._crit_edge145, label %.lr.ph144

._crit_edge145:                                   ; preds = %.thread, %109
  %.lcssa = phi ptr [ %110, %109 ], [ %124, %.thread ]
  %113 = getelementptr inbounds i8, ptr %.lcssa, i64 32
  %114 = load ptr, ptr %113, align 8, !tbaa !41
  %.not106 = icmp eq ptr %114, null
  br i1 %.not106, label %131, label %128

.lr.ph144:                                        ; preds = %109, %.thread
  %115 = phi ptr [ %124, %.thread ], [ %110, %109 ]
  %.084142 = phi i64 [ %123, %.thread ], [ 0, %109 ]
  %116 = getelementptr inbounds i8, ptr %115, i64 32
  %117 = load ptr, ptr %116, align 8, !tbaa !41
  %118 = getelementptr inbounds %struct.SpvReflectTypeDescription, ptr %117, i64 %.084142
  %119 = getelementptr inbounds i8, ptr %118, i64 224
  %120 = load ptr, ptr %119, align 8, !tbaa !42
  %.not109 = icmp eq ptr %120, null
  br i1 %.not109, label %.thread, label %121

121:                                              ; preds = %.lr.ph144
  tail call void @SafeFreeTypes(ptr noundef nonnull %118)
  %.pr = load ptr, ptr %119, align 8, !tbaa !42
  %.not110 = icmp eq ptr %.pr, null
  br i1 %.not110, label %.thread, label %122

122:                                              ; preds = %121
  tail call void @free(ptr noundef nonnull %.pr) #2
  store ptr null, ptr %119, align 8, !tbaa !42
  br label %.thread

.thread:                                          ; preds = %.lr.ph144, %122, %121
  %123 = add nuw i64 %.084142, 1
  %124 = load ptr, ptr %2, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i64 24
  %126 = load i64, ptr %125, align 8, !tbaa !38
  %127 = icmp ult i64 %123, %126
  br i1 %127, label %.lr.ph144, label %._crit_edge145, !llvm.loop !51

128:                                              ; preds = %._crit_edge145
  tail call void @free(ptr noundef nonnull %114) #2
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  %130 = getelementptr inbounds i8, ptr %129, i64 32
  store ptr null, ptr %130, align 8, !tbaa !41
  br label %131

131:                                              ; preds = %128, %._crit_edge145
  %132 = phi ptr [ %129, %128 ], [ %.lcssa, %._crit_edge145 ]
  %133 = getelementptr inbounds i8, ptr %132, i64 8
  %134 = load ptr, ptr %133, align 8, !tbaa !52
  %.not107 = icmp eq ptr %134, null
  br i1 %.not107, label %137, label %.thread118

.thread118:                                       ; preds = %131
  tail call void @free(ptr noundef nonnull %134) #2
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %135, i64 8
  store ptr null, ptr %136, align 8, !tbaa !52
  br label %137

137:                                              ; preds = %131, %.thread118
  %138 = phi ptr [ %135, %.thread118 ], [ %132, %131 ]
  tail call void @free(ptr noundef nonnull %138) #2
  store ptr null, ptr %2, align 8, !tbaa !5
  br label %139

139:                                              ; preds = %1, %137
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @SafeFreeBlockVariables(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @SafeFreeInterfaceVariable(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @SafeFreeTypes(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #1 = { 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 = { 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, !10, i64 1160}
!6 = !{!"SpvReflectShaderModule", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !7, i64 36, !10, i64 40, !10, i64 48, !7, i64 56, !7, i64 60, !7, i64 64, !10, i64 72, !7, i64 80, !8, i64 88, !7, i64 1112, !10, i64 1120, !7, i64 1128, !10, i64 1136, !7, i64 1144, !10, i64 1152, !10, i64 1160}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 80}
!12 = !{!6, !7, i64 64}
!13 = !{!14, !10, i64 8}
!14 = !{!"SpvReflectDescriptorSet", !7, i64 0, !7, i64 4, !10, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !10, i64 72}
!18 = distinct !{!18, !16}
!19 = !{!6, !7, i64 20}
!20 = !{!6, !10, i64 24}
!21 = !{!22, !7, i64 20}
!22 = !{!"SpvReflectEntryPoint", !10, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !10, i64 56, !7, i64 64, !10, i64 72, !7, i64 80, !10, i64 88, !23, i64 96, !7, i64 108, !7, i64 112}
!23 = !{!"LocalSize", !7, i64 0, !7, i64 4, !7, i64 8}
!24 = !{!22, !7, i64 32}
!25 = !{!22, !10, i64 24}
!26 = distinct !{!26, !16}
!27 = !{!22, !7, i64 48}
!28 = !{!22, !10, i64 56}
!29 = !{!22, !10, i64 40}
!30 = distinct !{!30, !16}
!31 = distinct !{!31, !16}
!32 = !{!22, !10, i64 72}
!33 = !{!22, !10, i64 88}
!34 = distinct !{!34, !16}
!35 = !{!6, !7, i64 1144}
!36 = !{!6, !10, i64 1152}
!37 = distinct !{!37, !16}
!38 = !{!39, !40, i64 24}
!39 = !{!"Internal", !40, i64 0, !10, i64 8, !7, i64 16, !40, i64 24, !10, i64 32}
!40 = !{!"long", !8, i64 0}
!41 = !{!39, !10, i64 32}
!42 = !{!43, !10, i64 224}
!43 = !{!"SpvReflectTypeDescription", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !44, i64 36, !7, i64 220, !10, i64 224}
!44 = !{!"Traits", !45, i64 0, !49, i64 24, !50, i64 48}
!45 = !{!"SpvReflectNumericTraits", !46, i64 0, !47, i64 8, !48, i64 12}
!46 = !{!"Scalar", !7, i64 0, !7, i64 4}
!47 = !{!"Vector", !7, i64 0}
!48 = !{!"Matrix", !7, i64 0, !7, i64 4, !7, i64 8}
!49 = !{!"SpvReflectImageTraits", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!50 = !{!"SpvReflectArrayTraits", !7, i64 0, !8, i64 4, !7, i64 132}
!51 = distinct !{!51, !16}
!52 = !{!39, !10, i64 8}


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