; LLVM IR from attractivechaos/klib :: khmm (hmm_add_expect)

; 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.hmm_exp_t = type { i32, i32, double, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@__PRETTY_FUNCTION__.hmm_add_expect = external hidden unnamed_addr constant [52 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @hmm_add_expect(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.hmm_exp_t, ptr %8, i32 0, i32 0
  %10 = load i32, ptr %9, align 8, !tbaa !9
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.hmm_exp_t, ptr %11, i32 0, i32 0
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %14 = icmp eq i32 %10, %13
  br i1 %14, label %15, label %24

15:                                               ; preds = %2
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.hmm_exp_t, ptr %16, i32 0, i32 1
  %18 = load i32, ptr %17, align 4, !tbaa !13
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.hmm_exp_t, ptr %19, i32 0, i32 1
  %21 = load i32, ptr %20, align 4, !tbaa !13
  %22 = icmp eq i32 %18, %21
  br i1 %22, label %23, label %24

23:                                               ; preds = %15
  br label %25

24:                                               ; preds = %15, %2
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 349, ptr noundef @__PRETTY_FUNCTION__.hmm_add_expect) #4
  unreachable

25:                                               ; preds = %23
  store i32 0, ptr %6, align 4, !tbaa !14
  br label %26

26:                                               ; preds = %82, %25
  %27 = load i32, ptr %6, align 4, !tbaa !14
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.hmm_exp_t, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 4, !tbaa !13
  %31 = icmp ne i32 %27, %30
  br i1 %31, label %32, label %85

32:                                               ; preds = %26
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.hmm_exp_t, ptr %33, i32 0, i32 5
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  %36 = load i32, ptr %6, align 4, !tbaa !14
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds double, ptr %35, i64 %37
  %39 = load double, ptr %38, align 8, !tbaa !16
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.hmm_exp_t, ptr %40, i32 0, i32 5
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  %43 = load i32, ptr %6, align 4, !tbaa !14
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds double, ptr %42, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !16
  %47 = fadd double %46, %39
  store double %47, ptr %45, align 8, !tbaa !16
  store i32 0, ptr %7, align 4, !tbaa !14
  br label %48

48:                                               ; preds = %78, %32
  %49 = load i32, ptr %7, align 4, !tbaa !14
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.hmm_exp_t, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 4, !tbaa !13
  %53 = icmp ne i32 %49, %52
  br i1 %53, label %54, label %81

54:                                               ; preds = %48
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.hmm_exp_t, ptr %55, i32 0, i32 3
  %57 = load ptr, ptr %56, align 8, !tbaa !17
  %58 = load i32, ptr %6, align 4, !tbaa !14
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds ptr, ptr %57, i64 %59
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = load i32, ptr %7, align 4, !tbaa !14
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %61, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !16
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.hmm_exp_t, ptr %66, i32 0, i32 3
  %68 = load ptr, ptr %67, align 8, !tbaa !17
  %69 = load i32, ptr %6, align 4, !tbaa !14
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds ptr, ptr %68, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = load i32, ptr %7, align 4, !tbaa !14
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !16
  %77 = fadd double %76, %65
  store double %77, ptr %75, align 8, !tbaa !16
  br label %78

78:                                               ; preds = %54
  %79 = load i32, ptr %7, align 4, !tbaa !14
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %7, align 4, !tbaa !14
  br label %48, !llvm.loop !18

81:                                               ; preds = %48
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %6, align 4, !tbaa !14
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %6, align 4, !tbaa !14
  br label %26, !llvm.loop !20

85:                                               ; preds = %26
  store i32 0, ptr %5, align 4, !tbaa !14
  br label %86

86:                                               ; preds = %127, %85
  %87 = load i32, ptr %5, align 4, !tbaa !14
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.hmm_exp_t, ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 8, !tbaa !9
  %91 = icmp ne i32 %87, %90
  br i1 %91, label %92, label %130

92:                                               ; preds = %86
  store i32 0, ptr %7, align 4, !tbaa !14
  br label %93

93:                                               ; preds = %123, %92
  %94 = load i32, ptr %7, align 4, !tbaa !14
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.hmm_exp_t, ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 4, !tbaa !13
  %98 = icmp ne i32 %94, %97
  br i1 %98, label %99, label %126

99:                                               ; preds = %93
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.hmm_exp_t, ptr %100, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !21
  %103 = load i32, ptr %5, align 4, !tbaa !14
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds ptr, ptr %102, i64 %104
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = load i32, ptr %7, align 4, !tbaa !14
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %106, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !16
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.hmm_exp_t, ptr %111, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !21
  %114 = load i32, ptr %5, align 4, !tbaa !14
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds ptr, ptr %113, i64 %115
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = load i32, ptr %7, align 4, !tbaa !14
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds double, ptr %117, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !16
  %122 = fadd double %121, %110
  store double %122, ptr %120, align 8, !tbaa !16
  br label %123

123:                                              ; preds = %99
  %124 = load i32, ptr %7, align 4, !tbaa !14
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %7, align 4, !tbaa !14
  br label %93, !llvm.loop !22

126:                                              ; preds = %93
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %5, align 4, !tbaa !14
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %5, align 4, !tbaa !14
  br label %86, !llvm.loop !23

130:                                              ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 = { 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 #3 = { nounwind }
attributes #4 = { noreturn 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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !6, i64 32}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !6, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!10, !6, i64 24}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}


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

@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@__PRETTY_FUNCTION__.hmm_add_expect = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @hmm_add_expect(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 {
  %3 = load i32, ptr %0, align 8, !tbaa !5
  %4 = load i32, ptr %1, align 8, !tbaa !5
  %5 = icmp eq i32 %3, %4
  br i1 %5, label %6, label %22

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !12
  %9 = getelementptr inbounds i8, ptr %1, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !12
  %11 = icmp eq i32 %8, %10
  br i1 %11, label %.preheader37, label %22

.preheader37:                                     ; preds = %6
  %.not40 = icmp eq i32 %8, 0
  br i1 %.not40, label %._crit_edge49, label %.lr.ph42

.lr.ph42:                                         ; preds = %.preheader37
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %13 = load ptr, ptr %12, align 8, !tbaa !13
  %14 = getelementptr inbounds i8, ptr %1, i64 32
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = getelementptr inbounds i8, ptr %1, i64 16
  %18 = load ptr, ptr %16, align 8, !tbaa !14
  %19 = load ptr, ptr %17, align 8, !tbaa !14
  %20 = zext i32 %8 to i64
  %21 = shl nuw nsw i64 %20, 3
  %min.iters.check = icmp ult i32 %8, 4
  %n.vec = and i64 %20, 4294967292
  %cmp.n = icmp eq i64 %n.vec, %20
  %xtraiter = and i64 %20, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph

22:                                               ; preds = %6, %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 349, ptr noundef nonnull @__PRETTY_FUNCTION__.hmm_add_expect) #2
  unreachable

.preheader36:                                     ; preds = %._crit_edge
  %.not3347 = icmp eq i32 %3, 0
  %brmerge = or i1 %.not3347, %.not40
  br i1 %brmerge, label %._crit_edge49, label %.preheader.lr.ph.split

.preheader.lr.ph.split:                           ; preds = %.preheader36
  %23 = getelementptr inbounds i8, ptr %1, i64 24
  %24 = getelementptr inbounds i8, ptr %0, i64 24
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  %26 = load ptr, ptr %23, align 8, !tbaa !15
  %27 = zext i32 %8 to i64
  %28 = zext i32 %3 to i64
  %29 = shl nuw nsw i64 %20, 3
  %min.iters.check74 = icmp ult i32 %8, 4
  %n.vec77 = and i64 %20, 4294967292
  %cmp.n86 = icmp eq i64 %n.vec77, %20
  %xtraiter87 = and i64 %20, 3
  %lcmp.mod88.not = icmp eq i64 %xtraiter87, 0
  br label %.preheader

.lr.ph:                                           ; preds = %.lr.ph42, %._crit_edge
  %indvars.iv52 = phi i64 [ 0, %.lr.ph42 ], [ %indvars.iv.next53, %._crit_edge ]
  %30 = getelementptr inbounds double, ptr %13, i64 %indvars.iv52
  %31 = load double, ptr %30, align 8, !tbaa !16
  %32 = getelementptr inbounds double, ptr %15, i64 %indvars.iv52
  %33 = load double, ptr %32, align 8, !tbaa !16
  %34 = fadd double %31, %33
  store double %34, ptr %32, align 8, !tbaa !16
  %35 = getelementptr inbounds ptr, ptr %18, i64 %indvars.iv52
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %37 = getelementptr inbounds ptr, ptr %19, i64 %indvars.iv52
  %38 = load ptr, ptr %37, align 8, !tbaa !17
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %scevgep = getelementptr i8, ptr %38, i64 %21
  %scevgep62 = getelementptr i8, ptr %36, i64 %21
  %bound0 = icmp ult ptr %38, %scevgep62
  %bound1 = icmp ult ptr %36, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %vector.memcheck, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.memcheck ]
  %39 = getelementptr inbounds double, ptr %36, i64 %index
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  %wide.load = load <2 x double>, ptr %39, align 8, !tbaa !16, !alias.scope !18
  %wide.load63 = load <2 x double>, ptr %40, align 8, !tbaa !16, !alias.scope !18
  %41 = getelementptr inbounds double, ptr %38, i64 %index
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %wide.load64 = load <2 x double>, ptr %41, align 8, !tbaa !16, !alias.scope !21, !noalias !18
  %wide.load65 = load <2 x double>, ptr %42, align 8, !tbaa !16, !alias.scope !21, !noalias !18
  %43 = fadd <2 x double> %wide.load, %wide.load64
  %44 = fadd <2 x double> %wide.load63, %wide.load65
  store <2 x double> %43, ptr %41, align 8, !tbaa !16, !alias.scope !21, !noalias !18
  store <2 x double> %44, ptr %42, align 8, !tbaa !16, !alias.scope !21, !noalias !18
  %index.next = add nuw i64 %index, 4
  %45 = icmp eq i64 %index.next, %n.vec
  br i1 %45, label %middle.block, label %vector.body, !llvm.loop !23

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

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  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 ]
  %46 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.prol
  %47 = load double, ptr %46, align 8, !tbaa !16
  %48 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.prol
  %49 = load double, ptr %48, align 8, !tbaa !16
  %50 = fadd double %47, %49
  store double %50, ptr %48, align 8, !tbaa !16
  %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 !27

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 ]
  %51 = sub nsw i64 %indvars.iv.ph, %20
  %52 = icmp ugt i64 %51, -4
  br i1 %52, 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 ]
  %53 = getelementptr inbounds double, ptr %36, i64 %indvars.iv
  %54 = load double, ptr %53, align 8, !tbaa !16
  %55 = getelementptr inbounds double, ptr %38, i64 %indvars.iv
  %56 = load double, ptr %55, align 8, !tbaa !16
  %57 = fadd double %54, %56
  store double %57, ptr %55, align 8, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %58 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.next
  %59 = load double, ptr %58, align 8, !tbaa !16
  %60 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.next
  %61 = load double, ptr %60, align 8, !tbaa !16
  %62 = fadd double %59, %61
  store double %62, ptr %60, align 8, !tbaa !16
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %63 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.next.1
  %64 = load double, ptr %63, align 8, !tbaa !16
  %65 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.next.1
  %66 = load double, ptr %65, align 8, !tbaa !16
  %67 = fadd double %64, %66
  store double %67, ptr %65, align 8, !tbaa !16
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %68 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.next.2
  %69 = load double, ptr %68, align 8, !tbaa !16
  %70 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.next.2
  %71 = load double, ptr %70, align 8, !tbaa !16
  %72 = fadd double %69, %71
  store double %72, ptr %70, align 8, !tbaa !16
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %.not35.3 = icmp eq i64 %indvars.iv.next.3, %20
  br i1 %.not35.3, label %._crit_edge, label %scalar.ph, !llvm.loop !29

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %.not = icmp eq i64 %indvars.iv.next53, %20
  br i1 %.not, label %.preheader36, label %.lr.ph, !llvm.loop !30

.preheader:                                       ; preds = %.preheader.lr.ph.split, %._crit_edge46
  %indvars.iv58 = phi i64 [ 0, %.preheader.lr.ph.split ], [ %indvars.iv.next59, %._crit_edge46 ]
  %73 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv58
  %74 = load ptr, ptr %73, align 8, !tbaa !17
  %75 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv58
  %76 = load ptr, ptr %75, align 8, !tbaa !17
  br i1 %min.iters.check74, label %scalar.ph73.preheader, label %vector.memcheck66

vector.memcheck66:                                ; preds = %.preheader
  %scevgep67 = getelementptr i8, ptr %76, i64 %29
  %scevgep68 = getelementptr i8, ptr %74, i64 %29
  %bound069 = icmp ult ptr %76, %scevgep68
  %bound170 = icmp ult ptr %74, %scevgep67
  %found.conflict71 = and i1 %bound069, %bound170
  br i1 %found.conflict71, label %scalar.ph73.preheader, label %vector.body79

vector.body79:                                    ; preds = %vector.memcheck66, %vector.body79
  %index80 = phi i64 [ %index.next85, %vector.body79 ], [ 0, %vector.memcheck66 ]
  %77 = getelementptr inbounds double, ptr %74, i64 %index80
  %78 = getelementptr inbounds i8, ptr %77, i64 16
  %wide.load81 = load <2 x double>, ptr %77, align 8, !tbaa !16, !alias.scope !31
  %wide.load82 = load <2 x double>, ptr %78, align 8, !tbaa !16, !alias.scope !31
  %79 = getelementptr inbounds double, ptr %76, i64 %index80
  %80 = getelementptr inbounds i8, ptr %79, i64 16
  %wide.load83 = load <2 x double>, ptr %79, align 8, !tbaa !16, !alias.scope !34, !noalias !31
  %wide.load84 = load <2 x double>, ptr %80, align 8, !tbaa !16, !alias.scope !34, !noalias !31
  %81 = fadd <2 x double> %wide.load81, %wide.load83
  %82 = fadd <2 x double> %wide.load82, %wide.load84
  store <2 x double> %81, ptr %79, align 8, !tbaa !16, !alias.scope !34, !noalias !31
  store <2 x double> %82, ptr %80, align 8, !tbaa !16, !alias.scope !34, !noalias !31
  %index.next85 = add nuw i64 %index80, 4
  %83 = icmp eq i64 %index.next85, %n.vec77
  br i1 %83, label %middle.block72, label %vector.body79, !llvm.loop !36

middle.block72:                                   ; preds = %vector.body79
  br i1 %cmp.n86, label %._crit_edge46, label %scalar.ph73.preheader

scalar.ph73.preheader:                            ; preds = %middle.block72, %vector.memcheck66, %.preheader
  %indvars.iv55.ph = phi i64 [ 0, %vector.memcheck66 ], [ 0, %.preheader ], [ %n.vec77, %middle.block72 ]
  br i1 %lcmp.mod88.not, label %scalar.ph73.prol.loopexit, label %scalar.ph73.prol

scalar.ph73.prol:                                 ; preds = %scalar.ph73.preheader, %scalar.ph73.prol
  %indvars.iv55.prol = phi i64 [ %indvars.iv.next56.prol, %scalar.ph73.prol ], [ %indvars.iv55.ph, %scalar.ph73.preheader ]
  %prol.iter89 = phi i64 [ %prol.iter89.next, %scalar.ph73.prol ], [ 0, %scalar.ph73.preheader ]
  %84 = getelementptr inbounds double, ptr %74, i64 %indvars.iv55.prol
  %85 = load double, ptr %84, align 8, !tbaa !16
  %86 = getelementptr inbounds double, ptr %76, i64 %indvars.iv55.prol
  %87 = load double, ptr %86, align 8, !tbaa !16
  %88 = fadd double %85, %87
  store double %88, ptr %86, align 8, !tbaa !16
  %indvars.iv.next56.prol = add nuw nsw i64 %indvars.iv55.prol, 1
  %prol.iter89.next = add i64 %prol.iter89, 1
  %prol.iter89.cmp.not = icmp eq i64 %prol.iter89.next, %xtraiter87
  br i1 %prol.iter89.cmp.not, label %scalar.ph73.prol.loopexit, label %scalar.ph73.prol, !llvm.loop !37

scalar.ph73.prol.loopexit:                        ; preds = %scalar.ph73.prol, %scalar.ph73.preheader
  %indvars.iv55.unr = phi i64 [ %indvars.iv55.ph, %scalar.ph73.preheader ], [ %indvars.iv.next56.prol, %scalar.ph73.prol ]
  %89 = sub nsw i64 %indvars.iv55.ph, %20
  %90 = icmp ugt i64 %89, -4
  br i1 %90, label %._crit_edge46, label %scalar.ph73

scalar.ph73:                                      ; preds = %scalar.ph73.prol.loopexit, %scalar.ph73
  %indvars.iv55 = phi i64 [ %indvars.iv.next56.3, %scalar.ph73 ], [ %indvars.iv55.unr, %scalar.ph73.prol.loopexit ]
  %91 = getelementptr inbounds double, ptr %74, i64 %indvars.iv55
  %92 = load double, ptr %91, align 8, !tbaa !16
  %93 = getelementptr inbounds double, ptr %76, i64 %indvars.iv55
  %94 = load double, ptr %93, align 8, !tbaa !16
  %95 = fadd double %92, %94
  store double %95, ptr %93, align 8, !tbaa !16
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %96 = getelementptr inbounds double, ptr %74, i64 %indvars.iv.next56
  %97 = load double, ptr %96, align 8, !tbaa !16
  %98 = getelementptr inbounds double, ptr %76, i64 %indvars.iv.next56
  %99 = load double, ptr %98, align 8, !tbaa !16
  %100 = fadd double %97, %99
  store double %100, ptr %98, align 8, !tbaa !16
  %indvars.iv.next56.1 = add nuw nsw i64 %indvars.iv55, 2
  %101 = getelementptr inbounds double, ptr %74, i64 %indvars.iv.next56.1
  %102 = load double, ptr %101, align 8, !tbaa !16
  %103 = getelementptr inbounds double, ptr %76, i64 %indvars.iv.next56.1
  %104 = load double, ptr %103, align 8, !tbaa !16
  %105 = fadd double %102, %104
  store double %105, ptr %103, align 8, !tbaa !16
  %indvars.iv.next56.2 = add nuw nsw i64 %indvars.iv55, 3
  %106 = getelementptr inbounds double, ptr %74, i64 %indvars.iv.next56.2
  %107 = load double, ptr %106, align 8, !tbaa !16
  %108 = getelementptr inbounds double, ptr %76, i64 %indvars.iv.next56.2
  %109 = load double, ptr %108, align 8, !tbaa !16
  %110 = fadd double %107, %109
  store double %110, ptr %108, align 8, !tbaa !16
  %indvars.iv.next56.3 = add nuw nsw i64 %indvars.iv55, 4
  %.not34.3 = icmp eq i64 %indvars.iv.next56.3, %27
  br i1 %.not34.3, label %._crit_edge46, label %scalar.ph73, !llvm.loop !38

._crit_edge46:                                    ; preds = %scalar.ph73.prol.loopexit, %scalar.ph73, %middle.block72
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %.not33 = icmp eq i64 %indvars.iv.next59, %28
  br i1 %.not33, label %._crit_edge49, label %.preheader, !llvm.loop !39

._crit_edge49:                                    ; preds = %._crit_edge46, %.preheader36, %.preheader37
  ret void
}

attributes #0 = { noreturn 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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 4}
!13 = !{!6, !11, i64 32}
!14 = !{!6, !11, i64 16}
!15 = !{!6, !11, i64 24}
!16 = !{!10, !10, i64 0}
!17 = !{!11, !11, i64 0}
!18 = !{!19}
!19 = distinct !{!19, !20}
!20 = distinct !{!20, !"LVerDomain"}
!21 = !{!22}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !24, !25, !26}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.unroll.disable"}
!29 = distinct !{!29, !24, !25}
!30 = distinct !{!30, !24}
!31 = !{!32}
!32 = distinct !{!32, !33}
!33 = distinct !{!33, !"LVerDomain"}
!34 = !{!35}
!35 = distinct !{!35, !33}
!36 = distinct !{!36, !24, !25, !26}
!37 = distinct !{!37, !28}
!38 = distinct !{!38, !24, !25}
!39 = distinct !{!39, !24}


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