; LLVM IR from bbrister/SIFT3D :: cli (regSift3D)

; 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._Reg_SIFT3D = type { [3 x double], [3 x double], %struct._SIFT3D, %struct._Ransac, %struct._SIFT3D_Descriptor_store, %struct._SIFT3D_Descriptor_store, %struct._Mat_rm, %struct._Mat_rm, double, i32 }
%struct._SIFT3D = type { %struct._Mesh, %struct._GSS_filters, %struct._SIFT_cl_kernels, %struct._Pyramid, %struct._Pyramid, %struct._Image, double, double, i32 }
%struct._Mesh = type { ptr, i32 }
%struct._GSS_filters = type { %struct._Gauss_filter, ptr, i32, i32 }
%struct._Gauss_filter = type { double, %struct._Sep_FIR_filter }
%struct._Sep_FIR_filter = type { i32, ptr, i32, i32, i32 }
%struct._SIFT_cl_kernels = type { i32 }
%struct._Pyramid = type { ptr, double, double, i32, i32, i32, i32, i32 }
%struct._Image = type { ptr, i32, double, i64, i32, i32, i32, double, double, double, i64, i64, i64, i32, i32 }
%struct._Ransac = type { double, i32 }
%struct._SIFT3D_Descriptor_store = type { ptr, i64, i32, i32, i32 }
%struct._Mat_rm = type { %union.anon, i64, i32, i32, i32, i32 }
%union.anon = type { ptr }

@__const.main.longopts = external hidden unnamed_addr constant [12 x %struct.option], align 16
@__const.main.str_affine = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [48 x i8], align 1
@opterr = external global i32, align 4
@.str.14 = external hidden unnamed_addr constant [1 x i8], align 1
@optarg = external global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@optind = external global i32, align 4
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [36 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 %struct._Reg_SIFT3D, align 8
  %7 = alloca %struct._SIFT3D, align 8
  %8 = alloca %struct._Ransac, align 8
  %9 = alloca %struct._Image, align 8
  %10 = alloca %struct._Image, align 8
  %11 = alloca %struct._Mat_rm, align 8
  %12 = alloca %struct._Mat_rm, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca [12 x %struct.option], align 16
  %30 = alloca [7 x i8], align 1
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca i32, align 4
  %35 = alloca [1024 x i8], align 16
  %36 = alloca [1024 x i8], align 16
  %37 = alloca [1024 x i8], align 16
  %38 = alloca %struct._Mat_rm, align 8
  %39 = alloca [1024 x i8], align 16
  %40 = alloca [1024 x i8], align 16
  %41 = alloca %struct._Image, align 8
  %42 = alloca [1024 x i8], align 16
  %43 = alloca %struct._Image, align 8
  %44 = alloca %struct._Image, align 8
  %45 = alloca %struct._Image, align 8
  %46 = alloca %struct._Mat_rm, align 8
  %47 = alloca %struct._Mat_rm, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca [1024 x i8], align 16
  %52 = alloca [1024 x i8], align 16
  %53 = alloca [1024 x i8], align 16
  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 512, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 304, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 104, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 104, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 384, ptr %29) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 @__const.main.longopts, i64 384, i1 false)
  call void @llvm.lifetime.start.p0(i64 7, ptr %30) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %30, ptr align 1 @__const.main.str_affine, i64 7, i1 false)
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = load ptr, ptr %5, align 8, !tbaa !9
  %56 = call i32 @parse_gnu(i32 noundef %54, ptr noundef %55)
  switch i32 %56, label %59 [
    i32 1, label %57
    i32 2, label %58
    i32 0, label %60
  ]

57:                                               ; preds = %2
  call void @print_help()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

58:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

59:                                               ; preds = %2
  call void @err_msgu(ptr noundef @.str.11)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

60:                                               ; preds = %2
  call void @init_im(ptr noundef %9)
  call void @init_im(ptr noundef %10)
  %61 = call i32 @init_Reg_SIFT3D(ptr noundef %6)
  call void @init_Ransac(ptr noundef %8)
  %62 = call i32 @init_SIFT3D(ptr noundef %7)
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %70, label %64

64:                                               ; preds = %60
  %65 = call i32 @init_Mat_rm(ptr noundef %11, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %70, label %67

67:                                               ; preds = %64
  %68 = call i32 @init_Mat_rm(ptr noundef %12, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %67, %64, %60
  call void @err_msgu(ptr noundef @.str.12)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

71:                                               ; preds = %67
  store i32 0, ptr %23, align 4, !tbaa !5
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = load ptr, ptr %5, align 8, !tbaa !9
  %74 = call i32 @parse_args_SIFT3D(ptr noundef %7, i32 noundef %72, ptr noundef %73, i32 noundef 0)
  store i32 %74, ptr %4, align 4, !tbaa !5
  %75 = icmp slt i32 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %71
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

77:                                               ; preds = %71
  %78 = call i32 @set_SIFT3D_Reg_SIFT3D(ptr noundef %6, ptr noundef %7)
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %83, label %80

80:                                               ; preds = %77
  %81 = call i32 @set_Ransac_Reg_SIFT3D(ptr noundef %6, ptr noundef %8)
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %80, %77
  call void @err_msgu(ptr noundef @.str.13)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

84:                                               ; preds = %80
  store i32 1, ptr @opterr, align 4, !tbaa !5
  store i32 0, ptr %28, align 4, !tbaa !5
  store i32 0, ptr %27, align 4, !tbaa !5
  store i32 0, ptr %26, align 4, !tbaa !5
  store ptr null, ptr %22, align 8, !tbaa !9
  store ptr null, ptr %21, align 8, !tbaa !9
  store ptr null, ptr %20, align 8, !tbaa !9
  store ptr null, ptr %17, align 8, !tbaa !9
  store ptr null, ptr %19, align 8, !tbaa !9
  store ptr null, ptr %18, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %150, %84
  %86 = load i32, ptr %4, align 4, !tbaa !5
  %87 = load ptr, ptr %5, align 8, !tbaa !9
  %88 = getelementptr inbounds [12 x %struct.option], ptr %29, i64 0, i64 0
  %89 = call i32 @getopt_long(i32 noundef %86, ptr noundef %87, ptr noundef @.str.14, ptr noundef %88, ptr noundef null) #8
  store i32 %89, ptr %25, align 4, !tbaa !5
  %90 = icmp ne i32 %89, -1
  br i1 %90, label %91, label %151

91:                                               ; preds = %85
  %92 = load i32, ptr %25, align 4, !tbaa !5
  switch i32 %92, label %149 [
    i32 97, label %93
    i32 98, label %95
    i32 99, label %97
    i32 100, label %99
    i32 101, label %101
    i32 102, label %103
    i32 103, label %105
    i32 104, label %115
    i32 108, label %125
    i32 109, label %135
    i32 110, label %147
    i32 63, label %148
  ]

93:                                               ; preds = %91
  %94 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %94, ptr %18, align 8, !tbaa !9
  store i32 1, ptr %26, align 4, !tbaa !5
  br label %150

95:                                               ; preds = %91
  %96 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %96, ptr %19, align 8, !tbaa !9
  store i32 1, ptr %27, align 4, !tbaa !5
  br label %150

97:                                               ; preds = %91
  %98 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %98, ptr %17, align 8, !tbaa !9
  store i32 1, ptr %27, align 4, !tbaa !5
  br label %150

99:                                               ; preds = %91
  %100 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %100, ptr %20, align 8, !tbaa !9
  store i32 1, ptr %26, align 4, !tbaa !5
  br label %150

101:                                              ; preds = %91
  %102 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %102, ptr %21, align 8, !tbaa !9
  store i32 1, ptr %26, align 4, !tbaa !5
  br label %150

103:                                              ; preds = %91
  %104 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %104, ptr %22, align 8, !tbaa !9
  store i32 1, ptr %26, align 4, !tbaa !5
  br label %150

105:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %106 = load ptr, ptr @optarg, align 8, !tbaa !9
  %107 = call double @atof(ptr noundef %106) #9
  store double %107, ptr %32, align 8, !tbaa !11
  %108 = load double, ptr %32, align 8, !tbaa !11
  %109 = call i32 @set_nn_thresh_Reg_SIFT3D(ptr noundef %6, double noundef %108)
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %112

111:                                              ; preds = %105
  call void @err_msg(ptr noundef @.str.15)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %113

112:                                              ; preds = %105
  store i32 5, ptr %31, align 4
  br label %113

113:                                              ; preds = %112, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  %114 = load i32, ptr %31, align 4
  switch i32 %114, label %395 [
    i32 5, label %150
  ]

115:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %116 = load ptr, ptr @optarg, align 8, !tbaa !9
  %117 = call double @atof(ptr noundef %116) #9
  store double %117, ptr %33, align 8, !tbaa !11
  %118 = load double, ptr %33, align 8, !tbaa !11
  %119 = call i32 @set_err_thresh_Ransac(ptr noundef %8, double noundef %118)
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %122

121:                                              ; preds = %115
  call void @err_msg(ptr noundef @.str.16)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %123

122:                                              ; preds = %115
  store i32 5, ptr %31, align 4
  br label %123

123:                                              ; preds = %122, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  %124 = load i32, ptr %31, align 4
  switch i32 %124, label %395 [
    i32 5, label %150
  ]

125:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %126 = load ptr, ptr @optarg, align 8, !tbaa !9
  %127 = call i32 @atoi(ptr noundef %126) #9
  store i32 %127, ptr %34, align 4, !tbaa !5
  %128 = load i32, ptr %34, align 4, !tbaa !5
  %129 = call i32 @set_num_iter_Ransac(ptr noundef %8, i32 noundef %128)
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %132

131:                                              ; preds = %125
  call void @err_msg(ptr noundef @.str.17)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %133

132:                                              ; preds = %125
  store i32 5, ptr %31, align 4
  br label %133

133:                                              ; preds = %132, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  %134 = load i32, ptr %31, align 4
  switch i32 %134, label %395 [
    i32 5, label %150
  ]

135:                                              ; preds = %91
  %136 = load ptr, ptr @optarg, align 8, !tbaa !9
  %137 = getelementptr inbounds [7 x i8], ptr %30, i64 0, i64 0
  %138 = call i32 @strcmp(ptr noundef %136, ptr noundef %137) #9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %141, label %140

140:                                              ; preds = %135
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %146

141:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 1024, ptr %35) #8
  %142 = getelementptr inbounds [1024 x i8], ptr %35, i64 0, i64 0
  %143 = load ptr, ptr @optarg, align 8, !tbaa !9
  %144 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %142, i64 noundef 1024, ptr noundef @.str.18, ptr noundef %143) #8
  %145 = getelementptr inbounds [1024 x i8], ptr %35, i64 0, i64 0
  call void @err_msg(ptr noundef %145)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %35) #8
  br label %395

146:                                              ; preds = %140
  br label %150

147:                                              ; preds = %91
  store i32 1, ptr %28, align 4, !tbaa !5
  br label %150

148:                                              ; preds = %91
  br label %149

149:                                              ; preds = %148, %91
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

150:                                              ; preds = %147, %146, %133, %123, %113, %103, %101, %99, %97, %95, %93
  br label %85, !llvm.loop !13

151:                                              ; preds = %85
  %152 = load i32, ptr %26, align 4, !tbaa !5
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %158, label %154

154:                                              ; preds = %151
  %155 = load i32, ptr %27, align 4, !tbaa !5
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %158, label %157

157:                                              ; preds = %154
  call void @err_msg(ptr noundef @.str.19)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

158:                                              ; preds = %154, %151
  %159 = load i32, ptr %4, align 4, !tbaa !5
  %160 = load i32, ptr @optind, align 4, !tbaa !5
  %161 = sub nsw i32 %159, %160
  store i32 %161, ptr %24, align 4, !tbaa !5
  %162 = load i32, ptr %24, align 4, !tbaa !5
  %163 = icmp slt i32 %162, 2
  br i1 %163, label %164, label %165

164:                                              ; preds = %158
  call void @err_msg(ptr noundef @.str.20)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

165:                                              ; preds = %158
  %166 = load i32, ptr %24, align 4, !tbaa !5
  %167 = icmp sgt i32 %166, 2
  br i1 %167, label %168, label %169

168:                                              ; preds = %165
  call void @err_msg(ptr noundef @.str.21)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

169:                                              ; preds = %165
  br label %170

170:                                              ; preds = %169
  %171 = load ptr, ptr %5, align 8, !tbaa !9
  %172 = load i32, ptr @optind, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds ptr, ptr %171, i64 %173
  %175 = load ptr, ptr %174, align 8, !tbaa !9
  store ptr %175, ptr %15, align 8, !tbaa !9
  %176 = load ptr, ptr %5, align 8, !tbaa !9
  %177 = load i32, ptr @optind, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds ptr, ptr %176, i64 %179
  %181 = load ptr, ptr %180, align 8, !tbaa !9
  store ptr %181, ptr %16, align 8, !tbaa !9
  %182 = load i32, ptr %23, align 4, !tbaa !5
  %183 = call i64 @tform_type_get_size(i32 noundef %182)
  %184 = call noalias ptr @malloc(i64 noundef %183) #10
  store ptr %184, ptr %13, align 8, !tbaa !9
  %185 = icmp eq ptr %184, null
  br i1 %185, label %186, label %187

186:                                              ; preds = %170
  call void @err_msg(ptr noundef @.str.22)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

187:                                              ; preds = %170
  %188 = load ptr, ptr %13, align 8, !tbaa !9
  %189 = load i32, ptr %23, align 4, !tbaa !5
  %190 = call i32 @init_tform(ptr noundef %188, i32 noundef %189)
  %191 = icmp ne i32 %190, 0
  br i1 %191, label %192, label %193

192:                                              ; preds = %187
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

193:                                              ; preds = %187
  %194 = load ptr, ptr %15, align 8, !tbaa !9
  %195 = call i32 @im_read(ptr noundef %194, ptr noundef %9)
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %197, label %202

197:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 1024, ptr %36) #8
  %198 = getelementptr inbounds [1024 x i8], ptr %36, i64 0, i64 0
  %199 = load ptr, ptr %15, align 8, !tbaa !9
  %200 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %198, i64 noundef 1024, ptr noundef @.str.23, ptr noundef %199) #8
  %201 = getelementptr inbounds [1024 x i8], ptr %36, i64 0, i64 0
  call void @err_msg(ptr noundef %201)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %36) #8
  br label %395

202:                                              ; preds = %193
  %203 = load ptr, ptr %16, align 8, !tbaa !9
  %204 = call i32 @im_read(ptr noundef %203, ptr noundef %10)
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %211

206:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 1024, ptr %37) #8
  %207 = getelementptr inbounds [1024 x i8], ptr %37, i64 0, i64 0
  %208 = load ptr, ptr %16, align 8, !tbaa !9
  %209 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %207, i64 noundef 1024, ptr noundef @.str.24, ptr noundef %208) #8
  %210 = getelementptr inbounds [1024 x i8], ptr %37, i64 0, i64 0
  call void @err_msg(ptr noundef %210)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %37) #8
  br label %395

211:                                              ; preds = %202
  %212 = load i32, ptr %27, align 4, !tbaa !5
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %214, label %216

214:                                              ; preds = %211
  %215 = load ptr, ptr %13, align 8, !tbaa !9
  br label %217

216:                                              ; preds = %211
  br label %217

217:                                              ; preds = %216, %214
  %218 = phi ptr [ %215, %214 ], [ null, %216 ]
  store ptr %218, ptr %14, align 8, !tbaa !9
  %219 = load i32, ptr %28, align 4, !tbaa !5
  %220 = icmp ne i32 %219, 0
  br i1 %220, label %221, label %227

221:                                              ; preds = %217
  %222 = load ptr, ptr %14, align 8, !tbaa !9
  %223 = call i32 @register_SIFT3D_resample(ptr noundef %6, ptr noundef %9, ptr noundef %10, i32 noundef 0, ptr noundef %222)
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %226

225:                                              ; preds = %221
  call void @err_msg(ptr noundef @.str.25)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

226:                                              ; preds = %221
  br label %241

227:                                              ; preds = %217
  %228 = call i32 @set_src_Reg_SIFT3D(ptr noundef %6, ptr noundef %9)
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %231

230:                                              ; preds = %227
  call void @err_msg(ptr noundef @.str.26)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

231:                                              ; preds = %227
  %232 = call i32 @set_ref_Reg_SIFT3D(ptr noundef %6, ptr noundef %10)
  %233 = icmp ne i32 %232, 0
  br i1 %233, label %234, label %235

234:                                              ; preds = %231
  call void @err_msg(ptr noundef @.str.27)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

235:                                              ; preds = %231
  %236 = load ptr, ptr %14, align 8, !tbaa !9
  %237 = call i32 @register_SIFT3D(ptr noundef %6, ptr noundef %236)
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %239, label %240

239:                                              ; preds = %235
  call void @err_msg(ptr noundef @.str.28)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

240:                                              ; preds = %235
  br label %241

241:                                              ; preds = %240, %226
  %242 = call i32 @get_matches_Reg_SIFT3D(ptr noundef %6, ptr noundef %11, ptr noundef %12)
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %245

244:                                              ; preds = %241
  call void @err_msgu(ptr noundef @.str.29)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

245:                                              ; preds = %241
  %246 = load ptr, ptr %18, align 8, !tbaa !9
  %247 = icmp ne ptr %246, null
  br i1 %247, label %248, label %266

248:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #8
  %249 = call i32 @init_Mat_rm(ptr noundef %38, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %250 = call i32 @concat_Mat_rm(ptr noundef %11, ptr noundef %12, ptr noundef %38, i32 noundef 1)
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %252, label %253

252:                                              ; preds = %248
  call void @err_msgu(ptr noundef @.str.30)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %263

253:                                              ; preds = %248
  %254 = load ptr, ptr %18, align 8, !tbaa !9
  %255 = call i32 @write_Mat_rm(ptr noundef %254, ptr noundef %38)
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %257, label %262

257:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 1024, ptr %39) #8
  %258 = getelementptr inbounds [1024 x i8], ptr %39, i64 0, i64 0
  %259 = load ptr, ptr %18, align 8, !tbaa !9
  %260 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %258, i64 noundef 1024, ptr noundef @.str.31, ptr noundef %259) #8
  %261 = getelementptr inbounds [1024 x i8], ptr %39, i64 0, i64 0
  call void @err_msg(ptr noundef %261)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %39) #8
  br label %263

262:                                              ; preds = %253
  call void @cleanup_Mat_rm(ptr noundef %38)
  store i32 0, ptr %31, align 4
  br label %263

263:                                              ; preds = %262, %257, %252
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #8
  %264 = load i32, ptr %31, align 4
  switch i32 %264, label %395 [
    i32 0, label %265
  ]

265:                                              ; preds = %263
  br label %266

266:                                              ; preds = %265, %245
  %267 = load ptr, ptr %19, align 8, !tbaa !9
  %268 = icmp ne ptr %267, null
  br i1 %268, label %269, label %279

269:                                              ; preds = %266
  %270 = load ptr, ptr %19, align 8, !tbaa !9
  %271 = load ptr, ptr %13, align 8, !tbaa !9
  %272 = call i32 @write_tform(ptr noundef %270, ptr noundef %271)
  %273 = icmp ne i32 %272, 0
  br i1 %273, label %274, label %279

274:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 1024, ptr %40) #8
  %275 = getelementptr inbounds [1024 x i8], ptr %40, i64 0, i64 0
  %276 = load ptr, ptr %19, align 8, !tbaa !9
  %277 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %275, i64 noundef 1024, ptr noundef @.str.32, ptr noundef %276) #8
  %278 = getelementptr inbounds [1024 x i8], ptr %40, i64 0, i64 0
  call void @err_msg(ptr noundef %278)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %40) #8
  br label %395

279:                                              ; preds = %269, %266
  %280 = load ptr, ptr %17, align 8, !tbaa !9
  %281 = icmp ne ptr %280, null
  br i1 %281, label %282, label %304

282:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 104, ptr %41) #8
  call void @init_im(ptr noundef %41)
  %283 = call i32 @im_copy_dims(ptr noundef %10, ptr noundef %41)
  %284 = icmp ne i32 %283, 0
  br i1 %284, label %285, label %286

285:                                              ; preds = %282
  call void @err_msgu(ptr noundef @.str.33)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %301

286:                                              ; preds = %282
  %287 = load ptr, ptr %13, align 8, !tbaa !9
  %288 = call i32 @im_inv_transform(ptr noundef %287, ptr noundef %9, i32 noundef 0, i32 noundef 0, ptr noundef %41)
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %290, label %291

290:                                              ; preds = %286
  call void @err_msgu(ptr noundef @.str.34)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %301

291:                                              ; preds = %286
  %292 = load ptr, ptr %17, align 8, !tbaa !9
  %293 = call i32 @im_write(ptr noundef %292, ptr noundef %41)
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %295, label %300

295:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 1024, ptr %42) #8
  %296 = getelementptr inbounds [1024 x i8], ptr %42, i64 0, i64 0
  %297 = load ptr, ptr %17, align 8, !tbaa !9
  %298 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %296, i64 noundef 1024, ptr noundef @.str.35, ptr noundef %297) #8
  %299 = getelementptr inbounds [1024 x i8], ptr %42, i64 0, i64 0
  call void @err_msg(ptr noundef %299)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %42) #8
  br label %301

300:                                              ; preds = %291
  call void @im_free(ptr noundef %41)
  store i32 0, ptr %31, align 4
  br label %301

301:                                              ; preds = %300, %295, %290, %285
  call void @llvm.lifetime.end.p0(i64 104, ptr %41) #8
  %302 = load i32, ptr %31, align 4
  switch i32 %302, label %395 [
    i32 0, label %303
  ]

303:                                              ; preds = %301
  br label %304

304:                                              ; preds = %303, %279
  %305 = load ptr, ptr %20, align 8, !tbaa !9
  %306 = icmp ne ptr %305, null
  br i1 %306, label %313, label %307

307:                                              ; preds = %304
  %308 = load ptr, ptr %21, align 8, !tbaa !9
  %309 = icmp ne ptr %308, null
  br i1 %309, label %313, label %310

310:                                              ; preds = %307
  %311 = load ptr, ptr %22, align 8, !tbaa !9
  %312 = icmp ne ptr %311, null
  br i1 %312, label %313, label %394

313:                                              ; preds = %310, %307, %304
  call void @llvm.lifetime.start.p0(i64 104, ptr %43) #8
  call void @llvm.lifetime.start.p0(i64 104, ptr %44) #8
  call void @llvm.lifetime.start.p0(i64 104, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %46) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %47) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %314 = load ptr, ptr %20, align 8, !tbaa !9
  %315 = icmp eq ptr %314, null
  br i1 %315, label %316, label %317

316:                                              ; preds = %313
  br label %318

317:                                              ; preds = %313
  br label %318

318:                                              ; preds = %317, %316
  %319 = phi ptr [ null, %316 ], [ %43, %317 ]
  store ptr %319, ptr %48, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  %320 = load ptr, ptr %21, align 8, !tbaa !9
  %321 = icmp eq ptr %320, null
  br i1 %321, label %322, label %323

322:                                              ; preds = %318
  br label %324

323:                                              ; preds = %318
  br label %324

324:                                              ; preds = %323, %322
  %325 = phi ptr [ null, %322 ], [ %44, %323 ]
  store ptr %325, ptr %49, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  %326 = load ptr, ptr %22, align 8, !tbaa !9
  %327 = icmp eq ptr %326, null
  br i1 %327, label %328, label %329

328:                                              ; preds = %324
  br label %330

329:                                              ; preds = %324
  br label %330

330:                                              ; preds = %329, %328
  %331 = phi ptr [ null, %328 ], [ %45, %329 ]
  store ptr %331, ptr %50, align 8, !tbaa !9
  call void @init_im(ptr noundef %43)
  call void @init_im(ptr noundef %44)
  call void @init_im(ptr noundef %45)
  %332 = call i32 @init_Mat_rm(ptr noundef %46, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %333 = icmp ne i32 %332, 0
  br i1 %333, label %337, label %334

334:                                              ; preds = %330
  %335 = call i32 @init_Mat_rm(ptr noundef %47, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %336 = icmp ne i32 %335, 0
  br i1 %336, label %337, label %338

337:                                              ; preds = %334, %330
  call void @err_msgu(ptr noundef @.str.36)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %391

338:                                              ; preds = %334
  %339 = getelementptr inbounds %struct._Reg_SIFT3D, ptr %6, i32 0, i32 4
  %340 = call i32 @SIFT3D_Descriptor_coords_to_Mat_rm(ptr noundef %339, ptr noundef %46)
  %341 = icmp ne i32 %340, 0
  br i1 %341, label %346, label %342

342:                                              ; preds = %338
  %343 = getelementptr inbounds %struct._Reg_SIFT3D, ptr %6, i32 0, i32 5
  %344 = call i32 @SIFT3D_Descriptor_coords_to_Mat_rm(ptr noundef %343, ptr noundef %47)
  %345 = icmp ne i32 %344, 0
  br i1 %345, label %346, label %347

346:                                              ; preds = %342, %338
  call void @err_msgu(ptr noundef @.str.37)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %391

347:                                              ; preds = %342
  %348 = load ptr, ptr %48, align 8, !tbaa !9
  %349 = load ptr, ptr %49, align 8, !tbaa !9
  %350 = load ptr, ptr %50, align 8, !tbaa !9
  %351 = call i32 @draw_matches(ptr noundef %9, ptr noundef %10, ptr noundef %46, ptr noundef %47, ptr noundef %11, ptr noundef %12, ptr noundef %348, ptr noundef %349, ptr noundef %350)
  %352 = icmp ne i32 %351, 0
  br i1 %352, label %353, label %354

353:                                              ; preds = %347
  call void @err_msgu(ptr noundef @.str.38)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %391

354:                                              ; preds = %347
  %355 = load ptr, ptr %20, align 8, !tbaa !9
  %356 = icmp ne ptr %355, null
  br i1 %356, label %357, label %366

357:                                              ; preds = %354
  %358 = load ptr, ptr %20, align 8, !tbaa !9
  %359 = call i32 @im_write(ptr noundef %358, ptr noundef %43)
  %360 = icmp ne i32 %359, 0
  br i1 %360, label %361, label %366

361:                                              ; preds = %357
  call void @llvm.lifetime.start.p0(i64 1024, ptr %51) #8
  %362 = getelementptr inbounds [1024 x i8], ptr %51, i64 0, i64 0
  %363 = load ptr, ptr %20, align 8, !tbaa !9
  %364 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %362, i64 noundef 1024, ptr noundef @.str.39, ptr noundef %363) #8
  %365 = getelementptr inbounds [1024 x i8], ptr %51, i64 0, i64 0
  call void @err_msg(ptr noundef %365)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %51) #8
  br label %391

366:                                              ; preds = %357, %354
  %367 = load ptr, ptr %21, align 8, !tbaa !9
  %368 = icmp ne ptr %367, null
  br i1 %368, label %369, label %378

369:                                              ; preds = %366
  %370 = load ptr, ptr %21, align 8, !tbaa !9
  %371 = call i32 @im_write(ptr noundef %370, ptr noundef %44)
  %372 = icmp ne i32 %371, 0
  br i1 %372, label %373, label %378

373:                                              ; preds = %369
  call void @llvm.lifetime.start.p0(i64 1024, ptr %52) #8
  %374 = getelementptr inbounds [1024 x i8], ptr %52, i64 0, i64 0
  %375 = load ptr, ptr %20, align 8, !tbaa !9
  %376 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %374, i64 noundef 1024, ptr noundef @.str.40, ptr noundef %375) #8
  %377 = getelementptr inbounds [1024 x i8], ptr %52, i64 0, i64 0
  call void @err_msg(ptr noundef %377)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %52) #8
  br label %391

378:                                              ; preds = %369, %366
  %379 = load ptr, ptr %22, align 8, !tbaa !9
  %380 = icmp ne ptr %379, null
  br i1 %380, label %381, label %390

381:                                              ; preds = %378
  %382 = load ptr, ptr %22, align 8, !tbaa !9
  %383 = call i32 @im_write(ptr noundef %382, ptr noundef %45)
  %384 = icmp ne i32 %383, 0
  br i1 %384, label %385, label %390

385:                                              ; preds = %381
  call void @llvm.lifetime.start.p0(i64 1024, ptr %53) #8
  %386 = getelementptr inbounds [1024 x i8], ptr %53, i64 0, i64 0
  %387 = load ptr, ptr %20, align 8, !tbaa !9
  %388 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %386, i64 noundef 1024, ptr noundef @.str.41, ptr noundef %387) #8
  %389 = getelementptr inbounds [1024 x i8], ptr %53, i64 0, i64 0
  call void @err_msg(ptr noundef %389)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %53) #8
  br label %391

390:                                              ; preds = %381, %378
  call void @im_free(ptr noundef %43)
  call void @im_free(ptr noundef %44)
  call void @im_free(ptr noundef %45)
  store i32 0, ptr %31, align 4
  br label %391

391:                                              ; preds = %390, %385, %373, %361, %353, %346, %337
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %43) #8
  %392 = load i32, ptr %31, align 4
  switch i32 %392, label %395 [
    i32 0, label %393
  ]

393:                                              ; preds = %391
  br label %394

394:                                              ; preds = %393, %310
  store i32 0, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %395

395:                                              ; preds = %394, %391, %301, %274, %263, %244, %239, %234, %230, %225, %206, %197, %192, %186, %168, %164, %157, %149, %141, %133, %123, %113, %83, %76, %70, %59, %58, %57
  call void @llvm.lifetime.end.p0(i64 7, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 384, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 304, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr %6) #8
  %396 = load i32, ptr %3, align 4
  ret i32 %396
}

; 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 @parse_gnu(i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @err_msgu(ptr noundef) #0

declare void @init_im(ptr noundef) #3

declare i32 @init_Reg_SIFT3D(ptr noundef) #3

declare void @init_Ransac(ptr noundef) #3

declare i32 @init_SIFT3D(ptr noundef) #3

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

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

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

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

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

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

declare i32 @set_nn_thresh_Reg_SIFT3D(ptr noundef, double noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @err_msg(ptr noundef) #0

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

declare i32 @set_err_thresh_Ransac(ptr noundef, double noundef) #3

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

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

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

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

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

declare i64 @tform_type_get_size(i32 noundef) #3

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

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

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

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

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

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

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

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

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

declare void @cleanup_Mat_rm(ptr noundef) #3

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

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

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

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

declare void @im_free(ptr noundef) #3

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

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

; Function Attrs: nounwind uwtable
declare hidden void @print_help() #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 = { inlinehint nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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._Reg_SIFT3D = type { [3 x double], [3 x double], %struct._SIFT3D, %struct._Ransac, %struct._SIFT3D_Descriptor_store, %struct._SIFT3D_Descriptor_store, %struct._Mat_rm, %struct._Mat_rm, double, i32 }
%struct._SIFT3D = type { %struct._Mesh, %struct._GSS_filters, %struct._SIFT_cl_kernels, %struct._Pyramid, %struct._Pyramid, %struct._Image, double, double, i32 }
%struct._Mesh = type { ptr, i32 }
%struct._GSS_filters = type { %struct._Gauss_filter, ptr, i32, i32 }
%struct._Gauss_filter = type { double, %struct._Sep_FIR_filter }
%struct._Sep_FIR_filter = type { i32, ptr, i32, i32, i32 }
%struct._SIFT_cl_kernels = type { i32 }
%struct._Pyramid = type { ptr, double, double, i32, i32, i32, i32, i32 }
%struct._Image = type { ptr, i32, double, i64, i32, i32, i32, double, double, double, i64, i64, i64, i32, i32 }
%struct._Ransac = type { double, i32 }
%struct._SIFT3D_Descriptor_store = type { ptr, i64, i32, i32, i32 }
%struct._Mat_rm = type { %union.anon, i64, i32, i32, i32, i32 }
%union.anon = type { ptr }

@__const.main.longopts = external hidden unnamed_addr constant [12 x %struct.option], align 16
@__const.main.str_affine = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [48 x i8], align 1
@opterr = external local_unnamed_addr global i32, align 4
@.str.14 = external hidden unnamed_addr constant [1 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@optind = external local_unnamed_addr global i32, align 4
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [36 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 %struct._Reg_SIFT3D, align 8
  %4 = alloca %struct._SIFT3D, align 8
  %5 = alloca %struct._Ransac, align 8
  %6 = alloca %struct._Image, align 8
  %7 = alloca %struct._Image, align 8
  %8 = alloca %struct._Mat_rm, align 8
  %9 = alloca %struct._Mat_rm, align 8
  %10 = alloca [12 x %struct.option], align 16
  %11 = alloca [1024 x i8], align 16
  %12 = alloca [1024 x i8], align 16
  %13 = alloca [1024 x i8], align 16
  %14 = alloca %struct._Mat_rm, align 8
  %15 = alloca [1024 x i8], align 16
  %16 = alloca [1024 x i8], align 16
  %17 = alloca %struct._Image, align 8
  %18 = alloca [1024 x i8], align 16
  %19 = alloca %struct._Image, align 8
  %20 = alloca %struct._Image, align 8
  %21 = alloca %struct._Image, align 8
  %22 = alloca %struct._Mat_rm, align 8
  %23 = alloca %struct._Mat_rm, align 8
  %24 = alloca [1024 x i8], align 16
  %25 = alloca [1024 x i8], align 16
  %26 = alloca [1024 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 304, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 384, ptr nonnull %10) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(384) %10, ptr noundef nonnull align 16 dereferenceable(384) @__const.main.longopts, i64 384, i1 false)
  %27 = tail call i32 @parse_gnu(i32 noundef %0, ptr noundef %1) #9
  switch i32 %27, label %29 [
    i32 1, label %28
    i32 2, label %.loopexit
    i32 0, label %30
  ]

28:                                               ; preds = %2
  tail call void @print_help()
  br label %.loopexit

29:                                               ; preds = %2
  tail call void @err_msgu(ptr noundef nonnull @.str.11)
  br label %.loopexit

30:                                               ; preds = %2
  call void @init_im(ptr noundef nonnull %6) #9
  call void @init_im(ptr noundef nonnull %7) #9
  %31 = call i32 @init_Reg_SIFT3D(ptr noundef nonnull %3) #9
  call void @init_Ransac(ptr noundef nonnull %5) #9
  %32 = call i32 @init_SIFT3D(ptr noundef nonnull %4) #9
  %.not = icmp eq i32 %32, 0
  br i1 %.not, label %33, label %37

33:                                               ; preds = %30
  %34 = call i32 @init_Mat_rm(ptr noundef nonnull %8, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0) #9
  %.not104 = icmp eq i32 %34, 0
  br i1 %.not104, label %35, label %37

35:                                               ; preds = %33
  %36 = call i32 @init_Mat_rm(ptr noundef nonnull %9, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0) #9
  %.not105 = icmp eq i32 %36, 0
  br i1 %.not105, label %38, label %37

37:                                               ; preds = %35, %33, %30
  call void @err_msgu(ptr noundef nonnull @.str.12)
  br label %.loopexit

38:                                               ; preds = %35
  %39 = call i32 @parse_args_SIFT3D(ptr noundef nonnull %4, i32 noundef %0, ptr noundef %1, i32 noundef 0) #9
  %40 = icmp slt i32 %39, 0
  br i1 %40, label %.loopexit, label %41

41:                                               ; preds = %38
  %42 = call i32 @set_SIFT3D_Reg_SIFT3D(ptr noundef nonnull %3, ptr noundef nonnull %4) #9
  %.not106 = icmp eq i32 %42, 0
  br i1 %.not106, label %43, label %45

43:                                               ; preds = %41
  %44 = call i32 @set_Ransac_Reg_SIFT3D(ptr noundef nonnull %3, ptr noundef nonnull %5) #9
  %.not107 = icmp eq i32 %44, 0
  br i1 %.not107, label %46, label %45

45:                                               ; preds = %43, %41
  call void @err_msgu(ptr noundef nonnull @.str.13)
  br label %.loopexit

46:                                               ; preds = %43
  store i32 1, ptr @opterr, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.backedge, %46
  %.096 = phi ptr [ null, %46 ], [ %.096.be, %.thread.backedge ]
  %.094 = phi ptr [ null, %46 ], [ %.094.be, %.thread.backedge ]
  %.092 = phi i32 [ 0, %46 ], [ %.092.be, %.thread.backedge ]
  %.090 = phi i32 [ 0, %46 ], [ %.090.be, %.thread.backedge ]
  %.088 = phi i32 [ 0, %46 ], [ %.088.be, %.thread.backedge ]
  %.080 = phi ptr [ null, %46 ], [ %.080.be, %.thread.backedge ]
  %.078 = phi ptr [ null, %46 ], [ %.078.be, %.thread.backedge ]
  %.076 = phi ptr [ null, %46 ], [ %.076.be, %.thread.backedge ]
  %.074 = phi ptr [ null, %46 ], [ %.074.be, %.thread.backedge ]
  %47 = call i32 @getopt_long(i32 noundef %39, ptr noundef %1, ptr noundef nonnull @.str.14, ptr noundef nonnull %10, ptr noundef null) #9
  switch i32 %47, label %.loopexit [
    i32 -1, label %80
    i32 97, label %48
    i32 98, label %50
    i32 99, label %52
    i32 100, label %54
    i32 101, label %56
    i32 102, label %58
    i32 103, label %60
    i32 104, label %65
    i32 108, label %70
    i32 109, label %75
    i32 110, label %.thread.backedge
  ]

48:                                               ; preds = %.thread
  %49 = load ptr, ptr @optarg, align 8, !tbaa !9
  br label %.thread.backedge

50:                                               ; preds = %.thread
  %51 = load ptr, ptr @optarg, align 8, !tbaa !9
  br label %.thread.backedge

52:                                               ; preds = %.thread
  %53 = load ptr, ptr @optarg, align 8, !tbaa !9
  br label %.thread.backedge

54:                                               ; preds = %.thread
  %55 = load ptr, ptr @optarg, align 8, !tbaa !9
  br label %.thread.backedge

56:                                               ; preds = %.thread
  %57 = load ptr, ptr @optarg, align 8, !tbaa !9
  br label %.thread.backedge

58:                                               ; preds = %.thread
  %59 = load ptr, ptr @optarg, align 8, !tbaa !9
  br label %.thread.backedge

60:                                               ; preds = %.thread
  %61 = load ptr, ptr @optarg, align 8, !tbaa !9
  %62 = call double @atof(ptr noundef %61) #10
  %63 = call i32 @set_nn_thresh_Reg_SIFT3D(ptr noundef nonnull %3, double noundef %62) #9
  %.not139 = icmp eq i32 %63, 0
  br i1 %.not139, label %.thread.backedge, label %64

64:                                               ; preds = %60
  call void @err_msg(ptr noundef nonnull @.str.15)
  br label %.loopexit

65:                                               ; preds = %.thread
  %66 = load ptr, ptr @optarg, align 8, !tbaa !9
  %67 = call double @atof(ptr noundef %66) #10
  %68 = call i32 @set_err_thresh_Ransac(ptr noundef nonnull %5, double noundef %67) #9
  %.not138 = icmp eq i32 %68, 0
  br i1 %.not138, label %.thread.backedge, label %69

69:                                               ; preds = %65
  call void @err_msg(ptr noundef nonnull @.str.16)
  br label %.loopexit

70:                                               ; preds = %.thread
  %71 = load ptr, ptr @optarg, align 8, !tbaa !9
  %72 = call i32 @atoi(ptr nocapture noundef %71) #10
  %73 = call i32 @set_num_iter_Ransac(ptr noundef nonnull %5, i32 noundef %72) #9
  %.not137 = icmp eq i32 %73, 0
  br i1 %.not137, label %.thread.backedge, label %74

.thread.backedge:                                 ; preds = %70, %65, %60, %.thread, %75, %58, %56, %54, %52, %50, %48
  %.096.be = phi ptr [ %59, %58 ], [ %.096, %56 ], [ %.096, %54 ], [ %.096, %52 ], [ %.096, %50 ], [ %.096, %48 ], [ %.096, %75 ], [ %.096, %.thread ], [ %.096, %60 ], [ %.096, %65 ], [ %.096, %70 ]
  %.094.be = phi ptr [ %.094, %58 ], [ %57, %56 ], [ %.094, %54 ], [ %.094, %52 ], [ %.094, %50 ], [ %.094, %48 ], [ %.094, %75 ], [ %.094, %.thread ], [ %.094, %60 ], [ %.094, %65 ], [ %.094, %70 ]
  %.092.be = phi i32 [ 1, %58 ], [ 1, %56 ], [ 1, %54 ], [ %.092, %52 ], [ %.092, %50 ], [ 1, %48 ], [ %.092, %75 ], [ %.092, %.thread ], [ %.092, %60 ], [ %.092, %65 ], [ %.092, %70 ]
  %.090.be = phi i32 [ %.090, %58 ], [ %.090, %56 ], [ %.090, %54 ], [ 1, %52 ], [ 1, %50 ], [ %.090, %48 ], [ %.090, %75 ], [ %.090, %.thread ], [ %.090, %60 ], [ %.090, %65 ], [ %.090, %70 ]
  %.088.be = phi i32 [ %.088, %58 ], [ %.088, %56 ], [ %.088, %54 ], [ %.088, %52 ], [ %.088, %50 ], [ %.088, %48 ], [ %.088, %75 ], [ 1, %.thread ], [ %.088, %60 ], [ %.088, %65 ], [ %.088, %70 ]
  %.080.be = phi ptr [ %.080, %58 ], [ %.080, %56 ], [ %55, %54 ], [ %.080, %52 ], [ %.080, %50 ], [ %.080, %48 ], [ %.080, %75 ], [ %.080, %.thread ], [ %.080, %60 ], [ %.080, %65 ], [ %.080, %70 ]
  %.078.be = phi ptr [ %.078, %58 ], [ %.078, %56 ], [ %.078, %54 ], [ %.078, %52 ], [ %51, %50 ], [ %.078, %48 ], [ %.078, %75 ], [ %.078, %.thread ], [ %.078, %60 ], [ %.078, %65 ], [ %.078, %70 ]
  %.076.be = phi ptr [ %.076, %58 ], [ %.076, %56 ], [ %.076, %54 ], [ %.076, %52 ], [ %.076, %50 ], [ %49, %48 ], [ %.076, %75 ], [ %.076, %.thread ], [ %.076, %60 ], [ %.076, %65 ], [ %.076, %70 ]
  %.074.be = phi ptr [ %.074, %58 ], [ %.074, %56 ], [ %.074, %54 ], [ %53, %52 ], [ %.074, %50 ], [ %.074, %48 ], [ %.074, %75 ], [ %.074, %.thread ], [ %.074, %60 ], [ %.074, %65 ], [ %.074, %70 ]
  br label %.thread, !llvm.loop !11

74:                                               ; preds = %70
  call void @err_msg(ptr noundef nonnull @.str.17)
  br label %.loopexit

75:                                               ; preds = %.thread
  %76 = load ptr, ptr @optarg, align 8, !tbaa !9
  %77 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %76, ptr noundef nonnull dereferenceable(1) @__const.main.str_affine) #10
  %.not136 = icmp eq i32 %77, 0
  br i1 %.not136, label %.thread.backedge, label %78

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %11) #9
  %79 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %11, i64 noundef 1024, ptr noundef nonnull @.str.18, ptr noundef %76) #9
  call void @err_msg(ptr noundef nonnull %11)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %11) #9
  br label %.loopexit

80:                                               ; preds = %.thread
  %81 = icmp ne i32 %.092, 0
  %82 = icmp ne i32 %.090, 0
  %or.cond = select i1 %81, i1 true, i1 %82
  br i1 %or.cond, label %84, label %83

83:                                               ; preds = %80
  call void @err_msg(ptr noundef nonnull @.str.19)
  br label %.loopexit

84:                                               ; preds = %80
  %85 = load i32, ptr @optind, align 4, !tbaa !5
  %86 = sub nsw i32 %39, %85
  %87 = icmp slt i32 %86, 2
  br i1 %87, label %88, label %89

88:                                               ; preds = %84
  call void @err_msg(ptr noundef nonnull @.str.20)
  br label %.loopexit

89:                                               ; preds = %84
  %.not109 = icmp eq i32 %86, 2
  br i1 %.not109, label %91, label %90

90:                                               ; preds = %89
  call void @err_msg(ptr noundef nonnull @.str.21)
  br label %.loopexit

91:                                               ; preds = %89
  %92 = sext i32 %85 to i64
  %93 = getelementptr inbounds ptr, ptr %1, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = getelementptr i8, ptr %93, i64 8
  %96 = load ptr, ptr %95, align 8, !tbaa !9
  %97 = call i64 @tform_type_get_size(i32 noundef 0) #9
  %98 = call noalias ptr @malloc(i64 noundef %97) #11
  %99 = icmp eq ptr %98, null
  br i1 %99, label %100, label %101

100:                                              ; preds = %91
  call void @err_msg(ptr noundef nonnull @.str.22)
  br label %.loopexit

101:                                              ; preds = %91
  %102 = call i32 @init_tform(ptr noundef nonnull %98, i32 noundef 0) #9
  %.not110 = icmp eq i32 %102, 0
  br i1 %.not110, label %103, label %.loopexit

103:                                              ; preds = %101
  %104 = call i32 @im_read(ptr noundef %94, ptr noundef nonnull %6) #9
  %.not111 = icmp eq i32 %104, 0
  br i1 %.not111, label %107, label %105

105:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %12) #9
  %106 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %12, i64 noundef 1024, ptr noundef nonnull @.str.23, ptr noundef %94) #9
  call void @err_msg(ptr noundef nonnull %12)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %12) #9
  br label %.loopexit

107:                                              ; preds = %103
  %108 = call i32 @im_read(ptr noundef %96, ptr noundef nonnull %7) #9
  %.not112 = icmp eq i32 %108, 0
  br i1 %.not112, label %111, label %109

109:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %13) #9
  %110 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %13, i64 noundef 1024, ptr noundef nonnull @.str.24, ptr noundef %96) #9
  call void @err_msg(ptr noundef nonnull %13)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %13) #9
  br label %.loopexit

111:                                              ; preds = %107
  %112 = select i1 %82, ptr %98, ptr null
  %.not113 = icmp eq i32 %.088, 0
  br i1 %.not113, label %116, label %113

113:                                              ; preds = %111
  %114 = call i32 @register_SIFT3D_resample(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %7, i32 noundef 0, ptr noundef %112) #9
  %.not117 = icmp eq i32 %114, 0
  br i1 %.not117, label %125, label %115

115:                                              ; preds = %113
  call void @err_msg(ptr noundef nonnull @.str.25)
  br label %.loopexit

116:                                              ; preds = %111
  %117 = call i32 @set_src_Reg_SIFT3D(ptr noundef nonnull %3, ptr noundef nonnull %6) #9
  %.not114 = icmp eq i32 %117, 0
  br i1 %.not114, label %119, label %118

118:                                              ; preds = %116
  call void @err_msg(ptr noundef nonnull @.str.26)
  br label %.loopexit

119:                                              ; preds = %116
  %120 = call i32 @set_ref_Reg_SIFT3D(ptr noundef nonnull %3, ptr noundef nonnull %7) #9
  %.not115 = icmp eq i32 %120, 0
  br i1 %.not115, label %122, label %121

121:                                              ; preds = %119
  call void @err_msg(ptr noundef nonnull @.str.27)
  br label %.loopexit

122:                                              ; preds = %119
  %123 = call i32 @register_SIFT3D(ptr noundef nonnull %3, ptr noundef %112) #9
  %.not116 = icmp eq i32 %123, 0
  br i1 %.not116, label %125, label %124

124:                                              ; preds = %122
  call void @err_msg(ptr noundef nonnull @.str.28)
  br label %.loopexit

125:                                              ; preds = %122, %113
  %126 = call i32 @get_matches_Reg_SIFT3D(ptr noundef nonnull %3, ptr noundef nonnull %8, ptr noundef nonnull %9) #9
  %.not118 = icmp eq i32 %126, 0
  br i1 %.not118, label %128, label %127

127:                                              ; preds = %125
  call void @err_msgu(ptr noundef nonnull @.str.29)
  br label %.loopexit

128:                                              ; preds = %125
  %.not119 = icmp eq ptr %.076, null
  br i1 %.not119, label %138, label %129

129:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #9
  %130 = call i32 @init_Mat_rm(ptr noundef nonnull %14, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0) #9
  %131 = call i32 @concat_Mat_rm(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %14, i32 noundef 1) #9
  %.not120 = icmp eq i32 %131, 0
  br i1 %.not120, label %133, label %132

132:                                              ; preds = %129
  call void @err_msgu(ptr noundef nonnull @.str.30)
  br label %.thread145

133:                                              ; preds = %129
  %134 = call i32 @write_Mat_rm(ptr noundef nonnull %.076, ptr noundef nonnull %14) #9
  %.not121 = icmp eq i32 %134, 0
  br i1 %.not121, label %137, label %135

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %15) #9
  %136 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %15, i64 noundef 1024, ptr noundef nonnull @.str.31, ptr noundef nonnull %.076) #9
  call void @err_msg(ptr noundef nonnull %15)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %15) #9
  br label %.thread145

.thread145:                                       ; preds = %132, %135
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  br label %.loopexit

137:                                              ; preds = %133
  call void @cleanup_Mat_rm(ptr noundef nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  br label %138

138:                                              ; preds = %137, %128
  %.not122 = icmp eq ptr %.078, null
  br i1 %.not122, label %143, label %139

139:                                              ; preds = %138
  %140 = call i32 @write_tform(ptr noundef nonnull %.078, ptr noundef nonnull %98) #9
  %.not123 = icmp eq i32 %140, 0
  br i1 %.not123, label %143, label %141

141:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %16) #9
  %142 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %16, i64 noundef 1024, ptr noundef nonnull @.str.32, ptr noundef nonnull %.078) #9
  call void @err_msg(ptr noundef nonnull %16)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %16) #9
  br label %.loopexit

143:                                              ; preds = %139, %138
  %.not124 = icmp eq ptr %.074, null
  br i1 %.not124, label %155, label %144

144:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %17) #9
  call void @init_im(ptr noundef nonnull %17) #9
  %145 = call i32 @im_copy_dims(ptr noundef nonnull %7, ptr noundef nonnull %17) #9
  %.not125 = icmp eq i32 %145, 0
  br i1 %.not125, label %147, label %146

146:                                              ; preds = %144
  call void @err_msgu(ptr noundef nonnull @.str.33)
  br label %.thread149

147:                                              ; preds = %144
  %148 = call i32 @im_inv_transform(ptr noundef nonnull %98, ptr noundef nonnull %6, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %17) #9
  %.not126 = icmp eq i32 %148, 0
  br i1 %.not126, label %150, label %149

149:                                              ; preds = %147
  call void @err_msgu(ptr noundef nonnull @.str.34)
  br label %.thread149

150:                                              ; preds = %147
  %151 = call i32 @im_write(ptr noundef nonnull %.074, ptr noundef nonnull %17) #9
  %.not127 = icmp eq i32 %151, 0
  br i1 %.not127, label %154, label %152

152:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %18) #9
  %153 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %18, i64 noundef 1024, ptr noundef nonnull @.str.35, ptr noundef nonnull %.074) #9
  call void @err_msg(ptr noundef nonnull %18)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %18) #9
  br label %.thread149

.thread149:                                       ; preds = %146, %149, %152
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %17) #9
  br label %.loopexit

154:                                              ; preds = %150
  call void @im_free(ptr noundef nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %17) #9
  br label %155

155:                                              ; preds = %154, %143
  %156 = icmp ne ptr %.080, null
  %157 = icmp ne ptr %.094, null
  %or.cond8 = select i1 %156, i1 true, i1 %157
  %158 = icmp ne ptr %.096, null
  %or.cond10 = select i1 %or.cond8, i1 true, i1 %158
  br i1 %or.cond10, label %159, label %.loopexit

159:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #9
  %160 = icmp eq ptr %.080, null
  %. = select i1 %160, ptr null, ptr %19
  %161 = icmp eq ptr %.094, null
  %162 = select i1 %161, ptr null, ptr %20
  %163 = icmp eq ptr %.096, null
  %164 = select i1 %163, ptr null, ptr %21
  call void @init_im(ptr noundef nonnull %19) #9
  call void @init_im(ptr noundef nonnull %20) #9
  call void @init_im(ptr noundef nonnull %21) #9
  %165 = call i32 @init_Mat_rm(ptr noundef nonnull %22, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0) #9
  %.not128 = icmp eq i32 %165, 0
  br i1 %.not128, label %166, label %168

166:                                              ; preds = %159
  %167 = call i32 @init_Mat_rm(ptr noundef nonnull %23, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0) #9
  %.not129 = icmp eq i32 %167, 0
  br i1 %.not129, label %169, label %168

168:                                              ; preds = %166, %159
  call void @err_msgu(ptr noundef nonnull @.str.36)
  br label %.thread153

169:                                              ; preds = %166
  %170 = getelementptr inbounds i8, ptr %3, i64 368
  %171 = call i32 @SIFT3D_Descriptor_coords_to_Mat_rm(ptr noundef nonnull %170, ptr noundef nonnull %22) #9
  %.not130 = icmp eq i32 %171, 0
  br i1 %.not130, label %172, label %175

172:                                              ; preds = %169
  %173 = getelementptr inbounds i8, ptr %3, i64 400
  %174 = call i32 @SIFT3D_Descriptor_coords_to_Mat_rm(ptr noundef nonnull %173, ptr noundef nonnull %23) #9
  %.not131 = icmp eq i32 %174, 0
  br i1 %.not131, label %176, label %175

175:                                              ; preds = %172, %169
  call void @err_msgu(ptr noundef nonnull @.str.37)
  br label %.thread153

176:                                              ; preds = %172
  %177 = call i32 @draw_matches(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %., ptr noundef %162, ptr noundef %164) #9
  %.not132 = icmp eq i32 %177, 0
  br i1 %.not132, label %179, label %178

178:                                              ; preds = %176
  call void @err_msgu(ptr noundef nonnull @.str.38)
  br label %.thread153

179:                                              ; preds = %176
  br i1 %156, label %180, label %184

180:                                              ; preds = %179
  %181 = call i32 @im_write(ptr noundef nonnull %.080, ptr noundef nonnull %19) #9
  %.not133 = icmp eq i32 %181, 0
  br i1 %.not133, label %184, label %182

182:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %24) #9
  %183 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %24, i64 noundef 1024, ptr noundef nonnull @.str.39, ptr noundef nonnull %.080) #9
  call void @err_msg(ptr noundef nonnull %24)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %24) #9
  br label %.thread153

184:                                              ; preds = %180, %179
  br i1 %157, label %185, label %189

185:                                              ; preds = %184
  %186 = call i32 @im_write(ptr noundef nonnull %.094, ptr noundef nonnull %20) #9
  %.not134 = icmp eq i32 %186, 0
  br i1 %.not134, label %189, label %187

187:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %25) #9
  %188 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %25, i64 noundef 1024, ptr noundef nonnull @.str.40, ptr noundef %.080) #9
  call void @err_msg(ptr noundef nonnull %25)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %25) #9
  br label %.thread153

189:                                              ; preds = %185, %184
  br i1 %158, label %190, label %194

190:                                              ; preds = %189
  %191 = call i32 @im_write(ptr noundef nonnull %.096, ptr noundef nonnull %21) #9
  %.not135 = icmp eq i32 %191, 0
  br i1 %.not135, label %194, label %192

192:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %26) #9
  %193 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %26, i64 noundef 1024, ptr noundef nonnull @.str.41, ptr noundef %.080) #9
  call void @err_msg(ptr noundef nonnull %26)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %26) #9
  br label %.thread153

.thread153:                                       ; preds = %168, %175, %178, %182, %187, %192
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %19) #9
  br label %.loopexit

194:                                              ; preds = %189, %190
  call void @im_free(ptr noundef nonnull %19) #9
  call void @im_free(ptr noundef nonnull %20) #9
  call void @im_free(ptr noundef nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %19) #9
  br label %.loopexit

.loopexit:                                        ; preds = %.thread, %155, %194, %.thread153, %.thread149, %.thread145, %74, %69, %64, %101, %38, %2, %141, %127, %124, %121, %118, %115, %109, %105, %100, %90, %88, %83, %78, %45, %37, %29, %28
  %.10 = phi i32 [ 1, %29 ], [ 1, %37 ], [ 1, %45 ], [ 1, %78 ], [ 1, %74 ], [ 1, %69 ], [ 1, %64 ], [ 1, %88 ], [ 1, %90 ], [ 1, %100 ], [ 1, %105 ], [ 1, %109 ], [ 1, %115 ], [ 1, %127 ], [ 1, %141 ], [ 1, %118 ], [ 1, %121 ], [ 1, %124 ], [ 1, %83 ], [ 0, %28 ], [ 0, %2 ], [ 1, %38 ], [ 1, %101 ], [ 1, %.thread145 ], [ 1, %.thread149 ], [ 1, %.thread153 ], [ 0, %194 ], [ 0, %155 ], [ 1, %.thread ]
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 304, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #9
  ret i32 %.10
}

; 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 @parse_gnu(i32 noundef, ptr noundef) local_unnamed_addr #3

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

declare void @init_im(ptr noundef) local_unnamed_addr #3

declare i32 @init_Reg_SIFT3D(ptr noundef) local_unnamed_addr #3

declare void @init_Ransac(ptr noundef) local_unnamed_addr #3

declare i32 @init_SIFT3D(ptr noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: nounwind
declare i32 @getopt_long(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare i32 @set_nn_thresh_Reg_SIFT3D(ptr noundef, double noundef) local_unnamed_addr #3

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

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

declare i32 @set_err_thresh_Ransac(ptr noundef, double noundef) local_unnamed_addr #3

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

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

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

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

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

declare i64 @tform_type_get_size(i32 noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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

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

declare void @cleanup_Mat_rm(ptr noundef) local_unnamed_addr #3

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

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

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

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

declare void @im_free(ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
declare hidden void @print_help() 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 = { 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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