; LLVM IR from darnstrom/daqp :: src (auxiliary)

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

%struct.DAQPWorkspace = type { ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, ptr, ptr, ptr, ptr, i32, ptr, i32, i32, i32, double, ptr, ptr, i32, ptr }
%struct.DAQPSettings = type { double, double, double, double, double, i32, i32, double, double, double, double, double, double }

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

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

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

7:                                                ; preds = %20, %1
  %8 = load i32, ptr %4, align 4, !tbaa !11
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.DAQPWorkspace, ptr %9, i32 0, i32 1
  %11 = load i32, ptr %10, align 8, !tbaa !13
  %12 = icmp slt i32 %8, %11
  br i1 %12, label %13, label %23

13:                                               ; preds = %7
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.DAQPWorkspace, ptr %14, i32 0, i32 16
  %16 = load ptr, ptr %15, align 8, !tbaa !15
  %17 = load i32, ptr %4, align 4, !tbaa !11
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds double, ptr %16, i64 %18
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  br label %20

20:                                               ; preds = %13
  %21 = load i32, ptr %4, align 4, !tbaa !11
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %4, align 4, !tbaa !11
  br label %7, !llvm.loop !16

23:                                               ; preds = %7
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.DAQPWorkspace, ptr %24, i32 0, i32 27
  store double 0.000000e+00, ptr %25, align 8, !tbaa !18
  store i32 0, ptr %3, align 4, !tbaa !11
  br label %26

26:                                               ; preds = %223, %23
  %27 = load i32, ptr %3, align 4, !tbaa !11
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.DAQPWorkspace, ptr %28, i32 0, i32 24
  %30 = load i32, ptr %29, align 8, !tbaa !19
  %31 = icmp slt i32 %27, %30
  br i1 %31, label %32, label %226

32:                                               ; preds = %26
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.DAQPWorkspace, ptr %33, i32 0, i32 23
  %35 = load ptr, ptr %34, align 8, !tbaa !20
  %36 = load i32, ptr %3, align 4, !tbaa !11
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i32, ptr %35, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !11
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.DAQPWorkspace, ptr %40, i32 0, i32 3
  %42 = load i32, ptr %41, align 8, !tbaa !21
  %43 = icmp slt i32 %39, %42
  br i1 %43, label %44, label %138

44:                                               ; preds = %32
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.DAQPWorkspace, ptr %45, i32 0, i32 7
  %47 = load ptr, ptr %46, align 8, !tbaa !22
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %115

49:                                               ; preds = %44
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.DAQPWorkspace, ptr %50, i32 0, i32 23
  %52 = load ptr, ptr %51, align 8, !tbaa !20
  %53 = load i32, ptr %3, align 4, !tbaa !11
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds i32, ptr %52, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !11
  store i32 %56, ptr %4, align 4, !tbaa !11
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.DAQPWorkspace, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 8, !tbaa !13
  %60 = mul nsw i32 2, %59
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.DAQPWorkspace, ptr %61, i32 0, i32 23
  %63 = load ptr, ptr %62, align 8, !tbaa !20
  %64 = load i32, ptr %3, align 4, !tbaa !11
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i32, ptr %63, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !11
  %68 = sub nsw i32 %60, %67
  %69 = sub nsw i32 %68, 1
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.DAQPWorkspace, ptr %70, i32 0, i32 23
  %72 = load ptr, ptr %71, align 8, !tbaa !20
  %73 = load i32, ptr %3, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i32, ptr %72, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !11
  %77 = mul nsw i32 %69, %76
  %78 = sdiv i32 %77, 2
  store i32 %78, ptr %5, align 4, !tbaa !11
  br label %79

79:                                               ; preds = %111, %49
  %80 = load i32, ptr %4, align 4, !tbaa !11
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.DAQPWorkspace, ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 8, !tbaa !13
  %84 = icmp slt i32 %80, %83
  br i1 %84, label %85, label %114

85:                                               ; preds = %79
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.DAQPWorkspace, ptr %86, i32 0, i32 7
  %88 = load ptr, ptr %87, align 8, !tbaa !22
  %89 = load i32, ptr %5, align 4, !tbaa !11
  %90 = load i32, ptr %4, align 4, !tbaa !11
  %91 = add nsw i32 %89, %90
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %88, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !9
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.DAQPWorkspace, ptr %95, i32 0, i32 15
  %97 = load ptr, ptr %96, align 8, !tbaa !23
  %98 = load i32, ptr %3, align 4, !tbaa !11
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %97, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !9
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.DAQPWorkspace, ptr %102, i32 0, i32 16
  %104 = load ptr, ptr %103, align 8, !tbaa !15
  %105 = load i32, ptr %4, align 4, !tbaa !11
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !9
  %109 = fneg double %94
  %110 = call double @llvm.fmuladd.f64(double %109, double %101, double %108)
  store double %110, ptr %107, align 8, !tbaa !9
  br label %111

111:                                              ; preds = %85
  %112 = load i32, ptr %4, align 4, !tbaa !11
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %4, align 4, !tbaa !11
  br label %79, !llvm.loop !24

114:                                              ; preds = %79
  br label %137

115:                                              ; preds = %44
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.DAQPWorkspace, ptr %116, i32 0, i32 15
  %118 = load ptr, ptr %117, align 8, !tbaa !23
  %119 = load i32, ptr %3, align 4, !tbaa !11
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %118, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !9
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.DAQPWorkspace, ptr %123, i32 0, i32 16
  %125 = load ptr, ptr %124, align 8, !tbaa !15
  %126 = load ptr, ptr %2, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.DAQPWorkspace, ptr %126, i32 0, i32 23
  %128 = load ptr, ptr %127, align 8, !tbaa !20
  %129 = load i32, ptr %3, align 4, !tbaa !11
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i32, ptr %128, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !11
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds double, ptr %125, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !9
  %136 = fsub double %135, %122
  store double %136, ptr %134, align 8, !tbaa !9
  br label %137

137:                                              ; preds = %115, %114
  br label %189

138:                                              ; preds = %32
  store i32 0, ptr %4, align 4, !tbaa !11
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.DAQPWorkspace, ptr %139, i32 0, i32 1
  %141 = load i32, ptr %140, align 8, !tbaa !13
  %142 = load ptr, ptr %2, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.DAQPWorkspace, ptr %142, i32 0, i32 23
  %144 = load ptr, ptr %143, align 8, !tbaa !20
  %145 = load i32, ptr %3, align 4, !tbaa !11
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds i32, ptr %144, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !11
  %149 = load ptr, ptr %2, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.DAQPWorkspace, ptr %149, i32 0, i32 3
  %151 = load i32, ptr %150, align 8, !tbaa !21
  %152 = sub nsw i32 %148, %151
  %153 = mul nsw i32 %141, %152
  store i32 %153, ptr %5, align 4, !tbaa !11
  br label %154

154:                                              ; preds = %185, %138
  %155 = load i32, ptr %4, align 4, !tbaa !11
  %156 = load ptr, ptr %2, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.DAQPWorkspace, ptr %156, i32 0, i32 1
  %158 = load i32, ptr %157, align 8, !tbaa !13
  %159 = icmp slt i32 %155, %158
  br i1 %159, label %160, label %188

160:                                              ; preds = %154
  %161 = load ptr, ptr %2, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.DAQPWorkspace, ptr %161, i32 0, i32 4
  %163 = load ptr, ptr %162, align 8, !tbaa !25
  %164 = load i32, ptr %5, align 4, !tbaa !11
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %5, align 4, !tbaa !11
  %166 = sext i32 %164 to i64
  %167 = getelementptr inbounds double, ptr %163, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !9
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.DAQPWorkspace, ptr %169, i32 0, i32 15
  %171 = load ptr, ptr %170, align 8, !tbaa !23
  %172 = load i32, ptr %3, align 4, !tbaa !11
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %171, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !9
  %176 = load ptr, ptr %2, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.DAQPWorkspace, ptr %176, i32 0, i32 16
  %178 = load ptr, ptr %177, align 8, !tbaa !15
  %179 = load i32, ptr %4, align 4, !tbaa !11
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds double, ptr %178, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !9
  %183 = fneg double %168
  %184 = call double @llvm.fmuladd.f64(double %183, double %175, double %182)
  store double %184, ptr %181, align 8, !tbaa !9
  br label %185

185:                                              ; preds = %160
  %186 = load i32, ptr %4, align 4, !tbaa !11
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %4, align 4, !tbaa !11
  br label %154, !llvm.loop !26

188:                                              ; preds = %154
  br label %189

189:                                              ; preds = %188, %137
  %190 = load ptr, ptr %2, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.DAQPWorkspace, ptr %190, i32 0, i32 9
  %192 = load ptr, ptr %191, align 8, !tbaa !27
  %193 = load ptr, ptr %2, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.DAQPWorkspace, ptr %193, i32 0, i32 23
  %195 = load ptr, ptr %194, align 8, !tbaa !20
  %196 = load i32, ptr %3, align 4, !tbaa !11
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds i32, ptr %195, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !11
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i32, ptr %192, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !11
  %203 = and i32 %202, 8
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %205, label %222

205:                                              ; preds = %189
  %206 = load ptr, ptr %2, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.DAQPWorkspace, ptr %206, i32 0, i32 15
  %208 = load ptr, ptr %207, align 8, !tbaa !23
  %209 = load i32, ptr %3, align 4, !tbaa !11
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds double, ptr %208, i64 %210
  %212 = load double, ptr %211, align 8, !tbaa !9
  %213 = load ptr, ptr %2, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.DAQPWorkspace, ptr %213, i32 0, i32 15
  %215 = load ptr, ptr %214, align 8, !tbaa !23
  %216 = load i32, ptr %3, align 4, !tbaa !11
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds double, ptr %215, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !9
  %220 = load double, ptr %6, align 8, !tbaa !9
  %221 = call double @llvm.fmuladd.f64(double %212, double %219, double %220)
  store double %221, ptr %6, align 8, !tbaa !9
  br label %222

222:                                              ; preds = %205, %189
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %3, align 4, !tbaa !11
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %3, align 4, !tbaa !11
  br label %26, !llvm.loop !28

226:                                              ; preds = %26
  %227 = load double, ptr %6, align 8, !tbaa !9
  %228 = load ptr, ptr %2, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.DAQPWorkspace, ptr %228, i32 0, i32 28
  %230 = load ptr, ptr %229, align 8, !tbaa !29
  %231 = getelementptr inbounds %struct.DAQPSettings, ptr %230, i32 0, i32 10
  %232 = load double, ptr %231, align 8, !tbaa !30
  %233 = fmul double %227, %232
  store double %233, ptr %6, align 8, !tbaa !9
  %234 = load double, ptr %6, align 8, !tbaa !9
  %235 = load ptr, ptr %2, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.DAQPWorkspace, ptr %235, i32 0, i32 27
  store double %234, ptr %236, align 8, !tbaa !18
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %237

237:                                              ; preds = %260, %226
  %238 = load i32, ptr %4, align 4, !tbaa !11
  %239 = load ptr, ptr %2, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.DAQPWorkspace, ptr %239, i32 0, i32 1
  %241 = load i32, ptr %240, align 8, !tbaa !13
  %242 = icmp slt i32 %238, %241
  br i1 %242, label %243, label %263

243:                                              ; preds = %237
  %244 = load ptr, ptr %2, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.DAQPWorkspace, ptr %244, i32 0, i32 16
  %246 = load ptr, ptr %245, align 8, !tbaa !15
  %247 = load i32, ptr %4, align 4, !tbaa !11
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds double, ptr %246, i64 %248
  %250 = load double, ptr %249, align 8, !tbaa !9
  %251 = load ptr, ptr %2, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.DAQPWorkspace, ptr %251, i32 0, i32 16
  %253 = load ptr, ptr %252, align 8, !tbaa !15
  %254 = load i32, ptr %4, align 4, !tbaa !11
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds double, ptr %253, i64 %255
  %257 = load double, ptr %256, align 8, !tbaa !9
  %258 = load double, ptr %6, align 8, !tbaa !9
  %259 = call double @llvm.fmuladd.f64(double %250, double %257, double %258)
  store double %259, ptr %6, align 8, !tbaa !9
  br label %260

260:                                              ; preds = %243
  %261 = load i32, ptr %4, align 4, !tbaa !11
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %4, align 4, !tbaa !11
  br label %237, !llvm.loop !32

263:                                              ; preds = %237
  %264 = load double, ptr %6, align 8, !tbaa !9
  %265 = load ptr, ptr %2, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.DAQPWorkspace, ptr %265, i32 0, i32 17
  store double %264, ptr %266, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !10, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !12, i64 168, !6, i64 176, !12, i64 184, !12, i64 188, !12, i64 192, !10, i64 200, !6, i64 208, !6, i64 216, !12, i64 224, !6, i64 232}
!15 = !{!14, !6, i64 120}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!14, !10, i64 200}
!19 = !{!14, !12, i64 184}
!20 = !{!14, !6, i64 176}
!21 = !{!14, !12, i64 16}
!22 = !{!14, !6, i64 48}
!23 = !{!14, !6, i64 112}
!24 = distinct !{!24, !17}
!25 = !{!14, !6, i64 24}
!26 = distinct !{!26, !17}
!27 = !{!14, !6, i64 64}
!28 = distinct !{!28, !17}
!29 = !{!14, !6, i64 208}
!30 = !{!31, !10, i64 72}
!31 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !12, i64 40, !12, i64 44, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88}
!32 = distinct !{!32, !17}
!33 = !{!14, !10, i64 128}


; 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: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @compute_primal_and_fval(ptr nocapture noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 120
  %6 = load ptr, ptr %5, align 8, !tbaa !12
  %7 = zext nneg i32 %3 to i64
  %8 = shl nuw nsw i64 %7, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 %8, i1 false), !tbaa !13
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %1
  %9 = getelementptr inbounds i8, ptr %0, i64 200
  store double 0.000000e+00, ptr %9, align 8, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %0, i64 184
  %11 = load i32, ptr %10, align 8, !tbaa !15
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph90, label %._crit_edge91

.lr.ph90:                                         ; preds = %._crit_edge
  %13 = getelementptr inbounds i8, ptr %0, i64 176
  %14 = load ptr, ptr %13, align 8, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = load i32, ptr %15, align 8, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  %18 = getelementptr inbounds i8, ptr %0, i64 112
  %19 = getelementptr inbounds i8, ptr %0, i64 120
  %20 = getelementptr inbounds i8, ptr %0, i64 48
  %21 = shl nsw i32 %3, 1
  %22 = getelementptr inbounds i8, ptr %0, i64 64
  %23 = load ptr, ptr %22, align 8, !tbaa !18
  %wide.trip.count114 = zext nneg i32 %11 to i64
  %wide.trip.count = zext i32 %3 to i64
  %wide.trip.count109 = sext i32 %3 to i64
  %24 = shl nsw i64 %wide.trip.count109, 3
  %25 = shl nuw nsw i64 %wide.trip.count, 3
  %min.iters.check150 = icmp ult i32 %3, 4
  %n.vec153 = and i64 %wide.trip.count, 2147483644
  %cmp.n167 = icmp eq i64 %n.vec153, %wide.trip.count
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %26 = add nsw i64 %wide.trip.count, -1
  %27 = add nsw i64 %wide.trip.count109, -1
  br label %28

28:                                               ; preds = %.lr.ph90, %141
  %indvars.iv111 = phi i64 [ 0, %.lr.ph90 ], [ %indvars.iv.next112, %141 ]
  %.088 = phi double [ 0.000000e+00, %.lr.ph90 ], [ %.1, %141 ]
  %29 = shl nuw nsw i64 %indvars.iv111, 3
  %30 = shl nuw nsw i64 %indvars.iv111, 3
  %31 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv111
  %32 = load i32, ptr %31, align 4, !tbaa !19
  %33 = icmp slt i32 %32, %16
  br i1 %33, label %34, label %93

34:                                               ; preds = %28
  %35 = load ptr, ptr %20, align 8, !tbaa !20
  %.not = icmp eq ptr %35, null
  br i1 %.not, label %84, label %36

36:                                               ; preds = %34
  %37 = icmp slt i32 %32, %3
  br i1 %37, label %.lr.ph86, label %.loopexit

.lr.ph86:                                         ; preds = %36
  %38 = xor i32 %32, -1
  %39 = add i32 %21, %38
  %40 = mul nsw i32 %39, %32
  %41 = sdiv i32 %40, 2
  %42 = load ptr, ptr %18, align 8, !tbaa !21
  %43 = getelementptr inbounds double, ptr %42, i64 %indvars.iv111
  %44 = load ptr, ptr %19, align 8, !tbaa !12
  %45 = sext i32 %32 to i64
  %46 = sext i32 %41 to i64
  %invariant.gep = getelementptr double, ptr %35, i64 %46
  %47 = sub nsw i64 %wide.trip.count109, %45
  %min.iters.check = icmp ult i64 %47, 6
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph86
  %48 = shl nsw i64 %45, 3
  %scevgep = getelementptr i8, ptr %44, i64 %48
  %scevgep123 = getelementptr i8, ptr %44, i64 %24
  %49 = add nsw i64 %46, %45
  %50 = shl nsw i64 %49, 3
  %scevgep124 = getelementptr i8, ptr %35, i64 %50
  %51 = add nsw i64 %wide.trip.count109, %46
  %52 = shl nsw i64 %51, 3
  %scevgep125 = getelementptr i8, ptr %35, i64 %52
  %53 = getelementptr i8, ptr %42, i64 %30
  %scevgep126 = getelementptr i8, ptr %53, i64 8
  %bound0 = icmp ult ptr %scevgep, %scevgep125
  %bound1 = icmp ult ptr %scevgep124, %scevgep123
  %found.conflict = and i1 %bound0, %bound1
  %bound0127 = icmp ult ptr %scevgep, %scevgep126
  %bound1128 = icmp ult ptr %43, %scevgep123
  %found.conflict129 = and i1 %bound0127, %bound1128
  %conflict.rdx = or i1 %found.conflict, %found.conflict129
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %47, -4
  %ind.end = add nsw i64 %n.vec, %45
  %54 = load double, ptr %43, align 8, !tbaa !13, !alias.scope !22
  %broadcast.splatinsert133 = insertelement <2 x double> poison, double %54, i64 0
  %broadcast.splat134 = shufflevector <2 x double> %broadcast.splatinsert133, <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 %index, %45
  %55 = getelementptr double, ptr %invariant.gep, i64 %offset.idx
  %56 = getelementptr i8, ptr %55, i64 16
  %wide.load = load <2 x double>, ptr %55, align 8, !tbaa !13, !alias.scope !25
  %wide.load130 = load <2 x double>, ptr %56, align 8, !tbaa !13, !alias.scope !25
  %57 = getelementptr inbounds double, ptr %44, i64 %offset.idx
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  %wide.load131 = load <2 x double>, ptr %57, align 8, !tbaa !13, !alias.scope !27, !noalias !29
  %wide.load132 = load <2 x double>, ptr %58, align 8, !tbaa !13, !alias.scope !27, !noalias !29
  %59 = fneg <2 x double> %wide.load
  %60 = fneg <2 x double> %wide.load130
  %61 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %59, <2 x double> %broadcast.splat134, <2 x double> %wide.load131)
  %62 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %60, <2 x double> %broadcast.splat134, <2 x double> %wide.load132)
  store <2 x double> %61, ptr %57, align 8, !tbaa !13, !alias.scope !27, !noalias !29
  store <2 x double> %62, ptr %58, align 8, !tbaa !13, !alias.scope !27, !noalias !29
  %index.next = add nuw i64 %index, 4
  %63 = icmp eq i64 %index.next, %n.vec
  br i1 %63, label %middle.block, label %vector.body, !llvm.loop !30

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %47, %n.vec
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph86
  %indvars.iv106.ph = phi i64 [ %45, %vector.memcheck ], [ %45, %.lr.ph86 ], [ %ind.end, %middle.block ]
  %64 = sub nsw i64 %wide.trip.count109, %indvars.iv106.ph
  %xtraiter169 = and i64 %64, 1
  %lcmp.mod170.not = icmp eq i64 %xtraiter169, 0
  br i1 %lcmp.mod170.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %gep.prol = getelementptr double, ptr %invariant.gep, i64 %indvars.iv106.ph
  %65 = load double, ptr %gep.prol, align 8, !tbaa !13
  %66 = load double, ptr %43, align 8, !tbaa !13
  %67 = getelementptr inbounds double, ptr %44, i64 %indvars.iv106.ph
  %68 = load double, ptr %67, align 8, !tbaa !13
  %69 = fneg double %65
  %70 = tail call double @llvm.fmuladd.f64(double %69, double %66, double %68)
  store double %70, ptr %67, align 8, !tbaa !13
  %indvars.iv.next107.prol = add nsw i64 %indvars.iv106.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv106.unr = phi i64 [ %indvars.iv106.ph, %scalar.ph.preheader ], [ %indvars.iv.next107.prol, %scalar.ph.prol ]
  %71 = icmp eq i64 %indvars.iv106.ph, %27
  br i1 %71, label %.loopexit, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv106 = phi i64 [ %indvars.iv.next107.1, %scalar.ph ], [ %indvars.iv106.unr, %scalar.ph.prol.loopexit ]
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv106
  %72 = load double, ptr %gep, align 8, !tbaa !13
  %73 = load double, ptr %43, align 8, !tbaa !13
  %74 = getelementptr inbounds double, ptr %44, i64 %indvars.iv106
  %75 = load double, ptr %74, align 8, !tbaa !13
  %76 = fneg double %72
  %77 = tail call double @llvm.fmuladd.f64(double %76, double %73, double %75)
  store double %77, ptr %74, align 8, !tbaa !13
  %indvars.iv.next107 = add nsw i64 %indvars.iv106, 1
  %gep.1 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next107
  %78 = load double, ptr %gep.1, align 8, !tbaa !13
  %79 = load double, ptr %43, align 8, !tbaa !13
  %80 = getelementptr inbounds double, ptr %44, i64 %indvars.iv.next107
  %81 = load double, ptr %80, align 8, !tbaa !13
  %82 = fneg double %78
  %83 = tail call double @llvm.fmuladd.f64(double %82, double %79, double %81)
  store double %83, ptr %80, align 8, !tbaa !13
  %indvars.iv.next107.1 = add nsw i64 %indvars.iv106, 2
  %exitcond110.not.1 = icmp eq i64 %indvars.iv.next107.1, %wide.trip.count109
  br i1 %exitcond110.not.1, label %.loopexit, label %scalar.ph, !llvm.loop !34

84:                                               ; preds = %34
  %85 = load ptr, ptr %18, align 8, !tbaa !21
  %86 = getelementptr inbounds double, ptr %85, i64 %indvars.iv111
  %87 = load double, ptr %86, align 8, !tbaa !13
  %88 = load ptr, ptr %19, align 8, !tbaa !12
  %89 = sext i32 %32 to i64
  %90 = getelementptr inbounds double, ptr %88, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !13
  %92 = fsub double %91, %87
  store double %92, ptr %90, align 8, !tbaa !13
  br label %.loopexit

93:                                               ; preds = %28
  br i1 %4, label %.lr.ph83, label %.loopexit

.lr.ph83:                                         ; preds = %93
  %94 = sub i32 %32, %16
  %95 = mul i32 %94, %3
  %96 = load ptr, ptr %17, align 8, !tbaa !35
  %97 = load ptr, ptr %18, align 8, !tbaa !21
  %98 = getelementptr inbounds double, ptr %97, i64 %indvars.iv111
  %99 = load ptr, ptr %19, align 8, !tbaa !12
  %100 = sext i32 %95 to i64
  br i1 %min.iters.check150, label %scalar.ph149.preheader, label %vector.memcheck135

vector.memcheck135:                               ; preds = %.lr.ph83
  %scevgep136 = getelementptr i8, ptr %99, i64 %25
  %101 = shl nsw i64 %100, 3
  %scevgep137 = getelementptr i8, ptr %96, i64 %101
  %scevgep138 = getelementptr i8, ptr %96, i64 %25
  %scevgep139 = getelementptr i8, ptr %scevgep138, i64 %101
  %102 = getelementptr i8, ptr %97, i64 %29
  %scevgep140 = getelementptr i8, ptr %102, i64 8
  %bound0141 = icmp ult ptr %99, %scevgep139
  %bound1142 = icmp ult ptr %scevgep137, %scevgep136
  %found.conflict143 = and i1 %bound0141, %bound1142
  %bound0144 = icmp ult ptr %99, %scevgep140
  %bound1145 = icmp ult ptr %98, %scevgep136
  %found.conflict146 = and i1 %bound0144, %bound1145
  %conflict.rdx147 = or i1 %found.conflict143, %found.conflict146
  br i1 %conflict.rdx147, label %scalar.ph149.preheader, label %vector.ph151

vector.ph151:                                     ; preds = %vector.memcheck135
  %ind.end155 = add nsw i64 %n.vec153, %100
  %invariant.gep176 = getelementptr double, ptr %96, i64 %100
  %103 = load double, ptr %98, align 8, !tbaa !13, !alias.scope !36
  %broadcast.splatinsert164 = insertelement <2 x double> poison, double %103, i64 0
  %broadcast.splat165 = shufflevector <2 x double> %broadcast.splatinsert164, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body157

vector.body157:                                   ; preds = %vector.body157, %vector.ph151
  %index158 = phi i64 [ 0, %vector.ph151 ], [ %index.next166, %vector.body157 ]
  %gep177 = getelementptr double, ptr %invariant.gep176, i64 %index158
  %104 = getelementptr inbounds i8, ptr %gep177, i64 16
  %wide.load160 = load <2 x double>, ptr %gep177, align 8, !tbaa !13, !alias.scope !39
  %wide.load161 = load <2 x double>, ptr %104, align 8, !tbaa !13, !alias.scope !39
  %105 = getelementptr inbounds double, ptr %99, i64 %index158
  %106 = getelementptr inbounds i8, ptr %105, i64 16
  %wide.load162 = load <2 x double>, ptr %105, align 8, !tbaa !13, !alias.scope !41, !noalias !43
  %wide.load163 = load <2 x double>, ptr %106, align 8, !tbaa !13, !alias.scope !41, !noalias !43
  %107 = fneg <2 x double> %wide.load160
  %108 = fneg <2 x double> %wide.load161
  %109 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %107, <2 x double> %broadcast.splat165, <2 x double> %wide.load162)
  %110 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %108, <2 x double> %broadcast.splat165, <2 x double> %wide.load163)
  store <2 x double> %109, ptr %105, align 8, !tbaa !13, !alias.scope !41, !noalias !43
  store <2 x double> %110, ptr %106, align 8, !tbaa !13, !alias.scope !41, !noalias !43
  %index.next166 = add nuw i64 %index158, 4
  %111 = icmp eq i64 %index.next166, %n.vec153
  br i1 %111, label %middle.block148, label %vector.body157, !llvm.loop !44

middle.block148:                                  ; preds = %vector.body157
  br i1 %cmp.n167, label %.loopexit, label %scalar.ph149.preheader

scalar.ph149.preheader:                           ; preds = %middle.block148, %vector.memcheck135, %.lr.ph83
  %indvars.iv101.ph = phi i64 [ 0, %vector.memcheck135 ], [ 0, %.lr.ph83 ], [ %n.vec153, %middle.block148 ]
  %indvars.iv.ph = phi i64 [ %100, %vector.memcheck135 ], [ %100, %.lr.ph83 ], [ %ind.end155, %middle.block148 ]
  br i1 %lcmp.mod.not, label %scalar.ph149.prol.loopexit, label %scalar.ph149.prol

scalar.ph149.prol:                                ; preds = %scalar.ph149.preheader
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.ph, 1
  %112 = getelementptr inbounds double, ptr %96, i64 %indvars.iv.ph
  %113 = load double, ptr %112, align 8, !tbaa !13
  %114 = load double, ptr %98, align 8, !tbaa !13
  %115 = getelementptr inbounds double, ptr %99, i64 %indvars.iv101.ph
  %116 = load double, ptr %115, align 8, !tbaa !13
  %117 = fneg double %113
  %118 = tail call double @llvm.fmuladd.f64(double %117, double %114, double %116)
  store double %118, ptr %115, align 8, !tbaa !13
  %indvars.iv.next102.prol = or disjoint i64 %indvars.iv101.ph, 1
  br label %scalar.ph149.prol.loopexit

scalar.ph149.prol.loopexit:                       ; preds = %scalar.ph149.prol, %scalar.ph149.preheader
  %indvars.iv101.unr = phi i64 [ %indvars.iv101.ph, %scalar.ph149.preheader ], [ %indvars.iv.next102.prol, %scalar.ph149.prol ]
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph149.preheader ], [ %indvars.iv.next.prol, %scalar.ph149.prol ]
  %119 = icmp eq i64 %indvars.iv101.ph, %26
  br i1 %119, label %.loopexit, label %scalar.ph149.preheader.new

scalar.ph149.preheader.new:                       ; preds = %scalar.ph149.prol.loopexit
  %invariant.gep178 = getelementptr i8, ptr %96, i64 8
  %invariant.gep180 = getelementptr i8, ptr %99, i64 8
  br label %scalar.ph149

scalar.ph149:                                     ; preds = %scalar.ph149, %scalar.ph149.preheader.new
  %indvars.iv101 = phi i64 [ %indvars.iv101.unr, %scalar.ph149.preheader.new ], [ %indvars.iv.next102.1, %scalar.ph149 ]
  %indvars.iv = phi i64 [ %indvars.iv.unr, %scalar.ph149.preheader.new ], [ %indvars.iv.next.1, %scalar.ph149 ]
  %120 = getelementptr inbounds double, ptr %96, i64 %indvars.iv
  %121 = load double, ptr %120, align 8, !tbaa !13
  %122 = load double, ptr %98, align 8, !tbaa !13
  %123 = getelementptr inbounds double, ptr %99, i64 %indvars.iv101
  %124 = load double, ptr %123, align 8, !tbaa !13
  %125 = fneg double %121
  %126 = tail call double @llvm.fmuladd.f64(double %125, double %122, double %124)
  store double %126, ptr %123, align 8, !tbaa !13
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, 2
  %gep179 = getelementptr double, ptr %invariant.gep178, i64 %indvars.iv
  %127 = load double, ptr %gep179, align 8, !tbaa !13
  %128 = load double, ptr %98, align 8, !tbaa !13
  %gep181 = getelementptr double, ptr %invariant.gep180, i64 %indvars.iv101
  %129 = load double, ptr %gep181, align 8, !tbaa !13
  %130 = fneg double %127
  %131 = tail call double @llvm.fmuladd.f64(double %130, double %128, double %129)
  store double %131, ptr %gep181, align 8, !tbaa !13
  %indvars.iv.next102.1 = add nuw nsw i64 %indvars.iv101, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next102.1, %wide.trip.count
  br i1 %exitcond.not.1, label %.loopexit, label %scalar.ph149, !llvm.loop !45

.loopexit:                                        ; preds = %scalar.ph149.prol.loopexit, %scalar.ph149, %scalar.ph.prol.loopexit, %scalar.ph, %middle.block148, %middle.block, %93, %36, %84
  %132 = sext i32 %32 to i64
  %133 = getelementptr inbounds i32, ptr %23, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !19
  %135 = and i32 %134, 8
  %.not77 = icmp eq i32 %135, 0
  br i1 %.not77, label %141, label %136

136:                                              ; preds = %.loopexit
  %137 = load ptr, ptr %18, align 8, !tbaa !21
  %138 = getelementptr inbounds double, ptr %137, i64 %indvars.iv111
  %139 = load double, ptr %138, align 8, !tbaa !13
  %140 = tail call double @llvm.fmuladd.f64(double %139, double %139, double %.088)
  br label %141

141:                                              ; preds = %.loopexit, %136
  %.1 = phi double [ %140, %136 ], [ %.088, %.loopexit ]
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond115.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count114
  br i1 %exitcond115.not, label %._crit_edge91, label %28, !llvm.loop !46

._crit_edge91:                                    ; preds = %141, %._crit_edge
  %.0.lcssa = phi double [ 0.000000e+00, %._crit_edge ], [ %.1, %141 ]
  %142 = getelementptr inbounds i8, ptr %0, i64 208
  %143 = load ptr, ptr %142, align 8, !tbaa !47
  %144 = getelementptr inbounds i8, ptr %143, i64 72
  %145 = load double, ptr %144, align 8, !tbaa !48
  %146 = fmul double %.0.lcssa, %145
  store double %146, ptr %9, align 8, !tbaa !14
  br i1 %4, label %.lr.ph96, label %._crit_edge97

.lr.ph96:                                         ; preds = %._crit_edge91
  %147 = getelementptr inbounds i8, ptr %0, i64 120
  %148 = load ptr, ptr %147, align 8, !tbaa !12
  %wide.trip.count119 = zext nneg i32 %3 to i64
  %xtraiter171 = and i64 %wide.trip.count119, 3
  %149 = icmp ult i32 %3, 4
  br i1 %149, label %._crit_edge97.loopexit.unr-lcssa, label %.lr.ph96.new

.lr.ph96.new:                                     ; preds = %.lr.ph96
  %unroll_iter = and i64 %wide.trip.count119, 2147483644
  br label %150

150:                                              ; preds = %150, %.lr.ph96.new
  %indvars.iv116 = phi i64 [ 0, %.lr.ph96.new ], [ %indvars.iv.next117.3, %150 ]
  %.294 = phi double [ %146, %.lr.ph96.new ], [ %162, %150 ]
  %niter = phi i64 [ 0, %.lr.ph96.new ], [ %niter.next.3, %150 ]
  %151 = getelementptr inbounds double, ptr %148, i64 %indvars.iv116
  %152 = load double, ptr %151, align 8, !tbaa !13
  %153 = tail call double @llvm.fmuladd.f64(double %152, double %152, double %.294)
  %indvars.iv.next117 = or disjoint i64 %indvars.iv116, 1
  %154 = getelementptr inbounds double, ptr %148, i64 %indvars.iv.next117
  %155 = load double, ptr %154, align 8, !tbaa !13
  %156 = tail call double @llvm.fmuladd.f64(double %155, double %155, double %153)
  %indvars.iv.next117.1 = or disjoint i64 %indvars.iv116, 2
  %157 = getelementptr inbounds double, ptr %148, i64 %indvars.iv.next117.1
  %158 = load double, ptr %157, align 8, !tbaa !13
  %159 = tail call double @llvm.fmuladd.f64(double %158, double %158, double %156)
  %indvars.iv.next117.2 = or disjoint i64 %indvars.iv116, 3
  %160 = getelementptr inbounds double, ptr %148, i64 %indvars.iv.next117.2
  %161 = load double, ptr %160, align 8, !tbaa !13
  %162 = tail call double @llvm.fmuladd.f64(double %161, double %161, double %159)
  %indvars.iv.next117.3 = add nuw nsw i64 %indvars.iv116, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge97.loopexit.unr-lcssa, label %150, !llvm.loop !50

._crit_edge97.loopexit.unr-lcssa:                 ; preds = %150, %.lr.ph96
  %.lcssa.ph = phi double [ poison, %.lr.ph96 ], [ %162, %150 ]
  %indvars.iv116.unr = phi i64 [ 0, %.lr.ph96 ], [ %indvars.iv.next117.3, %150 ]
  %.294.unr = phi double [ %146, %.lr.ph96 ], [ %162, %150 ]
  %lcmp.mod172.not = icmp eq i64 %xtraiter171, 0
  br i1 %lcmp.mod172.not, label %._crit_edge97, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge97.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv116.epil = phi i64 [ %indvars.iv.next117.epil, %.epil.preheader ], [ %indvars.iv116.unr, %._crit_edge97.loopexit.unr-lcssa ]
  %.294.epil = phi double [ %165, %.epil.preheader ], [ %.294.unr, %._crit_edge97.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge97.loopexit.unr-lcssa ]
  %163 = getelementptr inbounds double, ptr %148, i64 %indvars.iv116.epil
  %164 = load double, ptr %163, align 8, !tbaa !13
  %165 = tail call double @llvm.fmuladd.f64(double %164, double %164, double %.294.epil)
  %indvars.iv.next117.epil = add nuw nsw i64 %indvars.iv116.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter171
  br i1 %epil.iter.cmp.not, label %._crit_edge97, label %.epil.preheader, !llvm.loop !51

._crit_edge97:                                    ; preds = %._crit_edge97.loopexit.unr-lcssa, %.epil.preheader, %._crit_edge91
  %.2.lcssa = phi double [ %146, %._crit_edge91 ], [ %.lcssa.ph, %._crit_edge97.loopexit.unr-lcssa ], [ %165, %.epil.preheader ]
  %166 = getelementptr inbounds i8, ptr %0, i64 128
  store double %.2.lcssa, ptr %166, align 8, !tbaa !53
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #3

attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) 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 speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !10, i64 8}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !11, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !10, i64 168, !7, i64 176, !10, i64 184, !10, i64 188, !10, i64 192, !11, i64 200, !7, i64 208, !7, i64 216, !10, i64 224, !7, i64 232}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 120}
!13 = !{!11, !11, i64 0}
!14 = !{!6, !11, i64 200}
!15 = !{!6, !10, i64 184}
!16 = !{!6, !7, i64 176}
!17 = !{!6, !10, i64 16}
!18 = !{!6, !7, i64 64}
!19 = !{!10, !10, i64 0}
!20 = !{!6, !7, i64 48}
!21 = !{!6, !7, i64 112}
!22 = !{!23}
!23 = distinct !{!23, !24}
!24 = distinct !{!24, !"LVerDomain"}
!25 = !{!26}
!26 = distinct !{!26, !24}
!27 = !{!28}
!28 = distinct !{!28, !24}
!29 = !{!26, !23}
!30 = distinct !{!30, !31, !32, !33}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!"llvm.loop.isvectorized", i32 1}
!33 = !{!"llvm.loop.unroll.runtime.disable"}
!34 = distinct !{!34, !31, !32}
!35 = !{!6, !7, i64 24}
!36 = !{!37}
!37 = distinct !{!37, !38}
!38 = distinct !{!38, !"LVerDomain"}
!39 = !{!40}
!40 = distinct !{!40, !38}
!41 = !{!42}
!42 = distinct !{!42, !38}
!43 = !{!40, !37}
!44 = distinct !{!44, !31, !32, !33}
!45 = distinct !{!45, !31, !32}
!46 = distinct !{!46, !31}
!47 = !{!6, !7, i64 208}
!48 = !{!49, !11, i64 72}
!49 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !10, i64 40, !10, i64 44, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88}
!50 = distinct !{!50, !31}
!51 = distinct !{!51, !52}
!52 = !{!"llvm.loop.unroll.disable"}
!53 = !{!6, !11, i64 128}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass