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

; 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_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_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_ostream" = type { ptr, %"class.std::basic_ios" }
%class.ANNorthRect = type { ptr, ptr }

@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
@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
@dim = external dso_local global i32, align 4
@n_pts = external dso_local global i32, align 4
@pts = external dso_local global ptr, align 8
@scale = external dso_local global double, align 8
@offset_x = external dso_local global double, align 8
@offset_y = external dso_local global double, align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [47 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11ANNorthRectD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8readTreeR11ANNorthRect(ptr noundef nonnull align 8 dereferenceable(16)) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7readANNv() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca [500 x i8], align 16
  %3 = alloca [500 x i8], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %class.ANNorthRect, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #7
  call void @llvm.lifetime.start.p0(i64 500, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 500, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %13 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 0
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef %13)
  %15 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 0
  %16 = call i32 @strcmp(ptr noundef %15, ptr noundef @.str.42) #8
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %19

18:                                               ; preds = %0
  call void @_Z5ErrorPKc6ANNerr(ptr noundef @.str.43, i32 noundef 1)
  br label %19

19:                                               ; preds = %18, %0
  %20 = getelementptr inbounds [500 x i8], ptr %3, i64 0, i64 0
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi7getlineEPcl(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef %20, i64 noundef 500)
  %22 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 0
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef %22)
  %24 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 0
  %25 = call i32 @strcmp(ptr noundef %24, ptr noundef @.str.44) #8
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %72

27:                                               ; preds = %19
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 4 dereferenceable(4) @dim)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 4 dereferenceable(4) @n_pts)
  %30 = load i32, ptr @n_pts, align 4, !tbaa !5
  %31 = load i32, ptr @dim, align 4, !tbaa !5
  %32 = call noundef ptr @_Z11annAllocPtsii(i32 noundef %30, i32 noundef %31)
  store ptr %32, ptr @pts, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %66, %27
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = load i32, ptr @n_pts, align 4, !tbaa !5
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %69

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 0
  br i1 %41, label %46, label %42

42:                                               ; preds = %38
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = load i32, ptr @n_pts, align 4, !tbaa !5
  %45 = icmp sge i32 %43, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %42, %38
  call void @_Z5ErrorPKc6ANNerr(ptr noundef @.str.45, i32 noundef 1)
  br label %47

47:                                               ; preds = %46, %42
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %62, %47
  %49 = load i32, ptr %1, align 4, !tbaa !5
  %50 = load i32, ptr @dim, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %52, label %65

52:                                               ; preds = %48
  %53 = load ptr, ptr @pts, align 8, !tbaa !9
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds ptr, ptr %53, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = load i32, ptr %1, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds double, ptr %57, i64 %59
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 8 dereferenceable(8) %60)
  br label %62

62:                                               ; preds = %52
  %63 = load i32, ptr %1, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %1, align 4, !tbaa !5
  br label %48, !llvm.loop !11

65:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %5, align 4, !tbaa !5
  br label %33, !llvm.loop !13

69:                                               ; preds = %37
  %70 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 0
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef %70)
  br label %72

72:                                               ; preds = %69, %19
  %73 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 0
  %74 = call i32 @strcmp(ptr noundef %73, ptr noundef @.str.46) #8
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %189

76:                                               ; preds = %72
  %77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 4 dereferenceable(4) @dim)
  %78 = load i32, ptr @dim_x, align 4, !tbaa !5
  %79 = load i32, ptr @dim, align 4, !tbaa !5
  %80 = icmp sgt i32 %78, %79
  br i1 %80, label %85, label %81

81:                                               ; preds = %76
  %82 = load i32, ptr @dim_y, align 4, !tbaa !5
  %83 = load i32, ptr @dim, align 4, !tbaa !5
  %84 = icmp sgt i32 %82, %83
  br i1 %84, label %85, label %86

85:                                               ; preds = %81, %76
  call void @_Z5ErrorPKc6ANNerr(ptr noundef @.str.47, i32 noundef 1)
  br label %86

86:                                               ; preds = %85, %81
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 4 dereferenceable(4) @n_pts)
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  %89 = load i32, ptr @dim, align 4, !tbaa !5
  call void @_ZN11ANNorthRectC2Eidd(ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef %89, double noundef 0.000000e+00, double noundef 0.000000e+00)
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %102, %86
  %91 = load i32, ptr %1, align 4, !tbaa !5
  %92 = load i32, ptr @dim, align 4, !tbaa !5
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %94, label %109

94:                                               ; preds = %90
  %95 = getelementptr inbounds %class.ANNorthRect, ptr %7, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !14
  %97 = load i32, ptr %1, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %96, i64 %98
  %100 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 8 dereferenceable(8) %99)
          to label %101 unwind label %105

101:                                              ; preds = %94
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %1, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %1, align 4, !tbaa !5
  br label %90, !llvm.loop !16

105:                                              ; preds = %114, %94
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %8, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %9, align 4
  br label %188

109:                                              ; preds = %90
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %122, %109
  %111 = load i32, ptr %1, align 4, !tbaa !5
  %112 = load i32, ptr @dim, align 4, !tbaa !5
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %114, label %125

114:                                              ; preds = %110
  %115 = getelementptr inbounds %class.ANNorthRect, ptr %7, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !17
  %117 = load i32, ptr %1, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %116, i64 %118
  %120 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 8 dereferenceable(8) %119)
          to label %121 unwind label %105

121:                                              ; preds = %114
  br label %122

122:                                              ; preds = %121
  %123 = load i32, ptr %1, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %1, align 4, !tbaa !5
  br label %110, !llvm.loop !18

125:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %126 = getelementptr inbounds %class.ANNorthRect, ptr %7, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8, !tbaa !17
  %128 = load i32, ptr @dim_x, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds double, ptr %127, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !19
  %132 = getelementptr inbounds %class.ANNorthRect, ptr %7, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !14
  %134 = load i32, ptr @dim_x, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %133, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !19
  %138 = fsub double %131, %137
  store double %138, ptr %10, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %139 = getelementptr inbounds %class.ANNorthRect, ptr %7, i32 0, i32 1
  %140 = load ptr, ptr %139, align 8, !tbaa !17
  %141 = load i32, ptr @dim_y, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds double, ptr %140, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !19
  %145 = getelementptr inbounds %class.ANNorthRect, ptr %7, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !14
  %147 = load i32, ptr @dim_y, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds double, ptr %146, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !19
  %151 = fsub double %144, %150
  store double %151, ptr %11, align 8, !tbaa !19
  %152 = load double, ptr %10, align 8, !tbaa !19
  %153 = load double, ptr %11, align 8, !tbaa !19
  %154 = fcmp ogt double %152, %153
  br i1 %154, label %155, label %159

155:                                              ; preds = %125
  %156 = load double, ptr @u_size, align 8, !tbaa !19
  %157 = load double, ptr %10, align 8, !tbaa !19
  %158 = fdiv double %156, %157
  store double %158, ptr @scale, align 8, !tbaa !19
  br label %163

159:                                              ; preds = %125
  %160 = load double, ptr @u_size, align 8, !tbaa !19
  %161 = load double, ptr %11, align 8, !tbaa !19
  %162 = fdiv double %160, %161
  store double %162, ptr @scale, align 8, !tbaa !19
  br label %163

163:                                              ; preds = %159, %155
  %164 = load double, ptr @u_low_x, align 8, !tbaa !19
  %165 = load double, ptr @scale, align 8, !tbaa !19
  %166 = getelementptr inbounds %class.ANNorthRect, ptr %7, i32 0, i32 0
  %167 = load ptr, ptr %166, align 8, !tbaa !14
  %168 = load i32, ptr @dim_x, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds double, ptr %167, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !19
  %172 = fneg double %165
  %173 = call double @llvm.fmuladd.f64(double %172, double %171, double %164)
  store double %173, ptr @offset_x, align 8, !tbaa !19
  %174 = load double, ptr @u_low_y, align 8, !tbaa !19
  %175 = load double, ptr @scale, align 8, !tbaa !19
  %176 = getelementptr inbounds %class.ANNorthRect, ptr %7, i32 0, i32 1
  %177 = load ptr, ptr %176, align 8, !tbaa !17
  %178 = load i32, ptr @dim_y, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds double, ptr %177, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !19
  %182 = call double @llvm.fmuladd.f64(double %175, double %181, double %174)
  store double %182, ptr @offset_y, align 8, !tbaa !19
  invoke void @_Z8readTreeR11ANNorthRect(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %183 unwind label %184

183:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @_ZN11ANNorthRectD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  br label %200

184:                                              ; preds = %163
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %8, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %188

188:                                              ; preds = %184, %105
  call void @_ZN11ANNorthRectD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 500, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 500, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
  br label %204

189:                                              ; preds = %72
  %190 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 0
  %191 = call i32 @strcmp(ptr noundef %190, ptr noundef @.str.48) #8
  %192 = icmp eq i32 %191, 0
  br i1 %192, label %193, label %194

193:                                              ; preds = %189
  store i32 1, ptr %12, align 4
  br label %201

194:                                              ; preds = %189
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.49)
  %196 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 0
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %195, ptr noundef %196)
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef @.str.25)
  call void @_Z5ErrorPKc6ANNerr(ptr noundef @.str.50, i32 noundef 1)
  br label %199

199:                                              ; preds = %194
  br label %200

200:                                              ; preds = %199, %183
  store i32 0, ptr %12, align 4
  br label %201

201:                                              ; preds = %200, %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 500, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 500, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
  %202 = load i32, ptr %12, align 4
  switch i32 %202, label %209 [
    i32 0, label %203
    i32 1, label %203
  ]

203:                                              ; preds = %201, %201
  ret void

204:                                              ; preds = %188
  %205 = load ptr, ptr %8, align 8
  %206 = load i32, ptr %9, align 4
  %207 = insertvalue { ptr, i32 } poison, ptr %205, 0
  %208 = insertvalue { ptr, i32 } %207, i32 %206, 1
  resume { ptr, i32 } %208

209:                                              ; preds = %201
  unreachable
}

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi7getlineEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) #0 align 2

declare noundef ptr @_Z11annAllocPtsii(i32 noundef, i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11ANNorthRectC2Eidd(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, double noundef, double noundef) unnamed_addr #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "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 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 #7 = { nounwind }
attributes #8 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !10, i64 0}
!15 = !{!"_ZTS11ANNorthRect", !10, i64 0, !10, i64 8}
!16 = distinct !{!16, !12}
!17 = !{!15, !10, i64 8}
!18 = distinct !{!18, !12}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}


; 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_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_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_ostream" = type { ptr, %"class.std::basic_ios" }
%class.ANNorthRect = type { ptr, ptr }

@ifile = external dso_local global %"class.std::basic_ifstream", align 8
@dim_x = external dso_local local_unnamed_addr global i32, align 4
@dim_y = external dso_local local_unnamed_addr global i32, align 4
@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
@dim = external dso_local global i32, align 4
@n_pts = external dso_local global i32, align 4
@pts = external dso_local local_unnamed_addr global ptr, align 8
@scale = external dso_local local_unnamed_addr global double, align 8
@offset_x = external dso_local local_unnamed_addr global double, align 8
@offset_y = external dso_local local_unnamed_addr global double, align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [47 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11ANNorthRectD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8readTreeR11ANNorthRect(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7readANNv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca [500 x i8], align 16
  %2 = alloca [500 x i8], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %class.ANNorthRect, align 8
  call void @llvm.lifetime.start.p0(i64 500, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 500, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef %1)
  %7 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) @.str.42) #8
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %9, label %8

8:                                                ; preds = %0
  call void @_Z5ErrorPKc6ANNerr(ptr noundef nonnull @.str.43, i32 noundef 1)
  br label %9

9:                                                ; preds = %8, %0
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi7getlineEPcl(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull %2, i64 noundef 500)
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef %1)
  %12 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) @.str.44) #8
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %44

14:                                               ; preds = %9
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 4 dereferenceable(4) @dim)
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 4 dereferenceable(4) @n_pts)
  %17 = load i32, ptr @n_pts, align 4, !tbaa !5
  %18 = load i32, ptr @dim, align 4, !tbaa !5
  %19 = call noundef ptr @_Z11annAllocPtsii(i32 noundef %17, i32 noundef %18)
  store ptr %19, ptr @pts, align 8, !tbaa !9
  %20 = load i32, ptr @n_pts, align 4, !tbaa !5
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph30, label %._crit_edge31

._crit_edge31:                                    ; preds = %._crit_edge, %14
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef %1)
  br label %44

.lr.ph30:                                         ; preds = %14, %._crit_edge
  %.01628 = phi i32 [ %41, %._crit_edge ], [ 0, %14 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, -1
  %26 = load i32, ptr @n_pts, align 4
  %.not24 = icmp slt i32 %24, %26
  %or.cond = select i1 %25, i1 %.not24, i1 false
  br i1 %or.cond, label %28, label %27

27:                                               ; preds = %.lr.ph30
  call void @_Z5ErrorPKc6ANNerr(ptr noundef nonnull @.str.45, i32 noundef 1)
  br label %28

28:                                               ; preds = %.lr.ph30, %27
  %29 = load i32, ptr @dim, align 4, !tbaa !5
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %28, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %28 ]
  %31 = load ptr, ptr @pts, align 8, !tbaa !9
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds ptr, ptr %31, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = getelementptr inbounds double, ptr %35, i64 %indvars.iv
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 8 dereferenceable(8) %36)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = load i32, ptr @dim, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = icmp slt i64 %indvars.iv.next, %39
  br i1 %40, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %41 = add nuw nsw i32 %.01628, 1
  %42 = load i32, ptr @n_pts, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %.lr.ph30, label %._crit_edge31, !llvm.loop !13

44:                                               ; preds = %._crit_edge31, %9
  %45 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) @.str.46) #8
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %108

47:                                               ; preds = %44
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 4 dereferenceable(4) @dim)
  %49 = load i32, ptr @dim_x, align 4, !tbaa !5
  %50 = load i32, ptr @dim, align 4, !tbaa !5
  %51 = icmp sgt i32 %49, %50
  %52 = load i32, ptr @dim_y, align 4
  %53 = icmp sgt i32 %52, %50
  %or.cond26 = select i1 %51, i1 true, i1 %53
  br i1 %or.cond26, label %54, label %55

54:                                               ; preds = %47
  call void @_Z5ErrorPKc6ANNerr(ptr noundef nonnull @.str.47, i32 noundef 1)
  br label %55

55:                                               ; preds = %47, %54
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 4 dereferenceable(4) @n_pts)
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %58 = load i32, ptr @dim, align 4, !tbaa !5
  call void @_ZN11ANNorthRectC2Eidd(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %58, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %59 = load i32, ptr @dim, align 4, !tbaa !5
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %.lr.ph34, label %._crit_edge37

.preheader:                                       ; preds = %66
  %61 = icmp sgt i32 %67, 0
  br i1 %61, label %.lr.ph36, label %._crit_edge37

.lr.ph36:                                         ; preds = %.preheader
  %62 = getelementptr inbounds i8, ptr %5, i64 8
  br label %70

.lr.ph34:                                         ; preds = %55, %66
  %indvars.iv39 = phi i64 [ %indvars.iv.next40, %66 ], [ 0, %55 ]
  %63 = load ptr, ptr %5, align 8, !tbaa !14
  %64 = getelementptr inbounds double, ptr %63, i64 %indvars.iv39
  %65 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %66 unwind label %.loopexit.split-lp

66:                                               ; preds = %.lr.ph34
  %indvars.iv.next40 = add nuw nsw i64 %indvars.iv39, 1
  %67 = load i32, ptr @dim, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = icmp slt i64 %indvars.iv.next40, %68
  br i1 %69, label %.lr.ph34, label %.preheader, !llvm.loop !16

.loopexit:                                        ; preds = %70
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %107

.loopexit.split-lp:                               ; preds = %.lr.ph34
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %107

70:                                               ; preds = %.lr.ph36, %74
  %indvars.iv42 = phi i64 [ 0, %.lr.ph36 ], [ %indvars.iv.next43, %74 ]
  %71 = load ptr, ptr %62, align 8, !tbaa !17
  %72 = getelementptr inbounds double, ptr %71, i64 %indvars.iv42
  %73 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @ifile, ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %74 unwind label %.loopexit

74:                                               ; preds = %70
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %75 = load i32, ptr @dim, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = icmp slt i64 %indvars.iv.next43, %76
  br i1 %77, label %70, label %._crit_edge37, !llvm.loop !18

._crit_edge37:                                    ; preds = %74, %55, %.preheader
  %78 = getelementptr inbounds i8, ptr %5, i64 8
  %79 = load ptr, ptr %78, align 8, !tbaa !17
  %80 = load i32, ptr @dim_x, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %79, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !19
  %84 = load ptr, ptr %5, align 8, !tbaa !14
  %85 = getelementptr inbounds double, ptr %84, i64 %81
  %86 = load double, ptr %85, align 8, !tbaa !19
  %87 = fsub double %83, %86
  %88 = load i32, ptr @dim_y, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds double, ptr %79, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !19
  %92 = getelementptr inbounds double, ptr %84, i64 %89
  %93 = load double, ptr %92, align 8, !tbaa !19
  %94 = fsub double %91, %93
  %95 = fcmp ogt double %87, %94
  %96 = load double, ptr @u_size, align 8
  %storemerge.v = select i1 %95, double %87, double %94
  %storemerge = fdiv double %96, %storemerge.v
  store double %storemerge, ptr @scale, align 8, !tbaa !19
  %97 = load double, ptr @u_low_x, align 8, !tbaa !19
  %98 = load double, ptr %85, align 8, !tbaa !19
  %99 = fneg double %storemerge
  %100 = call double @llvm.fmuladd.f64(double %99, double %98, double %97)
  store double %100, ptr @offset_x, align 8, !tbaa !19
  %101 = load double, ptr @u_low_y, align 8, !tbaa !19
  %102 = load double, ptr %90, align 8, !tbaa !19
  %103 = call double @llvm.fmuladd.f64(double %storemerge, double %102, double %101)
  store double %103, ptr @offset_y, align 8, !tbaa !19
  invoke void @_Z8readTreeR11ANNorthRect(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %104 unwind label %105

104:                                              ; preds = %._crit_edge37
  call void @_ZN11ANNorthRectD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %115

105:                                              ; preds = %._crit_edge37
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %107

107:                                              ; preds = %.loopexit, %.loopexit.split-lp, %105
  %.pn = phi { ptr, i32 } [ %106, %105 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN11ANNorthRectD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 500, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 500, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn

108:                                              ; preds = %44
  %109 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) @.str.48) #8
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %115, label %111

111:                                              ; preds = %108
  %112 = 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.49)
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull %1)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef nonnull @.str.25)
  call void @_Z5ErrorPKc6ANNerr(ptr noundef nonnull @.str.50, i32 noundef 1)
  br label %115

115:                                              ; preds = %104, %111, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 500, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 500, ptr nonnull %1) #7
  ret void
}

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi7getlineEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) local_unnamed_addr #0 align 2

declare noundef ptr @_Z11annAllocPtsii(i32 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11ANNorthRectC2Eidd(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, double noundef, double noundef) unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "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 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 #7 = { nounwind }
attributes #8 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !10, i64 0}
!15 = !{!"_ZTS11ANNorthRect", !10, i64 0, !10, i64 8}
!16 = distinct !{!16, !12}
!17 = !{!15, !10, i64 8}
!18 = distinct !{!18, !12}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}


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