; LLVM IR from ADJA/algos :: NumberTheory/Gauss.ll (Z5gaussiiPA150_dPd)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5gaussiiPA150_dPd(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca [150 x i32], align 16
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 600, ptr %10) #5
  %26 = getelementptr inbounds [150 x i32], ptr %10, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %26, i8 0, i64 600, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  store i8 0, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 1, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %200, %4
  %28 = load i32, ptr %12, align 4, !tbaa !5
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = icmp sle i32 %28, %29
  br i1 %30, label %31, label %35

31:                                               ; preds = %27
  %32 = load i32, ptr %13, align 4, !tbaa !5
  %33 = load i32, ptr %7, align 4, !tbaa !5
  %34 = icmp sle i32 %32, %33
  br label %35

35:                                               ; preds = %31, %27
  %36 = phi i1 [ false, %27 ], [ %34, %31 ]
  br i1 %36, label %37, label %203

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %38 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %38, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %39 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %39, ptr %15, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %68, %37
  %41 = load i32, ptr %15, align 4, !tbaa !5
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %71

45:                                               ; preds = %40
  %46 = load ptr, ptr %8, align 8, !tbaa !9
  %47 = load i32, ptr %15, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [150 x double], ptr %46, i64 %48
  %50 = load i32, ptr %13, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [150 x double], ptr %49, i64 0, i64 %51
  %53 = load double, ptr %52, align 8, !tbaa !13
  %54 = call noundef double @_ZSt3absd(double noundef %53)
  %55 = load ptr, ptr %8, align 8, !tbaa !9
  %56 = load i32, ptr %14, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [150 x double], ptr %55, i64 %57
  %59 = load i32, ptr %13, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [150 x double], ptr %58, i64 0, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !13
  %63 = call noundef double @_ZSt3absd(double noundef %62)
  %64 = fcmp ogt double %54, %63
  br i1 %64, label %65, label %67

65:                                               ; preds = %45
  %66 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %66, ptr %14, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %65, %45
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %15, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %15, align 4, !tbaa !5
  br label %40, !llvm.loop !15

71:                                               ; preds = %44
  %72 = load ptr, ptr %8, align 8, !tbaa !9
  %73 = load i32, ptr %14, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [150 x double], ptr %72, i64 %74
  %76 = load i32, ptr %13, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [150 x double], ptr %75, i64 0, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !13
  %80 = call noundef double @_ZSt3absd(double noundef %79)
  %81 = fcmp olt double %80, 0x3EB0C6F7A0B5ED8D
  br i1 %81, label %82, label %83

82:                                               ; preds = %71
  store i8 1, ptr %11, align 1, !tbaa !11
  store i32 4, ptr %16, align 4
  br label %197

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

84:                                               ; preds = %105, %83
  %85 = load i32, ptr %17, align 4, !tbaa !5
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  %88 = icmp sle i32 %85, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %84
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %108

90:                                               ; preds = %84
  %91 = load ptr, ptr %8, align 8, !tbaa !9
  %92 = load i32, ptr %12, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [150 x double], ptr %91, i64 %93
  %95 = load i32, ptr %17, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [150 x double], ptr %94, i64 0, i64 %96
  %98 = load ptr, ptr %8, align 8, !tbaa !9
  %99 = load i32, ptr %14, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [150 x double], ptr %98, i64 %100
  %102 = load i32, ptr %17, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [150 x double], ptr %101, i64 0, i64 %103
  call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef nonnull align 8 dereferenceable(8) %104) #5
  br label %105

105:                                              ; preds = %90
  %106 = load i32, ptr %17, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %17, align 4, !tbaa !5
  br label %84, !llvm.loop !17

108:                                              ; preds = %89
  %109 = load i32, ptr %12, align 4, !tbaa !5
  %110 = load i32, ptr %13, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [150 x i32], ptr %10, i64 0, i64 %111
  store i32 %109, ptr %112, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %113 = load ptr, ptr %8, align 8, !tbaa !9
  %114 = load i32, ptr %12, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [150 x double], ptr %113, i64 %115
  %117 = load i32, ptr %13, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [150 x double], ptr %116, i64 0, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !13
  store double %120, ptr %18, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %138, %108
  %122 = load i32, ptr %19, align 4, !tbaa !5
  %123 = load i32, ptr %7, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  %125 = icmp sle i32 %122, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %121
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %141

127:                                              ; preds = %121
  %128 = load double, ptr %18, align 8, !tbaa !13
  %129 = load ptr, ptr %8, align 8, !tbaa !9
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [150 x double], ptr %129, i64 %131
  %133 = load i32, ptr %19, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [150 x double], ptr %132, i64 0, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !13
  %137 = fdiv double %136, %128
  store double %137, ptr %135, align 8, !tbaa !13
  br label %138

138:                                              ; preds = %127
  %139 = load i32, ptr %19, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %19, align 4, !tbaa !5
  br label %121, !llvm.loop !18

141:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %191, %141
  %143 = load i32, ptr %20, align 4, !tbaa !5
  %144 = load i32, ptr %6, align 4, !tbaa !5
  %145 = icmp sle i32 %143, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %142
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %194

147:                                              ; preds = %142
  %148 = load i32, ptr %20, align 4, !tbaa !5
  %149 = load i32, ptr %12, align 4, !tbaa !5
  %150 = icmp eq i32 %148, %149
  br i1 %150, label %151, label %152

151:                                              ; preds = %147
  br label %191

152:                                              ; preds = %147
  %153 = load ptr, ptr %8, align 8, !tbaa !9
  %154 = load i32, ptr %20, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [150 x double], ptr %153, i64 %155
  %157 = load i32, ptr %13, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [150 x double], ptr %156, i64 0, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !13
  store double %160, ptr %18, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 1, ptr %21, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %187, %152
  %162 = load i32, ptr %21, align 4, !tbaa !5
  %163 = load i32, ptr %7, align 4, !tbaa !5
  %164 = add nsw i32 %163, 1
  %165 = icmp sle i32 %162, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %161
  store i32 17, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %190

167:                                              ; preds = %161
  %168 = load ptr, ptr %8, align 8, !tbaa !9
  %169 = load i32, ptr %12, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [150 x double], ptr %168, i64 %170
  %172 = load i32, ptr %21, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [150 x double], ptr %171, i64 0, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !13
  %176 = load double, ptr %18, align 8, !tbaa !13
  %177 = load ptr, ptr %8, align 8, !tbaa !9
  %178 = load i32, ptr %20, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [150 x double], ptr %177, i64 %179
  %181 = load i32, ptr %21, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [150 x double], ptr %180, i64 0, i64 %182
  %184 = load double, ptr %183, align 8, !tbaa !13
  %185 = fneg double %175
  %186 = call double @llvm.fmuladd.f64(double %185, double %176, double %184)
  store double %186, ptr %183, align 8, !tbaa !13
  br label %187

187:                                              ; preds = %167
  %188 = load i32, ptr %21, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %21, align 4, !tbaa !5
  br label %161, !llvm.loop !19

190:                                              ; preds = %166
  br label %191

191:                                              ; preds = %190, %151
  %192 = load i32, ptr %20, align 4, !tbaa !5
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %20, align 4, !tbaa !5
  br label %142, !llvm.loop !20

194:                                              ; preds = %146
  %195 = load i32, ptr %12, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  store i32 0, ptr %16, align 4
  br label %197

197:                                              ; preds = %194, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %198 = load i32, ptr %16, align 4
  switch i32 %198, label %303 [
    i32 0, label %199
    i32 4, label %200
  ]

199:                                              ; preds = %197
  br label %200

200:                                              ; preds = %199, %197
  %201 = load i32, ptr %13, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %13, align 4, !tbaa !5
  br label %27, !llvm.loop !21

203:                                              ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 1, ptr %22, align 4, !tbaa !5
  br label %204

204:                                              ; preds = %238, %203
  %205 = load i32, ptr %22, align 4, !tbaa !5
  %206 = load i32, ptr %7, align 4, !tbaa !5
  %207 = icmp sle i32 %205, %206
  br i1 %207, label %209, label %208

208:                                              ; preds = %204
  store i32 20, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %241

209:                                              ; preds = %204
  %210 = load i32, ptr %22, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [150 x i32], ptr %10, i64 0, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %232

215:                                              ; preds = %209
  %216 = load ptr, ptr %8, align 8, !tbaa !9
  %217 = load i32, ptr %22, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [150 x i32], ptr %10, i64 0, i64 %218
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [150 x double], ptr %216, i64 %221
  %223 = load i32, ptr %7, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [150 x double], ptr %222, i64 0, i64 %225
  %227 = load double, ptr %226, align 8, !tbaa !13
  %228 = load ptr, ptr %9, align 8, !tbaa !9
  %229 = load i32, ptr %22, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds double, ptr %228, i64 %230
  store double %227, ptr %231, align 8, !tbaa !13
  br label %237

232:                                              ; preds = %209
  %233 = load ptr, ptr %9, align 8, !tbaa !9
  %234 = load i32, ptr %22, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds double, ptr %233, i64 %235
  store double 0.000000e+00, ptr %236, align 8, !tbaa !13
  br label %237

237:                                              ; preds = %232, %215
  br label %238

238:                                              ; preds = %237
  %239 = load i32, ptr %22, align 4, !tbaa !5
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %22, align 4, !tbaa !5
  br label %204, !llvm.loop !22

241:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 1, ptr %23, align 4, !tbaa !5
  br label %242

242:                                              ; preds = %291, %241
  %243 = load i32, ptr %23, align 4, !tbaa !5
  %244 = load i32, ptr %6, align 4, !tbaa !5
  %245 = icmp sle i32 %243, %244
  br i1 %245, label %247, label %246

246:                                              ; preds = %242
  store i32 23, ptr %16, align 4
  br label %294

247:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store double 0.000000e+00, ptr %24, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 1, ptr %25, align 4, !tbaa !5
  br label %248

248:                                              ; preds = %269, %247
  %249 = load i32, ptr %25, align 4, !tbaa !5
  %250 = load i32, ptr %7, align 4, !tbaa !5
  %251 = icmp sle i32 %249, %250
  br i1 %251, label %253, label %252

252:                                              ; preds = %248
  store i32 26, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %272

253:                                              ; preds = %248
  %254 = load ptr, ptr %9, align 8, !tbaa !9
  %255 = load i32, ptr %25, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds double, ptr %254, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !13
  %259 = load ptr, ptr %8, align 8, !tbaa !9
  %260 = load i32, ptr %23, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [150 x double], ptr %259, i64 %261
  %263 = load i32, ptr %25, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [150 x double], ptr %262, i64 0, i64 %264
  %266 = load double, ptr %265, align 8, !tbaa !13
  %267 = load double, ptr %24, align 8, !tbaa !13
  %268 = call double @llvm.fmuladd.f64(double %258, double %266, double %267)
  store double %268, ptr %24, align 8, !tbaa !13
  br label %269

269:                                              ; preds = %253
  %270 = load i32, ptr %25, align 4, !tbaa !5
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %25, align 4, !tbaa !5
  br label %248, !llvm.loop !23

272:                                              ; preds = %252
  %273 = load double, ptr %24, align 8, !tbaa !13
  %274 = load ptr, ptr %8, align 8, !tbaa !9
  %275 = load i32, ptr %23, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [150 x double], ptr %274, i64 %276
  %278 = load i32, ptr %7, align 4, !tbaa !5
  %279 = add nsw i32 %278, 1
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [150 x double], ptr %277, i64 0, i64 %280
  %282 = load double, ptr %281, align 8, !tbaa !13
  %283 = fsub double %273, %282
  %284 = call noundef double @_ZSt3absd(double noundef %283)
  %285 = fcmp ogt double %284, 0x3EB0C6F7A0B5ED8D
  br i1 %285, label %286, label %287

286:                                              ; preds = %272
  store i32 0, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %288

287:                                              ; preds = %272
  store i32 0, ptr %16, align 4
  br label %288

288:                                              ; preds = %287, %286
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  %289 = load i32, ptr %16, align 4
  switch i32 %289, label %294 [
    i32 0, label %290
  ]

290:                                              ; preds = %288
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %23, align 4, !tbaa !5
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %23, align 4, !tbaa !5
  br label %242, !llvm.loop !24

294:                                              ; preds = %288, %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  %295 = load i32, ptr %16, align 4
  switch i32 %295, label %301 [
    i32 23, label %296
  ]

296:                                              ; preds = %294
  %297 = load i8, ptr %11, align 1, !tbaa !11, !range !25, !noundef !26
  %298 = trunc i8 %297 to i1
  br i1 %298, label %299, label %300

299:                                              ; preds = %296
  store i32 1048576, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %301

300:                                              ; preds = %296
  store i32 1, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %301

301:                                              ; preds = %300, %299, %294
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 600, ptr %10) #5
  %302 = load i32, ptr %5, align 4
  ret i32 %302

303:                                              ; preds = %197
  unreachable
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = !{i8 0, i8 2}
!26 = !{}


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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z5gaussiiPA150_dPd(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr nocapture noundef %3) local_unnamed_addr #0 {
  %5 = alloca [150 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 600, ptr nonnull %5) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(600) %5, i8 0, i64 600, i1 false)
  %6 = icmp sgt i32 %0, 0
  %7 = icmp sgt i32 %1, 0
  %8 = and i1 %6, %7
  br i1 %8, label %.preheader127.lr.ph, label %.preheader124

.preheader127.lr.ph:                              ; preds = %4
  %9 = add nuw i32 %1, 2
  %10 = add nuw i32 %0, 1
  %11 = zext nneg i32 %1 to i64
  %wide.trip.count = zext i32 %9 to i64
  %wide.trip.count170 = zext i32 %9 to i64
  %wide.trip.count180 = zext i32 %10 to i64
  %wide.trip.count175 = zext i32 %9 to i64
  %scevgep = getelementptr i8, ptr %2, i64 1208
  %12 = mul nuw nsw i64 %wide.trip.count180, 1200
  %13 = shl nuw nsw i64 %wide.trip.count, 3
  %14 = getelementptr i8, ptr %2, i64 %12
  %15 = getelementptr i8, ptr %14, i64 %13
  %scevgep209 = getelementptr i8, ptr %15, i64 -1200
  %scevgep210 = getelementptr i8, ptr %2, i64 8
  %scevgep212 = getelementptr i8, ptr %2, i64 %13
  %16 = add nsw i64 %wide.trip.count, -1
  %17 = add nsw i64 %wide.trip.count, -1
  %n.vec222 = and i64 %17, -2
  %ind.end223 = or i64 %17, 1
  %cmp.n232 = icmp eq i64 %17, %n.vec222
  %min.iters.check = icmp ult i32 %1, 3
  %n.vec = and i64 %16, -4
  %ind.end = or disjoint i64 %n.vec, 1
  %cmp.n = icmp eq i64 %16, %n.vec
  %18 = and i64 %wide.trip.count, 1
  %lcmp.mod.not.not = icmp eq i64 %18, 0
  %19 = add nsw i64 %wide.trip.count, -1
  br label %.preheader127

.preheader127:                                    ; preds = %.preheader127.lr.ph, %89
  %indvars.iv182 = phi i64 [ 1, %.preheader127.lr.ph ], [ %indvars.iv.next183, %89 ]
  %.0103145 = phi i32 [ 1, %.preheader127.lr.ph ], [ %.1104, %89 ]
  %.0105144 = phi i1 [ false, %.preheader127.lr.ph ], [ %.1106, %89 ]
  %20 = sext i32 %.0103145 to i64
  %smax = tail call i32 @llvm.smax.i32(i32 %.0103145, i32 %0)
  %21 = add nuw i32 %smax, 1
  br label %34

.preheader124.loopexit:                           ; preds = %89
  %22 = select i1 %.1106, i32 1048576, i32 1
  br label %.preheader124

.preheader124:                                    ; preds = %.preheader124.loopexit, %4
  %.0105.lcssa = phi i32 [ 1, %4 ], [ %22, %.preheader124.loopexit ]
  %.not148 = icmp slt i32 %1, 1
  br i1 %.not148, label %.preheader123.thread, label %.lr.ph150

.lr.ph150:                                        ; preds = %.preheader124
  %23 = add nuw i32 %1, 1
  %24 = zext i32 %23 to i64
  %25 = zext nneg i32 %1 to i64
  %26 = add nsw i64 %24, -2
  %xtraiter236 = and i64 %25, 1
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %.preheader123.unr-lcssa, label %.lr.ph150.new

.lr.ph150.new:                                    ; preds = %.lr.ph150
  %unroll_iter = and i64 %25, 2147483646
  br label %114

28:                                               ; preds = %34
  %29 = sext i32 %.1101 to i64
  %30 = getelementptr inbounds [150 x double], ptr %2, i64 %29, i64 %indvars.iv182
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = tail call noundef double @_ZSt3absd(double noundef %31)
  %33 = fcmp olt double %32, 0x3EB0C6F7A0B5ED8D
  br i1 %33, label %89, label %.lr.ph

34:                                               ; preds = %.preheader127, %34
  %indvars.iv = phi i64 [ %20, %.preheader127 ], [ %indvars.iv.next, %34 ]
  %.0100128 = phi i32 [ %.0103145, %.preheader127 ], [ %.1101, %34 ]
  %35 = getelementptr inbounds [150 x double], ptr %2, i64 %indvars.iv, i64 %indvars.iv182
  %36 = load double, ptr %35, align 8, !tbaa !5
  %37 = tail call noundef double @_ZSt3absd(double noundef %36)
  %38 = sext i32 %.0100128 to i64
  %39 = getelementptr inbounds [150 x double], ptr %2, i64 %38, i64 %indvars.iv182
  %40 = load double, ptr %39, align 8, !tbaa !5
  %41 = tail call noundef double @_ZSt3absd(double noundef %40)
  %42 = fcmp ogt double %37, %41
  %43 = trunc nsw i64 %indvars.iv to i32
  %.1101 = select i1 %42, i32 %43, i32 %.0100128
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %21, %lftr.wideiv
  br i1 %exitcond.not, label %28, label %34, !llvm.loop !9

.lr.ph135.preheader:                              ; preds = %.lr.ph
  %44 = getelementptr inbounds [150 x i32], ptr %5, i64 0, i64 %indvars.iv182
  store i32 %.0103145, ptr %44, align 4, !tbaa !11
  %45 = getelementptr inbounds [150 x double], ptr %2, i64 %20, i64 %indvars.iv182
  %46 = load double, ptr %45, align 8, !tbaa !5
  %broadcast.splatinsert229 = insertelement <2 x double> poison, double %46, i64 0
  %broadcast.splat230 = shufflevector <2 x double> %broadcast.splatinsert229, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body225

vector.body225:                                   ; preds = %vector.body225, %.lr.ph135.preheader
  %index226 = phi i64 [ 0, %.lr.ph135.preheader ], [ %index.next231, %vector.body225 ]
  %offset.idx227 = or disjoint i64 %index226, 1
  %47 = getelementptr inbounds [150 x double], ptr %2, i64 %20, i64 %offset.idx227
  %wide.load228 = load <2 x double>, ptr %47, align 8, !tbaa !5
  %48 = fdiv <2 x double> %wide.load228, %broadcast.splat230
  store <2 x double> %48, ptr %47, align 8, !tbaa !5
  %index.next231 = add nuw i64 %index226, 2
  %49 = icmp eq i64 %index.next231, %n.vec222
  br i1 %49, label %middle.block217, label %vector.body225, !llvm.loop !13

middle.block217:                                  ; preds = %vector.body225
  br i1 %cmp.n232, label %.lr.ph142.split.preheader, label %.lr.ph135

.lr.ph:                                           ; preds = %28, %.lr.ph
  %indvars.iv163 = phi i64 [ %indvars.iv.next164, %.lr.ph ], [ 1, %28 ]
  %50 = getelementptr inbounds [150 x double], ptr %2, i64 %20, i64 %indvars.iv163
  %51 = getelementptr inbounds [150 x double], ptr %2, i64 %29, i64 %indvars.iv163
  tail call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(8) %51) #6
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %exitcond166 = icmp eq i64 %indvars.iv.next164, %wide.trip.count
  br i1 %exitcond166, label %.lr.ph135.preheader, label %.lr.ph, !llvm.loop !16

.lr.ph142.split.preheader:                        ; preds = %.lr.ph135, %middle.block217
  %52 = zext i32 %.0103145 to i64
  %53 = mul nsw i64 %20, 1200
  %scevgep211 = getelementptr i8, ptr %scevgep210, i64 %53
  %scevgep213 = getelementptr i8, ptr %scevgep212, i64 %53
  %bound0 = icmp ult ptr %scevgep, %scevgep213
  %bound1 = icmp ult ptr %scevgep211, %scevgep209
  %found.conflict = and i1 %bound0, %bound1
  br label %.lr.ph142.split

.lr.ph135:                                        ; preds = %middle.block217, %.lr.ph135
  %indvars.iv167 = phi i64 [ %indvars.iv.next168, %.lr.ph135 ], [ %ind.end223, %middle.block217 ]
  %54 = getelementptr inbounds [150 x double], ptr %2, i64 %20, i64 %indvars.iv167
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = fdiv double %55, %46
  store double %56, ptr %54, align 8, !tbaa !5
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %exitcond171 = icmp eq i64 %indvars.iv.next168, %wide.trip.count170
  br i1 %exitcond171, label %.lr.ph142.split.preheader, label %.lr.ph135, !llvm.loop !17

._crit_edge143:                                   ; preds = %..loopexit_crit_edge
  %57 = add nsw i32 %.0103145, 1
  br label %89

.lr.ph142.split:                                  ; preds = %.lr.ph142.split.preheader, %..loopexit_crit_edge
  %indvars.iv177 = phi i64 [ 1, %.lr.ph142.split.preheader ], [ %indvars.iv.next178, %..loopexit_crit_edge ]
  %58 = icmp eq i64 %indvars.iv177, %52
  br i1 %58, label %..loopexit_crit_edge, label %.lr.ph139

.lr.ph139:                                        ; preds = %.lr.ph142.split
  %59 = getelementptr inbounds [150 x double], ptr %2, i64 %indvars.iv177, i64 %indvars.iv182
  %60 = load double, ptr %59, align 8, !tbaa !5
  %brmerge = select i1 %min.iters.check, i1 true, i1 %found.conflict
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph139
  %broadcast.splatinsert = insertelement <2 x double> poison, double %60, 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 = or disjoint i64 %index, 1
  %61 = getelementptr inbounds [150 x double], ptr %2, i64 %20, i64 %offset.idx
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %wide.load = load <2 x double>, ptr %61, align 8, !tbaa !5, !alias.scope !18
  %wide.load214 = load <2 x double>, ptr %62, align 8, !tbaa !5, !alias.scope !18
  %63 = getelementptr inbounds [150 x double], ptr %2, i64 %indvars.iv177, i64 %offset.idx
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  %wide.load215 = load <2 x double>, ptr %63, align 8, !tbaa !5, !alias.scope !21, !noalias !18
  %wide.load216 = load <2 x double>, ptr %64, align 8, !tbaa !5, !alias.scope !21, !noalias !18
  %65 = fneg <2 x double> %wide.load
  %66 = fneg <2 x double> %wide.load214
  %67 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %65, <2 x double> %broadcast.splat, <2 x double> %wide.load215)
  %68 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %66, <2 x double> %broadcast.splat, <2 x double> %wide.load216)
  store <2 x double> %67, ptr %63, align 8, !tbaa !5, !alias.scope !21, !noalias !18
  store <2 x double> %68, ptr %64, align 8, !tbaa !5, !alias.scope !21, !noalias !18
  %index.next = add nuw i64 %index, 4
  %69 = icmp eq i64 %index.next, %n.vec
  br i1 %69, label %middle.block, label %vector.body, !llvm.loop !23

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

scalar.ph.preheader:                              ; preds = %.lr.ph139, %middle.block
  %indvars.iv172.ph = phi i64 [ 1, %.lr.ph139 ], [ %ind.end, %middle.block ]
  br i1 %lcmp.mod.not.not, label %scalar.ph.prol, label %scalar.ph.prol.loopexit

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %70 = getelementptr inbounds [150 x double], ptr %2, i64 %20, i64 %indvars.iv172.ph
  %71 = load double, ptr %70, align 8, !tbaa !5
  %72 = getelementptr inbounds [150 x double], ptr %2, i64 %indvars.iv177, i64 %indvars.iv172.ph
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = fneg double %71
  %75 = tail call double @llvm.fmuladd.f64(double %74, double %60, double %73)
  store double %75, ptr %72, align 8, !tbaa !5
  %indvars.iv.next173.prol = add nuw nsw i64 %indvars.iv172.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv172.unr = phi i64 [ %indvars.iv172.ph, %scalar.ph.preheader ], [ %indvars.iv.next173.prol, %scalar.ph.prol ]
  %76 = icmp eq i64 %indvars.iv172.ph, %19
  br i1 %76, label %..loopexit_crit_edge, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv172 = phi i64 [ %indvars.iv.next173.1, %scalar.ph ], [ %indvars.iv172.unr, %scalar.ph.prol.loopexit ]
  %77 = getelementptr inbounds [150 x double], ptr %2, i64 %20, i64 %indvars.iv172
  %78 = load double, ptr %77, align 8, !tbaa !5
  %79 = getelementptr inbounds [150 x double], ptr %2, i64 %indvars.iv177, i64 %indvars.iv172
  %80 = load double, ptr %79, align 8, !tbaa !5
  %81 = fneg double %78
  %82 = tail call double @llvm.fmuladd.f64(double %81, double %60, double %80)
  store double %82, ptr %79, align 8, !tbaa !5
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %83 = getelementptr inbounds [150 x double], ptr %2, i64 %20, i64 %indvars.iv.next173
  %84 = load double, ptr %83, align 8, !tbaa !5
  %85 = getelementptr inbounds [150 x double], ptr %2, i64 %indvars.iv177, i64 %indvars.iv.next173
  %86 = load double, ptr %85, align 8, !tbaa !5
  %87 = fneg double %84
  %88 = tail call double @llvm.fmuladd.f64(double %87, double %60, double %86)
  store double %88, ptr %85, align 8, !tbaa !5
  %indvars.iv.next173.1 = add nuw nsw i64 %indvars.iv172, 2
  %exitcond176.1 = icmp eq i64 %indvars.iv.next173.1, %wide.trip.count175
  br i1 %exitcond176.1, label %..loopexit_crit_edge, label %scalar.ph, !llvm.loop !24

..loopexit_crit_edge:                             ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %.lr.ph142.split
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %exitcond181.not = icmp eq i64 %indvars.iv.next178, %wide.trip.count180
  br i1 %exitcond181.not, label %._crit_edge143, label %.lr.ph142.split, !llvm.loop !25

89:                                               ; preds = %28, %._crit_edge143
  %.1106 = phi i1 [ %.0105144, %._crit_edge143 ], [ true, %28 ]
  %.1104 = phi i32 [ %57, %._crit_edge143 ], [ %.0103145, %28 ]
  %indvars.iv.next183 = add nuw nsw i64 %indvars.iv182, 1
  %90 = icmp sle i32 %.1104, %0
  %91 = icmp ult i64 %indvars.iv182, %11
  %92 = and i1 %90, %91
  br i1 %92, label %.preheader127, label %.preheader124.loopexit, !llvm.loop !26

.preheader123.unr-lcssa:                          ; preds = %129, %.lr.ph150
  %indvars.iv184.unr = phi i64 [ 1, %.lr.ph150 ], [ %indvars.iv.next185.1, %129 ]
  %lcmp.mod237.not = icmp eq i64 %xtraiter236, 0
  br i1 %lcmp.mod237.not, label %.preheader123, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader123.unr-lcssa
  %93 = getelementptr inbounds [150 x i32], ptr %5, i64 0, i64 %indvars.iv184.unr
  %94 = load i32, ptr %93, align 4, !tbaa !11
  %.not117.epil = icmp eq i32 %94, 0
  br i1 %.not117.epil, label %.preheader123.epilog-lcssa, label %95

95:                                               ; preds = %.epil.preheader
  %96 = sext i32 %94 to i64
  %97 = getelementptr inbounds [150 x double], ptr %2, i64 %96, i64 %24
  %98 = load double, ptr %97, align 8, !tbaa !5
  br label %.preheader123.epilog-lcssa

.preheader123.epilog-lcssa:                       ; preds = %95, %.epil.preheader
  %.sink.epil = phi double [ %98, %95 ], [ 0.000000e+00, %.epil.preheader ]
  %99 = getelementptr inbounds double, ptr %3, i64 %indvars.iv184.unr
  store double %.sink.epil, ptr %99, align 8
  br label %.preheader123

.preheader123:                                    ; preds = %.preheader123.unr-lcssa, %.preheader123.epilog-lcssa
  %.not115157 = icmp slt i32 %0, 1
  br i1 %.not115157, label %.split.us, label %.preheader.lr.ph

.preheader123.thread:                             ; preds = %.preheader124
  %.not115157204 = icmp slt i32 %0, 1
  br i1 %.not115157204, label %.split.us, label %.preheader.lr.ph.thread

.preheader.lr.ph.thread:                          ; preds = %.preheader123.thread
  %100 = add nsw i32 %1, 1
  %101 = sext i32 %100 to i64
  br label %.preheader.us.preheader

.preheader.lr.ph:                                 ; preds = %.preheader123
  %102 = add nuw i32 %1, 1
  %103 = sext i32 %102 to i64
  br i1 %.not148, label %.preheader.us.preheader, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %104 = add nuw i32 %0, 1
  %wide.trip.count197 = zext i32 %104 to i64
  %xtraiter239 = and i64 %25, 3
  %105 = icmp ult i64 %26, 3
  %unroll_iter242 = and i64 %25, 2147483644
  %lcmp.mod240.not = icmp eq i64 %xtraiter239, 0
  br label %.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph.thread, %.preheader.lr.ph
  %106 = phi i64 [ %101, %.preheader.lr.ph.thread ], [ %103, %.preheader.lr.ph ]
  %107 = add nuw i32 %0, 1
  %wide.trip.count202 = zext i32 %107 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %113
  %indvars.iv199 = phi i64 [ 1, %.preheader.us.preheader ], [ %indvars.iv.next200, %113 ]
  %108 = getelementptr inbounds [150 x double], ptr %2, i64 %indvars.iv199, i64 %106
  %109 = load double, ptr %108, align 8, !tbaa !5
  %110 = fsub double 0.000000e+00, %109
  %111 = tail call noundef double @_ZSt3absd(double noundef %110)
  %112 = fcmp ule double %111, 0x3EB0C6F7A0B5ED8D
  br i1 %112, label %113, label %.split.us

113:                                              ; preds = %.preheader.us
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %exitcond203.not = icmp eq i64 %indvars.iv.next200, %wide.trip.count202
  br i1 %exitcond203.not, label %.split.us, label %.preheader.us, !llvm.loop !27

114:                                              ; preds = %129, %.lr.ph150.new
  %indvars.iv184 = phi i64 [ 1, %.lr.ph150.new ], [ %indvars.iv.next185.1, %129 ]
  %niter = phi i64 [ 0, %.lr.ph150.new ], [ %niter.next.1, %129 ]
  %115 = getelementptr inbounds [150 x i32], ptr %5, i64 0, i64 %indvars.iv184
  %116 = load i32, ptr %115, align 4, !tbaa !11
  %.not117 = icmp eq i32 %116, 0
  br i1 %.not117, label %121, label %117

117:                                              ; preds = %114
  %118 = sext i32 %116 to i64
  %119 = getelementptr inbounds [150 x double], ptr %2, i64 %118, i64 %24
  %120 = load double, ptr %119, align 8, !tbaa !5
  br label %121

121:                                              ; preds = %114, %117
  %.sink = phi double [ %120, %117 ], [ 0.000000e+00, %114 ]
  %122 = getelementptr inbounds double, ptr %3, i64 %indvars.iv184
  store double %.sink, ptr %122, align 8
  %indvars.iv.next185 = add nuw nsw i64 %indvars.iv184, 1
  %123 = getelementptr inbounds [150 x i32], ptr %5, i64 0, i64 %indvars.iv.next185
  %124 = load i32, ptr %123, align 4, !tbaa !11
  %.not117.1 = icmp eq i32 %124, 0
  br i1 %.not117.1, label %129, label %125

125:                                              ; preds = %121
  %126 = sext i32 %124 to i64
  %127 = getelementptr inbounds [150 x double], ptr %2, i64 %126, i64 %24
  %128 = load double, ptr %127, align 8, !tbaa !5
  br label %129

129:                                              ; preds = %125, %121
  %.sink.1 = phi double [ %128, %125 ], [ 0.000000e+00, %121 ]
  %130 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next185
  store double %.sink.1, ptr %130, align 8
  %indvars.iv.next185.1 = add nuw nsw i64 %indvars.iv184, 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 %.preheader123.unr-lcssa, label %114, !llvm.loop !28

131:                                              ; preds = %._crit_edge155
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %exitcond198.not = icmp eq i64 %indvars.iv.next195, %wide.trip.count197
  br i1 %exitcond198.not, label %.split.us, label %.preheader, !llvm.loop !27

.preheader:                                       ; preds = %.preheader.preheader, %131
  %indvars.iv194 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next195, %131 ]
  br i1 %105, label %._crit_edge155.unr-lcssa, label %.preheader.new

._crit_edge155.unr-lcssa:                         ; preds = %.preheader.new, %.preheader
  %.lcssa.ph = phi double [ poison, %.preheader ], [ %161, %.preheader.new ]
  %indvars.iv189.unr = phi i64 [ 1, %.preheader ], [ %indvars.iv.next190.3, %.preheader.new ]
  %.091152.unr = phi double [ 0.000000e+00, %.preheader ], [ %161, %.preheader.new ]
  br i1 %lcmp.mod240.not, label %._crit_edge155, label %.epil.preheader238

.epil.preheader238:                               ; preds = %._crit_edge155.unr-lcssa, %.epil.preheader238
  %indvars.iv189.epil = phi i64 [ %indvars.iv.next190.epil, %.epil.preheader238 ], [ %indvars.iv189.unr, %._crit_edge155.unr-lcssa ]
  %.091152.epil = phi double [ %136, %.epil.preheader238 ], [ %.091152.unr, %._crit_edge155.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader238 ], [ 0, %._crit_edge155.unr-lcssa ]
  %132 = getelementptr inbounds double, ptr %3, i64 %indvars.iv189.epil
  %133 = load double, ptr %132, align 8, !tbaa !5
  %134 = getelementptr inbounds [150 x double], ptr %2, i64 %indvars.iv194, i64 %indvars.iv189.epil
  %135 = load double, ptr %134, align 8, !tbaa !5
  %136 = tail call double @llvm.fmuladd.f64(double %133, double %135, double %.091152.epil)
  %indvars.iv.next190.epil = add nuw nsw i64 %indvars.iv189.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter239
  br i1 %epil.iter.cmp.not, label %._crit_edge155, label %.epil.preheader238, !llvm.loop !29

._crit_edge155:                                   ; preds = %.epil.preheader238, %._crit_edge155.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge155.unr-lcssa ], [ %136, %.epil.preheader238 ]
  %137 = getelementptr inbounds [150 x double], ptr %2, i64 %indvars.iv194, i64 %103
  %138 = load double, ptr %137, align 8, !tbaa !5
  %139 = fsub double %.lcssa, %138
  %140 = tail call noundef double @_ZSt3absd(double noundef %139)
  %141 = fcmp ule double %140, 0x3EB0C6F7A0B5ED8D
  br i1 %141, label %131, label %.split.us

.preheader.new:                                   ; preds = %.preheader, %.preheader.new
  %indvars.iv189 = phi i64 [ %indvars.iv.next190.3, %.preheader.new ], [ 1, %.preheader ]
  %.091152 = phi double [ %161, %.preheader.new ], [ 0.000000e+00, %.preheader ]
  %niter243 = phi i64 [ %niter243.next.3, %.preheader.new ], [ 0, %.preheader ]
  %142 = getelementptr inbounds double, ptr %3, i64 %indvars.iv189
  %143 = load double, ptr %142, align 8, !tbaa !5
  %144 = getelementptr inbounds [150 x double], ptr %2, i64 %indvars.iv194, i64 %indvars.iv189
  %145 = load double, ptr %144, align 8, !tbaa !5
  %146 = tail call double @llvm.fmuladd.f64(double %143, double %145, double %.091152)
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %147 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next190
  %148 = load double, ptr %147, align 8, !tbaa !5
  %149 = getelementptr inbounds [150 x double], ptr %2, i64 %indvars.iv194, i64 %indvars.iv.next190
  %150 = load double, ptr %149, align 8, !tbaa !5
  %151 = tail call double @llvm.fmuladd.f64(double %148, double %150, double %146)
  %indvars.iv.next190.1 = add nuw nsw i64 %indvars.iv189, 2
  %152 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next190.1
  %153 = load double, ptr %152, align 8, !tbaa !5
  %154 = getelementptr inbounds [150 x double], ptr %2, i64 %indvars.iv194, i64 %indvars.iv.next190.1
  %155 = load double, ptr %154, align 8, !tbaa !5
  %156 = tail call double @llvm.fmuladd.f64(double %153, double %155, double %151)
  %indvars.iv.next190.2 = add nuw nsw i64 %indvars.iv189, 3
  %157 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next190.2
  %158 = load double, ptr %157, align 8, !tbaa !5
  %159 = getelementptr inbounds [150 x double], ptr %2, i64 %indvars.iv194, i64 %indvars.iv.next190.2
  %160 = load double, ptr %159, align 8, !tbaa !5
  %161 = tail call double @llvm.fmuladd.f64(double %158, double %160, double %156)
  %indvars.iv.next190.3 = add nuw nsw i64 %indvars.iv189, 4
  %niter243.next.3 = add i64 %niter243, 4
  %niter243.ncmp.3 = icmp eq i64 %niter243.next.3, %unroll_iter242
  br i1 %niter243.ncmp.3, label %._crit_edge155.unr-lcssa, label %.preheader.new, !llvm.loop !31

.split.us:                                        ; preds = %._crit_edge155, %131, %.preheader.us, %113, %.preheader123, %.preheader123.thread
  %.3 = phi i32 [ %.0105.lcssa, %.preheader123.thread ], [ %.0105.lcssa, %.preheader123 ], [ 0, %.preheader.us ], [ %.0105.lcssa, %113 ], [ 0, %._crit_edge155 ], [ %.0105.lcssa, %131 ]
  call void @llvm.lifetime.end.p0(i64 600, ptr nonnull %5) #6
  ret i32 %.3
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

; 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>) #5

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


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