; LLVM IR from yuikns/panther :: ann/test/ann_test.ll (Z7readPtsRPPdRiPc6PtType)

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

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@dim = external dso_local global i32, align 4
@stats = external dso_local global i32, align 4
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [5 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: mustprogress uwtable
declare dso_local void @_Z10printPointPdi(ptr noundef, i32 noundef) #0

; 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: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264)) #0 align 2

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7readPtsRPPdRiPc6PtType(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef %2, i32 noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::basic_ifstream", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 520, ptr %10) #5
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %10, ptr noundef %15, i32 noundef 8)
  %16 = load ptr, ptr %10, align 8, !tbaa !11
  %17 = getelementptr i8, ptr %16, i64 -24
  %18 = load i64, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr %10, i64 %18
  %20 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %19)
          to label %21 unwind label %31

21:                                               ; preds = %4
  br i1 %20, label %22, label %35

22:                                               ; preds = %21
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.79)
          to label %24 unwind label %31

24:                                               ; preds = %22
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef %25)
          to label %27 unwind label %31

27:                                               ; preds = %24
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef @.str.12)
          to label %29 unwind label %31

29:                                               ; preds = %27
  invoke void @_Z5ErrorPKc6ANNerr(ptr noundef @.str.129, i32 noundef 1)
          to label %30 unwind label %31

30:                                               ; preds = %29
  br label %35

31:                                               ; preds = %63, %54, %42, %39, %29, %27, %24, %22, %4
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %11, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %12, align 4
  br label %213

35:                                               ; preds = %30, %21
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %42

39:                                               ; preds = %35
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %41 unwind label %31

41:                                               ; preds = %39
  br label %42

42:                                               ; preds = %41, %35
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = load i32, ptr %43, align 4, !tbaa !13
  %45 = load i32, ptr @dim, align 4, !tbaa !13
  %46 = invoke noundef ptr @_Z11annAllocPtsii(i32 noundef %44, i32 noundef %45)
          to label %47 unwind label %31

47:                                               ; preds = %42
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %46, ptr %48, align 8, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !13
  br label %49

49:                                               ; preds = %97, %47
  %50 = load i32, ptr %9, align 4, !tbaa !13
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load i32, ptr %51, align 4, !tbaa !13
  %53 = icmp slt i32 %50, %52
  br i1 %53, label %54, label %100

54:                                               ; preds = %49
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = load i32, ptr %9, align 4, !tbaa !13
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %56, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = getelementptr inbounds double, ptr %60, i64 0
  %62 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %61)
          to label %63 unwind label %31

63:                                               ; preds = %54
  %64 = load ptr, ptr %62, align 8, !tbaa !11
  %65 = getelementptr i8, ptr %64, i64 -24
  %66 = load i64, ptr %65, align 8
  %67 = getelementptr inbounds i8, ptr %62, i64 %66
  %68 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %67)
          to label %69 unwind label %31

69:                                               ; preds = %63
  br i1 %68, label %70, label %71

70:                                               ; preds = %69
  br label %100

71:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1, ptr %13, align 4, !tbaa !13
  br label %72

72:                                               ; preds = %89, %71
  %73 = load i32, ptr %13, align 4, !tbaa !13
  %74 = load i32, ptr @dim, align 4, !tbaa !13
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %96

77:                                               ; preds = %72
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = load i32, ptr %9, align 4, !tbaa !13
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds ptr, ptr %79, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = load i32, ptr %13, align 4, !tbaa !13
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds double, ptr %83, i64 %85
  %87 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %86)
          to label %88 unwind label %92

88:                                               ; preds = %77
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %13, align 4, !tbaa !13
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %13, align 4, !tbaa !13
  br label %72, !llvm.loop !15

92:                                               ; preds = %77
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %11, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %213

96:                                               ; preds = %76
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %9, align 4, !tbaa !13
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %9, align 4, !tbaa !13
  br label %49, !llvm.loop !17

100:                                              ; preds = %70, %49
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  %101 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %102 unwind label %114

102:                                              ; preds = %100
  %103 = load ptr, ptr %10, align 8, !tbaa !11
  %104 = getelementptr i8, ptr %103, i64 -24
  %105 = load i64, ptr %104, align 8
  %106 = getelementptr inbounds i8, ptr %10, i64 %105
  %107 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %106)
          to label %108 unwind label %114

108:                                              ; preds = %102
  br i1 %107, label %121, label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %8, align 4, !tbaa !9
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %118

112:                                              ; preds = %109
  invoke void @_Z5ErrorPKc6ANNerr(ptr noundef @.str.130, i32 noundef 0)
          to label %113 unwind label %114

113:                                              ; preds = %112
  br label %120

114:                                              ; preds = %209, %206, %200, %192, %190, %187, %185, %177, %163, %160, %158, %156, %153, %151, %148, %144, %142, %140, %137, %133, %131, %129, %118, %112, %102, %100
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %11, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  br label %213

118:                                              ; preds = %109
  invoke void @_Z5ErrorPKc6ANNerr(ptr noundef @.str.131, i32 noundef 0)
          to label %119 unwind label %114

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119, %113
  br label %121

121:                                              ; preds = %120, %108
  %122 = load i32, ptr %9, align 4, !tbaa !13
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 %122, ptr %123, align 4, !tbaa !13
  %124 = load i32, ptr @stats, align 4, !tbaa !18
  %125 = icmp sgt i32 %124, 0
  br i1 %125, label %126, label %212

126:                                              ; preds = %121
  %127 = load i32, ptr %8, align 4, !tbaa !9
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %140

129:                                              ; preds = %126
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.132)
          to label %131 unwind label %114

131:                                              ; preds = %129
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.133)
          to label %133 unwind label %114

133:                                              ; preds = %131
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = load i32, ptr %134, align 4, !tbaa !13
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %132, i32 noundef %135)
          to label %137 unwind label %114

137:                                              ; preds = %133
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @.str.12)
          to label %139 unwind label %114

139:                                              ; preds = %137
  br label %151

140:                                              ; preds = %126
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.134)
          to label %142 unwind label %114

142:                                              ; preds = %140
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.135)
          to label %144 unwind label %114

144:                                              ; preds = %142
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = load i32, ptr %145, align 4, !tbaa !13
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %143, i32 noundef %146)
          to label %148 unwind label %114

148:                                              ; preds = %144
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef @.str.12)
          to label %150 unwind label %114

150:                                              ; preds = %148
  br label %151

151:                                              ; preds = %150, %139
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.136)
          to label %153 unwind label %114

153:                                              ; preds = %151
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef %154)
          to label %156 unwind label %114

156:                                              ; preds = %153
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef @.str.12)
          to label %158 unwind label %114

158:                                              ; preds = %156
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.137)
          to label %160 unwind label %114

160:                                              ; preds = %158
  %161 = load i32, ptr @dim, align 4, !tbaa !13
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %159, i32 noundef %161)
          to label %163 unwind label %114

163:                                              ; preds = %160
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef @.str.12)
          to label %165 unwind label %114

165:                                              ; preds = %163
  %166 = load i32, ptr %8, align 4, !tbaa !9
  %167 = icmp eq i32 %166, 0
  br i1 %167, label %168, label %171

168:                                              ; preds = %165
  %169 = load i32, ptr @stats, align 4, !tbaa !18
  %170 = icmp sge i32 %169, 5
  br i1 %170, label %177, label %171

171:                                              ; preds = %168, %165
  %172 = load i32, ptr %8, align 4, !tbaa !9
  %173 = icmp eq i32 %172, 1
  br i1 %173, label %174, label %209

174:                                              ; preds = %171
  %175 = load i32, ptr @stats, align 4, !tbaa !18
  %176 = icmp sge i32 %175, 4
  br i1 %176, label %177, label %209

177:                                              ; preds = %174, %168
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.138)
          to label %179 unwind label %114

179:                                              ; preds = %177
  store i32 0, ptr %9, align 4, !tbaa !13
  br label %180

180:                                              ; preds = %203, %179
  %181 = load i32, ptr %9, align 4, !tbaa !13
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = load i32, ptr %182, align 4, !tbaa !13
  %184 = icmp slt i32 %181, %183
  br i1 %184, label %185, label %206

185:                                              ; preds = %180
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.139)
          to label %187 unwind label %114

187:                                              ; preds = %185
  %188 = load i32, ptr %9, align 4, !tbaa !13
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %186, i32 noundef %188)
          to label %190 unwind label %114

190:                                              ; preds = %187
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef @.str.109)
          to label %192 unwind label %114

192:                                              ; preds = %190
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = load ptr, ptr %193, align 8, !tbaa !5
  %195 = load i32, ptr %9, align 4, !tbaa !13
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds ptr, ptr %194, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !5
  %199 = load i32, ptr @dim, align 4, !tbaa !13
  invoke void @_Z10printPointPdi(ptr noundef %198, i32 noundef %199)
          to label %200 unwind label %114

200:                                              ; preds = %192
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
          to label %202 unwind label %114

202:                                              ; preds = %200
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %9, align 4, !tbaa !13
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %9, align 4, !tbaa !13
  br label %180, !llvm.loop !20

206:                                              ; preds = %180
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.75)
          to label %208 unwind label %114

208:                                              ; preds = %206
  br label %209

209:                                              ; preds = %208, %174, %171
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.76)
          to label %211 unwind label %114

211:                                              ; preds = %209
  br label %212

212:                                              ; preds = %211, %121
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %10) #5
  call void @llvm.lifetime.end.p0(i64 520, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void

213:                                              ; preds = %114, %92, %31
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %10) #5
  call void @llvm.lifetime.end.p0(i64 520, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %214

214:                                              ; preds = %213
  %215 = load ptr, ptr %11, align 8
  %216 = load i32, ptr %12, align 4
  %217 = insertvalue { ptr, i32 } poison, ptr %215, 0
  %218 = insertvalue { ptr, i32 } %217, i32 %216, 1
  resume { ptr, i32 } %218
}

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; 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_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4 align 2

declare void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #3

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 = { "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 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!"_ZTS6PtType", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS7StatLev", !7, i64 0}
!20 = distinct !{!20, !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_ostream" = type { ptr, %"class.std::basic_ios" }
%"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::locale" = type { ptr }
%"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" }
%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 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@dim = external dso_local local_unnamed_addr global i32, align 4
@stats = external dso_local local_unnamed_addr global i32, align 4
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [5 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 uwtable
declare dso_local void @_Z10printPointPdi(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #0 align 2

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7readPtsRPPdRiPc6PtType(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr nocapture noundef nonnull align 4 dereferenceable(4) %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::basic_ifstream", align 8
  %6 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %5) #5
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %5, ptr noundef %2, i32 noundef 8)
  %7 = load ptr, ptr %5, align 8, !tbaa !5
  %8 = getelementptr i8, ptr %7, i64 -24
  %9 = load i64, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr %5, i64 %9
  %11 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %10)
          to label %12 unwind label %.loopexit.split-lp42

12:                                               ; preds = %4
  br i1 %11, label %13, label %20

13:                                               ; preds = %12
  %14 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.79)
          to label %15 unwind label %.loopexit.split-lp42

15:                                               ; preds = %13
  %16 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef %2)
          to label %17 unwind label %.loopexit.split-lp42

17:                                               ; preds = %15
  %18 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @.str.12)
          to label %19 unwind label %.loopexit.split-lp42

19:                                               ; preds = %17
  invoke void @_Z5ErrorPKc6ANNerr(ptr noundef nonnull @.str.129, i32 noundef 1)
          to label %20 unwind label %.loopexit.split-lp42

.loopexit41:                                      ; preds = %.lr.ph51, %34
  %lpad.loopexit43 = landingpad { ptr, i32 }
          cleanup
  br label %139

.loopexit.split-lp42:                             ; preds = %4, %13, %15, %17, %19, %22, %23
  %lpad.loopexit.split-lp44 = landingpad { ptr, i32 }
          cleanup
  br label %139

20:                                               ; preds = %19, %12
  %21 = load ptr, ptr %0, align 8, !tbaa !8
  %.not = icmp eq ptr %21, null
  br i1 %.not, label %23, label %22

22:                                               ; preds = %20
  invoke void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %23 unwind label %.loopexit.split-lp42

23:                                               ; preds = %22, %20
  %24 = load i32, ptr %1, align 4, !tbaa !11
  %25 = load i32, ptr @dim, align 4, !tbaa !11
  %26 = invoke noundef ptr @_Z11annAllocPtsii(i32 noundef %24, i32 noundef %25)
          to label %27 unwind label %.loopexit.split-lp42

27:                                               ; preds = %23
  store ptr %26, ptr %0, align 8, !tbaa !8
  %28 = load i32, ptr %1, align 4, !tbaa !11
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph51, label %._crit_edge52

.lr.ph51:                                         ; preds = %27, %._crit_edge
  %indvars.iv59 = phi i64 [ %indvars.iv.next60, %._crit_edge ], [ 0, %27 ]
  %30 = load ptr, ptr %0, align 8, !tbaa !8
  %31 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv59
  %32 = load ptr, ptr %31, align 8, !tbaa !8
  %33 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %34 unwind label %.loopexit41

34:                                               ; preds = %.lr.ph51
  %35 = load ptr, ptr %33, align 8, !tbaa !5
  %36 = getelementptr i8, ptr %35, i64 -24
  %37 = load i64, ptr %36, align 8
  %38 = getelementptr inbounds i8, ptr %33, i64 %37
  %39 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %38)
          to label %40 unwind label %.loopexit41

40:                                               ; preds = %34
  br i1 %39, label %._crit_edge52.loopexit, label %.preheader40

.preheader40:                                     ; preds = %40
  %41 = load i32, ptr @dim, align 4, !tbaa !11
  %42 = icmp sgt i32 %41, 1
  br i1 %42, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %51, %.preheader40
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %43 = load i32, ptr %1, align 4, !tbaa !11
  %44 = sext i32 %43 to i64
  %45 = icmp slt i64 %indvars.iv.next60, %44
  br i1 %45, label %.lr.ph51, label %._crit_edge52.loopexit, !llvm.loop !13

.lr.ph:                                           ; preds = %.preheader40, %51
  %indvars.iv = phi i64 [ %indvars.iv.next, %51 ], [ 1, %.preheader40 ]
  %46 = load ptr, ptr %0, align 8, !tbaa !8
  %47 = getelementptr inbounds ptr, ptr %46, i64 %indvars.iv59
  %48 = load ptr, ptr %47, align 8, !tbaa !8
  %49 = getelementptr inbounds double, ptr %48, i64 %indvars.iv
  %50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) %49)
          to label %51 unwind label %55

51:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %52 = load i32, ptr @dim, align 4, !tbaa !11
  %53 = sext i32 %52 to i64
  %54 = icmp slt i64 %indvars.iv.next, %53
  br i1 %54, label %.lr.ph, label %._crit_edge, !llvm.loop !15

55:                                               ; preds = %.lr.ph
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %139

._crit_edge52.loopexit:                           ; preds = %40, %._crit_edge
  %.037.lcssa.ph.in = phi i64 [ %indvars.iv.next60, %._crit_edge ], [ %indvars.iv59, %40 ]
  %.037.lcssa.ph = trunc i64 %.037.lcssa.ph.in to i32
  br label %._crit_edge52

._crit_edge52:                                    ; preds = %._crit_edge52.loopexit, %27
  %.037.lcssa = phi i32 [ 0, %27 ], [ %.037.lcssa.ph, %._crit_edge52.loopexit ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  %57 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %58 unwind label %.loopexit.split-lp

58:                                               ; preds = %._crit_edge52
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr i8, ptr %59, i64 -24
  %61 = load i64, ptr %60, align 8
  %62 = getelementptr inbounds i8, ptr %5, i64 %61
  %63 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %62)
          to label %64 unwind label %.loopexit.split-lp

64:                                               ; preds = %58
  br i1 %63, label %70, label %65

65:                                               ; preds = %64
  %66 = icmp eq i32 %3, 0
  br i1 %66, label %67, label %69

67:                                               ; preds = %65
  invoke void @_Z5ErrorPKc6ANNerr(ptr noundef nonnull @.str.130, i32 noundef 0)
          to label %.thread unwind label %.loopexit.split-lp

.loopexit:                                        ; preds = %.lr.ph56, %119, %122, %124, %129
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %68

.loopexit.split-lp:                               ; preds = %._crit_edge52, %58, %67, %69, %.thread39, %78, %80, %83, %85, %87, %89, %92, %94, %97, %99, %101, %103, %106, %114, %._crit_edge57, %136
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %68

68:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  br label %139

69:                                               ; preds = %65
  invoke void @_Z5ErrorPKc6ANNerr(ptr noundef nonnull @.str.131, i32 noundef 0)
          to label %70 unwind label %.loopexit.split-lp

70:                                               ; preds = %69, %64
  store i32 %.037.lcssa, ptr %1, align 4, !tbaa !11
  %71 = load i32, ptr @stats, align 4, !tbaa !16
  %72 = icmp sgt i32 %71, 0
  br i1 %72, label %75, label %138

.thread:                                          ; preds = %67
  store i32 %.037.lcssa, ptr %1, align 4, !tbaa !11
  %73 = load i32, ptr @stats, align 4, !tbaa !16
  %74 = icmp sgt i32 %73, 0
  br i1 %74, label %.thread39, label %138

75:                                               ; preds = %70
  %76 = icmp eq i32 %3, 0
  br i1 %76, label %.thread39, label %85

.thread39:                                        ; preds = %.thread, %75
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.132)
          to label %78 unwind label %.loopexit.split-lp

78:                                               ; preds = %.thread39
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.133)
          to label %80 unwind label %.loopexit.split-lp

80:                                               ; preds = %78
  %81 = load i32, ptr %1, align 4, !tbaa !11
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %79, i32 noundef %81)
          to label %83 unwind label %.loopexit.split-lp

83:                                               ; preds = %80
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull @.str.12)
          to label %94 unwind label %.loopexit.split-lp

85:                                               ; preds = %75
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.134)
          to label %87 unwind label %.loopexit.split-lp

87:                                               ; preds = %85
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.135)
          to label %89 unwind label %.loopexit.split-lp

89:                                               ; preds = %87
  %90 = load i32, ptr %1, align 4, !tbaa !11
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %88, i32 noundef %90)
          to label %92 unwind label %.loopexit.split-lp

92:                                               ; preds = %89
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull @.str.12)
          to label %94 unwind label %.loopexit.split-lp

94:                                               ; preds = %92, %83
  %95 = phi i1 [ false, %92 ], [ true, %83 ]
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.136)
          to label %97 unwind label %.loopexit.split-lp

97:                                               ; preds = %94
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef %2)
          to label %99 unwind label %.loopexit.split-lp

99:                                               ; preds = %97
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef nonnull @.str.12)
          to label %101 unwind label %.loopexit.split-lp

101:                                              ; preds = %99
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.137)
          to label %103 unwind label %.loopexit.split-lp

103:                                              ; preds = %101
  %104 = load i32, ptr @dim, align 4, !tbaa !11
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %102, i32 noundef %104)
          to label %106 unwind label %.loopexit.split-lp

106:                                              ; preds = %103
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef nonnull @.str.12)
          to label %108 unwind label %.loopexit.split-lp

108:                                              ; preds = %106
  %109 = load i32, ptr @stats, align 4
  %110 = icmp sgt i32 %109, 4
  %or.cond = select i1 %95, i1 %110, i1 false
  br i1 %or.cond, label %114, label %111

111:                                              ; preds = %108
  %112 = icmp eq i32 %3, 1
  %113 = icmp sgt i32 %109, 3
  %or.cond3 = select i1 %112, i1 %113, i1 false
  br i1 %or.cond3, label %114, label %136

114:                                              ; preds = %111, %108
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.138)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %114
  %116 = load i32, ptr %1, align 4, !tbaa !11
  %117 = icmp sgt i32 %116, 0
  br i1 %117, label %.lr.ph56, label %._crit_edge57

.lr.ph56:                                         ; preds = %.preheader, %131
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %131 ], [ 0, %.preheader ]
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.139)
          to label %119 unwind label %.loopexit

119:                                              ; preds = %.lr.ph56
  %120 = trunc nuw nsw i64 %indvars.iv62 to i32
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %118, i32 noundef %120)
          to label %122 unwind label %.loopexit

122:                                              ; preds = %119
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef nonnull @.str.109)
          to label %124 unwind label %.loopexit

124:                                              ; preds = %122
  %125 = load ptr, ptr %0, align 8, !tbaa !8
  %126 = getelementptr inbounds ptr, ptr %125, i64 %indvars.iv62
  %127 = load ptr, ptr %126, align 8, !tbaa !8
  %128 = load i32, ptr @dim, align 4, !tbaa !11
  invoke void @_Z10printPointPdi(ptr noundef %127, i32 noundef %128)
          to label %129 unwind label %.loopexit

129:                                              ; preds = %124
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.12)
          to label %131 unwind label %.loopexit

131:                                              ; preds = %129
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %132 = load i32, ptr %1, align 4, !tbaa !11
  %133 = sext i32 %132 to i64
  %134 = icmp slt i64 %indvars.iv.next63, %133
  br i1 %134, label %.lr.ph56, label %._crit_edge57, !llvm.loop !18

._crit_edge57:                                    ; preds = %131, %.preheader
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.75)
          to label %136 unwind label %.loopexit.split-lp

136:                                              ; preds = %._crit_edge57, %111
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.76)
          to label %138 unwind label %.loopexit.split-lp

138:                                              ; preds = %.thread, %136, %70
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %5) #5
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %5) #5
  ret void

139:                                              ; preds = %.loopexit41, %.loopexit.split-lp42, %68, %55
  %.pn = phi { ptr, i32 } [ %lpad.phi, %68 ], [ %56, %55 ], [ %lpad.loopexit43, %.loopexit41 ], [ %lpad.loopexit.split-lp44, %.loopexit.split-lp42 ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %5) #5
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn
}

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; 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_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4 align 2

declare void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

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 = { "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 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 #5 = { nounwind }

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

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


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