; LLVM IR from QiaoLiuHit/LSOTB-TIR :: vlfeat-0.9.19/src (mser)

; 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.option = type { ptr, i32, ptr, i32 }
%struct._VlFileMeta = type { i32, [1024 x i8], i32, [1024 x i8], ptr }
%struct._VlPgmImage = type { i64, i64, i64, i32 }

@help_message = external dso_local constant [712 x i8], align 16
@opts = external dso_local constant [5 x i8], align 1
@longopts = external dso_local constant [13 x %struct.option], align 16
@__const.main.frm = external hidden unnamed_addr constant %struct._VlFileMeta, align 8
@__const.main.piv = external hidden unnamed_addr constant %struct._VlFileMeta, align 8
@__const.main.met = external hidden unnamed_addr constant %struct._VlFileMeta, align 8
@optind = external global i32, align 4
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 x i8], align 1
@optarg = external global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [31 x i8], align 1
@stderr = external global ptr, align 8
@.str.30 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [1024 x i8], align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct._VlFileMeta, align 8
  %19 = alloca %struct._VlFileMeta, align 8
  %20 = alloca %struct._VlFileMeta, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca [1024 x i8], align 16
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %struct._VlPgmImage, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca [2 x i32], align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i64, align 8
  %43 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  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 8, ptr %6) #8
  store double -1.000000e+00, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store double -1.000000e+00, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store double -1.000000e+00, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store double -1.000000e+00, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store double -1.000000e+00, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 1, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 1, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2064, ptr %18) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 @__const.main.frm, i64 2064, i1 false)
  call void @llvm.lifetime.start.p0(i64 2064, ptr %19) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 @__const.main.piv, i64 2064, i1 false)
  call void @llvm.lifetime.start.p0(i64 2064, ptr %20) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 @__const.main.met, i64 2064, i1 false)
  br label %44

44:                                               ; preds = %265, %2
  %45 = load i32, ptr %13, align 4, !tbaa !5
  %46 = icmp ne i32 %45, 0
  %47 = xor i1 %46, true
  br i1 %47, label %48, label %266

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = load ptr, ptr %5, align 8, !tbaa !9
  %51 = call i32 @getopt_long(i32 noundef %49, ptr noundef %50, ptr noundef @opts, ptr noundef @longopts, ptr noundef null)
  store i32 %51, ptr %21, align 4, !tbaa !5
  %52 = load i32, ptr %21, align 4, !tbaa !5
  %53 = icmp eq i32 %52, -1
  br i1 %53, label %54, label %60

54:                                               ; preds = %48
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = load i32, ptr @optind, align 4, !tbaa !5
  %57 = sub nsw i32 %55, %56
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %60

59:                                               ; preds = %54
  store i32 104, ptr %21, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %59, %54, %48
  %61 = load i32, ptr %21, align 4, !tbaa !5
  %62 = icmp eq i32 %61, -1
  br i1 %62, label %63, label %64

63:                                               ; preds = %60
  store i32 3, ptr %22, align 4
  br label %263

64:                                               ; preds = %60
  %65 = load i32, ptr %21, align 4, !tbaa !5
  switch i32 %65, label %261 [
    i32 63, label %66
    i32 58, label %75
    i32 104, label %84
    i32 118, label %100
    i32 100, label %103
    i32 1003, label %121
    i32 1004, label %136
    i32 1005, label %151
    i32 1006, label %163
    i32 1001, label %178
    i32 1000, label %193
    i32 1002, label %208
    i32 1007, label %230
    i32 1008, label %245
    i32 0, label %260
  ]

66:                                               ; preds = %64
  store i32 3, ptr %13, align 4, !tbaa !5
  %67 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %68 = load ptr, ptr %5, align 8, !tbaa !9
  %69 = load i32, ptr @optind, align 4, !tbaa !5
  %70 = sub nsw i32 %69, 1
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds ptr, ptr %68, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !9
  %74 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %67, i64 noundef 1024, ptr noundef @.str.12, ptr noundef %73) #8
  br label %262

75:                                               ; preds = %64
  store i32 3, ptr %13, align 4, !tbaa !5
  %76 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %77 = load ptr, ptr %5, align 8, !tbaa !9
  %78 = load i32, ptr @optind, align 4, !tbaa !5
  %79 = sub nsw i32 %78, 1
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds ptr, ptr %77, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  %83 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %76, i64 noundef 1024, ptr noundef @.str.13, ptr noundef %82) #8
  br label %262

84:                                               ; preds = %64
  %85 = load ptr, ptr %5, align 8, !tbaa !9
  %86 = getelementptr inbounds ptr, ptr %85, i64 0
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  %88 = call i32 (ptr, ...) @printf(ptr noundef @help_message, ptr noundef %87)
  %89 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 1
  %90 = getelementptr inbounds [1024 x i8], ptr %89, i64 0, i64 0
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %90)
  %92 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 1
  %93 = getelementptr inbounds [1024 x i8], ptr %92, i64 0, i64 0
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %93)
  %95 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 1
  %96 = getelementptr inbounds [1024 x i8], ptr %95, i64 0, i64 0
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, ptr noundef %96)
  %98 = call ptr @vl_get_version_string()
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef @.str.18, ptr noundef %98)
  call void @exit(i32 noundef 0) #9
  unreachable

100:                                              ; preds = %64
  %101 = load i32, ptr %17, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %17, align 4, !tbaa !5
  br label %262

103:                                              ; preds = %64
  %104 = load ptr, ptr @optarg, align 8, !tbaa !9
  %105 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %104, ptr noundef @.str.19, ptr noundef %6) #8
  store i32 %105, ptr %15, align 4, !tbaa !5
  %106 = load i32, ptr %15, align 4, !tbaa !5
  %107 = icmp eq i32 %106, 0
  br i1 %107, label %111, label %108

108:                                              ; preds = %103
  %109 = load double, ptr %6, align 8, !tbaa !11
  %110 = fcmp olt double %109, 0.000000e+00
  br i1 %110, label %111, label %120

111:                                              ; preds = %108, %103
  store i32 3, ptr %13, align 4, !tbaa !5
  %112 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %113 = load ptr, ptr %5, align 8, !tbaa !9
  %114 = load i32, ptr @optind, align 4, !tbaa !5
  %115 = sub nsw i32 %114, 1
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds ptr, ptr %113, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %112, i64 noundef 1024, ptr noundef @.str.20, ptr noundef %118) #8
  br label %262

120:                                              ; preds = %108
  br label %262

121:                                              ; preds = %64
  %122 = load ptr, ptr @optarg, align 8, !tbaa !9
  %123 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %122, ptr noundef @.str.19, ptr noundef %7) #8
  store i32 %123, ptr %15, align 4, !tbaa !5
  %124 = load i32, ptr %15, align 4, !tbaa !5
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %132, label %126

126:                                              ; preds = %121
  %127 = load double, ptr %7, align 8, !tbaa !11
  %128 = fcmp olt double %127, 0.000000e+00
  br i1 %128, label %132, label %129

129:                                              ; preds = %126
  %130 = load double, ptr %7, align 8, !tbaa !11
  %131 = fcmp ogt double %130, 1.000000e+00
  br i1 %131, label %132, label %135

132:                                              ; preds = %129, %126, %121
  store i32 3, ptr %13, align 4, !tbaa !5
  %133 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %134 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %133, i64 noundef 1024, ptr noundef @.str.21) #8
  br label %262

135:                                              ; preds = %129
  br label %262

136:                                              ; preds = %64
  %137 = load ptr, ptr @optarg, align 8, !tbaa !9
  %138 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %137, ptr noundef @.str.19, ptr noundef %8) #8
  store i32 %138, ptr %15, align 4, !tbaa !5
  %139 = load i32, ptr %15, align 4, !tbaa !5
  %140 = icmp eq i32 %139, 0
  br i1 %140, label %147, label %141

141:                                              ; preds = %136
  %142 = load double, ptr %8, align 8, !tbaa !11
  %143 = fcmp olt double %142, 0.000000e+00
  br i1 %143, label %147, label %144

144:                                              ; preds = %141
  %145 = load double, ptr %8, align 8, !tbaa !11
  %146 = fcmp ogt double %145, 1.000000e+00
  br i1 %146, label %147, label %150

147:                                              ; preds = %144, %141, %136
  store i32 3, ptr %13, align 4, !tbaa !5
  %148 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %149 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %148, i64 noundef 1024, ptr noundef @.str.22) #8
  br label %262

150:                                              ; preds = %144
  br label %262

151:                                              ; preds = %64
  %152 = load ptr, ptr @optarg, align 8, !tbaa !9
  %153 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %152, ptr noundef @.str.19, ptr noundef %9) #8
  store i32 %153, ptr %15, align 4, !tbaa !5
  %154 = load i32, ptr %15, align 4, !tbaa !5
  %155 = icmp eq i32 %154, 0
  br i1 %155, label %159, label %156

156:                                              ; preds = %151
  %157 = load double, ptr %9, align 8, !tbaa !11
  %158 = fcmp olt double %157, 0.000000e+00
  br i1 %158, label %159, label %162

159:                                              ; preds = %156, %151
  store i32 3, ptr %13, align 4, !tbaa !5
  %160 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %161 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %160, i64 noundef 1024, ptr noundef @.str.23) #8
  br label %262

162:                                              ; preds = %156
  br label %262

163:                                              ; preds = %64
  %164 = load ptr, ptr @optarg, align 8, !tbaa !9
  %165 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %164, ptr noundef @.str.19, ptr noundef %10) #8
  store i32 %165, ptr %15, align 4, !tbaa !5
  %166 = load i32, ptr %15, align 4, !tbaa !5
  %167 = icmp eq i32 %166, 0
  br i1 %167, label %174, label %168

168:                                              ; preds = %163
  %169 = load double, ptr %10, align 8, !tbaa !11
  %170 = fcmp olt double %169, 0.000000e+00
  br i1 %170, label %174, label %171

171:                                              ; preds = %168
  %172 = load double, ptr %10, align 8, !tbaa !11
  %173 = fcmp ogt double %172, 1.000000e+00
  br i1 %173, label %174, label %177

174:                                              ; preds = %171, %168, %163
  store i32 3, ptr %13, align 4, !tbaa !5
  %175 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %176 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %175, i64 noundef 1024, ptr noundef @.str.24) #8
  br label %262

177:                                              ; preds = %171
  br label %262

178:                                              ; preds = %64
  %179 = load ptr, ptr @optarg, align 8, !tbaa !9
  %180 = call i32 @vl_file_meta_parse(ptr noundef %18, ptr noundef %179)
  store i32 %180, ptr %13, align 4, !tbaa !5
  %181 = load i32, ptr %13, align 4, !tbaa !5
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %183, label %192

183:                                              ; preds = %178
  store i32 3, ptr %13, align 4, !tbaa !5
  %184 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %185 = load ptr, ptr %5, align 8, !tbaa !9
  %186 = load i32, ptr @optind, align 4, !tbaa !5
  %187 = sub nsw i32 %186, 1
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds ptr, ptr %185, i64 %188
  %190 = load ptr, ptr %189, align 8, !tbaa !9
  %191 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %184, i64 noundef 1024, ptr noundef @.str.25, ptr noundef %190) #8
  br label %262

192:                                              ; preds = %178
  br label %262

193:                                              ; preds = %64
  %194 = load ptr, ptr @optarg, align 8, !tbaa !9
  %195 = call i32 @vl_file_meta_parse(ptr noundef %19, ptr noundef %194)
  store i32 %195, ptr %13, align 4, !tbaa !5
  %196 = load i32, ptr %13, align 4, !tbaa !5
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %207

198:                                              ; preds = %193
  store i32 3, ptr %13, align 4, !tbaa !5
  %199 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %200 = load ptr, ptr %5, align 8, !tbaa !9
  %201 = load i32, ptr @optind, align 4, !tbaa !5
  %202 = sub nsw i32 %201, 1
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds ptr, ptr %200, i64 %203
  %205 = load ptr, ptr %204, align 8, !tbaa !9
  %206 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %199, i64 noundef 1024, ptr noundef @.str.25, ptr noundef %205) #8
  br label %262

207:                                              ; preds = %193
  br label %262

208:                                              ; preds = %64
  %209 = load ptr, ptr @optarg, align 8, !tbaa !9
  %210 = call i32 @vl_file_meta_parse(ptr noundef %20, ptr noundef %209)
  store i32 %210, ptr %13, align 4, !tbaa !5
  %211 = load i32, ptr %13, align 4, !tbaa !5
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %213, label %222

213:                                              ; preds = %208
  store i32 3, ptr %13, align 4, !tbaa !5
  %214 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %215 = load ptr, ptr %5, align 8, !tbaa !9
  %216 = load i32, ptr @optind, align 4, !tbaa !5
  %217 = sub nsw i32 %216, 1
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds ptr, ptr %215, i64 %218
  %220 = load ptr, ptr %219, align 8, !tbaa !9
  %221 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %214, i64 noundef 1024, ptr noundef @.str.25, ptr noundef %220) #8
  br label %262

222:                                              ; preds = %208
  %223 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 2
  %224 = load i32, ptr %223, align 4, !tbaa !13
  %225 = icmp ne i32 %224, 1
  br i1 %225, label %226, label %229

226:                                              ; preds = %222
  store i32 3, ptr %13, align 4, !tbaa !5
  %227 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %228 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %227, i64 noundef 1024, ptr noundef @.str.26) #8
  br label %262

229:                                              ; preds = %222
  br label %262

230:                                              ; preds = %64
  %231 = load ptr, ptr @optarg, align 8, !tbaa !9
  %232 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %231, ptr noundef @.str.27, ptr noundef %11) #8
  store i32 %232, ptr %15, align 4, !tbaa !5
  %233 = load i32, ptr %15, align 4, !tbaa !5
  %234 = icmp eq i32 %233, 0
  br i1 %234, label %241, label %235

235:                                              ; preds = %230
  %236 = load i32, ptr %11, align 4, !tbaa !5
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %238, label %244

238:                                              ; preds = %235
  %239 = load i32, ptr %11, align 4, !tbaa !5
  %240 = icmp ne i32 %239, 1
  br i1 %240, label %241, label %244

241:                                              ; preds = %238, %230
  store i32 3, ptr %13, align 4, !tbaa !5
  %242 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %243 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %242, i64 noundef 1024, ptr noundef @.str.28) #8
  br label %262

244:                                              ; preds = %238, %235
  br label %262

245:                                              ; preds = %64
  %246 = load ptr, ptr @optarg, align 8, !tbaa !9
  %247 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %246, ptr noundef @.str.27, ptr noundef %12) #8
  store i32 %247, ptr %15, align 4, !tbaa !5
  %248 = load i32, ptr %15, align 4, !tbaa !5
  %249 = icmp eq i32 %248, 0
  br i1 %249, label %256, label %250

250:                                              ; preds = %245
  %251 = load i32, ptr %12, align 4, !tbaa !5
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %259

253:                                              ; preds = %250
  %254 = load i32, ptr %12, align 4, !tbaa !5
  %255 = icmp ne i32 %254, 1
  br i1 %255, label %256, label %259

256:                                              ; preds = %253, %245
  store i32 3, ptr %13, align 4, !tbaa !5
  %257 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %258 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %257, i64 noundef 1024, ptr noundef @.str.29) #8
  br label %262

259:                                              ; preds = %253, %250
  br label %262

260:                                              ; preds = %64
  br label %261

261:                                              ; preds = %260, %64
  call void @abort() #9
  unreachable

262:                                              ; preds = %259, %256, %244, %241, %229, %226, %213, %207, %198, %192, %183, %177, %174, %162, %159, %150, %147, %135, %132, %120, %111, %100, %75, %66
  store i32 0, ptr %22, align 4
  br label %263

263:                                              ; preds = %262, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  %264 = load i32, ptr %22, align 4
  switch i32 %264, label %843 [
    i32 0, label %265
    i32 3, label %266
  ]

265:                                              ; preds = %263
  br label %44, !llvm.loop !15

266:                                              ; preds = %263, %44
  %267 = load i32, ptr %13, align 4, !tbaa !5
  %268 = icmp ne i32 %267, 0
  br i1 %268, label %269, label %277

269:                                              ; preds = %266
  %270 = load ptr, ptr @stderr, align 8, !tbaa !9
  %271 = load ptr, ptr %5, align 8, !tbaa !9
  %272 = getelementptr inbounds ptr, ptr %271, i64 0
  %273 = load ptr, ptr %272, align 8, !tbaa !9
  %274 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %275 = load i32, ptr %13, align 4, !tbaa !5
  %276 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %270, ptr noundef @.str.30, ptr noundef %273, ptr noundef %274, i32 noundef %275) #8
  call void @exit(i32 noundef 1) #9
  unreachable

277:                                              ; preds = %266
  %278 = load i32, ptr @optind, align 4, !tbaa !5
  %279 = load i32, ptr %4, align 4, !tbaa !5
  %280 = sub nsw i32 %279, %278
  store i32 %280, ptr %4, align 4, !tbaa !5
  %281 = load i32, ptr @optind, align 4, !tbaa !5
  %282 = load ptr, ptr %5, align 8, !tbaa !9
  %283 = sext i32 %281 to i64
  %284 = getelementptr inbounds ptr, ptr %282, i64 %283
  store ptr %284, ptr %5, align 8, !tbaa !9
  %285 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 0
  %286 = load i32, ptr %285, align 8, !tbaa !17
  %287 = icmp eq i32 %286, 0
  br i1 %287, label %288, label %294

288:                                              ; preds = %277
  %289 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 0
  %290 = load i32, ptr %289, align 8, !tbaa !17
  %291 = icmp eq i32 %290, 0
  br i1 %291, label %292, label %294

292:                                              ; preds = %288
  %293 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 0
  store i32 1, ptr %293, align 8, !tbaa !17
  br label %294

294:                                              ; preds = %292, %288, %277
  %295 = load i32, ptr %17, align 4, !tbaa !5
  %296 = icmp sgt i32 %295, 1
  br i1 %296, label %297, label %331

297:                                              ; preds = %294
  %298 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  %299 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 0
  %300 = load i32, ptr %299, align 8, !tbaa !17
  %301 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, i32 noundef %300)
  %302 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 1
  %303 = getelementptr inbounds [1024 x i8], ptr %302, i64 0, i64 0
  %304 = call i32 (ptr, ...) @printf(ptr noundef @.str.33, ptr noundef %303)
  %305 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 2
  %306 = load i32, ptr %305, align 4, !tbaa !13
  %307 = call ptr @vl_string_protocol_name(i32 noundef %306)
  %308 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, ptr noundef %307)
  %309 = call i32 (ptr, ...) @printf(ptr noundef @.str.35)
  %310 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 0
  %311 = load i32, ptr %310, align 8, !tbaa !17
  %312 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, i32 noundef %311)
  %313 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 1
  %314 = getelementptr inbounds [1024 x i8], ptr %313, i64 0, i64 0
  %315 = call i32 (ptr, ...) @printf(ptr noundef @.str.33, ptr noundef %314)
  %316 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 2
  %317 = load i32, ptr %316, align 4, !tbaa !13
  %318 = call ptr @vl_string_protocol_name(i32 noundef %317)
  %319 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, ptr noundef %318)
  %320 = call i32 (ptr, ...) @printf(ptr noundef @.str.36)
  %321 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 0
  %322 = load i32, ptr %321, align 8, !tbaa !17
  %323 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, i32 noundef %322)
  %324 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 1
  %325 = getelementptr inbounds [1024 x i8], ptr %324, i64 0, i64 0
  %326 = call i32 (ptr, ...) @printf(ptr noundef @.str.33, ptr noundef %325)
  %327 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 2
  %328 = load i32, ptr %327, align 4, !tbaa !13
  %329 = call ptr @vl_string_protocol_name(i32 noundef %328)
  %330 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, ptr noundef %329)
  br label %331

331:                                              ; preds = %297, %294
  br label %332

332:                                              ; preds = %839, %331
  %333 = load i32, ptr %4, align 4, !tbaa !5
  %334 = add nsw i32 %333, -1
  store i32 %334, ptr %4, align 4, !tbaa !5
  %335 = icmp ne i32 %333, 0
  br i1 %335, label %336, label %840

336:                                              ; preds = %332
  call void @llvm.lifetime.start.p0(i64 1024, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %337 = load ptr, ptr %5, align 8, !tbaa !9
  %338 = getelementptr inbounds ptr, ptr %337, i32 1
  store ptr %338, ptr %5, align 8, !tbaa !9
  %339 = load ptr, ptr %337, align 8, !tbaa !9
  store ptr %339, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  store ptr null, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  store ptr null, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  store ptr null, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  store ptr null, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 0, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  store i32 0, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 0, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  store i32 0, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  store ptr null, ptr %43, align 8, !tbaa !9
  %340 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
  %341 = load ptr, ptr %24, align 8, !tbaa !9
  %342 = call i64 @vl_string_basename(ptr noundef %340, i64 noundef 1024, ptr noundef %341, i64 noundef 1)
  store i64 %342, ptr %42, align 8, !tbaa !18
  %343 = load i64, ptr %42, align 8, !tbaa !18
  %344 = icmp uge i64 %343, 1024
  %345 = zext i1 %344 to i32
  store i32 %345, ptr %13, align 4, !tbaa !5
  %346 = load i32, ptr %13, align 4, !tbaa !5
  %347 = icmp ne i32 %346, 0
  br i1 %347, label %348, label %352

348:                                              ; preds = %336
  %349 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %350 = load ptr, ptr %24, align 8, !tbaa !9
  %351 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %349, i64 noundef 1024, ptr noundef @.str.37, ptr noundef %350) #8
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %805

352:                                              ; preds = %336
  %353 = load i32, ptr %17, align 4, !tbaa !5
  %354 = icmp ne i32 %353, 0
  br i1 %354, label %355, label %358

355:                                              ; preds = %352
  %356 = load ptr, ptr %24, align 8, !tbaa !9
  %357 = call i32 (ptr, ...) @printf(ptr noundef @.str.38, ptr noundef %356)
  br label %358

358:                                              ; preds = %355, %352
  %359 = load i32, ptr %17, align 4, !tbaa !5
  %360 = icmp sgt i32 %359, 1
  br i1 %360, label %361, label %364

361:                                              ; preds = %358
  %362 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
  %363 = call i32 (ptr, ...) @printf(ptr noundef @.str.39, ptr noundef %362)
  br label %364

364:                                              ; preds = %361, %358
  %365 = load ptr, ptr %24, align 8, !tbaa !9
  %366 = call noalias ptr @fopen(ptr noundef %365, ptr noundef @.str.40)
  store ptr %366, ptr %43, align 8, !tbaa !9
  %367 = load ptr, ptr %43, align 8, !tbaa !9
  %368 = icmp ne ptr %367, null
  br i1 %368, label %373, label %369

369:                                              ; preds = %364
  store i32 4, ptr %13, align 4, !tbaa !5
  %370 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %371 = load ptr, ptr %24, align 8, !tbaa !9
  %372 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %370, i64 noundef 1024, ptr noundef @.str.41, ptr noundef %371) #8
  br label %805

373:                                              ; preds = %364
  %374 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
  %375 = call i32 @vl_file_meta_open(ptr noundef %19, ptr noundef %374, ptr noundef @.str.42)
  store i32 %375, ptr %13, align 4, !tbaa !5
  %376 = load i32, ptr %13, align 4, !tbaa !5
  %377 = icmp eq i32 %376, 1
  br i1 %377, label %378, label %381

378:                                              ; preds = %373
  %379 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %380 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %379, i64 noundef 1024, ptr noundef @.str.43) #8
  br label %805

381:                                              ; preds = %373
  %382 = load i32, ptr %13, align 4, !tbaa !5
  %383 = icmp ne i32 %382, 0
  br i1 %383, label %384, label %389

384:                                              ; preds = %381
  %385 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %386 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 3
  %387 = getelementptr inbounds [1024 x i8], ptr %386, i64 0, i64 0
  %388 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %385, i64 noundef 1024, ptr noundef @.str.44, ptr noundef %387) #8
  br label %805

389:                                              ; preds = %381
  br label %390

390:                                              ; preds = %389
  %391 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
  %392 = call i32 @vl_file_meta_open(ptr noundef %18, ptr noundef %391, ptr noundef @.str.42)
  store i32 %392, ptr %13, align 4, !tbaa !5
  %393 = load i32, ptr %13, align 4, !tbaa !5
  %394 = icmp eq i32 %393, 1
  br i1 %394, label %395, label %398

395:                                              ; preds = %390
  %396 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %397 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %396, i64 noundef 1024, ptr noundef @.str.43) #8
  br label %805

398:                                              ; preds = %390
  %399 = load i32, ptr %13, align 4, !tbaa !5
  %400 = icmp ne i32 %399, 0
  br i1 %400, label %401, label %406

401:                                              ; preds = %398
  %402 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %403 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 3
  %404 = getelementptr inbounds [1024 x i8], ptr %403, i64 0, i64 0
  %405 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %402, i64 noundef 1024, ptr noundef @.str.44, ptr noundef %404) #8
  br label %805

406:                                              ; preds = %398
  br label %407

407:                                              ; preds = %406
  %408 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
  %409 = call i32 @vl_file_meta_open(ptr noundef %20, ptr noundef %408, ptr noundef @.str.42)
  store i32 %409, ptr %13, align 4, !tbaa !5
  %410 = load i32, ptr %13, align 4, !tbaa !5
  %411 = icmp eq i32 %410, 1
  br i1 %411, label %412, label %415

412:                                              ; preds = %407
  %413 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %414 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %413, i64 noundef 1024, ptr noundef @.str.43) #8
  br label %805

415:                                              ; preds = %407
  %416 = load i32, ptr %13, align 4, !tbaa !5
  %417 = icmp ne i32 %416, 0
  br i1 %417, label %418, label %423

418:                                              ; preds = %415
  %419 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %420 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 3
  %421 = getelementptr inbounds [1024 x i8], ptr %420, i64 0, i64 0
  %422 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %419, i64 noundef 1024, ptr noundef @.str.44, ptr noundef %421) #8
  br label %805

423:                                              ; preds = %415
  br label %424

424:                                              ; preds = %423
  %425 = load i32, ptr %17, align 4, !tbaa !5
  %426 = icmp sgt i32 %425, 1
  br i1 %426, label %427, label %452

427:                                              ; preds = %424
  %428 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 0
  %429 = load i32, ptr %428, align 8, !tbaa !17
  %430 = icmp ne i32 %429, 0
  br i1 %430, label %431, label %435

431:                                              ; preds = %427
  %432 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 3
  %433 = getelementptr inbounds [1024 x i8], ptr %432, i64 0, i64 0
  %434 = call i32 (ptr, ...) @printf(ptr noundef @.str.45, ptr noundef %433)
  br label %435

435:                                              ; preds = %431, %427
  %436 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 0
  %437 = load i32, ptr %436, align 8, !tbaa !17
  %438 = icmp ne i32 %437, 0
  br i1 %438, label %439, label %443

439:                                              ; preds = %435
  %440 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 3
  %441 = getelementptr inbounds [1024 x i8], ptr %440, i64 0, i64 0
  %442 = call i32 (ptr, ...) @printf(ptr noundef @.str.46, ptr noundef %441)
  br label %443

443:                                              ; preds = %439, %435
  %444 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 0
  %445 = load i32, ptr %444, align 8, !tbaa !17
  %446 = icmp ne i32 %445, 0
  br i1 %446, label %447, label %451

447:                                              ; preds = %443
  %448 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 3
  %449 = getelementptr inbounds [1024 x i8], ptr %448, i64 0, i64 0
  %450 = call i32 (ptr, ...) @printf(ptr noundef @.str.47, ptr noundef %449)
  br label %451

451:                                              ; preds = %447, %443
  br label %452

452:                                              ; preds = %451, %424
  %453 = load ptr, ptr %43, align 8, !tbaa !9
  %454 = call i32 @vl_pgm_extract_head(ptr noundef %453, ptr noundef %29)
  store i32 %454, ptr %13, align 4, !tbaa !5
  %455 = load i32, ptr %13, align 4, !tbaa !5
  %456 = icmp ne i32 %455, 0
  br i1 %456, label %457, label %460

457:                                              ; preds = %452
  store i32 4, ptr %13, align 4, !tbaa !5
  %458 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %459 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %458, i64 noundef 1024, ptr noundef @.str.48) #8
  br label %805

460:                                              ; preds = %452
  %461 = load i32, ptr %17, align 4, !tbaa !5
  %462 = icmp ne i32 %461, 0
  br i1 %462, label %463, label %469

463:                                              ; preds = %460
  %464 = getelementptr inbounds %struct._VlPgmImage, ptr %29, i32 0, i32 0
  %465 = load i64, ptr %464, align 8, !tbaa !20
  %466 = getelementptr inbounds %struct._VlPgmImage, ptr %29, i32 0, i32 1
  %467 = load i64, ptr %466, align 8, !tbaa !22
  %468 = call i32 (ptr, ...) @printf(ptr noundef @.str.49, i64 noundef %465, i64 noundef %467)
  br label %469

469:                                              ; preds = %463, %460
  %470 = call i64 @vl_pgm_get_npixels(ptr noundef %29)
  %471 = call i64 @vl_pgm_get_bpp(ptr noundef %29)
  %472 = mul i64 %470, %471
  %473 = call noalias ptr @malloc(i64 noundef %472) #10
  store ptr %473, ptr %27, align 8, !tbaa !9
  %474 = load ptr, ptr %27, align 8, !tbaa !9
  %475 = icmp ne ptr %474, null
  br i1 %475, label %479, label %476

476:                                              ; preds = %469
  store i32 2, ptr %13, align 4, !tbaa !5
  %477 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %478 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %477, i64 noundef 1024, ptr noundef @.str.50) #8
  br label %805

479:                                              ; preds = %469
  %480 = load ptr, ptr %43, align 8, !tbaa !9
  %481 = load ptr, ptr %27, align 8, !tbaa !9
  %482 = call i32 @vl_pgm_extract_data(ptr noundef %480, ptr noundef %29, ptr noundef %481)
  store i32 %482, ptr %13, align 4, !tbaa !5
  %483 = load i32, ptr %13, align 4, !tbaa !5
  %484 = icmp ne i32 %483, 0
  br i1 %484, label %485, label %488

485:                                              ; preds = %479
  %486 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %487 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %486, i64 noundef 1024, ptr noundef @.str.51) #8
  br label %805

488:                                              ; preds = %479
  %489 = getelementptr inbounds %struct._VlPgmImage, ptr %29, i32 0, i32 0
  %490 = load i64, ptr %489, align 8, !tbaa !20
  %491 = trunc i64 %490 to i32
  %492 = getelementptr inbounds [2 x i32], ptr %34, i64 0, i64 0
  store i32 %491, ptr %492, align 4, !tbaa !5
  %493 = getelementptr inbounds %struct._VlPgmImage, ptr %29, i32 0, i32 1
  %494 = load i64, ptr %493, align 8, !tbaa !22
  %495 = trunc i64 %494 to i32
  %496 = getelementptr inbounds [2 x i32], ptr %34, i64 0, i64 1
  store i32 %495, ptr %496, align 4, !tbaa !5
  %497 = getelementptr inbounds [2 x i32], ptr %34, i64 0, i64 0
  %498 = call ptr @vl_mser_new(i32 noundef 2, ptr noundef %497)
  store ptr %498, ptr %25, align 8, !tbaa !9
  %499 = getelementptr inbounds [2 x i32], ptr %34, i64 0, i64 0
  %500 = call ptr @vl_mser_new(i32 noundef 2, ptr noundef %499)
  store ptr %500, ptr %26, align 8, !tbaa !9
  %501 = load ptr, ptr %25, align 8, !tbaa !9
  %502 = icmp ne ptr %501, null
  br i1 %502, label %503, label %506

503:                                              ; preds = %488
  %504 = load ptr, ptr %26, align 8, !tbaa !9
  %505 = icmp ne ptr %504, null
  br i1 %505, label %509, label %506

506:                                              ; preds = %503, %488
  %507 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %508 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %507, i64 noundef 1024, ptr noundef @.str.52) #8
  br label %805

509:                                              ; preds = %503
  %510 = load double, ptr %6, align 8, !tbaa !11
  %511 = fcmp oge double %510, 0.000000e+00
  br i1 %511, label %512, label %516

512:                                              ; preds = %509
  %513 = load ptr, ptr %25, align 8, !tbaa !9
  %514 = load double, ptr %6, align 8, !tbaa !11
  %515 = fptoui double %514 to i8
  call void @vl_mser_set_delta(ptr noundef %513, i8 noundef zeroext %515)
  br label %516

516:                                              ; preds = %512, %509
  %517 = load double, ptr %7, align 8, !tbaa !11
  %518 = fcmp oge double %517, 0.000000e+00
  br i1 %518, label %519, label %522

519:                                              ; preds = %516
  %520 = load ptr, ptr %25, align 8, !tbaa !9
  %521 = load double, ptr %7, align 8, !tbaa !11
  call void @vl_mser_set_max_area(ptr noundef %520, double noundef %521)
  br label %522

522:                                              ; preds = %519, %516
  %523 = load double, ptr %8, align 8, !tbaa !11
  %524 = fcmp oge double %523, 0.000000e+00
  br i1 %524, label %525, label %528

525:                                              ; preds = %522
  %526 = load ptr, ptr %25, align 8, !tbaa !9
  %527 = load double, ptr %8, align 8, !tbaa !11
  call void @vl_mser_set_min_area(ptr noundef %526, double noundef %527)
  br label %528

528:                                              ; preds = %525, %522
  %529 = load double, ptr %9, align 8, !tbaa !11
  %530 = fcmp oge double %529, 0.000000e+00
  br i1 %530, label %531, label %534

531:                                              ; preds = %528
  %532 = load ptr, ptr %25, align 8, !tbaa !9
  %533 = load double, ptr %9, align 8, !tbaa !11
  call void @vl_mser_set_max_variation(ptr noundef %532, double noundef %533)
  br label %534

534:                                              ; preds = %531, %528
  %535 = load double, ptr %10, align 8, !tbaa !11
  %536 = fcmp oge double %535, 0.000000e+00
  br i1 %536, label %537, label %540

537:                                              ; preds = %534
  %538 = load ptr, ptr %25, align 8, !tbaa !9
  %539 = load double, ptr %10, align 8, !tbaa !11
  call void @vl_mser_set_min_diversity(ptr noundef %538, double noundef %539)
  br label %540

540:                                              ; preds = %537, %534
  %541 = load double, ptr %6, align 8, !tbaa !11
  %542 = fcmp oge double %541, 0.000000e+00
  br i1 %542, label %543, label %547

543:                                              ; preds = %540
  %544 = load ptr, ptr %26, align 8, !tbaa !9
  %545 = load double, ptr %6, align 8, !tbaa !11
  %546 = fptoui double %545 to i8
  call void @vl_mser_set_delta(ptr noundef %544, i8 noundef zeroext %546)
  br label %547

547:                                              ; preds = %543, %540
  %548 = load double, ptr %7, align 8, !tbaa !11
  %549 = fcmp oge double %548, 0.000000e+00
  br i1 %549, label %550, label %553

550:                                              ; preds = %547
  %551 = load ptr, ptr %26, align 8, !tbaa !9
  %552 = load double, ptr %7, align 8, !tbaa !11
  call void @vl_mser_set_max_area(ptr noundef %551, double noundef %552)
  br label %553

553:                                              ; preds = %550, %547
  %554 = load double, ptr %8, align 8, !tbaa !11
  %555 = fcmp oge double %554, 0.000000e+00
  br i1 %555, label %556, label %559

556:                                              ; preds = %553
  %557 = load ptr, ptr %26, align 8, !tbaa !9
  %558 = load double, ptr %8, align 8, !tbaa !11
  call void @vl_mser_set_min_area(ptr noundef %557, double noundef %558)
  br label %559

559:                                              ; preds = %556, %553
  %560 = load double, ptr %9, align 8, !tbaa !11
  %561 = fcmp oge double %560, 0.000000e+00
  br i1 %561, label %562, label %565

562:                                              ; preds = %559
  %563 = load ptr, ptr %26, align 8, !tbaa !9
  %564 = load double, ptr %9, align 8, !tbaa !11
  call void @vl_mser_set_max_variation(ptr noundef %563, double noundef %564)
  br label %565

565:                                              ; preds = %562, %559
  %566 = load double, ptr %10, align 8, !tbaa !11
  %567 = fcmp oge double %566, 0.000000e+00
  br i1 %567, label %568, label %571

568:                                              ; preds = %565
  %569 = load ptr, ptr %26, align 8, !tbaa !9
  %570 = load double, ptr %10, align 8, !tbaa !11
  call void @vl_mser_set_min_diversity(ptr noundef %569, double noundef %570)
  br label %571

571:                                              ; preds = %568, %565
  %572 = load i32, ptr %17, align 4, !tbaa !5
  %573 = icmp ne i32 %572, 0
  br i1 %573, label %574, label %592

574:                                              ; preds = %571
  %575 = call i32 (ptr, ...) @printf(ptr noundef @.str.53)
  %576 = load ptr, ptr %25, align 8, !tbaa !9
  %577 = call zeroext i8 @vl_mser_get_delta(ptr noundef %576)
  %578 = zext i8 %577 to i32
  %579 = call i32 (ptr, ...) @printf(ptr noundef @.str.54, i32 noundef %578)
  %580 = load ptr, ptr %25, align 8, !tbaa !9
  %581 = call double @vl_mser_get_max_area(ptr noundef %580)
  %582 = call i32 (ptr, ...) @printf(ptr noundef @.str.55, double noundef %581)
  %583 = load ptr, ptr %25, align 8, !tbaa !9
  %584 = call double @vl_mser_get_min_area(ptr noundef %583)
  %585 = call i32 (ptr, ...) @printf(ptr noundef @.str.56, double noundef %584)
  %586 = load ptr, ptr %25, align 8, !tbaa !9
  %587 = call double @vl_mser_get_max_variation(ptr noundef %586)
  %588 = call i32 (ptr, ...) @printf(ptr noundef @.str.57, double noundef %587)
  %589 = load ptr, ptr %25, align 8, !tbaa !9
  %590 = call double @vl_mser_get_min_diversity(ptr noundef %589)
  %591 = call i32 (ptr, ...) @printf(ptr noundef @.str.58, double noundef %590)
  br label %592

592:                                              ; preds = %574, %571
  %593 = load i32, ptr %12, align 4, !tbaa !5
  %594 = icmp ne i32 %593, 0
  br i1 %594, label %595, label %664

595:                                              ; preds = %592
  %596 = load ptr, ptr %25, align 8, !tbaa !9
  %597 = load ptr, ptr %27, align 8, !tbaa !9
  call void @vl_mser_process(ptr noundef %596, ptr noundef %597)
  %598 = load ptr, ptr %25, align 8, !tbaa !9
  %599 = call i32 @vl_mser_get_regions_num(ptr noundef %598)
  store i32 %599, ptr %35, align 4, !tbaa !5
  %600 = load ptr, ptr %25, align 8, !tbaa !9
  %601 = call ptr @vl_mser_get_regions(ptr noundef %600)
  store ptr %601, ptr %30, align 8, !tbaa !9
  %602 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 0
  %603 = load i32, ptr %602, align 8, !tbaa !17
  %604 = icmp ne i32 %603, 0
  br i1 %604, label %605, label %623

605:                                              ; preds = %595
  store i32 0, ptr %39, align 4, !tbaa !5
  br label %606

606:                                              ; preds = %619, %605
  %607 = load i32, ptr %39, align 4, !tbaa !5
  %608 = load i32, ptr %35, align 4, !tbaa !5
  %609 = icmp slt i32 %607, %608
  br i1 %609, label %610, label %622

610:                                              ; preds = %606
  %611 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 4
  %612 = load ptr, ptr %611, align 8, !tbaa !23
  %613 = load ptr, ptr %30, align 8, !tbaa !9
  %614 = load i32, ptr %39, align 4, !tbaa !5
  %615 = sext i32 %614 to i64
  %616 = getelementptr inbounds i32, ptr %613, i64 %615
  %617 = load i32, ptr %616, align 4, !tbaa !5
  %618 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %612, ptr noundef @.str.59, i32 noundef %617) #8
  br label %619

619:                                              ; preds = %610
  %620 = load i32, ptr %39, align 4, !tbaa !5
  %621 = add nsw i32 %620, 1
  store i32 %621, ptr %39, align 4, !tbaa !5
  br label %606, !llvm.loop !24

622:                                              ; preds = %606
  br label %623

623:                                              ; preds = %622, %595
  %624 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 0
  %625 = load i32, ptr %624, align 8, !tbaa !17
  %626 = icmp ne i32 %625, 0
  br i1 %626, label %627, label %663

627:                                              ; preds = %623
  %628 = load ptr, ptr %25, align 8, !tbaa !9
  call void @vl_mser_ell_fit(ptr noundef %628)
  %629 = load ptr, ptr %25, align 8, !tbaa !9
  %630 = call i32 @vl_mser_get_ell_num(ptr noundef %629)
  store i32 %630, ptr %37, align 4, !tbaa !5
  %631 = load ptr, ptr %25, align 8, !tbaa !9
  %632 = call i32 @vl_mser_get_ell_dof(ptr noundef %631)
  store i32 %632, ptr %41, align 4, !tbaa !5
  %633 = load ptr, ptr %25, align 8, !tbaa !9
  %634 = call ptr @vl_mser_get_ell(ptr noundef %633)
  store ptr %634, ptr %32, align 8, !tbaa !9
  store i32 0, ptr %39, align 4, !tbaa !5
  br label %635

635:                                              ; preds = %659, %627
  %636 = load i32, ptr %39, align 4, !tbaa !5
  %637 = load i32, ptr %37, align 4, !tbaa !5
  %638 = icmp slt i32 %636, %637
  br i1 %638, label %639, label %662

639:                                              ; preds = %635
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %640

640:                                              ; preds = %652, %639
  %641 = load i32, ptr %40, align 4, !tbaa !5
  %642 = load i32, ptr %41, align 4, !tbaa !5
  %643 = icmp slt i32 %641, %642
  br i1 %643, label %644, label %655

644:                                              ; preds = %640
  %645 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 4
  %646 = load ptr, ptr %645, align 8, !tbaa !23
  %647 = load ptr, ptr %32, align 8, !tbaa !9
  %648 = getelementptr inbounds float, ptr %647, i32 1
  store ptr %648, ptr %32, align 8, !tbaa !9
  %649 = load float, ptr %647, align 4, !tbaa !25
  %650 = fpext float %649 to double
  %651 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %646, ptr noundef @.str.60, double noundef %650) #8
  br label %652

652:                                              ; preds = %644
  %653 = load i32, ptr %40, align 4, !tbaa !5
  %654 = add nsw i32 %653, 1
  store i32 %654, ptr %40, align 4, !tbaa !5
  br label %640, !llvm.loop !27

655:                                              ; preds = %640
  %656 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 4
  %657 = load ptr, ptr %656, align 8, !tbaa !23
  %658 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %657, ptr noundef @.str.61) #8
  br label %659

659:                                              ; preds = %655
  %660 = load i32, ptr %39, align 4, !tbaa !5
  %661 = add nsw i32 %660, 1
  store i32 %661, ptr %39, align 4, !tbaa !5
  br label %635, !llvm.loop !28

662:                                              ; preds = %635
  br label %663

663:                                              ; preds = %662, %623
  br label %664

664:                                              ; preds = %663, %592
  %665 = load i32, ptr %11, align 4, !tbaa !5
  %666 = icmp ne i32 %665, 0
  br i1 %666, label %667, label %769

667:                                              ; preds = %664
  %668 = call i64 @vl_pgm_get_npixels(ptr noundef %29)
  %669 = call i64 @vl_pgm_get_bpp(ptr noundef %29)
  %670 = mul i64 %668, %669
  %671 = call noalias ptr @malloc(i64 noundef %670) #10
  store ptr %671, ptr %28, align 8, !tbaa !9
  store i32 0, ptr %39, align 4, !tbaa !5
  br label %672

672:                                              ; preds = %690, %667
  %673 = load i32, ptr %39, align 4, !tbaa !5
  %674 = call i64 @vl_pgm_get_npixels(ptr noundef %29)
  %675 = trunc i64 %674 to i32
  %676 = icmp slt i32 %673, %675
  br i1 %676, label %677, label %693

677:                                              ; preds = %672
  %678 = load ptr, ptr %27, align 8, !tbaa !9
  %679 = load i32, ptr %39, align 4, !tbaa !5
  %680 = sext i32 %679 to i64
  %681 = getelementptr inbounds i8, ptr %678, i64 %680
  %682 = load i8, ptr %681, align 1, !tbaa !29
  %683 = zext i8 %682 to i32
  %684 = xor i32 %683, -1
  %685 = trunc i32 %684 to i8
  %686 = load ptr, ptr %28, align 8, !tbaa !9
  %687 = load i32, ptr %39, align 4, !tbaa !5
  %688 = sext i32 %687 to i64
  %689 = getelementptr inbounds i8, ptr %686, i64 %688
  store i8 %685, ptr %689, align 1, !tbaa !29
  br label %690

690:                                              ; preds = %677
  %691 = load i32, ptr %39, align 4, !tbaa !5
  %692 = add nsw i32 %691, 1
  store i32 %692, ptr %39, align 4, !tbaa !5
  br label %672, !llvm.loop !30

693:                                              ; preds = %672
  %694 = load ptr, ptr %28, align 8, !tbaa !9
  %695 = icmp ne ptr %694, null
  br i1 %695, label %699, label %696

696:                                              ; preds = %693
  store i32 2, ptr %13, align 4, !tbaa !5
  %697 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %698 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %697, i64 noundef 1024, ptr noundef @.str.50) #8
  br label %805

699:                                              ; preds = %693
  %700 = load ptr, ptr %26, align 8, !tbaa !9
  %701 = load ptr, ptr %28, align 8, !tbaa !9
  call void @vl_mser_process(ptr noundef %700, ptr noundef %701)
  %702 = load ptr, ptr %26, align 8, !tbaa !9
  %703 = call i32 @vl_mser_get_regions_num(ptr noundef %702)
  store i32 %703, ptr %36, align 4, !tbaa !5
  %704 = load ptr, ptr %26, align 8, !tbaa !9
  %705 = call ptr @vl_mser_get_regions(ptr noundef %704)
  store ptr %705, ptr %31, align 8, !tbaa !9
  %706 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 0
  %707 = load i32, ptr %706, align 8, !tbaa !17
  %708 = icmp ne i32 %707, 0
  br i1 %708, label %709, label %728

709:                                              ; preds = %699
  store i32 0, ptr %39, align 4, !tbaa !5
  br label %710

710:                                              ; preds = %724, %709
  %711 = load i32, ptr %39, align 4, !tbaa !5
  %712 = load i32, ptr %36, align 4, !tbaa !5
  %713 = icmp slt i32 %711, %712
  br i1 %713, label %714, label %727

714:                                              ; preds = %710
  %715 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 4
  %716 = load ptr, ptr %715, align 8, !tbaa !23
  %717 = load ptr, ptr %31, align 8, !tbaa !9
  %718 = load i32, ptr %39, align 4, !tbaa !5
  %719 = sext i32 %718 to i64
  %720 = getelementptr inbounds i32, ptr %717, i64 %719
  %721 = load i32, ptr %720, align 4, !tbaa !5
  %722 = sub i32 0, %721
  %723 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %716, ptr noundef @.str.59, i32 noundef %722) #8
  br label %724

724:                                              ; preds = %714
  %725 = load i32, ptr %39, align 4, !tbaa !5
  %726 = add nsw i32 %725, 1
  store i32 %726, ptr %39, align 4, !tbaa !5
  br label %710, !llvm.loop !31

727:                                              ; preds = %710
  br label %728

728:                                              ; preds = %727, %699
  %729 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 0
  %730 = load i32, ptr %729, align 8, !tbaa !17
  %731 = icmp ne i32 %730, 0
  br i1 %731, label %732, label %768

732:                                              ; preds = %728
  %733 = load ptr, ptr %26, align 8, !tbaa !9
  call void @vl_mser_ell_fit(ptr noundef %733)
  %734 = load ptr, ptr %26, align 8, !tbaa !9
  %735 = call i32 @vl_mser_get_ell_num(ptr noundef %734)
  store i32 %735, ptr %38, align 4, !tbaa !5
  %736 = load ptr, ptr %26, align 8, !tbaa !9
  %737 = call i32 @vl_mser_get_ell_dof(ptr noundef %736)
  store i32 %737, ptr %41, align 4, !tbaa !5
  %738 = load ptr, ptr %26, align 8, !tbaa !9
  %739 = call ptr @vl_mser_get_ell(ptr noundef %738)
  store ptr %739, ptr %33, align 8, !tbaa !9
  store i32 0, ptr %39, align 4, !tbaa !5
  br label %740

740:                                              ; preds = %764, %732
  %741 = load i32, ptr %39, align 4, !tbaa !5
  %742 = load i32, ptr %38, align 4, !tbaa !5
  %743 = icmp slt i32 %741, %742
  br i1 %743, label %744, label %767

744:                                              ; preds = %740
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %745

745:                                              ; preds = %757, %744
  %746 = load i32, ptr %40, align 4, !tbaa !5
  %747 = load i32, ptr %41, align 4, !tbaa !5
  %748 = icmp slt i32 %746, %747
  br i1 %748, label %749, label %760

749:                                              ; preds = %745
  %750 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 4
  %751 = load ptr, ptr %750, align 8, !tbaa !23
  %752 = load ptr, ptr %33, align 8, !tbaa !9
  %753 = getelementptr inbounds float, ptr %752, i32 1
  store ptr %753, ptr %33, align 8, !tbaa !9
  %754 = load float, ptr %752, align 4, !tbaa !25
  %755 = fpext float %754 to double
  %756 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %751, ptr noundef @.str.60, double noundef %755) #8
  br label %757

757:                                              ; preds = %749
  %758 = load i32, ptr %40, align 4, !tbaa !5
  %759 = add nsw i32 %758, 1
  store i32 %759, ptr %40, align 4, !tbaa !5
  br label %745, !llvm.loop !32

760:                                              ; preds = %745
  %761 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 4
  %762 = load ptr, ptr %761, align 8, !tbaa !23
  %763 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %762, ptr noundef @.str.61) #8
  br label %764

764:                                              ; preds = %760
  %765 = load i32, ptr %39, align 4, !tbaa !5
  %766 = add nsw i32 %765, 1
  store i32 %766, ptr %39, align 4, !tbaa !5
  br label %740, !llvm.loop !33

767:                                              ; preds = %740
  br label %768

768:                                              ; preds = %767, %728
  br label %769

769:                                              ; preds = %768, %664
  %770 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 0
  %771 = load i32, ptr %770, align 8, !tbaa !17
  %772 = icmp ne i32 %771, 0
  br i1 %772, label %773, label %804

773:                                              ; preds = %769
  %774 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 4
  %775 = load ptr, ptr %774, align 8, !tbaa !23
  %776 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %775, ptr noundef @.str.62) #8
  %777 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 4
  %778 = load ptr, ptr %777, align 8, !tbaa !23
  %779 = load ptr, ptr %24, align 8, !tbaa !9
  %780 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %778, ptr noundef @.str.63, ptr noundef %779) #8
  %781 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 0
  %782 = load i32, ptr %781, align 8, !tbaa !17
  %783 = icmp ne i32 %782, 0
  br i1 %783, label %784, label %790

784:                                              ; preds = %773
  %785 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 4
  %786 = load ptr, ptr %785, align 8, !tbaa !23
  %787 = getelementptr inbounds %struct._VlFileMeta, ptr %19, i32 0, i32 3
  %788 = getelementptr inbounds [1024 x i8], ptr %787, i64 0, i64 0
  %789 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %786, ptr noundef @.str.64, ptr noundef %788) #8
  br label %790

790:                                              ; preds = %784, %773
  %791 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 0
  %792 = load i32, ptr %791, align 8, !tbaa !17
  %793 = icmp ne i32 %792, 0
  br i1 %793, label %794, label %800

794:                                              ; preds = %790
  %795 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 4
  %796 = load ptr, ptr %795, align 8, !tbaa !23
  %797 = getelementptr inbounds %struct._VlFileMeta, ptr %18, i32 0, i32 3
  %798 = getelementptr inbounds [1024 x i8], ptr %797, i64 0, i64 0
  %799 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %796, ptr noundef @.str.65, ptr noundef %798) #8
  br label %800

800:                                              ; preds = %794, %790
  %801 = getelementptr inbounds %struct._VlFileMeta, ptr %20, i32 0, i32 4
  %802 = load ptr, ptr %801, align 8, !tbaa !23
  %803 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %802, ptr noundef @.str.66) #8
  br label %804

804:                                              ; preds = %800, %769
  br label %805

805:                                              ; preds = %804, %696, %506, %485, %476, %457, %418, %412, %401, %395, %384, %378, %369, %348
  %806 = load ptr, ptr %25, align 8, !tbaa !9
  %807 = icmp ne ptr %806, null
  br i1 %807, label %808, label %810

808:                                              ; preds = %805
  %809 = load ptr, ptr %25, align 8, !tbaa !9
  call void @vl_mser_delete(ptr noundef %809)
  store ptr null, ptr %25, align 8, !tbaa !9
  br label %810

810:                                              ; preds = %808, %805
  %811 = load ptr, ptr %26, align 8, !tbaa !9
  %812 = icmp ne ptr %811, null
  br i1 %812, label %813, label %815

813:                                              ; preds = %810
  %814 = load ptr, ptr %26, align 8, !tbaa !9
  call void @vl_mser_delete(ptr noundef %814)
  store ptr null, ptr %26, align 8, !tbaa !9
  br label %815

815:                                              ; preds = %813, %810
  %816 = load ptr, ptr %27, align 8, !tbaa !9
  %817 = icmp ne ptr %816, null
  br i1 %817, label %818, label %820

818:                                              ; preds = %815
  %819 = load ptr, ptr %27, align 8, !tbaa !9
  call void @free(ptr noundef %819) #8
  store ptr null, ptr %27, align 8, !tbaa !9
  br label %820

820:                                              ; preds = %818, %815
  %821 = load ptr, ptr %28, align 8, !tbaa !9
  %822 = icmp ne ptr %821, null
  br i1 %822, label %823, label %825

823:                                              ; preds = %820
  %824 = load ptr, ptr %28, align 8, !tbaa !9
  call void @free(ptr noundef %824) #8
  store ptr null, ptr %28, align 8, !tbaa !9
  br label %825

825:                                              ; preds = %823, %820
  %826 = load ptr, ptr %43, align 8, !tbaa !9
  %827 = icmp ne ptr %826, null
  br i1 %827, label %828, label %831

828:                                              ; preds = %825
  %829 = load ptr, ptr %43, align 8, !tbaa !9
  %830 = call i32 @fclose(ptr noundef %829)
  store ptr null, ptr %43, align 8, !tbaa !9
  br label %831

831:                                              ; preds = %828, %825
  call void @vl_file_meta_close(ptr noundef %18)
  call void @vl_file_meta_close(ptr noundef %19)
  call void @vl_file_meta_close(ptr noundef %20)
  %832 = load i32, ptr %13, align 4, !tbaa !5
  %833 = icmp ne i32 %832, 0
  br i1 %833, label %834, label %839

834:                                              ; preds = %831
  %835 = load ptr, ptr @stderr, align 8, !tbaa !9
  %836 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %837 = load i32, ptr %13, align 4, !tbaa !5
  %838 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %835, ptr noundef @.str.67, ptr noundef %836, i32 noundef %837) #8
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %839

839:                                              ; preds = %834, %831
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr %23) #8
  br label %332, !llvm.loop !34

840:                                              ; preds = %332
  %841 = load i32, ptr %16, align 4, !tbaa !5
  store i32 %841, ptr %3, align 4
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 2064, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 2064, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 2064, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %842 = load i32, ptr %3, align 4
  ret i32 %842

843:                                              ; preds = %263
  unreachable
}

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare i32 @getopt_long(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

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

declare ptr @vl_get_version_string() #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

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

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

; Function Attrs: noreturn nounwind
declare void @abort() #5

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

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

declare ptr @vl_string_protocol_name(i32 noundef) #3

declare i64 @vl_string_basename(ptr noundef, i64 noundef, ptr noundef, i64 noundef) #3

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

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

declare i32 @vl_pgm_extract_head(ptr noundef, ptr noundef) #3

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

declare i64 @vl_pgm_get_npixels(ptr noundef) #3

declare i64 @vl_pgm_get_bpp(ptr noundef) #3

declare i32 @vl_pgm_extract_data(ptr noundef, ptr noundef, ptr noundef) #3

declare ptr @vl_mser_new(i32 noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @vl_mser_set_delta(ptr noundef, i8 noundef zeroext) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @vl_mser_set_max_area(ptr noundef, double noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @vl_mser_set_min_area(ptr noundef, double noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @vl_mser_set_max_variation(ptr noundef, double noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @vl_mser_set_min_diversity(ptr noundef, double noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @vl_mser_get_delta(ptr noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_mser_get_max_area(ptr noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_mser_get_min_area(ptr noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_mser_get_max_variation(ptr noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_mser_get_min_diversity(ptr noundef) #7

declare void @vl_mser_process(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @vl_mser_get_regions_num(ptr noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @vl_mser_get_regions(ptr noundef) #7

declare void @vl_mser_ell_fit(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @vl_mser_get_ell_num(ptr noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @vl_mser_get_ell_dof(ptr noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @vl_mser_get_ell(ptr noundef) #7

declare void @vl_mser_delete(ptr noundef) #3

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

declare i32 @fclose(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @vl_file_meta_close(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 #6 = { 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 #7 = { inlinehint 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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 = !{!"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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 1028}
!14 = !{!"_VlFileMeta", !6, i64 0, !7, i64 4, !6, i64 1028, !7, i64 1032, !10, i64 2056}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!14, !6, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = !{!21, !19, i64 0}
!21 = !{!"_VlPgmImage", !19, i64 0, !19, i64 8, !19, i64 16, !6, i64 24}
!22 = !{!21, !19, i64 8}
!23 = !{!14, !10, i64 2056}
!24 = distinct !{!24, !16}
!25 = !{!26, !26, i64 0}
!26 = !{!"float", !7, i64 0}
!27 = distinct !{!27, !16}
!28 = distinct !{!28, !16}
!29 = !{!7, !7, i64 0}
!30 = distinct !{!30, !16}
!31 = distinct !{!31, !16}
!32 = distinct !{!32, !16}
!33 = distinct !{!33, !16}
!34 = distinct !{!34, !16}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.option = type { ptr, i32, ptr, i32 }
%struct._VlFileMeta = type { i32, [1024 x i8], i32, [1024 x i8], ptr }
%struct._VlPgmImage = type { i64, i64, i64, i32 }

@help_message = external dso_local constant [712 x i8], align 16
@opts = external dso_local constant [5 x i8], align 1
@longopts = external dso_local constant [13 x %struct.option], align 16
@__const.main.frm = external hidden unnamed_addr constant %struct._VlFileMeta, align 8
@__const.main.piv = external hidden unnamed_addr constant %struct._VlFileMeta, align 8
@__const.main.met = external hidden unnamed_addr constant %struct._VlFileMeta, align 8
@optind = external local_unnamed_addr global i32, align 4
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [31 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.30 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [1024 x i8], align 16
  %11 = alloca %struct._VlFileMeta, align 8
  %12 = alloca %struct._VlFileMeta, align 8
  %13 = alloca %struct._VlFileMeta, align 8
  %14 = alloca [1024 x i8], align 16
  %15 = alloca %struct._VlPgmImage, align 16
  %16 = alloca [2 x i32], align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store double -1.000000e+00, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  store double -1.000000e+00, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  store double -1.000000e+00, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  store double -1.000000e+00, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  store double -1.000000e+00, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  store i32 1, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  store i32 1, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 2064, ptr nonnull %11) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(2064) %11, ptr noundef nonnull align 8 dereferenceable(2064) @__const.main.frm, i64 2064, i1 false)
  call void @llvm.lifetime.start.p0(i64 2064, ptr nonnull %12) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(2064) %12, ptr noundef nonnull align 8 dereferenceable(2064) @__const.main.piv, i64 2064, i1 false)
  call void @llvm.lifetime.start.p0(i64 2064, ptr nonnull %13) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(2064) %13, ptr noundef nonnull align 8 dereferenceable(2064) @__const.main.met, i64 2064, i1 false)
  %invariant.gep = getelementptr i8, ptr %1, i64 -8
  %17 = getelementptr inbounds i8, ptr %13, i64 1028
  br label %18

18:                                               ; preds = %.backedge, %2
  %.0182344 = phi i32 [ 0, %2 ], [ %.0182344.be, %.backedge ]
  %19 = call i32 @getopt_long(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @opts, ptr noundef nonnull @longopts, ptr noundef null) #9
  %20 = icmp eq i32 %19, -1
  %21 = load i32, ptr @optind, align 4
  %22 = icmp eq i32 %21, %0
  %spec.select = select i1 %22, i32 104, i32 -1
  %.0181 = select i1 %20, i32 %spec.select, i32 %19
  switch i32 %.0181, label %135 [
    i32 -1, label %140
    i32 63, label %23
    i32 58, label %27
    i32 104, label %31
    i32 118, label %42
    i32 100, label %44
    i32 1003, label %55
    i32 1004, label %65
    i32 1005, label %75
    i32 1006, label %83
    i32 1001, label %93
    i32 1000, label %101
    i32 1002, label %109
    i32 1007, label %121
    i32 1008, label %128
  ]

23:                                               ; preds = %18
  %24 = sext i32 %21 to i64
  %gep343 = getelementptr ptr, ptr %invariant.gep, i64 %24
  %25 = load ptr, ptr %gep343, align 8, !tbaa !11
  %26 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.12, ptr noundef %25) #9
  br label %136

27:                                               ; preds = %18
  %28 = sext i32 %21 to i64
  %gep341 = getelementptr ptr, ptr %invariant.gep, i64 %28
  %29 = load ptr, ptr %gep341, align 8, !tbaa !11
  %30 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.13, ptr noundef %29) #9
  br label %136

31:                                               ; preds = %18
  %32 = load ptr, ptr %1, align 8, !tbaa !11
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @help_message, ptr noundef %32)
  %34 = getelementptr inbounds i8, ptr %12, i64 4
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef nonnull %34)
  %36 = getelementptr inbounds i8, ptr %11, i64 4
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef nonnull %36)
  %38 = getelementptr inbounds i8, ptr %13, i64 4
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, ptr noundef nonnull %38)
  %40 = call ptr @vl_get_version_string() #9
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, ptr noundef nonnull @.str.18, ptr noundef %40)
  call void @exit(i32 noundef 0) #10
  unreachable

42:                                               ; preds = %18
  %43 = add nsw i32 %.0182344, 1
  br label %.backedge

.backedge:                                        ; preds = %42, %44, %55, %65, %75, %83, %93, %101, %117, %121, %128
  %.0182344.be = phi i32 [ %.0182344, %117 ], [ %.0182344, %101 ], [ %.0182344, %93 ], [ %.0182344, %83 ], [ %.0182344, %75 ], [ %.0182344, %65 ], [ %.0182344, %55 ], [ %.0182344, %44 ], [ %43, %42 ], [ %.0182344, %121 ], [ %.0182344, %128 ]
  br label %18

44:                                               ; preds = %18
  %45 = load ptr, ptr @optarg, align 8, !tbaa !11
  %46 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %45, ptr noundef nonnull @.str.19, ptr noundef nonnull %3) #9
  %47 = icmp eq i32 %46, 0
  %48 = load double, ptr %3, align 8
  %49 = fcmp olt double %48, 0.000000e+00
  %or.cond = select i1 %47, i1 true, i1 %49
  br i1 %or.cond, label %50, label %.backedge

50:                                               ; preds = %44
  %51 = load i32, ptr @optind, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %gep339 = getelementptr ptr, ptr %invariant.gep, i64 %52
  %53 = load ptr, ptr %gep339, align 8, !tbaa !11
  %54 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.20, ptr noundef %53) #9
  br label %136

55:                                               ; preds = %18
  %56 = load ptr, ptr @optarg, align 8, !tbaa !11
  %57 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %56, ptr noundef nonnull @.str.19, ptr noundef nonnull %4) #9
  %58 = icmp eq i32 %57, 0
  %59 = load double, ptr %4, align 8
  %60 = fcmp olt double %59, 0.000000e+00
  %61 = fcmp ogt double %59, 1.000000e+00
  %62 = or i1 %60, %61
  %or.cond5 = select i1 %58, i1 true, i1 %62
  br i1 %or.cond5, label %63, label %.backedge

63:                                               ; preds = %55
  %64 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.21) #9
  br label %136

65:                                               ; preds = %18
  %66 = load ptr, ptr @optarg, align 8, !tbaa !11
  %67 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %66, ptr noundef nonnull @.str.19, ptr noundef nonnull %5) #9
  %68 = icmp eq i32 %67, 0
  %69 = load double, ptr %5, align 8
  %70 = fcmp olt double %69, 0.000000e+00
  %71 = fcmp ogt double %69, 1.000000e+00
  %72 = or i1 %70, %71
  %or.cond9 = select i1 %68, i1 true, i1 %72
  br i1 %or.cond9, label %73, label %.backedge

73:                                               ; preds = %65
  %74 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.22) #9
  br label %136

75:                                               ; preds = %18
  %76 = load ptr, ptr @optarg, align 8, !tbaa !11
  %77 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %76, ptr noundef nonnull @.str.19, ptr noundef nonnull %6) #9
  %78 = icmp eq i32 %77, 0
  %79 = load double, ptr %6, align 8
  %80 = fcmp olt double %79, 0.000000e+00
  %or.cond11 = select i1 %78, i1 true, i1 %80
  br i1 %or.cond11, label %81, label %.backedge

81:                                               ; preds = %75
  %82 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.23) #9
  br label %136

83:                                               ; preds = %18
  %84 = load ptr, ptr @optarg, align 8, !tbaa !11
  %85 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %84, ptr noundef nonnull @.str.19, ptr noundef nonnull %7) #9
  %86 = icmp eq i32 %85, 0
  %87 = load double, ptr %7, align 8
  %88 = fcmp olt double %87, 0.000000e+00
  %89 = fcmp ogt double %87, 1.000000e+00
  %90 = or i1 %88, %89
  %or.cond15 = select i1 %86, i1 true, i1 %90
  br i1 %or.cond15, label %91, label %.backedge

91:                                               ; preds = %83
  %92 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.24) #9
  br label %136

93:                                               ; preds = %18
  %94 = load ptr, ptr @optarg, align 8, !tbaa !11
  %95 = call i32 @vl_file_meta_parse(ptr noundef nonnull %11, ptr noundef %94)
  %.not222 = icmp eq i32 %95, 0
  br i1 %.not222, label %.backedge, label %96

96:                                               ; preds = %93
  %97 = load i32, ptr @optind, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %gep337 = getelementptr ptr, ptr %invariant.gep, i64 %98
  %99 = load ptr, ptr %gep337, align 8, !tbaa !11
  %100 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.25, ptr noundef %99) #9
  br label %136

101:                                              ; preds = %18
  %102 = load ptr, ptr @optarg, align 8, !tbaa !11
  %103 = call i32 @vl_file_meta_parse(ptr noundef nonnull %12, ptr noundef %102)
  %.not221 = icmp eq i32 %103, 0
  br i1 %.not221, label %.backedge, label %104

104:                                              ; preds = %101
  %105 = load i32, ptr @optind, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %gep335 = getelementptr ptr, ptr %invariant.gep, i64 %106
  %107 = load ptr, ptr %gep335, align 8, !tbaa !11
  %108 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.25, ptr noundef %107) #9
  br label %136

109:                                              ; preds = %18
  %110 = load ptr, ptr @optarg, align 8, !tbaa !11
  %111 = call i32 @vl_file_meta_parse(ptr noundef nonnull %13, ptr noundef %110)
  %.not219 = icmp eq i32 %111, 0
  br i1 %.not219, label %117, label %112

112:                                              ; preds = %109
  %113 = load i32, ptr @optind, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %gep = getelementptr ptr, ptr %invariant.gep, i64 %114
  %115 = load ptr, ptr %gep, align 8, !tbaa !11
  %116 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.25, ptr noundef %115) #9
  br label %136

117:                                              ; preds = %109
  %118 = load i32, ptr %17, align 4, !tbaa !13
  %.not220 = icmp eq i32 %118, 1
  br i1 %.not220, label %.backedge, label %119

119:                                              ; preds = %117
  %120 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.26) #9
  br label %136

121:                                              ; preds = %18
  %122 = load ptr, ptr @optarg, align 8, !tbaa !11
  %123 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %122, ptr noundef nonnull @.str.27, ptr noundef nonnull %8) #9
  %124 = icmp eq i32 %123, 0
  %125 = load i32, ptr %8, align 4
  %or.cond17 = icmp ugt i32 %125, 1
  %or.cond252 = select i1 %124, i1 true, i1 %or.cond17
  br i1 %or.cond252, label %126, label %.backedge

126:                                              ; preds = %121
  %127 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.28) #9
  br label %136

128:                                              ; preds = %18
  %129 = load ptr, ptr @optarg, align 8, !tbaa !11
  %130 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %129, ptr noundef nonnull @.str.27, ptr noundef nonnull %9) #9
  %131 = icmp eq i32 %130, 0
  %132 = load i32, ptr %9, align 4
  %or.cond19 = icmp ugt i32 %132, 1
  %or.cond253 = select i1 %131, i1 true, i1 %or.cond19
  br i1 %or.cond253, label %133, label %.backedge

133:                                              ; preds = %128
  %134 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.29) #9
  br label %136

135:                                              ; preds = %18
  call void @abort() #10
  unreachable

136:                                              ; preds = %133, %126, %112, %119, %104, %96, %91, %81, %73, %63, %50, %27, %23
  %137 = load ptr, ptr @stderr, align 8, !tbaa !11
  %138 = load ptr, ptr %1, align 8, !tbaa !11
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef nonnull @.str.30, ptr noundef %138, ptr noundef nonnull %10, i32 noundef 3) #11
  call void @exit(i32 noundef 1) #10
  unreachable

140:                                              ; preds = %18
  %141 = sext i32 %21 to i64
  %142 = getelementptr inbounds ptr, ptr %1, i64 %141
  %143 = load i32, ptr %12, align 8, !tbaa !15
  %144 = icmp eq i32 %143, 0
  %145 = load i32, ptr %11, align 8
  %146 = icmp eq i32 %145, 0
  %or.cond22 = select i1 %144, i1 %146, i1 false
  br i1 %or.cond22, label %147, label %148

147:                                              ; preds = %140
  store i32 1, ptr %11, align 8, !tbaa !15
  br label %148

148:                                              ; preds = %147, %140
  %149 = icmp sgt i32 %.0182344, 1
  br i1 %149, label %150, label %177

150:                                              ; preds = %148
  %151 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31)
  %152 = load i32, ptr %11, align 8, !tbaa !15
  %153 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, i32 noundef %152)
  %154 = getelementptr inbounds i8, ptr %11, i64 4
  %155 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33, ptr noundef nonnull %154)
  %156 = getelementptr inbounds i8, ptr %11, i64 1028
  %157 = load i32, ptr %156, align 4, !tbaa !13
  %158 = call ptr @vl_string_protocol_name(i32 noundef %157) #9
  %159 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, ptr noundef %158)
  %160 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35)
  %161 = load i32, ptr %12, align 8, !tbaa !15
  %162 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, i32 noundef %161)
  %163 = getelementptr inbounds i8, ptr %12, i64 4
  %164 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33, ptr noundef nonnull %163)
  %165 = getelementptr inbounds i8, ptr %12, i64 1028
  %166 = load i32, ptr %165, align 4, !tbaa !13
  %167 = call ptr @vl_string_protocol_name(i32 noundef %166) #9
  %168 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, ptr noundef %167)
  %169 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.36)
  %170 = load i32, ptr %13, align 8, !tbaa !15
  %171 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, i32 noundef %170)
  %172 = getelementptr inbounds i8, ptr %13, i64 4
  %173 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33, ptr noundef nonnull %172)
  %174 = load i32, ptr %17, align 4, !tbaa !13
  %175 = call ptr @vl_string_protocol_name(i32 noundef %174) #9
  %176 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, ptr noundef %175)
  br label %177

177:                                              ; preds = %150, %148
  br i1 %22, label %._crit_edge367, label %.lr.ph366

.lr.ph366:                                        ; preds = %177
  %178 = xor i32 %21, -1
  %179 = add i32 %178, %0
  %.not225 = icmp eq i32 %.0182344, 0
  %180 = getelementptr inbounds i8, ptr %12, i64 1032
  %181 = getelementptr inbounds i8, ptr %11, i64 1032
  %182 = getelementptr inbounds i8, ptr %13, i64 1032
  %183 = getelementptr inbounds i8, ptr %15, i64 8
  %184 = getelementptr inbounds i8, ptr %12, i64 2056
  %185 = getelementptr inbounds i8, ptr %11, i64 2056
  %186 = getelementptr inbounds i8, ptr %13, i64 2056
  br label %187

187:                                              ; preds = %.lr.ph366, %423
  %188 = phi i32 [ %179, %.lr.ph366 ], [ %424, %423 ]
  %.0169364 = phi ptr [ %142, %.lr.ph366 ], [ %189, %423 ]
  %.0186363 = phi i32 [ 0, %.lr.ph366 ], [ %.1187, %423 ]
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %14) #9
  %189 = getelementptr inbounds i8, ptr %.0169364, i64 8
  %190 = load ptr, ptr %.0169364, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %191 = call i64 @vl_string_basename(ptr noundef nonnull %14, i64 noundef 1024, ptr noundef %190, i64 noundef 1) #9
  %192 = icmp ugt i64 %191, 1023
  br i1 %192, label %193, label %195

193:                                              ; preds = %187
  %194 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.37, ptr noundef %190) #9
  br label %.thread303.thread318

195:                                              ; preds = %187
  br i1 %.not225, label %.thread260, label %196

196:                                              ; preds = %195
  %197 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef %190)
  br i1 %149, label %198, label %.thread260

198:                                              ; preds = %196
  %199 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.39, ptr noundef nonnull %14)
  br label %.thread260

.thread260:                                       ; preds = %195, %198, %196
  %200 = call noalias ptr @fopen(ptr noundef %190, ptr noundef nonnull @.str.40)
  %.not226 = icmp eq ptr %200, null
  br i1 %.not226, label %201, label %203

201:                                              ; preds = %.thread260
  %202 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.41, ptr noundef %190) #9
  br label %.thread303.thread318

203:                                              ; preds = %.thread260
  %204 = call i32 @vl_file_meta_open(ptr noundef nonnull %12, ptr noundef nonnull %14, ptr noundef nonnull @.str.42)
  switch i32 %204, label %207 [
    i32 1, label %205
    i32 0, label %209
  ]

205:                                              ; preds = %203
  %206 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.43) #9
  br label %.thread303.thread

207:                                              ; preds = %203
  %208 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.44, ptr noundef nonnull %180) #9
  br label %.thread303.thread

209:                                              ; preds = %203
  %210 = call i32 @vl_file_meta_open(ptr noundef nonnull %11, ptr noundef nonnull %14, ptr noundef nonnull @.str.42)
  switch i32 %210, label %213 [
    i32 1, label %211
    i32 0, label %215
  ]

211:                                              ; preds = %209
  %212 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.43) #9
  br label %.thread303.thread

213:                                              ; preds = %209
  %214 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.44, ptr noundef nonnull %181) #9
  br label %.thread303.thread

215:                                              ; preds = %209
  %216 = call i32 @vl_file_meta_open(ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull @.str.42)
  switch i32 %216, label %219 [
    i32 1, label %217
    i32 0, label %221
  ]

217:                                              ; preds = %215
  %218 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.43) #9
  br label %.thread303.thread

219:                                              ; preds = %215
  %220 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.44, ptr noundef nonnull %182) #9
  br label %.thread303.thread

221:                                              ; preds = %215
  br i1 %149, label %222, label %234

222:                                              ; preds = %221
  %223 = load i32, ptr %12, align 8, !tbaa !15
  %.not230 = icmp eq i32 %223, 0
  br i1 %.not230, label %226, label %224

224:                                              ; preds = %222
  %225 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.45, ptr noundef nonnull %180)
  br label %226

226:                                              ; preds = %224, %222
  %227 = load i32, ptr %11, align 8, !tbaa !15
  %.not231 = icmp eq i32 %227, 0
  br i1 %.not231, label %230, label %228

228:                                              ; preds = %226
  %229 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.46, ptr noundef nonnull %181)
  br label %230

230:                                              ; preds = %228, %226
  %231 = load i32, ptr %13, align 8, !tbaa !15
  %.not232 = icmp eq i32 %231, 0
  br i1 %.not232, label %234, label %232

232:                                              ; preds = %230
  %233 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.47, ptr noundef nonnull %182)
  br label %234

234:                                              ; preds = %230, %232, %221
  %235 = call i32 @vl_pgm_extract_head(ptr noundef nonnull %200, ptr noundef nonnull %15) #9
  %.not233 = icmp eq i32 %235, 0
  br i1 %.not233, label %238, label %236

236:                                              ; preds = %234
  %237 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.48) #9
  br label %.thread303.thread

238:                                              ; preds = %234
  br i1 %.not225, label %243, label %239

239:                                              ; preds = %238
  %240 = load i64, ptr %15, align 16, !tbaa !16
  %241 = load i64, ptr %183, align 8, !tbaa !19
  %242 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.49, i64 noundef %240, i64 noundef %241)
  br label %243

243:                                              ; preds = %239, %238
  %244 = call i64 @vl_pgm_get_npixels(ptr noundef nonnull %15) #9
  %245 = call i64 @vl_pgm_get_bpp(ptr noundef nonnull %15) #9
  %246 = mul i64 %245, %244
  %247 = call noalias ptr @malloc(i64 noundef %246) #12
  %.not234 = icmp eq ptr %247, null
  br i1 %.not234, label %248, label %250

248:                                              ; preds = %243
  %249 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.50) #9
  br label %.thread303.thread

250:                                              ; preds = %243
  %251 = call i32 @vl_pgm_extract_data(ptr noundef nonnull %200, ptr noundef nonnull %15, ptr noundef nonnull %247) #9
  %.not235 = icmp eq i32 %251, 0
  br i1 %.not235, label %253, label %.thread274.thread

.thread274.thread:                                ; preds = %250
  %252 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.51) #9
  call void @free(ptr noundef nonnull %247) #9
  br label %.thread303.thread

253:                                              ; preds = %250
  %254 = load <2 x i64>, ptr %15, align 16, !tbaa !20
  %255 = trunc <2 x i64> %254 to <2 x i32>
  store <2 x i32> %255, ptr %16, align 8, !tbaa !9
  %256 = call ptr @vl_mser_new(i32 noundef 2, ptr noundef nonnull %16) #9
  %257 = call ptr @vl_mser_new(i32 noundef 2, ptr noundef nonnull %16) #9
  %258 = icmp ne ptr %256, null
  %259 = icmp ne ptr %257, null
  %or.cond24 = select i1 %258, i1 %259, i1 false
  br i1 %or.cond24, label %262, label %260

260:                                              ; preds = %253
  %261 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.52) #9
  br label %414

262:                                              ; preds = %253
  %263 = load double, ptr %3, align 8, !tbaa !5
  %264 = fcmp ult double %263, 0.000000e+00
  br i1 %264, label %267, label %265

265:                                              ; preds = %262
  %266 = fptoui double %263 to i8
  call void @vl_mser_set_delta(ptr noundef nonnull %256, i8 noundef zeroext %266)
  br label %267

267:                                              ; preds = %265, %262
  %268 = load double, ptr %4, align 8, !tbaa !5
  %269 = fcmp ult double %268, 0.000000e+00
  br i1 %269, label %271, label %270

270:                                              ; preds = %267
  call void @vl_mser_set_max_area(ptr noundef nonnull %256, double noundef %268)
  br label %271

271:                                              ; preds = %270, %267
  %272 = load double, ptr %5, align 8, !tbaa !5
  %273 = fcmp ult double %272, 0.000000e+00
  br i1 %273, label %275, label %274

274:                                              ; preds = %271
  call void @vl_mser_set_min_area(ptr noundef nonnull %256, double noundef %272)
  br label %275

275:                                              ; preds = %274, %271
  %276 = load double, ptr %6, align 8, !tbaa !5
  %277 = fcmp ult double %276, 0.000000e+00
  br i1 %277, label %279, label %278

278:                                              ; preds = %275
  call void @vl_mser_set_max_variation(ptr noundef nonnull %256, double noundef %276)
  br label %279

279:                                              ; preds = %278, %275
  %280 = load double, ptr %7, align 8, !tbaa !5
  %281 = fcmp ult double %280, 0.000000e+00
  br i1 %281, label %283, label %282

282:                                              ; preds = %279
  call void @vl_mser_set_min_diversity(ptr noundef nonnull %256, double noundef %280)
  br label %283

283:                                              ; preds = %282, %279
  %284 = load double, ptr %3, align 8, !tbaa !5
  %285 = fcmp ult double %284, 0.000000e+00
  br i1 %285, label %288, label %286

286:                                              ; preds = %283
  %287 = fptoui double %284 to i8
  call void @vl_mser_set_delta(ptr noundef nonnull %257, i8 noundef zeroext %287)
  br label %288

288:                                              ; preds = %286, %283
  %289 = load double, ptr %4, align 8, !tbaa !5
  %290 = fcmp ult double %289, 0.000000e+00
  br i1 %290, label %292, label %291

291:                                              ; preds = %288
  call void @vl_mser_set_max_area(ptr noundef nonnull %257, double noundef %289)
  br label %292

292:                                              ; preds = %291, %288
  %293 = load double, ptr %5, align 8, !tbaa !5
  %294 = fcmp ult double %293, 0.000000e+00
  br i1 %294, label %296, label %295

295:                                              ; preds = %292
  call void @vl_mser_set_min_area(ptr noundef nonnull %257, double noundef %293)
  br label %296

296:                                              ; preds = %295, %292
  %297 = load double, ptr %6, align 8, !tbaa !5
  %298 = fcmp ult double %297, 0.000000e+00
  br i1 %298, label %300, label %299

299:                                              ; preds = %296
  call void @vl_mser_set_max_variation(ptr noundef nonnull %257, double noundef %297)
  br label %300

300:                                              ; preds = %299, %296
  %301 = load double, ptr %7, align 8, !tbaa !5
  %302 = fcmp ult double %301, 0.000000e+00
  br i1 %302, label %304, label %303

303:                                              ; preds = %300
  call void @vl_mser_set_min_diversity(ptr noundef nonnull %257, double noundef %301)
  br label %304

304:                                              ; preds = %303, %300
  br i1 %.not225, label %318, label %305

305:                                              ; preds = %304
  %306 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53)
  %307 = call zeroext i8 @vl_mser_get_delta(ptr noundef nonnull %256)
  %308 = zext i8 %307 to i32
  %309 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, i32 noundef %308)
  %310 = call double @vl_mser_get_max_area(ptr noundef nonnull %256)
  %311 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.55, double noundef %310)
  %312 = call double @vl_mser_get_min_area(ptr noundef nonnull %256)
  %313 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.56, double noundef %312)
  %314 = call double @vl_mser_get_max_variation(ptr noundef nonnull %256)
  %315 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.57, double noundef %314)
  %316 = call double @vl_mser_get_min_diversity(ptr noundef nonnull %256)
  %317 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.58, double noundef %316)
  br label %318

318:                                              ; preds = %305, %304
  %319 = load i32, ptr %9, align 4, !tbaa !9
  %.not236 = icmp eq i32 %319, 0
  br i1 %.not236, label %.loopexit325, label %320

320:                                              ; preds = %318
  call void @vl_mser_process(ptr noundef nonnull %256, ptr noundef nonnull %247) #9
  %321 = call i32 @vl_mser_get_regions_num(ptr noundef nonnull %256)
  %322 = call ptr @vl_mser_get_regions(ptr noundef nonnull %256)
  %323 = load i32, ptr %12, align 8, !tbaa !15
  %.not237 = icmp ne i32 %323, 0
  %324 = icmp sgt i32 %321, 0
  %or.cond368 = select i1 %.not237, i1 %324, i1 false
  br i1 %or.cond368, label %.lr.ph.preheader, label %.loopexit327

.lr.ph.preheader:                                 ; preds = %320
  %wide.trip.count = zext nneg i32 %321 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %325 = load ptr, ptr %184, align 8, !tbaa !21
  %326 = getelementptr inbounds i32, ptr %322, i64 %indvars.iv
  %327 = load i32, ptr %326, align 4, !tbaa !9
  %328 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %325, ptr noundef nonnull @.str.59, i32 noundef %327) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit327, label %.lr.ph, !llvm.loop !22

.loopexit327:                                     ; preds = %.lr.ph, %320
  %329 = load i32, ptr %11, align 8, !tbaa !15
  %.not238 = icmp eq i32 %329, 0
  br i1 %.not238, label %.loopexit325, label %330

330:                                              ; preds = %.loopexit327
  call void @vl_mser_ell_fit(ptr noundef nonnull %256) #9
  %331 = call i32 @vl_mser_get_ell_num(ptr noundef nonnull %256)
  %332 = call i32 @vl_mser_get_ell_dof(ptr noundef nonnull %256)
  %333 = call ptr @vl_mser_get_ell(ptr noundef nonnull %256)
  %334 = icmp sgt i32 %331, 0
  br i1 %334, label %.preheader322.lr.ph, label %.loopexit325

.preheader322.lr.ph:                              ; preds = %330
  %335 = icmp sgt i32 %332, 0
  br i1 %335, label %.preheader322.us, label %.preheader322

.preheader322.us:                                 ; preds = %.preheader322.lr.ph, %._crit_edge.us
  %.1163350.us = phi i32 [ %345, %._crit_edge.us ], [ 0, %.preheader322.lr.ph ]
  %.0166349.us = phi ptr [ %338, %._crit_edge.us ], [ %333, %.preheader322.lr.ph ]
  br label %336

336:                                              ; preds = %.preheader322.us, %336
  %.0161347.us = phi i32 [ 0, %.preheader322.us ], [ %342, %336 ]
  %.1167346.us = phi ptr [ %.0166349.us, %.preheader322.us ], [ %338, %336 ]
  %337 = load ptr, ptr %185, align 8, !tbaa !21
  %338 = getelementptr inbounds i8, ptr %.1167346.us, i64 4
  %339 = load float, ptr %.1167346.us, align 4, !tbaa !24
  %340 = fpext float %339 to double
  %341 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %337, ptr noundef nonnull @.str.60, double noundef %340) #9
  %342 = add nuw nsw i32 %.0161347.us, 1
  %exitcond378.not = icmp eq i32 %342, %332
  br i1 %exitcond378.not, label %._crit_edge.us, label %336, !llvm.loop !26

._crit_edge.us:                                   ; preds = %336
  %343 = load ptr, ptr %185, align 8, !tbaa !21
  %344 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %343, ptr noundef nonnull @.str.61) #9
  %345 = add nuw nsw i32 %.1163350.us, 1
  %exitcond379.not = icmp eq i32 %345, %331
  br i1 %exitcond379.not, label %.loopexit325, label %.preheader322.us, !llvm.loop !27

.preheader322:                                    ; preds = %.preheader322.lr.ph, %.preheader322
  %.1163350 = phi i32 [ %348, %.preheader322 ], [ 0, %.preheader322.lr.ph ]
  %346 = load ptr, ptr %185, align 8, !tbaa !21
  %347 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %346, ptr noundef nonnull @.str.61) #9
  %348 = add nuw nsw i32 %.1163350, 1
  %exitcond377.not = icmp eq i32 %348, %331
  br i1 %exitcond377.not, label %.loopexit325, label %.preheader322, !llvm.loop !27

.loopexit325:                                     ; preds = %.preheader322, %._crit_edge.us, %330, %.loopexit327, %318
  %349 = load i32, ptr %8, align 4, !tbaa !9
  %.not239 = icmp eq i32 %349, 0
  br i1 %.not239, label %.loopexit, label %350

350:                                              ; preds = %.loopexit325
  %351 = call i64 @vl_pgm_get_npixels(ptr noundef nonnull %15) #9
  %352 = call i64 @vl_pgm_get_bpp(ptr noundef nonnull %15) #9
  %353 = mul i64 %352, %351
  %354 = call noalias ptr @malloc(i64 noundef %353) #12
  %355 = call i64 @vl_pgm_get_npixels(ptr noundef nonnull %15) #9
  %356 = trunc i64 %355 to i32
  %357 = icmp sgt i32 %356, 0
  br i1 %357, label %.lr.ph352, label %._crit_edge

.lr.ph352:                                        ; preds = %350, %.lr.ph352
  %indvars.iv380 = phi i64 [ %indvars.iv.next381, %.lr.ph352 ], [ 0, %350 ]
  %358 = getelementptr inbounds i8, ptr %247, i64 %indvars.iv380
  %359 = load i8, ptr %358, align 1, !tbaa !28
  %360 = xor i8 %359, -1
  %361 = getelementptr inbounds i8, ptr %354, i64 %indvars.iv380
  store i8 %360, ptr %361, align 1, !tbaa !28
  %indvars.iv.next381 = add nuw nsw i64 %indvars.iv380, 1
  %362 = call i64 @vl_pgm_get_npixels(ptr noundef nonnull %15) #9
  %sext = shl i64 %362, 32
  %363 = ashr exact i64 %sext, 32
  %364 = icmp slt i64 %indvars.iv.next381, %363
  br i1 %364, label %.lr.ph352, label %._crit_edge.thread, !llvm.loop !29

._crit_edge:                                      ; preds = %350
  %.not240 = icmp eq ptr %354, null
  br i1 %.not240, label %365, label %._crit_edge.thread

365:                                              ; preds = %._crit_edge
  %366 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1024, ptr noundef nonnull @.str.50) #9
  br label %414

._crit_edge.thread:                               ; preds = %.lr.ph352, %._crit_edge
  call void @vl_mser_process(ptr noundef nonnull %257, ptr noundef nonnull %354) #9
  %367 = call i32 @vl_mser_get_regions_num(ptr noundef nonnull %257)
  %368 = call ptr @vl_mser_get_regions(ptr noundef nonnull %257)
  %369 = load i32, ptr %12, align 8, !tbaa !15
  %.not241 = icmp ne i32 %369, 0
  %370 = icmp sgt i32 %367, 0
  %or.cond369 = select i1 %.not241, i1 %370, i1 false
  br i1 %or.cond369, label %.lr.ph354.preheader, label %.loopexit324

.lr.ph354.preheader:                              ; preds = %._crit_edge.thread
  %wide.trip.count386 = zext nneg i32 %367 to i64
  br label %.lr.ph354

.lr.ph354:                                        ; preds = %.lr.ph354.preheader, %.lr.ph354
  %indvars.iv383 = phi i64 [ 0, %.lr.ph354.preheader ], [ %indvars.iv.next384, %.lr.ph354 ]
  %371 = load ptr, ptr %184, align 8, !tbaa !21
  %372 = getelementptr inbounds i32, ptr %368, i64 %indvars.iv383
  %373 = load i32, ptr %372, align 4, !tbaa !9
  %374 = sub i32 0, %373
  %375 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %371, ptr noundef nonnull @.str.59, i32 noundef %374) #9
  %indvars.iv.next384 = add nuw nsw i64 %indvars.iv383, 1
  %exitcond387.not = icmp eq i64 %indvars.iv.next384, %wide.trip.count386
  br i1 %exitcond387.not, label %.loopexit324, label %.lr.ph354, !llvm.loop !30

.loopexit324:                                     ; preds = %.lr.ph354, %._crit_edge.thread
  %376 = load i32, ptr %11, align 8, !tbaa !15
  %.not242 = icmp eq i32 %376, 0
  br i1 %.not242, label %.loopexit, label %377

377:                                              ; preds = %.loopexit324
  call void @vl_mser_ell_fit(ptr noundef nonnull %257) #9
  %378 = call i32 @vl_mser_get_ell_num(ptr noundef nonnull %257)
  %379 = call i32 @vl_mser_get_ell_dof(ptr noundef nonnull %257)
  %380 = call ptr @vl_mser_get_ell(ptr noundef nonnull %257)
  %381 = icmp sgt i32 %378, 0
  br i1 %381, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %377
  %382 = icmp sgt i32 %379, 0
  br i1 %382, label %.preheader.us, label %.preheader

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge358.us
  %.4360.us = phi i32 [ %392, %._crit_edge358.us ], [ 0, %.preheader.lr.ph ]
  %.0164359.us = phi ptr [ %385, %._crit_edge358.us ], [ %380, %.preheader.lr.ph ]
  br label %383

383:                                              ; preds = %.preheader.us, %383
  %.1356.us = phi i32 [ 0, %.preheader.us ], [ %389, %383 ]
  %.1165355.us = phi ptr [ %.0164359.us, %.preheader.us ], [ %385, %383 ]
  %384 = load ptr, ptr %185, align 8, !tbaa !21
  %385 = getelementptr inbounds i8, ptr %.1165355.us, i64 4
  %386 = load float, ptr %.1165355.us, align 4, !tbaa !24
  %387 = fpext float %386 to double
  %388 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %384, ptr noundef nonnull @.str.60, double noundef %387) #9
  %389 = add nuw nsw i32 %.1356.us, 1
  %exitcond389.not = icmp eq i32 %389, %379
  br i1 %exitcond389.not, label %._crit_edge358.us, label %383, !llvm.loop !31

._crit_edge358.us:                                ; preds = %383
  %390 = load ptr, ptr %185, align 8, !tbaa !21
  %391 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %390, ptr noundef nonnull @.str.61) #9
  %392 = add nuw nsw i32 %.4360.us, 1
  %exitcond390.not = icmp eq i32 %392, %378
  br i1 %exitcond390.not, label %.loopexit, label %.preheader.us, !llvm.loop !32

.preheader:                                       ; preds = %.preheader.lr.ph, %.preheader
  %.4360 = phi i32 [ %395, %.preheader ], [ 0, %.preheader.lr.ph ]
  %393 = load ptr, ptr %185, align 8, !tbaa !21
  %394 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %393, ptr noundef nonnull @.str.61) #9
  %395 = add nuw nsw i32 %.4360, 1
  %exitcond388.not = icmp eq i32 %395, %378
  br i1 %exitcond388.not, label %.loopexit, label %.preheader, !llvm.loop !32

.loopexit:                                        ; preds = %.preheader, %._crit_edge358.us, %377, %.loopexit324, %.loopexit325
  %.0170 = phi ptr [ %354, %.loopexit324 ], [ null, %.loopexit325 ], [ %354, %377 ], [ %354, %._crit_edge358.us ], [ %354, %.preheader ]
  %396 = load i32, ptr %13, align 8, !tbaa !15
  %.not243 = icmp eq i32 %396, 0
  br i1 %.not243, label %414, label %397

397:                                              ; preds = %.loopexit
  %398 = load ptr, ptr %186, align 8, !tbaa !21
  %399 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %398, ptr noundef nonnull @.str.62) #9
  %400 = load ptr, ptr %186, align 8, !tbaa !21
  %401 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %400, ptr noundef nonnull @.str.63, ptr noundef %190) #9
  %402 = load i32, ptr %12, align 8, !tbaa !15
  %.not244 = icmp eq i32 %402, 0
  br i1 %.not244, label %406, label %403

403:                                              ; preds = %397
  %404 = load ptr, ptr %186, align 8, !tbaa !21
  %405 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %404, ptr noundef nonnull @.str.64, ptr noundef nonnull %180) #9
  br label %406

406:                                              ; preds = %403, %397
  %407 = load i32, ptr %11, align 8, !tbaa !15
  %.not245 = icmp eq i32 %407, 0
  br i1 %.not245, label %411, label %408

408:                                              ; preds = %406
  %409 = load ptr, ptr %186, align 8, !tbaa !21
  %410 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %409, ptr noundef nonnull @.str.65, ptr noundef nonnull %181) #9
  br label %411

411:                                              ; preds = %408, %406
  %412 = load ptr, ptr %186, align 8, !tbaa !21
  %413 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %412, ptr noundef nonnull @.str.66) #9
  br label %414

414:                                              ; preds = %.loopexit, %411, %365, %260
  %.4179 = phi i32 [ 0, %411 ], [ 0, %.loopexit ], [ 2, %365 ], [ 0, %260 ]
  %.1171 = phi ptr [ %.0170, %411 ], [ %.0170, %.loopexit ], [ null, %365 ], [ null, %260 ]
  %.not246 = icmp eq ptr %256, null
  br i1 %.not246, label %416, label %415

415:                                              ; preds = %414
  call void @vl_mser_delete(ptr noundef nonnull %256) #9
  br label %416

416:                                              ; preds = %415, %414
  %.not247 = icmp eq ptr %257, null
  br i1 %.not247, label %.thread274, label %417

417:                                              ; preds = %416
  call void @vl_mser_delete(ptr noundef nonnull %257) #9
  br label %.thread274

.thread274:                                       ; preds = %416, %417
  call void @free(ptr noundef nonnull %247) #9
  %.not249 = icmp eq ptr %.1171, null
  br i1 %.not249, label %.thread303.thread, label %418

418:                                              ; preds = %.thread274
  call void @free(ptr noundef nonnull %.1171) #9
  br label %.thread303.thread

.thread303.thread:                                ; preds = %.thread274.thread, %.thread274, %418, %248, %236, %219, %217, %213, %211, %207, %205
  %.4179269284290309313 = phi i32 [ 2, %248 ], [ 4, %236 ], [ %216, %219 ], [ 1, %217 ], [ %210, %213 ], [ 1, %211 ], [ %204, %207 ], [ 1, %205 ], [ %.4179, %418 ], [ %.4179, %.thread274 ], [ %251, %.thread274.thread ]
  %419 = call i32 @fclose(ptr noundef nonnull %200)
  br label %.thread303.thread318

.thread303.thread318:                             ; preds = %201, %193, %.thread303.thread
  %.4179269284290309314 = phi i32 [ %.4179269284290309313, %.thread303.thread ], [ 4, %201 ], [ 1, %193 ]
  call void @vl_file_meta_close(ptr noundef nonnull %11)
  call void @vl_file_meta_close(ptr noundef nonnull %12)
  call void @vl_file_meta_close(ptr noundef nonnull %13)
  %.not251 = icmp eq i32 %.4179269284290309314, 0
  br i1 %.not251, label %423, label %420

420:                                              ; preds = %.thread303.thread318
  %421 = load ptr, ptr @stderr, align 8, !tbaa !11
  %422 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %421, ptr noundef nonnull @.str.67, ptr noundef nonnull %10, i32 noundef %.4179269284290309314) #11
  br label %423

423:                                              ; preds = %420, %.thread303.thread318
  %.1187 = phi i32 [ 1, %420 ], [ %.0186363, %.thread303.thread318 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %14) #9
  %424 = add nsw i32 %188, -1
  %.not224 = icmp eq i32 %188, 0
  br i1 %.not224, label %._crit_edge367, label %187, !llvm.loop !33

._crit_edge367:                                   ; preds = %423, %177
  %.0186.lcssa = phi i32 [ 0, %177 ], [ %.1187, %423 ]
  call void @llvm.lifetime.end.p0(i64 2064, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 2064, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 2064, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  ret i32 %.0186.lcssa
}

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare i32 @getopt_long(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

declare ptr @vl_get_version_string() local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

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

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

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #5

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

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

declare ptr @vl_string_protocol_name(i32 noundef) local_unnamed_addr #3

declare i64 @vl_string_basename(ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

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

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

declare i32 @vl_pgm_extract_head(ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare i64 @vl_pgm_get_npixels(ptr noundef) local_unnamed_addr #3

declare i64 @vl_pgm_get_bpp(ptr noundef) local_unnamed_addr #3

declare i32 @vl_pgm_extract_data(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @vl_mser_new(i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @vl_mser_set_delta(ptr noundef, i8 noundef zeroext) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @vl_mser_set_max_area(ptr noundef, double noundef) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @vl_mser_set_min_area(ptr noundef, double noundef) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @vl_mser_set_max_variation(ptr noundef, double noundef) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @vl_mser_set_min_diversity(ptr noundef, double noundef) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @vl_mser_get_delta(ptr noundef) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_mser_get_max_area(ptr noundef) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_mser_get_min_area(ptr noundef) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_mser_get_max_variation(ptr noundef) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_mser_get_min_diversity(ptr noundef) local_unnamed_addr #7

declare void @vl_mser_process(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @vl_mser_get_regions_num(ptr noundef) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @vl_mser_get_regions(ptr noundef) local_unnamed_addr #7

declare void @vl_mser_ell_fit(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @vl_mser_get_ell_num(ptr noundef) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @vl_mser_get_ell_dof(ptr noundef) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @vl_mser_get_ell(ptr noundef) local_unnamed_addr #7

declare void @vl_mser_delete(ptr noundef) local_unnamed_addr #3

; 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: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @vl_file_meta_close(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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 #5 = { 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 #6 = { 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 #7 = { inlinehint 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 #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 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { cold nounwind }
attributes #12 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !10, i64 1028}
!14 = !{!"_VlFileMeta", !10, i64 0, !7, i64 4, !10, i64 1028, !7, i64 1032, !12, i64 2056}
!15 = !{!14, !10, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_VlPgmImage", !18, i64 0, !18, i64 8, !18, i64 16, !10, i64 24}
!18 = !{!"long long", !7, i64 0}
!19 = !{!17, !18, i64 8}
!20 = !{!18, !18, i64 0}
!21 = !{!14, !12, i64 2056}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !25, i64 0}
!25 = !{!"float", !7, i64 0}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !23}
!28 = !{!7, !7, i64 0}
!29 = distinct !{!29, !23}
!30 = distinct !{!30, !23}
!31 = distinct !{!31, !23}
!32 = distinct !{!32, !23}
!33 = distinct !{!33, !23}


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