; LLVM IR from buresjan/optim_lbm :: nomad/src/Math (MatrixUtils)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [53 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9NOMAD_4_316LU_decompositionERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPdiRdi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %4) #4 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  %27 = load i32, ptr %11, align 4, !tbaa !9
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %29, label %42

29:                                               ; preds = %5
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = icmp sgt i32 %30, %31
  br i1 %32, label %33, label %42

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #8
  %34 = load i32, ptr %11, align 4, !tbaa !9
  call void @_ZN9NOMAD_4_34itosB5cxx11Ei(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, i32 noundef %34)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef @.str.11, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %35 unwind label %38

35:                                               ; preds = %33
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  store i1 false, ptr %6, align 1
  br label %312

38:                                               ; preds = %33
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %14, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  br label %314

42:                                               ; preds = %29, %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store double 0x37A16C262777579C, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %44, i64 8)
  %46 = extractvalue { i64, i1 } %45, 1
  %47 = extractvalue { i64, i1 } %45, 0
  %48 = select i1 %46, i64 -1, i64 %47
  %49 = call noalias noundef nonnull ptr @_Znam(i64 noundef %48) #9
  store ptr %49, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %51, i64 4)
  %53 = extractvalue { i64, i1 } %52, 1
  %54 = extractvalue { i64, i1 } %52, 0
  %55 = select i1 %53, i64 -1, i64 %54
  %56 = call noalias noundef nonnull ptr @_Znam(i64 noundef %55) #9
  store ptr %56, ptr %23, align 8, !tbaa !5
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  store double 1.000000e+00, ptr %57, align 8, !tbaa !11
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %107, %42
  %59 = load i32, ptr %17, align 4, !tbaa !9
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %62, label %110

62:                                               ; preds = %58
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %83, %62
  %64 = load i32, ptr %18, align 4, !tbaa !9
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %67, label %86

67:                                               ; preds = %63
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = load i32, ptr %17, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds ptr, ptr %68, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = load i32, ptr %18, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !11
  %77 = call double @llvm.fabs.f64(double %76)
  store double %77, ptr %21, align 8, !tbaa !11
  %78 = load double, ptr %20, align 8, !tbaa !11
  %79 = fcmp ogt double %77, %78
  br i1 %79, label %80, label %82

80:                                               ; preds = %67
  %81 = load double, ptr %21, align 8, !tbaa !11
  store double %81, ptr %20, align 8, !tbaa !11
  br label %82

82:                                               ; preds = %80, %67
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %18, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %18, align 4, !tbaa !9
  br label %63, !llvm.loop !13

86:                                               ; preds = %63
  %87 = load double, ptr %20, align 8, !tbaa !11
  %88 = fcmp oeq double %87, 0.000000e+00
  br i1 %88, label %89, label %100

89:                                               ; preds = %86
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %90, ptr noundef @.str.12)
  %92 = load ptr, ptr %22, align 8, !tbaa !5
  %93 = icmp eq ptr %92, null
  br i1 %93, label %95, label %94

94:                                               ; preds = %89
  call void @_ZdaPv(ptr noundef %92) #10
  br label %95

95:                                               ; preds = %94, %89
  %96 = load ptr, ptr %23, align 8, !tbaa !5
  %97 = icmp eq ptr %96, null
  br i1 %97, label %99, label %98

98:                                               ; preds = %95
  call void @_ZdaPv(ptr noundef %96) #10
  br label %99

99:                                               ; preds = %98, %95
  store i1 false, ptr %6, align 1
  store i32 1, ptr %24, align 4
  br label %311

100:                                              ; preds = %86
  %101 = load double, ptr %20, align 8, !tbaa !11
  %102 = fdiv double 1.000000e+00, %101
  %103 = load ptr, ptr %22, align 8, !tbaa !5
  %104 = load i32, ptr %17, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %103, i64 %105
  store double %102, ptr %106, align 8, !tbaa !11
  br label %107

107:                                              ; preds = %100
  %108 = load i32, ptr %17, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %17, align 4, !tbaa !9
  br label %58, !llvm.loop !15

110:                                              ; preds = %58
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %299, %110
  %112 = load i32, ptr %19, align 4, !tbaa !9
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = icmp slt i32 %112, %113
  br i1 %114, label %115, label %302

115:                                              ; preds = %111
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %116 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %116, ptr %25, align 4, !tbaa !9
  %117 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %117, ptr %17, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %146, %115
  %119 = load i32, ptr %17, align 4, !tbaa !9
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %122, label %149

122:                                              ; preds = %118
  %123 = load ptr, ptr %22, align 8, !tbaa !5
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %123, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !11
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = load i32, ptr %17, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds ptr, ptr %128, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = load i32, ptr %19, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds double, ptr %132, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !11
  %137 = call double @llvm.fabs.f64(double %136)
  %138 = fmul double %127, %137
  store double %138, ptr %21, align 8, !tbaa !11
  %139 = load double, ptr %21, align 8, !tbaa !11
  %140 = load double, ptr %20, align 8, !tbaa !11
  %141 = fcmp ogt double %139, %140
  br i1 %141, label %142, label %145

142:                                              ; preds = %122
  %143 = load double, ptr %21, align 8, !tbaa !11
  store double %143, ptr %20, align 8, !tbaa !11
  %144 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %144, ptr %25, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %142, %122
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %17, align 4, !tbaa !9
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %17, align 4, !tbaa !9
  br label %118, !llvm.loop !16

149:                                              ; preds = %118
  %150 = load i32, ptr %19, align 4, !tbaa !9
  %151 = load i32, ptr %25, align 4, !tbaa !9
  %152 = icmp ne i32 %150, %151
  br i1 %152, label %153, label %211

153:                                              ; preds = %149
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %194, %153
  %155 = load i32, ptr %18, align 4, !tbaa !9
  %156 = load i32, ptr %9, align 4, !tbaa !9
  %157 = icmp slt i32 %155, %156
  br i1 %157, label %158, label %197

158:                                              ; preds = %154
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = load i32, ptr %25, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds ptr, ptr %159, i64 %161
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = load i32, ptr %18, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds double, ptr %163, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !11
  store double %167, ptr %21, align 8, !tbaa !11
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = load i32, ptr %19, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds ptr, ptr %168, i64 %170
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  %173 = load i32, ptr %18, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds double, ptr %172, i64 %174
  %176 = load double, ptr %175, align 8, !tbaa !11
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = load i32, ptr %25, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds ptr, ptr %177, i64 %179
  %181 = load ptr, ptr %180, align 8, !tbaa !5
  %182 = load i32, ptr %18, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds double, ptr %181, i64 %183
  store double %176, ptr %184, align 8, !tbaa !11
  %185 = load double, ptr %21, align 8, !tbaa !11
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = load i32, ptr %19, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds ptr, ptr %186, i64 %188
  %190 = load ptr, ptr %189, align 8, !tbaa !5
  %191 = load i32, ptr %18, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds double, ptr %190, i64 %192
  store double %185, ptr %193, align 8, !tbaa !11
  br label %194

194:                                              ; preds = %158
  %195 = load i32, ptr %18, align 4, !tbaa !9
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %18, align 4, !tbaa !9
  br label %154, !llvm.loop !17

197:                                              ; preds = %154
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = load double, ptr %198, align 8, !tbaa !11
  %200 = fneg double %199
  %201 = load ptr, ptr %10, align 8, !tbaa !5
  store double %200, ptr %201, align 8, !tbaa !11
  %202 = load ptr, ptr %22, align 8, !tbaa !5
  %203 = load i32, ptr %19, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds double, ptr %202, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !11
  %207 = load ptr, ptr %22, align 8, !tbaa !5
  %208 = load i32, ptr %25, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds double, ptr %207, i64 %209
  store double %206, ptr %210, align 8, !tbaa !11
  br label %211

211:                                              ; preds = %197, %149
  %212 = load i32, ptr %25, align 4, !tbaa !9
  %213 = load ptr, ptr %23, align 8, !tbaa !5
  %214 = load i32, ptr %19, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds i32, ptr %213, i64 %215
  store i32 %212, ptr %216, align 4, !tbaa !9
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = load i32, ptr %19, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds ptr, ptr %217, i64 %219
  %221 = load ptr, ptr %220, align 8, !tbaa !5
  %222 = load i32, ptr %19, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds double, ptr %221, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !11
  %226 = fcmp oeq double %225, 0.000000e+00
  br i1 %226, label %227, label %236

227:                                              ; preds = %211
  %228 = load ptr, ptr %8, align 8, !tbaa !5
  %229 = load i32, ptr %19, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds ptr, ptr %228, i64 %230
  %232 = load ptr, ptr %231, align 8, !tbaa !5
  %233 = load i32, ptr %19, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds double, ptr %232, i64 %234
  store double 0x37A16C262777579C, ptr %235, align 8, !tbaa !11
  br label %236

236:                                              ; preds = %227, %211
  %237 = load i32, ptr %19, align 4, !tbaa !9
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %17, align 4, !tbaa !9
  br label %239

239:                                              ; preds = %295, %236
  %240 = load i32, ptr %17, align 4, !tbaa !9
  %241 = load i32, ptr %9, align 4, !tbaa !9
  %242 = icmp slt i32 %240, %241
  br i1 %242, label %243, label %298

243:                                              ; preds = %239
  %244 = load ptr, ptr %8, align 8, !tbaa !5
  %245 = load i32, ptr %19, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds ptr, ptr %244, i64 %246
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = load i32, ptr %19, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds double, ptr %248, i64 %250
  %252 = load double, ptr %251, align 8, !tbaa !11
  %253 = load ptr, ptr %8, align 8, !tbaa !5
  %254 = load i32, ptr %17, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds ptr, ptr %253, i64 %255
  %257 = load ptr, ptr %256, align 8, !tbaa !5
  %258 = load i32, ptr %19, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds double, ptr %257, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !11
  %262 = fdiv double %261, %252
  store double %262, ptr %260, align 8, !tbaa !11
  store double %262, ptr %21, align 8, !tbaa !11
  %263 = load i32, ptr %19, align 4, !tbaa !9
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %18, align 4, !tbaa !9
  br label %265

265:                                              ; preds = %291, %243
  %266 = load i32, ptr %18, align 4, !tbaa !9
  %267 = load i32, ptr %9, align 4, !tbaa !9
  %268 = icmp slt i32 %266, %267
  br i1 %268, label %269, label %294

269:                                              ; preds = %265
  %270 = load double, ptr %21, align 8, !tbaa !11
  %271 = load ptr, ptr %8, align 8, !tbaa !5
  %272 = load i32, ptr %19, align 4, !tbaa !9
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds ptr, ptr %271, i64 %273
  %275 = load ptr, ptr %274, align 8, !tbaa !5
  %276 = load i32, ptr %18, align 4, !tbaa !9
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds double, ptr %275, i64 %277
  %279 = load double, ptr %278, align 8, !tbaa !11
  %280 = load ptr, ptr %8, align 8, !tbaa !5
  %281 = load i32, ptr %17, align 4, !tbaa !9
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds ptr, ptr %280, i64 %282
  %284 = load ptr, ptr %283, align 8, !tbaa !5
  %285 = load i32, ptr %18, align 4, !tbaa !9
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds double, ptr %284, i64 %286
  %288 = load double, ptr %287, align 8, !tbaa !11
  %289 = fneg double %270
  %290 = call double @llvm.fmuladd.f64(double %289, double %279, double %288)
  store double %290, ptr %287, align 8, !tbaa !11
  br label %291

291:                                              ; preds = %269
  %292 = load i32, ptr %18, align 4, !tbaa !9
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %18, align 4, !tbaa !9
  br label %265, !llvm.loop !18

294:                                              ; preds = %265
  br label %295

295:                                              ; preds = %294
  %296 = load i32, ptr %17, align 4, !tbaa !9
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %17, align 4, !tbaa !9
  br label %239, !llvm.loop !19

298:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %299

299:                                              ; preds = %298
  %300 = load i32, ptr %19, align 4, !tbaa !9
  %301 = add nsw i32 %300, 1
  store i32 %301, ptr %19, align 4, !tbaa !9
  br label %111, !llvm.loop !20

302:                                              ; preds = %111
  %303 = load ptr, ptr %22, align 8, !tbaa !5
  %304 = icmp eq ptr %303, null
  br i1 %304, label %306, label %305

305:                                              ; preds = %302
  call void @_ZdaPv(ptr noundef %303) #10
  br label %306

306:                                              ; preds = %305, %302
  %307 = load ptr, ptr %23, align 8, !tbaa !5
  %308 = icmp eq ptr %307, null
  br i1 %308, label %310, label %309

309:                                              ; preds = %306
  call void @_ZdaPv(ptr noundef %307) #10
  br label %310

310:                                              ; preds = %309, %306
  store i1 true, ptr %6, align 1
  store i32 1, ptr %24, align 4
  br label %311

311:                                              ; preds = %310, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %312

312:                                              ; preds = %311, %35
  %313 = load i1, ptr %6, align 1
  ret i1 %313

314:                                              ; preds = %38
  %315 = load ptr, ptr %14, align 8
  %316 = load i32, ptr %15, align 4
  %317 = insertvalue { ptr, i32 } poison, ptr %315, 0
  %318 = insertvalue { ptr, i32 } %317, i32 %316, 1
  resume { ptr, i32 } %318
}

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #6

declare void @_ZN9NOMAD_4_34itosB5cxx11Ei(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [53 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9NOMAD_4_316LU_decompositionERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPdiRdi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %4) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #9
  %8 = icmp sgt i32 %4, 0
  %9 = icmp sgt i32 %2, %4
  %or.cond = and i1 %8, %9
  br i1 %or.cond, label %10, label %15

10:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #9
  call void @_ZN9NOMAD_4_34itosB5cxx11Ei(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, i32 noundef %4)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull @.str.11, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %11 unwind label %13

11:                                               ; preds = %10
  %12 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  br label %133

13:                                               ; preds = %10
  %14 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  resume { ptr, i32 } %14

15:                                               ; preds = %5
  %16 = zext i32 %2 to i64
  %17 = icmp slt i32 %2, 0
  %18 = shl nuw nsw i64 %16, 3
  %19 = select i1 %17, i64 -1, i64 %18
  %20 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %19) #10
  store double 1.000000e+00, ptr %3, align 8, !tbaa !5
  %21 = icmp slt i32 %2, 1
  br i1 %21, label %._crit_edge137, label %.preheader120.us.preheader

.preheader120.us.preheader:                       ; preds = %15
  %xtraiter = and i64 %16, 1
  %22 = icmp eq i32 %2, 1
  %unroll_iter = and i64 %16, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader120.us

.preheader120.us:                                 ; preds = %.preheader120.us.preheader, %25
  %indvars.iv140 = phi i64 [ %indvars.iv.next141, %25 ], [ 0, %.preheader120.us.preheader ]
  %23 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv140
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  br i1 %22, label %._crit_edge.us.unr-lcssa, label %.preheader120.us.new

25:                                               ; preds = %._crit_edge.us
  %26 = fdiv double 1.000000e+00, %.1107.us.lcssa
  %27 = getelementptr inbounds double, ptr %20, i64 %indvars.iv140
  store double %26, ptr %27, align 8, !tbaa !5
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %exitcond144.not = icmp eq i64 %indvars.iv.next141, %16
  br i1 %exitcond144.not, label %.preheader118.lr.ph, label %.preheader120.us, !llvm.loop !11

.preheader120.us.new:                             ; preds = %.preheader120.us, %.preheader120.us.new
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.preheader120.us.new ], [ 0, %.preheader120.us ]
  %.0106122.us = phi double [ %.1107.us.1, %.preheader120.us.new ], [ 0.000000e+00, %.preheader120.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader120.us.new ], [ 0, %.preheader120.us ]
  %28 = getelementptr inbounds double, ptr %24, i64 %indvars.iv
  %29 = load double, ptr %28, align 8, !tbaa !5
  %30 = tail call double @llvm.fabs.f64(double %29)
  %31 = fcmp ogt double %30, %.0106122.us
  %.1107.us = select i1 %31, double %30, double %.0106122.us
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %32 = getelementptr inbounds double, ptr %24, i64 %indvars.iv.next
  %33 = load double, ptr %32, align 8, !tbaa !5
  %34 = tail call double @llvm.fabs.f64(double %33)
  %35 = fcmp ogt double %34, %.1107.us
  %.1107.us.1 = select i1 %35, double %34, double %.1107.us
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader120.us.new, !llvm.loop !13

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader120.us.new, %.preheader120.us
  %.1107.us.lcssa.ph = phi double [ poison, %.preheader120.us ], [ %.1107.us.1, %.preheader120.us.new ]
  %indvars.iv.unr = phi i64 [ 0, %.preheader120.us ], [ %indvars.iv.next.1, %.preheader120.us.new ]
  %.0106122.us.unr = phi double [ 0.000000e+00, %.preheader120.us ], [ %.1107.us.1, %.preheader120.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %36 = getelementptr inbounds double, ptr %24, i64 %indvars.iv.unr
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = tail call double @llvm.fabs.f64(double %37)
  %39 = fcmp ogt double %38, %.0106122.us.unr
  %.1107.us.epil = select i1 %39, double %38, double %.0106122.us.unr
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %.1107.us.lcssa = phi double [ %.1107.us.lcssa.ph, %._crit_edge.us.unr-lcssa ], [ %.1107.us.epil, %._crit_edge.us.epilog-lcssa ]
  %40 = fcmp oeq double %.1107.us.lcssa, 0.000000e+00
  br i1 %40, label %.split.us, label %25

.preheader118.lr.ph:                              ; preds = %25
  %41 = zext nneg i32 %2 to i64
  %42 = shl nuw nsw i64 %16, 3
  %43 = shl nuw nsw i64 %16, 3
  %min.iters.check186 = icmp ult i32 %2, 4
  %n.vec189 = and i64 %16, 2147483644
  %cmp.n198 = icmp eq i64 %n.vec189, %16
  %xtraiter200 = and i64 %16, 1
  %lcmp.mod201.not = icmp eq i64 %xtraiter200, 0
  %44 = add nsw i64 %16, -1
  %45 = add nsw i64 %16, -1
  br label %.preheader118

.split.us:                                        ; preds = %._crit_edge.us
  %46 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.12)
  tail call void @_ZdaPv(ptr noundef nonnull %20) #11
  br label %133

.loopexit:                                        ; preds = %._crit_edge131.us, %100
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %exitcond171.not = icmp eq i64 %indvars.iv.next146, %16
  br i1 %exitcond171.not, label %._crit_edge137, label %.preheader118, !llvm.loop !14

.preheader118:                                    ; preds = %.preheader118.lr.ph, %.loopexit
  %indvars.iv157 = phi i64 [ 1, %.preheader118.lr.ph ], [ %indvars.iv.next158, %.loopexit ]
  %indvars.iv145 = phi i64 [ 0, %.preheader118.lr.ph ], [ %indvars.iv.next146, %.loopexit ]
  %47 = xor i64 %indvars.iv145, -1
  %48 = add nsw i64 %47, %16
  %49 = shl nuw nsw i64 %indvars.iv145, 3
  %50 = add nuw i64 %49, 8
  %51 = trunc nuw nsw i64 %indvars.iv145 to i32
  br label %52

52:                                               ; preds = %.preheader118, %52
  %indvars.iv147 = phi i64 [ %indvars.iv145, %.preheader118 ], [ %indvars.iv.next148, %52 ]
  %.0126 = phi i32 [ %51, %.preheader118 ], [ %.1, %52 ]
  %.2108124 = phi double [ 0.000000e+00, %.preheader118 ], [ %.3, %52 ]
  %53 = getelementptr inbounds double, ptr %20, i64 %indvars.iv147
  %54 = load double, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv147
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = getelementptr inbounds double, ptr %56, i64 %indvars.iv145
  %58 = load double, ptr %57, align 8, !tbaa !5
  %59 = tail call double @llvm.fabs.f64(double %58)
  %60 = fmul double %54, %59
  %61 = fcmp ogt double %60, %.2108124
  %.3 = select i1 %61, double %60, double %.2108124
  %62 = trunc nuw nsw i64 %indvars.iv147 to i32
  %.1 = select i1 %61, i32 %62, i32 %.0126
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %exitcond151.not = icmp eq i64 %indvars.iv.next148, %16
  br i1 %exitcond151.not, label %63, label %52, !llvm.loop !15

63:                                               ; preds = %52
  %64 = zext i32 %.1 to i64
  %.not = icmp eq i64 %indvars.iv145, %64
  br i1 %.not, label %93, label %.lr.ph

.lr.ph:                                           ; preds = %63
  %65 = sext i32 %.1 to i64
  %66 = getelementptr inbounds ptr, ptr %1, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv145
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  br i1 %min.iters.check186, label %scalar.ph185.preheader, label %vector.memcheck178

vector.memcheck178:                               ; preds = %.lr.ph
  %scevgep179 = getelementptr i8, ptr %67, i64 %43
  %scevgep180 = getelementptr i8, ptr %69, i64 %43
  %bound0181 = icmp ult ptr %67, %scevgep180
  %bound1182 = icmp ult ptr %69, %scevgep179
  %found.conflict183 = and i1 %bound0181, %bound1182
  br i1 %found.conflict183, label %scalar.ph185.preheader, label %vector.body191

vector.body191:                                   ; preds = %vector.memcheck178, %vector.body191
  %index192 = phi i64 [ %index.next197, %vector.body191 ], [ 0, %vector.memcheck178 ]
  %70 = getelementptr inbounds double, ptr %67, i64 %index192
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %wide.load193 = load <2 x double>, ptr %70, align 8, !tbaa !5, !alias.scope !16, !noalias !19
  %wide.load194 = load <2 x double>, ptr %71, align 8, !tbaa !5, !alias.scope !16, !noalias !19
  %72 = getelementptr inbounds double, ptr %69, i64 %index192
  %73 = getelementptr inbounds i8, ptr %72, i64 16
  %wide.load195 = load <2 x double>, ptr %72, align 8, !tbaa !5, !alias.scope !19
  %wide.load196 = load <2 x double>, ptr %73, align 8, !tbaa !5, !alias.scope !19
  store <2 x double> %wide.load195, ptr %70, align 8, !tbaa !5, !alias.scope !16, !noalias !19
  store <2 x double> %wide.load196, ptr %71, align 8, !tbaa !5, !alias.scope !16, !noalias !19
  store <2 x double> %wide.load193, ptr %72, align 8, !tbaa !5, !alias.scope !19
  store <2 x double> %wide.load194, ptr %73, align 8, !tbaa !5, !alias.scope !19
  %index.next197 = add nuw i64 %index192, 4
  %74 = icmp eq i64 %index.next197, %n.vec189
  br i1 %74, label %middle.block184, label %vector.body191, !llvm.loop !21

middle.block184:                                  ; preds = %vector.body191
  br i1 %cmp.n198, label %._crit_edge, label %scalar.ph185.preheader

scalar.ph185.preheader:                           ; preds = %middle.block184, %vector.memcheck178, %.lr.ph
  %indvars.iv152.ph = phi i64 [ 0, %vector.memcheck178 ], [ 0, %.lr.ph ], [ %n.vec189, %middle.block184 ]
  br i1 %lcmp.mod201.not, label %scalar.ph185.prol.loopexit, label %scalar.ph185.prol

scalar.ph185.prol:                                ; preds = %scalar.ph185.preheader
  %75 = getelementptr inbounds double, ptr %67, i64 %indvars.iv152.ph
  %76 = load double, ptr %75, align 8, !tbaa !5
  %77 = getelementptr inbounds double, ptr %69, i64 %indvars.iv152.ph
  %78 = load double, ptr %77, align 8, !tbaa !5
  store double %78, ptr %75, align 8, !tbaa !5
  store double %76, ptr %77, align 8, !tbaa !5
  %indvars.iv.next153.prol = or disjoint i64 %indvars.iv152.ph, 1
  br label %scalar.ph185.prol.loopexit

scalar.ph185.prol.loopexit:                       ; preds = %scalar.ph185.prol, %scalar.ph185.preheader
  %indvars.iv152.unr = phi i64 [ %indvars.iv152.ph, %scalar.ph185.preheader ], [ %indvars.iv.next153.prol, %scalar.ph185.prol ]
  %79 = icmp eq i64 %indvars.iv152.ph, %44
  br i1 %79, label %._crit_edge, label %scalar.ph185

scalar.ph185:                                     ; preds = %scalar.ph185.prol.loopexit, %scalar.ph185
  %indvars.iv152 = phi i64 [ %indvars.iv.next153.1, %scalar.ph185 ], [ %indvars.iv152.unr, %scalar.ph185.prol.loopexit ]
  %80 = getelementptr inbounds double, ptr %67, i64 %indvars.iv152
  %81 = load double, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds double, ptr %69, i64 %indvars.iv152
  %83 = load double, ptr %82, align 8, !tbaa !5
  store double %83, ptr %80, align 8, !tbaa !5
  store double %81, ptr %82, align 8, !tbaa !5
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %84 = getelementptr inbounds double, ptr %67, i64 %indvars.iv.next153
  %85 = load double, ptr %84, align 8, !tbaa !5
  %86 = getelementptr inbounds double, ptr %69, i64 %indvars.iv.next153
  %87 = load double, ptr %86, align 8, !tbaa !5
  store double %87, ptr %84, align 8, !tbaa !5
  store double %85, ptr %86, align 8, !tbaa !5
  %indvars.iv.next153.1 = add nuw nsw i64 %indvars.iv152, 2
  %exitcond156.not.1 = icmp eq i64 %indvars.iv.next153.1, %16
  br i1 %exitcond156.not.1, label %._crit_edge, label %scalar.ph185, !llvm.loop !24

._crit_edge:                                      ; preds = %scalar.ph185.prol.loopexit, %scalar.ph185, %middle.block184
  %88 = load double, ptr %3, align 8, !tbaa !5
  %89 = fneg double %88
  store double %89, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds double, ptr %20, i64 %indvars.iv145
  %91 = load double, ptr %90, align 8, !tbaa !5
  %92 = getelementptr inbounds double, ptr %20, i64 %65
  store double %91, ptr %92, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %._crit_edge, %63
  %94 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv145
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  %96 = getelementptr inbounds double, ptr %95, i64 %indvars.iv145
  %97 = load double, ptr %96, align 8, !tbaa !5
  %98 = fcmp oeq double %97, 0.000000e+00
  br i1 %98, label %99, label %100

99:                                               ; preds = %93
  store double 0x37A16C262777579C, ptr %96, align 8, !tbaa !5
  br label %100

100:                                              ; preds = %99, %93
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  %101 = icmp ult i64 %indvars.iv.next146, %41
  br i1 %101, label %.lr.ph130.us.preheader, label %.loopexit

.lr.ph130.us.preheader:                           ; preds = %100
  %scevgep173 = getelementptr i8, ptr %95, i64 %50
  %scevgep174 = getelementptr i8, ptr %95, i64 %42
  %min.iters.check = icmp ult i64 %48, 4
  %n.vec = and i64 %48, -4
  %ind.end = add i64 %indvars.iv157, %n.vec
  %cmp.n = icmp eq i64 %48, %n.vec
  br label %.lr.ph130.us

.lr.ph130.us:                                     ; preds = %.lr.ph130.us.preheader, %._crit_edge131.us
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %._crit_edge131.us ], [ %indvars.iv157, %.lr.ph130.us.preheader ]
  %102 = load double, ptr %96, align 8, !tbaa !5
  %103 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv164
  %104 = load ptr, ptr %103, align 8, !tbaa !9
  %105 = getelementptr inbounds double, ptr %104, i64 %indvars.iv145
  %106 = load double, ptr %105, align 8, !tbaa !5
  %107 = fdiv double %106, %102
  store double %107, ptr %105, align 8, !tbaa !5
  %108 = fneg double %107
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph130.us
  %scevgep = getelementptr i8, ptr %104, i64 %50
  %scevgep172 = getelementptr i8, ptr %104, i64 %42
  %bound0 = icmp ult ptr %scevgep, %scevgep174
  %bound1 = icmp ult ptr %scevgep173, %scevgep172
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %broadcast.splatinsert = insertelement <2 x double> poison, double %108, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %indvars.iv157, %index
  %109 = getelementptr inbounds double, ptr %95, i64 %offset.idx
  %110 = getelementptr inbounds i8, ptr %109, i64 16
  %wide.load = load <2 x double>, ptr %109, align 8, !tbaa !5, !alias.scope !25
  %wide.load175 = load <2 x double>, ptr %110, align 8, !tbaa !5, !alias.scope !25
  %111 = getelementptr inbounds double, ptr %104, i64 %offset.idx
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  %wide.load176 = load <2 x double>, ptr %111, align 8, !tbaa !5, !alias.scope !28, !noalias !25
  %wide.load177 = load <2 x double>, ptr %112, align 8, !tbaa !5, !alias.scope !28, !noalias !25
  %113 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %wide.load176)
  %114 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load175, <2 x double> %wide.load177)
  store <2 x double> %113, ptr %111, align 8, !tbaa !5, !alias.scope !28, !noalias !25
  store <2 x double> %114, ptr %112, align 8, !tbaa !5, !alias.scope !28, !noalias !25
  %index.next = add nuw i64 %index, 4
  %115 = icmp eq i64 %index.next, %n.vec
  br i1 %115, label %middle.block, label %vector.body, !llvm.loop !30

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge131.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph130.us
  %indvars.iv159.ph = phi i64 [ %indvars.iv157, %vector.memcheck ], [ %indvars.iv157, %.lr.ph130.us ], [ %ind.end, %middle.block ]
  %116 = sub i64 %16, %indvars.iv159.ph
  %xtraiter202 = and i64 %116, 1
  %lcmp.mod203.not = icmp eq i64 %xtraiter202, 0
  br i1 %lcmp.mod203.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %117 = getelementptr inbounds double, ptr %95, i64 %indvars.iv159.ph
  %118 = load double, ptr %117, align 8, !tbaa !5
  %119 = getelementptr inbounds double, ptr %104, i64 %indvars.iv159.ph
  %120 = load double, ptr %119, align 8, !tbaa !5
  %121 = tail call double @llvm.fmuladd.f64(double %108, double %118, double %120)
  store double %121, ptr %119, align 8, !tbaa !5
  %indvars.iv.next160.prol = add nuw nsw i64 %indvars.iv159.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv159.unr = phi i64 [ %indvars.iv159.ph, %scalar.ph.preheader ], [ %indvars.iv.next160.prol, %scalar.ph.prol ]
  %122 = icmp eq i64 %indvars.iv159.ph, %45
  br i1 %122, label %._crit_edge131.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv159 = phi i64 [ %indvars.iv.next160.1, %scalar.ph ], [ %indvars.iv159.unr, %scalar.ph.prol.loopexit ]
  %123 = getelementptr inbounds double, ptr %95, i64 %indvars.iv159
  %124 = load double, ptr %123, align 8, !tbaa !5
  %125 = getelementptr inbounds double, ptr %104, i64 %indvars.iv159
  %126 = load double, ptr %125, align 8, !tbaa !5
  %127 = tail call double @llvm.fmuladd.f64(double %108, double %124, double %126)
  store double %127, ptr %125, align 8, !tbaa !5
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %128 = getelementptr inbounds double, ptr %95, i64 %indvars.iv.next160
  %129 = load double, ptr %128, align 8, !tbaa !5
  %130 = getelementptr inbounds double, ptr %104, i64 %indvars.iv.next160
  %131 = load double, ptr %130, align 8, !tbaa !5
  %132 = tail call double @llvm.fmuladd.f64(double %108, double %129, double %131)
  store double %132, ptr %130, align 8, !tbaa !5
  %indvars.iv.next160.1 = add nuw nsw i64 %indvars.iv159, 2
  %exitcond163.not.1 = icmp eq i64 %indvars.iv.next160.1, %16
  br i1 %exitcond163.not.1, label %._crit_edge131.us, label %scalar.ph, !llvm.loop !31

._crit_edge131.us:                                ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %exitcond168.not = icmp eq i64 %indvars.iv.next165, %16
  br i1 %exitcond168.not, label %.loopexit, label %.lr.ph130.us, !llvm.loop !32

._crit_edge137:                                   ; preds = %.loopexit, %15
  tail call void @_ZdaPv(ptr noundef nonnull %20) #11
  br label %133

133:                                              ; preds = %.split.us, %._crit_edge137, %11
  %.1103 = phi i1 [ false, %11 ], [ true, %._crit_edge137 ], [ false, %.split.us ]
  ret i1 %.1103
}

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

declare void @_ZN9NOMAD_4_34itosB5cxx11Ei(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #8

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 = !{!"double", !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 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = !{!17}
!17 = distinct !{!17, !18}
!18 = distinct !{!18, !"LVerDomain"}
!19 = !{!20}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !12, !22, !23}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = distinct !{!24, !12, !22}
!25 = !{!26}
!26 = distinct !{!26, !27}
!27 = distinct !{!27, !"LVerDomain"}
!28 = !{!29}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !12, !22, !23}
!31 = distinct !{!31, !12, !22}
!32 = distinct !{!32, !12}


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