; LLVM IR from freddiev4/dailyprogrammerchallenges :: Intermediate Challenges/Challenge 0027 Intermediate/solutions (solution)

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

@invoc_name = external dso_local global ptr, align 8
@longopts = external dso_local global [5 x %struct.option], align 16
@weekday = external dso_local global [7 x ptr], align 16
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@optarg = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@stderr = external global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [50 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 2016, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 3, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 17, ptr %11, align 4, !tbaa !5
  %14 = load ptr, ptr %5, align 8, !tbaa !9
  %15 = getelementptr inbounds ptr, ptr %14, i64 0
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  store ptr %16, ptr @invoc_name, align 8, !tbaa !9
  br label %17

17:                                               ; preds = %50, %2
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = call i32 @getopt_long(i32 noundef %18, ptr noundef %19, ptr noundef @.str.12, ptr noundef @longopts, ptr noundef null) #5
  store i32 %20, ptr %6, align 4, !tbaa !5
  %21 = icmp ne i32 %20, -1
  br i1 %21, label %22, label %51

22:                                               ; preds = %17
  %23 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %23, label %46 [
    i32 100, label %24
    i32 98, label %43
    i32 104, label %44
    i32 118, label %45
  ]

24:                                               ; preds = %22
  %25 = load ptr, ptr @optarg, align 8, !tbaa !9
  %26 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %25, ptr noundef @.str.13, ptr noundef %11, ptr noundef %10, ptr noundef %9) #5
  store i32 %26, ptr %8, align 4, !tbaa !5
  %27 = load i32, ptr %8, align 4, !tbaa !5
  %28 = icmp ne i32 %27, 3
  br i1 %28, label %35, label %29

29:                                               ; preds = %24
  %30 = load i32, ptr %11, align 4, !tbaa !5
  %31 = load i32, ptr %10, align 4, !tbaa !5
  %32 = load i32, ptr %9, align 4, !tbaa !5
  %33 = call i32 @valid_date(i32 noundef %30, i32 noundef %31, i32 noundef %32)
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %42, label %35

35:                                               ; preds = %29, %24
  %36 = load ptr, ptr @stderr, align 8, !tbaa !9
  %37 = load ptr, ptr @optarg, align 8, !tbaa !9
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.14, ptr noundef %37) #5
  %39 = load ptr, ptr @stderr, align 8, !tbaa !9
  %40 = load ptr, ptr @invoc_name, align 8, !tbaa !9
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.15, ptr noundef %40) #5
  call void @exit(i32 noundef 1) #6
  unreachable

42:                                               ; preds = %29
  br label %50

43:                                               ; preds = %22
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %50

44:                                               ; preds = %22
  call void @usage()
  call void @exit(i32 noundef 0) #6
  unreachable

45:                                               ; preds = %22
  call void @version()
  call void @exit(i32 noundef 0) #6
  unreachable

46:                                               ; preds = %22
  %47 = load ptr, ptr @stderr, align 8, !tbaa !9
  %48 = load ptr, ptr @invoc_name, align 8, !tbaa !9
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.15, ptr noundef %48) #5
  call void @exit(i32 noundef 1) #6
  unreachable

50:                                               ; preds = %43, %42
  br label %17, !llvm.loop !11

51:                                               ; preds = %17
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %68

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %55 = load i32, ptr %11, align 4, !tbaa !5
  %56 = load i32, ptr %10, align 4, !tbaa !5
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = call i32 @get_weekday(i32 noundef %55, i32 noundef %56, i32 noundef %57)
  store i32 %58, ptr %12, align 4, !tbaa !5
  %59 = load i32, ptr %11, align 4, !tbaa !5
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %59, i32 noundef %60, i32 noundef %61)
  %63 = load i32, ptr %12, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [7 x ptr], ptr @weekday, i64 0, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %66)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %90

68:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  store i32 2001, ptr %9, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %82, %68
  %70 = load i32, ptr %9, align 4, !tbaa !5
  %71 = icmp ule i32 %70, 2100
  br i1 %71, label %72, label %85

72:                                               ; preds = %69
  %73 = load i32, ptr %11, align 4, !tbaa !5
  %74 = load i32, ptr %10, align 4, !tbaa !5
  %75 = load i32, ptr %9, align 4, !tbaa !5
  %76 = call i32 @get_weekday(i32 noundef %73, i32 noundef %74, i32 noundef %75)
  %77 = icmp eq i32 %76, 6
  br i1 %77, label %78, label %81

78:                                               ; preds = %72
  %79 = load i32, ptr %13, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %13, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %78, %72
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %9, align 4, !tbaa !5
  %84 = add i32 %83, 1
  store i32 %84, ptr %9, align 4, !tbaa !5
  br label %69, !llvm.loop !13

85:                                               ; preds = %69
  %86 = load i32, ptr %11, align 4, !tbaa !5
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = load i32, ptr %13, align 4, !tbaa !5
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %86, i32 noundef %87, i32 noundef %88)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %90

90:                                               ; preds = %85, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  ret i32 0
}

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @valid_date(i32 noundef, i32 noundef, i32 noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #0

; Function Attrs: nounwind uwtable
declare dso_local void @version() #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @get_weekday(i32 noundef, i32 noundef, i32 noundef) #0

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

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

attributes #0 = { 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 = { 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 = { 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 #4 = { "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 = !{!"int", !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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !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"

%struct.option = type { ptr, i32, ptr, i32 }

@invoc_name = external dso_local local_unnamed_addr global ptr, align 8
@longopts = external dso_local global [5 x %struct.option], align 16
@weekday = external dso_local local_unnamed_addr global [7 x ptr], align 16
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [50 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 2016, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 3, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 17, ptr %5, align 4, !tbaa !5
  %6 = load ptr, ptr %1, align 8, !tbaa !9
  store ptr %6, ptr @invoc_name, align 8, !tbaa !9
  br label %.outer

.outer:                                           ; preds = %8, %2
  %7 = phi i1 [ true, %2 ], [ false, %8 ]
  br label %8

8:                                                ; preds = %.outer, %13
  %9 = call i32 @getopt_long(i32 noundef %0, ptr noundef nonnull %1, ptr noundef nonnull @.str.12, ptr noundef nonnull @longopts, ptr noundef null) #5
  switch i32 %9, label %27 [
    i32 -1, label %31
    i32 100, label %10
    i32 98, label %.outer
    i32 104, label %25
    i32 118, label %26
  ], !llvm.loop !11

10:                                               ; preds = %8
  %11 = load ptr, ptr @optarg, align 8, !tbaa !9
  %12 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %11, ptr noundef nonnull @.str.13, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3) #5
  %.not12 = icmp eq i32 %12, 3
  br i1 %.not12, label %13, label %18

13:                                               ; preds = %10
  %14 = load i32, ptr %5, align 4, !tbaa !5
  %15 = load i32, ptr %4, align 4, !tbaa !5
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = call i32 @valid_date(i32 noundef %14, i32 noundef %15, i32 noundef %16)
  %.not13 = icmp eq i32 %17, 0
  br i1 %.not13, label %18, label %8, !llvm.loop !11

18:                                               ; preds = %13, %10
  %19 = load ptr, ptr @stderr, align 8, !tbaa !9
  %20 = load ptr, ptr @optarg, align 8, !tbaa !9
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.14, ptr noundef %20) #6
  %22 = load ptr, ptr @stderr, align 8, !tbaa !9
  %23 = load ptr, ptr @invoc_name, align 8, !tbaa !9
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.15, ptr noundef %23) #6
  call void @exit(i32 noundef 1) #7
  unreachable

25:                                               ; preds = %8
  call void @usage()
  call void @exit(i32 noundef 0) #7
  unreachable

26:                                               ; preds = %8
  call void @version()
  call void @exit(i32 noundef 0) #7
  unreachable

27:                                               ; preds = %8
  %28 = load ptr, ptr @stderr, align 8, !tbaa !9
  %29 = load ptr, ptr @invoc_name, align 8, !tbaa !9
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.15, ptr noundef %29) #6
  call void @exit(i32 noundef 1) #7
  unreachable

31:                                               ; preds = %8
  br i1 %7, label %32, label %.preheader

.preheader:                                       ; preds = %31
  store i32 2001, ptr %3, align 4, !tbaa !5
  br label %45

32:                                               ; preds = %31
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = call i32 @get_weekday(i32 noundef %33, i32 noundef %34, i32 noundef %35)
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %37, i32 noundef %38, i32 noundef %39)
  %41 = sext i32 %36 to i64
  %42 = getelementptr inbounds [7 x ptr], ptr @weekday, i64 0, i64 %41
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, ptr noundef %43)
  br label %58

45:                                               ; preds = %.preheader, %45
  %.019 = phi i32 [ 0, %.preheader ], [ %spec.select, %45 ]
  %storemerge18 = phi i32 [ 2001, %.preheader ], [ %52, %45 ]
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = call i32 @get_weekday(i32 noundef %46, i32 noundef %47, i32 noundef %storemerge18)
  %49 = icmp eq i32 %48, 6
  %50 = zext i1 %49 to i32
  %spec.select = add nuw nsw i32 %.019, %50
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = add i32 %51, 1
  store i32 %52, ptr %3, align 4, !tbaa !5
  %53 = icmp ult i32 %52, 2101
  br i1 %53, label %45, label %54, !llvm.loop !13

54:                                               ; preds = %45
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, i32 noundef %55, i32 noundef %56, i32 noundef %spec.select)
  br label %58

58:                                               ; preds = %54, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  ret i32 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: nounwind
declare i32 @getopt_long(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @valid_date(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @version() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @get_weekday(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

attributes #0 = { 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 = { 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 = { 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 = { 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 #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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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