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

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

@opterr = external global i32, align 4
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [27 x i8], align 1
@stdout = external global ptr, align 8
@running = external hidden global i32, align 4
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [30 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
  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) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  store i32 0, ptr @opterr, align 4, !tbaa !5
  br label %9

9:                                                ; preds = %22, %2
  %10 = load i32, ptr %4, align 4, !tbaa !5
  %11 = load ptr, ptr %5, align 8, !tbaa !9
  %12 = call i32 @getopt(i32 noundef %10, ptr noundef %11, ptr noundef @.str) #4
  store i32 %12, ptr %6, align 4, !tbaa !5
  %13 = icmp ne i32 %12, -1
  br i1 %13, label %14, label %23

14:                                               ; preds = %9
  %15 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %15, label %19 [
    i32 115, label %16
    i32 101, label %17
    i32 104, label %18
  ]

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

17:                                               ; preds = %14
  store i32 2, ptr %7, align 4, !tbaa !5
  br label %22

18:                                               ; preds = %14
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %89

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

22:                                               ; preds = %17, %16
  br label %9, !llvm.loop !11

23:                                               ; preds = %9
  %24 = load i32, ptr %7, align 4, !tbaa !5
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %29

26:                                               ; preds = %23
  %27 = load ptr, ptr @stderr, align 8, !tbaa !9
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef @.str.2) #4
  call void @__print_usage()
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %89

29:                                               ; preds = %23
  %30 = call i32 @rc_dsm_init()
  %31 = icmp eq i32 %30, -1
  br i1 %31, label %32, label %33

32:                                               ; preds = %29
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %89

33:                                               ; preds = %29
  %34 = load i32, ptr %7, align 4, !tbaa !5
  %35 = icmp eq i32 %34, 1
  br i1 %35, label %36, label %56

36:                                               ; preds = %33
  %37 = call i32 @rc_adc_init()
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %42

39:                                               ; preds = %36
  %40 = load ptr, ptr @stderr, align 8, !tbaa !9
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.3) #4
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %89

42:                                               ; preds = %36
  %43 = call double @rc_adc_batt()
  %44 = fcmp olt double %43, 6.000000e+00
  br i1 %44, label %45, label %48

45:                                               ; preds = %42
  %46 = load ptr, ptr @stderr, align 8, !tbaa !9
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.4) #4
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %89

48:                                               ; preds = %42
  %49 = call i32 @rc_adc_cleanup()
  %50 = call i32 @rc_servo_power_rail_en(i32 noundef 1)
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %55

52:                                               ; preds = %48
  %53 = load ptr, ptr @stderr, align 8, !tbaa !9
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.5) #4
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %89

55:                                               ; preds = %48
  br label %56

56:                                               ; preds = %55, %33
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %58 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %59 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %67 = load ptr, ptr @stdout, align 8, !tbaa !9
  %68 = call i32 @fflush(ptr noundef %67)
  %69 = call ptr @signal(i32 noundef 2, ptr noundef @__signal_handler) #4
  store i32 1, ptr @running, align 4, !tbaa !5
  call void @rc_dsm_set_callback(ptr noundef @__send_pulses)
  br label %70

70:                                               ; preds = %85, %56
  %71 = load i32, ptr @running, align 4, !tbaa !5
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %86

73:                                               ; preds = %70
  %74 = call i32 @rc_dsm_is_connection_active()
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %85

76:                                               ; preds = %73
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  %78 = call i64 @rc_dsm_nanos_since_last_packet()
  %79 = sitofp i64 %78 to double
  %80 = fdiv double %79, 1.000000e+09
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, double noundef %80)
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  %83 = load ptr, ptr @stdout, align 8, !tbaa !9
  %84 = call i32 @fflush(ptr noundef %83)
  br label %85

85:                                               ; preds = %76, %73
  call void @rc_usleep(i32 noundef 25000)
  br label %70, !llvm.loop !13

86:                                               ; preds = %70
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  %88 = call i32 @rc_dsm_cleanup()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %89

89:                                               ; preds = %86, %52, %45, %39, %32, %26, %19, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %90 = load i32, ptr %3, align 4
  ret i32 %90
}

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

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

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

declare i32 @rc_dsm_init() #3

declare i32 @rc_adc_init() #3

declare double @rc_adc_batt() #3

declare i32 @rc_adc_cleanup() #3

declare i32 @rc_servo_power_rail_en(i32 noundef) #3

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

declare i32 @fflush(ptr noundef) #3

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

; Function Attrs: nounwind uwtable
declare hidden void @__signal_handler(i32 noundef) #0

declare void @rc_dsm_set_callback(ptr noundef) #3

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

declare i32 @rc_dsm_is_connection_active() #3

declare i64 @rc_dsm_nanos_since_last_packet() #3

declare void @rc_usleep(i32 noundef) #3

declare i32 @rc_dsm_cleanup() #3

; 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 = { "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/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"

@opterr = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [27 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@running = external hidden local_unnamed_addr global i32, align 4
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
.peel.begin:
  store i32 0, ptr @opterr, align 4, !tbaa !5
  %2 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str) #4
  switch i32 %2, label %.loopexit [
    i32 -1, label %.loopexit25
    i32 115, label %.peel.newph
    i32 101, label %3
    i32 104, label %.loopexit26
  ]

3:                                                ; preds = %.peel.begin
  br label %.peel.newph

.peel.newph:                                      ; preds = %.peel.begin, %3
  %.be.peel = phi i1 [ false, %3 ], [ true, %.peel.begin ]
  br label %4

4:                                                ; preds = %.backedge, %.peel.newph
  %5 = phi i1 [ %.be.peel, %.peel.newph ], [ %.be, %.backedge ]
  %6 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str) #4
  switch i32 %6, label %.loopexit [
    i32 -1, label %.loopexit25
    i32 115, label %.backedge
    i32 101, label %7
    i32 104, label %.loopexit26
  ]

.backedge:                                        ; preds = %4, %7
  %.be = phi i1 [ false, %7 ], [ true, %4 ]
  br label %4, !llvm.loop !9

7:                                                ; preds = %4
  br label %.backedge

.loopexit26:                                      ; preds = %4, %.peel.begin
  tail call void @__print_usage()
  br label %64

.loopexit:                                        ; preds = %4, %.peel.begin
  %8 = load ptr, ptr @stderr, align 8, !tbaa !12
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.1) #5
  tail call void @__print_usage()
  br label %64

.loopexit25:                                      ; preds = %4, %.peel.begin
  %.lcssa22 = phi i1 [ true, %.peel.begin ], [ false, %4 ]
  %.lcssa19 = phi i1 [ false, %.peel.begin ], [ %5, %4 ]
  br i1 %.lcssa22, label %10, label %13

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

13:                                               ; preds = %.loopexit25
  %14 = tail call i32 @rc_dsm_init() #4
  %15 = icmp eq i32 %14, -1
  br i1 %15, label %64, label %16

16:                                               ; preds = %13
  br i1 %.lcssa19, label %17, label %34

17:                                               ; preds = %16
  %18 = tail call i32 @rc_adc_init() #4
  %.not7 = icmp eq i32 %18, 0
  br i1 %.not7, label %22, label %19

19:                                               ; preds = %17
  %20 = load ptr, ptr @stderr, align 8, !tbaa !12
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.3) #5
  br label %64

22:                                               ; preds = %17
  %23 = tail call double @rc_adc_batt() #4
  %24 = fcmp olt double %23, 6.000000e+00
  br i1 %24, label %25, label %28

25:                                               ; preds = %22
  %26 = load ptr, ptr @stderr, align 8, !tbaa !12
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.4) #5
  br label %64

28:                                               ; preds = %22
  %29 = tail call i32 @rc_adc_cleanup() #4
  %30 = tail call i32 @rc_servo_power_rail_en(i32 noundef 1) #4
  %.not8 = icmp eq i32 %30, 0
  br i1 %.not8, label %34, label %31

31:                                               ; preds = %28
  %32 = load ptr, ptr @stderr, align 8, !tbaa !12
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.5) #5
  br label %64

34:                                               ; preds = %28, %16
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %45 = load ptr, ptr @stdout, align 8, !tbaa !12
  %46 = tail call i32 @fflush(ptr noundef %45)
  %47 = tail call ptr @signal(i32 noundef 2, ptr noundef nonnull @__signal_handler) #4
  store i32 1, ptr @running, align 4, !tbaa !5
  tail call void @rc_dsm_set_callback(ptr noundef nonnull @__send_pulses) #4
  %48 = load i32, ptr @running, align 4, !tbaa !5
  %.not912 = icmp eq i32 %48, 0
  br i1 %.not912, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %34, %60
  %49 = tail call i32 @rc_dsm_is_connection_active() #4
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %60

51:                                               ; preds = %.lr.ph
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  %53 = tail call i64 @rc_dsm_nanos_since_last_packet() #4
  %54 = sitofp i64 %53 to double
  %55 = fdiv double %54, 1.000000e+09
  %56 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, double noundef %55)
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  %58 = load ptr, ptr @stdout, align 8, !tbaa !12
  %59 = tail call i32 @fflush(ptr noundef %58)
  br label %60

60:                                               ; preds = %51, %.lr.ph
  tail call void @rc_usleep(i32 noundef 25000) #4
  %61 = load i32, ptr @running, align 4, !tbaa !5
  %.not9 = icmp eq i32 %61, 0
  br i1 %.not9, label %._crit_edge, label %.lr.ph, !llvm.loop !14

._crit_edge:                                      ; preds = %60, %34
  %62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %63 = tail call i32 @rc_dsm_cleanup() #4
  br label %64

64:                                               ; preds = %13, %._crit_edge, %31, %25, %19, %10, %.loopexit, %.loopexit26
  %.05 = phi i32 [ -1, %.loopexit ], [ -1, %.loopexit26 ], [ -1, %10 ], [ -1, %19 ], [ -1, %25 ], [ -1, %31 ], [ 0, %._crit_edge ], [ -1, %13 ]
  ret i32 %.05
}

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

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

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

declare i32 @rc_dsm_init() local_unnamed_addr #3

declare i32 @rc_adc_init() local_unnamed_addr #3

declare double @rc_adc_batt() local_unnamed_addr #3

declare i32 @rc_adc_cleanup() local_unnamed_addr #3

declare i32 @rc_servo_power_rail_en(i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare ptr @signal(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @__signal_handler(i32 noundef) #0

declare void @rc_dsm_set_callback(ptr noundef) local_unnamed_addr #3

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

declare i32 @rc_dsm_is_connection_active() local_unnamed_addr #3

declare i64 @rc_dsm_nanos_since_last_packet() local_unnamed_addr #3

declare void @rc_usleep(i32 noundef) local_unnamed_addr #3

declare i32 @rc_dsm_cleanup() local_unnamed_addr #3

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 = { 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 = { 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 #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 = { nounwind }
attributes #5 = { cold 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 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.peeled.count", i32 1}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = distinct !{!14, !10}


; Effective O3 passes: GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass