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

; 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.DAQPResult = type { ptr, ptr, double, double, i32, i32, i32, double, double }
%struct.DAQPSettings = type { double, double, double, double, double, i32, i32, double, double, double, double, double, double }
%struct.DAQPProblem = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.DAQPBnB = type { ptr, i32, i32, ptr, i32, ptr, i32, i32, ptr, i32, i32 }

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

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

12:                                               ; preds = %6
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.DAQPWorkspace, ptr %13, i32 0, i32 12
  %15 = load ptr, ptr %14, align 8, !tbaa !14
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds double, ptr %15, i64 %17
  %19 = load double, ptr %18, align 8, !tbaa !15
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.DAQPResult, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !16
  %23 = load i32, ptr %5, align 4, !tbaa !9
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds double, ptr %22, i64 %24
  store double %19, ptr %25, align 8, !tbaa !15
  br label %26

26:                                               ; preds = %12
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %5, align 4, !tbaa !9
  br label %6, !llvm.loop !18

29:                                               ; preds = %6
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.DAQPResult, ptr %30, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !20
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %82

34:                                               ; preds = %29
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %48, %34
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.DAQPWorkspace, ptr %37, i32 0, i32 2
  %39 = load i32, ptr %38, align 4, !tbaa !21
  %40 = icmp slt i32 %36, %39
  br i1 %40, label %41, label %51

41:                                               ; preds = %35
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.DAQPResult, ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !20
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds double, ptr %44, i64 %46
  store double 0.000000e+00, ptr %47, align 8, !tbaa !15
  br label %48

48:                                               ; preds = %41
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %5, align 4, !tbaa !9
  br label %35, !llvm.loop !22

51:                                               ; preds = %35
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %78, %51
  %53 = load i32, ptr %5, align 4, !tbaa !9
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.DAQPWorkspace, ptr %54, i32 0, i32 24
  %56 = load i32, ptr %55, align 8, !tbaa !23
  %57 = icmp slt i32 %53, %56
  br i1 %57, label %58, label %81

58:                                               ; preds = %52
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.DAQPWorkspace, ptr %59, i32 0, i32 15
  %61 = load ptr, ptr %60, align 8, !tbaa !24
  %62 = load i32, ptr %5, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %61, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !15
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.DAQPResult, ptr %66, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.DAQPWorkspace, ptr %69, i32 0, i32 23
  %71 = load ptr, ptr %70, align 8, !tbaa !25
  %72 = load i32, ptr %5, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr %71, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %68, i64 %76
  store double %65, ptr %77, align 8, !tbaa !15
  br label %78

78:                                               ; preds = %58
  %79 = load i32, ptr %5, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %5, align 4, !tbaa !9
  br label %52, !llvm.loop !26

81:                                               ; preds = %52
  br label %82

82:                                               ; preds = %81, %29
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.DAQPWorkspace, ptr %83, i32 0, i32 8
  %85 = load ptr, ptr %84, align 8, !tbaa !27
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %187

87:                                               ; preds = %82
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.DAQPWorkspace, ptr %88, i32 0, i32 28
  %90 = load ptr, ptr %89, align 8, !tbaa !28
  %91 = getelementptr inbounds %struct.DAQPSettings, ptr %90, i32 0, i32 8
  %92 = load double, ptr %91, align 8, !tbaa !29
  %93 = fcmp oeq double %92, 0.000000e+00
  br i1 %93, label %104, label %94

94:                                               ; preds = %87
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.DAQPWorkspace, ptr %95, i32 0, i32 7
  %97 = load ptr, ptr %96, align 8, !tbaa !31
  %98 = icmp ne ptr %97, null
  br i1 %98, label %104, label %99

99:                                               ; preds = %94
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.DAQPWorkspace, ptr %100, i32 0, i32 11
  %102 = load ptr, ptr %101, align 8, !tbaa !32
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %187

104:                                              ; preds = %99, %94, %87
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.DAQPWorkspace, ptr %105, i32 0, i32 17
  %107 = load double, ptr %106, align 8, !tbaa !33
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.DAQPResult, ptr %108, i32 0, i32 2
  store double %107, ptr %109, align 8, !tbaa !34
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %136, %104
  %111 = load i32, ptr %5, align 4, !tbaa !9
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.DAQPWorkspace, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %113, align 8, !tbaa !11
  %115 = icmp slt i32 %111, %114
  br i1 %115, label %116, label %139

116:                                              ; preds = %110
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.DAQPWorkspace, ptr %117, i32 0, i32 8
  %119 = load ptr, ptr %118, align 8, !tbaa !27
  %120 = load i32, ptr %5, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %119, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !15
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.DAQPWorkspace, ptr %124, i32 0, i32 8
  %126 = load ptr, ptr %125, align 8, !tbaa !27
  %127 = load i32, ptr %5, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %126, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !15
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.DAQPResult, ptr %131, i32 0, i32 2
  %133 = load double, ptr %132, align 8, !tbaa !34
  %134 = fneg double %123
  %135 = call double @llvm.fmuladd.f64(double %134, double %130, double %133)
  store double %135, ptr %132, align 8, !tbaa !34
  br label %136

136:                                              ; preds = %116
  %137 = load i32, ptr %5, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %5, align 4, !tbaa !9
  br label %110, !llvm.loop !35

139:                                              ; preds = %110
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.DAQPResult, ptr %140, i32 0, i32 2
  %142 = load double, ptr %141, align 8, !tbaa !34
  %143 = fmul double %142, 5.000000e-01
  store double %143, ptr %141, align 8, !tbaa !34
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.DAQPWorkspace, ptr %144, i32 0, i32 28
  %146 = load ptr, ptr %145, align 8, !tbaa !28
  %147 = getelementptr inbounds %struct.DAQPSettings, ptr %146, i32 0, i32 8
  %148 = load double, ptr %147, align 8, !tbaa !29
  %149 = fcmp une double %148, 0.000000e+00
  br i1 %149, label %150, label %186

150:                                              ; preds = %139
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %182, %150
  %152 = load i32, ptr %5, align 4, !tbaa !9
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.DAQPWorkspace, ptr %153, i32 0, i32 1
  %155 = load i32, ptr %154, align 8, !tbaa !11
  %156 = icmp slt i32 %152, %155
  br i1 %156, label %157, label %185

157:                                              ; preds = %151
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.DAQPWorkspace, ptr %158, i32 0, i32 28
  %160 = load ptr, ptr %159, align 8, !tbaa !28
  %161 = getelementptr inbounds %struct.DAQPSettings, ptr %160, i32 0, i32 8
  %162 = load double, ptr %161, align 8, !tbaa !29
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.DAQPWorkspace, ptr %163, i32 0, i32 12
  %165 = load ptr, ptr %164, align 8, !tbaa !14
  %166 = load i32, ptr %5, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds double, ptr %165, i64 %167
  %169 = load double, ptr %168, align 8, !tbaa !15
  %170 = fmul double %162, %169
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.DAQPWorkspace, ptr %171, i32 0, i32 12
  %173 = load ptr, ptr %172, align 8, !tbaa !14
  %174 = load i32, ptr %5, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds double, ptr %173, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !15
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.DAQPResult, ptr %178, i32 0, i32 2
  %180 = load double, ptr %179, align 8, !tbaa !34
  %181 = call double @llvm.fmuladd.f64(double %170, double %177, double %180)
  store double %181, ptr %179, align 8, !tbaa !34
  br label %182

182:                                              ; preds = %157
  %183 = load i32, ptr %5, align 4, !tbaa !9
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %5, align 4, !tbaa !9
  br label %151, !llvm.loop !36

185:                                              ; preds = %151
  br label %186

186:                                              ; preds = %185, %139
  br label %234

187:                                              ; preds = %99, %82
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.DAQPWorkspace, ptr %188, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8, !tbaa !37
  %191 = icmp ne ptr %190, null
  br i1 %191, label %192, label %233

192:                                              ; preds = %187
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.DAQPWorkspace, ptr %193, i32 0, i32 0
  %195 = load ptr, ptr %194, align 8, !tbaa !37
  %196 = getelementptr inbounds %struct.DAQPProblem, ptr %195, i32 0, i32 4
  %197 = load ptr, ptr %196, align 8, !tbaa !38
  %198 = icmp ne ptr %197, null
  br i1 %198, label %199, label %233

199:                                              ; preds = %192
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.DAQPResult, ptr %200, i32 0, i32 2
  store double 0.000000e+00, ptr %201, align 8, !tbaa !34
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %202

202:                                              ; preds = %229, %199
  %203 = load i32, ptr %5, align 4, !tbaa !9
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.DAQPWorkspace, ptr %204, i32 0, i32 1
  %206 = load i32, ptr %205, align 8, !tbaa !11
  %207 = icmp slt i32 %203, %206
  br i1 %207, label %208, label %232

208:                                              ; preds = %202
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.DAQPWorkspace, ptr %209, i32 0, i32 0
  %211 = load ptr, ptr %210, align 8, !tbaa !37
  %212 = getelementptr inbounds %struct.DAQPProblem, ptr %211, i32 0, i32 4
  %213 = load ptr, ptr %212, align 8, !tbaa !38
  %214 = load i32, ptr %5, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds double, ptr %213, i64 %215
  %217 = load double, ptr %216, align 8, !tbaa !15
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.DAQPWorkspace, ptr %218, i32 0, i32 12
  %220 = load ptr, ptr %219, align 8, !tbaa !14
  %221 = load i32, ptr %5, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds double, ptr %220, i64 %222
  %224 = load double, ptr %223, align 8, !tbaa !15
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.DAQPResult, ptr %225, i32 0, i32 2
  %227 = load double, ptr %226, align 8, !tbaa !34
  %228 = call double @llvm.fmuladd.f64(double %217, double %224, double %227)
  store double %228, ptr %226, align 8, !tbaa !34
  br label %229

229:                                              ; preds = %208
  %230 = load i32, ptr %5, align 4, !tbaa !9
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %5, align 4, !tbaa !9
  br label %202, !llvm.loop !40

232:                                              ; preds = %202
  br label %233

233:                                              ; preds = %232, %192, %187
  br label %234

234:                                              ; preds = %233, %186
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.DAQPWorkspace, ptr %235, i32 0, i32 27
  %237 = load double, ptr %236, align 8, !tbaa !41
  %238 = load ptr, ptr %3, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.DAQPResult, ptr %238, i32 0, i32 3
  store double %237, ptr %239, align 8, !tbaa !42
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.DAQPWorkspace, ptr %240, i32 0, i32 25
  %242 = load i32, ptr %241, align 4, !tbaa !43
  %243 = load ptr, ptr %3, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.DAQPResult, ptr %243, i32 0, i32 5
  store i32 %242, ptr %244, align 4, !tbaa !44
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.DAQPWorkspace, ptr %245, i32 0, i32 29
  %247 = load ptr, ptr %246, align 8, !tbaa !45
  %248 = icmp eq ptr %247, null
  br i1 %248, label %249, label %250

249:                                              ; preds = %234
  br label %256

250:                                              ; preds = %234
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.DAQPWorkspace, ptr %251, i32 0, i32 29
  %253 = load ptr, ptr %252, align 8, !tbaa !45
  %254 = getelementptr inbounds %struct.DAQPBnB, ptr %253, i32 0, i32 9
  %255 = load i32, ptr %254, align 8, !tbaa !46
  br label %256

256:                                              ; preds = %250, %249
  %257 = phi i32 [ 1, %249 ], [ %255, %250 ]
  %258 = load ptr, ptr %3, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.DAQPResult, ptr %258, i32 0, i32 6
  store i32 %257, ptr %259, align 8, !tbaa !48
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12, !10, 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, !13, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !10, i64 168, !6, i64 176, !10, i64 184, !10, i64 188, !10, i64 192, !13, i64 200, !6, i64 208, !6, i64 216, !10, i64 224, !6, i64 232}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !6, i64 88}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !13, i64 48, !13, i64 56}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!17, !6, i64 8}
!21 = !{!12, !10, i64 12}
!22 = distinct !{!22, !19}
!23 = !{!12, !10, i64 184}
!24 = !{!12, !6, i64 112}
!25 = !{!12, !6, i64 176}
!26 = distinct !{!26, !19}
!27 = !{!12, !6, i64 56}
!28 = !{!12, !6, i64 208}
!29 = !{!30, !13, i64 56}
!30 = !{!"", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !10, i64 40, !10, i64 44, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88}
!31 = !{!12, !6, i64 48}
!32 = !{!12, !6, i64 80}
!33 = !{!12, !13, i64 128}
!34 = !{!17, !13, i64 16}
!35 = distinct !{!35, !19}
!36 = distinct !{!36, !19}
!37 = !{!12, !6, i64 0}
!38 = !{!39, !6, i64 24}
!39 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !10, i64 72}
!40 = distinct !{!40, !19}
!41 = !{!12, !13, i64 200}
!42 = !{!17, !13, i64 24}
!43 = !{!12, !10, i64 188}
!44 = !{!17, !10, i64 36}
!45 = !{!12, !6, i64 216}
!46 = !{!47, !10, i64 56}
!47 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !10, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !6, i64 48, !10, i64 56, !10, i64 60}
!48 = !{!17, !10, i64 40}


; 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 @daqp_extract_result(ptr nocapture noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %1, i64 8
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %6 = getelementptr inbounds i8, ptr %1, i64 88
  %7 = load ptr, ptr %6, align 8, !tbaa !12
  %8 = load ptr, ptr %0, align 8, !tbaa !13
  %wide.trip.count = zext nneg i32 %4 to i64
  %min.iters.check = icmp ult i32 %4, 6
  %9 = ptrtoint ptr %8 to i64
  %10 = ptrtoint ptr %7 to i64
  %11 = sub i64 %9, %10
  %diff.check = icmp ult i64 %11, 32
  %or.cond121 = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond121, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %12 = getelementptr inbounds double, ptr %7, i64 %index
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %wide.load = load <2 x double>, ptr %12, align 8, !tbaa !15
  %wide.load118 = load <2 x double>, ptr %13, align 8, !tbaa !15
  %14 = getelementptr inbounds double, ptr %8, i64 %index
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  store <2 x double> %wide.load, ptr %14, align 8, !tbaa !15
  store <2 x double> %wide.load118, ptr %15, align 8, !tbaa !15
  %index.next = add nuw i64 %index, 4
  %16 = icmp eq i64 %index.next, %n.vec
  br i1 %16, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %17 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.prol
  %18 = load double, ptr %17, align 8, !tbaa !15
  %19 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.prol
  store double %18, ptr %19, align 8, !tbaa !15
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !20

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %20 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %21 = icmp ugt i64 %20, -4
  br i1 %21, label %._crit_edge, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %22 = getelementptr inbounds double, ptr %7, i64 %indvars.iv
  %23 = load double, ptr %22, align 8, !tbaa !15
  %24 = getelementptr inbounds double, ptr %8, i64 %indvars.iv
  store double %23, ptr %24, align 8, !tbaa !15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %25 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next
  %26 = load double, ptr %25, align 8, !tbaa !15
  %27 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next
  store double %26, ptr %27, align 8, !tbaa !15
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %28 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next.1
  %29 = load double, ptr %28, align 8, !tbaa !15
  %30 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next.1
  store double %29, ptr %30, align 8, !tbaa !15
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %31 = getelementptr inbounds double, ptr %7, i64 %indvars.iv.next.2
  %32 = load double, ptr %31, align 8, !tbaa !15
  %33 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next.2
  store double %32, ptr %33, align 8, !tbaa !15
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge, label %scalar.ph, !llvm.loop !22

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %2
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  %35 = load ptr, ptr %34, align 8, !tbaa !23
  %.not = icmp eq ptr %35, null
  br i1 %.not, label %.loopexit72, label %.preheader73

.preheader73:                                     ; preds = %._crit_edge
  %36 = getelementptr inbounds i8, ptr %1, i64 12
  %37 = load i32, ptr %36, align 4, !tbaa !24
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %.lr.ph76.preheader, label %.preheader71

.lr.ph76.preheader:                               ; preds = %.preheader73
  %39 = zext nneg i32 %37 to i64
  %40 = shl nuw nsw i64 %39, 3
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %35, i8 0, i64 %40, i1 false), !tbaa !15
  br label %.preheader71

.preheader71:                                     ; preds = %.lr.ph76.preheader, %.preheader73
  %41 = getelementptr inbounds i8, ptr %1, i64 184
  %42 = load i32, ptr %41, align 8, !tbaa !25
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.lr.ph78, label %.loopexit72

.lr.ph78:                                         ; preds = %.preheader71
  %44 = getelementptr inbounds i8, ptr %1, i64 112
  %45 = load ptr, ptr %44, align 8, !tbaa !26
  %46 = getelementptr inbounds i8, ptr %1, i64 176
  %47 = load ptr, ptr %46, align 8, !tbaa !27
  %wide.trip.count98 = zext nneg i32 %42 to i64
  %xtraiter123 = and i64 %wide.trip.count98, 3
  %48 = icmp ult i32 %42, 4
  br i1 %48, label %.loopexit72.loopexit.unr-lcssa, label %.lr.ph78.new

.lr.ph78.new:                                     ; preds = %.lr.ph78
  %unroll_iter = and i64 %wide.trip.count98, 2147483644
  br label %49

49:                                               ; preds = %49, %.lr.ph78.new
  %indvars.iv95 = phi i64 [ 0, %.lr.ph78.new ], [ %indvars.iv.next96.3, %49 ]
  %niter = phi i64 [ 0, %.lr.ph78.new ], [ %niter.next.3, %49 ]
  %50 = getelementptr inbounds double, ptr %45, i64 %indvars.iv95
  %51 = load double, ptr %50, align 8, !tbaa !15
  %52 = getelementptr inbounds i32, ptr %47, i64 %indvars.iv95
  %53 = load i32, ptr %52, align 4, !tbaa !28
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds double, ptr %35, i64 %54
  store double %51, ptr %55, align 8, !tbaa !15
  %indvars.iv.next96 = or disjoint i64 %indvars.iv95, 1
  %56 = getelementptr inbounds double, ptr %45, i64 %indvars.iv.next96
  %57 = load double, ptr %56, align 8, !tbaa !15
  %58 = getelementptr inbounds i32, ptr %47, i64 %indvars.iv.next96
  %59 = load i32, ptr %58, align 4, !tbaa !28
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %35, i64 %60
  store double %57, ptr %61, align 8, !tbaa !15
  %indvars.iv.next96.1 = or disjoint i64 %indvars.iv95, 2
  %62 = getelementptr inbounds double, ptr %45, i64 %indvars.iv.next96.1
  %63 = load double, ptr %62, align 8, !tbaa !15
  %64 = getelementptr inbounds i32, ptr %47, i64 %indvars.iv.next96.1
  %65 = load i32, ptr %64, align 4, !tbaa !28
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds double, ptr %35, i64 %66
  store double %63, ptr %67, align 8, !tbaa !15
  %indvars.iv.next96.2 = or disjoint i64 %indvars.iv95, 3
  %68 = getelementptr inbounds double, ptr %45, i64 %indvars.iv.next96.2
  %69 = load double, ptr %68, align 8, !tbaa !15
  %70 = getelementptr inbounds i32, ptr %47, i64 %indvars.iv.next96.2
  %71 = load i32, ptr %70, align 4, !tbaa !28
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %35, i64 %72
  store double %69, ptr %73, align 8, !tbaa !15
  %indvars.iv.next96.3 = add nuw nsw i64 %indvars.iv95, 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 %.loopexit72.loopexit.unr-lcssa, label %49, !llvm.loop !29

.loopexit72.loopexit.unr-lcssa:                   ; preds = %49, %.lr.ph78
  %indvars.iv95.unr = phi i64 [ 0, %.lr.ph78 ], [ %indvars.iv.next96.3, %49 ]
  %lcmp.mod124.not = icmp eq i64 %xtraiter123, 0
  br i1 %lcmp.mod124.not, label %.loopexit72, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit72.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv95.epil = phi i64 [ %indvars.iv.next96.epil, %.epil.preheader ], [ %indvars.iv95.unr, %.loopexit72.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit72.loopexit.unr-lcssa ]
  %74 = getelementptr inbounds double, ptr %45, i64 %indvars.iv95.epil
  %75 = load double, ptr %74, align 8, !tbaa !15
  %76 = getelementptr inbounds i32, ptr %47, i64 %indvars.iv95.epil
  %77 = load i32, ptr %76, align 4, !tbaa !28
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds double, ptr %35, i64 %78
  store double %75, ptr %79, align 8, !tbaa !15
  %indvars.iv.next96.epil = add nuw nsw i64 %indvars.iv95.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter123
  br i1 %epil.iter.cmp.not, label %.loopexit72, label %.epil.preheader, !llvm.loop !30

.loopexit72:                                      ; preds = %.loopexit72.loopexit.unr-lcssa, %.epil.preheader, %.preheader71, %._crit_edge
  %80 = getelementptr inbounds i8, ptr %1, i64 56
  %81 = load ptr, ptr %80, align 8, !tbaa !31
  %.not65 = icmp eq ptr %81, null
  br i1 %.not65, label %146, label %82

82:                                               ; preds = %.loopexit72
  %83 = getelementptr inbounds i8, ptr %1, i64 208
  %84 = load ptr, ptr %83, align 8, !tbaa !32
  %85 = getelementptr inbounds i8, ptr %84, i64 56
  %86 = load double, ptr %85, align 8, !tbaa !33
  %87 = fcmp oeq double %86, 0.000000e+00
  br i1 %87, label %94, label %88

88:                                               ; preds = %82
  %89 = getelementptr inbounds i8, ptr %1, i64 48
  %90 = load ptr, ptr %89, align 8, !tbaa !35
  %.not66 = icmp eq ptr %90, null
  br i1 %.not66, label %91, label %94

91:                                               ; preds = %88
  %92 = getelementptr inbounds i8, ptr %1, i64 80
  %93 = load ptr, ptr %92, align 8, !tbaa !36
  %.not67 = icmp eq ptr %93, null
  br i1 %.not67, label %146, label %94

94:                                               ; preds = %91, %88, %82
  %95 = getelementptr inbounds i8, ptr %1, i64 128
  %96 = load double, ptr %95, align 8, !tbaa !37
  %97 = getelementptr inbounds i8, ptr %0, i64 16
  store double %96, ptr %97, align 8, !tbaa !38
  br i1 %5, label %.lr.ph81, label %._crit_edge82.thread

._crit_edge82.thread:                             ; preds = %94
  %98 = fmul double %96, 5.000000e-01
  store double %98, ptr %97, align 8, !tbaa !38
  br label %.loopexit

.lr.ph81:                                         ; preds = %94
  %wide.trip.count103 = zext nneg i32 %4 to i64
  %xtraiter126 = and i64 %wide.trip.count103, 3
  %99 = icmp ult i32 %4, 4
  br i1 %99, label %._crit_edge82.unr-lcssa, label %.lr.ph81.new

.lr.ph81.new:                                     ; preds = %.lr.ph81
  %unroll_iter130 = and i64 %wide.trip.count103, 2147483644
  br label %100

100:                                              ; preds = %100, %.lr.ph81.new
  %indvars.iv100 = phi i64 [ 0, %.lr.ph81.new ], [ %indvars.iv.next101.3, %100 ]
  %101 = phi double [ %96, %.lr.ph81.new ], [ %117, %100 ]
  %niter131 = phi i64 [ 0, %.lr.ph81.new ], [ %niter131.next.3, %100 ]
  %102 = getelementptr inbounds double, ptr %81, i64 %indvars.iv100
  %103 = load double, ptr %102, align 8, !tbaa !15
  %104 = fneg double %103
  %105 = tail call double @llvm.fmuladd.f64(double %104, double %103, double %101)
  store double %105, ptr %97, align 8, !tbaa !38
  %indvars.iv.next101 = or disjoint i64 %indvars.iv100, 1
  %106 = getelementptr inbounds double, ptr %81, i64 %indvars.iv.next101
  %107 = load double, ptr %106, align 8, !tbaa !15
  %108 = fneg double %107
  %109 = tail call double @llvm.fmuladd.f64(double %108, double %107, double %105)
  store double %109, ptr %97, align 8, !tbaa !38
  %indvars.iv.next101.1 = or disjoint i64 %indvars.iv100, 2
  %110 = getelementptr inbounds double, ptr %81, i64 %indvars.iv.next101.1
  %111 = load double, ptr %110, align 8, !tbaa !15
  %112 = fneg double %111
  %113 = tail call double @llvm.fmuladd.f64(double %112, double %111, double %109)
  store double %113, ptr %97, align 8, !tbaa !38
  %indvars.iv.next101.2 = or disjoint i64 %indvars.iv100, 3
  %114 = getelementptr inbounds double, ptr %81, i64 %indvars.iv.next101.2
  %115 = load double, ptr %114, align 8, !tbaa !15
  %116 = fneg double %115
  %117 = tail call double @llvm.fmuladd.f64(double %116, double %115, double %113)
  store double %117, ptr %97, align 8, !tbaa !38
  %indvars.iv.next101.3 = add nuw nsw i64 %indvars.iv100, 4
  %niter131.next.3 = add i64 %niter131, 4
  %niter131.ncmp.3 = icmp eq i64 %niter131.next.3, %unroll_iter130
  br i1 %niter131.ncmp.3, label %._crit_edge82.unr-lcssa, label %100, !llvm.loop !39

._crit_edge82.unr-lcssa:                          ; preds = %100, %.lr.ph81
  %.lcssa.ph = phi double [ poison, %.lr.ph81 ], [ %117, %100 ]
  %indvars.iv100.unr = phi i64 [ 0, %.lr.ph81 ], [ %indvars.iv.next101.3, %100 ]
  %.unr = phi double [ %96, %.lr.ph81 ], [ %117, %100 ]
  %lcmp.mod128.not = icmp eq i64 %xtraiter126, 0
  br i1 %lcmp.mod128.not, label %._crit_edge82, label %.epil.preheader125

.epil.preheader125:                               ; preds = %._crit_edge82.unr-lcssa, %.epil.preheader125
  %indvars.iv100.epil = phi i64 [ %indvars.iv.next101.epil, %.epil.preheader125 ], [ %indvars.iv100.unr, %._crit_edge82.unr-lcssa ]
  %118 = phi double [ %122, %.epil.preheader125 ], [ %.unr, %._crit_edge82.unr-lcssa ]
  %epil.iter127 = phi i64 [ %epil.iter127.next, %.epil.preheader125 ], [ 0, %._crit_edge82.unr-lcssa ]
  %119 = getelementptr inbounds double, ptr %81, i64 %indvars.iv100.epil
  %120 = load double, ptr %119, align 8, !tbaa !15
  %121 = fneg double %120
  %122 = tail call double @llvm.fmuladd.f64(double %121, double %120, double %118)
  store double %122, ptr %97, align 8, !tbaa !38
  %indvars.iv.next101.epil = add nuw nsw i64 %indvars.iv100.epil, 1
  %epil.iter127.next = add i64 %epil.iter127, 1
  %epil.iter127.cmp.not = icmp eq i64 %epil.iter127.next, %xtraiter126
  br i1 %epil.iter127.cmp.not, label %._crit_edge82, label %.epil.preheader125, !llvm.loop !40

._crit_edge82:                                    ; preds = %.epil.preheader125, %._crit_edge82.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge82.unr-lcssa ], [ %122, %.epil.preheader125 ]
  %123 = fmul double %.lcssa, 5.000000e-01
  store double %123, ptr %97, align 8, !tbaa !38
  %124 = fcmp une double %86, 0.000000e+00
  %or.cond = and i1 %124, %5
  br i1 %or.cond, label %.lr.ph84, label %.loopexit

.lr.ph84:                                         ; preds = %._crit_edge82
  %125 = getelementptr inbounds i8, ptr %1, i64 88
  %126 = load ptr, ptr %125, align 8, !tbaa !12
  %xtraiter133 = and i64 %wide.trip.count103, 3
  %127 = icmp ult i32 %4, 4
  br i1 %127, label %.loopexit.loopexit122.unr-lcssa, label %.lr.ph84.new

.lr.ph84.new:                                     ; preds = %.lr.ph84
  %unroll_iter137 = and i64 %wide.trip.count103, 2147483644
  br label %128

128:                                              ; preds = %128, %.lr.ph84.new
  %indvars.iv105 = phi i64 [ 0, %.lr.ph84.new ], [ %indvars.iv.next106.3, %128 ]
  %129 = phi double [ %123, %.lr.ph84.new ], [ %145, %128 ]
  %niter138 = phi i64 [ 0, %.lr.ph84.new ], [ %niter138.next.3, %128 ]
  %130 = getelementptr inbounds double, ptr %126, i64 %indvars.iv105
  %131 = load double, ptr %130, align 8, !tbaa !15
  %132 = fmul double %86, %131
  %133 = tail call double @llvm.fmuladd.f64(double %132, double %131, double %129)
  store double %133, ptr %97, align 8, !tbaa !38
  %indvars.iv.next106 = or disjoint i64 %indvars.iv105, 1
  %134 = getelementptr inbounds double, ptr %126, i64 %indvars.iv.next106
  %135 = load double, ptr %134, align 8, !tbaa !15
  %136 = fmul double %86, %135
  %137 = tail call double @llvm.fmuladd.f64(double %136, double %135, double %133)
  store double %137, ptr %97, align 8, !tbaa !38
  %indvars.iv.next106.1 = or disjoint i64 %indvars.iv105, 2
  %138 = getelementptr inbounds double, ptr %126, i64 %indvars.iv.next106.1
  %139 = load double, ptr %138, align 8, !tbaa !15
  %140 = fmul double %86, %139
  %141 = tail call double @llvm.fmuladd.f64(double %140, double %139, double %137)
  store double %141, ptr %97, align 8, !tbaa !38
  %indvars.iv.next106.2 = or disjoint i64 %indvars.iv105, 3
  %142 = getelementptr inbounds double, ptr %126, i64 %indvars.iv.next106.2
  %143 = load double, ptr %142, align 8, !tbaa !15
  %144 = fmul double %86, %143
  %145 = tail call double @llvm.fmuladd.f64(double %144, double %143, double %141)
  store double %145, ptr %97, align 8, !tbaa !38
  %indvars.iv.next106.3 = add nuw nsw i64 %indvars.iv105, 4
  %niter138.next.3 = add i64 %niter138, 4
  %niter138.ncmp.3 = icmp eq i64 %niter138.next.3, %unroll_iter137
  br i1 %niter138.ncmp.3, label %.loopexit.loopexit122.unr-lcssa, label %128, !llvm.loop !41

146:                                              ; preds = %91, %.loopexit72
  %147 = load ptr, ptr %1, align 8, !tbaa !42
  %.not68 = icmp eq ptr %147, null
  br i1 %.not68, label %.loopexit, label %148

148:                                              ; preds = %146
  %149 = getelementptr inbounds i8, ptr %147, i64 24
  %150 = load ptr, ptr %149, align 8, !tbaa !43
  %.not69 = icmp eq ptr %150, null
  br i1 %.not69, label %.loopexit, label %151

151:                                              ; preds = %148
  %152 = getelementptr inbounds i8, ptr %0, i64 16
  store double 0.000000e+00, ptr %152, align 8, !tbaa !38
  br i1 %5, label %.lr.ph88, label %.loopexit

.lr.ph88:                                         ; preds = %151
  %153 = getelementptr inbounds i8, ptr %1, i64 88
  %154 = load ptr, ptr %153, align 8, !tbaa !12
  %wide.trip.count113 = zext nneg i32 %4 to i64
  %xtraiter140 = and i64 %wide.trip.count113, 3
  %155 = icmp ult i32 %4, 4
  br i1 %155, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph88.new

.lr.ph88.new:                                     ; preds = %.lr.ph88
  %unroll_iter144 = and i64 %wide.trip.count113, 2147483644
  br label %156

156:                                              ; preds = %156, %.lr.ph88.new
  %indvars.iv110 = phi i64 [ 0, %.lr.ph88.new ], [ %indvars.iv.next111.3, %156 ]
  %157 = phi double [ 0.000000e+00, %.lr.ph88.new ], [ %177, %156 ]
  %niter145 = phi i64 [ 0, %.lr.ph88.new ], [ %niter145.next.3, %156 ]
  %158 = getelementptr inbounds double, ptr %150, i64 %indvars.iv110
  %159 = load double, ptr %158, align 8, !tbaa !15
  %160 = getelementptr inbounds double, ptr %154, i64 %indvars.iv110
  %161 = load double, ptr %160, align 8, !tbaa !15
  %162 = tail call double @llvm.fmuladd.f64(double %159, double %161, double %157)
  store double %162, ptr %152, align 8, !tbaa !38
  %indvars.iv.next111 = or disjoint i64 %indvars.iv110, 1
  %163 = getelementptr inbounds double, ptr %150, i64 %indvars.iv.next111
  %164 = load double, ptr %163, align 8, !tbaa !15
  %165 = getelementptr inbounds double, ptr %154, i64 %indvars.iv.next111
  %166 = load double, ptr %165, align 8, !tbaa !15
  %167 = tail call double @llvm.fmuladd.f64(double %164, double %166, double %162)
  store double %167, ptr %152, align 8, !tbaa !38
  %indvars.iv.next111.1 = or disjoint i64 %indvars.iv110, 2
  %168 = getelementptr inbounds double, ptr %150, i64 %indvars.iv.next111.1
  %169 = load double, ptr %168, align 8, !tbaa !15
  %170 = getelementptr inbounds double, ptr %154, i64 %indvars.iv.next111.1
  %171 = load double, ptr %170, align 8, !tbaa !15
  %172 = tail call double @llvm.fmuladd.f64(double %169, double %171, double %167)
  store double %172, ptr %152, align 8, !tbaa !38
  %indvars.iv.next111.2 = or disjoint i64 %indvars.iv110, 3
  %173 = getelementptr inbounds double, ptr %150, i64 %indvars.iv.next111.2
  %174 = load double, ptr %173, align 8, !tbaa !15
  %175 = getelementptr inbounds double, ptr %154, i64 %indvars.iv.next111.2
  %176 = load double, ptr %175, align 8, !tbaa !15
  %177 = tail call double @llvm.fmuladd.f64(double %174, double %176, double %172)
  store double %177, ptr %152, align 8, !tbaa !38
  %indvars.iv.next111.3 = add nuw nsw i64 %indvars.iv110, 4
  %niter145.next.3 = add i64 %niter145, 4
  %niter145.ncmp.3 = icmp eq i64 %niter145.next.3, %unroll_iter144
  br i1 %niter145.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %156, !llvm.loop !45

.loopexit.loopexit.unr-lcssa:                     ; preds = %156, %.lr.ph88
  %indvars.iv110.unr = phi i64 [ 0, %.lr.ph88 ], [ %indvars.iv.next111.3, %156 ]
  %.unr142 = phi double [ 0.000000e+00, %.lr.ph88 ], [ %177, %156 ]
  %lcmp.mod143.not = icmp eq i64 %xtraiter140, 0
  br i1 %lcmp.mod143.not, label %.loopexit, label %.epil.preheader139

.epil.preheader139:                               ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader139
  %indvars.iv110.epil = phi i64 [ %indvars.iv.next111.epil, %.epil.preheader139 ], [ %indvars.iv110.unr, %.loopexit.loopexit.unr-lcssa ]
  %178 = phi double [ %183, %.epil.preheader139 ], [ %.unr142, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter141 = phi i64 [ %epil.iter141.next, %.epil.preheader139 ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %179 = getelementptr inbounds double, ptr %150, i64 %indvars.iv110.epil
  %180 = load double, ptr %179, align 8, !tbaa !15
  %181 = getelementptr inbounds double, ptr %154, i64 %indvars.iv110.epil
  %182 = load double, ptr %181, align 8, !tbaa !15
  %183 = tail call double @llvm.fmuladd.f64(double %180, double %182, double %178)
  store double %183, ptr %152, align 8, !tbaa !38
  %indvars.iv.next111.epil = add nuw nsw i64 %indvars.iv110.epil, 1
  %epil.iter141.next = add i64 %epil.iter141, 1
  %epil.iter141.cmp.not = icmp eq i64 %epil.iter141.next, %xtraiter140
  br i1 %epil.iter141.cmp.not, label %.loopexit, label %.epil.preheader139, !llvm.loop !46

.loopexit.loopexit122.unr-lcssa:                  ; preds = %128, %.lr.ph84
  %indvars.iv105.unr = phi i64 [ 0, %.lr.ph84 ], [ %indvars.iv.next106.3, %128 ]
  %.unr135 = phi double [ %123, %.lr.ph84 ], [ %145, %128 ]
  %lcmp.mod136.not = icmp eq i64 %xtraiter133, 0
  br i1 %lcmp.mod136.not, label %.loopexit, label %.epil.preheader132

.epil.preheader132:                               ; preds = %.loopexit.loopexit122.unr-lcssa, %.epil.preheader132
  %indvars.iv105.epil = phi i64 [ %indvars.iv.next106.epil, %.epil.preheader132 ], [ %indvars.iv105.unr, %.loopexit.loopexit122.unr-lcssa ]
  %184 = phi double [ %188, %.epil.preheader132 ], [ %.unr135, %.loopexit.loopexit122.unr-lcssa ]
  %epil.iter134 = phi i64 [ %epil.iter134.next, %.epil.preheader132 ], [ 0, %.loopexit.loopexit122.unr-lcssa ]
  %185 = getelementptr inbounds double, ptr %126, i64 %indvars.iv105.epil
  %186 = load double, ptr %185, align 8, !tbaa !15
  %187 = fmul double %86, %186
  %188 = tail call double @llvm.fmuladd.f64(double %187, double %186, double %184)
  store double %188, ptr %97, align 8, !tbaa !38
  %indvars.iv.next106.epil = add nuw nsw i64 %indvars.iv105.epil, 1
  %epil.iter134.next = add i64 %epil.iter134, 1
  %epil.iter134.cmp.not = icmp eq i64 %epil.iter134.next, %xtraiter133
  br i1 %epil.iter134.cmp.not, label %.loopexit, label %.epil.preheader132, !llvm.loop !47

.loopexit:                                        ; preds = %.loopexit.loopexit122.unr-lcssa, %.epil.preheader132, %.loopexit.loopexit.unr-lcssa, %.epil.preheader139, %._crit_edge82.thread, %151, %146, %148, %._crit_edge82
  %189 = getelementptr inbounds i8, ptr %1, i64 200
  %190 = load double, ptr %189, align 8, !tbaa !48
  %191 = getelementptr inbounds i8, ptr %0, i64 24
  store double %190, ptr %191, align 8, !tbaa !49
  %192 = getelementptr inbounds i8, ptr %1, i64 188
  %193 = load i32, ptr %192, align 4, !tbaa !50
  %194 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 %193, ptr %194, align 4, !tbaa !51
  %195 = getelementptr inbounds i8, ptr %1, i64 216
  %196 = load ptr, ptr %195, align 8, !tbaa !52
  %197 = icmp eq ptr %196, null
  br i1 %197, label %201, label %198

198:                                              ; preds = %.loopexit
  %199 = getelementptr inbounds i8, ptr %196, i64 56
  %200 = load i32, ptr %199, align 8, !tbaa !53
  br label %201

201:                                              ; preds = %.loopexit, %198
  %202 = phi i32 [ %200, %198 ], [ 1, %.loopexit ]
  %203 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 %202, ptr %203, align 8, !tbaa !55
  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

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) }

!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 88}
!13 = !{!14, !7, i64 0}
!14 = !{!"", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !11, i64 48, !11, i64 56}
!15 = !{!11, !11, i64 0}
!16 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !17, !18}
!23 = !{!14, !7, i64 8}
!24 = !{!6, !10, i64 12}
!25 = !{!6, !10, i64 184}
!26 = !{!6, !7, i64 112}
!27 = !{!6, !7, i64 176}
!28 = !{!10, !10, i64 0}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !21}
!31 = !{!6, !7, i64 56}
!32 = !{!6, !7, i64 208}
!33 = !{!34, !11, i64 56}
!34 = !{!"", !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}
!35 = !{!6, !7, i64 48}
!36 = !{!6, !7, i64 80}
!37 = !{!6, !11, i64 128}
!38 = !{!14, !11, i64 16}
!39 = distinct !{!39, !17}
!40 = distinct !{!40, !21}
!41 = distinct !{!41, !17}
!42 = !{!6, !7, i64 0}
!43 = !{!44, !7, i64 24}
!44 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !10, i64 72}
!45 = distinct !{!45, !17}
!46 = distinct !{!46, !21}
!47 = distinct !{!47, !21}
!48 = !{!6, !11, i64 200}
!49 = !{!14, !11, i64 24}
!50 = !{!6, !10, i64 188}
!51 = !{!14, !10, i64 36}
!52 = !{!6, !7, i64 216}
!53 = !{!54, !10, i64 56}
!54 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !7, i64 48, !10, i64 56, !10, i64 60}
!55 = !{!14, !10, i64 40}


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