; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (r8lib)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [27 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

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

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

16:                                               ; preds = %5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %60, %16
  %18 = load i32, ptr %11, align 4, !tbaa !5
  %19 = load i32, ptr %6, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %21, label %63

21:                                               ; preds = %17
  %22 = load ptr, ptr %9, align 8, !tbaa !9
  %23 = load i32, ptr %11, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds double, ptr %22, i64 %24
  %26 = load double, ptr %25, align 8, !tbaa !11
  %27 = load ptr, ptr %7, align 8, !tbaa !9
  %28 = load i32, ptr %11, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds double, ptr %27, i64 %29
  %31 = load double, ptr %30, align 8, !tbaa !11
  %32 = fcmp olt double %26, %31
  br i1 %32, label %33, label %40

33:                                               ; preds = %21
  %34 = load ptr, ptr @stderr, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str) #5
  %36 = load ptr, ptr @stderr, align 8, !tbaa !9
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.192) #5
  %38 = load ptr, ptr @stderr, align 8, !tbaa !9
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.193) #5
  call void @exit(i32 noundef 1) #6
  unreachable

40:                                               ; preds = %21
  %41 = load ptr, ptr %8, align 8, !tbaa !9
  %42 = load i32, ptr %11, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds double, ptr %41, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !11
  %46 = load ptr, ptr %9, align 8, !tbaa !9
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds double, ptr %46, i64 %48
  %50 = load double, ptr %49, align 8, !tbaa !11
  %51 = fcmp olt double %45, %50
  br i1 %51, label %52, label %59

52:                                               ; preds = %40
  %53 = load ptr, ptr @stderr, align 8, !tbaa !9
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str) #5
  %55 = load ptr, ptr @stderr, align 8, !tbaa !9
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.192) #5
  %57 = load ptr, ptr @stderr, align 8, !tbaa !9
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.194) #5
  call void @exit(i32 noundef 1) #6
  unreachable

59:                                               ; preds = %40
  br label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %11, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %11, align 4, !tbaa !5
  br label %17, !llvm.loop !13

63:                                               ; preds = %17
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %85, %63
  %65 = load i32, ptr %11, align 4, !tbaa !5
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %68, label %88

68:                                               ; preds = %64
  %69 = load ptr, ptr %7, align 8, !tbaa !9
  %70 = load i32, ptr %11, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds double, ptr %69, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = load ptr, ptr %9, align 8, !tbaa !9
  %75 = load i32, ptr %11, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %74, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !11
  %79 = fneg double %78
  %80 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %73, double %79)
  %81 = load ptr, ptr %9, align 8, !tbaa !9
  %82 = load i32, ptr %11, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds double, ptr %81, i64 %83
  store double %80, ptr %84, align 8, !tbaa !11
  br label %85

85:                                               ; preds = %68
  %86 = load i32, ptr %11, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %11, align 4, !tbaa !5
  br label %64, !llvm.loop !15

88:                                               ; preds = %64
  %89 = load ptr, ptr %10, align 8, !tbaa !9
  store i32 1, ptr %89, align 4, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %109, %88
  %91 = load i32, ptr %11, align 4, !tbaa !5
  %92 = load i32, ptr %6, align 4, !tbaa !5
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %94, label %112

94:                                               ; preds = %90
  %95 = load ptr, ptr %7, align 8, !tbaa !9
  %96 = load i32, ptr %11, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %95, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !11
  %100 = load ptr, ptr %8, align 8, !tbaa !9
  %101 = load i32, ptr %11, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds double, ptr %100, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !11
  %105 = fcmp une double %99, %104
  br i1 %105, label %106, label %108

106:                                              ; preds = %94
  %107 = load ptr, ptr %10, align 8, !tbaa !9
  store i32 0, ptr %107, align 4, !tbaa !5
  br label %112

108:                                              ; preds = %94
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %11, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %11, align 4, !tbaa !5
  br label %90, !llvm.loop !16

112:                                              ; preds = %106, %90
  br label %205

113:                                              ; preds = %5
  %114 = load i32, ptr %6, align 4, !tbaa !5
  %115 = sub nsw i32 %114, 1
  store i32 %115, ptr %11, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %200, %113
  %117 = load i32, ptr %11, align 4, !tbaa !5
  %118 = icmp sle i32 0, %117
  br i1 %118, label %119, label %203

119:                                              ; preds = %116
  %120 = load ptr, ptr %9, align 8, !tbaa !9
  %121 = load i32, ptr %11, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds double, ptr %120, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !11
  %125 = load ptr, ptr %7, align 8, !tbaa !9
  %126 = load i32, ptr %11, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds double, ptr %125, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !11
  %130 = fcmp olt double %124, %129
  br i1 %130, label %131, label %148

131:                                              ; preds = %119
  %132 = load ptr, ptr %7, align 8, !tbaa !9
  %133 = load i32, ptr %11, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds double, ptr %132, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !11
  %137 = load ptr, ptr %9, align 8, !tbaa !9
  %138 = load i32, ptr %11, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds double, ptr %137, i64 %139
  %141 = load double, ptr %140, align 8, !tbaa !11
  %142 = fneg double %141
  %143 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %136, double %142)
  %144 = load ptr, ptr %9, align 8, !tbaa !9
  %145 = load i32, ptr %11, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %144, i64 %146
  store double %143, ptr %147, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  br label %206

148:                                              ; preds = %119
  %149 = load ptr, ptr %9, align 8, !tbaa !9
  %150 = load i32, ptr %11, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds double, ptr %149, i64 %151
  %153 = load double, ptr %152, align 8, !tbaa !11
  %154 = load ptr, ptr %8, align 8, !tbaa !9
  %155 = load i32, ptr %11, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds double, ptr %154, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !11
  %159 = fcmp olt double %153, %158
  br i1 %159, label %160, label %177

160:                                              ; preds = %148
  %161 = load ptr, ptr %8, align 8, !tbaa !9
  %162 = load i32, ptr %11, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds double, ptr %161, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !11
  %166 = load ptr, ptr %9, align 8, !tbaa !9
  %167 = load i32, ptr %11, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds double, ptr %166, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !11
  %171 = fneg double %170
  %172 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %165, double %171)
  %173 = load ptr, ptr %9, align 8, !tbaa !9
  %174 = load i32, ptr %11, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds double, ptr %173, i64 %175
  store double %172, ptr %176, align 8, !tbaa !11
  store i32 1, ptr %12, align 4
  br label %206

177:                                              ; preds = %148
  %178 = load ptr, ptr %9, align 8, !tbaa !9
  %179 = load i32, ptr %11, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds double, ptr %178, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !11
  %183 = load ptr, ptr %8, align 8, !tbaa !9
  %184 = load i32, ptr %11, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds double, ptr %183, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !11
  %188 = load ptr, ptr %7, align 8, !tbaa !9
  %189 = load i32, ptr %11, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds double, ptr %188, i64 %190
  %192 = load double, ptr %191, align 8, !tbaa !11
  %193 = fsub double %187, %192
  %194 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %193, double %182)
  %195 = load ptr, ptr %9, align 8, !tbaa !9
  %196 = load i32, ptr %11, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds double, ptr %195, i64 %197
  store double %194, ptr %198, align 8, !tbaa !11
  br label %199

199:                                              ; preds = %177
  br label %200

200:                                              ; preds = %199
  %201 = load i32, ptr %11, align 4, !tbaa !5
  %202 = sub nsw i32 %201, 1
  store i32 %202, ptr %11, align 4, !tbaa !5
  br label %116, !llvm.loop !17

203:                                              ; preds = %116
  %204 = load ptr, ptr %10, align 8, !tbaa !9
  store i32 1, ptr %204, align 4, !tbaa !5
  br label %205

205:                                              ; preds = %203, %112
  store i32 1, ptr %12, align 4
  br label %206

206:                                              ; preds = %205, %160, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !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 = distinct !{!16, !14}
!17 = distinct !{!17, !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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 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: nounwind uwtable
define dso_local void @r8vec_mirror_ab_next(i32 noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef %3, ptr nocapture noundef %4) local_unnamed_addr #3 {
  %6 = load i32, ptr %4, align 4, !tbaa !5
  %.not = icmp eq i32 %6, 0
  %7 = icmp sgt i32 %0, 0
  br i1 %.not, label %.preheader, label %.preheader70

.preheader70:                                     ; preds = %5
  br i1 %7, label %.lr.ph.preheader, label %._crit_edge.thread

.lr.ph.preheader:                                 ; preds = %.preheader70
  %wide.trip.count = zext nneg i32 %0 to i64
  br label %.lr.ph

.preheader:                                       ; preds = %5
  br i1 %7, label %.lr.ph85.preheader, label %._crit_edge86

.lr.ph85.preheader:                               ; preds = %.preheader
  %8 = zext nneg i32 %0 to i64
  br label %.lr.ph85

9:                                                ; preds = %40
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader69, label %.lr.ph, !llvm.loop !9

.preheader69:                                     ; preds = %9
  br i1 %7, label %.lr.ph79.preheader, label %._crit_edge.thread

.lr.ph79.preheader:                               ; preds = %.preheader69
  %wide.trip.count101 = zext nneg i32 %0 to i64
  %min.iters.check = icmp ult i32 %0, 4
  br i1 %min.iters.check, label %.lr.ph79.preheader145, label %vector.memcheck

.lr.ph79.preheader145:                            ; preds = %middle.block, %vector.memcheck, %.lr.ph79.preheader
  %indvars.iv98.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph79.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph79.prol.loopexit, label %.lr.ph79.prol

.lr.ph79.prol:                                    ; preds = %.lr.ph79.preheader145
  %10 = getelementptr inbounds double, ptr %1, i64 %indvars.iv98.ph
  %11 = load double, ptr %10, align 8, !tbaa !11
  %12 = getelementptr inbounds double, ptr %3, i64 %indvars.iv98.ph
  %13 = load double, ptr %12, align 8, !tbaa !11
  %14 = fneg double %13
  %15 = tail call double @llvm.fmuladd.f64(double %11, double 2.000000e+00, double %14)
  store double %15, ptr %12, align 8, !tbaa !11
  %indvars.iv.next99.prol = or disjoint i64 %indvars.iv98.ph, 1
  br label %.lr.ph79.prol.loopexit

.lr.ph79.prol.loopexit:                           ; preds = %.lr.ph79.prol, %.lr.ph79.preheader145
  %indvars.iv98.unr = phi i64 [ %indvars.iv98.ph, %.lr.ph79.preheader145 ], [ %indvars.iv.next99.prol, %.lr.ph79.prol ]
  %16 = add nsw i64 %wide.trip.count, -1
  %17 = icmp eq i64 %indvars.iv98.ph, %16
  br i1 %17, label %._crit_edge, label %.lr.ph79

vector.memcheck:                                  ; preds = %.lr.ph79.preheader
  %18 = shl nuw nsw i64 %wide.trip.count, 3
  %scevgep = getelementptr i8, ptr %3, i64 %18
  %scevgep131 = getelementptr i8, ptr %1, i64 %18
  %bound0 = icmp ugt ptr %scevgep131, %3
  %bound1 = icmp ugt ptr %scevgep, %1
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph79.preheader145, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %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 !11, !alias.scope !13
  %wide.load132 = load <2 x double>, ptr %20, align 8, !tbaa !11, !alias.scope !13
  %21 = getelementptr inbounds double, ptr %3, i64 %index
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %wide.load133 = load <2 x double>, ptr %21, align 8, !tbaa !11, !alias.scope !16, !noalias !13
  %wide.load134 = load <2 x double>, ptr %22, align 8, !tbaa !11, !alias.scope !16, !noalias !13
  %23 = fneg <2 x double> %wide.load133
  %24 = fneg <2 x double> %wide.load134
  %25 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %23)
  %26 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load132, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %24)
  store <2 x double> %25, ptr %21, align 8, !tbaa !11, !alias.scope !16, !noalias !13
  store <2 x double> %26, ptr %22, align 8, !tbaa !11, !alias.scope !16, !noalias !13
  %index.next = add nuw i64 %index, 4
  %27 = icmp eq i64 %index.next, %n.vec
  br i1 %27, label %middle.block, label %vector.body, !llvm.loop !18

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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %9
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %9 ]
  %28 = getelementptr inbounds double, ptr %3, i64 %indvars.iv
  %29 = load double, ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds double, ptr %1, i64 %indvars.iv
  %31 = load double, ptr %30, align 8, !tbaa !11
  %32 = fcmp olt double %29, %31
  br i1 %32, label %33, label %40

33:                                               ; preds = %.lr.ph
  %34 = load ptr, ptr @stderr, align 8, !tbaa !21
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str) #5
  %36 = load ptr, ptr @stderr, align 8, !tbaa !21
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.192) #5
  %38 = load ptr, ptr @stderr, align 8, !tbaa !21
  %39 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.193) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

40:                                               ; preds = %.lr.ph
  %41 = getelementptr inbounds double, ptr %2, i64 %indvars.iv
  %42 = load double, ptr %41, align 8, !tbaa !11
  %43 = fcmp olt double %42, %29
  br i1 %43, label %44, label %9

44:                                               ; preds = %40
  %45 = load ptr, ptr @stderr, align 8, !tbaa !21
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str) #5
  %47 = load ptr, ptr @stderr, align 8, !tbaa !21
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.192) #5
  %49 = load ptr, ptr @stderr, align 8, !tbaa !21
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.194) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

.lr.ph79:                                         ; preds = %.lr.ph79.prol.loopexit, %.lr.ph79
  %indvars.iv98 = phi i64 [ %indvars.iv.next99.1, %.lr.ph79 ], [ %indvars.iv98.unr, %.lr.ph79.prol.loopexit ]
  %51 = getelementptr inbounds double, ptr %1, i64 %indvars.iv98
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds double, ptr %3, i64 %indvars.iv98
  %54 = load double, ptr %53, align 8, !tbaa !11
  %55 = fneg double %54
  %56 = tail call double @llvm.fmuladd.f64(double %52, double 2.000000e+00, double %55)
  store double %56, ptr %53, align 8, !tbaa !11
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %57 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next99
  %58 = load double, ptr %57, align 8, !tbaa !11
  %59 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next99
  %60 = load double, ptr %59, align 8, !tbaa !11
  %61 = fneg double %60
  %62 = tail call double @llvm.fmuladd.f64(double %58, double 2.000000e+00, double %61)
  store double %62, ptr %59, align 8, !tbaa !11
  %indvars.iv.next99.1 = add nuw nsw i64 %indvars.iv98, 2
  %exitcond102.not.1 = icmp eq i64 %indvars.iv.next99.1, %wide.trip.count101
  br i1 %exitcond102.not.1, label %._crit_edge, label %.lr.ph79, !llvm.loop !23

._crit_edge.thread:                               ; preds = %.preheader69, %.preheader70
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %.loopexit

._crit_edge:                                      ; preds = %.lr.ph79.prol.loopexit, %.lr.ph79, %middle.block
  store i32 1, ptr %4, align 4, !tbaa !5
  br i1 %7, label %.lr.ph82.preheader, label %.loopexit

.lr.ph82.preheader:                               ; preds = %._crit_edge
  %wide.trip.count106 = zext nneg i32 %0 to i64
  br label %.lr.ph82

63:                                               ; preds = %.lr.ph82
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %exitcond107.not = icmp eq i64 %indvars.iv.next104, %wide.trip.count106
  br i1 %exitcond107.not, label %.loopexit, label %.lr.ph82, !llvm.loop !24

.lr.ph82:                                         ; preds = %.lr.ph82.preheader, %63
  %indvars.iv103 = phi i64 [ 0, %.lr.ph82.preheader ], [ %indvars.iv.next104, %63 ]
  %64 = getelementptr inbounds double, ptr %1, i64 %indvars.iv103
  %65 = load double, ptr %64, align 8, !tbaa !11
  %66 = getelementptr inbounds double, ptr %2, i64 %indvars.iv103
  %67 = load double, ptr %66, align 8, !tbaa !11
  %68 = fcmp une double %65, %67
  br i1 %68, label %69, label %63

69:                                               ; preds = %.lr.ph82
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %.loopexit

.lr.ph85:                                         ; preds = %.lr.ph85.preheader, %85
  %indvars.iv108 = phi i64 [ %8, %.lr.ph85.preheader ], [ %indvars.iv.next109, %85 ]
  %indvars.iv.next109 = add nsw i64 %indvars.iv108, -1
  %70 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next109
  %71 = load double, ptr %70, align 8, !tbaa !11
  %72 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next109
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = fcmp olt double %71, %73
  br i1 %74, label %75, label %78

75:                                               ; preds = %.lr.ph85
  %76 = fneg double %71
  %77 = tail call double @llvm.fmuladd.f64(double %73, double 2.000000e+00, double %76)
  store double %77, ptr %70, align 8, !tbaa !11
  br label %.loopexit

78:                                               ; preds = %.lr.ph85
  %79 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next109
  %80 = load double, ptr %79, align 8, !tbaa !11
  %81 = fcmp olt double %71, %80
  br i1 %81, label %82, label %85

82:                                               ; preds = %78
  %83 = fneg double %71
  %84 = tail call double @llvm.fmuladd.f64(double %80, double 2.000000e+00, double %83)
  store double %84, ptr %70, align 8, !tbaa !11
  br label %.loopexit

85:                                               ; preds = %78
  %86 = fsub double %80, %73
  %87 = tail call double @llvm.fmuladd.f64(double %86, double -2.000000e+00, double %71)
  store double %87, ptr %70, align 8, !tbaa !11
  %88 = icmp ugt i64 %indvars.iv108, 1
  br i1 %88, label %.lr.ph85, label %._crit_edge86, !llvm.loop !25

._crit_edge86:                                    ; preds = %85, %.preheader
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %63, %._crit_edge.thread, %._crit_edge, %._crit_edge86, %69, %82, %75
  ret void
}

; 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>) #4

attributes #0 = { nofree 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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { cold nounwind }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14}
!14 = distinct !{!14, !15}
!15 = distinct !{!15, !"LVerDomain"}
!16 = !{!17}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !10, !19, !20}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = !{!22, !22, i64 0}
!22 = !{!"any pointer", !7, i64 0}
!23 = distinct !{!23, !10, !19}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}


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