; LLVM IR from specinfo-ua/UAPKI :: library/uapkif/src/asn1 (constr_SET)

; 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.asn_enc_rval_s = type { i64, ptr, ptr }
%struct.asn_TYPE_descriptor_s = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, i32, ptr, ptr, i32, ptr }
%struct.asn_SET_specifics_s = type { i32, i32, i32, ptr, i32, ptr, i32, i32, ptr }
%struct.asn_TYPE_tag2member_s = type { i32, i32, i32, i32 }
%struct.asn_TYPE_member_s = type { i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

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

declare void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #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) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @SET_encode_xer(ptr dead_on_unwind noalias writable sret(%struct.asn_enc_rval_s) align 8 %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.asn_enc_rval_s, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.asn_enc_rval_s, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca %struct.asn_enc_rval_s, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  store ptr %6, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.asn_TYPE_descriptor_s, ptr %33, i32 0, i32 19
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  store ptr %35, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %36 = load i32, ptr %11, align 4, !tbaa !9
  %37 = and i32 %36, 2
  store i32 %37, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.asn_SET_specifics_s, ptr %38, i32 0, i32 5
  %40 = load ptr, ptr %39, align 8, !tbaa !13
  store ptr %40, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.asn_SET_specifics_s, ptr %41, i32 0, i32 6
  %43 = load i32, ptr %42, align 8, !tbaa !15
  store i32 %43, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %55, label %46

46:                                               ; preds = %7
  br label %47

47:                                               ; preds = %46
  %48 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %0, i32 0, i32 0
  store i64 -1, ptr %48, align 8, !tbaa !16
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %0, i32 0, i32 1
  store ptr %49, ptr %50, align 8, !tbaa !19
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %0, i32 0, i32 2
  store ptr %51, ptr %52, align 8, !tbaa !20
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 903, i32 noundef 101, ptr noundef null)
  store i32 1, ptr %20, align 4
  br label %323

53:                                               ; No predecessors!
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54, %7
  %56 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %15, i32 0, i32 0
  store i64 0, ptr %56, align 8, !tbaa !16
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %250, %55
  %58 = load i32, ptr %19, align 4, !tbaa !9
  %59 = load i32, ptr %18, align 4, !tbaa !9
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %61, label %253

61:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.asn_TYPE_descriptor_s, ptr %62, i32 0, i32 17
  %64 = load ptr, ptr %63, align 8, !tbaa !21
  %65 = load ptr, ptr %17, align 8, !tbaa !5
  %66 = load i32, ptr %19, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds %struct.asn_TYPE_tag2member_s, ptr %65, i64 %67
  %69 = getelementptr inbounds %struct.asn_TYPE_tag2member_s, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !22
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %struct.asn_TYPE_member_s, ptr %64, i64 %71
  store ptr %72, ptr %22, align 8, !tbaa !5
  %73 = load ptr, ptr %22, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.asn_TYPE_member_s, ptr %73, i32 0, i32 9
  %75 = load ptr, ptr %74, align 8, !tbaa !24
  store ptr %75, ptr %24, align 8, !tbaa !5
  %76 = load ptr, ptr %22, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.asn_TYPE_member_s, ptr %76, i32 0, i32 9
  %78 = load ptr, ptr %77, align 8, !tbaa !24
  %79 = call i64 @strlen(ptr noundef %78) #6
  %80 = trunc i64 %79 to i32
  store i32 %80, ptr %25, align 4, !tbaa !9
  %81 = load ptr, ptr %22, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.asn_TYPE_member_s, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !26
  %84 = and i32 %83, 1
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %112

86:                                               ; preds = %61
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load ptr, ptr %22, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.asn_TYPE_member_s, ptr %88, i32 0, i32 2
  %90 = load i32, ptr %89, align 8, !tbaa !27
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %87, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  store ptr %93, ptr %23, align 8, !tbaa !5
  %94 = load ptr, ptr %23, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %111, label %96

96:                                               ; preds = %86
  %97 = load ptr, ptr %22, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.asn_TYPE_member_s, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 4, !tbaa !28
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %96
  store i32 6, ptr %20, align 4
  br label %247

102:                                              ; preds = %96
  br label %103

103:                                              ; preds = %102
  %104 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %0, i32 0, i32 0
  store i64 -1, ptr %104, align 8, !tbaa !16
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %0, i32 0, i32 1
  store ptr %105, ptr %106, align 8, !tbaa !19
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %0, i32 0, i32 2
  store ptr %107, ptr %108, align 8, !tbaa !20
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 928, i32 noundef 101, ptr noundef null)
  store i32 1, ptr %20, align 4
  br label %247

109:                                              ; No predecessors!
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110, %86
  br label %119

112:                                              ; preds = %61
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = load ptr, ptr %22, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.asn_TYPE_member_s, ptr %114, i32 0, i32 2
  %116 = load i32, ptr %115, align 8, !tbaa !27
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds i8, ptr %113, i64 %117
  store ptr %118, ptr %23, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %112, %111
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %173, label %122

122:                                              ; preds = %119
  br label %123

123:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %124 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %124, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 1, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %125 = load i32, ptr %27, align 4, !tbaa !9
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %137

127:                                              ; preds = %123
  br label %128

128:                                              ; preds = %127
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = call i32 %129(ptr noundef @.str.1, i64 noundef 1, ptr noundef %130)
  %132 = icmp slt i32 %131, 0
  br i1 %132, label %133, label %134

133:                                              ; preds = %128
  store i32 13, ptr %20, align 4
  br label %168

134:                                              ; preds = %128
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136, %123
  %138 = load i32, ptr %26, align 4, !tbaa !9
  %139 = icmp slt i32 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %137
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %141

141:                                              ; preds = %140, %137
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %156, %141
  %143 = load i32, ptr %28, align 4, !tbaa !9
  %144 = load i32, ptr %26, align 4, !tbaa !9
  %145 = icmp slt i32 %143, %144
  br i1 %145, label %146, label %159

146:                                              ; preds = %142
  br label %147

147:                                              ; preds = %146
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = call i32 %148(ptr noundef @.str.2, i64 noundef 4, ptr noundef %149)
  %151 = icmp slt i32 %150, 0
  br i1 %151, label %152, label %153

152:                                              ; preds = %147
  store i32 13, ptr %20, align 4
  br label %168

153:                                              ; preds = %147
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %28, align 4, !tbaa !9
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %28, align 4, !tbaa !9
  br label %142, !llvm.loop !29

159:                                              ; preds = %142
  %160 = load i32, ptr %27, align 4, !tbaa !9
  %161 = load i32, ptr %26, align 4, !tbaa !9
  %162 = mul nsw i32 4, %161
  %163 = add nsw i32 %160, %162
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %15, i32 0, i32 0
  %166 = load i64, ptr %165, align 8, !tbaa !16
  %167 = add nsw i64 %166, %164
  store i64 %167, ptr %165, align 8, !tbaa !16
  store i32 0, ptr %20, align 4
  br label %168

168:                                              ; preds = %159, %152, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  %169 = load i32, ptr %20, align 4
  switch i32 %169, label %247 [
    i32 0, label %170
  ]

170:                                              ; preds = %168
  br label %171

171:                                              ; preds = %170
  br label %172

172:                                              ; preds = %171
  br label %173

173:                                              ; preds = %172, %119
  br label %174

174:                                              ; preds = %173
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = call i32 %175(ptr noundef @.str.3, i64 noundef 1, ptr noundef %176)
  %178 = icmp slt i32 %177, 0
  br i1 %178, label %192, label %179

179:                                              ; preds = %174
  %180 = load ptr, ptr %12, align 8, !tbaa !5
  %181 = load ptr, ptr %24, align 8, !tbaa !5
  %182 = load i32, ptr %25, align 4, !tbaa !9
  %183 = zext i32 %182 to i64
  %184 = load ptr, ptr %13, align 8, !tbaa !5
  %185 = call i32 %180(ptr noundef %181, i64 noundef %183, ptr noundef %184)
  %186 = icmp slt i32 %185, 0
  br i1 %186, label %192, label %187

187:                                              ; preds = %179
  %188 = load ptr, ptr %12, align 8, !tbaa !5
  %189 = load ptr, ptr %13, align 8, !tbaa !5
  %190 = call i32 %188(ptr noundef @.str.4, i64 noundef 1, ptr noundef %189)
  %191 = icmp slt i32 %190, 0
  br i1 %191, label %192, label %193

192:                                              ; preds = %187, %179, %174
  store i32 13, ptr %20, align 4
  br label %247

193:                                              ; preds = %187
  br label %194

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #5
  %196 = load ptr, ptr %22, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.asn_TYPE_member_s, ptr %196, i32 0, i32 5
  %198 = load ptr, ptr %197, align 8, !tbaa !31
  %199 = getelementptr inbounds %struct.asn_TYPE_descriptor_s, ptr %198, i32 0, i32 8
  %200 = load ptr, ptr %199, align 8, !tbaa !32
  %201 = load ptr, ptr %22, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.asn_TYPE_member_s, ptr %201, i32 0, i32 5
  %203 = load ptr, ptr %202, align 8, !tbaa !31
  %204 = load ptr, ptr %23, align 8, !tbaa !5
  %205 = load i32, ptr %10, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  %207 = load i32, ptr %11, align 4, !tbaa !9
  %208 = load ptr, ptr %12, align 8, !tbaa !5
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  call void %200(ptr dead_on_unwind writable sret(%struct.asn_enc_rval_s) align 8 %29, ptr noundef %203, ptr noundef %204, i32 noundef %206, i32 noundef %207, ptr noundef %208, ptr noundef %209)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %29, i64 24, i1 false), !tbaa.struct !33
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #5
  %210 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %21, i32 0, i32 0
  %211 = load i64, ptr %210, align 8, !tbaa !16
  %212 = icmp eq i64 %211, -1
  br i1 %212, label %213, label %214

213:                                              ; preds = %195
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %21, i64 24, i1 false), !tbaa.struct !33
  store i32 1, ptr %20, align 4
  br label %247

214:                                              ; preds = %195
  br label %215

215:                                              ; preds = %214
  %216 = load ptr, ptr %12, align 8, !tbaa !5
  %217 = load ptr, ptr %13, align 8, !tbaa !5
  %218 = call i32 %216(ptr noundef @.str.5, i64 noundef 2, ptr noundef %217)
  %219 = icmp slt i32 %218, 0
  br i1 %219, label %233, label %220

220:                                              ; preds = %215
  %221 = load ptr, ptr %12, align 8, !tbaa !5
  %222 = load ptr, ptr %24, align 8, !tbaa !5
  %223 = load i32, ptr %25, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = load ptr, ptr %13, align 8, !tbaa !5
  %226 = call i32 %221(ptr noundef %222, i64 noundef %224, ptr noundef %225)
  %227 = icmp slt i32 %226, 0
  br i1 %227, label %233, label %228

228:                                              ; preds = %220
  %229 = load ptr, ptr %12, align 8, !tbaa !5
  %230 = load ptr, ptr %13, align 8, !tbaa !5
  %231 = call i32 %229(ptr noundef @.str.4, i64 noundef 1, ptr noundef %230)
  %232 = icmp slt i32 %231, 0
  br i1 %232, label %233, label %234

233:                                              ; preds = %228, %220, %215
  store i32 13, ptr %20, align 4
  br label %247

234:                                              ; preds = %228
  br label %235

235:                                              ; preds = %234
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %25, align 4, !tbaa !9
  %238 = mul i32 2, %237
  %239 = add i32 5, %238
  %240 = zext i32 %239 to i64
  %241 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %21, i32 0, i32 0
  %242 = load i64, ptr %241, align 8, !tbaa !16
  %243 = add nsw i64 %240, %242
  %244 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %15, i32 0, i32 0
  %245 = load i64, ptr %244, align 8, !tbaa !16
  %246 = add nsw i64 %245, %243
  store i64 %246, ptr %244, align 8, !tbaa !16
  store i32 0, ptr %20, align 4
  br label %247

247:                                              ; preds = %236, %233, %213, %192, %168, %103, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  %248 = load i32, ptr %20, align 4
  switch i32 %248, label %323 [
    i32 0, label %249
    i32 6, label %250
    i32 13, label %314
  ]

249:                                              ; preds = %247
  br label %250

250:                                              ; preds = %249, %247
  %251 = load i32, ptr %19, align 4, !tbaa !9
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %19, align 4, !tbaa !9
  br label %57, !llvm.loop !35

253:                                              ; preds = %57
  %254 = load i32, ptr %16, align 4, !tbaa !9
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %308, label %256

256:                                              ; preds = %253
  br label %257

257:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %258 = load i32, ptr %10, align 4, !tbaa !9
  %259 = sub nsw i32 %258, 1
  store i32 %259, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  store i32 1, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %260 = load i32, ptr %31, align 4, !tbaa !9
  %261 = icmp ne i32 %260, 0
  br i1 %261, label %262, label %272

262:                                              ; preds = %257
  br label %263

263:                                              ; preds = %262
  %264 = load ptr, ptr %12, align 8, !tbaa !5
  %265 = load ptr, ptr %13, align 8, !tbaa !5
  %266 = call i32 %264(ptr noundef @.str.1, i64 noundef 1, ptr noundef %265)
  %267 = icmp slt i32 %266, 0
  br i1 %267, label %268, label %269

268:                                              ; preds = %263
  store i32 13, ptr %20, align 4
  br label %303

269:                                              ; preds = %263
  br label %270

270:                                              ; preds = %269
  br label %271

271:                                              ; preds = %270
  br label %272

272:                                              ; preds = %271, %257
  %273 = load i32, ptr %30, align 4, !tbaa !9
  %274 = icmp slt i32 %273, 0
  br i1 %274, label %275, label %276

275:                                              ; preds = %272
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %276

276:                                              ; preds = %275, %272
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %277

277:                                              ; preds = %291, %276
  %278 = load i32, ptr %32, align 4, !tbaa !9
  %279 = load i32, ptr %30, align 4, !tbaa !9
  %280 = icmp slt i32 %278, %279
  br i1 %280, label %281, label %294

281:                                              ; preds = %277
  br label %282

282:                                              ; preds = %281
  %283 = load ptr, ptr %12, align 8, !tbaa !5
  %284 = load ptr, ptr %13, align 8, !tbaa !5
  %285 = call i32 %283(ptr noundef @.str.2, i64 noundef 4, ptr noundef %284)
  %286 = icmp slt i32 %285, 0
  br i1 %286, label %287, label %288

287:                                              ; preds = %282
  store i32 13, ptr %20, align 4
  br label %303

288:                                              ; preds = %282
  br label %289

289:                                              ; preds = %288
  br label %290

290:                                              ; preds = %289
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %32, align 4, !tbaa !9
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %32, align 4, !tbaa !9
  br label %277, !llvm.loop !36

294:                                              ; preds = %277
  %295 = load i32, ptr %31, align 4, !tbaa !9
  %296 = load i32, ptr %30, align 4, !tbaa !9
  %297 = mul nsw i32 4, %296
  %298 = add nsw i32 %295, %297
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %15, i32 0, i32 0
  %301 = load i64, ptr %300, align 8, !tbaa !16
  %302 = add nsw i64 %301, %299
  store i64 %302, ptr %300, align 8, !tbaa !16
  store i32 0, ptr %20, align 4
  br label %303

303:                                              ; preds = %294, %287, %268
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  %304 = load i32, ptr %20, align 4
  switch i32 %304, label %323 [
    i32 0, label %305
    i32 13, label %314
  ]

305:                                              ; preds = %303
  br label %306

306:                                              ; preds = %305
  br label %307

307:                                              ; preds = %306
  br label %308

308:                                              ; preds = %307, %253
  br label %309

309:                                              ; preds = %308
  %310 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %15, i32 0, i32 2
  store ptr null, ptr %310, align 8, !tbaa !20
  %311 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %15, i32 0, i32 1
  store ptr null, ptr %311, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %15, i64 24, i1 false), !tbaa.struct !33
  store i32 1, ptr %20, align 4
  br label %323

312:                                              ; No predecessors!
  br label %313

313:                                              ; preds = %312
  br label %314

314:                                              ; preds = %313, %303, %247
  br label %315

315:                                              ; preds = %314
  %316 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %0, i32 0, i32 0
  store i64 -1, ptr %316, align 8, !tbaa !16
  %317 = load ptr, ptr %8, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %0, i32 0, i32 1
  store ptr %317, ptr %318, align 8, !tbaa !19
  %319 = load ptr, ptr %9, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.asn_enc_rval_s, ptr %0, i32 0, i32 2
  store ptr %319, ptr %320, align 8, !tbaa !20
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 957, i32 noundef 101, ptr noundef null)
  store i32 1, ptr %20, align 4
  br label %323

321:                                              ; No predecessors!
  br label %322

322:                                              ; preds = %321
  store i32 0, ptr %20, align 4
  br label %323

323:                                              ; preds = %322, %315, %309, %303, %247, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %324 = load i32, ptr %20, align 4
  switch i32 %324, label %326 [
    i32 0, label %325
    i32 1, label %325
  ]

325:                                              ; preds = %323, %323
  ret void

326:                                              ; preds = %323
  unreachable
}

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind willreturn memory(read) "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 = { nounwind willreturn memory(read) }

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 152}
!12 = !{!"asn_TYPE_descriptor_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !10, i64 104, !6, i64 112, !10, i64 120, !6, i64 128, !6, i64 136, !10, i64 144, !6, i64 152}
!13 = !{!14, !6, i64 32}
!14 = !{!"asn_SET_specifics_s", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !6, i64 48}
!15 = !{!14, !10, i64 40}
!16 = !{!17, !18, i64 0}
!17 = !{!"asn_enc_rval_s", !18, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"long", !7, i64 0}
!19 = !{!17, !6, i64 8}
!20 = !{!17, !6, i64 16}
!21 = !{!12, !6, i64 136}
!22 = !{!23, !10, i64 4}
!23 = !{!"asn_TYPE_tag2member_s", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!24 = !{!25, !6, i64 56}
!25 = !{!"asn_TYPE_member_s", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!26 = !{!25, !10, i64 0}
!27 = !{!25, !10, i64 8}
!28 = !{!25, !10, i64 4}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!25, !6, i64 24}
!32 = !{!12, !6, i64 64}
!33 = !{i64 0, i64 8, !34, i64 8, i64 8, !5, i64 16, i64 8, !5}
!34 = !{!18, !18, i64 0}
!35 = distinct !{!35, !30}
!36 = distinct !{!36, !30}


; 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.asn_enc_rval_s = type { i64, ptr, ptr }
%struct.asn_TYPE_tag2member_s = type { i32, i32, i32, i32 }
%struct.asn_TYPE_member_s = type { i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

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

declare void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #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) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @SET_encode_xer(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.asn_enc_rval_s) align 8 %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #3 {
  %.sroa.6 = alloca { ptr, ptr }, align 8
  %8 = alloca %struct.asn_enc_rval_s, align 8
  %9 = getelementptr inbounds i8, ptr %1, i64 152
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = and i32 %4, 2
  %12 = getelementptr inbounds i8, ptr %10, i64 32
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %10, i64 40
  %15 = load i32, ptr %14, align 8, !tbaa !13
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %23, label %.preheader

.preheader:                                       ; preds = %7
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph120, label %._crit_edge121

.lr.ph120:                                        ; preds = %.preheader
  %17 = getelementptr inbounds i8, ptr %1, i64 136
  %.not96 = icmp eq i32 %11, 0
  %spec.store.select = tail call i32 @llvm.smax.i32(i32 %3, i32 0)
  %18 = icmp sgt i32 %3, 0
  %19 = shl nsw i32 %spec.store.select, 2
  %20 = or disjoint i32 %19, 1
  %21 = zext nneg i32 %20 to i64
  %22 = add nsw i32 %3, 1
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %wide.trip.count = zext nneg i32 %15 to i64
  br label %26

23:                                               ; preds = %7
  store i64 -1, ptr %0, align 8, !tbaa !14
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %1, ptr %24, align 8, !tbaa !17
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr null, ptr %25, align 8, !tbaa !18
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 903, i32 noundef 101, ptr noundef null) #7
  br label %109

26:                                               ; preds = %.lr.ph120, %91
  %indvars.iv = phi i64 [ 0, %.lr.ph120 ], [ %indvars.iv.next, %91 ]
  %.sroa.042.0119 = phi i64 [ 0, %.lr.ph120 ], [ %.sroa.042.3, %91 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %.sroa.6)
  %27 = load ptr, ptr %17, align 8, !tbaa !19
  %28 = getelementptr inbounds %struct.asn_TYPE_tag2member_s, ptr %13, i64 %indvars.iv, i32 1
  %29 = load i32, ptr %28, align 4, !tbaa !20
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds %struct.asn_TYPE_member_s, ptr %27, i64 %30
  %32 = getelementptr inbounds i8, ptr %31, i64 56
  %33 = load ptr, ptr %32, align 8, !tbaa !22
  %34 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %33) #8
  %35 = load i32, ptr %31, align 8, !tbaa !24
  %36 = and i32 %35, 1
  %.not93 = icmp eq i32 %36, 0
  %37 = getelementptr inbounds i8, ptr %31, i64 8
  %38 = load i32, ptr %37, align 8, !tbaa !25
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds i8, ptr %2, i64 %39
  br i1 %.not93, label %49, label %41

41:                                               ; preds = %26
  %42 = load ptr, ptr %40, align 8, !tbaa !26
  %.not94 = icmp eq ptr %42, null
  br i1 %.not94, label %43, label %49

43:                                               ; preds = %41
  %44 = getelementptr inbounds i8, ptr %31, i64 4
  %45 = load i32, ptr %44, align 4, !tbaa !27
  %.not95 = icmp eq i32 %45, 0
  br i1 %.not95, label %46, label %91

46:                                               ; preds = %43
  store i64 -1, ptr %0, align 8, !tbaa !14
  %47 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %1, ptr %47, align 8, !tbaa !17
  %48 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %2, ptr %48, align 8, !tbaa !18
  call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 928, i32 noundef 101, ptr noundef null) #7
  br label %.thread105

49:                                               ; preds = %26, %41
  %.088 = phi ptr [ %42, %41 ], [ %40, %26 ]
  br i1 %.not96, label %50, label %59

50:                                               ; preds = %49
  %51 = call i32 %5(ptr noundef nonnull @.str.1, i64 noundef 1, ptr noundef %6) #7
  %52 = icmp slt i32 %51, 0
  br i1 %52, label %.thread101, label %53

53:                                               ; preds = %50
  br i1 %18, label %.lr.ph, label %._crit_edge

54:                                               ; preds = %.lr.ph
  %55 = add nuw nsw i32 %.085117, 1
  %exitcond.not = icmp eq i32 %55, %3
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !28

.lr.ph:                                           ; preds = %53, %54
  %.085117 = phi i32 [ %55, %54 ], [ 0, %53 ]
  %56 = call i32 %5(ptr noundef nonnull @.str.2, i64 noundef 4, ptr noundef %6) #7
  %57 = icmp slt i32 %56, 0
  br i1 %57, label %.thread101, label %54

._crit_edge:                                      ; preds = %54, %53
  %58 = add nsw i64 %.sroa.042.0119, %21
  br label %59

59:                                               ; preds = %._crit_edge, %49
  %.sroa.042.2 = phi i64 [ %.sroa.042.0119, %49 ], [ %58, %._crit_edge ]
  %60 = call i32 %5(ptr noundef nonnull @.str.3, i64 noundef 1, ptr noundef %6) #7
  %61 = icmp slt i32 %60, 0
  br i1 %61, label %.thread101, label %62

62:                                               ; preds = %59
  %63 = and i64 %34, 4294967295
  %64 = call i32 %5(ptr noundef %33, i64 noundef %63, ptr noundef %6) #7
  %65 = icmp slt i32 %64, 0
  br i1 %65, label %.thread101, label %66

66:                                               ; preds = %62
  %67 = call i32 %5(ptr noundef nonnull @.str.4, i64 noundef 1, ptr noundef %6) #7
  %68 = icmp slt i32 %67, 0
  br i1 %68, label %.thread101, label %69

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  %70 = getelementptr inbounds i8, ptr %31, i64 24
  %71 = load ptr, ptr %70, align 8, !tbaa !30
  %72 = getelementptr inbounds i8, ptr %71, i64 64
  %73 = load ptr, ptr %72, align 8, !tbaa !31
  call void %73(ptr dead_on_unwind nonnull writable sret(%struct.asn_enc_rval_s) align 8 %8, ptr noundef %71, ptr noundef %.088, i32 noundef %22, i32 noundef %4, ptr noundef %5, ptr noundef %6) #7
  %.sroa.0.0.copyload = load i64, ptr %8, align 8, !tbaa !32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.6, ptr noundef nonnull align 8 dereferenceable(16) %.sroa.6.0..sroa_idx, i64 16, i1 false), !tbaa.struct !33
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  %74 = icmp eq i64 %.sroa.0.0.copyload, -1
  br i1 %74, label %75, label %76

75:                                               ; preds = %69
  store i64 -1, ptr %0, align 8, !tbaa !32
  %.sroa.6.0..sroa_idx31 = getelementptr inbounds i8, ptr %0, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.6.0..sroa_idx31, ptr noundef nonnull align 8 dereferenceable(16) %.sroa.6, i64 16, i1 false), !tbaa.struct !33
  br label %.thread105

76:                                               ; preds = %69
  %77 = call i32 %5(ptr noundef nonnull @.str.5, i64 noundef 2, ptr noundef %6) #7
  %78 = icmp slt i32 %77, 0
  br i1 %78, label %.thread101, label %79

79:                                               ; preds = %76
  %80 = call i32 %5(ptr noundef %33, i64 noundef %63, ptr noundef %6) #7
  %81 = icmp slt i32 %80, 0
  br i1 %81, label %.thread101, label %82

82:                                               ; preds = %79
  %83 = call i32 %5(ptr noundef nonnull @.str.4, i64 noundef 1, ptr noundef %6) #7
  %84 = icmp slt i32 %83, 0
  br i1 %84, label %.thread101, label %85

85:                                               ; preds = %82
  %86 = shl i64 %34, 1
  %87 = add i64 %86, 5
  %88 = and i64 %87, 4294967295
  %89 = add i64 %.sroa.042.2, %88
  %90 = add i64 %89, %.sroa.0.0.copyload
  br label %91

.thread101:                                       ; preds = %66, %62, %59, %82, %79, %76, %50, %.lr.ph
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %.sroa.6)
  br label %.thread109

.thread105:                                       ; preds = %75, %46
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %.sroa.6)
  br label %109

91:                                               ; preds = %85, %43
  %.sroa.042.3 = phi i64 [ %90, %85 ], [ %.sroa.042.0119, %43 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %.sroa.6)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond128.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond128.not, label %._crit_edge121, label %26, !llvm.loop !34

._crit_edge121:                                   ; preds = %91, %.preheader
  %.sroa.042.0.lcssa = phi i64 [ 0, %.preheader ], [ %.sroa.042.3, %91 ]
  %.not92 = icmp eq i32 %11, 0
  br i1 %.not92, label %92, label %106

92:                                               ; preds = %._crit_edge121
  %93 = call i32 %5(ptr noundef nonnull @.str.1, i64 noundef 1, ptr noundef %6) #7
  %94 = icmp slt i32 %93, 0
  br i1 %94, label %.thread109, label %95

95:                                               ; preds = %92
  %96 = call i32 @llvm.smax.i32(i32 %3, i32 1)
  %spec.store.select1 = add nsw i32 %96, -1
  %97 = icmp sgt i32 %3, 1
  br i1 %97, label %.lr.ph124, label %._crit_edge125

98:                                               ; preds = %.lr.ph124
  %99 = add nuw nsw i32 %.0122, 1
  %exitcond129.not = icmp eq i32 %99, %spec.store.select1
  br i1 %exitcond129.not, label %._crit_edge125, label %.lr.ph124, !llvm.loop !35

.lr.ph124:                                        ; preds = %95, %98
  %.0122 = phi i32 [ %99, %98 ], [ 0, %95 ]
  %100 = call i32 %5(ptr noundef nonnull @.str.2, i64 noundef 4, ptr noundef %6) #7
  %101 = icmp slt i32 %100, 0
  br i1 %101, label %.thread109, label %98

._crit_edge125:                                   ; preds = %98, %95
  %102 = shl nsw i32 %spec.store.select1, 2
  %103 = or disjoint i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = add nsw i64 %.sroa.042.0.lcssa, %104
  br label %106

106:                                              ; preds = %._crit_edge125, %._crit_edge121
  %.sroa.042.5 = phi i64 [ %.sroa.042.0.lcssa, %._crit_edge121 ], [ %105, %._crit_edge125 ]
  store i64 %.sroa.042.5, ptr %0, align 8, !tbaa !32
  %.sroa.10.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.10.0..sroa_idx, i8 0, i64 16, i1 false)
  br label %109

.thread109:                                       ; preds = %.lr.ph124, %92, %.thread101
  store i64 -1, ptr %0, align 8, !tbaa !14
  %107 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %1, ptr %107, align 8, !tbaa !17
  %108 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %2, ptr %108, align 8, !tbaa !18
  call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 957, i32 noundef 101, ptr noundef null) #7
  br label %109

109:                                              ; preds = %.thread105, %.thread109, %106, %23
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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, !7, i64 152}
!6 = !{!"asn_TYPE_descriptor_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !10, i64 104, !7, i64 112, !10, i64 120, !7, i64 128, !7, i64 136, !10, i64 144, !7, i64 152}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !7, i64 32}
!12 = !{!"asn_SET_specifics_s", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !7, i64 48}
!13 = !{!12, !10, i64 40}
!14 = !{!15, !16, i64 0}
!15 = !{!"asn_enc_rval_s", !16, i64 0, !7, i64 8, !7, i64 16}
!16 = !{!"long", !8, i64 0}
!17 = !{!15, !7, i64 8}
!18 = !{!15, !7, i64 16}
!19 = !{!6, !7, i64 136}
!20 = !{!21, !10, i64 4}
!21 = !{!"asn_TYPE_tag2member_s", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!22 = !{!23, !7, i64 56}
!23 = !{!"asn_TYPE_member_s", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!24 = !{!23, !10, i64 0}
!25 = !{!23, !10, i64 8}
!26 = !{!7, !7, i64 0}
!27 = !{!23, !10, i64 4}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!23, !7, i64 24}
!31 = !{!6, !7, i64 64}
!32 = !{!16, !16, i64 0}
!33 = !{i64 0, i64 8, !26, i64 8, i64 8, !26}
!34 = distinct !{!34, !29}
!35 = distinct !{!35, !29}


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