; LLVM IR from tfhe/spqlios-arithmetic :: spqlios/q120 (q120_ntt)

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

@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@OMEGAS_VEC = external hidden constant [4 x i32], align 16
@PRIMES_VEC = external hidden constant [4 x i32], align 16
@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [47 x i8], align 1
@__PRETTY_FUNCTION__.fill_omegas = external hidden unnamed_addr constant [45 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 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: nounwind
declare double @log2(double noundef) #2

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

; 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
declare dso_local i32 @modq_pow(i32 noundef, i64 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @fill_omegas(i64 noundef %0, ptr noundef %1) #4 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  store i64 %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %11

11:                                               ; preds = %28, %2
  %12 = load i64, ptr %5, align 8, !tbaa !5
  %13 = icmp ult i64 %12, 4
  br i1 %13, label %15, label %14

14:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %31

15:                                               ; preds = %11
  %16 = load i64, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds [4 x i32], ptr @OMEGAS_VEC, i64 0, i64 %16
  %18 = load i32, ptr %17, align 4, !tbaa !11
  %19 = load i64, ptr %3, align 8, !tbaa !5
  %20 = udiv i64 65536, %19
  %21 = load i64, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds [4 x i32], ptr @PRIMES_VEC, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !11
  %24 = call i32 @modq_pow(i32 noundef %18, i64 noundef %20, i32 noundef %23)
  %25 = load ptr, ptr %4, align 8, !tbaa !9
  %26 = load i64, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds i32, ptr %25, i64 %26
  store i32 %24, ptr %27, align 4, !tbaa !11
  br label %28

28:                                               ; preds = %15
  %29 = load i64, ptr %5, align 8, !tbaa !5
  %30 = add i64 %29, 1
  store i64 %30, ptr %5, align 8, !tbaa !5
  br label %11, !llvm.loop !13

31:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %32 = load i32, ptr @PRIMES_VEC, align 16, !tbaa !11
  %33 = uitofp i32 %32 to double
  %34 = call double @log2(double noundef %33) #5
  %35 = call double @llvm.ceil.f64(double %34)
  %36 = fptoui double %35 to i64
  store i64 %36, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !11
  br label %37

37:                                               ; preds = %56, %31
  %38 = load i32, ptr %7, align 4, !tbaa !11
  %39 = icmp slt i32 %38, 4
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %59

41:                                               ; preds = %37
  %42 = load i64, ptr %6, align 8, !tbaa !5
  %43 = uitofp i64 %42 to double
  %44 = load i32, ptr %7, align 4, !tbaa !11
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [4 x i32], ptr @PRIMES_VEC, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !11
  %48 = uitofp i32 %47 to double
  %49 = call double @log2(double noundef %48) #5
  %50 = call double @llvm.ceil.f64(double %49)
  %51 = fcmp une double %43, %50
  br i1 %51, label %52, label %55

52:                                               ; preds = %41
  %53 = load ptr, ptr @stderr, align 8, !tbaa !9
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.2) #5
  call void @exit(i32 noundef -1) #6
  unreachable

55:                                               ; preds = %41
  br label %56

56:                                               ; preds = %55
  %57 = load i32, ptr %7, align 4, !tbaa !11
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %7, align 4, !tbaa !11
  br label %37, !llvm.loop !15

59:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %103, %59
  %61 = load i64, ptr %8, align 8, !tbaa !5
  %62 = icmp ult i64 %61, 4
  br i1 %62, label %64, label %63

63:                                               ; preds = %60
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %106

64:                                               ; preds = %60
  %65 = load ptr, ptr %4, align 8, !tbaa !9
  %66 = load i64, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds i32, ptr %65, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !11
  %69 = load i64, ptr %3, align 8, !tbaa !5
  %70 = mul i64 2, %69
  %71 = load i64, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds [4 x i32], ptr @PRIMES_VEC, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !11
  %74 = call i32 @modq_pow(i32 noundef %68, i64 noundef %70, i32 noundef %73)
  %75 = icmp eq i32 %74, 1
  br i1 %75, label %76, label %77

76:                                               ; preds = %64
  br label %78

77:                                               ; preds = %64
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 51, ptr noundef @__PRETTY_FUNCTION__.fill_omegas) #6
  unreachable

78:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 1, ptr %10, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %99, %78
  %80 = load i64, ptr %10, align 8, !tbaa !5
  %81 = load i64, ptr %3, align 8, !tbaa !5
  %82 = mul i64 2, %81
  %83 = icmp ult i64 %80, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %79
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %102

85:                                               ; preds = %79
  %86 = load ptr, ptr %4, align 8, !tbaa !9
  %87 = load i64, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds i32, ptr %86, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !11
  %90 = load i64, ptr %10, align 8, !tbaa !5
  %91 = load i64, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds [4 x i32], ptr @PRIMES_VEC, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !11
  %94 = call i32 @modq_pow(i32 noundef %89, i64 noundef %90, i32 noundef %93)
  %95 = icmp ne i32 %94, 1
  br i1 %95, label %96, label %97

96:                                               ; preds = %85
  br label %98

97:                                               ; preds = %85
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 53, ptr noundef @__PRETTY_FUNCTION__.fill_omegas) #6
  unreachable

98:                                               ; preds = %96
  br label %99

99:                                               ; preds = %98
  %100 = load i64, ptr %10, align 8, !tbaa !5
  %101 = add i64 %100, 1
  store i64 %101, ptr %10, align 8, !tbaa !5
  br label %79, !llvm.loop !16

102:                                              ; preds = %84
  br label %103

103:                                              ; preds = %102
  %104 = load i64, ptr %8, align 8, !tbaa !5
  %105 = add i64 %104, 1
  store i64 %105, ptr %8, align 8, !tbaa !5
  br label %60, !llvm.loop !17

106:                                              ; preds = %63
  %107 = load i64, ptr %6, align 8, !tbaa !5
  %108 = icmp ugt i64 %107, 31
  br i1 %108, label %109, label %112

109:                                              ; preds = %106
  %110 = load ptr, ptr @stderr, align 8, !tbaa !9
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str.5) #5
  call void @exit(i32 noundef -1) #6
  unreachable

112:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  ret void
}

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

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

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 "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 = !{!"long", !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 = !{!"int", !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"

@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@OMEGAS_VEC = external hidden local_unnamed_addr constant [4 x i32], align 16
@PRIMES_VEC = external hidden local_unnamed_addr constant [4 x i32], align 16
@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [47 x i8], align 1
@__PRETTY_FUNCTION__.fill_omegas = external hidden unnamed_addr constant [45 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 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: mustprogress nofree nounwind willreturn memory(write)
declare double @log2(double noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @modq_pow(i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @fill_omegas(i64 noundef %0, ptr nocapture noundef %1) local_unnamed_addr #3 {
  %3 = udiv i64 65536, %0
  %4 = load i32, ptr @OMEGAS_VEC, align 16, !tbaa !5
  %5 = load i32, ptr @PRIMES_VEC, align 16, !tbaa !5
  %6 = tail call i32 @modq_pow(i32 noundef %4, i64 noundef %3, i32 noundef %5)
  store i32 %6, ptr %1, align 4, !tbaa !5
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @OMEGAS_VEC, i64 4), align 4, !tbaa !5
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @PRIMES_VEC, i64 4), align 4, !tbaa !5
  %9 = tail call i32 @modq_pow(i32 noundef %7, i64 noundef %3, i32 noundef %8)
  %10 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 %9, ptr %10, align 4, !tbaa !5
  %11 = load i32, ptr getelementptr inbounds (i8, ptr @OMEGAS_VEC, i64 8), align 8, !tbaa !5
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @PRIMES_VEC, i64 8), align 8, !tbaa !5
  %13 = tail call i32 @modq_pow(i32 noundef %11, i64 noundef %3, i32 noundef %12)
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %13, ptr %14, align 4, !tbaa !5
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @OMEGAS_VEC, i64 12), align 4, !tbaa !5
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @PRIMES_VEC, i64 12), align 4, !tbaa !5
  %17 = tail call i32 @modq_pow(i32 noundef %15, i64 noundef %3, i32 noundef %16)
  %18 = getelementptr inbounds i8, ptr %1, i64 12
  store i32 %17, ptr %18, align 4, !tbaa !5
  %19 = uitofp i32 %5 to double
  %20 = tail call double @log2(double noundef %19) #5
  %21 = tail call double @llvm.ceil.f64(double %20)
  %22 = fptoui double %21 to i64
  %23 = uitofp i64 %22 to double
  %24 = uitofp i32 %8 to double
  %25 = tail call double @log2(double noundef %24) #5
  %26 = tail call double @llvm.ceil.f64(double %25)
  %27 = fcmp une double %26, %23
  br i1 %27, label %69, label %28

28:                                               ; preds = %2
  %29 = uitofp i32 %12 to double
  %30 = tail call double @log2(double noundef %29) #5
  %31 = tail call double @llvm.ceil.f64(double %30)
  %32 = fcmp une double %31, %23
  br i1 %32, label %69, label %33

33:                                               ; preds = %28
  %34 = uitofp i32 %16 to double
  %35 = tail call double @log2(double noundef %34) #5
  %36 = tail call double @llvm.ceil.f64(double %35)
  %37 = fcmp une double %36, %23
  br i1 %37, label %69, label %.preheader27

.preheader27:                                     ; preds = %33
  %38 = shl i64 %0, 1
  %.not = icmp eq i64 %38, 0
  %39 = load i32, ptr %1, align 4, !tbaa !5
  br i1 %.not, label %.preheader27.split.preheader, label %.preheader27.split.us.preheader

.preheader27.split.us.preheader:                  ; preds = %.preheader27
  %40 = tail call i32 @modq_pow(i32 noundef %39, i64 noundef %38, i32 noundef %5)
  %41 = icmp eq i32 %40, 1
  br i1 %41, label %.preheader.us, label %.split.us

.preheader27.split.preheader:                     ; preds = %.preheader27
  %42 = tail call i32 @modq_pow(i32 noundef %39, i64 noundef 0, i32 noundef %5)
  %43 = icmp eq i32 %42, 1
  br i1 %43, label %.preheader, label %.split.us

44:                                               ; preds = %.preheader.us
  %45 = add nuw i64 %.030.us, 1
  %exitcond.not = icmp eq i64 %45, %38
  br i1 %exitcond.not, label %._crit_edge.us, label %.preheader.us, !llvm.loop !9

.preheader.us:                                    ; preds = %.preheader27.split.us.preheader, %44
  %.030.us = phi i64 [ %45, %44 ], [ 1, %.preheader27.split.us.preheader ]
  %46 = load i32, ptr %1, align 4, !tbaa !5
  %47 = tail call i32 @modq_pow(i32 noundef %46, i64 noundef %.030.us, i32 noundef %5)
  %.not.us = icmp eq i32 %47, 1
  br i1 %.not.us, label %.split35.us, label %44

._crit_edge.us:                                   ; preds = %44
  %48 = load i32, ptr %10, align 4, !tbaa !5
  %49 = tail call i32 @modq_pow(i32 noundef %48, i64 noundef %38, i32 noundef %8)
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %.preheader.us.1, label %.split.us

.preheader.us.1:                                  ; preds = %._crit_edge.us, %53
  %.030.us.1 = phi i64 [ %54, %53 ], [ 1, %._crit_edge.us ]
  %51 = load i32, ptr %10, align 4, !tbaa !5
  %52 = tail call i32 @modq_pow(i32 noundef %51, i64 noundef %.030.us.1, i32 noundef %8)
  %.not.us.1 = icmp eq i32 %52, 1
  br i1 %.not.us.1, label %.split35.us, label %53

53:                                               ; preds = %.preheader.us.1
  %54 = add nuw i64 %.030.us.1, 1
  %exitcond.1.not = icmp eq i64 %54, %38
  br i1 %exitcond.1.not, label %._crit_edge.us.1, label %.preheader.us.1, !llvm.loop !9

._crit_edge.us.1:                                 ; preds = %53
  %55 = load i32, ptr %14, align 4, !tbaa !5
  %56 = tail call i32 @modq_pow(i32 noundef %55, i64 noundef %38, i32 noundef %12)
  %57 = icmp eq i32 %56, 1
  br i1 %57, label %.preheader.us.2, label %.split.us

.preheader.us.2:                                  ; preds = %._crit_edge.us.1, %60
  %.030.us.2 = phi i64 [ %61, %60 ], [ 1, %._crit_edge.us.1 ]
  %58 = load i32, ptr %14, align 4, !tbaa !5
  %59 = tail call i32 @modq_pow(i32 noundef %58, i64 noundef %.030.us.2, i32 noundef %12)
  %.not.us.2 = icmp eq i32 %59, 1
  br i1 %.not.us.2, label %.split35.us, label %60

60:                                               ; preds = %.preheader.us.2
  %61 = add nuw i64 %.030.us.2, 1
  %exitcond.2.not = icmp eq i64 %61, %38
  br i1 %exitcond.2.not, label %._crit_edge.us.2, label %.preheader.us.2, !llvm.loop !9

._crit_edge.us.2:                                 ; preds = %60
  %62 = load i32, ptr %18, align 4, !tbaa !5
  %63 = tail call i32 @modq_pow(i32 noundef %62, i64 noundef %38, i32 noundef %16)
  %64 = icmp eq i32 %63, 1
  br i1 %64, label %.preheader.us.3, label %.split.us

.preheader.us.3:                                  ; preds = %._crit_edge.us.2, %67
  %.030.us.3 = phi i64 [ %68, %67 ], [ 1, %._crit_edge.us.2 ]
  %65 = load i32, ptr %18, align 4, !tbaa !5
  %66 = tail call i32 @modq_pow(i32 noundef %65, i64 noundef %.030.us.3, i32 noundef %16)
  %.not.us.3 = icmp eq i32 %66, 1
  br i1 %.not.us.3, label %.split35.us, label %67

67:                                               ; preds = %.preheader.us.3
  %68 = add nuw i64 %.030.us.3, 1
  %exitcond.3.not = icmp eq i64 %68, %38
  br i1 %exitcond.3.not, label %.split33.us, label %.preheader.us.3, !llvm.loop !9

69:                                               ; preds = %33, %28, %2
  %70 = load ptr, ptr @stderr, align 8, !tbaa !11
  %71 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.2) #6
  tail call void @exit(i32 noundef -1) #7
  unreachable

.split33.us:                                      ; preds = %67, %.preheader.2
  %72 = icmp ugt i64 %22, 31
  br i1 %72, label %82, label %85

.preheader:                                       ; preds = %.preheader27.split.preheader
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = tail call i32 @modq_pow(i32 noundef %73, i64 noundef 0, i32 noundef %8)
  %75 = icmp eq i32 %74, 1
  br i1 %75, label %.preheader.1, label %.split.us

.preheader.1:                                     ; preds = %.preheader
  %76 = load i32, ptr %14, align 4, !tbaa !5
  %77 = tail call i32 @modq_pow(i32 noundef %76, i64 noundef 0, i32 noundef %12)
  %78 = icmp eq i32 %77, 1
  br i1 %78, label %.preheader.2, label %.split.us

.preheader.2:                                     ; preds = %.preheader.1
  %79 = load i32, ptr %18, align 4, !tbaa !5
  %80 = tail call i32 @modq_pow(i32 noundef %79, i64 noundef 0, i32 noundef %16)
  %81 = icmp eq i32 %80, 1
  br i1 %81, label %.split33.us, label %.split.us

.split.us:                                        ; preds = %.preheader27.split.us.preheader, %._crit_edge.us, %._crit_edge.us.1, %._crit_edge.us.2, %.preheader27.split.preheader, %.preheader, %.preheader.1, %.preheader.2
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 51, ptr noundef nonnull @__PRETTY_FUNCTION__.fill_omegas) #7
  unreachable

.split35.us:                                      ; preds = %.preheader.us, %.preheader.us.1, %.preheader.us.2, %.preheader.us.3
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 53, ptr noundef nonnull @__PRETTY_FUNCTION__.fill_omegas) #7
  unreachable

82:                                               ; preds = %.split33.us
  %83 = load ptr, ptr @stderr, align 8, !tbaa !11
  %84 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef nonnull @.str.5) #6
  tail call void @exit(i32 noundef -1) #7
  unreachable

85:                                               ; preds = %.split33.us
  ret void
}

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

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

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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 #5 = { nounwind }
attributes #6 = { cold nounwind }
attributes #7 = { 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 = !{!"any pointer", !7, i64 0}


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