; LLVM IR from Tencent-RoboticsX/jbdl :: src/jbdl/experimental/qpoases/src (Matrices)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.qpOASES::Indexlist" = type <{ ptr, ptr, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.qpOASES::DenseMatrix" = type { ptr, i32, i32, i32, ptr, %"class.qpOASES::Matrix.base" }
%"class.qpOASES::Matrix.base" = type <{ ptr, i32 }>

; 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: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK7qpOASES11SymDenseMat8bilinearEPKNS_9IndexlistEiPKdiPdi(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) unnamed_addr #4 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca double, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  store i32 %6, ptr %14, align 4, !tbaa !9
  %25 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %48, %7
  %27 = load i32, ptr %15, align 4, !tbaa !9
  %28 = load i32, ptr %10, align 4, !tbaa !9
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %30, label %51

30:                                               ; preds = %26
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %44, %30
  %32 = load i32, ptr %16, align 4, !tbaa !9
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %35, label %47

35:                                               ; preds = %31
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = load i32, ptr %15, align 4, !tbaa !9
  %38 = load i32, ptr %14, align 4, !tbaa !9
  %39 = mul nsw i32 %37, %38
  %40 = load i32, ptr %16, align 4, !tbaa !9
  %41 = add nsw i32 %39, %40
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds double, ptr %36, i64 %42
  store double 0.000000e+00, ptr %43, align 8, !tbaa !11
  br label %44

44:                                               ; preds = %35
  %45 = load i32, ptr %16, align 4, !tbaa !9
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %16, align 4, !tbaa !9
  br label %31, !llvm.loop !13

47:                                               ; preds = %31
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %15, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %15, align 4, !tbaa !9
  br label %26, !llvm.loop !15

51:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.qpOASES::Indexlist", ptr %52, i32 0, i32 2
  %54 = load i32, ptr %53, align 8, !tbaa !16
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = mul nsw i32 %54, %55
  %57 = sext i32 %56 to i64
  %58 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %57, i64 8)
  %59 = extractvalue { i64, i1 } %58, 1
  %60 = extractvalue { i64, i1 } %58, 0
  %61 = select i1 %59, i64 -1, i64 %60
  %62 = call noalias noundef nonnull ptr @_Znam(i64 noundef %61) #6
  store ptr %62, ptr %23, align 8, !tbaa !5
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %76, %51
  %64 = load i32, ptr %19, align 4, !tbaa !9
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.qpOASES::Indexlist", ptr %65, i32 0, i32 2
  %67 = load i32, ptr %66, align 8, !tbaa !16
  %68 = load i32, ptr %10, align 4, !tbaa !9
  %69 = mul nsw i32 %67, %68
  %70 = icmp slt i32 %64, %69
  br i1 %70, label %71, label %79

71:                                               ; preds = %63
  %72 = load ptr, ptr %23, align 8, !tbaa !5
  %73 = load i32, ptr %19, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  store double 0.000000e+00, ptr %75, align 8, !tbaa !11
  br label %76

76:                                               ; preds = %71
  %77 = load i32, ptr %19, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %19, align 4, !tbaa !9
  br label %63, !llvm.loop !18

79:                                               ; preds = %63
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %159, %79
  %81 = load i32, ptr %20, align 4, !tbaa !9
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %"class.qpOASES::Indexlist", ptr %82, i32 0, i32 2
  %84 = load i32, ptr %83, align 8, !tbaa !16
  %85 = icmp slt i32 %81, %84
  br i1 %85, label %86, label %162

86:                                               ; preds = %80
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = getelementptr inbounds %"class.qpOASES::Indexlist", ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !19
  %90 = load i32, ptr %20, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %89, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = getelementptr inbounds %"class.qpOASES::DenseMatrix", ptr %25, i32 0, i32 3
  %95 = load i32, ptr %94, align 8, !tbaa !20
  %96 = mul nsw i32 %93, %95
  store i32 %96, ptr %22, align 4, !tbaa !9
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %155, %86
  %98 = load i32, ptr %19, align 4, !tbaa !9
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.qpOASES::Indexlist", ptr %99, i32 0, i32 2
  %101 = load i32, ptr %100, align 8, !tbaa !16
  %102 = icmp slt i32 %98, %101
  br i1 %102, label %103, label %158

103:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %104 = getelementptr inbounds %"class.qpOASES::DenseMatrix", ptr %25, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !22
  %106 = load i32, ptr %22, align 4, !tbaa !9
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.qpOASES::Indexlist", ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !19
  %110 = load i32, ptr %19, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i32, ptr %109, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = add nsw i32 %106, %113
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds double, ptr %105, i64 %115
  %117 = load double, ptr %116, align 8, !tbaa !11
  store double %117, ptr %24, align 8, !tbaa !11
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %151, %103
  %119 = load i32, ptr %21, align 4, !tbaa !9
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %122, label %154

122:                                              ; preds = %118
  %123 = load double, ptr %24, align 8, !tbaa !11
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = load i32, ptr %21, align 4, !tbaa !9
  %126 = load i32, ptr %12, align 4, !tbaa !9
  %127 = mul nsw i32 %125, %126
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %"class.qpOASES::Indexlist", ptr %128, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !19
  %131 = load i32, ptr %19, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds i32, ptr %130, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = add nsw i32 %127, %134
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %124, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !11
  %139 = load ptr, ptr %23, align 8, !tbaa !5
  %140 = load i32, ptr %20, align 4, !tbaa !9
  %141 = load i32, ptr %21, align 4, !tbaa !9
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = getelementptr inbounds %"class.qpOASES::Indexlist", ptr %142, i32 0, i32 2
  %144 = load i32, ptr %143, align 8, !tbaa !16
  %145 = mul nsw i32 %141, %144
  %146 = add nsw i32 %140, %145
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds double, ptr %139, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !11
  %150 = call double @llvm.fmuladd.f64(double %123, double %138, double %149)
  store double %150, ptr %148, align 8, !tbaa !11
  br label %151

151:                                              ; preds = %122
  %152 = load i32, ptr %21, align 4, !tbaa !9
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %21, align 4, !tbaa !9
  br label %118, !llvm.loop !23

154:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %19, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %19, align 4, !tbaa !9
  br label %97, !llvm.loop !24

158:                                              ; preds = %97
  br label %159

159:                                              ; preds = %158
  %160 = load i32, ptr %20, align 4, !tbaa !9
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %20, align 4, !tbaa !9
  br label %80, !llvm.loop !25

162:                                              ; preds = %80
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %163

163:                                              ; preds = %225, %162
  %164 = load i32, ptr %15, align 4, !tbaa !9
  %165 = load ptr, ptr %9, align 8, !tbaa !5
  %166 = getelementptr inbounds %"class.qpOASES::Indexlist", ptr %165, i32 0, i32 2
  %167 = load i32, ptr %166, align 8, !tbaa !16
  %168 = icmp slt i32 %164, %167
  br i1 %168, label %169, label %228

169:                                              ; preds = %163
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = getelementptr inbounds %"class.qpOASES::Indexlist", ptr %170, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8, !tbaa !19
  %173 = load i32, ptr %15, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds i32, ptr %172, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !9
  store i32 %176, ptr %18, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %177

177:                                              ; preds = %221, %169
  %178 = load i32, ptr %16, align 4, !tbaa !9
  %179 = load i32, ptr %10, align 4, !tbaa !9
  %180 = icmp slt i32 %178, %179
  br i1 %180, label %181, label %224

181:                                              ; preds = %177
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %217, %181
  %183 = load i32, ptr %17, align 4, !tbaa !9
  %184 = load i32, ptr %10, align 4, !tbaa !9
  %185 = icmp slt i32 %183, %184
  br i1 %185, label %186, label %220

186:                                              ; preds = %182
  %187 = load ptr, ptr %11, align 8, !tbaa !5
  %188 = load i32, ptr %18, align 4, !tbaa !9
  %189 = load i32, ptr %16, align 4, !tbaa !9
  %190 = load i32, ptr %12, align 4, !tbaa !9
  %191 = mul nsw i32 %189, %190
  %192 = add nsw i32 %188, %191
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds double, ptr %187, i64 %193
  %195 = load double, ptr %194, align 8, !tbaa !11
  %196 = load ptr, ptr %23, align 8, !tbaa !5
  %197 = load i32, ptr %15, align 4, !tbaa !9
  %198 = load i32, ptr %17, align 4, !tbaa !9
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = getelementptr inbounds %"class.qpOASES::Indexlist", ptr %199, i32 0, i32 2
  %201 = load i32, ptr %200, align 8, !tbaa !16
  %202 = mul nsw i32 %198, %201
  %203 = add nsw i32 %197, %202
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds double, ptr %196, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !11
  %207 = load ptr, ptr %13, align 8, !tbaa !5
  %208 = load i32, ptr %17, align 4, !tbaa !9
  %209 = load i32, ptr %16, align 4, !tbaa !9
  %210 = load i32, ptr %14, align 4, !tbaa !9
  %211 = mul nsw i32 %209, %210
  %212 = add nsw i32 %208, %211
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds double, ptr %207, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !11
  %216 = call double @llvm.fmuladd.f64(double %195, double %206, double %215)
  store double %216, ptr %214, align 8, !tbaa !11
  br label %217

217:                                              ; preds = %186
  %218 = load i32, ptr %17, align 4, !tbaa !9
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %17, align 4, !tbaa !9
  br label %182, !llvm.loop !26

220:                                              ; preds = %182
  br label %221

221:                                              ; preds = %220
  %222 = load i32, ptr %16, align 4, !tbaa !9
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %16, align 4, !tbaa !9
  br label %177, !llvm.loop !27

224:                                              ; preds = %177
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %15, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %15, align 4, !tbaa !9
  br label %163, !llvm.loop !28

228:                                              ; preds = %163
  %229 = load ptr, ptr %23, align 8, !tbaa !5
  %230 = icmp eq ptr %229, null
  br i1 %230, label %232, label %231

231:                                              ; preds = %228
  call void @_ZdaPv(ptr noundef %229) #7
  br label %232

232:                                              ; preds = %231, %228
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  ret i32 0
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !10, i64 16}
!17 = !{!"_ZTSN7qpOASES9IndexlistE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!18 = distinct !{!18, !14}
!19 = !{!17, !6, i64 0}
!20 = !{!21, !10, i64 16}
!21 = !{!"_ZTSN7qpOASES11DenseMatrixE", !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24}
!22 = !{!21, !6, i64 24}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK7qpOASES11SymDenseMat8bilinearEPKNS_9IndexlistEiPKdiPdi(ptr nocapture noundef nonnull readonly align 8 dereferenceable(40) %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4, ptr nocapture noundef %5, i32 noundef %6) unnamed_addr #3 align 2 {
  %8 = icmp sgt i32 %2, 0
  br i1 %8, label %.preheader77.us.preheader, label %._crit_edge80

.preheader77.us.preheader:                        ; preds = %7
  %9 = sext i32 %6 to i64
  %10 = shl nsw i64 %9, 3
  %11 = zext nneg i32 %2 to i64
  %12 = shl nuw nsw i64 %11, 3
  %xtraiter = and i64 %11, 7
  %13 = icmp ult i32 %2, 8
  br i1 %13, label %._crit_edge80.loopexit.unr-lcssa, label %.preheader77.us.preheader.new

.preheader77.us.preheader.new:                    ; preds = %.preheader77.us.preheader
  %unroll_iter = and i64 %11, 2147483640
  br label %.preheader77.us

.preheader77.us:                                  ; preds = %.preheader77.us, %.preheader77.us.preheader.new
  %indvar = phi i64 [ 0, %.preheader77.us.preheader.new ], [ %indvar.next.7, %.preheader77.us ]
  %niter = phi i64 [ 0, %.preheader77.us.preheader.new ], [ %niter.next.7, %.preheader77.us ]
  %14 = mul i64 %10, %indvar
  %scevgep = getelementptr i8, ptr %5, i64 %14
  tail call void @llvm.memset.p0.i64(ptr align 8 %scevgep, i8 0, i64 %12, i1 false), !tbaa !5
  %indvar.next = or disjoint i64 %indvar, 1
  %15 = mul i64 %10, %indvar.next
  %scevgep.1 = getelementptr i8, ptr %5, i64 %15
  tail call void @llvm.memset.p0.i64(ptr align 8 %scevgep.1, i8 0, i64 %12, i1 false), !tbaa !5
  %indvar.next.1 = or disjoint i64 %indvar, 2
  %16 = mul i64 %10, %indvar.next.1
  %scevgep.2 = getelementptr i8, ptr %5, i64 %16
  tail call void @llvm.memset.p0.i64(ptr align 8 %scevgep.2, i8 0, i64 %12, i1 false), !tbaa !5
  %indvar.next.2 = or disjoint i64 %indvar, 3
  %17 = mul i64 %10, %indvar.next.2
  %scevgep.3 = getelementptr i8, ptr %5, i64 %17
  tail call void @llvm.memset.p0.i64(ptr align 8 %scevgep.3, i8 0, i64 %12, i1 false), !tbaa !5
  %indvar.next.3 = or disjoint i64 %indvar, 4
  %18 = mul i64 %10, %indvar.next.3
  %scevgep.4 = getelementptr i8, ptr %5, i64 %18
  tail call void @llvm.memset.p0.i64(ptr align 8 %scevgep.4, i8 0, i64 %12, i1 false), !tbaa !5
  %indvar.next.4 = or disjoint i64 %indvar, 5
  %19 = mul i64 %10, %indvar.next.4
  %scevgep.5 = getelementptr i8, ptr %5, i64 %19
  tail call void @llvm.memset.p0.i64(ptr align 8 %scevgep.5, i8 0, i64 %12, i1 false), !tbaa !5
  %indvar.next.5 = or disjoint i64 %indvar, 6
  %20 = mul i64 %10, %indvar.next.5
  %scevgep.6 = getelementptr i8, ptr %5, i64 %20
  tail call void @llvm.memset.p0.i64(ptr align 8 %scevgep.6, i8 0, i64 %12, i1 false), !tbaa !5
  %indvar.next.6 = or disjoint i64 %indvar, 7
  %21 = mul i64 %10, %indvar.next.6
  %scevgep.7 = getelementptr i8, ptr %5, i64 %21
  tail call void @llvm.memset.p0.i64(ptr align 8 %scevgep.7, i8 0, i64 %12, i1 false), !tbaa !5
  %indvar.next.7 = add nuw nsw i64 %indvar, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge80.loopexit.unr-lcssa, label %.preheader77.us, !llvm.loop !9

._crit_edge80.loopexit.unr-lcssa:                 ; preds = %.preheader77.us, %.preheader77.us.preheader
  %indvar.unr = phi i64 [ 0, %.preheader77.us.preheader ], [ %indvar.next.7, %.preheader77.us ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge80, label %.preheader77.us.epil

.preheader77.us.epil:                             ; preds = %._crit_edge80.loopexit.unr-lcssa, %.preheader77.us.epil
  %indvar.epil = phi i64 [ %indvar.next.epil, %.preheader77.us.epil ], [ %indvar.unr, %._crit_edge80.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader77.us.epil ], [ 0, %._crit_edge80.loopexit.unr-lcssa ]
  %22 = mul i64 %10, %indvar.epil
  %scevgep.epil = getelementptr i8, ptr %5, i64 %22
  tail call void @llvm.memset.p0.i64(ptr align 8 %scevgep.epil, i8 0, i64 %12, i1 false), !tbaa !5
  %indvar.next.epil = add nuw nsw i64 %indvar.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge80, label %.preheader77.us.epil, !llvm.loop !11

._crit_edge80:                                    ; preds = %._crit_edge80.loopexit.unr-lcssa, %.preheader77.us.epil, %7
  %23 = getelementptr inbounds i8, ptr %1, i64 16
  %24 = load i32, ptr %23, align 8, !tbaa !13
  %25 = mul nsw i32 %24, %2
  %26 = sext i32 %25 to i64
  %27 = icmp slt i32 %25, 0
  %28 = shl nsw i64 %26, 3
  %29 = select i1 %27, i64 -1, i64 %28
  %30 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #6
  %31 = icmp sgt i32 %25, 0
  br i1 %31, label %.lr.ph.preheader, label %.preheader76

.lr.ph.preheader:                                 ; preds = %._crit_edge80
  %32 = zext nneg i32 %25 to i64
  %33 = shl nuw nsw i64 %32, 3
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %30, i8 0, i64 %33, i1 false), !tbaa !5
  br label %.preheader76

.preheader76:                                     ; preds = %.lr.ph.preheader, %._crit_edge80
  %34 = icmp sgt i32 %24, 0
  br i1 %34, label %.lr.ph91, label %._crit_edge

.lr.ph91:                                         ; preds = %.preheader76
  %35 = load ptr, ptr %1, align 8, !tbaa !17
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  %37 = load i32, ptr %36, align 8, !tbaa !18
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  %39 = load ptr, ptr %38, align 8
  br i1 %8, label %.lr.ph86.us.us.preheader, label %._crit_edge

.lr.ph86.us.us.preheader:                         ; preds = %.lr.ph91
  %40 = sext i32 %4 to i64
  %41 = zext nneg i32 %24 to i64
  %wide.trip.count118 = zext nneg i32 %24 to i64
  %wide.trip.count108 = zext nneg i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 4
  %ident.check = icmp ne i32 %24, 1
  %ident.check144 = icmp ne i32 %4, 1
  %42 = or i1 %ident.check, %ident.check144
  %n.vec = and i64 %wide.trip.count108, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count108
  %xtraiter173 = and i64 %wide.trip.count108, 1
  %lcmp.mod174.not = icmp eq i64 %xtraiter173, 0
  %43 = add nsw i64 %wide.trip.count108, -1
  br label %.lr.ph86.us.us

.lr.ph86.us.us:                                   ; preds = %.lr.ph86.us.us.preheader, %._crit_edge87.split.us.us.us
  %indvars.iv115 = phi i64 [ 0, %.lr.ph86.us.us.preheader ], [ %indvars.iv.next116, %._crit_edge87.split.us.us.us ]
  %44 = getelementptr inbounds i32, ptr %35, i64 %indvars.iv115
  %45 = load i32, ptr %44, align 4, !tbaa !20
  %46 = mul nsw i32 %37, %45
  %invariant.gep136 = getelementptr inbounds double, ptr %30, i64 %indvars.iv115
  br label %.lr.ph83.us.us.us

.lr.ph83.us.us.us:                                ; preds = %._crit_edge.us88.us.us, %.lr.ph86.us.us
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %._crit_edge.us88.us.us ], [ 0, %.lr.ph86.us.us ]
  %47 = getelementptr inbounds i32, ptr %35, i64 %indvars.iv110
  %48 = load i32, ptr %47, align 4, !tbaa !20
  %49 = add nsw i32 %48, %46
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds double, ptr %39, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !5
  %53 = sext i32 %48 to i64
  %invariant.gep = getelementptr double, ptr %3, i64 %53
  %brmerge = or i1 %min.iters.check, %42
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.ph

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %54 = getelementptr double, ptr %invariant.gep, i64 %index
  %55 = getelementptr i8, ptr %54, i64 16
  %wide.load = load <2 x double>, ptr %54, align 8, !tbaa !5
  %wide.load145 = load <2 x double>, ptr %55, align 8, !tbaa !5
  %56 = getelementptr inbounds double, ptr %invariant.gep136, i64 %index
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %wide.load146 = load <2 x double>, ptr %56, align 8, !tbaa !5
  %wide.load147 = load <2 x double>, ptr %57, align 8, !tbaa !5
  %58 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %wide.load146)
  %59 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load145, <2 x double> %wide.load147)
  store <2 x double> %58, ptr %56, align 8, !tbaa !5
  store <2 x double> %59, ptr %57, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %60 = icmp eq i64 %index.next, %n.vec
  br i1 %60, label %middle.block, label %vector.body, !llvm.loop !21

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

scalar.ph.preheader:                              ; preds = %.lr.ph83.us.us.us, %middle.block
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph83.us.us.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod174.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %61 = mul nsw i64 %indvars.iv.ph, %40
  %gep.prol = getelementptr double, ptr %invariant.gep, i64 %61
  %62 = load double, ptr %gep.prol, align 8, !tbaa !5
  %63 = mul nuw nsw i64 %indvars.iv.ph, %41
  %gep137.prol = getelementptr inbounds double, ptr %invariant.gep136, i64 %63
  %64 = load double, ptr %gep137.prol, align 8, !tbaa !5
  %65 = tail call double @llvm.fmuladd.f64(double %52, double %62, double %64)
  store double %65, ptr %gep137.prol, align 8, !tbaa !5
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

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 ]
  %66 = icmp eq i64 %indvars.iv.ph, %43
  br i1 %66, label %._crit_edge.us88.us.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %67 = mul nsw i64 %indvars.iv, %40
  %gep = getelementptr double, ptr %invariant.gep, i64 %67
  %68 = load double, ptr %gep, align 8, !tbaa !5
  %69 = mul nuw nsw i64 %indvars.iv, %41
  %gep137 = getelementptr inbounds double, ptr %invariant.gep136, i64 %69
  %70 = load double, ptr %gep137, align 8, !tbaa !5
  %71 = tail call double @llvm.fmuladd.f64(double %52, double %68, double %70)
  store double %71, ptr %gep137, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %72 = mul nsw i64 %indvars.iv.next, %40
  %gep.1 = getelementptr double, ptr %invariant.gep, i64 %72
  %73 = load double, ptr %gep.1, align 8, !tbaa !5
  %74 = mul nuw nsw i64 %indvars.iv.next, %41
  %gep137.1 = getelementptr inbounds double, ptr %invariant.gep136, i64 %74
  %75 = load double, ptr %gep137.1, align 8, !tbaa !5
  %76 = tail call double @llvm.fmuladd.f64(double %52, double %73, double %75)
  store double %76, ptr %gep137.1, align 8, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond109.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count108
  br i1 %exitcond109.not.1, label %._crit_edge.us88.us.us, label %scalar.ph, !llvm.loop !24

._crit_edge.us88.us.us:                           ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %exitcond114.not = icmp eq i64 %indvars.iv.next111, %wide.trip.count118
  br i1 %exitcond114.not, label %._crit_edge87.split.us.us.us, label %.lr.ph83.us.us.us, !llvm.loop !25

._crit_edge87.split.us.us.us:                     ; preds = %._crit_edge.us88.us.us
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %exitcond119.not = icmp eq i64 %indvars.iv.next116, %wide.trip.count118
  br i1 %exitcond119.not, label %.preheader75, label %.lr.ph86.us.us, !llvm.loop !26

.preheader75:                                     ; preds = %._crit_edge87.split.us.us.us
  br i1 %34, label %.lr.ph101, label %._crit_edge

.lr.ph101:                                        ; preds = %.preheader75
  %77 = load ptr, ptr %1, align 8, !tbaa !17
  br i1 %8, label %.preheader.lr.ph.us.preheader, label %._crit_edge

.preheader.lr.ph.us.preheader:                    ; preds = %.lr.ph101
  %78 = zext nneg i32 %24 to i64
  %79 = sext i32 %4 to i64
  %80 = sext i32 %6 to i64
  %wide.trip.count133 = zext nneg i32 %24 to i64
  %wide.trip.count128 = zext nneg i32 %2 to i64
  %81 = add nsw i64 %wide.trip.count108, -1
  %82 = mul nsw i64 %81, %80
  %83 = add i64 %82, %wide.trip.count108
  %84 = shl i64 %83, 3
  %scevgep150 = getelementptr i8, ptr %5, i64 %84
  %85 = mul nsw i64 %81, %40
  %86 = shl i64 %85, 3
  %87 = getelementptr i8, ptr %3, i64 %86
  %scevgep151 = getelementptr i8, ptr %87, i64 8
  %min.iters.check156 = icmp ugt i32 %2, 3
  %ident.check149.not = icmp eq i32 %24, 1
  %or.cond = and i1 %min.iters.check156, %ident.check149.not
  %88 = or i32 %6, %4
  %89 = icmp slt i32 %88, 0
  %n.vec159 = and i64 %wide.trip.count108, 2147483644
  %cmp.n172 = icmp eq i64 %n.vec159, %wide.trip.count108
  %xtraiter175 = and i64 %wide.trip.count108, 1
  %lcmp.mod176.not = icmp eq i64 %xtraiter175, 0
  %90 = add nsw i64 %wide.trip.count108, -1
  br label %.preheader.lr.ph.us

.preheader.lr.ph.us:                              ; preds = %.preheader.lr.ph.us.preheader, %._crit_edge98.split.us.us
  %indvars.iv130 = phi i64 [ 0, %.preheader.lr.ph.us.preheader ], [ %indvars.iv.next131, %._crit_edge98.split.us.us ]
  %91 = getelementptr inbounds i32, ptr %77, i64 %indvars.iv130
  %92 = load i32, ptr %91, align 4, !tbaa !20
  %93 = sext i32 %92 to i64
  %invariant.gep142 = getelementptr double, ptr %3, i64 %93
  %invariant.gep138 = getelementptr inbounds double, ptr %30, i64 %indvars.iv130
  %94 = shl nsw i64 %93, 3
  %scevgep152 = getelementptr i8, ptr %scevgep151, i64 %94
  %bound0 = icmp ugt ptr %scevgep152, %5
  %bound1 = icmp ult ptr %invariant.gep142, %scevgep150
  %found.conflict = and i1 %bound0, %bound1
  %95 = or i1 %found.conflict, %89
  br label %.preheader.us.us

.preheader.us.us:                                 ; preds = %._crit_edge.us99.us, %.preheader.lr.ph.us
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %._crit_edge.us99.us ], [ 0, %.preheader.lr.ph.us ]
  %96 = mul nsw i64 %indvars.iv125, %79
  %gep143 = getelementptr double, ptr %invariant.gep142, i64 %96
  %97 = mul nsw i64 %indvars.iv125, %80
  %invariant.gep140 = getelementptr double, ptr %5, i64 %97
  %or.cond.not = xor i1 %or.cond, true
  %brmerge177 = select i1 %or.cond.not, i1 true, i1 %95
  br i1 %brmerge177, label %scalar.ph155.preheader, label %vector.ph157

vector.ph157:                                     ; preds = %.preheader.us.us
  %98 = load double, ptr %gep143, align 8, !tbaa !5, !alias.scope !27
  %broadcast.splatinsert169 = insertelement <2 x double> poison, double %98, i64 0
  %broadcast.splat170 = shufflevector <2 x double> %broadcast.splatinsert169, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body161

vector.body161:                                   ; preds = %vector.body161, %vector.ph157
  %index162 = phi i64 [ 0, %vector.ph157 ], [ %index.next171, %vector.body161 ]
  %99 = getelementptr inbounds double, ptr %invariant.gep138, i64 %index162
  %100 = getelementptr inbounds i8, ptr %99, i64 16
  %wide.load163 = load <2 x double>, ptr %99, align 8, !tbaa !5
  %wide.load164 = load <2 x double>, ptr %100, align 8, !tbaa !5
  %101 = getelementptr double, ptr %invariant.gep140, i64 %index162
  %102 = getelementptr i8, ptr %101, i64 16
  %wide.load165 = load <2 x double>, ptr %101, align 8, !tbaa !5, !alias.scope !30, !noalias !27
  %wide.load166 = load <2 x double>, ptr %102, align 8, !tbaa !5, !alias.scope !30, !noalias !27
  %103 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat170, <2 x double> %wide.load163, <2 x double> %wide.load165)
  %104 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat170, <2 x double> %wide.load164, <2 x double> %wide.load166)
  store <2 x double> %103, ptr %101, align 8, !tbaa !5, !alias.scope !30, !noalias !27
  store <2 x double> %104, ptr %102, align 8, !tbaa !5, !alias.scope !30, !noalias !27
  %index.next171 = add nuw i64 %index162, 4
  %105 = icmp eq i64 %index.next171, %n.vec159
  br i1 %105, label %middle.block154, label %vector.body161, !llvm.loop !32

middle.block154:                                  ; preds = %vector.body161
  br i1 %cmp.n172, label %._crit_edge.us99.us, label %scalar.ph155.preheader

scalar.ph155.preheader:                           ; preds = %.preheader.us.us, %middle.block154
  %indvars.iv120.ph = phi i64 [ 0, %.preheader.us.us ], [ %n.vec159, %middle.block154 ]
  br i1 %lcmp.mod176.not, label %scalar.ph155.prol.loopexit, label %scalar.ph155.prol

scalar.ph155.prol:                                ; preds = %scalar.ph155.preheader
  %106 = load double, ptr %gep143, align 8, !tbaa !5
  %107 = mul nuw nsw i64 %indvars.iv120.ph, %78
  %gep139.prol = getelementptr inbounds double, ptr %invariant.gep138, i64 %107
  %108 = load double, ptr %gep139.prol, align 8, !tbaa !5
  %gep141.prol = getelementptr double, ptr %invariant.gep140, i64 %indvars.iv120.ph
  %109 = load double, ptr %gep141.prol, align 8, !tbaa !5
  %110 = tail call double @llvm.fmuladd.f64(double %106, double %108, double %109)
  store double %110, ptr %gep141.prol, align 8, !tbaa !5
  %indvars.iv.next121.prol = or disjoint i64 %indvars.iv120.ph, 1
  br label %scalar.ph155.prol.loopexit

scalar.ph155.prol.loopexit:                       ; preds = %scalar.ph155.prol, %scalar.ph155.preheader
  %indvars.iv120.unr = phi i64 [ %indvars.iv120.ph, %scalar.ph155.preheader ], [ %indvars.iv.next121.prol, %scalar.ph155.prol ]
  %111 = icmp eq i64 %indvars.iv120.ph, %90
  br i1 %111, label %._crit_edge.us99.us, label %scalar.ph155

scalar.ph155:                                     ; preds = %scalar.ph155.prol.loopexit, %scalar.ph155
  %indvars.iv120 = phi i64 [ %indvars.iv.next121.1, %scalar.ph155 ], [ %indvars.iv120.unr, %scalar.ph155.prol.loopexit ]
  %112 = load double, ptr %gep143, align 8, !tbaa !5
  %113 = mul nuw nsw i64 %indvars.iv120, %78
  %gep139 = getelementptr inbounds double, ptr %invariant.gep138, i64 %113
  %114 = load double, ptr %gep139, align 8, !tbaa !5
  %gep141 = getelementptr double, ptr %invariant.gep140, i64 %indvars.iv120
  %115 = load double, ptr %gep141, align 8, !tbaa !5
  %116 = tail call double @llvm.fmuladd.f64(double %112, double %114, double %115)
  store double %116, ptr %gep141, align 8, !tbaa !5
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %117 = load double, ptr %gep143, align 8, !tbaa !5
  %118 = mul nuw nsw i64 %indvars.iv.next121, %78
  %gep139.1 = getelementptr inbounds double, ptr %invariant.gep138, i64 %118
  %119 = load double, ptr %gep139.1, align 8, !tbaa !5
  %gep141.1 = getelementptr double, ptr %invariant.gep140, i64 %indvars.iv.next121
  %120 = load double, ptr %gep141.1, align 8, !tbaa !5
  %121 = tail call double @llvm.fmuladd.f64(double %117, double %119, double %120)
  store double %121, ptr %gep141.1, align 8, !tbaa !5
  %indvars.iv.next121.1 = add nuw nsw i64 %indvars.iv120, 2
  %exitcond124.not.1 = icmp eq i64 %indvars.iv.next121.1, %wide.trip.count128
  br i1 %exitcond124.not.1, label %._crit_edge.us99.us, label %scalar.ph155, !llvm.loop !33

._crit_edge.us99.us:                              ; preds = %scalar.ph155.prol.loopexit, %scalar.ph155, %middle.block154
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %exitcond129.not = icmp eq i64 %indvars.iv.next126, %wide.trip.count128
  br i1 %exitcond129.not, label %._crit_edge98.split.us.us, label %.preheader.us.us, !llvm.loop !34

._crit_edge98.split.us.us:                        ; preds = %._crit_edge.us99.us
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %exitcond134.not = icmp eq i64 %indvars.iv.next131, %wide.trip.count133
  br i1 %exitcond134.not, label %._crit_edge, label %.preheader.lr.ph.us, !llvm.loop !35

._crit_edge:                                      ; preds = %._crit_edge98.split.us.us, %.lr.ph91, %.preheader76, %.lr.ph101, %.preheader75
  tail call void @_ZdaPv(ptr noundef nonnull %30) #7
  ret i32 0
}

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

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

attributes #0 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = !{!14, !16, i64 16}
!14 = !{!"_ZTSN7qpOASES9IndexlistE", !15, i64 0, !15, i64 8, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !16, i64 32}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!14, !15, i64 0}
!18 = !{!19, !16, i64 16}
!19 = !{!"_ZTSN7qpOASES11DenseMatrixE", !16, i64 8, !16, i64 12, !16, i64 16, !15, i64 24}
!20 = !{!16, !16, i64 0}
!21 = distinct !{!21, !10, !22, !23}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = distinct !{!24, !10, !22}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = !{!28}
!28 = distinct !{!28, !29}
!29 = distinct !{!29, !"LVerDomain"}
!30 = !{!31}
!31 = distinct !{!31, !29}
!32 = distinct !{!32, !10, !22, !23}
!33 = distinct !{!33, !10, !22}
!34 = distinct !{!34, !10}
!35 = distinct !{!35, !10}


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