; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2012-13/Open 2013/13 Open G3.ll (Z6genfstv)

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

@N = external dso_local global i32, align 4
@fst = external dso_local global [300 x [300 x [300 x i16]]], align 16
@grid = external dso_local global [300 x [300 x i8]], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3getiii(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 uwtable
define dso_local void @_Z6genfstv() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i16, align 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %6

6:                                                ; preds = %116, %0
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = load i32, ptr @N, align 4, !tbaa !5
  %9 = icmp slt i32 %7, %8
  br i1 %9, label %11, label %10

10:                                               ; preds = %6
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  br label %119

11:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %112, %11
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = load i32, ptr @N, align 4, !tbaa !5
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %12
  store i32 5, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %115

17:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %4, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %108, %17
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = load i32, ptr @N, align 4, !tbaa !5
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  store i32 8, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %111

25:                                               ; preds = %20
  %26 = load i32, ptr %1, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [300 x [300 x [300 x i16]]], ptr @fst, i64 0, i64 %27
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [300 x [300 x i16]], ptr %28, i64 0, i64 %30
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [300 x i16], ptr %31, i64 0, i64 %33
  store i16 500, ptr %34, align 2, !tbaa !9
  %35 = load i32, ptr %1, align 4, !tbaa !5
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %37, label %78

37:                                               ; preds = %25
  %38 = load i32, ptr %1, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [300 x [300 x i8]], ptr @grid, i64 0, i64 %39
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [300 x i8], ptr %40, i64 0, i64 %42
  %44 = load i8, ptr %43, align 1, !tbaa !11
  %45 = sext i8 %44 to i32
  %46 = icmp eq i32 %45, 46
  br i1 %46, label %47, label %78

47:                                               ; preds = %37
  %48 = load i32, ptr %1, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [300 x [300 x i8]], ptr @grid, i64 0, i64 %49
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [300 x i8], ptr %50, i64 0, i64 %52
  %54 = load i8, ptr %53, align 1, !tbaa !11
  %55 = sext i8 %54 to i32
  %56 = icmp eq i32 %55, 46
  br i1 %56, label %57, label %78

57:                                               ; preds = %47
  %58 = load i32, ptr %1, align 4, !tbaa !5
  %59 = sub nsw i32 %58, 1
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [300 x [300 x [300 x i16]]], ptr @fst, i64 0, i64 %60
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [300 x [300 x i16]], ptr %61, i64 0, i64 %63
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [300 x i16], ptr %64, i64 0, i64 %66
  %68 = load i16, ptr %67, align 2, !tbaa !9
  %69 = load i32, ptr %1, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [300 x [300 x [300 x i16]]], ptr @fst, i64 0, i64 %70
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [300 x [300 x i16]], ptr %71, i64 0, i64 %73
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [300 x i16], ptr %74, i64 0, i64 %76
  store i16 %68, ptr %77, align 2, !tbaa !9
  br label %78

78:                                               ; preds = %57, %47, %37, %25
  %79 = load i32, ptr %1, align 4, !tbaa !5
  %80 = load i32, ptr %3, align 4, !tbaa !5
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = call noundef i32 @_Z3getiii(i32 noundef %79, i32 noundef %80, i32 noundef %81)
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %107

84:                                               ; preds = %78
  %85 = load i32, ptr %1, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [300 x [300 x [300 x i16]]], ptr @fst, i64 0, i64 %86
  %88 = load i32, ptr %3, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [300 x [300 x i16]], ptr %87, i64 0, i64 %89
  %91 = load i32, ptr %4, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [300 x i16], ptr %90, i64 0, i64 %92
  call void @llvm.lifetime.start.p0(i64 2, ptr %5) #4
  %94 = load i32, ptr %1, align 4, !tbaa !5
  %95 = trunc i32 %94 to i16
  store i16 %95, ptr %5, align 2, !tbaa !9
  %96 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minIsERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %93, ptr noundef nonnull align 2 dereferenceable(2) %5)
  %97 = load i16, ptr %96, align 2, !tbaa !9
  %98 = load i32, ptr %1, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [300 x [300 x [300 x i16]]], ptr @fst, i64 0, i64 %99
  %101 = load i32, ptr %3, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [300 x [300 x i16]], ptr %100, i64 0, i64 %102
  %104 = load i32, ptr %4, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [300 x i16], ptr %103, i64 0, i64 %105
  store i16 %97, ptr %106, align 2, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 2, ptr %5) #4
  br label %107

107:                                              ; preds = %84, %78
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %4, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %4, align 4, !tbaa !5
  br label %20, !llvm.loop !12

111:                                              ; preds = %24
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %3, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %3, align 4, !tbaa !5
  br label %12, !llvm.loop !14

115:                                              ; preds = %16
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %1, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %1, align 4, !tbaa !5
  br label %6, !llvm.loop !15

119:                                              ; preds = %10
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minIsERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 2 dereferenceable(2)) #3

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" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = !{!7, !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"

@N = external dso_local local_unnamed_addr global i32, align 4
@fst = external dso_local global [300 x [300 x [300 x i16]]], align 16
@grid = external dso_local local_unnamed_addr global [300 x [300 x i8]], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3getiii(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 nounwind uwtable
define dso_local void @_Z6genfstv() local_unnamed_addr #0 {
  %1 = alloca i16, align 2
  %2 = load i32, ptr @N, align 4, !tbaa !5
  %3 = icmp sgt i32 %2, 0
  br i1 %3, label %.preheader, label %._crit_edge38

.preheader:                                       ; preds = %0, %._crit_edge
  %4 = phi i32 [ %32, %._crit_edge ], [ %2, %0 ]
  %indvars.iv55 = phi i64 [ %indvars.iv.next56, %._crit_edge ], [ 0, %0 ]
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph35, label %._crit_edge

.lr.ph35:                                         ; preds = %.preheader
  %.not = icmp eq i64 %indvars.iv55, 0
  %6 = add nsw i64 %indvars.iv55, -1
  %7 = trunc nuw nsw i64 %indvars.iv55 to i32
  %8 = trunc i64 %indvars.iv55 to i16
  br i1 %.not, label %.lr.ph35.split.us, label %.lr.ph35.split

.lr.ph35.split.us:                                ; preds = %.lr.ph35, %.loopexit.us
  %9 = phi i32 [ %13, %.loopexit.us ], [ %4, %.lr.ph35 ]
  %10 = phi i32 [ %14, %.loopexit.us ], [ %4, %.lr.ph35 ]
  %indvars.iv52 = phi i64 [ %indvars.iv.next53, %.loopexit.us ], [ 0, %.lr.ph35 ]
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %.loopexit.us ], [ 1, %.lr.ph35 ]
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %11 = sext i32 %10 to i64
  %12 = icmp slt i64 %indvars.iv.next53, %11
  br i1 %12, label %.lr.ph.us, label %.loopexit.us

.loopexit.us.loopexit:                            ; preds = %25
  %.pre = sext i32 %26 to i64
  br label %.loopexit.us

.loopexit.us:                                     ; preds = %.loopexit.us.loopexit, %.lr.ph35.split.us
  %.pre-phi = phi i64 [ %.pre, %.loopexit.us.loopexit ], [ %11, %.lr.ph35.split.us ]
  %13 = phi i32 [ %26, %.loopexit.us.loopexit ], [ %9, %.lr.ph35.split.us ]
  %14 = phi i32 [ %26, %.loopexit.us.loopexit ], [ %10, %.lr.ph35.split.us ]
  %15 = icmp slt i64 %indvars.iv.next53, %.pre-phi
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  br i1 %15, label %.lr.ph35.split.us, label %._crit_edge, !llvm.loop !9

.lr.ph.us:                                        ; preds = %.lr.ph35.split.us
  %16 = trunc nuw nsw i64 %indvars.iv52 to i32
  br label %17

17:                                               ; preds = %25, %.lr.ph.us
  %indvars.iv49 = phi i64 [ %indvars.iv.next50, %25 ], [ %indvars.iv47, %.lr.ph.us ]
  %18 = getelementptr inbounds [300 x [300 x [300 x i16]]], ptr @fst, i64 0, i64 0, i64 %indvars.iv52, i64 %indvars.iv49
  store i16 500, ptr %18, align 2, !tbaa !11
  %19 = trunc nuw nsw i64 %indvars.iv49 to i32
  %20 = call noundef i32 @_Z3getiii(i32 noundef 0, i32 noundef %16, i32 noundef %19)
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %25

22:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %1) #3
  store i16 %8, ptr %1, align 2, !tbaa !11
  %23 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minIsERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %18, ptr noundef nonnull align 2 dereferenceable(2) %1)
  %24 = load i16, ptr %23, align 2, !tbaa !11
  store i16 %24, ptr %18, align 2, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %1) #3
  br label %25

25:                                               ; preds = %22, %17
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %26 = load i32, ptr @N, align 4, !tbaa !5
  %27 = trunc nuw i64 %indvars.iv.next50 to i32
  %28 = icmp sgt i32 %26, %27
  br i1 %28, label %17, label %.loopexit.us.loopexit, !llvm.loop !13

._crit_edge38:                                    ; preds = %._crit_edge, %0
  ret void

.loopexit.loopexit:                               ; preds = %59
  %.pre58 = sext i32 %60 to i64
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.lr.ph35.split
  %.pre-phi59 = phi i64 [ %.pre58, %.loopexit.loopexit ], [ %37, %.lr.ph35.split ]
  %29 = phi i32 [ %60, %.loopexit.loopexit ], [ %35, %.lr.ph35.split ]
  %30 = phi i32 [ %60, %.loopexit.loopexit ], [ %36, %.lr.ph35.split ]
  %31 = icmp slt i64 %indvars.iv.next45, %.pre-phi59
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 %31, label %.lr.ph35.split, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.loopexit, %.loopexit.us, %.preheader
  %32 = phi i32 [ %4, %.preheader ], [ %13, %.loopexit.us ], [ %29, %.loopexit ]
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %33 = sext i32 %32 to i64
  %34 = icmp slt i64 %indvars.iv.next56, %33
  br i1 %34, label %.preheader, label %._crit_edge38, !llvm.loop !14

.lr.ph35.split:                                   ; preds = %.lr.ph35, %.loopexit
  %35 = phi i32 [ %29, %.loopexit ], [ %4, %.lr.ph35 ]
  %36 = phi i32 [ %30, %.loopexit ], [ %4, %.lr.ph35 ]
  %indvars.iv44 = phi i64 [ %indvars.iv.next45, %.loopexit ], [ 0, %.lr.ph35 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit ], [ 1, %.lr.ph35 ]
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %37 = sext i32 %36 to i64
  %38 = icmp slt i64 %indvars.iv.next45, %37
  br i1 %38, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph35.split
  %39 = getelementptr inbounds [300 x [300 x i8]], ptr @grid, i64 0, i64 %indvars.iv55, i64 %indvars.iv44
  %40 = trunc nuw nsw i64 %indvars.iv44 to i32
  br label %41

41:                                               ; preds = %.lr.ph, %59
  %indvars.iv41 = phi i64 [ %indvars.iv, %.lr.ph ], [ %indvars.iv.next42, %59 ]
  %42 = getelementptr inbounds [300 x [300 x [300 x i16]]], ptr @fst, i64 0, i64 %indvars.iv55, i64 %indvars.iv44, i64 %indvars.iv41
  store i16 500, ptr %42, align 2, !tbaa !11
  %43 = load i8, ptr %39, align 1, !tbaa !16
  %44 = icmp eq i8 %43, 46
  br i1 %44, label %45, label %52

45:                                               ; preds = %41
  %46 = getelementptr inbounds [300 x [300 x i8]], ptr @grid, i64 0, i64 %indvars.iv55, i64 %indvars.iv41
  %47 = load i8, ptr %46, align 1, !tbaa !16
  %48 = icmp eq i8 %47, 46
  br i1 %48, label %49, label %52

49:                                               ; preds = %45
  %50 = getelementptr inbounds [300 x [300 x [300 x i16]]], ptr @fst, i64 0, i64 %6, i64 %indvars.iv44, i64 %indvars.iv41
  %51 = load i16, ptr %50, align 2, !tbaa !11
  store i16 %51, ptr %42, align 2, !tbaa !11
  br label %52

52:                                               ; preds = %49, %45, %41
  %53 = trunc nuw nsw i64 %indvars.iv41 to i32
  %54 = call noundef i32 @_Z3getiii(i32 noundef %7, i32 noundef %40, i32 noundef %53)
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %59

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %1) #3
  store i16 %8, ptr %1, align 2, !tbaa !11
  %57 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minIsERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %42, ptr noundef nonnull align 2 dereferenceable(2) %1)
  %58 = load i16, ptr %57, align 2, !tbaa !11
  store i16 %58, ptr %42, align 2, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %1) #3
  br label %59

59:                                               ; preds = %52, %56
  %indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 1
  %60 = load i32, ptr @N, align 4, !tbaa !5
  %61 = trunc nuw i64 %indvars.iv.next42 to i32
  %62 = icmp sgt i32 %60, %61
  br i1 %62, label %41, label %.loopexit.loopexit, !llvm.loop !13
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3minIsERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #2

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


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