; LLVM IR from TobiasKozel/VAE :: external/portaudio/qa/loopback/src (audio_analyzer)

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

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [101 x i8], align 1
@g_testsFailed = external global i32, align 4
@g_testsPassed = external global i32, align 4
@.str.5 = external hidden unnamed_addr constant [24 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

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local double @PaQa_FindFirstMatch(ptr noundef %0, ptr noundef %1, i32 noundef %2, double noundef %3) #2 {
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca ptr, align 8
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store double %3, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.PaQaRecording_s, ptr %25, i32 0, i32 2
  %27 = load i32, ptr %26, align 8, !tbaa !13
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = sub nsw i32 %27, %28
  store i32 %29, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 -1, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store double 0.000000e+00, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 -1, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  store double -1.000000e+00, ptr %17, align 8, !tbaa !11
  %30 = load i32, ptr %8, align 4, !tbaa !9
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.PaQaRecording_s, ptr %31, i32 0, i32 2
  %33 = load i32, ptr %32, align 8, !tbaa !13
  %34 = icmp slt i32 %30, %33
  br i1 %34, label %39, label %35

35:                                               ; preds = %4
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 363, ptr noundef @.str.5)
  %37 = load i32, ptr @g_testsFailed, align 4, !tbaa !9
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr @g_testsFailed, align 4, !tbaa !9
  br label %141

39:                                               ; preds = %4
  %40 = load i32, ptr @g_testsPassed, align 4, !tbaa !9
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr @g_testsPassed, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %39
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %136, %42
  %44 = load i32, ptr %10, align 4, !tbaa !9
  %45 = load i32, ptr %12, align 4, !tbaa !9
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %47, label %139

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.PaQaRecording_s, ptr %48, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !15
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds float, ptr %50, i64 %52
  store ptr %53, ptr %21, align 8, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %73, %47
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %58, label %76

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds float, ptr %59, i64 %61
  %63 = load float, ptr %62, align 4, !tbaa !16
  store float %63, ptr %22, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %64 = load ptr, ptr %21, align 8, !tbaa !5
  %65 = getelementptr inbounds float, ptr %64, i32 1
  store ptr %65, ptr %21, align 8, !tbaa !5
  %66 = load float, ptr %64, align 4, !tbaa !16
  store float %66, ptr %23, align 4, !tbaa !16
  %67 = load float, ptr %22, align 4, !tbaa !16
  %68 = load float, ptr %23, align 4, !tbaa !16
  %69 = fmul float %67, %68
  %70 = fpext float %69 to double
  %71 = load double, ptr %20, align 8, !tbaa !11
  %72 = fadd double %71, %70
  store double %72, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  br label %73

73:                                               ; preds = %58
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %11, align 4, !tbaa !9
  br label %54, !llvm.loop !18

76:                                               ; preds = %54
  %77 = load double, ptr %20, align 8, !tbaa !11
  %78 = load double, ptr %13, align 8, !tbaa !11
  %79 = fcmp ogt double %77, %78
  br i1 %79, label %80, label %83

80:                                               ; preds = %76
  %81 = load double, ptr %20, align 8, !tbaa !11
  store double %81, ptr %13, align 8, !tbaa !11
  %82 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %82, ptr %14, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %80, %76
  %84 = load double, ptr %20, align 8, !tbaa !11
  %85 = fneg double %84
  %86 = load double, ptr %15, align 8, !tbaa !11
  %87 = fcmp ogt double %85, %86
  br i1 %87, label %88, label %92

88:                                               ; preds = %83
  %89 = load double, ptr %20, align 8, !tbaa !11
  %90 = fneg double %89
  store double %90, ptr %15, align 8, !tbaa !11
  %91 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %91, ptr %16, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %88, %83
  %93 = load double, ptr %13, align 8, !tbaa !11
  %94 = load double, ptr %9, align 8, !tbaa !11
  %95 = fcmp ogt double %93, %94
  br i1 %95, label %96, label %101

96:                                               ; preds = %92
  %97 = load double, ptr %20, align 8, !tbaa !11
  %98 = load double, ptr %13, align 8, !tbaa !11
  %99 = fmul double 5.000000e-01, %98
  %100 = fcmp olt double %97, %99
  br label %101

101:                                              ; preds = %96, %92
  %102 = phi i1 [ false, %92 ], [ %100, %96 ]
  %103 = zext i1 %102 to i32
  store i32 %103, ptr %18, align 4, !tbaa !9
  %104 = load double, ptr %15, align 8, !tbaa !11
  %105 = load double, ptr %9, align 8, !tbaa !11
  %106 = fcmp ogt double %104, %105
  br i1 %106, label %107, label %113

107:                                              ; preds = %101
  %108 = load double, ptr %20, align 8, !tbaa !11
  %109 = fneg double %108
  %110 = load double, ptr %15, align 8, !tbaa !11
  %111 = fmul double 5.000000e-01, %110
  %112 = fcmp olt double %109, %111
  br label %113

113:                                              ; preds = %107, %101
  %114 = phi i1 [ false, %101 ], [ %112, %107 ]
  %115 = zext i1 %114 to i32
  store i32 %115, ptr %19, align 4, !tbaa !9
  %116 = load i32, ptr %18, align 4, !tbaa !9
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %132

118:                                              ; preds = %113
  %119 = load i32, ptr %19, align 4, !tbaa !9
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %132

121:                                              ; preds = %118
  %122 = load double, ptr %13, align 8, !tbaa !11
  %123 = load double, ptr %15, align 8, !tbaa !11
  %124 = fcmp ogt double %122, %123
  br i1 %124, label %125, label %128

125:                                              ; preds = %121
  %126 = load i32, ptr %14, align 4, !tbaa !9
  %127 = sitofp i32 %126 to double
  store double %127, ptr %17, align 8, !tbaa !11
  br label %131

128:                                              ; preds = %121
  %129 = load i32, ptr %16, align 4, !tbaa !9
  %130 = sitofp i32 %129 to double
  store double %130, ptr %17, align 8, !tbaa !11
  br label %131

131:                                              ; preds = %128, %125
  store i32 3, ptr %24, align 4
  br label %133

132:                                              ; preds = %118, %113
  store i32 0, ptr %24, align 4
  br label %133

133:                                              ; preds = %132, %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  %134 = load i32, ptr %24, align 4
  switch i32 %134, label %144 [
    i32 0, label %135
    i32 3, label %139
  ]

135:                                              ; preds = %133
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %10, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %10, align 4, !tbaa !9
  br label %43, !llvm.loop !20

139:                                              ; preds = %133, %43
  %140 = load double, ptr %17, align 8, !tbaa !11
  store double %140, ptr %5, align 8
  store i32 1, ptr %24, align 4
  br label %142

141:                                              ; preds = %35
  store double -1.000000e+00, ptr %5, align 8
  store i32 1, ptr %24, align 4
  br label %142

142:                                              ; preds = %141, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %143 = load double, ptr %5, align 8
  ret double %143

144:                                              ; preds = %133
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 16}
!14 = !{!"PaQaRecording_s", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 20}
!15 = !{!14, !6, i64 8}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !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 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [101 x i8], align 1
@g_testsFailed = external local_unnamed_addr global i32, align 4
@g_testsPassed = external local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1

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

; Function Attrs: nofree nounwind uwtable
define dso_local double @PaQa_FindFirstMatch(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2, double noundef %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = sub i32 %6, %2
  %8 = icmp sgt i32 %6, %2
  br i1 %8, label %13, label %9

9:                                                ; preds = %4
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.1, i32 noundef 363, ptr noundef nonnull @.str.5)
  %11 = load i32, ptr @g_testsFailed, align 4, !tbaa !11
  %12 = add nsw i32 %11, 1
  store i32 %12, ptr @g_testsFailed, align 4, !tbaa !11
  br label %.loopexit

13:                                               ; preds = %4
  %14 = load i32, ptr @g_testsPassed, align 4, !tbaa !11
  %15 = add nsw i32 %14, 1
  store i32 %15, ptr @g_testsPassed, align 4, !tbaa !11
  %16 = icmp sgt i32 %7, 0
  br i1 %16, label %.lr.ph70, label %.loopexit

.lr.ph70:                                         ; preds = %13
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !12
  %19 = icmp sgt i32 %2, 0
  br i1 %19, label %.lr.ph.us.preheader, label %.loopexit

.lr.ph.us.preheader:                              ; preds = %.lr.ph70
  %wide.trip.count85 = zext nneg i32 %7 to i64
  %wide.trip.count = zext nneg i32 %2 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %20 = icmp ult i32 %2, 4
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %22
  %indvars.iv82 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next83, %22 ]
  %.04867.us = phi double [ 0.000000e+00, %.lr.ph.us.preheader ], [ %.1.us, %22 ]
  %.05166.us = phi i32 [ -1, %.lr.ph.us.preheader ], [ %.152.us, %22 ]
  %.05365.us = phi double [ 0.000000e+00, %.lr.ph.us.preheader ], [ %.154.us, %22 ]
  %.05564.us = phi i32 [ -1, %.lr.ph.us.preheader ], [ %.156.us, %22 ]
  %21 = getelementptr inbounds float, ptr %18, i64 %indvars.iv82
  br i1 %20, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new

22:                                               ; preds = %._crit_edge.us
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %exitcond86.not = icmp eq i64 %indvars.iv.next83, %wide.trip.count85
  br i1 %exitcond86.not, label %.loopexit, label %.lr.ph.us, !llvm.loop !13

.lr.ph.us.new:                                    ; preds = %.lr.ph.us, %.lr.ph.us.new
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %.04561.us = phi ptr [ %46, %.lr.ph.us.new ], [ %21, %.lr.ph.us ]
  %.04660.us = phi double [ %50, %.lr.ph.us.new ], [ 0.000000e+00, %.lr.ph.us ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %23 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  %24 = load float, ptr %23, align 4, !tbaa !15
  %25 = getelementptr inbounds i8, ptr %.04561.us, i64 4
  %26 = load float, ptr %.04561.us, align 4, !tbaa !15
  %27 = fmul float %24, %26
  %28 = fpext float %27 to double
  %29 = fadd double %.04660.us, %28
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %30 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next
  %31 = load float, ptr %30, align 4, !tbaa !15
  %32 = getelementptr inbounds i8, ptr %.04561.us, i64 8
  %33 = load float, ptr %25, align 4, !tbaa !15
  %34 = fmul float %31, %33
  %35 = fpext float %34 to double
  %36 = fadd double %29, %35
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %37 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next.1
  %38 = load float, ptr %37, align 4, !tbaa !15
  %39 = getelementptr inbounds i8, ptr %.04561.us, i64 12
  %40 = load float, ptr %32, align 4, !tbaa !15
  %41 = fmul float %38, %40
  %42 = fpext float %41 to double
  %43 = fadd double %36, %42
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %44 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next.2
  %45 = load float, ptr %44, align 4, !tbaa !15
  %46 = getelementptr inbounds i8, ptr %.04561.us, i64 16
  %47 = load float, ptr %39, align 4, !tbaa !15
  %48 = fmul float %45, %47
  %49 = fpext float %48 to double
  %50 = fadd double %43, %49
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add nuw i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new, !llvm.loop !17

._crit_edge.us.unr-lcssa:                         ; preds = %.lr.ph.us.new, %.lr.ph.us
  %.lcssa.ph = phi double [ poison, %.lr.ph.us ], [ %50, %.lr.ph.us.new ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next.3, %.lr.ph.us.new ]
  %.04561.us.unr = phi ptr [ %21, %.lr.ph.us ], [ %46, %.lr.ph.us.new ]
  %.04660.us.unr = phi double [ 0.000000e+00, %.lr.ph.us ], [ %50, %.lr.ph.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.us.unr-lcssa ]
  %.04561.us.epil = phi ptr [ %53, %.epil.preheader ], [ %.04561.us.unr, %._crit_edge.us.unr-lcssa ]
  %.04660.us.epil = phi double [ %57, %.epil.preheader ], [ %.04660.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %51 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.epil
  %52 = load float, ptr %51, align 4, !tbaa !15
  %53 = getelementptr inbounds i8, ptr %.04561.us.epil, i64 4
  %54 = load float, ptr %.04561.us.epil, align 4, !tbaa !15
  %55 = fmul float %52, %54
  %56 = fpext float %55 to double
  %57 = fadd double %.04660.us.epil, %56
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !18

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge.us.unr-lcssa ], [ %57, %.epil.preheader ]
  %58 = fcmp ogt double %.lcssa, %.04867.us
  %59 = trunc nuw nsw i64 %indvars.iv82 to i32
  %.156.us = select i1 %58, i32 %59, i32 %.05564.us
  %.1.us = select i1 %58, double %.lcssa, double %.04867.us
  %60 = fneg double %.lcssa
  %61 = fcmp olt double %.05365.us, %60
  %.154.us = select i1 %61, double %60, double %.05365.us
  %.152.us = select i1 %61, i32 %59, i32 %.05166.us
  %62 = fcmp ogt double %.1.us, %3
  %63 = fmul double %.1.us, 5.000000e-01
  %64 = fcmp olt double %.lcssa, %63
  %65 = and i1 %62, %64
  %66 = fcmp ogt double %.154.us, %3
  %67 = fmul double %.154.us, 5.000000e-01
  %68 = fcmp ogt double %67, %60
  %69 = and i1 %66, %68
  %or.cond.us = and i1 %65, %69
  br i1 %or.cond.us, label %.loopexit.split.loop.exit62, label %22

.loopexit.split.loop.exit62:                      ; preds = %._crit_edge.us
  %70 = fcmp ogt double %.1.us, %.154.us
  %.156..152.le = select i1 %70, i32 %.156.us, i32 %.152.us
  %.150.le = sitofp i32 %.156..152.le to double
  br label %.loopexit

.loopexit:                                        ; preds = %22, %.lr.ph70, %.loopexit.split.loop.exit62, %13, %9
  %.043 = phi double [ -1.000000e+00, %9 ], [ %.150.le, %.loopexit.split.loop.exit62 ], [ -1.000000e+00, %13 ], [ -1.000000e+00, %.lr.ph70 ], [ -1.000000e+00, %22 ]
  ret double %.043
}

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 = { nofree 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" }

!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 16}
!6 = !{!"PaQaRecording_s", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 20}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !8, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}


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