; LLVM IR from openxrlab/xrsfm :: 3rdparty/apriltag/common (pam)

; 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.pam = type { i32, i32, i32, i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__.pam_create_from_file = external hidden unnamed_addr constant [42 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @pam_create_from_file(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca [1024 x i8], align 16
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = call noalias ptr @fopen(ptr noundef %13, ptr noundef @.str)
  store ptr %14, ptr %4, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %20

17:                                               ; preds = %1
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %18)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %279

20:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %21 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 32) #10
  store ptr %21, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.pam, ptr %22, i32 0, i32 1
  store i32 -1, ptr %23, align 4, !tbaa !9
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.pam, ptr %24, i32 0, i32 2
  store i32 -1, ptr %25, align 8, !tbaa !12
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.pam, ptr %26, i32 0, i32 3
  store i32 -1, ptr %27, align 4, !tbaa !13
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.pam, ptr %28, i32 0, i32 4
  store i32 -1, ptr %29, align 8, !tbaa !14
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.pam, ptr %30, i32 0, i32 0
  store i32 -1, ptr %31, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 0, ptr %7, align 4, !tbaa !16
  br label %32

32:                                               ; preds = %198, %196, %20
  br label %33

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 1024, ptr %8) #9
  %34 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = call ptr @fgets(ptr noundef %34, i32 noundef 1024, ptr noundef %35)
  %37 = icmp ne ptr %36, null
  br i1 %37, label %40, label %38

38:                                               ; preds = %33
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 4, ptr %5, align 4
  br label %196

40:                                               ; preds = %33
  %41 = load i32, ptr %7, align 4, !tbaa !16
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %7, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %43 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  store ptr %43, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  store ptr null, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %45 = load i8, ptr %44, align 16, !tbaa !17
  %46 = sext i8 %45 to i32
  %47 = icmp eq i32 %46, 35
  br i1 %47, label %48, label %49

48:                                               ; preds = %40
  store i32 2, ptr %5, align 4
  br label %195

49:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %50 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %51 = call i64 @strlen(ptr noundef %50) #11
  store i64 %51, ptr %11, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store i32 0, ptr %12, align 4, !tbaa !16
  br label %52

52:                                               ; preds = %92, %49
  %53 = load i32, ptr %12, align 4, !tbaa !16
  %54 = sext i32 %53 to i64
  %55 = load i64, ptr %11, align 8, !tbaa !18
  %56 = icmp ult i64 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %52
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %95

58:                                               ; preds = %52
  %59 = load i32, ptr %12, align 4, !tbaa !16
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 %60
  %62 = load i8, ptr %61, align 1, !tbaa !17
  %63 = sext i8 %62 to i32
  %64 = icmp eq i32 %63, 32
  br i1 %64, label %65, label %80

65:                                               ; preds = %58
  %66 = load i32, ptr %12, align 4, !tbaa !16
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 %67
  store i8 0, ptr %68, align 1, !tbaa !17
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %75

71:                                               ; preds = %65
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = load i32, ptr %7, align 4, !tbaa !16
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %72, i32 noundef %73)
  br label %75

75:                                               ; preds = %71, %65
  %76 = load i32, ptr %12, align 4, !tbaa !16
  %77 = add nsw i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 %78
  store ptr %79, ptr %10, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %75, %58
  %81 = load i32, ptr %12, align 4, !tbaa !16
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 %82
  %84 = load i8, ptr %83, align 1, !tbaa !17
  %85 = sext i8 %84 to i32
  %86 = icmp eq i32 %85, 10
  br i1 %86, label %87, label %91

87:                                               ; preds = %80
  %88 = load i32, ptr %12, align 4, !tbaa !16
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 %89
  store i8 0, ptr %90, align 1, !tbaa !17
  br label %91

91:                                               ; preds = %87, %80
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %12, align 4, !tbaa !16
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %12, align 4, !tbaa !16
  br label %52, !llvm.loop !20

95:                                               ; preds = %57
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = call i32 @strcmp(ptr noundef %96, ptr noundef @.str.4) #11
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  store i32 2, ptr %5, align 4
  br label %194

100:                                              ; preds = %95
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = call i32 @strcmp(ptr noundef %101, ptr noundef @.str.5) #11
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 3, ptr %5, align 4
  br label %194

105:                                              ; preds = %100
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = call i32 @strcmp(ptr noundef %106, ptr noundef @.str.6) #11
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %117, label %109

109:                                              ; preds = %105
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = icmp ne ptr %110, null
  br i1 %111, label %112, label %117

112:                                              ; preds = %109
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = call i32 @atoi(ptr noundef %113) #11
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.pam, ptr %115, i32 0, i32 1
  store i32 %114, ptr %116, align 4, !tbaa !9
  store i32 2, ptr %5, align 4
  br label %194

117:                                              ; preds = %109, %105
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = call i32 @strcmp(ptr noundef %118, ptr noundef @.str.7) #11
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %129, label %121

121:                                              ; preds = %117
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = icmp ne ptr %122, null
  br i1 %123, label %124, label %129

124:                                              ; preds = %121
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = call i32 @atoi(ptr noundef %125) #11
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.pam, ptr %127, i32 0, i32 2
  store i32 %126, ptr %128, align 8, !tbaa !12
  store i32 2, ptr %5, align 4
  br label %194

129:                                              ; preds = %121, %117
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = call i32 @strcmp(ptr noundef %130, ptr noundef @.str.8) #11
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %141, label %133

133:                                              ; preds = %129
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = icmp ne ptr %134, null
  br i1 %135, label %136, label %141

136:                                              ; preds = %133
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = call i32 @atoi(ptr noundef %137) #11
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.pam, ptr %139, i32 0, i32 3
  store i32 %138, ptr %140, align 4, !tbaa !13
  store i32 2, ptr %5, align 4
  br label %194

141:                                              ; preds = %133, %129
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = call i32 @strcmp(ptr noundef %142, ptr noundef @.str.9) #11
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %153, label %145

145:                                              ; preds = %141
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = icmp ne ptr %146, null
  br i1 %147, label %148, label %153

148:                                              ; preds = %145
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = call i32 @atoi(ptr noundef %149) #11
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.pam, ptr %151, i32 0, i32 4
  store i32 %150, ptr %152, align 8, !tbaa !14
  store i32 2, ptr %5, align 4
  br label %194

153:                                              ; preds = %145, %141
  %154 = load ptr, ptr %9, align 8, !tbaa !5
  %155 = call i32 @strcmp(ptr noundef %154, ptr noundef @.str.10) #11
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %191, label %157

157:                                              ; preds = %153
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = icmp ne ptr %158, null
  br i1 %159, label %160, label %191

160:                                              ; preds = %157
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = call i32 @strcmp(ptr noundef %161, ptr noundef @.str.11) #11
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %167, label %164

164:                                              ; preds = %160
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.pam, ptr %165, i32 0, i32 0
  store i32 5000, ptr %166, align 8, !tbaa !15
  store i32 2, ptr %5, align 4
  br label %194

167:                                              ; preds = %160
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = call i32 @strcmp(ptr noundef %168, ptr noundef @.str.12) #11
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %174, label %171

171:                                              ; preds = %167
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.pam, ptr %172, i32 0, i32 0
  store i32 5001, ptr %173, align 8, !tbaa !15
  store i32 2, ptr %5, align 4
  br label %194

174:                                              ; preds = %167
  %175 = load ptr, ptr %10, align 8, !tbaa !5
  %176 = call i32 @strcmp(ptr noundef %175, ptr noundef @.str.13) #11
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %181, label %178

178:                                              ; preds = %174
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.pam, ptr %179, i32 0, i32 0
  store i32 5002, ptr %180, align 8, !tbaa !15
  store i32 2, ptr %5, align 4
  br label %194

181:                                              ; preds = %174
  %182 = load ptr, ptr %10, align 8, !tbaa !5
  %183 = call i32 @strcmp(ptr noundef %182, ptr noundef @.str.14) #11
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %188, label %185

185:                                              ; preds = %181
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.pam, ptr %186, i32 0, i32 0
  store i32 5003, ptr %187, align 8, !tbaa !15
  store i32 2, ptr %5, align 4
  br label %194

188:                                              ; preds = %181
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %189)
  store i32 2, ptr %5, align 4
  br label %194

191:                                              ; preds = %157, %153
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, ptr noundef %192)
  store i32 0, ptr %5, align 4
  br label %194

194:                                              ; preds = %191, %188, %185, %178, %171, %164, %148, %136, %124, %112, %104, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %195

195:                                              ; preds = %194, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %196

196:                                              ; preds = %195, %38
  call void @llvm.lifetime.end.p0(i64 1024, ptr %8) #9
  %197 = load i32, ptr %5, align 4
  switch i32 %197, label %278 [
    i32 0, label %198
    i32 2, label %32
    i32 3, label %199
    i32 4, label %274
  ]

198:                                              ; preds = %196
  br label %32

199:                                              ; preds = %196
  %200 = load ptr, ptr %6, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.pam, ptr %200, i32 0, i32 1
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = icmp slt i32 %202, 0
  br i1 %203, label %224, label %204

204:                                              ; preds = %199
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.pam, ptr %205, i32 0, i32 2
  %207 = load i32, ptr %206, align 8, !tbaa !12
  %208 = icmp slt i32 %207, 0
  br i1 %208, label %224, label %209

209:                                              ; preds = %204
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.pam, ptr %210, i32 0, i32 3
  %212 = load i32, ptr %211, align 4, !tbaa !13
  %213 = icmp slt i32 %212, 0
  br i1 %213, label %224, label %214

214:                                              ; preds = %209
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.pam, ptr %215, i32 0, i32 4
  %217 = load i32, ptr %216, align 8, !tbaa !14
  %218 = icmp slt i32 %217, 0
  br i1 %218, label %224, label %219

219:                                              ; preds = %214
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.pam, ptr %220, i32 0, i32 0
  %222 = load i32, ptr %221, align 8, !tbaa !15
  %223 = icmp slt i32 %222, 0
  br i1 %223, label %224, label %226

224:                                              ; preds = %219, %214, %209, %204, %199
  %225 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  br label %274

226:                                              ; preds = %219
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.pam, ptr %227, i32 0, i32 4
  %229 = load i32, ptr %228, align 8, !tbaa !14
  %230 = icmp eq i32 %229, 255
  br i1 %230, label %231, label %232

231:                                              ; preds = %226
  br label %233

232:                                              ; preds = %226
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.19, i32 noundef 140, ptr noundef @__PRETTY_FUNCTION__.pam_create_from_file) #12
  unreachable

233:                                              ; preds = %231
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.pam, ptr %234, i32 0, i32 1
  %236 = load i32, ptr %235, align 4, !tbaa !9
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.pam, ptr %237, i32 0, i32 2
  %239 = load i32, ptr %238, align 8, !tbaa !12
  %240 = mul nsw i32 %236, %239
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.pam, ptr %241, i32 0, i32 3
  %243 = load i32, ptr %242, align 4, !tbaa !13
  %244 = mul nsw i32 %240, %243
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.pam, ptr %245, i32 0, i32 5
  store i32 %244, ptr %246, align 4, !tbaa !22
  %247 = load ptr, ptr %6, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.pam, ptr %247, i32 0, i32 5
  %249 = load i32, ptr %248, align 4, !tbaa !22
  %250 = sext i32 %249 to i64
  %251 = call noalias ptr @malloc(i64 noundef %250) #13
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.pam, ptr %252, i32 0, i32 6
  store ptr %251, ptr %253, align 8, !tbaa !23
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.pam, ptr %254, i32 0, i32 5
  %256 = load i32, ptr %255, align 4, !tbaa !22
  %257 = sext i32 %256 to i64
  %258 = load ptr, ptr %6, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.pam, ptr %258, i32 0, i32 6
  %260 = load ptr, ptr %259, align 8, !tbaa !23
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.pam, ptr %261, i32 0, i32 5
  %263 = load i32, ptr %262, align 4, !tbaa !22
  %264 = sext i32 %263 to i64
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = call i64 @fread(ptr noundef %260, i64 noundef 1, i64 noundef %264, ptr noundef %265)
  %267 = icmp ne i64 %257, %266
  br i1 %267, label %268, label %270

268:                                              ; preds = %233
  %269 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  br label %274

270:                                              ; preds = %233
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = call i32 @fclose(ptr noundef %271)
  %273 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %273, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %278

274:                                              ; preds = %268, %224, %196
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %275) #9
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = call i32 @fclose(ptr noundef %276)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %278

278:                                              ; preds = %274, %270, %196
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  br label %279

279:                                              ; preds = %278, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  %280 = load ptr, ptr %2, align 8
  ret ptr %280
}

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare i32 @printf(ptr noundef, ...) #2

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

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #5

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

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

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

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

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 = { 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 #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 = { inlinehint nounwind willreturn memory(read) 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 #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 "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 willreturn memory(read) }
attributes #12 = { noreturn nounwind }
attributes #13 = { nounwind allocsize(0) }

!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, !11, i64 4}
!10 = !{!"pam", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !11, i64 12}
!14 = !{!10, !11, i64 16}
!15 = !{!10, !11, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!10, !11, i64 20}
!23 = !{!10, !6, i64 24}


; 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 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__.pam_create_from_file = external hidden unnamed_addr constant [42 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @pam_create_from_file(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [1024 x i8], align 16
  %3 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str)
  %4 = icmp eq ptr %3, null
  br i1 %4, label %5, label %7

5:                                                ; preds = %1
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %0)
  br label %113

7:                                                ; preds = %1
  %8 = tail call noalias dereferenceable_or_null(32) ptr @calloc(i64 noundef 1, i64 noundef 32) #10
  %9 = getelementptr inbounds i8, ptr %8, i64 4
  %10 = getelementptr inbounds i8, ptr %8, i64 8
  %11 = getelementptr inbounds i8, ptr %8, i64 12
  %12 = getelementptr inbounds i8, ptr %8, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %8, i8 -1, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %2) #11
  %13 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 1024, ptr noundef nonnull %3)
  %.not109 = icmp eq ptr %13, null
  br i1 %.not109, label %.thread104, label %.lr.ph112

.thread104:                                       ; preds = %77, %7
  %14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %2) #11
  br label %111

.lr.ph112:                                        ; preds = %7, %77
  %.086110 = phi i32 [ %15, %77 ], [ 0, %7 ]
  %15 = add nuw nsw i32 %.086110, 1
  %16 = load i8, ptr %2, align 16, !tbaa !5
  %17 = icmp eq i8 %16, 35
  br i1 %17, label %77, label %18

18:                                               ; preds = %.lr.ph112
  %19 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #12
  %.not113 = icmp eq i64 %19, 0
  br i1 %.not113, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %34, %18
  %.082.lcssa = phi ptr [ null, %18 ], [ %.183, %34 ]
  %20 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.4) #12
  %.not94 = icmp eq i32 %20, 0
  br i1 %.not94, label %77, label %35

.lr.ph:                                           ; preds = %18, %34
  %indvars.iv = phi i64 [ %indvars.iv.next, %34 ], [ 0, %18 ]
  %.082107 = phi ptr [ %.183, %34 ], [ null, %18 ]
  %21 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %indvars.iv
  %22 = load i8, ptr %21, align 1, !tbaa !5
  %23 = icmp eq i8 %22, 32
  br i1 %23, label %24, label %30

24:                                               ; preds = %.lr.ph
  store i8 0, ptr %21, align 1, !tbaa !5
  %.not100 = icmp eq ptr %.082107, null
  br i1 %.not100, label %27, label %25

25:                                               ; preds = %24
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %0, i32 noundef %15)
  %.pr.pre = load i8, ptr %21, align 1, !tbaa !5
  br label %27

27:                                               ; preds = %25, %24
  %.pr = phi i8 [ %.pr.pre, %25 ], [ 0, %24 ]
  %28 = add nuw nsw i64 %indvars.iv, 1
  %29 = getelementptr inbounds [1024 x i8], ptr %2, i64 0, i64 %28
  br label %30

30:                                               ; preds = %27, %.lr.ph
  %31 = phi i8 [ %.pr, %27 ], [ %22, %.lr.ph ]
  %.183 = phi ptr [ %29, %27 ], [ %.082107, %.lr.ph ]
  %32 = icmp eq i8 %31, 10
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  store i8 0, ptr %21, align 1, !tbaa !5
  br label %34

34:                                               ; preds = %30, %33
  %indvars.iv.next = add nuw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %19
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

35:                                               ; preds = %._crit_edge
  %36 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.5) #12
  %.not95 = icmp eq i32 %36, 0
  br i1 %.not95, label %79, label %37

37:                                               ; preds = %35
  %38 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.6) #12
  %39 = icmp eq i32 %38, 0
  %40 = icmp ne ptr %.082.lcssa, null
  %or.cond = select i1 %39, i1 %40, i1 false
  br i1 %or.cond, label %41, label %43

41:                                               ; preds = %37
  %42 = call i32 @atoi(ptr nocapture noundef %.082.lcssa) #12
  store i32 %42, ptr %9, align 4, !tbaa !10
  br label %77

43:                                               ; preds = %37
  %44 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.7) #12
  %45 = icmp eq i32 %44, 0
  %or.cond3 = select i1 %45, i1 %40, i1 false
  br i1 %or.cond3, label %46, label %48

46:                                               ; preds = %43
  %47 = call i32 @atoi(ptr nocapture noundef %.082.lcssa) #12
  store i32 %47, ptr %10, align 8, !tbaa !14
  br label %77

48:                                               ; preds = %43
  %49 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.8) #12
  %50 = icmp eq i32 %49, 0
  %or.cond5 = select i1 %50, i1 %40, i1 false
  br i1 %or.cond5, label %51, label %53

51:                                               ; preds = %48
  %52 = call i32 @atoi(ptr nocapture noundef %.082.lcssa) #12
  store i32 %52, ptr %11, align 4, !tbaa !15
  br label %77

53:                                               ; preds = %48
  %54 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.9) #12
  %55 = icmp eq i32 %54, 0
  %or.cond7 = select i1 %55, i1 %40, i1 false
  br i1 %or.cond7, label %56, label %58

56:                                               ; preds = %53
  %57 = call i32 @atoi(ptr nocapture noundef %.082.lcssa) #12
  store i32 %57, ptr %12, align 8, !tbaa !16
  br label %77

58:                                               ; preds = %53
  %59 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.10) #12
  %60 = icmp eq i32 %59, 0
  %or.cond9 = select i1 %60, i1 %40, i1 false
  br i1 %or.cond9, label %61, label %75

61:                                               ; preds = %58
  %62 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.082.lcssa, ptr noundef nonnull dereferenceable(1) @.str.11) #12
  %.not96 = icmp eq i32 %62, 0
  br i1 %.not96, label %63, label %64

63:                                               ; preds = %61
  store i32 5000, ptr %8, align 8, !tbaa !17
  br label %77

64:                                               ; preds = %61
  %65 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.082.lcssa, ptr noundef nonnull dereferenceable(1) @.str.12) #12
  %.not97 = icmp eq i32 %65, 0
  br i1 %.not97, label %66, label %67

66:                                               ; preds = %64
  store i32 5001, ptr %8, align 8, !tbaa !17
  br label %77

67:                                               ; preds = %64
  %68 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.082.lcssa, ptr noundef nonnull dereferenceable(1) @.str.13) #12
  %.not98 = icmp eq i32 %68, 0
  br i1 %.not98, label %69, label %70

69:                                               ; preds = %67
  store i32 5002, ptr %8, align 8, !tbaa !17
  br label %77

70:                                               ; preds = %67
  %71 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.082.lcssa, ptr noundef nonnull dereferenceable(1) @.str.14) #12
  %.not99 = icmp eq i32 %71, 0
  br i1 %.not99, label %72, label %73

72:                                               ; preds = %70
  store i32 5003, ptr %8, align 8, !tbaa !17
  br label %77

73:                                               ; preds = %70
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef nonnull %.082.lcssa)
  br label %77

75:                                               ; preds = %58
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, ptr noundef nonnull %2)
  br label %77

77:                                               ; preds = %.lr.ph112, %._crit_edge, %75, %73, %72, %69, %66, %63, %56, %51, %46, %41
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %2) #11
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %2) #11
  %78 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 1024, ptr noundef nonnull %3)
  %.not = icmp eq ptr %78, null
  br i1 %.not, label %.thread104, label %.lr.ph112

79:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %2) #11
  %80 = load i32, ptr %9, align 4, !tbaa !10
  %81 = icmp slt i32 %80, 0
  br i1 %81, label %94, label %82

82:                                               ; preds = %79
  %83 = load i32, ptr %10, align 8, !tbaa !14
  %84 = icmp slt i32 %83, 0
  br i1 %84, label %94, label %85

85:                                               ; preds = %82
  %86 = load i32, ptr %11, align 4, !tbaa !15
  %87 = icmp slt i32 %86, 0
  br i1 %87, label %94, label %88

88:                                               ; preds = %85
  %89 = load i32, ptr %12, align 8, !tbaa !16
  %90 = icmp slt i32 %89, 0
  br i1 %90, label %94, label %91

91:                                               ; preds = %88
  %92 = load i32, ptr %8, align 8, !tbaa !17
  %93 = icmp slt i32 %92, 0
  br i1 %93, label %94, label %96

94:                                               ; preds = %91, %88, %85, %82, %79
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  br label %111

96:                                               ; preds = %91
  %97 = icmp eq i32 %89, 255
  br i1 %97, label %99, label %98

98:                                               ; preds = %96
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.19, i32 noundef 140, ptr noundef nonnull @__PRETTY_FUNCTION__.pam_create_from_file) #13
  unreachable

99:                                               ; preds = %96
  %100 = mul nuw nsw i32 %83, %80
  %101 = mul nuw nsw i32 %100, %86
  %102 = getelementptr inbounds i8, ptr %8, i64 20
  store i32 %101, ptr %102, align 4, !tbaa !18
  %103 = zext nneg i32 %101 to i64
  %104 = call noalias ptr @malloc(i64 noundef %103) #14
  %105 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %104, ptr %105, align 8, !tbaa !19
  %106 = call i64 @fread(ptr noundef %104, i64 noundef 1, i64 noundef %103, ptr noundef nonnull %3)
  %.not101 = icmp eq i64 %106, %103
  br i1 %.not101, label %109, label %107

107:                                              ; preds = %99
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20)
  br label %111

109:                                              ; preds = %99
  %110 = call i32 @fclose(ptr noundef nonnull %3)
  br label %113

111:                                              ; preds = %.thread104, %107, %94
  call void @free(ptr noundef %8) #11
  %112 = call i32 @fclose(ptr noundef nonnull %3)
  br label %113

113:                                              ; preds = %109, %111, %5
  %.1 = phi ptr [ null, %5 ], [ null, %111 ], [ %8, %109 ]
  ret ptr %.1
}

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #5

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

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

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture 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 #8

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

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 = { nofree 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 #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 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { 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 #9 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { nounwind allocsize(0,1) }
attributes #11 = { nounwind }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { noreturn nounwind }
attributes #14 = { nounwind allocsize(0) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !12, i64 4}
!11 = !{!"pam", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !13, i64 24}
!12 = !{!"int", !6, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = !{!11, !12, i64 8}
!15 = !{!11, !12, i64 12}
!16 = !{!11, !12, i64 16}
!17 = !{!11, !12, i64 0}
!18 = !{!11, !12, i64 20}
!19 = !{!11, !13, i64 24}


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