; LLVM IR from tangjz/acm-icpc :: buaa/oj3rd (1190)

; 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.Segment = type { i32, [5 x i64] }

@seg = external dso_local global [2048 x %struct.Segment], align 16
@n = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@typ = external dso_local global [1024 x i32], align 16
@que = external dso_local global [1024 x i64], align 16
@val = external dso_local global [1024 x i64], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3updiiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [10 x i8], align 1
  %4 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  br label %5

5:                                                ; preds = %102, %0
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  %7 = icmp eq i32 %6, 1
  br i1 %7, label %8, label %103

8:                                                ; preds = %5
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @seg, i8 0, i64 98304, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %9

9:                                                ; preds = %48, %8
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = icmp slt i32 %10, %11
  br i1 %12, label %14, label %13

13:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %51

14:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 10, ptr %3) #6
  %15 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %15)
  %17 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
  %18 = load i8, ptr %17, align 1, !tbaa !9
  %19 = sext i8 %18 to i32
  %20 = icmp eq i32 %19, 115
  br i1 %20, label %21, label %25

21:                                               ; preds = %14
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [1024 x i32], ptr @typ, i64 0, i64 %23
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %47

25:                                               ; preds = %14
  %26 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %28 = sext i8 %27 to i32
  %29 = icmp eq i32 %28, 97
  %30 = zext i1 %29 to i64
  %31 = select i1 %29, i32 1, i32 -1
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [1024 x i32], ptr @typ, i64 0, i64 %33
  store i32 %31, ptr %34, align 4, !tbaa !5
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [1024 x i64], ptr @val, i64 0, i64 %36
  %38 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %37)
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [1024 x i64], ptr @val, i64 0, i64 %40
  %42 = load i64, ptr %41, align 8, !tbaa !10
  %43 = load i32, ptr @tot, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr @tot, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [1024 x i64], ptr @que, i64 0, i64 %45
  store i64 %42, ptr %46, align 8, !tbaa !10
  br label %47

47:                                               ; preds = %25, %21
  call void @llvm.lifetime.end.p0(i64 10, ptr %3) #6
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %2, align 4, !tbaa !5
  br label %9, !llvm.loop !12

51:                                               ; preds = %13
  %52 = load i32, ptr @tot, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i64, ptr @que, i64 %53
  %55 = getelementptr inbounds i64, ptr %54, i64 1
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef getelementptr inbounds (i64, ptr @que, i64 1), ptr noundef %55)
  %56 = load i32, ptr @tot, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i64, ptr @que, i64 %57
  %59 = getelementptr inbounds i64, ptr %58, i64 1
  %60 = call noundef ptr @_ZSt6uniqueIPxET_S1_S1_(ptr noundef getelementptr inbounds (i64, ptr @que, i64 1), ptr noundef %59)
  %61 = ptrtoint ptr %60 to i64
  %62 = sub i64 %61, ptrtoint (ptr @que to i64)
  %63 = sdiv exact i64 %62, 8
  %64 = sub nsw i64 %63, 1
  %65 = trunc i64 %64 to i32
  store i32 %65, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %99, %51
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = load i32, ptr @n, align 4, !tbaa !5
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %102

71:                                               ; preds = %66
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [1024 x i32], ptr @typ, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %95

77:                                               ; preds = %71
  %78 = load i32, ptr @tot, align 4, !tbaa !5
  %79 = load i32, ptr @tot, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds i64, ptr @que, i64 %80
  %82 = getelementptr inbounds i64, ptr %81, i64 1
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [1024 x i64], ptr @val, i64 0, i64 %84
  %86 = call noundef ptr @_ZSt11lower_boundIPxxET_S1_S1_RKT0_(ptr noundef getelementptr inbounds (i64, ptr @que, i64 1), ptr noundef %82, ptr noundef nonnull align 8 dereferenceable(8) %85)
  %87 = ptrtoint ptr %86 to i64
  %88 = sub i64 %87, ptrtoint (ptr @que to i64)
  %89 = sdiv exact i64 %88, 8
  %90 = trunc i64 %89 to i32
  %91 = load i32, ptr %4, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [1024 x i32], ptr @typ, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  call void @_Z3updiiiii(i32 noundef 1, i32 noundef 1, i32 noundef %78, i32 noundef %90, i32 noundef %94)
  br label %98

95:                                               ; preds = %71
  %96 = load i64, ptr getelementptr inbounds ([5 x i64], ptr getelementptr inbounds (%struct.Segment, ptr getelementptr inbounds ([2048 x %struct.Segment], ptr @seg, i64 0, i64 1), i32 0, i32 1), i64 0, i64 2), align 8, !tbaa !10
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %96)
  br label %98

98:                                               ; preds = %95, %77
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %4, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %4, align 4, !tbaa !5
  br label %66, !llvm.loop !14

102:                                              ; preds = %70
  br label %5, !llvm.loop !15

103:                                              ; preds = %5
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPxEvT_S1_(ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIPxET_S1_S1_(ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11lower_boundIPxxET_S1_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #5

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

attributes #0 = { mustprogress 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress norecurse 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 = { "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 nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint mustprogress 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 #6 = { 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++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


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

%struct.Segment = type { i32, [5 x i64] }

@seg = external dso_local local_unnamed_addr global [2048 x %struct.Segment], align 16
@n = external dso_local global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@typ = external dso_local local_unnamed_addr global [1024 x i32], align 16
@que = external dso_local global [1024 x i64], align 16
@val = external dso_local global [1024 x i64], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3updiiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca [10 x i8], align 1
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %3 = icmp eq i32 %2, 1
  br i1 %3, label %.lr.ph20, label %._crit_edge21

.loopexit:                                        ; preds = %55, %._crit_edge
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %5 = icmp eq i32 %4, 1
  br i1 %5, label %.lr.ph20, label %._crit_edge21, !llvm.loop !5

.lr.ph20:                                         ; preds = %0, %.loopexit
  store i32 0, ptr @tot, align 4, !tbaa !7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(98304) @seg, i8 0, i64 98304, i1 false)
  %6 = load i32, ptr @n, align 4, !tbaa !7
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %36
  %.pre = load i32, ptr @tot, align 4, !tbaa !7
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph20
  %8 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ 0, %.lr.ph20 ]
  %9 = sext i32 %8 to i64
  %gep17 = getelementptr i64, ptr getelementptr inbounds (i8, ptr @que, i64 8), i64 %9
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef nonnull getelementptr inbounds (i8, ptr @que, i64 8), ptr noundef nonnull %gep17)
  %10 = load i32, ptr @tot, align 4, !tbaa !7
  %11 = sext i32 %10 to i64
  %gep18 = getelementptr i64, ptr getelementptr inbounds (i8, ptr @que, i64 8), i64 %11
  %12 = call noundef ptr @_ZSt6uniqueIPxET_S1_S1_(ptr noundef nonnull getelementptr inbounds (i8, ptr @que, i64 8), ptr noundef nonnull %gep18)
  %13 = ptrtoint ptr %12 to i64
  %14 = sub i64 %13, ptrtoint (ptr @que to i64)
  %15 = lshr exact i64 %14, 3
  %16 = trunc i64 %15 to i32
  %17 = add i32 %16, -1
  store i32 %17, ptr @tot, align 4, !tbaa !7
  %18 = load i32, ptr @n, align 4, !tbaa !7
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph16, label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph20, %36
  %indvars.iv = phi i64 [ %indvars.iv.next, %36 ], [ 0, %.lr.ph20 ]
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %1) #6
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %21 = load i8, ptr %1, align 1, !tbaa !11
  %22 = icmp eq i8 %21, 115
  br i1 %22, label %23, label %25

23:                                               ; preds = %.lr.ph
  %24 = getelementptr inbounds [1024 x i32], ptr @typ, i64 0, i64 %indvars.iv
  store i32 0, ptr %24, align 4, !tbaa !7
  br label %36

25:                                               ; preds = %.lr.ph
  %26 = icmp eq i8 %21, 97
  %27 = select i1 %26, i32 1, i32 -1
  %28 = getelementptr inbounds [1024 x i32], ptr @typ, i64 0, i64 %indvars.iv
  store i32 %27, ptr %28, align 4, !tbaa !7
  %29 = getelementptr inbounds [1024 x i64], ptr @val, i64 0, i64 %indvars.iv
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %29)
  %31 = load i64, ptr %29, align 8, !tbaa !12
  %32 = load i32, ptr @tot, align 4, !tbaa !7
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr @tot, align 4, !tbaa !7
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [1024 x i64], ptr @que, i64 0, i64 %34
  store i64 %31, ptr %35, align 8, !tbaa !12
  br label %36

36:                                               ; preds = %25, %23
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %1) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load i32, ptr @n, align 4, !tbaa !7
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next, %38
  br i1 %39, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !14

.lr.ph16:                                         ; preds = %._crit_edge, %55
  %indvars.iv23 = phi i64 [ %indvars.iv.next24, %55 ], [ 0, %._crit_edge ]
  %40 = getelementptr inbounds [1024 x i32], ptr @typ, i64 0, i64 %indvars.iv23
  %41 = load i32, ptr %40, align 4, !tbaa !7
  %.not = icmp eq i32 %41, 0
  br i1 %.not, label %52, label %42

42:                                               ; preds = %.lr.ph16
  %43 = load i32, ptr @tot, align 4, !tbaa !7
  %44 = sext i32 %43 to i64
  %gep = getelementptr i64, ptr getelementptr inbounds (i8, ptr @que, i64 8), i64 %44
  %45 = getelementptr inbounds [1024 x i64], ptr @val, i64 0, i64 %indvars.iv23
  %46 = call noundef ptr @_ZSt11lower_boundIPxxET_S1_S1_RKT0_(ptr noundef nonnull getelementptr inbounds (i8, ptr @que, i64 8), ptr noundef nonnull %gep, ptr noundef nonnull align 8 dereferenceable(8) %45)
  %47 = ptrtoint ptr %46 to i64
  %48 = sub i64 %47, ptrtoint (ptr @que to i64)
  %49 = lshr exact i64 %48, 3
  %50 = trunc i64 %49 to i32
  %51 = load i32, ptr %40, align 4, !tbaa !7
  call void @_Z3updiiiii(i32 noundef 1, i32 noundef 1, i32 noundef %43, i32 noundef %50, i32 noundef %51)
  br label %55

52:                                               ; preds = %.lr.ph16
  %53 = load i64, ptr getelementptr inbounds (i8, ptr @seg, i64 72), align 8, !tbaa !12
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %53)
  br label %55

55:                                               ; preds = %42, %52
  %indvars.iv.next24 = add nuw nsw i64 %indvars.iv23, 1
  %56 = load i32, ptr @n, align 4, !tbaa !7
  %57 = sext i32 %56 to i64
  %58 = icmp slt i64 %indvars.iv.next24, %57
  br i1 %58, label %.lr.ph16, label %.loopexit, !llvm.loop !15

._crit_edge21:                                    ; preds = %.loopexit, %0
  ret i32 0
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPxEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIPxET_S1_S1_(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11lower_boundIPxxET_S1_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

attributes #0 = { mustprogress 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress norecurse 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 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint mustprogress 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 #6 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!9, !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !9, i64 0}
!14 = distinct !{!14, !6}
!15 = distinct !{!15, !6}


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