; LLVM IR from beagleboard/librobotcontrol :: examples/src (rc_cpu)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@opterr = external global i32, align 4
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@optarg = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 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
  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
  %10 = load i32, ptr %4, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 3
  br i1 %11, label %12, label %15

12:                                               ; preds = %2
  %13 = load ptr, ptr @stderr, align 8, !tbaa !9
  %14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef @.str) #5
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %102

15:                                               ; preds = %2
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = icmp slt i32 %16, 2
  br i1 %17, label %18, label %21

18:                                               ; preds = %15
  %19 = load ptr, ptr @stderr, align 8, !tbaa !9
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.1) #5
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %102

21:                                               ; preds = %15
  store i32 0, ptr @opterr, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %86, %21
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !9
  %25 = call i32 @getopt(i32 noundef %23, ptr noundef %24, ptr noundef @.str.2) #5
  store i32 %25, ptr %6, align 4, !tbaa !5
  %26 = icmp ne i32 %25, -1
  br i1 %26, label %27, label %87

27:                                               ; preds = %22
  %28 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %28, label %83 [
    i32 103, label %29
    i32 114, label %68
    i32 116, label %75
    i32 104, label %82
  ]

29:                                               ; preds = %27
  %30 = load i32, ptr %7, align 4, !tbaa !5
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %35

32:                                               ; preds = %29
  %33 = load ptr, ptr @stderr, align 8, !tbaa !9
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.3) #5
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %102

35:                                               ; preds = %29
  store i32 1, ptr %7, align 4, !tbaa !5
  %36 = load ptr, ptr @optarg, align 8, !tbaa !9
  %37 = call i32 @strcmp(ptr noundef %36, ptr noundef @.str.4) #6
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %67

40:                                               ; preds = %35
  %41 = load ptr, ptr @optarg, align 8, !tbaa !9
  %42 = call i32 @strcmp(ptr noundef %41, ptr noundef @.str.5) #6
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %66

45:                                               ; preds = %40
  %46 = load ptr, ptr @optarg, align 8, !tbaa !9
  %47 = call i32 @strcmp(ptr noundef %46, ptr noundef @.str.6) #6
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 2, ptr %8, align 4, !tbaa !5
  br label %65

50:                                               ; preds = %45
  %51 = load ptr, ptr @optarg, align 8, !tbaa !9
  %52 = call i32 @strcmp(ptr noundef %51, ptr noundef @.str.7) #6
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 3, ptr %8, align 4, !tbaa !5
  br label %64

55:                                               ; preds = %50
  %56 = load ptr, ptr @optarg, align 8, !tbaa !9
  %57 = call i32 @strcmp(ptr noundef %56, ptr noundef @.str.8) #6
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 4, ptr %8, align 4, !tbaa !5
  br label %63

60:                                               ; preds = %55
  %61 = load ptr, ptr @stderr, align 8, !tbaa !9
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.9) #5
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %102

63:                                               ; preds = %59
  br label %64

64:                                               ; preds = %63, %54
  br label %65

65:                                               ; preds = %64, %49
  br label %66

66:                                               ; preds = %65, %44
  br label %67

67:                                               ; preds = %66, %39
  br label %86

68:                                               ; preds = %27
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %74

71:                                               ; preds = %68
  %72 = load ptr, ptr @stderr, align 8, !tbaa !9
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str.3) #5
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %102

74:                                               ; preds = %68
  store i32 2, ptr %7, align 4, !tbaa !5
  br label %86

75:                                               ; preds = %27
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = load ptr, ptr @stderr, align 8, !tbaa !9
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.3) #5
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %102

81:                                               ; preds = %75
  store i32 3, ptr %7, align 4, !tbaa !5
  br label %86

82:                                               ; preds = %27
  call void @__print_usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %102

83:                                               ; preds = %27
  %84 = load ptr, ptr @stderr, align 8, !tbaa !9
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.3) #5
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %102

86:                                               ; preds = %81, %74, %67
  br label %22, !llvm.loop !11

87:                                               ; preds = %22
  %88 = load i32, ptr %7, align 4, !tbaa !5
  switch i32 %88, label %99 [
    i32 0, label %89
    i32 2, label %90
    i32 3, label %94
    i32 1, label %96
  ]

89:                                               ; preds = %87
  call void @__print_usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %102

90:                                               ; preds = %87
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %92 = call i32 @rc_cpu_print_freq()
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %102

94:                                               ; preds = %87
  %95 = call i32 @__run_test()
  store i32 %95, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %102

96:                                               ; preds = %87
  %97 = load i32, ptr %8, align 4, !tbaa !5
  %98 = call i32 @rc_cpu_set_governor(i32 noundef %97)
  store i32 %98, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %102

99:                                               ; preds = %87
  %100 = load ptr, ptr @stderr, align 8, !tbaa !9
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.12) #5
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %102

102:                                              ; preds = %99, %96, %94, %90, %89, %83, %82, %78, %71, %60, %32, %18, %12
  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
  %103 = load i32, ptr %3, align 4
  ret i32 %103
}

; 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 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind uwtable
declare hidden void @__print_usage() #0

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

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

declare i32 @rc_cpu_print_freq() #4

; Function Attrs: nounwind uwtable
declare hidden i32 @__run_test() #0

declare i32 @rc_cpu_set_governor(i32 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 = { nounwind willreturn memory(read) "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 = { nounwind willreturn memory(read) }

!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"}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@opterr = external local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = icmp sgt i32 %0, 3
  br i1 %3, label %4, label %7

4:                                                ; preds = %2
  %5 = load ptr, ptr @stderr, align 8, !tbaa !5
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str) #5
  tail call void @__print_usage()
  br label %48

7:                                                ; preds = %2
  %8 = icmp slt i32 %0, 2
  br i1 %8, label %9, label %12

9:                                                ; preds = %7
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.1) #5
  tail call void @__print_usage()
  br label %48

12:                                               ; preds = %7
  store i32 0, ptr @opterr, align 4, !tbaa !9
  br label %.outer

.outer:                                           ; preds = %.outer.backedge, %12
  %.not15.ph = phi i1 [ true, %12 ], [ false, %.outer.backedge ]
  %.010.ph = phi i32 [ 0, %12 ], [ 1, %.outer.backedge ]
  %.0.ph = phi i32 [ undef, %12 ], [ %.0.ph.be, %.outer.backedge ]
  %13 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.2) #6
  switch i32 %13, label %.loopexit [
    i32 -1, label %.loopexit89
    i32 103, label %.loopexit90
    i32 114, label %15
    i32 116, label %14
    i32 104, label %.loopexit91
  ]

14:                                               ; preds = %.outer
  br i1 %.not15.ph, label %.outer.peel.newph, label %.loopexit92

15:                                               ; preds = %.outer
  br i1 %.not15.ph, label %.outer.peel.newph, label %.loopexit93

.outer.peel.newph:                                ; preds = %15, %14
  %.010.be.peel = phi i32 [ 2, %15 ], [ 3, %14 ]
  %16 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.2) #6
  switch i32 %16, label %.loopexit [
    i32 -1, label %.loopexit89
    i32 103, label %.critedge
    i32 114, label %.loopexit93
    i32 116, label %.loopexit92
    i32 104, label %.loopexit91
  ]

.loopexit90:                                      ; preds = %.outer
  br i1 %.not15.ph, label %19, label %.critedge

.critedge:                                        ; preds = %.outer.peel.newph, %.loopexit90
  %17 = load ptr, ptr @stderr, align 8, !tbaa !5
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.3) #5
  tail call void @__print_usage()
  br label %48

19:                                               ; preds = %.loopexit90
  %20 = load ptr, ptr @optarg, align 8, !tbaa !5
  %21 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str.4) #7
  %.not18 = icmp eq i32 %21, 0
  br i1 %.not18, label %.outer.backedge, label %22

.outer.backedge:                                  ; preds = %19, %22, %24, %26, %28
  %.0.ph.be = phi i32 [ 4, %28 ], [ 3, %26 ], [ 2, %24 ], [ 1, %22 ], [ 0, %19 ]
  br label %.outer, !llvm.loop !11

22:                                               ; preds = %19
  %23 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str.5) #7
  %.not19 = icmp eq i32 %23, 0
  br i1 %.not19, label %.outer.backedge, label %24

24:                                               ; preds = %22
  %25 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str.6) #7
  %.not20 = icmp eq i32 %25, 0
  br i1 %.not20, label %.outer.backedge, label %26

26:                                               ; preds = %24
  %27 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str.7) #7
  %.not21 = icmp eq i32 %27, 0
  br i1 %.not21, label %.outer.backedge, label %28

28:                                               ; preds = %26
  %29 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str.8) #7
  %.not22 = icmp eq i32 %29, 0
  br i1 %.not22, label %.outer.backedge, label %30

30:                                               ; preds = %28
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.9) #5
  tail call void @__print_usage()
  br label %48

.loopexit93:                                      ; preds = %15, %.outer.peel.newph
  %33 = load ptr, ptr @stderr, align 8, !tbaa !5
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.3) #5
  tail call void @__print_usage()
  br label %48

.loopexit92:                                      ; preds = %14, %.outer.peel.newph
  %35 = load ptr, ptr @stderr, align 8, !tbaa !5
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.3) #5
  tail call void @__print_usage()
  br label %48

.loopexit91:                                      ; preds = %.outer, %.outer.peel.newph
  tail call void @__print_usage()
  br label %48

.loopexit:                                        ; preds = %.outer, %.outer.peel.newph
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.3) #5
  tail call void @__print_usage()
  br label %48

.loopexit89:                                      ; preds = %.outer, %.outer.peel.newph
  %.010.lcssa72 = phi i32 [ %.010.be.peel, %.outer.peel.newph ], [ %.010.ph, %.outer ]
  switch i32 %.010.lcssa72, label %default.unreachable47 [
    i32 0, label %39
    i32 2, label %40
    i32 3, label %44
    i32 1, label %46
  ]

39:                                               ; preds = %.loopexit89
  tail call void @__print_usage()
  br label %48

40:                                               ; preds = %.loopexit89
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %42 = tail call i32 @rc_cpu_print_freq() #6
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %48

44:                                               ; preds = %.loopexit89
  %45 = tail call i32 @__run_test()
  br label %48

46:                                               ; preds = %.loopexit89
  %47 = tail call i32 @rc_cpu_set_governor(i32 noundef %.0.ph) #6
  br label %48

default.unreachable47:                            ; preds = %.loopexit89
  unreachable

48:                                               ; preds = %46, %44, %40, %39, %.loopexit, %.loopexit91, %.loopexit92, %.loopexit93, %30, %.critedge, %9, %4
  %.012 = phi i32 [ -1, %4 ], [ -1, %9 ], [ -1, %.loopexit ], [ 0, %.loopexit91 ], [ -1, %.loopexit92 ], [ -1, %.loopexit93 ], [ -1, %.critedge ], [ -1, %30 ], [ %47, %46 ], [ %45, %44 ], [ 0, %40 ], [ 0, %39 ]
  ret i32 %.012
}

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

; Function Attrs: nounwind uwtable
declare hidden void @__print_usage() local_unnamed_addr #0

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

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

declare i32 @rc_cpu_print_freq() local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden i32 @__run_test() local_unnamed_addr #0

declare i32 @rc_cpu_set_governor(i32 noundef) local_unnamed_addr #4

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 = { 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 #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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { cold nounwind }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass