; LLVM IR from csviragh/robotsim :: src (stat)

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

@Avg = external hidden global double, align 8
@StDev = external hidden global double, align 8
@Min = external hidden global double, align 8
@Max = external hidden global double, align 8
@StatOfCorrelation.Corr_1_2 = external hidden global double, align 8
@StatOfCorrelation.velLength1 = external hidden global double, align 8
@StatOfCorrelation.velLength2 = external hidden global double, align 8
@StatOfCorrelation.StatData = external hidden global [4 x double], align 16

; 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 double @VectAbs(ptr noundef) #1

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

; Function Attrs: nounwind uwtable
define dso_local ptr @StatOfCorrelation(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store double 0.000000e+00, ptr @Avg, align 8, !tbaa !9
  store double 0.000000e+00, ptr @StDev, align 8, !tbaa !9
  store double 2.000000e+222, ptr @Min, align 8, !tbaa !9
  store double 0.000000e+00, ptr @Max, align 8, !tbaa !9
  store double 0.000000e+00, ptr @StatOfCorrelation.Corr_1_2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store double 0.000000e+00, ptr @StatOfCorrelation.velLength1, align 8, !tbaa !9
  store double 0.000000e+00, ptr @StatOfCorrelation.velLength2, align 8, !tbaa !9
  store i32 0, ptr %3, align 4, !tbaa !11
  br label %7

7:                                                ; preds = %82, %1
  %8 = load i32, ptr %3, align 4, !tbaa !11
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.phase_t, ptr %9, i32 0, i32 5
  %11 = load i32, ptr %10, align 4, !tbaa !13
  %12 = sub nsw i32 %11, 1
  %13 = icmp slt i32 %8, %12
  br i1 %13, label %14, label %85

14:                                               ; preds = %7
  %15 = load i32, ptr %3, align 4, !tbaa !11
  %16 = add nsw i32 %15, 1
  store i32 %16, ptr %4, align 4, !tbaa !11
  br label %17

17:                                               ; preds = %78, %14
  %18 = load i32, ptr %4, align 4, !tbaa !11
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.phase_t, ptr %19, i32 0, i32 5
  %21 = load i32, ptr %20, align 4, !tbaa !13
  %22 = icmp slt i32 %18, %21
  br i1 %22, label %23, label %81

23:                                               ; preds = %17
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.phase_t, ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = load i32, ptr %3, align 4, !tbaa !11
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds ptr, ptr %26, i64 %28
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %30, ptr %5, align 8, !tbaa !5
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.phase_t, ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !15
  %34 = load i32, ptr %4, align 4, !tbaa !11
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds ptr, ptr %33, i64 %35
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  store ptr %37, ptr %6, align 8, !tbaa !5
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = call double @VectAbs(ptr noundef %38)
  store double %39, ptr @StatOfCorrelation.velLength1, align 8, !tbaa !9
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = call double @VectAbs(ptr noundef %40)
  store double %41, ptr @StatOfCorrelation.velLength2, align 8, !tbaa !9
  %42 = load double, ptr @StatOfCorrelation.velLength1, align 8, !tbaa !9
  %43 = fcmp une double %42, 0.000000e+00
  br i1 %43, label %44, label %57

44:                                               ; preds = %23
  %45 = load double, ptr @StatOfCorrelation.velLength2, align 8, !tbaa !9
  %46 = fcmp une double %45, 0.000000e+00
  br i1 %46, label %47, label %57

47:                                               ; preds = %44
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = call double @ScalarProduct(ptr noundef %48, ptr noundef %49, i32 noundef 3)
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = call double @VectAbs(ptr noundef %51)
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = call double @VectAbs(ptr noundef %53)
  %55 = fmul double %52, %54
  %56 = fdiv double %50, %55
  store double %56, ptr @StatOfCorrelation.Corr_1_2, align 8, !tbaa !9
  br label %58

57:                                               ; preds = %44, %23
  store double 0.000000e+00, ptr @StatOfCorrelation.Corr_1_2, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %57, %47
  %59 = load double, ptr @StatOfCorrelation.Corr_1_2, align 8, !tbaa !9
  %60 = load double, ptr @Max, align 8, !tbaa !9
  %61 = fcmp ogt double %59, %60
  br i1 %61, label %62, label %64

62:                                               ; preds = %58
  %63 = load double, ptr @StatOfCorrelation.Corr_1_2, align 8, !tbaa !9
  store double %63, ptr @Max, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %62, %58
  %65 = load double, ptr @StatOfCorrelation.Corr_1_2, align 8, !tbaa !9
  %66 = load double, ptr @Min, align 8, !tbaa !9
  %67 = fcmp olt double %65, %66
  br i1 %67, label %68, label %70

68:                                               ; preds = %64
  %69 = load double, ptr @StatOfCorrelation.Corr_1_2, align 8, !tbaa !9
  store double %69, ptr @Min, align 8, !tbaa !9
  br label %70

70:                                               ; preds = %68, %64
  %71 = load double, ptr @StatOfCorrelation.Corr_1_2, align 8, !tbaa !9
  %72 = load double, ptr @Avg, align 8, !tbaa !9
  %73 = fadd double %72, %71
  store double %73, ptr @Avg, align 8, !tbaa !9
  %74 = load double, ptr @StatOfCorrelation.Corr_1_2, align 8, !tbaa !9
  %75 = load double, ptr @StatOfCorrelation.Corr_1_2, align 8, !tbaa !9
  %76 = load double, ptr @StDev, align 8, !tbaa !9
  %77 = call double @llvm.fmuladd.f64(double %74, double %75, double %76)
  store double %77, ptr @StDev, align 8, !tbaa !9
  br label %78

78:                                               ; preds = %70
  %79 = load i32, ptr %4, align 4, !tbaa !11
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %4, align 4, !tbaa !11
  br label %17, !llvm.loop !16

81:                                               ; preds = %17
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %3, align 4, !tbaa !11
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %3, align 4, !tbaa !11
  br label %7, !llvm.loop !18

85:                                               ; preds = %7
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.phase_t, ptr %86, i32 0, i32 5
  %88 = load i32, ptr %87, align 4, !tbaa !13
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.phase_t, ptr %89, i32 0, i32 5
  %91 = load i32, ptr %90, align 4, !tbaa !13
  %92 = sub nsw i32 %91, 1
  %93 = mul nsw i32 %88, %92
  %94 = sitofp i32 %93 to double
  %95 = fdiv double 2.000000e+00, %94
  %96 = load double, ptr @Avg, align 8, !tbaa !9
  %97 = fmul double %96, %95
  store double %97, ptr @Avg, align 8, !tbaa !9
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.phase_t, ptr %98, i32 0, i32 5
  %100 = load i32, ptr %99, align 4, !tbaa !13
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.phase_t, ptr %101, i32 0, i32 5
  %103 = load i32, ptr %102, align 4, !tbaa !13
  %104 = sub nsw i32 %103, 1
  %105 = mul nsw i32 %100, %104
  %106 = sitofp i32 %105 to double
  %107 = fdiv double 2.000000e+00, %106
  %108 = load double, ptr @StDev, align 8, !tbaa !9
  %109 = fmul double %108, %107
  store double %109, ptr @StDev, align 8, !tbaa !9
  %110 = load double, ptr @Avg, align 8, !tbaa !9
  %111 = load double, ptr @Avg, align 8, !tbaa !9
  %112 = load double, ptr @StDev, align 8, !tbaa !9
  %113 = fneg double %110
  %114 = call double @llvm.fmuladd.f64(double %113, double %111, double %112)
  store double %114, ptr @StDev, align 8, !tbaa !9
  %115 = load double, ptr @StDev, align 8, !tbaa !9
  %116 = fcmp olt double %115, 0.000000e+00
  br i1 %116, label %117, label %118

117:                                              ; preds = %85
  store double 0.000000e+00, ptr @StDev, align 8, !tbaa !9
  br label %118

118:                                              ; preds = %117, %85
  %119 = load double, ptr @Avg, align 8, !tbaa !9
  store double %119, ptr @StatOfCorrelation.StatData, align 16, !tbaa !9
  %120 = load double, ptr @StDev, align 8, !tbaa !9
  %121 = call double @sqrt(double noundef %120) #5
  store double %121, ptr getelementptr inbounds ([4 x double], ptr @StatOfCorrelation.StatData, i64 0, i64 1), align 8, !tbaa !9
  %122 = load double, ptr @Min, align 8, !tbaa !9
  store double %122, ptr getelementptr inbounds ([4 x double], ptr @StatOfCorrelation.StatData, i64 0, i64 2), align 16, !tbaa !9
  %123 = load double, ptr @Max, align 8, !tbaa !9
  store double %123, ptr getelementptr inbounds ([4 x double], ptr @StatOfCorrelation.StatData, i64 0, i64 3), align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret ptr @StatOfCorrelation.StatData
}

declare double @ScalarProduct(ptr noundef, ptr noundef, i32 noundef) #1

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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 }

!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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 36}
!14 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 36}
!15 = !{!14, !6, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


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

@Avg = external hidden local_unnamed_addr global double, align 8
@StDev = external hidden local_unnamed_addr global double, align 8
@Min = external hidden local_unnamed_addr global double, align 8
@Max = external hidden local_unnamed_addr global double, align 8
@StatOfCorrelation.Corr_1_2 = external hidden local_unnamed_addr global double, align 8
@StatOfCorrelation.velLength1 = external hidden local_unnamed_addr global double, align 8
@StatOfCorrelation.velLength2 = external hidden local_unnamed_addr global double, align 8
@StatOfCorrelation.StatData = external hidden global [4 x double], align 16

declare double @VectAbs(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef nonnull ptr @StatOfCorrelation(ptr nocapture noundef readonly %0) local_unnamed_addr #2 {
  store double 0.000000e+00, ptr @Avg, align 8, !tbaa !5
  store double 0.000000e+00, ptr @StDev, align 8, !tbaa !5
  store double 2.000000e+222, ptr @Min, align 8, !tbaa !5
  store double 0.000000e+00, ptr @Max, align 8, !tbaa !5
  store double 0.000000e+00, ptr @StatOfCorrelation.Corr_1_2, align 8, !tbaa !5
  store double 0.000000e+00, ptr @StatOfCorrelation.velLength1, align 8, !tbaa !5
  store double 0.000000e+00, ptr @StatOfCorrelation.velLength2, align 8, !tbaa !5
  %2 = getelementptr inbounds i8, ptr %0, i64 36
  %3 = load i32, ptr %2, align 4, !tbaa !9
  %4 = add nsw i32 %3, -1
  %5 = icmp sgt i32 %3, 1
  br i1 %5, label %.lr.ph29, label %._crit_edge

.lr.ph29:                                         ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  br label %15

.loopexit:                                        ; preds = %48, %15
  %7 = phi double [ %16, %15 ], [ %44, %48 ]
  %8 = phi double [ %17, %15 ], [ %49, %48 ]
  %9 = phi double [ %18, %15 ], [ %53, %48 ]
  %10 = phi double [ %19, %15 ], [ %51, %48 ]
  %11 = phi i32 [ %20, %15 ], [ %54, %48 ]
  %12 = add nsw i32 %11, -1
  %13 = sext i32 %12 to i64
  %14 = icmp slt i64 %indvars.iv.next37, %13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 %14, label %15, label %._crit_edge, !llvm.loop !13

15:                                               ; preds = %.lr.ph29, %.loopexit
  %16 = phi double [ 0.000000e+00, %.lr.ph29 ], [ %7, %.loopexit ]
  %17 = phi double [ 2.000000e+222, %.lr.ph29 ], [ %8, %.loopexit ]
  %18 = phi double [ 0.000000e+00, %.lr.ph29 ], [ %9, %.loopexit ]
  %19 = phi double [ 0.000000e+00, %.lr.ph29 ], [ %10, %.loopexit ]
  %20 = phi i32 [ %3, %.lr.ph29 ], [ %11, %.loopexit ]
  %indvars.iv36 = phi i64 [ 0, %.lr.ph29 ], [ %indvars.iv.next37, %.loopexit ]
  %indvars.iv = phi i64 [ 1, %.lr.ph29 ], [ %indvars.iv.next, %.loopexit ]
  %indvars.iv.next37 = add nuw nsw i64 %indvars.iv36, 1
  %21 = sext i32 %20 to i64
  %22 = icmp slt i64 %indvars.iv.next37, %21
  br i1 %22, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %15, %48
  %indvars.iv33 = phi i64 [ %indvars.iv.next34, %48 ], [ %indvars.iv, %15 ]
  %23 = load ptr, ptr %6, align 8, !tbaa !15
  %24 = getelementptr inbounds ptr, ptr %23, i64 %indvars.iv36
  %25 = load ptr, ptr %24, align 8, !tbaa !16
  %26 = getelementptr inbounds ptr, ptr %23, i64 %indvars.iv33
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %28 = tail call double @VectAbs(ptr noundef %25) #4
  store double %28, ptr @StatOfCorrelation.velLength1, align 8, !tbaa !5
  %29 = tail call double @VectAbs(ptr noundef %27) #4
  store double %29, ptr @StatOfCorrelation.velLength2, align 8, !tbaa !5
  %30 = load double, ptr @StatOfCorrelation.velLength1, align 8, !tbaa !5
  %31 = fcmp une double %30, 0.000000e+00
  %32 = fcmp une double %29, 0.000000e+00
  %or.cond = select i1 %31, i1 %32, i1 false
  br i1 %or.cond, label %33, label %39

33:                                               ; preds = %.lr.ph
  %34 = tail call double @ScalarProduct(ptr noundef %25, ptr noundef %27, i32 noundef 3) #4
  %35 = tail call double @VectAbs(ptr noundef %25) #4
  %36 = tail call double @VectAbs(ptr noundef %27) #4
  %37 = fmul double %35, %36
  %38 = fdiv double %34, %37
  br label %39

39:                                               ; preds = %.lr.ph, %33
  %storemerge25 = phi double [ %38, %33 ], [ 0.000000e+00, %.lr.ph ]
  store double %storemerge25, ptr @StatOfCorrelation.Corr_1_2, align 8, !tbaa !5
  %40 = load double, ptr @Max, align 8, !tbaa !5
  %41 = fcmp ogt double %storemerge25, %40
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  store double %storemerge25, ptr @Max, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %42, %39
  %44 = phi double [ %storemerge25, %42 ], [ %40, %39 ]
  %45 = load double, ptr @Min, align 8, !tbaa !5
  %46 = fcmp olt double %storemerge25, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %43
  store double %storemerge25, ptr @Min, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %47, %43
  %49 = phi double [ %storemerge25, %47 ], [ %45, %43 ]
  %50 = load double, ptr @Avg, align 8, !tbaa !5
  %51 = fadd double %storemerge25, %50
  store double %51, ptr @Avg, align 8, !tbaa !5
  %52 = load double, ptr @StDev, align 8, !tbaa !5
  %53 = tail call double @llvm.fmuladd.f64(double %storemerge25, double %storemerge25, double %52)
  store double %53, ptr @StDev, align 8, !tbaa !5
  %indvars.iv.next34 = add nuw nsw i64 %indvars.iv33, 1
  %54 = load i32, ptr %2, align 4, !tbaa !9
  %55 = trunc nuw i64 %indvars.iv.next34 to i32
  %56 = icmp sgt i32 %54, %55
  br i1 %56, label %.lr.ph, label %.loopexit, !llvm.loop !17

._crit_edge:                                      ; preds = %.loopexit, %1
  %57 = phi double [ 0.000000e+00, %1 ], [ %7, %.loopexit ]
  %58 = phi double [ 2.000000e+222, %1 ], [ %8, %.loopexit ]
  %59 = phi double [ 0.000000e+00, %1 ], [ %9, %.loopexit ]
  %60 = phi double [ 0.000000e+00, %1 ], [ %10, %.loopexit ]
  %.lcssa26 = phi i32 [ %3, %1 ], [ %11, %.loopexit ]
  %.lcssa = phi i32 [ %4, %1 ], [ %12, %.loopexit ]
  %61 = mul nsw i32 %.lcssa, %.lcssa26
  %62 = sitofp i32 %61 to double
  %63 = fdiv double 2.000000e+00, %62
  %64 = fmul double %63, %60
  store double %64, ptr @Avg, align 8, !tbaa !5
  %65 = fmul double %63, %59
  %66 = fneg double %64
  %67 = tail call double @llvm.fmuladd.f64(double %66, double %64, double %65)
  %68 = fcmp olt double %67, 0.000000e+00
  %storemerge = select i1 %68, double 0.000000e+00, double %67
  store double %storemerge, ptr @StDev, align 8, !tbaa !5
  store double %64, ptr @StatOfCorrelation.StatData, align 16, !tbaa !5
  %sqrt = tail call double @llvm.sqrt.f64(double %storemerge)
  store double %sqrt, ptr getelementptr inbounds (i8, ptr @StatOfCorrelation.StatData, i64 8), align 8, !tbaa !5
  store double %58, ptr getelementptr inbounds (i8, ptr @StatOfCorrelation.StatData, i64 16), align 16, !tbaa !5
  store double %57, ptr getelementptr inbounds (i8, ptr @StatOfCorrelation.StatData, i64 24), align 8, !tbaa !5
  ret ptr @StatOfCorrelation.StatData
}

declare double @ScalarProduct(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

attributes #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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

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


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