; LLVM IR from tangjz/acm-icpc :: 51nod/1162.ll (Z12miller_rabinn)

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

; 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: mustprogress nounwind uwtable
declare dso_local noundef { i64, i64 } @_Z7rand120v() #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef { i64, i64 } @_Z7mod_mulnnn(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef { i64, i64 } @_Z7mod_pownnn(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_Z12miller_rabinn(i64 noundef %0, i64 noundef %1) #1 {
  %3 = alloca i1, align 1
  %4 = alloca i128, align 16
  %5 = alloca i128, align 16
  %6 = alloca i32, align 4
  %7 = alloca i128, align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i128, align 16
  %11 = alloca i128, align 16
  %12 = alloca i128, align 16
  %13 = alloca i128, align 16
  %14 = alloca i128, align 16
  %15 = alloca i128, align 16
  %16 = alloca i128, align 16
  %17 = alloca i32, align 4
  %18 = alloca i128, align 16
  %19 = alloca i128, align 16
  %20 = alloca i128, align 16
  %21 = alloca i128, align 16
  %22 = getelementptr inbounds { i64, i64 }, ptr %4, i32 0, i32 0
  store i64 %0, ptr %22, align 16
  %23 = getelementptr inbounds { i64, i64 }, ptr %4, i32 0, i32 1
  store i64 %1, ptr %23, align 8
  %24 = load i128, ptr %4, align 16, !tbaa !5
  store i128 %24, ptr %5, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #2
  %25 = load i128, ptr %5, align 16, !tbaa !5
  %26 = sub nsw i128 %25, 1
  store i128 %26, ptr %7, align 16, !tbaa !5
  br label %27

27:                                               ; preds = %33, %2
  %28 = load i128, ptr %7, align 16, !tbaa !5
  %29 = and i128 %28, 1
  %30 = icmp ne i128 %29, 0
  %31 = xor i1 %30, true
  br i1 %31, label %32, label %38

32:                                               ; preds = %27
  br label %33

33:                                               ; preds = %32
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %6, align 4, !tbaa !9
  %36 = load i128, ptr %7, align 16, !tbaa !5
  %37 = ashr i128 %36, 1
  store i128 %37, ptr %7, align 16, !tbaa !5
  br label %27, !llvm.loop !11

38:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %127, %38
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = icmp slt i32 %40, 21
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  store i32 5, ptr %9, align 4
  br label %130

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #2
  %44 = call noundef { i64, i64 } @_Z7rand120v()
  %45 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %46 = extractvalue { i64, i64 } %44, 0
  store i64 %46, ptr %45, align 16
  %47 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %48 = extractvalue { i64, i64 } %44, 1
  store i64 %48, ptr %47, align 8
  %49 = load i128, ptr %11, align 16, !tbaa !5
  %50 = load i128, ptr %5, align 16, !tbaa !5
  %51 = sub nsw i128 %50, 2
  %52 = srem i128 %49, %51
  %53 = add nsw i128 %52, 2
  %54 = load i128, ptr %7, align 16, !tbaa !5
  %55 = load i128, ptr %5, align 16, !tbaa !5
  store i128 %53, ptr %12, align 16, !tbaa !5
  %56 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %57 = load i64, ptr %56, align 16
  %58 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %59 = load i64, ptr %58, align 8
  store i128 %54, ptr %13, align 16, !tbaa !5
  %60 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 0
  %61 = load i64, ptr %60, align 16
  %62 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 1
  %63 = load i64, ptr %62, align 8
  store i128 %55, ptr %14, align 16, !tbaa !5
  %64 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 0
  %65 = load i64, ptr %64, align 16
  %66 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 1
  %67 = load i64, ptr %66, align 8
  %68 = call noundef { i64, i64 } @_Z7mod_pownnn(i64 noundef %57, i64 noundef %59, i64 noundef %61, i64 noundef %63, i64 noundef %65, i64 noundef %67)
  %69 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %70 = extractvalue { i64, i64 } %68, 0
  store i64 %70, ptr %69, align 16
  %71 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %72 = extractvalue { i64, i64 } %68, 1
  store i64 %72, ptr %71, align 8
  %73 = load i128, ptr %15, align 16, !tbaa !5
  store i128 %73, ptr %10, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #2
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %114, %43
  %75 = load i32, ptr %17, align 4, !tbaa !9
  %76 = load i32, ptr %6, align 4, !tbaa !9
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  store i32 8, ptr %9, align 4
  br label %117

79:                                               ; preds = %74
  %80 = load i128, ptr %10, align 16, !tbaa !5
  %81 = load i128, ptr %10, align 16, !tbaa !5
  %82 = load i128, ptr %5, align 16, !tbaa !5
  store i128 %80, ptr %18, align 16, !tbaa !5
  %83 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %84 = load i64, ptr %83, align 16
  %85 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %86 = load i64, ptr %85, align 8
  store i128 %81, ptr %19, align 16, !tbaa !5
  %87 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 0
  %88 = load i64, ptr %87, align 16
  %89 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 1
  %90 = load i64, ptr %89, align 8
  store i128 %82, ptr %20, align 16, !tbaa !5
  %91 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 0
  %92 = load i64, ptr %91, align 16
  %93 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 1
  %94 = load i64, ptr %93, align 8
  %95 = call noundef { i64, i64 } @_Z7mod_mulnnn(i64 noundef %84, i64 noundef %86, i64 noundef %88, i64 noundef %90, i64 noundef %92, i64 noundef %94)
  %96 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 0
  %97 = extractvalue { i64, i64 } %95, 0
  store i64 %97, ptr %96, align 16
  %98 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 1
  %99 = extractvalue { i64, i64 } %95, 1
  store i64 %99, ptr %98, align 8
  %100 = load i128, ptr %21, align 16, !tbaa !5
  store i128 %100, ptr %16, align 16, !tbaa !5
  %101 = load i128, ptr %16, align 16, !tbaa !5
  %102 = icmp eq i128 %101, 1
  br i1 %102, label %103, label %112

103:                                              ; preds = %79
  %104 = load i128, ptr %10, align 16, !tbaa !5
  %105 = icmp ne i128 %104, 1
  br i1 %105, label %106, label %112

106:                                              ; preds = %103
  %107 = load i128, ptr %10, align 16, !tbaa !5
  %108 = load i128, ptr %5, align 16, !tbaa !5
  %109 = sub nsw i128 %108, 1
  %110 = icmp ne i128 %107, %109
  br i1 %110, label %111, label %112

111:                                              ; preds = %106
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %117

112:                                              ; preds = %106, %103, %79
  %113 = load i128, ptr %16, align 16, !tbaa !5
  store i128 %113, ptr %10, align 16, !tbaa !5
  br label %114

114:                                              ; preds = %112
  %115 = load i32, ptr %17, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %17, align 4, !tbaa !9
  br label %74, !llvm.loop !13

117:                                              ; preds = %111, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #2
  %118 = load i32, ptr %9, align 4
  switch i32 %118, label %124 [
    i32 8, label %119
  ]

119:                                              ; preds = %117
  %120 = load i128, ptr %10, align 16, !tbaa !5
  %121 = icmp ne i128 %120, 1
  br i1 %121, label %122, label %123

122:                                              ; preds = %119
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %124

123:                                              ; preds = %119
  store i32 0, ptr %9, align 4
  br label %124

124:                                              ; preds = %123, %122, %117
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #2
  %125 = load i32, ptr %9, align 4
  switch i32 %125, label %130 [
    i32 0, label %126
  ]

126:                                              ; preds = %124
  br label %127

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

130:                                              ; preds = %124, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  %131 = load i32, ptr %9, align 4
  switch i32 %131, label %133 [
    i32 5, label %132
  ]

132:                                              ; preds = %130
  store i1 true, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %133

133:                                              ; preds = %132, %130
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  %134 = load i1, ptr %3, align 1
  ret i1 %134
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = !{!"__int128", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef { i64, i64 } @_Z7rand120v() local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef { i64, i64 } @_Z7mod_mulnnn(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef { i64, i64 } @_Z7mod_pownnn(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_Z12miller_rabinn(i64 noundef %0, i64 noundef %1) local_unnamed_addr #0 {
  %.sroa.244.0.insert.ext = zext i64 %1 to i128
  %.sroa.244.0.insert.shift = shl nuw i128 %.sroa.244.0.insert.ext, 64
  %.sroa.043.0.insert.ext = zext i64 %0 to i128
  %.sroa.043.0.insert.insert = or disjoint i128 %.sroa.244.0.insert.shift, %.sroa.043.0.insert.ext
  %3 = add nsw i128 %.sroa.043.0.insert.insert, -1
  %4 = and i128 %3, 1
  %.not67 = icmp eq i128 %4, 0
  br i1 %.not67, label %.lr.ph, label %.preheader.thread

.preheader.thread:                                ; preds = %2
  %extract = lshr i128 %3, 64
  %extract.t79 = trunc nuw i128 %extract to i64
  %extract.t = trunc i128 %3 to i64
  %5 = add nsw i128 %.sroa.043.0.insert.insert, -2
  br label %.critedge.preheader

.preheader:                                       ; preds = %.lr.ph
  %extract80 = lshr i128 %29, 64
  %extract.t81 = trunc nuw i128 %extract80 to i64
  %extract.t78 = trunc i128 %29 to i64
  %6 = add nsw i128 %.sroa.043.0.insert.insert, -2
  %.not5471.not = icmp eq i32 %28, 0
  br i1 %.not5471.not, label %.critedge.preheader, label %.lr.ph74.us

.critedge.preheader:                              ; preds = %.preheader.thread, %.preheader
  %7 = phi i128 [ %5, %.preheader.thread ], [ %6, %.preheader ]
  %.046.lcssa.off6495 = phi i64 [ %extract.t79, %.preheader.thread ], [ %extract.t81, %.preheader ]
  %.046.lcssa.off094 = phi i64 [ %extract.t, %.preheader.thread ], [ %extract.t78, %.preheader ]
  br label %.critedge

.lr.ph74.us:                                      ; preds = %.preheader, %17
  %8 = phi i1 [ %19, %17 ], [ false, %.preheader ]
  %.04776.us = phi i32 [ %18, %17 ], [ 0, %.preheader ]
  %9 = tail call noundef { i64, i64 } @_Z7rand120v()
  %10 = extractvalue { i64, i64 } %9, 0
  %11 = extractvalue { i64, i64 } %9, 1
  %.sroa.222.0.insert.ext.us = zext i64 %11 to i128
  %.sroa.222.0.insert.shift.us = shl nuw i128 %.sroa.222.0.insert.ext.us, 64
  %.sroa.021.0.insert.ext.us = zext i64 %10 to i128
  %.sroa.021.0.insert.insert.us = or disjoint i128 %.sroa.222.0.insert.shift.us, %.sroa.021.0.insert.ext.us
  %12 = srem i128 %.sroa.021.0.insert.insert.us, %6
  %13 = add nsw i128 %12, 2
  %.sroa.019.0.extract.trunc.us = trunc i128 %13 to i64
  %.sroa.220.0.extract.shift.us = lshr i128 %13, 64
  %.sroa.220.0.extract.trunc.us = trunc nuw i128 %.sroa.220.0.extract.shift.us to i64
  %14 = tail call noundef { i64, i64 } @_Z7mod_pownnn(i64 noundef %.sroa.019.0.extract.trunc.us, i64 noundef %.sroa.220.0.extract.trunc.us, i64 noundef %extract.t78, i64 noundef %extract.t81, i64 noundef %0, i64 noundef %1)
  %15 = extractvalue { i64, i64 } %14, 0
  %16 = extractvalue { i64, i64 } %14, 1
  %.sroa.214.0.insert.ext.us = zext i64 %16 to i128
  %.sroa.214.0.insert.shift.us = shl nuw i128 %.sroa.214.0.insert.ext.us, 64
  %.sroa.013.0.insert.ext.us = zext i64 %15 to i128
  %.sroa.013.0.insert.insert.us = or disjoint i128 %.sroa.214.0.insert.shift.us, %.sroa.013.0.insert.ext.us
  br label %22

17:                                               ; preds = %..critedge_crit_edge.us
  %18 = add nuw nsw i32 %.04776.us, 1
  %19 = icmp ugt i32 %.04776.us, 19
  %exitcond88 = icmp eq i32 %18, 21
  br i1 %exitcond88, label %.critedge58, label %.lr.ph74.us, !llvm.loop !5

20:                                               ; preds = %22
  %21 = add nuw i32 %.05272.us, 1
  %exitcond.not = icmp eq i32 %.05272.us, %.04569
  br i1 %exitcond.not, label %..critedge_crit_edge.us, label %22, !llvm.loop !7

22:                                               ; preds = %.lr.ph74.us, %20
  %.05173.us = phi i128 [ %.sroa.013.0.insert.insert.us, %.lr.ph74.us ], [ %.sroa.0.0.insert.insert.us, %20 ]
  %.05272.us = phi i32 [ 0, %.lr.ph74.us ], [ %21, %20 ]
  %.sroa.08.0.extract.trunc.us = trunc i128 %.05173.us to i64
  %.sroa.29.0.extract.shift.us = lshr i128 %.05173.us, 64
  %.sroa.29.0.extract.trunc.us = trunc nuw i128 %.sroa.29.0.extract.shift.us to i64
  %23 = tail call noundef { i64, i64 } @_Z7mod_mulnnn(i64 noundef %.sroa.08.0.extract.trunc.us, i64 noundef %.sroa.29.0.extract.trunc.us, i64 noundef %.sroa.08.0.extract.trunc.us, i64 noundef %.sroa.29.0.extract.trunc.us, i64 noundef %0, i64 noundef %1)
  %24 = extractvalue { i64, i64 } %23, 0
  %25 = extractvalue { i64, i64 } %23, 1
  %.sroa.2.0.insert.ext.us = zext i64 %25 to i128
  %.sroa.2.0.insert.shift.us = shl nuw i128 %.sroa.2.0.insert.ext.us, 64
  %.sroa.0.0.insert.ext.us = zext i64 %24 to i128
  %.sroa.0.0.insert.insert.us = or disjoint i128 %.sroa.2.0.insert.shift.us, %.sroa.0.0.insert.ext.us
  %26 = icmp ne i128 %.sroa.0.0.insert.insert.us, 1
  %27 = icmp eq i128 %.05173.us, 1
  %or.cond.not63.us = or i1 %26, %27
  %.not53.us = icmp eq i128 %.05173.us, %3
  %or.cond56.us = or i1 %or.cond.not63.us, %.not53.us
  br i1 %or.cond56.us, label %20, label %.critedge58

..critedge_crit_edge.us:                          ; preds = %20
  %.not55.old.us = icmp eq i128 %.sroa.0.0.insert.insert.us, 1
  br i1 %.not55.old.us, label %17, label %.critedge58

.lr.ph:                                           ; preds = %2, %.lr.ph
  %.04569 = phi i32 [ %28, %.lr.ph ], [ 0, %2 ]
  %.04668 = phi i128 [ %29, %.lr.ph ], [ %3, %2 ]
  %28 = add i32 %.04569, 1
  %29 = ashr exact i128 %.04668, 1
  %30 = and i128 %.04668, 2
  %.not = icmp eq i128 %30, 0
  br i1 %.not, label %.lr.ph, label %.preheader, !llvm.loop !8

31:                                               ; preds = %.critedge
  %32 = add nuw nsw i32 %.04776, 1
  %33 = icmp ugt i32 %.04776, 19
  %exitcond89 = icmp eq i32 %32, 21
  br i1 %exitcond89, label %.critedge58, label %.critedge, !llvm.loop !5

.critedge:                                        ; preds = %.critedge.preheader, %31
  %34 = phi i1 [ %33, %31 ], [ false, %.critedge.preheader ]
  %.04776 = phi i32 [ %32, %31 ], [ 0, %.critedge.preheader ]
  %35 = tail call noundef { i64, i64 } @_Z7rand120v()
  %36 = extractvalue { i64, i64 } %35, 0
  %37 = extractvalue { i64, i64 } %35, 1
  %.sroa.222.0.insert.ext = zext i64 %37 to i128
  %.sroa.222.0.insert.shift = shl nuw i128 %.sroa.222.0.insert.ext, 64
  %.sroa.021.0.insert.ext = zext i64 %36 to i128
  %.sroa.021.0.insert.insert = or disjoint i128 %.sroa.222.0.insert.shift, %.sroa.021.0.insert.ext
  %38 = srem i128 %.sroa.021.0.insert.insert, %7
  %39 = add nsw i128 %38, 2
  %.sroa.019.0.extract.trunc = trunc i128 %39 to i64
  %.sroa.220.0.extract.shift = lshr i128 %39, 64
  %.sroa.220.0.extract.trunc = trunc nuw i128 %.sroa.220.0.extract.shift to i64
  %40 = tail call noundef { i64, i64 } @_Z7mod_pownnn(i64 noundef %.sroa.019.0.extract.trunc, i64 noundef %.sroa.220.0.extract.trunc, i64 noundef %.046.lcssa.off094, i64 noundef %.046.lcssa.off6495, i64 noundef %0, i64 noundef %1)
  %41 = extractvalue { i64, i64 } %40, 0
  %42 = extractvalue { i64, i64 } %40, 1
  %.sroa.214.0.insert.ext = zext i64 %42 to i128
  %.sroa.214.0.insert.shift = shl nuw i128 %.sroa.214.0.insert.ext, 64
  %.sroa.013.0.insert.ext = zext i64 %41 to i128
  %.sroa.013.0.insert.insert = or disjoint i128 %.sroa.214.0.insert.shift, %.sroa.013.0.insert.ext
  %.not55.old = icmp eq i128 %.sroa.013.0.insert.insert, 1
  br i1 %.not55.old, label %31, label %.critedge58

.critedge58:                                      ; preds = %..critedge_crit_edge.us, %17, %22, %.critedge, %31
  %43 = phi i1 [ %34, %.critedge ], [ %33, %31 ], [ %8, %22 ], [ %8, %..critedge_crit_edge.us ], [ %19, %17 ]
  ret i1 %43
}

attributes #0 = { mustprogress 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}


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