; LLVM IR from Discngine/fpocket :: src (fparams)

; 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.s_fparams = type { [2000 x i8], [2000 x i8], [2000 x i8], [8000 x i8], ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, i8, i8, i32, i32, i16, i32, i32, i32, i16, i32, i32, i32, i16, float, float, float, float, float, [20 x ptr], i16, i16, [20 x ptr], i32, [10 x i8] }

@stderr = external global ptr, align 8
@.str.35 = external hidden unnamed_addr constant [38 x i8], align 1
@stdout = external global ptr, align 8
@.str.36 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @init_def_fparams() #0

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

declare ptr @my_malloc(i64 noundef) #2

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

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: nounwind uwtable
define dso_local ptr @DEPR_get_fpocket_args(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca [2001 x i8], align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %18 = call ptr @init_def_fparams()
  store ptr %18, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr null, ptr %10, align 8, !tbaa !9
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %201, %2
  %20 = load i32, ptr %6, align 4, !tbaa !5
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %23, label %204

23:                                               ; preds = %19
  %24 = load ptr, ptr %5, align 8, !tbaa !9
  %25 = load i32, ptr %6, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds ptr, ptr %24, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = call i64 @strlen(ptr noundef %28) #7
  %30 = icmp eq i64 %29, 2
  br i1 %30, label %31, label %200

31:                                               ; preds = %23
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  %33 = load i32, ptr %6, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds ptr, ptr %32, i64 %34
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = getelementptr inbounds i8, ptr %36, i64 0
  %38 = load i8, ptr %37, align 1, !tbaa !11
  %39 = sext i8 %38 to i32
  %40 = icmp eq i32 %39, 45
  br i1 %40, label %41, label %200

41:                                               ; preds = %31
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = sub nsw i32 %43, 1
  %45 = icmp sle i32 %42, %44
  br i1 %45, label %46, label %200

46:                                               ; preds = %41
  %47 = load ptr, ptr %5, align 8, !tbaa !9
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds ptr, ptr %47, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = getelementptr inbounds i8, ptr %51, i64 1
  %53 = load i8, ptr %52, align 1, !tbaa !11
  %54 = sext i8 %53 to i32
  switch i32 %54, label %198 [
    i32 77, label %55
    i32 109, label %66
    i32 65, label %77
    i32 68, label %88
    i32 67, label %99
    i32 101, label %110
    i32 118, label %121
    i32 98, label %132
    i32 105, label %143
    i32 112, label %154
    i32 100, label %165
    i32 120, label %168
    i32 70, label %171
    i32 102, label %178
  ]

55:                                               ; preds = %46
  %56 = load ptr, ptr %5, align 8, !tbaa !9
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %6, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds ptr, ptr %56, i64 %59
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  %62 = load ptr, ptr %9, align 8, !tbaa !9
  %63 = call i32 @parse_asph_max_size(ptr noundef %61, ptr noundef %62)
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = add nsw i32 %64, %63
  store i32 %65, ptr %8, align 4, !tbaa !5
  br label %199

66:                                               ; preds = %46
  %67 = load ptr, ptr %5, align 8, !tbaa !9
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %6, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds ptr, ptr %67, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  %73 = load ptr, ptr %9, align 8, !tbaa !9
  %74 = call i32 @parse_asph_min_size(ptr noundef %72, ptr noundef %73)
  %75 = load i32, ptr %8, align 4, !tbaa !5
  %76 = add nsw i32 %75, %74
  store i32 %76, ptr %8, align 4, !tbaa !5
  br label %199

77:                                               ; preds = %46
  %78 = load ptr, ptr %5, align 8, !tbaa !9
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %6, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds ptr, ptr %78, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = load ptr, ptr %9, align 8, !tbaa !9
  %85 = call i32 @parse_min_apol_neigh(ptr noundef %83, ptr noundef %84)
  %86 = load i32, ptr %8, align 4, !tbaa !5
  %87 = add nsw i32 %86, %85
  store i32 %87, ptr %8, align 4, !tbaa !5
  br label %199

88:                                               ; preds = %46
  %89 = load ptr, ptr %5, align 8, !tbaa !9
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %6, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds ptr, ptr %89, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = load ptr, ptr %9, align 8, !tbaa !9
  %96 = call i32 @parse_clust_max_dist(ptr noundef %94, ptr noundef %95)
  %97 = load i32, ptr %8, align 4, !tbaa !5
  %98 = add nsw i32 %97, %96
  store i32 %98, ptr %8, align 4, !tbaa !5
  br label %199

99:                                               ; preds = %46
  %100 = load ptr, ptr %5, align 8, !tbaa !9
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %6, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds ptr, ptr %100, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  %106 = load ptr, ptr %9, align 8, !tbaa !9
  %107 = call i32 @parse_clustering_method(ptr noundef %105, ptr noundef %106)
  %108 = load i32, ptr %8, align 4, !tbaa !5
  %109 = add nsw i32 %108, %107
  store i32 %109, ptr %8, align 4, !tbaa !5
  br label %199

110:                                              ; preds = %46
  %111 = load ptr, ptr %5, align 8, !tbaa !9
  %112 = load i32, ptr %6, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %6, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds ptr, ptr %111, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !9
  %117 = load ptr, ptr %9, align 8, !tbaa !9
  %118 = call i32 @parse_distance_measure(ptr noundef %116, ptr noundef %117)
  %119 = load i32, ptr %8, align 4, !tbaa !5
  %120 = add nsw i32 %119, %118
  store i32 %120, ptr %8, align 4, !tbaa !5
  br label %199

121:                                              ; preds = %46
  %122 = load ptr, ptr %5, align 8, !tbaa !9
  %123 = load i32, ptr %6, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %6, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds ptr, ptr %122, i64 %125
  %127 = load ptr, ptr %126, align 8, !tbaa !9
  %128 = load ptr, ptr %9, align 8, !tbaa !9
  %129 = call i32 @parse_mc_niter(ptr noundef %127, ptr noundef %128)
  %130 = load i32, ptr %8, align 4, !tbaa !5
  %131 = add nsw i32 %130, %129
  store i32 %131, ptr %8, align 4, !tbaa !5
  br label %199

132:                                              ; preds = %46
  %133 = load ptr, ptr %5, align 8, !tbaa !9
  %134 = load i32, ptr %6, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %6, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds ptr, ptr %133, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !9
  %139 = load ptr, ptr %9, align 8, !tbaa !9
  %140 = call i32 @parse_basic_vol_div(ptr noundef %138, ptr noundef %139)
  %141 = load i32, ptr %8, align 4, !tbaa !5
  %142 = add nsw i32 %141, %140
  store i32 %142, ptr %8, align 4, !tbaa !5
  br label %199

143:                                              ; preds = %46
  %144 = load ptr, ptr %5, align 8, !tbaa !9
  %145 = load i32, ptr %6, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %6, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds ptr, ptr %144, i64 %147
  %149 = load ptr, ptr %148, align 8, !tbaa !9
  %150 = load ptr, ptr %9, align 8, !tbaa !9
  %151 = call i32 @parse_min_pock_nb_asph(ptr noundef %149, ptr noundef %150)
  %152 = load i32, ptr %8, align 4, !tbaa !5
  %153 = add nsw i32 %152, %151
  store i32 %153, ptr %8, align 4, !tbaa !5
  br label %199

154:                                              ; preds = %46
  %155 = load ptr, ptr %5, align 8, !tbaa !9
  %156 = load i32, ptr %6, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %6, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds ptr, ptr %155, i64 %158
  %160 = load ptr, ptr %159, align 8, !tbaa !9
  %161 = load ptr, ptr %9, align 8, !tbaa !9
  %162 = call i32 @parse_refine_minaap(ptr noundef %160, ptr noundef %161)
  %163 = load i32, ptr %8, align 4, !tbaa !5
  %164 = add nsw i32 %163, %162
  store i32 %164, ptr %8, align 4, !tbaa !5
  br label %199

165:                                              ; preds = %46
  %166 = load ptr, ptr %9, align 8, !tbaa !9
  %167 = getelementptr inbounds %struct.s_fparams, ptr %166, i32 0, i32 18
  store i32 1, ptr %167, align 4, !tbaa !12
  br label %199

168:                                              ; preds = %46
  %169 = load ptr, ptr %9, align 8, !tbaa !9
  %170 = getelementptr inbounds %struct.s_fparams, ptr %169, i32 0, i32 20
  store i16 1, ptr %170, align 4, !tbaa !16
  br label %199

171:                                              ; preds = %46
  %172 = load ptr, ptr %5, align 8, !tbaa !9
  %173 = load i32, ptr %6, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %6, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds ptr, ptr %172, i64 %175
  %177 = load ptr, ptr %176, align 8, !tbaa !9
  store ptr %177, ptr %10, align 8, !tbaa !9
  br label %199

178:                                              ; preds = %46
  %179 = load i32, ptr %7, align 4, !tbaa !5
  %180 = icmp sge i32 %179, 1
  br i1 %180, label %181, label %184

181:                                              ; preds = %178
  %182 = load ptr, ptr @stderr, align 8, !tbaa !9
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %182, ptr noundef @.str.35) #6
  br label %197

184:                                              ; preds = %178
  %185 = load ptr, ptr %9, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.s_fparams, ptr %185, i32 0, i32 0
  %187 = getelementptr inbounds [2000 x i8], ptr %186, i64 0, i64 0
  %188 = load ptr, ptr %5, align 8, !tbaa !9
  %189 = load i32, ptr %6, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %6, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds ptr, ptr %188, i64 %191
  %193 = load ptr, ptr %192, align 8, !tbaa !9
  %194 = call ptr @strcpy(ptr noundef %187, ptr noundef %193) #6
  %195 = load i32, ptr %7, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %7, align 4, !tbaa !5
  br label %197

197:                                              ; preds = %184, %181
  br label %199

198:                                              ; preds = %46
  br label %199

199:                                              ; preds = %198, %197, %171, %168, %165, %154, %143, %132, %121, %110, %99, %88, %77, %66, %55
  br label %200

200:                                              ; preds = %199, %41, %31, %23
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %6, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %6, align 4, !tbaa !5
  br label %19, !llvm.loop !17

204:                                              ; preds = %19
  %205 = load i32, ptr %8, align 4, !tbaa !5
  %206 = icmp sgt i32 %205, 0
  br i1 %206, label %207, label %210

207:                                              ; preds = %204
  %208 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free_fparams(ptr noundef %208)
  %209 = load ptr, ptr @stdout, align 8, !tbaa !9
  call void @print_pocket_usage(ptr noundef %209)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %311

210:                                              ; preds = %204
  %211 = load i32, ptr %7, align 4, !tbaa !5
  %212 = load ptr, ptr %9, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct.s_fparams, ptr %212, i32 0, i32 15
  store i32 %211, ptr %213, align 8, !tbaa !19
  %214 = load ptr, ptr %10, align 8, !tbaa !9
  %215 = icmp ne ptr %214, null
  br i1 %215, label %216, label %309

216:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %217 = load ptr, ptr %10, align 8, !tbaa !9
  %218 = call noalias ptr @fopen(ptr noundef %217, ptr noundef @.str.36)
  store ptr %218, ptr %12, align 8, !tbaa !9
  %219 = load ptr, ptr %12, align 8, !tbaa !9
  %220 = icmp ne ptr %219, null
  br i1 %220, label %221, label %305

221:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2001, ptr %14) #6
  br label %222

222:                                              ; preds = %234, %221
  %223 = getelementptr inbounds [2001 x i8], ptr %14, i64 0, i64 0
  %224 = load ptr, ptr %12, align 8, !tbaa !9
  %225 = call ptr @fgets(ptr noundef %223, i32 noundef 2000, ptr noundef %224)
  %226 = icmp ne ptr %225, null
  br i1 %226, label %227, label %235

227:                                              ; preds = %222
  %228 = getelementptr inbounds [2001 x i8], ptr %14, i64 0, i64 0
  %229 = call i32 @strcmp(ptr noundef @.str.37, ptr noundef %228) #7
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %231, label %234

231:                                              ; preds = %227
  %232 = load i32, ptr %13, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %13, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %231, %227
  br label %222, !llvm.loop !20

235:                                              ; preds = %222
  %236 = load ptr, ptr %12, align 8, !tbaa !9
  %237 = call i32 @fclose(ptr noundef %236)
  %238 = load i32, ptr %13, align 4, !tbaa !5
  %239 = icmp eq i32 %238, 0
  br i1 %239, label %240, label %242

240:                                              ; preds = %235
  %241 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %241, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %302

242:                                              ; preds = %235
  %243 = load i32, ptr %13, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = mul i64 %244, 8
  %246 = call ptr @my_malloc(i64 noundef %245)
  %247 = load ptr, ptr %9, align 8, !tbaa !9
  %248 = getelementptr inbounds %struct.s_fparams, ptr %247, i32 0, i32 4
  store ptr %246, ptr %248, align 8, !tbaa !21
  %249 = load ptr, ptr %10, align 8, !tbaa !9
  %250 = call noalias ptr @fopen(ptr noundef %249, ptr noundef @.str.36)
  store ptr %250, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  br label %251

251:                                              ; preds = %297, %242
  %252 = getelementptr inbounds [2001 x i8], ptr %14, i64 0, i64 0
  %253 = load ptr, ptr %12, align 8, !tbaa !9
  %254 = call ptr @fgets(ptr noundef %252, i32 noundef 2000, ptr noundef %253)
  %255 = icmp ne ptr %254, null
  br i1 %255, label %256, label %298

256:                                              ; preds = %251
  %257 = getelementptr inbounds [2001 x i8], ptr %14, i64 0, i64 0
  %258 = call i32 @strcmp(ptr noundef @.str.37, ptr noundef %257) #7
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %260, label %297

260:                                              ; preds = %256
  %261 = getelementptr inbounds [2001 x i8], ptr %14, i64 0, i64 0
  %262 = call i64 @strlen(ptr noundef %261) #7
  %263 = trunc i64 %262 to i32
  store i32 %263, ptr %16, align 4, !tbaa !5
  %264 = load i32, ptr %16, align 4, !tbaa !5
  %265 = sub nsw i32 %264, 1
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [2001 x i8], ptr %14, i64 0, i64 %266
  %268 = load i8, ptr %267, align 1, !tbaa !11
  %269 = sext i8 %268 to i32
  %270 = icmp eq i32 %269, 10
  br i1 %270, label %271, label %277

271:                                              ; preds = %260
  %272 = load i32, ptr %16, align 4, !tbaa !5
  %273 = add nsw i32 %272, -1
  store i32 %273, ptr %16, align 4, !tbaa !5
  %274 = load i32, ptr %16, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [2001 x i8], ptr %14, i64 0, i64 %275
  store i8 0, ptr %276, align 1, !tbaa !11
  br label %277

277:                                              ; preds = %271, %260
  %278 = load i32, ptr %16, align 4, !tbaa !5
  %279 = add nsw i32 %278, 1
  %280 = sext i32 %279 to i64
  %281 = mul i64 %280, 1
  %282 = call ptr @my_malloc(i64 noundef %281)
  store ptr %282, ptr %17, align 8, !tbaa !9
  %283 = load ptr, ptr %17, align 8, !tbaa !9
  %284 = getelementptr inbounds [2001 x i8], ptr %14, i64 0, i64 0
  %285 = load i32, ptr %16, align 4, !tbaa !5
  %286 = add nsw i32 %285, 1
  %287 = sext i32 %286 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %283, ptr align 16 %284, i64 %287, i1 false)
  %288 = load ptr, ptr %17, align 8, !tbaa !9
  %289 = load ptr, ptr %9, align 8, !tbaa !9
  %290 = getelementptr inbounds %struct.s_fparams, ptr %289, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !21
  %292 = load i32, ptr %15, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds ptr, ptr %291, i64 %293
  store ptr %288, ptr %294, align 8, !tbaa !9
  %295 = load i32, ptr %15, align 4, !tbaa !5
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %15, align 4, !tbaa !5
  br label %297

297:                                              ; preds = %277, %256
  br label %251, !llvm.loop !22

298:                                              ; preds = %251
  %299 = load i32, ptr %13, align 4, !tbaa !5
  %300 = load ptr, ptr %9, align 8, !tbaa !9
  %301 = getelementptr inbounds %struct.s_fparams, ptr %300, i32 0, i32 15
  store i32 %299, ptr %301, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  store i32 0, ptr %11, align 4
  br label %302

302:                                              ; preds = %298, %240
  call void @llvm.lifetime.end.p0(i64 2001, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %303 = load i32, ptr %11, align 4
  switch i32 %303, label %306 [
    i32 0, label %304
  ]

304:                                              ; preds = %302
  br label %305

305:                                              ; preds = %304, %216
  store i32 0, ptr %11, align 4
  br label %306

306:                                              ; preds = %305, %302
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %307 = load i32, ptr %11, align 4
  switch i32 %307, label %311 [
    i32 0, label %308
  ]

308:                                              ; preds = %306
  br label %309

309:                                              ; preds = %308, %210
  %310 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %310, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %311

311:                                              ; preds = %309, %306, %207
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %312 = load ptr, ptr %3, align 8
  ret ptr %312
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @free_fparams(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @print_pocket_usage(ptr noundef) #0

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

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

declare i32 @fclose(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) #5

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 14076}
!13 = !{!"s_fparams", !7, i64 0, !7, i64 2000, !7, i64 4000, !7, i64 6000, !10, i64 14000, !10, i64 14008, !10, i64 14016, !6, i64 14024, !6, i64 14028, !10, i64 14032, !10, i64 14040, !10, i64 14048, !7, i64 14056, !7, i64 14057, !6, i64 14060, !6, i64 14064, !14, i64 14068, !6, i64 14072, !6, i64 14076, !6, i64 14080, !14, i64 14084, !6, i64 14088, !6, i64 14092, !6, i64 14096, !14, i64 14100, !15, i64 14104, !15, i64 14108, !15, i64 14112, !15, i64 14116, !15, i64 14120, !7, i64 14128, !14, i64 14288, !14, i64 14290, !7, i64 14296, !6, i64 14456, !7, i64 14460}
!14 = !{!"short", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!13, !14, i64 14084}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!13, !6, i64 14064}
!20 = distinct !{!20, !18}
!21 = !{!13, !10, i64 14000}
!22 = distinct !{!22, !18}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.35 = external hidden unnamed_addr constant [38 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.36 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @init_def_fparams() local_unnamed_addr #0

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

declare ptr @my_malloc(i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
define dso_local ptr @DEPR_get_fpocket_args(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [2001 x i8], align 16
  %4 = tail call ptr @init_def_fparams()
  %5 = icmp sgt i32 %0, 1
  br i1 %5, label %.lr.ph, label %.thread

.thread:                                          ; preds = %2
  %6 = getelementptr inbounds i8, ptr %4, i64 14064
  store i32 0, ptr %6, align 8, !tbaa !5
  br label %.critedge116

.lr.ph:                                           ; preds = %2
  %7 = getelementptr inbounds i8, ptr %4, i64 14084
  %8 = getelementptr inbounds i8, ptr %4, i64 14076
  br label %9

9:                                                ; preds = %.lr.ph, %109
  %.099120 = phi ptr [ null, %.lr.ph ], [ %.1100, %109 ]
  %.0101119 = phi i32 [ 1, %.lr.ph ], [ %110, %109 ]
  %.0103118 = phi i32 [ 0, %.lr.ph ], [ %.1104, %109 ]
  %.0105117 = phi i32 [ 0, %.lr.ph ], [ %.1106, %109 ]
  %10 = sext i32 %.0101119 to i64
  %11 = getelementptr inbounds ptr, ptr %1, i64 %10
  %12 = load ptr, ptr %11, align 8, !tbaa !13
  %13 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %12) #7
  %14 = icmp eq i64 %13, 2
  br i1 %14, label %15, label %109

15:                                               ; preds = %9
  %16 = load i8, ptr %12, align 1, !tbaa !14
  %17 = icmp eq i8 %16, 45
  br i1 %17, label %18, label %109

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %12, i64 1
  %20 = load i8, ptr %19, align 1, !tbaa !14
  switch i8 %20, label %109 [
    i8 77, label %21
    i8 109, label %28
    i8 65, label %35
    i8 68, label %42
    i8 67, label %49
    i8 101, label %56
    i8 118, label %63
    i8 98, label %70
    i8 105, label %77
    i8 112, label %84
    i8 100, label %91
    i8 120, label %92
    i8 70, label %93
    i8 102, label %98
  ]

21:                                               ; preds = %18
  %22 = add nsw i32 %.0101119, 1
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds ptr, ptr %1, i64 %23
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  %26 = tail call i32 @parse_asph_max_size(ptr noundef %25, ptr noundef %4)
  %27 = add nsw i32 %26, %.0103118
  br label %109

28:                                               ; preds = %18
  %29 = add nsw i32 %.0101119, 1
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds ptr, ptr %1, i64 %30
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = tail call i32 @parse_asph_min_size(ptr noundef %32, ptr noundef %4)
  %34 = add nsw i32 %33, %.0103118
  br label %109

35:                                               ; preds = %18
  %36 = add nsw i32 %.0101119, 1
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds ptr, ptr %1, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = tail call i32 @parse_min_apol_neigh(ptr noundef %39, ptr noundef %4)
  %41 = add nsw i32 %40, %.0103118
  br label %109

42:                                               ; preds = %18
  %43 = add nsw i32 %.0101119, 1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds ptr, ptr %1, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  %47 = tail call i32 @parse_clust_max_dist(ptr noundef %46, ptr noundef %4)
  %48 = add nsw i32 %47, %.0103118
  br label %109

49:                                               ; preds = %18
  %50 = add nsw i32 %.0101119, 1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds ptr, ptr %1, i64 %51
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %54 = tail call i32 @parse_clustering_method(ptr noundef %53, ptr noundef %4)
  %55 = add nsw i32 %54, %.0103118
  br label %109

56:                                               ; preds = %18
  %57 = add nsw i32 %.0101119, 1
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %1, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = tail call i32 @parse_distance_measure(ptr noundef %60, ptr noundef %4)
  %62 = add nsw i32 %61, %.0103118
  br label %109

63:                                               ; preds = %18
  %64 = add nsw i32 %.0101119, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds ptr, ptr %1, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !13
  %68 = tail call i32 @parse_mc_niter(ptr noundef %67, ptr noundef %4)
  %69 = add nsw i32 %68, %.0103118
  br label %109

70:                                               ; preds = %18
  %71 = add nsw i32 %.0101119, 1
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %1, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  %75 = tail call i32 @parse_basic_vol_div(ptr noundef %74, ptr noundef %4)
  %76 = add nsw i32 %75, %.0103118
  br label %109

77:                                               ; preds = %18
  %78 = add nsw i32 %.0101119, 1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds ptr, ptr %1, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = tail call i32 @parse_min_pock_nb_asph(ptr noundef %81, ptr noundef %4)
  %83 = add nsw i32 %82, %.0103118
  br label %109

84:                                               ; preds = %18
  %85 = add nsw i32 %.0101119, 1
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds ptr, ptr %1, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !13
  %89 = tail call i32 @parse_refine_minaap(ptr noundef %88, ptr noundef %4)
  %90 = add nsw i32 %89, %.0103118
  br label %109

91:                                               ; preds = %18
  store i32 1, ptr %8, align 4, !tbaa !15
  br label %109

92:                                               ; preds = %18
  store i16 1, ptr %7, align 4, !tbaa !16
  br label %109

93:                                               ; preds = %18
  %94 = add nsw i32 %.0101119, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %1, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !13
  br label %109

98:                                               ; preds = %18
  %99 = icmp sgt i32 %.0105117, 0
  br i1 %99, label %100, label %103

100:                                              ; preds = %98
  %101 = load ptr, ptr @stderr, align 8, !tbaa !13
  %102 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef nonnull @.str.35) #8
  br label %109

103:                                              ; preds = %98
  %104 = add nsw i32 %.0101119, 1
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds ptr, ptr %1, i64 %105
  %107 = load ptr, ptr %106, align 8, !tbaa !13
  %108 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) %107) #9
  br label %109

109:                                              ; preds = %9, %15, %18, %100, %103, %93, %92, %91, %84, %77, %70, %63, %56, %49, %42, %35, %28, %21
  %.1106 = phi i32 [ %.0105117, %18 ], [ 1, %100 ], [ 1, %103 ], [ %.0105117, %93 ], [ %.0105117, %92 ], [ %.0105117, %91 ], [ %.0105117, %84 ], [ %.0105117, %77 ], [ %.0105117, %70 ], [ %.0105117, %63 ], [ %.0105117, %56 ], [ %.0105117, %49 ], [ %.0105117, %42 ], [ %.0105117, %35 ], [ %.0105117, %28 ], [ %.0105117, %21 ], [ %.0105117, %15 ], [ %.0105117, %9 ]
  %.1104 = phi i32 [ %.0103118, %18 ], [ %.0103118, %100 ], [ %.0103118, %103 ], [ %.0103118, %93 ], [ %.0103118, %92 ], [ %.0103118, %91 ], [ %90, %84 ], [ %83, %77 ], [ %76, %70 ], [ %69, %63 ], [ %62, %56 ], [ %55, %49 ], [ %48, %42 ], [ %41, %35 ], [ %34, %28 ], [ %27, %21 ], [ %.0103118, %15 ], [ %.0103118, %9 ]
  %.1102 = phi i32 [ %.0101119, %18 ], [ %.0101119, %100 ], [ %104, %103 ], [ %94, %93 ], [ %.0101119, %92 ], [ %.0101119, %91 ], [ %85, %84 ], [ %78, %77 ], [ %71, %70 ], [ %64, %63 ], [ %57, %56 ], [ %50, %49 ], [ %43, %42 ], [ %36, %35 ], [ %29, %28 ], [ %22, %21 ], [ %.0101119, %15 ], [ %.0101119, %9 ]
  %.1100 = phi ptr [ %.099120, %18 ], [ %.099120, %100 ], [ %.099120, %103 ], [ %97, %93 ], [ %.099120, %92 ], [ %.099120, %91 ], [ %.099120, %84 ], [ %.099120, %77 ], [ %.099120, %70 ], [ %.099120, %63 ], [ %.099120, %56 ], [ %.099120, %49 ], [ %.099120, %42 ], [ %.099120, %35 ], [ %.099120, %28 ], [ %.099120, %21 ], [ %.099120, %15 ], [ %.099120, %9 ]
  %110 = add nsw i32 %.1102, 1
  %111 = icmp slt i32 %110, %0
  br i1 %111, label %9, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %109
  %112 = icmp sgt i32 %.1104, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %._crit_edge
  tail call void @free_fparams(ptr noundef %4)
  %114 = load ptr, ptr @stdout, align 8, !tbaa !13
  tail call void @print_pocket_usage(ptr noundef %114)
  br label %.critedge116

115:                                              ; preds = %._crit_edge
  %116 = getelementptr inbounds i8, ptr %4, i64 14064
  store i32 %.1106, ptr %116, align 8, !tbaa !5
  %.not = icmp eq ptr %.1100, null
  br i1 %.not, label %.critedge116, label %117

117:                                              ; preds = %115
  %118 = tail call noalias ptr @fopen(ptr noundef nonnull %.1100, ptr noundef nonnull @.str.36)
  %.not108 = icmp eq ptr %118, null
  br i1 %.not108, label %.critedge116, label %119

119:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 2001, ptr nonnull %3) #9
  %120 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 2000, ptr noundef nonnull %118)
  %.not109123 = icmp eq ptr %120, null
  br i1 %.not109123, label %._crit_edge127.thread, label %.lr.ph126

._crit_edge127.thread:                            ; preds = %119
  %121 = call i32 @fclose(ptr noundef nonnull %118)
  br label %.critedge

.lr.ph126:                                        ; preds = %119, %.lr.ph126
  %.095124 = phi i32 [ %spec.select, %.lr.ph126 ], [ 0, %119 ]
  %122 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef nonnull dereferenceable(1) %3) #7
  %.not113 = icmp ne i32 %122, 0
  %123 = zext i1 %.not113 to i32
  %spec.select = add nuw nsw i32 %.095124, %123
  %124 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 2000, ptr noundef nonnull %118)
  %.not109 = icmp eq ptr %124, null
  br i1 %.not109, label %._crit_edge127, label %.lr.ph126, !llvm.loop !19

._crit_edge127:                                   ; preds = %.lr.ph126
  %125 = call i32 @fclose(ptr noundef nonnull %118)
  %.not112 = icmp eq i32 %spec.select, 0
  br i1 %.not112, label %.critedge, label %126

126:                                              ; preds = %._crit_edge127
  %127 = zext nneg i32 %spec.select to i64
  %128 = shl nuw nsw i64 %127, 3
  %129 = call ptr @my_malloc(i64 noundef %128) #9
  %130 = getelementptr inbounds i8, ptr %4, i64 14000
  store ptr %129, ptr %130, align 8, !tbaa !20
  %131 = call noalias ptr @fopen(ptr noundef nonnull %.1100, ptr noundef nonnull @.str.36)
  %132 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 2000, ptr noundef %131)
  %.not110129 = icmp eq ptr %132, null
  br i1 %.not110129, label %._crit_edge133, label %.lr.ph132

.lr.ph132:                                        ; preds = %126, %154
  %.093130 = phi i32 [ %.194, %154 ], [ 0, %126 ]
  %133 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef nonnull dereferenceable(1) %3) #7
  %.not111 = icmp eq i32 %133, 0
  br i1 %.not111, label %154, label %134

134:                                              ; preds = %.lr.ph132
  %135 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %3) #7
  %136 = trunc i64 %135 to i32
  %137 = shl i64 %135, 32
  %sext = add i64 %137, -4294967296
  %138 = ashr exact i64 %sext, 32
  %139 = getelementptr inbounds [2001 x i8], ptr %3, i64 0, i64 %138
  %140 = load i8, ptr %139, align 1, !tbaa !14
  %141 = icmp eq i8 %140, 10
  br i1 %141, label %142, label %146

142:                                              ; preds = %134
  %143 = add nsw i32 %136, -1
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [2001 x i8], ptr %3, i64 0, i64 %144
  store i8 0, ptr %145, align 1, !tbaa !14
  br label %146

146:                                              ; preds = %142, %134
  %.092 = phi i32 [ %143, %142 ], [ %136, %134 ]
  %147 = add nsw i32 %.092, 1
  %148 = sext i32 %147 to i64
  %149 = call ptr @my_malloc(i64 noundef %148) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %149, ptr nonnull align 16 %3, i64 %148, i1 false)
  %150 = load ptr, ptr %130, align 8, !tbaa !20
  %151 = sext i32 %.093130 to i64
  %152 = getelementptr inbounds ptr, ptr %150, i64 %151
  store ptr %149, ptr %152, align 8, !tbaa !13
  %153 = add nsw i32 %.093130, 1
  br label %154

154:                                              ; preds = %146, %.lr.ph132
  %.194 = phi i32 [ %153, %146 ], [ %.093130, %.lr.ph132 ]
  %155 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 2000, ptr noundef %131)
  %.not110 = icmp eq ptr %155, null
  br i1 %.not110, label %._crit_edge133, label %.lr.ph132, !llvm.loop !21

._crit_edge133:                                   ; preds = %154, %126
  store i32 %spec.select, ptr %116, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 2001, ptr nonnull %3) #9
  br label %.critedge116

.critedge:                                        ; preds = %._crit_edge127.thread, %._crit_edge127
  call void @llvm.lifetime.end.p0(i64 2001, ptr nonnull %3) #9
  br label %.critedge116

.critedge116:                                     ; preds = %.thread, %._crit_edge133, %117, %115, %.critedge, %113
  %.3 = phi ptr [ null, %113 ], [ %4, %.critedge ], [ %4, %115 ], [ %4, %._crit_edge133 ], [ %4, %117 ], [ %4, %.thread ]
  ret ptr %.3
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @free_fparams(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @print_pocket_usage(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #5

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

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 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 #4 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { cold nounwind }
attributes #9 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 14064}
!6 = !{!"s_fparams", !7, i64 0, !7, i64 2000, !7, i64 4000, !7, i64 6000, !9, i64 14000, !9, i64 14008, !9, i64 14016, !10, i64 14024, !10, i64 14028, !9, i64 14032, !9, i64 14040, !9, i64 14048, !7, i64 14056, !7, i64 14057, !10, i64 14060, !10, i64 14064, !11, i64 14068, !10, i64 14072, !10, i64 14076, !10, i64 14080, !11, i64 14084, !10, i64 14088, !10, i64 14092, !10, i64 14096, !11, i64 14100, !12, i64 14104, !12, i64 14108, !12, i64 14112, !12, i64 14116, !12, i64 14120, !7, i64 14128, !11, i64 14288, !11, i64 14290, !7, i64 14296, !10, i64 14456, !7, i64 14460}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!"short", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!9, !9, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!6, !10, i64 14076}
!16 = !{!6, !11, i64 14084}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!6, !9, i64 14000}
!21 = distinct !{!21, !18}


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