; LLVM IR from tezc/sc :: perf (sc_perf)

; 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.sc_perf_item = type { %struct.sc_perf_event, double, double, i32 }
%struct.sc_perf_event = type { ptr, i64, i64 }

@init = external hidden global i32, align 4
@sc_perf_items = external hidden global [11 x %struct.sc_perf_item], align 16
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@total = external hidden global i64, align 8
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #2

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #1

; Function Attrs: noreturn nounwind
declare void @abort() #3

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

; Function Attrs: nounwind uwtable
define dso_local void @sc_perf_end() #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  br label %3

3:                                                ; preds = %0
  %4 = load i32, ptr @init, align 4, !tbaa !5
  %5 = icmp ne i32 %4, 0
  br i1 %5, label %19, label %6

6:                                                ; preds = %3
  %7 = load ptr, ptr @stderr, align 8, !tbaa !9
  %8 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 194) #6
  %9 = call ptr @__errno_location() #7
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = icmp ne i32 %10, 0
  br i1 %11, label %12, label %18

12:                                               ; preds = %6
  %13 = load ptr, ptr @stderr, align 8, !tbaa !9
  %14 = call ptr @__errno_location() #7
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = call ptr @strerror(i32 noundef %15) #6
  %17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef @.str.2, ptr noundef %16) #6
  br label %18

18:                                               ; preds = %12, %6
  call void @abort() #8
  unreachable

19:                                               ; preds = %3
  br label %20

20:                                               ; preds = %19
  call void @sc_perf_pause()
  call void @sc_read(ptr noundef @sc_perf_items, i64 noundef 11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  store i64 0, ptr %1, align 8, !tbaa !11
  br label %21

21:                                               ; preds = %31, %20
  %22 = load i64, ptr %1, align 8, !tbaa !11
  %23 = icmp ult i64 %22, 11
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  br label %34

25:                                               ; preds = %21
  %26 = load i64, ptr %1, align 8, !tbaa !11
  %27 = getelementptr inbounds [11 x %struct.sc_perf_item], ptr @sc_perf_items, i64 0, i64 %26
  %28 = getelementptr inbounds %struct.sc_perf_item, ptr %27, i32 0, i32 3
  %29 = load i32, ptr %28, align 8, !tbaa !13
  %30 = call i32 @close(i32 noundef %29)
  br label %31

31:                                               ; preds = %25
  %32 = load i64, ptr %1, align 8, !tbaa !11
  %33 = add i64 %32, 1
  store i64 %33, ptr %1, align 8, !tbaa !11
  br label %21, !llvm.loop !17

34:                                               ; preds = %24
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6)
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %37 = load i64, ptr @total, align 8, !tbaa !11
  %38 = uitofp i64 %37 to double
  %39 = fdiv double %38, 1.000000e+09
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef @.str.9, double noundef %39, ptr noundef @.str.10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 0, ptr %2, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %61, %34
  %42 = load i64, ptr %2, align 8, !tbaa !11
  %43 = icmp ult i64 %42, 11
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %64

45:                                               ; preds = %41
  %46 = load i64, ptr %2, align 8, !tbaa !11
  %47 = getelementptr inbounds [11 x %struct.sc_perf_item], ptr @sc_perf_items, i64 0, i64 %46
  %48 = getelementptr inbounds %struct.sc_perf_item, ptr %47, i32 0, i32 0
  %49 = getelementptr inbounds %struct.sc_perf_event, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 16, !tbaa !19
  %51 = load i64, ptr %2, align 8, !tbaa !11
  %52 = getelementptr inbounds [11 x %struct.sc_perf_item], ptr @sc_perf_items, i64 0, i64 %51
  %53 = getelementptr inbounds %struct.sc_perf_item, ptr %52, i32 0, i32 1
  %54 = load double, ptr %53, align 8, !tbaa !20
  %55 = load i64, ptr %2, align 8, !tbaa !11
  %56 = getelementptr inbounds [11 x %struct.sc_perf_item], ptr @sc_perf_items, i64 0, i64 %55
  %57 = getelementptr inbounds %struct.sc_perf_item, ptr %56, i32 0, i32 2
  %58 = load double, ptr %57, align 16, !tbaa !21
  %59 = fmul double %58, 1.000000e+02
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %50, double noundef %54, double noundef %59)
  br label %61

61:                                               ; preds = %45
  %62 = load i64, ptr %2, align 8, !tbaa !11
  %63 = add i64 %62, 1
  store i64 %63, ptr %2, align 8, !tbaa !11
  br label %41, !llvm.loop !22

64:                                               ; preds = %44
  call void @sc_perf_clear()
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @sc_read(ptr noundef, i64 noundef) #0

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

declare i32 @close(i32 noundef) #5

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

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

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 = { nounwind willreturn memory(none) "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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 }
attributes #7 = { nounwind willreturn memory(none) }
attributes #8 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 40}
!14 = !{!"sc_perf_item", !15, i64 0, !16, i64 24, !16, i64 32, !6, i64 40}
!15 = !{!"sc_perf_event", !10, i64 0, !12, i64 8, !12, i64 16}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!14, !10, i64 0}
!20 = !{!14, !16, i64 24}
!21 = !{!14, !16, i64 32}
!22 = distinct !{!22, !18}


; 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.sc_perf_item = type { %struct.sc_perf_event, double, double, i32 }
%struct.sc_perf_event = type { ptr, i64, i64 }

@init = external hidden local_unnamed_addr global i32, align 4
@sc_perf_items = external hidden global [11 x %struct.sc_perf_item], align 16
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@total = external hidden local_unnamed_addr global i64, align 8
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #2

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
define dso_local void @sc_perf_end() local_unnamed_addr #0 {
  %1 = load i32, ptr @init, align 4, !tbaa !5
  %.not = icmp eq i32 %1, 0
  br i1 %.not, label %2, label %12

2:                                                ; preds = %0
  %3 = load ptr, ptr @stderr, align 8, !tbaa !9
  %4 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 194) #6
  %5 = tail call ptr @__errno_location() #7
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %.not10 = icmp eq i32 %6, 0
  br i1 %.not10, label %11, label %7

7:                                                ; preds = %2
  %8 = load ptr, ptr @stderr, align 8, !tbaa !9
  %9 = tail call ptr @strerror(i32 noundef %6) #8
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.2, ptr noundef %9) #6
  br label %11

11:                                               ; preds = %7, %2
  tail call void @abort() #9
  unreachable

12:                                               ; preds = %0
  tail call void @sc_perf_pause()
  tail call void @sc_read(ptr noundef nonnull @sc_perf_items, i64 noundef 11)
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 40), align 8, !tbaa !11
  %14 = tail call i32 @close(i32 noundef %13) #8
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 88), align 8, !tbaa !11
  %16 = tail call i32 @close(i32 noundef %15) #8
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 136), align 8, !tbaa !11
  %18 = tail call i32 @close(i32 noundef %17) #8
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 184), align 8, !tbaa !11
  %20 = tail call i32 @close(i32 noundef %19) #8
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 232), align 8, !tbaa !11
  %22 = tail call i32 @close(i32 noundef %21) #8
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 280), align 8, !tbaa !11
  %24 = tail call i32 @close(i32 noundef %23) #8
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 328), align 8, !tbaa !11
  %26 = tail call i32 @close(i32 noundef %25) #8
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 376), align 8, !tbaa !11
  %28 = tail call i32 @close(i32 noundef %27) #8
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 424), align 8, !tbaa !11
  %30 = tail call i32 @close(i32 noundef %29) #8
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 472), align 8, !tbaa !11
  %32 = tail call i32 @close(i32 noundef %31) #8
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 520), align 8, !tbaa !11
  %34 = tail call i32 @close(i32 noundef %33) #8
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6)
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %37 = load i64, ptr @total, align 8, !tbaa !16
  %38 = uitofp i64 %37 to double
  %39 = fdiv double %38, 1.000000e+09
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef nonnull @.str.9, double noundef %39, ptr noundef nonnull @.str.10)
  %41 = load ptr, ptr @sc_perf_items, align 16, !tbaa !17
  %42 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 24), align 8, !tbaa !18
  %43 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 32), align 16, !tbaa !19
  %44 = fmul double %43, 1.000000e+02
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %41, double noundef %42, double noundef %44)
  %46 = load ptr, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 48), align 16, !tbaa !17
  %47 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 72), align 8, !tbaa !18
  %48 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 80), align 16, !tbaa !19
  %49 = fmul double %48, 1.000000e+02
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %46, double noundef %47, double noundef %49)
  %51 = load ptr, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 96), align 16, !tbaa !17
  %52 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 120), align 8, !tbaa !18
  %53 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 128), align 16, !tbaa !19
  %54 = fmul double %53, 1.000000e+02
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %51, double noundef %52, double noundef %54)
  %56 = load ptr, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 144), align 16, !tbaa !17
  %57 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 168), align 8, !tbaa !18
  %58 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 176), align 16, !tbaa !19
  %59 = fmul double %58, 1.000000e+02
  %60 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %56, double noundef %57, double noundef %59)
  %61 = load ptr, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 192), align 16, !tbaa !17
  %62 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 216), align 8, !tbaa !18
  %63 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 224), align 16, !tbaa !19
  %64 = fmul double %63, 1.000000e+02
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %61, double noundef %62, double noundef %64)
  %66 = load ptr, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 240), align 16, !tbaa !17
  %67 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 264), align 8, !tbaa !18
  %68 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 272), align 16, !tbaa !19
  %69 = fmul double %68, 1.000000e+02
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %66, double noundef %67, double noundef %69)
  %71 = load ptr, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 288), align 16, !tbaa !17
  %72 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 312), align 8, !tbaa !18
  %73 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 320), align 16, !tbaa !19
  %74 = fmul double %73, 1.000000e+02
  %75 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %71, double noundef %72, double noundef %74)
  %76 = load ptr, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 336), align 16, !tbaa !17
  %77 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 360), align 8, !tbaa !18
  %78 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 368), align 16, !tbaa !19
  %79 = fmul double %78, 1.000000e+02
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %76, double noundef %77, double noundef %79)
  %81 = load ptr, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 384), align 16, !tbaa !17
  %82 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 408), align 8, !tbaa !18
  %83 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 416), align 16, !tbaa !19
  %84 = fmul double %83, 1.000000e+02
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %81, double noundef %82, double noundef %84)
  %86 = load ptr, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 432), align 16, !tbaa !17
  %87 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 456), align 8, !tbaa !18
  %88 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 464), align 16, !tbaa !19
  %89 = fmul double %88, 1.000000e+02
  %90 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %86, double noundef %87, double noundef %89)
  %91 = load ptr, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 480), align 16, !tbaa !17
  %92 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 504), align 8, !tbaa !18
  %93 = load double, ptr getelementptr inbounds (i8, ptr @sc_perf_items, i64 512), align 16, !tbaa !19
  %94 = fmul double %93, 1.000000e+02
  %95 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef %91, double noundef %92, double noundef %94)
  tail call void @sc_perf_clear()
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @sc_read(ptr noundef, i64 noundef) local_unnamed_addr #0

declare i32 @close(i32 noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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 = { 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 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 "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 = { "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 = { cold nounwind }
attributes #7 = { nounwind willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { 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 = !{!12, !6, i64 40}
!12 = !{!"sc_perf_item", !13, i64 0, !15, i64 24, !15, i64 32, !6, i64 40}
!13 = !{!"sc_perf_event", !10, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"long", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !14, i64 0}
!17 = !{!12, !10, i64 0}
!18 = !{!12, !15, i64 24}
!19 = !{!12, !15, i64 32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass