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

; 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::QProblemB" = type { ptr, i32, ptr, ptr, ptr, ptr, %"class.qpOASES::Bounds", ptr, i32, ptr, ptr, double, i32, i32, i32, i32, double, i32, ptr, double, double, i32, [4 x i8], %"class.qpOASES::Options", %"class.qpOASES::Flipper", %"struct.qpOASES::TabularOutput" }
%"class.qpOASES::Bounds" = type { %"class.qpOASES::SubjectTo", %"class.qpOASES::Indexlist", %"class.qpOASES::Indexlist" }
%"class.qpOASES::SubjectTo" = type { ptr, i32, ptr, ptr, i32, i32 }
%"class.qpOASES::Indexlist" = type <{ ptr, ptr, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.qpOASES::Options" = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, i32, [4 x i8], double, i32, [4 x i8], double, i32, [4 x i8], double, double, double, double, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.qpOASES::Flipper" = type { i32, i32, %"class.qpOASES::Bounds", %"class.qpOASES::Constraints", ptr, ptr, ptr }
%"class.qpOASES::Constraints" = type { %"class.qpOASES::SubjectTo", %"class.qpOASES::Indexlist", %"class.qpOASES::Indexlist" }
%"struct.qpOASES::TabularOutput" = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.qpOASES::QProblem" = type { %"class.qpOASES::QProblemB", i32, ptr, ptr, ptr, %"class.qpOASES::Constraints", ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; 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: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES8QProblem24setupAuxiliaryQPsolutionEPKdS2_(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef %1, ptr noundef %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %12 = call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %11)
  store i32 %12, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %13 = call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %11)
  store i32 %13, ptr %10, align 4, !tbaa !9
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %85

16:                                               ; preds = %3
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %11, i32 0, i32 9
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = icmp ne ptr %17, %19
  br i1 %20, label %21, label %41

21:                                               ; preds = %16
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %37, %21
  %23 = load i32, ptr %7, align 4, !tbaa !9
  %24 = load i32, ptr %9, align 4, !tbaa !9
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %26, label %40

26:                                               ; preds = %22
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds double, ptr %27, i64 %29
  %31 = load double, ptr %30, align 8, !tbaa !26
  %32 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %11, i32 0, i32 9
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds double, ptr %33, i64 %35
  store double %31, ptr %36, align 8, !tbaa !26
  br label %37

37:                                               ; preds = %26
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %7, align 4, !tbaa !9
  br label %22, !llvm.loop !27

40:                                               ; preds = %22
  br label %41

41:                                               ; preds = %40, %16
  %42 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %11, i32 0, i32 2
  %43 = load ptr, ptr %42, align 8, !tbaa !29
  %44 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %11, i32 0, i32 9
  %45 = load ptr, ptr %44, align 8, !tbaa !11
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %11, i32 0, i32 9
  %48 = load ptr, ptr %47, align 8, !tbaa !31
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = load ptr, ptr %43, align 8, !tbaa !32
  %51 = getelementptr inbounds ptr, ptr %50, i64 15
  %52 = load ptr, ptr %51, align 8
  %53 = call noundef i32 %52(ptr noundef nonnull align 8 dereferenceable(12) %43, i32 noundef 1, double noundef 1.000000e+00, ptr noundef %45, i32 noundef %46, double noundef 0.000000e+00, ptr noundef %48, i32 noundef %49)
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %81, %41
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %58, label %84

58:                                               ; preds = %54
  %59 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %11, i32 0, i32 9
  %60 = load ptr, ptr %59, align 8, !tbaa !31
  %61 = load i32, ptr %8, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds double, ptr %60, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !26
  %65 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %11, i32 0, i32 10
  %66 = load ptr, ptr %65, align 8, !tbaa !34
  %67 = load i32, ptr %8, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds double, ptr %66, i64 %68
  store double %64, ptr %69, align 8, !tbaa !26
  %70 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %11, i32 0, i32 9
  %71 = load ptr, ptr %70, align 8, !tbaa !31
  %72 = load i32, ptr %8, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %71, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !26
  %76 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %11, i32 0, i32 11
  %77 = load ptr, ptr %76, align 8, !tbaa !35
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds double, ptr %77, i64 %79
  store double %75, ptr %80, align 8, !tbaa !26
  br label %81

81:                                               ; preds = %58
  %82 = load i32, ptr %8, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %8, align 4, !tbaa !9
  br label %54, !llvm.loop !36

84:                                               ; preds = %54
  br label %124

85:                                               ; preds = %3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %96, %85
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = load i32, ptr %9, align 4, !tbaa !9
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %90, label %99

90:                                               ; preds = %86
  %91 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %11, i32 0, i32 9
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds double, ptr %92, i64 %94
  store double 0.000000e+00, ptr %95, align 8, !tbaa !26
  br label %96

96:                                               ; preds = %90
  %97 = load i32, ptr %7, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %7, align 4, !tbaa !9
  br label %86, !llvm.loop !37

99:                                               ; preds = %86
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %120, %99
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = load i32, ptr %10, align 4, !tbaa !9
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %104, label %123

104:                                              ; preds = %100
  %105 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %11, i32 0, i32 9
  %106 = load ptr, ptr %105, align 8, !tbaa !31
  %107 = load i32, ptr %8, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %106, i64 %108
  store double 0.000000e+00, ptr %109, align 8, !tbaa !26
  %110 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %11, i32 0, i32 10
  %111 = load ptr, ptr %110, align 8, !tbaa !34
  %112 = load i32, ptr %8, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds double, ptr %111, i64 %113
  store double 0.000000e+00, ptr %114, align 8, !tbaa !26
  %115 = getelementptr inbounds %"class.qpOASES::QProblem", ptr %11, i32 0, i32 11
  %116 = load ptr, ptr %115, align 8, !tbaa !35
  %117 = load i32, ptr %8, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %116, i64 %118
  store double 0.000000e+00, ptr %119, align 8, !tbaa !26
  br label %120

120:                                              ; preds = %104
  %121 = load i32, ptr %8, align 4, !tbaa !9
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %8, align 4, !tbaa !9
  br label %100, !llvm.loop !38

123:                                              ; preds = %100
  br label %124

124:                                              ; preds = %123, %84
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %155

127:                                              ; preds = %124
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %11, i32 0, i32 10
  %130 = load ptr, ptr %129, align 8, !tbaa !39
  %131 = icmp ne ptr %128, %130
  br i1 %131, label %132, label %154

132:                                              ; preds = %127
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %150, %132
  %134 = load i32, ptr %7, align 4, !tbaa !9
  %135 = load i32, ptr %9, align 4, !tbaa !9
  %136 = load i32, ptr %10, align 4, !tbaa !9
  %137 = add nsw i32 %135, %136
  %138 = icmp slt i32 %134, %137
  br i1 %138, label %139, label %153

139:                                              ; preds = %133
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = load i32, ptr %7, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds double, ptr %140, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !26
  %145 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %11, i32 0, i32 10
  %146 = load ptr, ptr %145, align 8, !tbaa !39
  %147 = load i32, ptr %7, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds double, ptr %146, i64 %148
  store double %144, ptr %149, align 8, !tbaa !26
  br label %150

150:                                              ; preds = %139
  %151 = load i32, ptr %7, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %7, align 4, !tbaa !9
  br label %133, !llvm.loop !40

153:                                              ; preds = %133
  br label %154

154:                                              ; preds = %153, %127
  br label %172

155:                                              ; preds = %124
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %156

156:                                              ; preds = %168, %155
  %157 = load i32, ptr %7, align 4, !tbaa !9
  %158 = load i32, ptr %9, align 4, !tbaa !9
  %159 = load i32, ptr %10, align 4, !tbaa !9
  %160 = add nsw i32 %158, %159
  %161 = icmp slt i32 %157, %160
  br i1 %161, label %162, label %171

162:                                              ; preds = %156
  %163 = getelementptr inbounds %"class.qpOASES::QProblemB", ptr %11, i32 0, i32 10
  %164 = load ptr, ptr %163, align 8, !tbaa !39
  %165 = load i32, ptr %7, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %164, i64 %166
  store double 0.000000e+00, ptr %167, align 8, !tbaa !26
  br label %168

168:                                              ; preds = %162
  %169 = load i32, ptr %7, align 4, !tbaa !9
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %7, align 4, !tbaa !9
  br label %156, !llvm.loop !41

171:                                              ; preds = %156
  br label %172

172:                                              ; preds = %171, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret i32 0
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 184}
!12 = !{!"_ZTSN7qpOASES9QProblemBE", !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !14, i64 48, !6, i64 168, !13, i64 176, !6, i64 184, !6, i64 192, !17, i64 200, !18, i64 208, !13, i64 212, !13, i64 216, !19, i64 220, !17, i64 224, !10, i64 232, !6, i64 240, !17, i64 248, !17, i64 256, !10, i64 264, !20, i64 272, !23, i64 496, !25, i64 768}
!13 = !{!"_ZTSN7qpOASES11BooleanTypeE", !7, i64 0}
!14 = !{!"_ZTSN7qpOASES6BoundsE", !15, i64 0, !16, i64 40, !16, i64 80}
!15 = !{!"_ZTSN7qpOASES9SubjectToE", !10, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !13, i64 36}
!16 = !{!"_ZTSN7qpOASES9IndexlistE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!17 = !{!"double", !7, i64 0}
!18 = !{!"_ZTSN7qpOASES14QProblemStatusE", !7, i64 0}
!19 = !{!"_ZTSN7qpOASES11HessianTypeE", !7, i64 0}
!20 = !{!"_ZTSN7qpOASES7OptionsE", !21, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !10, i64 28, !10, i64 32, !13, i64 36, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !17, i64 88, !17, i64 96, !17, i64 104, !17, i64 112, !17, i64 120, !22, i64 128, !17, i64 136, !10, i64 144, !17, i64 152, !10, i64 160, !17, i64 168, !17, i64 176, !17, i64 184, !17, i64 192, !13, i64 200, !13, i64 204, !10, i64 208, !10, i64 212, !10, i64 216}
!21 = !{!"_ZTSN7qpOASES10PrintLevelE", !7, i64 0}
!22 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !7, i64 0}
!23 = !{!"_ZTSN7qpOASES7FlipperE", !10, i64 0, !10, i64 4, !14, i64 8, !24, i64 128, !6, i64 248, !6, i64 256, !6, i64 264}
!24 = !{!"_ZTSN7qpOASES11ConstraintsE", !15, i64 0, !16, i64 40, !16, i64 80}
!25 = !{!"_ZTSN7qpOASES13TabularOutputE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!26 = !{!17, !17, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!30, !6, i64 808}
!30 = !{!"_ZTSN7qpOASES8QProblemE", !12, i64 0, !13, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !24, i64 832, !6, i64 952, !6, i64 960, !10, i64 968, !6, i64 976, !6, i64 984, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !6, i64 1040, !6, i64 1048, !6, i64 1056}
!31 = !{!30, !6, i64 976}
!32 = !{!33, !33, i64 0}
!33 = !{!"vtable pointer", !8, i64 0}
!34 = !{!30, !6, i64 984}
!35 = !{!30, !6, i64 992}
!36 = distinct !{!36, !28}
!37 = distinct !{!37, !28}
!38 = distinct !{!38, !28}
!39 = !{!12, !6, i64 192}
!40 = distinct !{!40, !28}
!41 = distinct !{!41, !28}


; 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: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7qpOASES8QProblem24setupAuxiliaryQPsolutionEPKdS2_(ptr noundef nonnull align 8 dereferenceable(1064) %0, ptr noundef readonly %1, ptr noundef readonly %2) local_unnamed_addr #1 align 2 {
  %4 = ptrtoint ptr %2 to i64
  %5 = ptrtoint ptr %1 to i64
  %6 = tail call noundef i32 @_ZNK7qpOASES9QProblemB5getNVEv(ptr noundef nonnull align 8 dereferenceable(800) %0)
  %7 = tail call noundef i32 @_ZNK7qpOASES8QProblem5getNCEv(ptr noundef nonnull align 8 dereferenceable(1064) %0)
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.preheader52, label %13

.preheader52:                                     ; preds = %3
  %8 = icmp sgt i32 %6, 0
  br i1 %8, label %.lr.ph60, label %.preheader50

.lr.ph60:                                         ; preds = %.preheader52
  %9 = getelementptr inbounds i8, ptr %0, i64 184
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = zext nneg i32 %6 to i64
  %12 = shl nuw nsw i64 %11, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 %12, i1 false), !tbaa !24
  br label %.preheader50

13:                                               ; preds = %3
  %14 = getelementptr inbounds i8, ptr %0, i64 184
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %.not45 = icmp ne ptr %15, %1
  %16 = icmp sgt i32 %6, 0
  %or.cond = and i1 %.not45, %16
  br i1 %or.cond, label %.lr.ph.preheader, label %.loopexit55

.lr.ph.preheader:                                 ; preds = %13
  %17 = ptrtoint ptr %15 to i64
  %wide.trip.count = zext nneg i32 %6 to i64
  %min.iters.check = icmp ult i32 %6, 6
  %18 = sub i64 %17, %5
  %diff.check = icmp ult i64 %18, 32
  %or.cond144 = or i1 %min.iters.check, %diff.check
  br i1 %or.cond144, label %.lr.ph.preheader148, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %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 ]
  %19 = getelementptr inbounds double, ptr %1, i64 %index
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %wide.load = load <2 x double>, ptr %19, align 8, !tbaa !24
  %wide.load93 = load <2 x double>, ptr %20, align 8, !tbaa !24
  %21 = getelementptr inbounds double, ptr %15, i64 %index
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  store <2 x double> %wide.load, ptr %21, align 8, !tbaa !24
  store <2 x double> %wide.load93, ptr %22, align 8, !tbaa !24
  %index.next = add nuw i64 %index, 4
  %23 = icmp eq i64 %index.next, %n.vec
  br i1 %23, label %middle.block, label %vector.body, !llvm.loop !25

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

.lr.ph.preheader148:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %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 %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader148, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader148 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader148 ]
  %24 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.prol
  %25 = load double, ptr %24, align 8, !tbaa !24
  %26 = getelementptr inbounds double, ptr %15, i64 %indvars.iv.prol
  store double %25, ptr %26, align 8, !tbaa !24
  %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 %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !29

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader148
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader148 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %27 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %28 = icmp ugt i64 %27, -4
  br i1 %28, label %.loopexit55, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %29 = getelementptr inbounds double, ptr %1, i64 %indvars.iv
  %30 = load double, ptr %29, align 8, !tbaa !24
  %31 = getelementptr inbounds double, ptr %15, i64 %indvars.iv
  store double %30, ptr %31, align 8, !tbaa !24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %32 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next
  %33 = load double, ptr %32, align 8, !tbaa !24
  %34 = getelementptr inbounds double, ptr %15, i64 %indvars.iv.next
  store double %33, ptr %34, align 8, !tbaa !24
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %35 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next.1
  %36 = load double, ptr %35, align 8, !tbaa !24
  %37 = getelementptr inbounds double, ptr %15, i64 %indvars.iv.next.1
  store double %36, ptr %37, align 8, !tbaa !24
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %38 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next.2
  %39 = load double, ptr %38, align 8, !tbaa !24
  %40 = getelementptr inbounds double, ptr %15, i64 %indvars.iv.next.2
  store double %39, ptr %40, align 8, !tbaa !24
  %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 %.loopexit55, label %.lr.ph, !llvm.loop !31

.loopexit55:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %13
  %41 = getelementptr inbounds i8, ptr %0, i64 808
  %42 = load ptr, ptr %41, align 8, !tbaa !32
  %43 = getelementptr inbounds i8, ptr %0, i64 976
  %44 = load ptr, ptr %43, align 8, !tbaa !34
  %45 = load ptr, ptr %42, align 8, !tbaa !35
  %46 = getelementptr inbounds i8, ptr %45, i64 120
  %47 = load ptr, ptr %46, align 8
  %48 = tail call noundef i32 %47(ptr noundef nonnull align 8 dereferenceable(12) %42, i32 noundef 1, double noundef 1.000000e+00, ptr noundef %15, i32 noundef %6, double noundef 0.000000e+00, ptr noundef %44, i32 noundef %7)
  %49 = icmp sgt i32 %7, 0
  br i1 %49, label %.lr.ph58, label %.loopexit51

.lr.ph58:                                         ; preds = %.loopexit55
  %50 = load ptr, ptr %43, align 8, !tbaa !34
  %51 = getelementptr inbounds i8, ptr %0, i64 984
  %52 = load ptr, ptr %51, align 8, !tbaa !37
  %53 = getelementptr inbounds i8, ptr %0, i64 992
  %54 = load ptr, ptr %53, align 8, !tbaa !38
  %wide.trip.count73 = zext nneg i32 %7 to i64
  %min.iters.check101 = icmp ult i32 %7, 16
  br i1 %min.iters.check101, label %scalar.ph100.preheader, label %vector.memcheck94

vector.memcheck94:                                ; preds = %.lr.ph58
  %55 = ptrtoint ptr %54 to i64
  %56 = ptrtoint ptr %52 to i64
  %57 = ptrtoint ptr %50 to i64
  %58 = sub i64 %55, %56
  %diff.check95 = icmp ult i64 %58, 32
  %59 = sub i64 %56, %57
  %diff.check96 = icmp ult i64 %59, 32
  %conflict.rdx = or i1 %diff.check95, %diff.check96
  %60 = sub i64 %55, %57
  %diff.check97 = icmp ult i64 %60, 32
  %conflict.rdx98 = or i1 %conflict.rdx, %diff.check97
  br i1 %conflict.rdx98, label %scalar.ph100.preheader, label %vector.ph102

vector.ph102:                                     ; preds = %vector.memcheck94
  %n.vec104 = and i64 %wide.trip.count73, 2147483644
  br label %vector.body106

vector.body106:                                   ; preds = %vector.body106, %vector.ph102
  %index107 = phi i64 [ 0, %vector.ph102 ], [ %index.next110, %vector.body106 ]
  %61 = getelementptr inbounds double, ptr %50, i64 %index107
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %wide.load108 = load <2 x double>, ptr %61, align 8, !tbaa !24
  %wide.load109 = load <2 x double>, ptr %62, align 8, !tbaa !24
  %63 = getelementptr inbounds double, ptr %52, i64 %index107
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  store <2 x double> %wide.load108, ptr %63, align 8, !tbaa !24
  store <2 x double> %wide.load109, ptr %64, align 8, !tbaa !24
  %65 = getelementptr inbounds double, ptr %54, i64 %index107
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  store <2 x double> %wide.load108, ptr %65, align 8, !tbaa !24
  store <2 x double> %wide.load109, ptr %66, align 8, !tbaa !24
  %index.next110 = add nuw i64 %index107, 4
  %67 = icmp eq i64 %index.next110, %n.vec104
  br i1 %67, label %middle.block99, label %vector.body106, !llvm.loop !39

middle.block99:                                   ; preds = %vector.body106
  %cmp.n111 = icmp eq i64 %n.vec104, %wide.trip.count73
  br i1 %cmp.n111, label %.loopexit51, label %scalar.ph100.preheader

scalar.ph100.preheader:                           ; preds = %middle.block99, %vector.memcheck94, %.lr.ph58
  %indvars.iv70.ph = phi i64 [ 0, %vector.memcheck94 ], [ 0, %.lr.ph58 ], [ %n.vec104, %middle.block99 ]
  %xtraiter149 = and i64 %wide.trip.count73, 3
  %lcmp.mod150.not = icmp eq i64 %xtraiter149, 0
  br i1 %lcmp.mod150.not, label %scalar.ph100.prol.loopexit, label %scalar.ph100.prol

scalar.ph100.prol:                                ; preds = %scalar.ph100.preheader, %scalar.ph100.prol
  %indvars.iv70.prol = phi i64 [ %indvars.iv.next71.prol, %scalar.ph100.prol ], [ %indvars.iv70.ph, %scalar.ph100.preheader ]
  %prol.iter151 = phi i64 [ %prol.iter151.next, %scalar.ph100.prol ], [ 0, %scalar.ph100.preheader ]
  %68 = getelementptr inbounds double, ptr %50, i64 %indvars.iv70.prol
  %69 = load double, ptr %68, align 8, !tbaa !24
  %70 = getelementptr inbounds double, ptr %52, i64 %indvars.iv70.prol
  store double %69, ptr %70, align 8, !tbaa !24
  %71 = getelementptr inbounds double, ptr %54, i64 %indvars.iv70.prol
  store double %69, ptr %71, align 8, !tbaa !24
  %indvars.iv.next71.prol = add nuw nsw i64 %indvars.iv70.prol, 1
  %prol.iter151.next = add i64 %prol.iter151, 1
  %prol.iter151.cmp.not = icmp eq i64 %prol.iter151.next, %xtraiter149
  br i1 %prol.iter151.cmp.not, label %scalar.ph100.prol.loopexit, label %scalar.ph100.prol, !llvm.loop !40

scalar.ph100.prol.loopexit:                       ; preds = %scalar.ph100.prol, %scalar.ph100.preheader
  %indvars.iv70.unr = phi i64 [ %indvars.iv70.ph, %scalar.ph100.preheader ], [ %indvars.iv.next71.prol, %scalar.ph100.prol ]
  %72 = sub nsw i64 %indvars.iv70.ph, %wide.trip.count73
  %73 = icmp ugt i64 %72, -4
  br i1 %73, label %.loopexit51, label %scalar.ph100

scalar.ph100:                                     ; preds = %scalar.ph100.prol.loopexit, %scalar.ph100
  %indvars.iv70 = phi i64 [ %indvars.iv.next71.3, %scalar.ph100 ], [ %indvars.iv70.unr, %scalar.ph100.prol.loopexit ]
  %74 = getelementptr inbounds double, ptr %50, i64 %indvars.iv70
  %75 = load double, ptr %74, align 8, !tbaa !24
  %76 = getelementptr inbounds double, ptr %52, i64 %indvars.iv70
  store double %75, ptr %76, align 8, !tbaa !24
  %77 = getelementptr inbounds double, ptr %54, i64 %indvars.iv70
  store double %75, ptr %77, align 8, !tbaa !24
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %78 = getelementptr inbounds double, ptr %50, i64 %indvars.iv.next71
  %79 = load double, ptr %78, align 8, !tbaa !24
  %80 = getelementptr inbounds double, ptr %52, i64 %indvars.iv.next71
  store double %79, ptr %80, align 8, !tbaa !24
  %81 = getelementptr inbounds double, ptr %54, i64 %indvars.iv.next71
  store double %79, ptr %81, align 8, !tbaa !24
  %indvars.iv.next71.1 = add nuw nsw i64 %indvars.iv70, 2
  %82 = getelementptr inbounds double, ptr %50, i64 %indvars.iv.next71.1
  %83 = load double, ptr %82, align 8, !tbaa !24
  %84 = getelementptr inbounds double, ptr %52, i64 %indvars.iv.next71.1
  store double %83, ptr %84, align 8, !tbaa !24
  %85 = getelementptr inbounds double, ptr %54, i64 %indvars.iv.next71.1
  store double %83, ptr %85, align 8, !tbaa !24
  %indvars.iv.next71.2 = add nuw nsw i64 %indvars.iv70, 3
  %86 = getelementptr inbounds double, ptr %50, i64 %indvars.iv.next71.2
  %87 = load double, ptr %86, align 8, !tbaa !24
  %88 = getelementptr inbounds double, ptr %52, i64 %indvars.iv.next71.2
  store double %87, ptr %88, align 8, !tbaa !24
  %89 = getelementptr inbounds double, ptr %54, i64 %indvars.iv.next71.2
  store double %87, ptr %89, align 8, !tbaa !24
  %indvars.iv.next71.3 = add nuw nsw i64 %indvars.iv70, 4
  %exitcond74.not.3 = icmp eq i64 %indvars.iv.next71.3, %wide.trip.count73
  br i1 %exitcond74.not.3, label %.loopexit51, label %scalar.ph100, !llvm.loop !41

.preheader50:                                     ; preds = %.lr.ph60, %.preheader52
  %90 = icmp sgt i32 %7, 0
  br i1 %90, label %.lr.ph62, label %.loopexit51

.lr.ph62:                                         ; preds = %.preheader50
  %91 = getelementptr inbounds i8, ptr %0, i64 976
  %92 = load ptr, ptr %91, align 8, !tbaa !34
  %93 = getelementptr inbounds i8, ptr %0, i64 984
  %94 = load ptr, ptr %93, align 8, !tbaa !37
  %95 = getelementptr inbounds i8, ptr %0, i64 992
  %96 = load ptr, ptr %95, align 8, !tbaa !38
  %wide.trip.count81 = zext nneg i32 %7 to i64
  %min.iters.check120 = icmp ult i32 %7, 10
  br i1 %min.iters.check120, label %scalar.ph119.preheader, label %vector.memcheck112

vector.memcheck112:                               ; preds = %.lr.ph62
  %97 = ptrtoint ptr %96 to i64
  %98 = ptrtoint ptr %94 to i64
  %99 = ptrtoint ptr %92 to i64
  %100 = sub i64 %98, %99
  %diff.check113 = icmp ult i64 %100, 32
  %101 = sub i64 %97, %99
  %diff.check114 = icmp ult i64 %101, 32
  %conflict.rdx115 = or i1 %diff.check113, %diff.check114
  %102 = sub i64 %97, %98
  %diff.check116 = icmp ult i64 %102, 32
  %conflict.rdx117 = or i1 %conflict.rdx115, %diff.check116
  br i1 %conflict.rdx117, label %scalar.ph119.preheader, label %vector.ph121

vector.ph121:                                     ; preds = %vector.memcheck112
  %n.vec123 = and i64 %wide.trip.count81, 2147483644
  br label %vector.body125

vector.body125:                                   ; preds = %vector.body125, %vector.ph121
  %index126 = phi i64 [ 0, %vector.ph121 ], [ %index.next127, %vector.body125 ]
  %103 = getelementptr inbounds double, ptr %92, i64 %index126
  %104 = getelementptr inbounds i8, ptr %103, i64 16
  store <2 x double> zeroinitializer, ptr %103, align 8, !tbaa !24
  store <2 x double> zeroinitializer, ptr %104, align 8, !tbaa !24
  %105 = getelementptr inbounds double, ptr %94, i64 %index126
  %106 = getelementptr inbounds i8, ptr %105, i64 16
  store <2 x double> zeroinitializer, ptr %105, align 8, !tbaa !24
  store <2 x double> zeroinitializer, ptr %106, align 8, !tbaa !24
  %107 = getelementptr inbounds double, ptr %96, i64 %index126
  %108 = getelementptr inbounds i8, ptr %107, i64 16
  store <2 x double> zeroinitializer, ptr %107, align 8, !tbaa !24
  store <2 x double> zeroinitializer, ptr %108, align 8, !tbaa !24
  %index.next127 = add nuw i64 %index126, 4
  %109 = icmp eq i64 %index.next127, %n.vec123
  br i1 %109, label %middle.block118, label %vector.body125, !llvm.loop !42

middle.block118:                                  ; preds = %vector.body125
  %cmp.n128 = icmp eq i64 %n.vec123, %wide.trip.count81
  br i1 %cmp.n128, label %.loopexit51, label %scalar.ph119.preheader

scalar.ph119.preheader:                           ; preds = %middle.block118, %vector.memcheck112, %.lr.ph62
  %indvars.iv78.ph = phi i64 [ 0, %vector.memcheck112 ], [ 0, %.lr.ph62 ], [ %n.vec123, %middle.block118 ]
  %xtraiter152 = and i64 %wide.trip.count81, 1
  %lcmp.mod153.not = icmp eq i64 %xtraiter152, 0
  br i1 %lcmp.mod153.not, label %scalar.ph119.prol.loopexit, label %scalar.ph119.prol

scalar.ph119.prol:                                ; preds = %scalar.ph119.preheader
  %110 = getelementptr inbounds double, ptr %92, i64 %indvars.iv78.ph
  store double 0.000000e+00, ptr %110, align 8, !tbaa !24
  %111 = getelementptr inbounds double, ptr %94, i64 %indvars.iv78.ph
  store double 0.000000e+00, ptr %111, align 8, !tbaa !24
  %112 = getelementptr inbounds double, ptr %96, i64 %indvars.iv78.ph
  store double 0.000000e+00, ptr %112, align 8, !tbaa !24
  %indvars.iv.next79.prol = or disjoint i64 %indvars.iv78.ph, 1
  br label %scalar.ph119.prol.loopexit

scalar.ph119.prol.loopexit:                       ; preds = %scalar.ph119.prol, %scalar.ph119.preheader
  %indvars.iv78.unr = phi i64 [ %indvars.iv78.ph, %scalar.ph119.preheader ], [ %indvars.iv.next79.prol, %scalar.ph119.prol ]
  %113 = add nsw i64 %wide.trip.count81, -1
  %114 = icmp eq i64 %indvars.iv78.ph, %113
  br i1 %114, label %.loopexit51, label %scalar.ph119

scalar.ph119:                                     ; preds = %scalar.ph119.prol.loopexit, %scalar.ph119
  %indvars.iv78 = phi i64 [ %indvars.iv.next79.1, %scalar.ph119 ], [ %indvars.iv78.unr, %scalar.ph119.prol.loopexit ]
  %115 = getelementptr inbounds double, ptr %92, i64 %indvars.iv78
  store double 0.000000e+00, ptr %115, align 8, !tbaa !24
  %116 = getelementptr inbounds double, ptr %94, i64 %indvars.iv78
  store double 0.000000e+00, ptr %116, align 8, !tbaa !24
  %117 = getelementptr inbounds double, ptr %96, i64 %indvars.iv78
  store double 0.000000e+00, ptr %117, align 8, !tbaa !24
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %118 = getelementptr inbounds double, ptr %92, i64 %indvars.iv.next79
  store double 0.000000e+00, ptr %118, align 8, !tbaa !24
  %119 = getelementptr inbounds double, ptr %94, i64 %indvars.iv.next79
  store double 0.000000e+00, ptr %119, align 8, !tbaa !24
  %120 = getelementptr inbounds double, ptr %96, i64 %indvars.iv.next79
  store double 0.000000e+00, ptr %120, align 8, !tbaa !24
  %indvars.iv.next79.1 = add nuw nsw i64 %indvars.iv78, 2
  %exitcond82.not.1 = icmp eq i64 %indvars.iv.next79.1, %wide.trip.count81
  br i1 %exitcond82.not.1, label %.loopexit51, label %scalar.ph119, !llvm.loop !43

.loopexit51:                                      ; preds = %scalar.ph100.prol.loopexit, %scalar.ph100, %scalar.ph119.prol.loopexit, %scalar.ph119, %middle.block99, %middle.block118, %.loopexit55, %.preheader50
  %.not46 = icmp eq ptr %2, null
  br i1 %.not46, label %.preheader, label %129

.preheader:                                       ; preds = %.loopexit51
  %121 = add i32 %7, %6
  %122 = icmp sgt i32 %121, 0
  br i1 %122, label %.lr.ph66, label %.loopexit

.lr.ph66:                                         ; preds = %.preheader
  %123 = getelementptr inbounds i8, ptr %0, i64 192
  %124 = load ptr, ptr %123, align 8, !tbaa !44
  %125 = add nsw i32 %121, -1
  %126 = zext nneg i32 %125 to i64
  %127 = shl nuw nsw i64 %126, 3
  %128 = add nuw nsw i64 %127, 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %124, i8 0, i64 %128, i1 false), !tbaa !24
  br label %.loopexit

129:                                              ; preds = %.loopexit51
  %130 = getelementptr inbounds i8, ptr %0, i64 192
  %131 = load ptr, ptr %130, align 8, !tbaa !44
  %132 = ptrtoint ptr %131 to i64
  %.not47 = icmp eq ptr %131, %2
  br i1 %.not47, label %.loopexit, label %.preheader48

.preheader48:                                     ; preds = %129
  %133 = add nsw i32 %7, %6
  %134 = icmp sgt i32 %133, 0
  br i1 %134, label %.lr.ph64.preheader, label %.loopexit

.lr.ph64.preheader:                               ; preds = %.preheader48
  %wide.trip.count86 = zext nneg i32 %133 to i64
  %min.iters.check133 = icmp ult i32 %133, 6
  %135 = sub i64 %132, %4
  %diff.check130 = icmp ult i64 %135, 32
  %or.cond145 = or i1 %min.iters.check133, %diff.check130
  br i1 %or.cond145, label %.lr.ph64.preheader146, label %vector.ph134

vector.ph134:                                     ; preds = %.lr.ph64.preheader
  %n.vec136 = and i64 %wide.trip.count86, 2147483644
  br label %vector.body138

vector.body138:                                   ; preds = %vector.body138, %vector.ph134
  %index139 = phi i64 [ 0, %vector.ph134 ], [ %index.next142, %vector.body138 ]
  %136 = getelementptr inbounds double, ptr %2, i64 %index139
  %137 = getelementptr inbounds i8, ptr %136, i64 16
  %wide.load140 = load <2 x double>, ptr %136, align 8, !tbaa !24
  %wide.load141 = load <2 x double>, ptr %137, align 8, !tbaa !24
  %138 = getelementptr inbounds double, ptr %131, i64 %index139
  %139 = getelementptr inbounds i8, ptr %138, i64 16
  store <2 x double> %wide.load140, ptr %138, align 8, !tbaa !24
  store <2 x double> %wide.load141, ptr %139, align 8, !tbaa !24
  %index.next142 = add nuw i64 %index139, 4
  %140 = icmp eq i64 %index.next142, %n.vec136
  br i1 %140, label %middle.block131, label %vector.body138, !llvm.loop !45

middle.block131:                                  ; preds = %vector.body138
  %cmp.n143 = icmp eq i64 %n.vec136, %wide.trip.count86
  br i1 %cmp.n143, label %.loopexit, label %.lr.ph64.preheader146

.lr.ph64.preheader146:                            ; preds = %middle.block131, %.lr.ph64.preheader
  %indvars.iv83.ph = phi i64 [ 0, %.lr.ph64.preheader ], [ %n.vec136, %middle.block131 ]
  %xtraiter155 = and i64 %wide.trip.count86, 3
  %lcmp.mod156.not = icmp eq i64 %xtraiter155, 0
  br i1 %lcmp.mod156.not, label %.lr.ph64.prol.loopexit, label %.lr.ph64.prol

.lr.ph64.prol:                                    ; preds = %.lr.ph64.preheader146, %.lr.ph64.prol
  %indvars.iv83.prol = phi i64 [ %indvars.iv.next84.prol, %.lr.ph64.prol ], [ %indvars.iv83.ph, %.lr.ph64.preheader146 ]
  %prol.iter157 = phi i64 [ %prol.iter157.next, %.lr.ph64.prol ], [ 0, %.lr.ph64.preheader146 ]
  %141 = getelementptr inbounds double, ptr %2, i64 %indvars.iv83.prol
  %142 = load double, ptr %141, align 8, !tbaa !24
  %143 = getelementptr inbounds double, ptr %131, i64 %indvars.iv83.prol
  store double %142, ptr %143, align 8, !tbaa !24
  %indvars.iv.next84.prol = add nuw nsw i64 %indvars.iv83.prol, 1
  %prol.iter157.next = add i64 %prol.iter157, 1
  %prol.iter157.cmp.not = icmp eq i64 %prol.iter157.next, %xtraiter155
  br i1 %prol.iter157.cmp.not, label %.lr.ph64.prol.loopexit, label %.lr.ph64.prol, !llvm.loop !46

.lr.ph64.prol.loopexit:                           ; preds = %.lr.ph64.prol, %.lr.ph64.preheader146
  %indvars.iv83.unr = phi i64 [ %indvars.iv83.ph, %.lr.ph64.preheader146 ], [ %indvars.iv.next84.prol, %.lr.ph64.prol ]
  %144 = sub nsw i64 %indvars.iv83.ph, %wide.trip.count86
  %145 = icmp ugt i64 %144, -4
  br i1 %145, label %.loopexit, label %.lr.ph64

.lr.ph64:                                         ; preds = %.lr.ph64.prol.loopexit, %.lr.ph64
  %indvars.iv83 = phi i64 [ %indvars.iv.next84.3, %.lr.ph64 ], [ %indvars.iv83.unr, %.lr.ph64.prol.loopexit ]
  %146 = getelementptr inbounds double, ptr %2, i64 %indvars.iv83
  %147 = load double, ptr %146, align 8, !tbaa !24
  %148 = getelementptr inbounds double, ptr %131, i64 %indvars.iv83
  store double %147, ptr %148, align 8, !tbaa !24
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %149 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next84
  %150 = load double, ptr %149, align 8, !tbaa !24
  %151 = getelementptr inbounds double, ptr %131, i64 %indvars.iv.next84
  store double %150, ptr %151, align 8, !tbaa !24
  %indvars.iv.next84.1 = add nuw nsw i64 %indvars.iv83, 2
  %152 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next84.1
  %153 = load double, ptr %152, align 8, !tbaa !24
  %154 = getelementptr inbounds double, ptr %131, i64 %indvars.iv.next84.1
  store double %153, ptr %154, align 8, !tbaa !24
  %indvars.iv.next84.2 = add nuw nsw i64 %indvars.iv83, 3
  %155 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next84.2
  %156 = load double, ptr %155, align 8, !tbaa !24
  %157 = getelementptr inbounds double, ptr %131, i64 %indvars.iv.next84.2
  store double %156, ptr %157, align 8, !tbaa !24
  %indvars.iv.next84.3 = add nuw nsw i64 %indvars.iv83, 4
  %exitcond87.not.3 = icmp eq i64 %indvars.iv.next84.3, %wide.trip.count86
  br i1 %exitcond87.not.3, label %.loopexit, label %.lr.ph64, !llvm.loop !47

.loopexit:                                        ; preds = %.lr.ph64.prol.loopexit, %.lr.ph64, %middle.block131, %.lr.ph66, %.preheader48, %.preheader, %129
  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) #2

attributes #0 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 184}
!6 = !{!"_ZTSN7qpOASES9QProblemBE", !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !11, i64 48, !10, i64 168, !7, i64 176, !10, i64 184, !10, i64 192, !15, i64 200, !16, i64 208, !7, i64 212, !7, i64 216, !17, i64 220, !15, i64 224, !13, i64 232, !10, i64 240, !15, i64 248, !15, i64 256, !13, i64 264, !18, i64 272, !21, i64 496, !23, i64 768}
!7 = !{!"_ZTSN7qpOASES11BooleanTypeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTSN7qpOASES6BoundsE", !12, i64 0, !14, i64 40, !14, i64 80}
!12 = !{!"_ZTSN7qpOASES9SubjectToE", !13, i64 8, !10, i64 16, !10, i64 24, !7, i64 32, !7, i64 36}
!13 = !{!"int", !8, i64 0}
!14 = !{!"_ZTSN7qpOASES9IndexlistE", !10, i64 0, !10, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_ZTSN7qpOASES14QProblemStatusE", !8, i64 0}
!17 = !{!"_ZTSN7qpOASES11HessianTypeE", !8, i64 0}
!18 = !{!"_ZTSN7qpOASES7OptionsE", !19, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !13, i64 28, !13, i64 32, !7, i64 36, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !20, i64 128, !15, i64 136, !13, i64 144, !15, i64 152, !13, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !7, i64 200, !7, i64 204, !13, i64 208, !13, i64 212, !13, i64 216}
!19 = !{!"_ZTSN7qpOASES10PrintLevelE", !8, i64 0}
!20 = !{!"_ZTSN7qpOASES15SubjectToStatusE", !8, i64 0}
!21 = !{!"_ZTSN7qpOASES7FlipperE", !13, i64 0, !13, i64 4, !11, i64 8, !22, i64 128, !10, i64 248, !10, i64 256, !10, i64 264}
!22 = !{!"_ZTSN7qpOASES11ConstraintsE", !12, i64 0, !14, i64 40, !14, i64 80}
!23 = !{!"_ZTSN7qpOASES13TabularOutputE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28}
!24 = !{!15, !15, i64 0}
!25 = distinct !{!25, !26, !27, !28}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.unroll.disable"}
!31 = distinct !{!31, !26, !27}
!32 = !{!33, !10, i64 808}
!33 = !{!"_ZTSN7qpOASES8QProblemE", !6, i64 0, !7, i64 800, !10, i64 808, !10, i64 816, !10, i64 824, !22, i64 832, !10, i64 952, !10, i64 960, !13, i64 968, !10, i64 976, !10, i64 984, !10, i64 992, !10, i64 1000, !10, i64 1008, !10, i64 1016, !10, i64 1024, !10, i64 1032, !10, i64 1040, !10, i64 1048, !10, i64 1056}
!34 = !{!33, !10, i64 976}
!35 = !{!36, !36, i64 0}
!36 = !{!"vtable pointer", !9, i64 0}
!37 = !{!33, !10, i64 984}
!38 = !{!33, !10, i64 992}
!39 = distinct !{!39, !26, !27, !28}
!40 = distinct !{!40, !30}
!41 = distinct !{!41, !26, !27}
!42 = distinct !{!42, !26, !27, !28}
!43 = distinct !{!43, !26, !27}
!44 = !{!6, !10, i64 192}
!45 = distinct !{!45, !26, !27, !28}
!46 = distinct !{!46, !30}
!47 = distinct !{!47, !26, !27}


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