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

; 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_dec_rval_s = type { i32, i64 }
%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_per_constraints_s = type { %struct.asn_per_constraint_s, %struct.asn_per_constraint_s, ptr, ptr }
%struct.asn_per_constraint_s = type { i32, i32, i32, i64, i64 }
%struct.ASN__PRIMITIVE_TYPE_s = type { ptr, i32 }
%struct.asn_INTEGER_specifics_s = type { ptr, ptr, i32, i32, i32, i32, i32 }

@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local { i32, i64 } @INTEGER_decode_uper(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca %struct.asn_dec_rval_s, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.asn_dec_rval_s, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.asn_TYPE_descriptor_s, ptr %26, i32 0, i32 19
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  store ptr %28, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #9
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %30, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %46, label %34

34:                                               ; preds = %5
  %35 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 16) #10
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %35, ptr %36, align 8, !tbaa !5
  store ptr %35, ptr %14, align 8, !tbaa !5
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %45, label %39

39:                                               ; preds = %34
  br label %40

40:                                               ; preds = %39
  %41 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 2, ptr %41, align 8, !tbaa !12
  %42 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %42, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 665, i32 noundef 102, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %386

43:                                               ; No predecessors!
  br label %44

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44, %34
  br label %46

46:                                               ; preds = %45, %5
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %53, label %49

49:                                               ; preds = %46
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.asn_TYPE_descriptor_s, ptr %50, i32 0, i32 16
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  store ptr %52, ptr %9, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %49, %46
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %59

56:                                               ; preds = %53
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.asn_per_constraints_s, ptr %57, i32 0, i32 0
  br label %60

59:                                               ; preds = %53
  br label %60

60:                                               ; preds = %59, %56
  %61 = phi ptr [ %58, %56 ], [ null, %59 ]
  store ptr %61, ptr %15, align 8, !tbaa !5
  %62 = load ptr, ptr %15, align 8, !tbaa !5
  %63 = icmp ne ptr %62, null
  br i1 %63, label %64, label %89

64:                                               ; preds = %60
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %65, i32 0, i32 0
  %67 = load i32, ptr %66, align 8, !tbaa !17
  %68 = and i32 %67, 4
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %89

70:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = call i32 @per_get_few_bits(ptr noundef %71, i32 noundef 1)
  store i32 %72, ptr %18, align 4, !tbaa !19
  %73 = load i32, ptr %18, align 4, !tbaa !19
  %74 = icmp slt i32 %73, 0
  br i1 %74, label %75, label %81

75:                                               ; preds = %70
  br label %76

76:                                               ; preds = %75
  %77 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 1, ptr %77, align 8, !tbaa !12
  %78 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %78, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 677, i32 noundef 100, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %86

79:                                               ; No predecessors!
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80, %70
  %82 = load i32, ptr %18, align 4, !tbaa !19
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %81
  store ptr null, ptr %15, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %84, %81
  store i32 0, ptr %17, align 4
  br label %86

86:                                               ; preds = %85, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  %87 = load i32, ptr %17, align 4
  switch i32 %87, label %386 [
    i32 0, label %88
  ]

88:                                               ; preds = %86
  br label %89

89:                                               ; preds = %88, %64, %60
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !20
  call void @free(ptr noundef %92) #9
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %93, i32 0, i32 0
  store ptr null, ptr %94, align 8, !tbaa !20
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %95, i32 0, i32 0
  store ptr null, ptr %96, align 8, !tbaa !20
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %97, i32 0, i32 1
  store i32 0, ptr %98, align 8, !tbaa !22
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %168

101:                                              ; preds = %89
  %102 = load ptr, ptr %15, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %102, i32 0, i32 0
  %104 = load i32, ptr %103, align 8, !tbaa !17
  %105 = and i32 %104, 1
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %124

107:                                              ; preds = %101
  %108 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 2) #10
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %109, i32 0, i32 0
  store ptr %108, ptr %110, align 8, !tbaa !20
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !20
  %114 = icmp ne ptr %113, null
  br i1 %114, label %121, label %115

115:                                              ; preds = %107
  br label %116

116:                                              ; preds = %115
  %117 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 2, ptr %117, align 8, !tbaa !12
  %118 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %118, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 691, i32 noundef 102, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %386

119:                                              ; No predecessors!
  br label %120

120:                                              ; preds = %119
  br label %121

121:                                              ; preds = %120, %107
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %122, i32 0, i32 1
  store i32 1, ptr %123, align 8, !tbaa !22
  br label %167

124:                                              ; preds = %101
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 8, !tbaa !17
  %128 = and i32 %127, 2
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %166

130:                                              ; preds = %124
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %131, i32 0, i32 1
  %133 = load i32, ptr %132, align 4, !tbaa !23
  %134 = icmp sge i32 %133, 0
  br i1 %134, label %135, label %166

135:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %136 = load ptr, ptr %15, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %136, i32 0, i32 1
  %138 = load i32, ptr %137, align 4, !tbaa !23
  %139 = add nsw i32 %138, 7
  %140 = ashr i32 %139, 3
  %141 = sext i32 %140 to i64
  store i64 %141, ptr %19, align 8, !tbaa !24
  %142 = load i64, ptr %19, align 8, !tbaa !24
  %143 = add i64 1, %142
  %144 = add i64 %143, 1
  %145 = call noalias ptr @malloc(i64 noundef %144) #11
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %146, i32 0, i32 0
  store ptr %145, ptr %147, align 8, !tbaa !20
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %148, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8, !tbaa !20
  %151 = icmp ne ptr %150, null
  br i1 %151, label %158, label %152

152:                                              ; preds = %135
  br label %153

153:                                              ; preds = %152
  %154 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 2, ptr %154, align 8, !tbaa !12
  %155 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %155, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 698, i32 noundef 102, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %163

156:                                              ; No predecessors!
  br label %157

157:                                              ; preds = %156
  br label %158

158:                                              ; preds = %157, %135
  %159 = load i64, ptr %19, align 8, !tbaa !24
  %160 = trunc i64 %159 to i32
  %161 = load ptr, ptr %14, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %161, i32 0, i32 1
  store i32 %160, ptr %162, align 8, !tbaa !22
  store i32 0, ptr %17, align 4
  br label %163

163:                                              ; preds = %158, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  %164 = load i32, ptr %17, align 4
  switch i32 %164, label %386 [
    i32 0, label %165
  ]

165:                                              ; preds = %163
  br label %166

166:                                              ; preds = %165, %130, %124
  br label %167

167:                                              ; preds = %166, %121
  br label %168

168:                                              ; preds = %167, %89
  %169 = load ptr, ptr %15, align 8, !tbaa !5
  %170 = icmp ne ptr %169, null
  br i1 %170, label %171, label %269

171:                                              ; preds = %168
  %172 = load ptr, ptr %15, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %172, i32 0, i32 0
  %174 = load i32, ptr %173, align 8, !tbaa !17
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %269

176:                                              ; preds = %171
  %177 = load ptr, ptr %15, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %177, i32 0, i32 1
  %179 = load i32, ptr %178, align 4, !tbaa !23
  %180 = icmp sge i32 %179, 0
  br i1 %180, label %181, label %268

181:                                              ; preds = %176
  %182 = load ptr, ptr %15, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %182, i32 0, i32 1
  %184 = load i32, ptr %183, align 4, !tbaa !23
  %185 = sext i32 %184 to i64
  %186 = icmp ugt i64 %185, 64
  br i1 %186, label %187, label %193

187:                                              ; preds = %181
  br label %188

188:                                              ; preds = %187
  %189 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 2, ptr %189, align 8, !tbaa !12
  %190 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %190, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 710, i32 noundef 102, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %386

191:                                              ; No predecessors!
  br label %192

192:                                              ; preds = %191
  br label %193

193:                                              ; preds = %192, %181
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  %195 = icmp ne ptr %194, null
  br i1 %195, label %196, label %234

196:                                              ; preds = %193
  %197 = load ptr, ptr %12, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.asn_INTEGER_specifics_s, ptr %197, i32 0, i32 6
  %199 = load i32, ptr %198, align 8, !tbaa !25
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %234

201:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = load ptr, ptr %15, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 4, !tbaa !23
  %206 = call i32 @uper_get_constrained_whole_number(ptr noundef %202, ptr noundef %20, i32 noundef %205)
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %214

208:                                              ; preds = %201
  br label %209

209:                                              ; preds = %208
  %210 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 1, ptr %210, align 8, !tbaa !12
  %211 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %211, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 717, i32 noundef 100, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %231

212:                                              ; No predecessors!
  br label %213

213:                                              ; preds = %212
  br label %214

214:                                              ; preds = %213, %201
  %215 = load ptr, ptr %15, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %215, i32 0, i32 3
  %217 = load i64, ptr %216, align 8, !tbaa !27
  %218 = load i64, ptr %20, align 8, !tbaa !24
  %219 = add i64 %218, %217
  store i64 %219, ptr %20, align 8, !tbaa !24
  %220 = load ptr, ptr %14, align 8, !tbaa !5
  %221 = load i64, ptr %20, align 8, !tbaa !24
  %222 = call i32 @asn_ulong2INTEGER(ptr noundef %220, i64 noundef %221)
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %230

224:                                              ; preds = %214
  br label %225

225:                                              ; preds = %224
  %226 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 2, ptr %226, align 8, !tbaa !12
  %227 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %227, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 723, i32 noundef 102, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %231

228:                                              ; No predecessors!
  br label %229

229:                                              ; preds = %228
  br label %230

230:                                              ; preds = %229, %214
  store i32 0, ptr %17, align 4
  br label %231

231:                                              ; preds = %230, %225, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  %232 = load i32, ptr %17, align 4
  switch i32 %232, label %386 [
    i32 0, label %233
  ]

233:                                              ; preds = %231
  br label %267

234:                                              ; preds = %196, %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %235 = load ptr, ptr %11, align 8, !tbaa !5
  %236 = load ptr, ptr %15, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %236, i32 0, i32 1
  %238 = load i32, ptr %237, align 4, !tbaa !23
  %239 = call i32 @uper_get_constrained_whole_number(ptr noundef %235, ptr noundef %21, i32 noundef %238)
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %241, label %247

241:                                              ; preds = %234
  br label %242

242:                                              ; preds = %241
  %243 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 1, ptr %243, align 8, !tbaa !12
  %244 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %244, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 729, i32 noundef 100, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %264

245:                                              ; No predecessors!
  br label %246

246:                                              ; preds = %245
  br label %247

247:                                              ; preds = %246, %234
  %248 = load ptr, ptr %15, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %248, i32 0, i32 3
  %250 = load i64, ptr %249, align 8, !tbaa !27
  %251 = load i64, ptr %21, align 8, !tbaa !24
  %252 = add i64 %251, %250
  store i64 %252, ptr %21, align 8, !tbaa !24
  %253 = load ptr, ptr %14, align 8, !tbaa !5
  %254 = load i64, ptr %21, align 8, !tbaa !24
  %255 = call i32 @asn_long2INTEGER(ptr noundef %253, i64 noundef %254)
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %257, label %263

257:                                              ; preds = %247
  br label %258

258:                                              ; preds = %257
  %259 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 2, ptr %259, align 8, !tbaa !12
  %260 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %260, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 735, i32 noundef 102, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %264

261:                                              ; No predecessors!
  br label %262

262:                                              ; preds = %261
  br label %263

263:                                              ; preds = %262, %247
  store i32 0, ptr %17, align 4
  br label %264

264:                                              ; preds = %263, %258, %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  %265 = load i32, ptr %17, align 4
  switch i32 %265, label %386 [
    i32 0, label %266
  ]

266:                                              ; preds = %264
  br label %267

267:                                              ; preds = %266, %233
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !28
  store i32 1, ptr %17, align 4
  br label %386

268:                                              ; preds = %176
  br label %270

269:                                              ; preds = %171, %168
  br label %270

270:                                              ; preds = %269, %268
  br label %271

271:                                              ; preds = %337, %270
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  %272 = load ptr, ptr %11, align 8, !tbaa !5
  %273 = call i64 @uper_get_length(ptr noundef %272, i32 noundef -1, ptr noundef %16)
  store i64 %273, ptr %22, align 8, !tbaa !24
  %274 = load i64, ptr %22, align 8, !tbaa !24
  %275 = icmp slt i64 %274, 0
  br i1 %275, label %276, label %282

276:                                              ; preds = %271
  br label %277

277:                                              ; preds = %276
  %278 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 1, ptr %278, align 8, !tbaa !12
  %279 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %279, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 753, i32 noundef 100, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %334

280:                                              ; No predecessors!
  br label %281

281:                                              ; preds = %280
  br label %282

282:                                              ; preds = %281, %271
  %283 = load ptr, ptr %14, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %283, i32 0, i32 0
  %285 = load ptr, ptr %284, align 8, !tbaa !20
  %286 = load ptr, ptr %14, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %286, i32 0, i32 1
  %288 = load i32, ptr %287, align 8, !tbaa !22
  %289 = sext i32 %288 to i64
  %290 = load i64, ptr %22, align 8, !tbaa !24
  %291 = add nsw i64 %289, %290
  %292 = add nsw i64 %291, 1
  %293 = call ptr @realloc(ptr noundef %285, i64 noundef %292) #12
  store ptr %293, ptr %23, align 8, !tbaa !5
  %294 = load ptr, ptr %23, align 8, !tbaa !5
  %295 = icmp ne ptr %294, null
  br i1 %295, label %302, label %296

296:                                              ; preds = %282
  br label %297

297:                                              ; preds = %296
  %298 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 2, ptr %298, align 8, !tbaa !12
  %299 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %299, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 758, i32 noundef 102, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %334

300:                                              ; No predecessors!
  br label %301

301:                                              ; preds = %300
  br label %302

302:                                              ; preds = %301, %282
  %303 = load ptr, ptr %23, align 8, !tbaa !5
  %304 = load ptr, ptr %14, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %304, i32 0, i32 0
  store ptr %303, ptr %305, align 8, !tbaa !20
  %306 = load ptr, ptr %11, align 8, !tbaa !5
  %307 = load ptr, ptr %14, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %307, i32 0, i32 0
  %309 = load ptr, ptr %308, align 8, !tbaa !20
  %310 = load ptr, ptr %14, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %310, i32 0, i32 1
  %312 = load i32, ptr %311, align 8, !tbaa !22
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds i8, ptr %309, i64 %313
  %315 = load i64, ptr %22, align 8, !tbaa !24
  %316 = mul nsw i64 8, %315
  %317 = trunc i64 %316 to i32
  %318 = call i32 @per_get_many_bits(ptr noundef %306, ptr noundef %314, i32 noundef 0, i32 noundef %317)
  store i32 %318, ptr %24, align 4, !tbaa !19
  %319 = load i32, ptr %24, align 4, !tbaa !19
  %320 = icmp slt i32 %319, 0
  br i1 %320, label %321, label %327

321:                                              ; preds = %302
  br label %322

322:                                              ; preds = %321
  %323 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 1, ptr %323, align 8, !tbaa !12
  %324 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %324, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 764, i32 noundef 100, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %334

325:                                              ; No predecessors!
  br label %326

326:                                              ; preds = %325
  br label %327

327:                                              ; preds = %326, %302
  %328 = load i64, ptr %22, align 8, !tbaa !24
  %329 = trunc i64 %328 to i32
  %330 = load ptr, ptr %14, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %330, i32 0, i32 1
  %332 = load i32, ptr %331, align 8, !tbaa !22
  %333 = add nsw i32 %332, %329
  store i32 %333, ptr %331, align 8, !tbaa !22
  store i32 0, ptr %17, align 4
  br label %334

334:                                              ; preds = %327, %322, %297, %277
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  %335 = load i32, ptr %17, align 4
  switch i32 %335, label %386 [
    i32 0, label %336
  ]

336:                                              ; preds = %334
  br label %337

337:                                              ; preds = %336
  %338 = load i32, ptr %16, align 4, !tbaa !19
  %339 = icmp ne i32 %338, 0
  br i1 %339, label %271, label %340, !llvm.loop !29

340:                                              ; preds = %337
  %341 = load ptr, ptr %14, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %341, i32 0, i32 0
  %343 = load ptr, ptr %342, align 8, !tbaa !20
  %344 = load ptr, ptr %14, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.ASN__PRIMITIVE_TYPE_s, ptr %344, i32 0, i32 1
  %346 = load i32, ptr %345, align 8, !tbaa !22
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds i8, ptr %343, i64 %347
  store i8 0, ptr %348, align 1, !tbaa !31
  %349 = load ptr, ptr %15, align 8, !tbaa !5
  %350 = icmp ne ptr %349, null
  br i1 %350, label %351, label %385

351:                                              ; preds = %340
  %352 = load ptr, ptr %15, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %352, i32 0, i32 3
  %354 = load i64, ptr %353, align 8, !tbaa !27
  %355 = icmp ne i64 %354, 0
  br i1 %355, label %356, label %385

356:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %357 = load ptr, ptr %14, align 8, !tbaa !5
  %358 = call i32 @asn_INTEGER2long(ptr noundef %357, ptr noundef %25)
  %359 = icmp ne i32 %358, 0
  br i1 %359, label %360, label %366

360:                                              ; preds = %356
  br label %361

361:                                              ; preds = %360
  %362 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 2, ptr %362, align 8, !tbaa !12
  %363 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %363, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 777, i32 noundef 102, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %382

364:                                              ; No predecessors!
  br label %365

365:                                              ; preds = %364
  br label %366

366:                                              ; preds = %365, %356
  %367 = load ptr, ptr %14, align 8, !tbaa !5
  %368 = load i64, ptr %25, align 8, !tbaa !24
  %369 = load ptr, ptr %15, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.asn_per_constraint_s, ptr %369, i32 0, i32 3
  %371 = load i64, ptr %370, align 8, !tbaa !27
  %372 = add nsw i64 %368, %371
  %373 = call i32 @asn_long2INTEGER(ptr noundef %367, i64 noundef %372)
  %374 = icmp ne i32 %373, 0
  br i1 %374, label %375, label %381

375:                                              ; preds = %366
  br label %376

376:                                              ; preds = %375
  %377 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 0
  store i32 2, ptr %377, align 8, !tbaa !12
  %378 = getelementptr inbounds %struct.asn_dec_rval_s, ptr %6, i32 0, i32 1
  store i64 0, ptr %378, align 8, !tbaa !15
  call void @stacktrace_create(ptr noundef @.str.2, i64 noundef 780, i32 noundef 102, ptr noundef null)
  store i32 1, ptr %17, align 4
  br label %382

379:                                              ; No predecessors!
  br label %380

380:                                              ; preds = %379
  br label %381

381:                                              ; preds = %380, %366
  store i32 0, ptr %17, align 4
  br label %382

382:                                              ; preds = %381, %376, %361
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  %383 = load i32, ptr %17, align 4
  switch i32 %383, label %386 [
    i32 0, label %384
  ]

384:                                              ; preds = %382
  br label %385

385:                                              ; preds = %384, %351, %340
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !28
  store i32 1, ptr %17, align 4
  br label %386

386:                                              ; preds = %385, %382, %334, %267, %264, %231, %188, %163, %116, %86, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  %387 = load { i32, i64 }, ptr %6, align 8
  ret { i32, i64 } %387
}

; 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

declare void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #2

; 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) #3

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #5

declare i32 @per_get_few_bits(ptr noundef, i32 noundef) #2

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #7

declare i32 @uper_get_constrained_whole_number(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @asn_ulong2INTEGER(ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @asn_long2INTEGER(ptr noundef, i64 noundef) #0

declare i64 @uper_get_length(ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #8

declare i32 @per_get_many_bits(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @asn_INTEGER2long(ptr noundef, ptr noundef) #0

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind allocsize(0,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 #6 = { 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 #7 = { nounwind allocsize(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 #8 = { nounwind allocsize(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 #9 = { nounwind }
attributes #10 = { nounwind allocsize(0,1) }
attributes #11 = { nounwind allocsize(0) }
attributes #12 = { nounwind allocsize(1) }

!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 152}
!10 = !{!"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, !11, i64 104, !6, i64 112, !11, i64 120, !6, i64 128, !6, i64 136, !11, i64 144, !6, i64 152}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"asn_dec_rval_s", !11, i64 0, !14, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!13, !14, i64 8}
!16 = !{!10, !6, i64 128}
!17 = !{!18, !11, i64 0}
!18 = !{!"asn_per_constraint_s", !11, i64 0, !11, i64 4, !11, i64 8, !14, i64 16, !14, i64 24}
!19 = !{!11, !11, i64 0}
!20 = !{!21, !6, i64 0}
!21 = !{!"ASN__PRIMITIVE_TYPE_s", !6, i64 0, !11, i64 8}
!22 = !{!21, !11, i64 8}
!23 = !{!18, !11, i64 4}
!24 = !{!14, !14, i64 0}
!25 = !{!26, !11, i64 32}
!26 = !{!"asn_INTEGER_specifics_s", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!27 = !{!18, !14, i64 16}
!28 = !{i64 0, i64 4, !19, i64 8, i64 8, !24}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!7, !7, i64 0}


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

@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local { i32, i64 } @INTEGER_decode_uper(ptr nocapture noundef readnone %0, ptr nocapture noundef readonly %1, ptr noundef readonly %2, ptr nocapture noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = getelementptr inbounds i8, ptr %1, i64 152
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %.not = icmp eq ptr %12, null
  br i1 %.not, label %13, label %16

13:                                               ; preds = %5
  %14 = tail call noalias dereferenceable_or_null(16) ptr @calloc(i64 noundef 1, i64 noundef 16) #8
  store ptr %14, ptr %3, align 8, !tbaa !11
  %.not102 = icmp eq ptr %14, null
  br i1 %.not102, label %15, label %16

15:                                               ; preds = %13
  tail call void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 665, i32 noundef 102, ptr noundef null) #7
  br label %.thread144

16:                                               ; preds = %13, %5
  %.088 = phi ptr [ %12, %5 ], [ %14, %13 ]
  %.not103 = icmp eq ptr %2, null
  br i1 %.not103, label %17, label %.thread

17:                                               ; preds = %16
  %18 = getelementptr inbounds i8, ptr %1, i64 128
  %19 = load ptr, ptr %18, align 8, !tbaa !12
  %.not104 = icmp eq ptr %19, null
  br i1 %.not104, label %select.unfold, label %.thread

.thread:                                          ; preds = %16, %17
  %.0126 = phi ptr [ %19, %17 ], [ %2, %16 ]
  %20 = load i32, ptr %.0126, align 8, !tbaa !13
  %21 = and i32 %20, 4
  %.not105 = icmp eq i32 %21, 0
  br i1 %.not105, label %select.unfold, label %22

22:                                               ; preds = %.thread
  %23 = tail call i32 @per_get_few_bits(ptr noundef %4, i32 noundef 1) #7
  %24 = icmp sgt i32 %23, -1
  br i1 %24, label %.thread127, label %25

.thread127:                                       ; preds = %22
  %.not106 = icmp eq i32 %23, 0
  %spec.select = select i1 %.not106, ptr %.0126, ptr null
  br label %select.unfold

25:                                               ; preds = %22
  tail call void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 677, i32 noundef 100, ptr noundef null) #7
  br label %.thread144

select.unfold:                                    ; preds = %.thread127, %.thread, %17
  %.292 = phi ptr [ %.0126, %.thread ], [ null, %17 ], [ %spec.select, %.thread127 ]
  %26 = load ptr, ptr %.088, align 8, !tbaa !16
  tail call void @free(ptr noundef %26) #7
  store ptr null, ptr %.088, align 8, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %.088, i64 8
  store i32 0, ptr %27, align 8, !tbaa !18
  %.not107 = icmp eq ptr %.292, null
  br i1 %.not107, label %.preheader, label %28

28:                                               ; preds = %select.unfold
  %29 = load i32, ptr %.292, align 8, !tbaa !13
  %30 = and i32 %29, 1
  %.not108 = icmp eq i32 %30, 0
  br i1 %.not108, label %34, label %31

31:                                               ; preds = %28
  %32 = tail call noalias dereferenceable_or_null(2) ptr @calloc(i64 noundef 1, i64 noundef 2) #8
  store ptr %32, ptr %.088, align 8, !tbaa !16
  %.not111 = icmp eq ptr %32, null
  br i1 %.not111, label %33, label %.thread152.sink.split

33:                                               ; preds = %31
  tail call void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 691, i32 noundef 102, ptr noundef null) #7
  br label %.thread144

34:                                               ; preds = %28
  %35 = and i32 %29, 2
  %.not109 = icmp eq i32 %35, 0
  br i1 %.not109, label %45, label %36

36:                                               ; preds = %34
  %37 = getelementptr inbounds i8, ptr %.292, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !19
  %39 = icmp sgt i32 %38, -1
  br i1 %39, label %40, label %.thread152

40:                                               ; preds = %36
  %41 = add nuw nsw i32 %38, 7
  %42 = lshr i32 %41, 3
  %narrow = add nuw nsw i32 %42, 2
  %43 = zext nneg i32 %narrow to i64
  %44 = tail call noalias ptr @malloc(i64 noundef %43) #9
  store ptr %44, ptr %.088, align 8, !tbaa !16
  %.not110.not = icmp eq ptr %44, null
  br i1 %.not110.not, label %.thread129, label %.thread152.sink.split

.thread129:                                       ; preds = %40
  tail call void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 698, i32 noundef 102, ptr noundef null) #7
  br label %.thread144

45:                                               ; preds = %34
  %.not112 = icmp eq i32 %29, 0
  br i1 %.not112, label %.preheader, label %.thread152

.thread152.sink.split:                            ; preds = %40, %31
  %.sink = phi i32 [ 1, %31 ], [ %42, %40 ]
  store i32 %.sink, ptr %27, align 8, !tbaa !18
  br label %.thread152

.thread152:                                       ; preds = %.thread152.sink.split, %36, %45
  %46 = getelementptr inbounds i8, ptr %.292, i64 4
  %47 = load i32, ptr %46, align 4, !tbaa !19
  %48 = icmp sgt i32 %47, -1
  br i1 %48, label %49, label %.preheader

.preheader:                                       ; preds = %select.unfold, %45, %.thread152
  br label %78

49:                                               ; preds = %.thread152
  %50 = icmp ugt i32 %47, 64
  br i1 %50, label %51, label %52

51:                                               ; preds = %49
  tail call void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 710, i32 noundef 102, ptr noundef null) #7
  br label %.thread144

52:                                               ; preds = %49
  %.not118 = icmp eq ptr %11, null
  br i1 %.not118, label %67, label %53

53:                                               ; preds = %52
  %54 = getelementptr inbounds i8, ptr %11, i64 32
  %55 = load i32, ptr %54, align 8, !tbaa !20
  %.not119 = icmp eq i32 %55, 0
  br i1 %.not119, label %67, label %56

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %57 = call i32 @uper_get_constrained_whole_number(ptr noundef %4, ptr noundef nonnull %7, i32 noundef %47) #7
  %.not122 = icmp eq i32 %57, 0
  br i1 %.not122, label %59, label %58

58:                                               ; preds = %56
  call void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 717, i32 noundef 100, ptr noundef null) #7
  br label %.thread136

59:                                               ; preds = %56
  %60 = getelementptr inbounds i8, ptr %.292, i64 16
  %61 = load i64, ptr %60, align 8, !tbaa !22
  %62 = load i64, ptr %7, align 8, !tbaa !23
  %63 = add i64 %62, %61
  store i64 %63, ptr %7, align 8, !tbaa !23
  %64 = call i32 @asn_ulong2INTEGER(ptr noundef nonnull %.088, i64 noundef %63)
  %.not123 = icmp eq i32 %64, 0
  br i1 %.not123, label %66, label %65

65:                                               ; preds = %59
  call void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 723, i32 noundef 102, ptr noundef null) #7
  br label %.thread136

.thread136:                                       ; preds = %58, %65
  %.sroa.0.4.ph = phi i32 [ 2, %65 ], [ 1, %58 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %.thread144

66:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %.thread144

67:                                               ; preds = %53, %52
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %68 = call i32 @uper_get_constrained_whole_number(ptr noundef %4, ptr noundef nonnull %8, i32 noundef %47) #7
  %.not120 = icmp eq i32 %68, 0
  br i1 %.not120, label %70, label %69

69:                                               ; preds = %67
  call void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 729, i32 noundef 100, ptr noundef null) #7
  br label %.thread140

70:                                               ; preds = %67
  %71 = getelementptr inbounds i8, ptr %.292, i64 16
  %72 = load i64, ptr %71, align 8, !tbaa !22
  %73 = load i64, ptr %8, align 8, !tbaa !23
  %74 = add i64 %73, %72
  store i64 %74, ptr %8, align 8, !tbaa !23
  %75 = call i32 @asn_long2INTEGER(ptr noundef nonnull %.088, i64 noundef %74)
  %.not121 = icmp eq i32 %75, 0
  br i1 %.not121, label %77, label %76

76:                                               ; preds = %70
  call void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 735, i32 noundef 102, ptr noundef null) #7
  br label %.thread140

.thread140:                                       ; preds = %69, %76
  %.sroa.0.5.ph = phi i32 [ 2, %76 ], [ 1, %69 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %.thread144

77:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %.thread144

78:                                               ; preds = %.preheader, %98
  %79 = call i64 @uper_get_length(ptr noundef %4, i32 noundef -1, ptr noundef nonnull %6) #7
  %80 = icmp slt i64 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  call void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 753, i32 noundef 100, ptr noundef null) #7
  br label %.thread144

82:                                               ; preds = %78
  %83 = load ptr, ptr %.088, align 8, !tbaa !16
  %84 = load i32, ptr %27, align 8, !tbaa !18
  %85 = sext i32 %84 to i64
  %86 = add nuw i64 %79, 1
  %87 = add i64 %86, %85
  %88 = call ptr @realloc(ptr noundef %83, i64 noundef %87) #10
  %.not113 = icmp eq ptr %88, null
  br i1 %.not113, label %89, label %90

89:                                               ; preds = %82
  call void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 758, i32 noundef 102, ptr noundef null) #7
  br label %.thread144

90:                                               ; preds = %82
  store ptr %88, ptr %.088, align 8, !tbaa !16
  %91 = load i32, ptr %27, align 8, !tbaa !18
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %88, i64 %92
  %.tr = trunc i64 %79 to i32
  %94 = shl i32 %.tr, 3
  %95 = call i32 @per_get_many_bits(ptr noundef %4, ptr noundef nonnull %93, i32 noundef 0, i32 noundef %94) #7
  %96 = icmp slt i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %90
  call void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef 764, i32 noundef 100, ptr noundef null) #7
  br label %.thread144

98:                                               ; preds = %90
  %99 = load i32, ptr %27, align 8, !tbaa !18
  %100 = add nsw i32 %99, %.tr
  store i32 %100, ptr %27, align 8, !tbaa !18
  %101 = load i32, ptr %6, align 4, !tbaa !24
  %.not114 = icmp eq i32 %101, 0
  br i1 %.not114, label %102, label %78, !llvm.loop !25

102:                                              ; preds = %98
  %103 = load ptr, ptr %.088, align 8, !tbaa !16
  %104 = sext i32 %100 to i64
  %105 = getelementptr inbounds i8, ptr %103, i64 %104
  store i8 0, ptr %105, align 1, !tbaa !27
  br i1 %.not107, label %.thread144, label %106

106:                                              ; preds = %102
  %107 = getelementptr inbounds i8, ptr %.292, i64 16
  %108 = load i64, ptr %107, align 8, !tbaa !22
  %.not115 = icmp eq i64 %108, 0
  br i1 %.not115, label %.thread144, label %109

109:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %110 = call i32 @asn_INTEGER2long(ptr noundef nonnull %.088, ptr noundef nonnull %9)
  %.not116 = icmp eq i32 %110, 0
  br i1 %.not116, label %111, label %.thread148

111:                                              ; preds = %109
  %112 = load i64, ptr %9, align 8, !tbaa !23
  %113 = load i64, ptr %107, align 8, !tbaa !22
  %114 = add nsw i64 %113, %112
  %115 = call i32 @asn_long2INTEGER(ptr noundef nonnull %.088, i64 noundef %114)
  %.not117 = icmp eq i32 %115, 0
  br i1 %.not117, label %116, label %.thread148

.thread148:                                       ; preds = %111, %109
  %.sink154 = phi i64 [ 777, %109 ], [ 780, %111 ]
  call void @stacktrace_create(ptr noundef nonnull @.str.2, i64 noundef %.sink154, i32 noundef 102, ptr noundef null) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %.thread144

116:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %.thread144

.thread144:                                       ; preds = %89, %97, %81, %102, %106, %116, %.thread148, %66, %77, %.thread140, %.thread136, %.thread129, %25, %51, %33, %15
  %.sroa.0.9 = phi i32 [ 2, %51 ], [ 2, %33 ], [ 1, %25 ], [ 2, %15 ], [ 2, %.thread129 ], [ %.sroa.0.4.ph, %.thread136 ], [ %.sroa.0.5.ph, %.thread140 ], [ 0, %77 ], [ 0, %66 ], [ 2, %.thread148 ], [ 0, %116 ], [ 0, %106 ], [ 0, %102 ], [ 2, %89 ], [ 1, %97 ], [ 1, %81 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  %.fca.0.insert = insertvalue { i32, i64 } poison, i32 %.sroa.0.9, 0
  %.fca.1.insert = insertvalue { i32, i64 } %.fca.0.insert, i64 0, 1
  ret { i32, i64 } %.fca.1.insert
}

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

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

declare void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #3

declare i32 @per_get_few_bits(ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

declare i32 @uper_get_constrained_whole_number(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @asn_ulong2INTEGER(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @asn_long2INTEGER(ptr noundef, i64 noundef) local_unnamed_addr #0

declare i64 @uper_get_length(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #6

declare i32 @per_get_many_bits(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @asn_INTEGER2long(ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(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 #4 = { 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 #5 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 #6 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0,1) }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { nounwind allocsize(1) }

!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 = !{!7, !7, i64 0}
!12 = !{!6, !7, i64 128}
!13 = !{!14, !10, i64 0}
!14 = !{!"asn_per_constraint_s", !10, i64 0, !10, i64 4, !10, i64 8, !15, i64 16, !15, i64 24}
!15 = !{!"long", !8, i64 0}
!16 = !{!17, !7, i64 0}
!17 = !{!"ASN__PRIMITIVE_TYPE_s", !7, i64 0, !10, i64 8}
!18 = !{!17, !10, i64 8}
!19 = !{!14, !10, i64 4}
!20 = !{!21, !10, i64 32}
!21 = !{!"asn_INTEGER_specifics_s", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!22 = !{!14, !15, i64 16}
!23 = !{!15, !15, i64 0}
!24 = !{!10, !10, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!8, !8, i64 0}


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