; LLVM IR from yuikns/panther :: ann/ann2fig/ann2fig.ll (Z7getArgsiPPc)

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

%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@file_name = external dso_local global [500 x i8], align 16
@infile_name = external dso_local global [500 x i8], align 16
@outfile_name = external dso_local global [500 x i8], align 16
@caption = external dso_local global [500 x i8], align 16
@ofile = external dso_local global %"class.std::basic_ofstream", align 8
@ifile = external dso_local global %"class.std::basic_ifstream", align 8
@dim_x = external dso_local global i32, align 4
@dim_y = external dso_local global i32, align 4
@slice_val = external dso_local global [1000 x double], align 16
@u_per_in = external dso_local global double, align 8
@in_size = external dso_local global double, align 8
@in_low_x = external dso_local global double, align 8
@in_low_y = external dso_local global double, align 8
@u_size = external dso_local global double, align 8
@u_low_x = external dso_local global double, align 8
@u_low_y = external dso_local global double, align 8
@pt_size = external dso_local global i32, align 4
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [1110 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [4 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
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZL11DUMP_SUFFIX = external hidden constant [5 x i8], align 1
@_ZL10FIG_SUFFIX = external hidden constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5ErrorPKc6ANNerr(ptr noundef, i32 noundef) #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z13set_slice_vald(double noundef) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7getArgsiPPc(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @_Z13set_slice_vald(double noundef 0.000000e+00)
  %9 = load i32, ptr %3, align 4, !tbaa !5
  %10 = icmp sle i32 %9, 1
  br i1 %10, label %11, label %13

11:                                               ; preds = %2
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.6)
  call void @exit(i32 noundef 0) #8
  unreachable

13:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !11
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %199, %13
  %15 = load i32, ptr %5, align 4, !tbaa !5
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %18, label %202

18:                                               ; preds = %14
  %19 = load ptr, ptr %4, align 8, !tbaa !9
  %20 = load i32, ptr %5, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds ptr, ptr %19, i64 %21
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = call i32 @strcmp(ptr noundef %23, ptr noundef @.str.7) #9
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %34, label %26

26:                                               ; preds = %18
  %27 = load ptr, ptr %4, align 8, !tbaa !9
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %5, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds ptr, ptr %27, i64 %30
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %32, ptr noundef @.str.8, ptr noundef @u_per_in) #7
  br label %171

34:                                               ; preds = %18
  %35 = load ptr, ptr %4, align 8, !tbaa !9
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds ptr, ptr %35, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = call i32 @strcmp(ptr noundef %39, ptr noundef @.str.9) #9
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %50, label %42

42:                                               ; preds = %34
  %43 = load ptr, ptr %4, align 8, !tbaa !9
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %5, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds ptr, ptr %43, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %48, ptr noundef @.str.8, ptr noundef @in_low_x) #7
  br label %170

50:                                               ; preds = %34
  %51 = load ptr, ptr %4, align 8, !tbaa !9
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds ptr, ptr %51, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = call i32 @strcmp(ptr noundef %55, ptr noundef @.str.10) #9
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %66, label %58

58:                                               ; preds = %50
  %59 = load ptr, ptr %4, align 8, !tbaa !9
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %5, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds ptr, ptr %59, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %64, ptr noundef @.str.8, ptr noundef @in_low_y) #7
  br label %169

66:                                               ; preds = %50
  %67 = load ptr, ptr %4, align 8, !tbaa !9
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds ptr, ptr %67, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = call i32 @strcmp(ptr noundef %71, ptr noundef @.str.11) #9
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %82, label %74

74:                                               ; preds = %66
  %75 = load ptr, ptr %4, align 8, !tbaa !9
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %5, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds ptr, ptr %75, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %80, ptr noundef @.str.8, ptr noundef @in_size) #7
  br label %168

82:                                               ; preds = %66
  %83 = load ptr, ptr %4, align 8, !tbaa !9
  %84 = load i32, ptr %5, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds ptr, ptr %83, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  %88 = call i32 @strcmp(ptr noundef %87, ptr noundef @.str.12) #9
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %98, label %90

90:                                               ; preds = %82
  %91 = load ptr, ptr %4, align 8, !tbaa !9
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %5, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds ptr, ptr %91, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !9
  %97 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %96, ptr noundef @.str.13, ptr noundef @dim_x) #7
  br label %167

98:                                               ; preds = %82
  %99 = load ptr, ptr %4, align 8, !tbaa !9
  %100 = load i32, ptr %5, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds ptr, ptr %99, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = call i32 @strcmp(ptr noundef %103, ptr noundef @.str.14) #9
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %114, label %106

106:                                              ; preds = %98
  %107 = load ptr, ptr %4, align 8, !tbaa !9
  %108 = load i32, ptr %5, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %5, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds ptr, ptr %107, i64 %110
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  %113 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %112, ptr noundef @.str.13, ptr noundef @dim_y) #7
  br label %166

114:                                              ; preds = %98
  %115 = load ptr, ptr %4, align 8, !tbaa !9
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %115, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = call i32 @strcmp(ptr noundef %119, ptr noundef @.str.15) #9
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %131, label %122

122:                                              ; preds = %114
  %123 = load ptr, ptr %4, align 8, !tbaa !9
  %124 = load i32, ptr %5, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %5, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds ptr, ptr %123, i64 %126
  %128 = load ptr, ptr %127, align 8, !tbaa !9
  %129 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %128, ptr noundef @.str.8, ptr noundef %7) #7
  %130 = load double, ptr %7, align 8, !tbaa !13
  call void @_Z13set_slice_vald(double noundef %130)
  br label %165

131:                                              ; preds = %114
  %132 = load ptr, ptr %4, align 8, !tbaa !9
  %133 = load i32, ptr %5, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds ptr, ptr %132, i64 %134
  %136 = load ptr, ptr %135, align 8, !tbaa !9
  %137 = call i32 @strcmp(ptr noundef %136, ptr noundef @.str.16) #9
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %164, label %139

139:                                              ; preds = %131
  %140 = load ptr, ptr %4, align 8, !tbaa !9
  %141 = load i32, ptr %5, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %5, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds ptr, ptr %140, i64 %143
  %145 = load ptr, ptr %144, align 8, !tbaa !9
  %146 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %145, ptr noundef @.str.13, ptr noundef %6) #7
  %147 = load i32, ptr %6, align 4, !tbaa !5
  %148 = icmp slt i32 %147, 0
  br i1 %148, label %152, label %149

149:                                              ; preds = %139
  %150 = load i32, ptr %6, align 4, !tbaa !5
  %151 = icmp sge i32 %150, 1000
  br i1 %151, label %152, label %153

152:                                              ; preds = %149, %139
  call void @_Z5ErrorPKc6ANNerr(ptr noundef @.str.17, i32 noundef 1)
  br label %153

153:                                              ; preds = %152, %149
  %154 = load ptr, ptr %4, align 8, !tbaa !9
  %155 = load i32, ptr %5, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %5, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds ptr, ptr %154, i64 %157
  %159 = load ptr, ptr %158, align 8, !tbaa !9
  %160 = load i32, ptr %6, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [1000 x double], ptr @slice_val, i64 0, i64 %161
  %163 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %159, ptr noundef @.str.8, ptr noundef %162) #7
  br label %164

164:                                              ; preds = %153, %131
  br label %165

165:                                              ; preds = %164, %122
  br label %166

166:                                              ; preds = %165, %106
  br label %167

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

168:                                              ; preds = %167, %74
  br label %169

169:                                              ; preds = %168, %58
  br label %170

170:                                              ; preds = %169, %42
  br label %171

171:                                              ; preds = %170, %26
  %172 = load ptr, ptr %4, align 8, !tbaa !9
  %173 = load i32, ptr %5, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds ptr, ptr %172, i64 %174
  %176 = load ptr, ptr %175, align 8, !tbaa !9
  %177 = call i32 @strcmp(ptr noundef %176, ptr noundef @.str.18) #9
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %187, label %179

179:                                              ; preds = %171
  %180 = load ptr, ptr %4, align 8, !tbaa !9
  %181 = load i32, ptr %5, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %5, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds ptr, ptr %180, i64 %183
  %185 = load ptr, ptr %184, align 8, !tbaa !9
  %186 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %185, ptr noundef @.str.19, ptr noundef @pt_size) #7
  br label %198

187:                                              ; preds = %171
  store i32 1, ptr %8, align 4, !tbaa !11
  %188 = load ptr, ptr %4, align 8, !tbaa !9
  %189 = load i32, ptr %5, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds ptr, ptr %188, i64 %190
  %192 = load ptr, ptr %191, align 8, !tbaa !9
  %193 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %192, ptr noundef @.str.20, ptr noundef @file_name) #7
  %194 = call ptr @strcpy(ptr noundef @infile_name, ptr noundef @file_name) #7
  %195 = call ptr @strcat(ptr noundef @infile_name, ptr noundef @_ZL11DUMP_SUFFIX) #7
  %196 = call ptr @strcpy(ptr noundef @outfile_name, ptr noundef @file_name) #7
  %197 = call ptr @strcat(ptr noundef @outfile_name, ptr noundef @_ZL10FIG_SUFFIX) #7
  br label %198

198:                                              ; preds = %187, %179
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %5, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %5, align 4, !tbaa !5
  br label %14, !llvm.loop !15

202:                                              ; preds = %14
  %203 = load i32, ptr %8, align 4, !tbaa !11
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %206, label %205

205:                                              ; preds = %202
  call void @_Z5ErrorPKc6ANNerr(ptr noundef @.str.21, i32 noundef 1)
  br label %206

206:                                              ; preds = %205, %202
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) @ifile, ptr noundef @infile_name, i32 noundef 8)
  %207 = load ptr, ptr @ifile, align 8, !tbaa !17
  %208 = getelementptr i8, ptr %207, i64 -24
  %209 = load i64, ptr %208, align 8
  %210 = getelementptr inbounds i8, ptr @ifile, i64 %209
  %211 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %210)
  br i1 %211, label %212, label %213

212:                                              ; preds = %206
  call void @_Z5ErrorPKc6ANNerr(ptr noundef @.str.22, i32 noundef 1)
  br label %213

213:                                              ; preds = %212, %206
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) @ofile, ptr noundef @outfile_name, i32 noundef 16)
  %214 = load ptr, ptr @ofile, align 8, !tbaa !17
  %215 = getelementptr i8, ptr %214, i64 -24
  %216 = load i64, ptr %215, align 8
  %217 = getelementptr inbounds i8, ptr @ofile, i64 %216
  %218 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %217)
  br i1 %218, label %219, label %220

219:                                              ; preds = %213
  call void @_Z5ErrorPKc6ANNerr(ptr noundef @.str.23, i32 noundef 1)
  br label %220

220:                                              ; preds = %219, %213
  %221 = load double, ptr @u_per_in, align 8, !tbaa !13
  %222 = load double, ptr @in_low_x, align 8, !tbaa !13
  %223 = fmul double %221, %222
  store double %223, ptr @u_low_x, align 8, !tbaa !13
  %224 = load double, ptr @u_per_in, align 8, !tbaa !13
  %225 = load double, ptr @in_low_y, align 8, !tbaa !13
  %226 = fmul double %224, %225
  store double %226, ptr @u_low_y, align 8, !tbaa !13
  %227 = load double, ptr @u_per_in, align 8, !tbaa !13
  %228 = load double, ptr @in_size, align 8, !tbaa !13
  %229 = fmul double %227, %228
  store double %229, ptr @u_size, align 8, !tbaa !13
  %230 = load ptr, ptr %4, align 8, !tbaa !9
  %231 = getelementptr inbounds ptr, ptr %230, i64 0
  %232 = load ptr, ptr %231, align 8, !tbaa !9
  %233 = call ptr @strcpy(ptr noundef @caption, ptr noundef %232) #7
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %246, %220
  %235 = load i32, ptr %5, align 4, !tbaa !5
  %236 = load i32, ptr %3, align 4, !tbaa !5
  %237 = icmp slt i32 %235, %236
  br i1 %237, label %238, label %249

238:                                              ; preds = %234
  %239 = call ptr @strcat(ptr noundef @caption, ptr noundef @.str.24) #7
  %240 = load ptr, ptr %4, align 8, !tbaa !9
  %241 = load i32, ptr %5, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds ptr, ptr %240, i64 %242
  %244 = load ptr, ptr %243, align 8, !tbaa !9
  %245 = call ptr @strcat(ptr noundef @caption, ptr noundef %244) #7
  br label %246

246:                                              ; preds = %238
  %247 = load i32, ptr %5, align 4, !tbaa !5
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %5, align 4, !tbaa !5
  br label %234, !llvm.loop !19

249:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret void
}

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

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

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

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) #0 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) #0 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS7ANNbool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !8, i64 0}
!19 = distinct !{!19, !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"

%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@file_name = external dso_local global [500 x i8], align 16
@infile_name = external dso_local global [500 x i8], align 16
@outfile_name = external dso_local global [500 x i8], align 16
@caption = external dso_local global [500 x i8], align 16
@ofile = external dso_local global %"class.std::basic_ofstream", align 8
@ifile = external dso_local global %"class.std::basic_ifstream", align 8
@dim_x = external dso_local global i32, align 4
@dim_y = external dso_local global i32, align 4
@slice_val = external dso_local global [1000 x double], align 16
@u_per_in = external dso_local global double, align 8
@in_size = external dso_local global double, align 8
@in_low_x = external dso_local global double, align 8
@in_low_y = external dso_local global double, align 8
@u_size = external dso_local local_unnamed_addr global double, align 8
@u_low_x = external dso_local local_unnamed_addr global double, align 8
@u_low_y = external dso_local local_unnamed_addr global double, align 8
@pt_size = external dso_local global i32, align 4
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [1110 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [4 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
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZL11DUMP_SUFFIX = external hidden constant [5 x i8], align 1
@_ZL10FIG_SUFFIX = external hidden constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5ErrorPKc6ANNerr(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z13set_slice_vald(double noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7getArgsiPPc(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  tail call void @_Z13set_slice_vald(double noundef 0.000000e+00)
  %5 = icmp slt i32 %0, 2
  br i1 %5, label %6, label %.preheader

.preheader:                                       ; preds = %2
  %invariant.gep = getelementptr i8, ptr %1, i64 8
  %invariant.gep85 = getelementptr i8, ptr %1, i64 8
  br label %.outer

.outer:                                           ; preds = %.thread, %.preheader
  %.not = phi i1 [ false, %.thread ], [ true, %.preheader ]
  %.05163.ph = phi i32 [ %99, %.thread ], [ 1, %.preheader ]
  br label %8

6:                                                ; preds = %2
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.6)
  tail call void @exit(i32 noundef 0) #10
  unreachable

8:                                                ; preds = %.outer, %88
  %.05163 = phi i32 [ %92, %88 ], [ %.05163.ph, %.outer ]
  %9 = sext i32 %.05163 to i64
  %10 = getelementptr inbounds ptr, ptr %1, i64 %9
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.7) #11
  %.not54 = icmp eq i32 %12, 0
  br i1 %.not54, label %13, label %19

13:                                               ; preds = %8
  %14 = add nsw i32 %.05163, 1
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds ptr, ptr %1, i64 %15
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %17, ptr noundef nonnull @.str.8, ptr noundef nonnull @u_per_in) #9
  br label %84

19:                                               ; preds = %8
  %20 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.9) #11
  %.not55 = icmp eq i32 %20, 0
  br i1 %.not55, label %21, label %27

21:                                               ; preds = %19
  %22 = add nsw i32 %.05163, 1
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds ptr, ptr %1, i64 %23
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %25, ptr noundef nonnull @.str.8, ptr noundef nonnull @in_low_x) #9
  br label %84

27:                                               ; preds = %19
  %28 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.10) #11
  %.not56 = icmp eq i32 %28, 0
  br i1 %.not56, label %29, label %35

29:                                               ; preds = %27
  %30 = add nsw i32 %.05163, 1
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds ptr, ptr %1, i64 %31
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %33, ptr noundef nonnull @.str.8, ptr noundef nonnull @in_low_y) #9
  br label %84

35:                                               ; preds = %27
  %36 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.11) #11
  %.not57 = icmp eq i32 %36, 0
  br i1 %.not57, label %37, label %43

37:                                               ; preds = %35
  %38 = add nsw i32 %.05163, 1
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds ptr, ptr %1, i64 %39
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %41, ptr noundef nonnull @.str.8, ptr noundef nonnull @in_size) #9
  br label %84

43:                                               ; preds = %35
  %44 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.12) #11
  %.not58 = icmp eq i32 %44, 0
  br i1 %.not58, label %45, label %51

45:                                               ; preds = %43
  %46 = add nsw i32 %.05163, 1
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds ptr, ptr %1, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %49, ptr noundef nonnull @.str.13, ptr noundef nonnull @dim_x) #9
  br label %84

51:                                               ; preds = %43
  %52 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.14) #11
  %.not59 = icmp eq i32 %52, 0
  br i1 %.not59, label %53, label %59

53:                                               ; preds = %51
  %54 = add nsw i32 %.05163, 1
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds ptr, ptr %1, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %57, ptr noundef nonnull @.str.13, ptr noundef nonnull @dim_y) #9
  br label %84

59:                                               ; preds = %51
  %60 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.15) #11
  %.not60 = icmp eq i32 %60, 0
  br i1 %.not60, label %61, label %68

61:                                               ; preds = %59
  %62 = add nsw i32 %.05163, 1
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds ptr, ptr %1, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %65, ptr noundef nonnull @.str.8, ptr noundef nonnull %4) #9
  %67 = load double, ptr %4, align 8, !tbaa !9
  call void @_Z13set_slice_vald(double noundef %67)
  br label %84

68:                                               ; preds = %59
  %69 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.16) #11
  %.not61 = icmp eq i32 %69, 0
  br i1 %.not61, label %70, label %84

70:                                               ; preds = %68
  %gep = getelementptr ptr, ptr %invariant.gep, i64 %9
  %71 = load ptr, ptr %gep, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %71, ptr noundef nonnull @.str.13, ptr noundef nonnull %3) #9
  %73 = load i32, ptr %3, align 4
  %or.cond = icmp ugt i32 %73, 999
  br i1 %or.cond, label %74, label %75

74:                                               ; preds = %70
  call void @_Z5ErrorPKc6ANNerr(ptr noundef nonnull @.str.17, i32 noundef 1)
  %.pre = load i32, ptr %3, align 4, !tbaa !11
  br label %75

75:                                               ; preds = %70, %74
  %76 = phi i32 [ %73, %70 ], [ %.pre, %74 ]
  %77 = add nsw i32 %.05163, 2
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds ptr, ptr %1, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = sext i32 %76 to i64
  %82 = getelementptr inbounds [1000 x double], ptr @slice_val, i64 0, i64 %81
  %83 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %80, ptr noundef nonnull @.str.8, ptr noundef nonnull %82) #9
  br label %84

84:                                               ; preds = %21, %37, %53, %68, %75, %61, %45, %29, %13
  %.pre-phi = phi i64 [ %23, %21 ], [ %39, %37 ], [ %55, %53 ], [ %9, %68 ], [ %78, %75 ], [ %63, %61 ], [ %47, %45 ], [ %31, %29 ], [ %15, %13 ]
  %.152 = phi i32 [ %22, %21 ], [ %38, %37 ], [ %54, %53 ], [ %.05163, %68 ], [ %77, %75 ], [ %62, %61 ], [ %46, %45 ], [ %30, %29 ], [ %14, %13 ]
  %85 = getelementptr inbounds ptr, ptr %1, i64 %.pre-phi
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %86, ptr noundef nonnull dereferenceable(1) @.str.18) #11
  %.not62 = icmp eq i32 %87, 0
  br i1 %.not62, label %88, label %.thread

88:                                               ; preds = %84
  %89 = sext i32 %.152 to i64
  %gep86 = getelementptr ptr, ptr %invariant.gep85, i64 %89
  %90 = load ptr, ptr %gep86, align 8, !tbaa !5
  %91 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %90, ptr noundef nonnull @.str.19, ptr noundef nonnull @pt_size) #9
  %92 = add nsw i32 %.152, 2
  %93 = icmp slt i32 %92, %0
  br i1 %93, label %8, label %101, !llvm.loop !13

.thread:                                          ; preds = %84
  %94 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %86, ptr noundef nonnull @.str.20, ptr noundef nonnull @file_name) #9
  %95 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @infile_name, ptr noundef nonnull dereferenceable(1) @file_name) #9
  %96 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) @infile_name, ptr noundef nonnull dereferenceable(1) @_ZL11DUMP_SUFFIX) #9
  %97 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @outfile_name, ptr noundef nonnull dereferenceable(1) @file_name) #9
  %98 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) @outfile_name, ptr noundef nonnull dereferenceable(1) @_ZL10FIG_SUFFIX) #9
  %99 = add nsw i32 %.152, 1
  %100 = icmp slt i32 %99, %0
  br i1 %100, label %.outer, label %.thread70, !llvm.loop !13

101:                                              ; preds = %88
  br i1 %.not, label %102, label %.thread70

102:                                              ; preds = %101
  call void @_Z5ErrorPKc6ANNerr(ptr noundef nonnull @.str.21, i32 noundef 1)
  br label %.thread70

.thread70:                                        ; preds = %.thread, %102, %101
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) @ifile, ptr noundef nonnull @infile_name, i32 noundef 8)
  %103 = load ptr, ptr @ifile, align 8, !tbaa !15
  %104 = getelementptr i8, ptr %103, i64 -24
  %105 = load i64, ptr %104, align 8
  %106 = getelementptr inbounds i8, ptr @ifile, i64 %105
  %107 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %106)
  br i1 %107, label %108, label %109

108:                                              ; preds = %.thread70
  call void @_Z5ErrorPKc6ANNerr(ptr noundef nonnull @.str.22, i32 noundef 1)
  br label %109

109:                                              ; preds = %108, %.thread70
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) @ofile, ptr noundef nonnull @outfile_name, i32 noundef 16)
  %110 = load ptr, ptr @ofile, align 8, !tbaa !15
  %111 = getelementptr i8, ptr %110, i64 -24
  %112 = load i64, ptr %111, align 8
  %113 = getelementptr inbounds i8, ptr @ofile, i64 %112
  %114 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %113)
  br i1 %114, label %115, label %.lr.ph.preheader

115:                                              ; preds = %109
  call void @_Z5ErrorPKc6ANNerr(ptr noundef nonnull @.str.23, i32 noundef 1)
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %109, %115
  %116 = load double, ptr @u_per_in, align 8, !tbaa !9
  %117 = load double, ptr @in_low_x, align 8, !tbaa !9
  %118 = fmul double %116, %117
  store double %118, ptr @u_low_x, align 8, !tbaa !9
  %119 = load double, ptr @in_low_y, align 8, !tbaa !9
  %120 = fmul double %116, %119
  store double %120, ptr @u_low_y, align 8, !tbaa !9
  %121 = load double, ptr @in_size, align 8, !tbaa !9
  %122 = fmul double %116, %121
  store double %122, ptr @u_size, align 8, !tbaa !9
  %123 = load ptr, ptr %1, align 8, !tbaa !5
  %124 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @caption, ptr noundef nonnull dereferenceable(1) %123) #9
  %smax = call i32 @llvm.smax.i32(i32 %0, i32 2)
  %wide.trip.count = zext nneg i32 %smax to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %125 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) @caption, ptr noundef nonnull dereferenceable(1) @.str.24) #9
  %126 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) @caption, ptr noundef nonnull dereferenceable(1) %127) #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 %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture 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 #6

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #8

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !14}


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