; LLVM IR from yinqiwen/ardb :: src/common/util/system_helper.ll (ZN4ardb12mem_rss_sizeEv)

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

@.str = external hidden unnamed_addr constant [14 x i8], align 1

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

; Function Attrs: nounwind
declare i64 @sysconf(i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN4ardb12mem_rss_sizeEv() #2 {
  %1 = alloca i64, align 8
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca [4096 x i8], align 16
  %5 = alloca [256 x i8], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  %11 = call i64 @sysconf(i32 noundef 30) #5
  %12 = trunc i64 %11 to i32
  store i32 %12, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4096, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 256, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %13 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %14 = call i32 @getpid() #5
  %15 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %13, i64 noundef 256, ptr noundef @.str, i32 noundef %14) #5
  %16 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %17 = call i32 (ptr, i32, ...) @open(ptr noundef %16, i32 noundef 0)
  store i32 %17, ptr %6, align 4, !tbaa !5
  %18 = icmp eq i32 %17, -1
  br i1 %18, label %19, label %20

19:                                               ; preds = %0
  store i64 0, ptr %1, align 8
  store i32 1, ptr %10, align 4
  br label %69

20:                                               ; preds = %0
  %21 = load i32, ptr %6, align 4, !tbaa !5
  %22 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
  %23 = call i64 @read(i32 noundef %21, ptr noundef %22, i64 noundef 4096)
  %24 = icmp sle i64 %23, 0
  br i1 %24, label %25, label %28

25:                                               ; preds = %20
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = call i32 @close(i32 noundef %26)
  store i64 0, ptr %1, align 8
  store i32 1, ptr %10, align 4
  br label %69

28:                                               ; preds = %20
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = call i32 @close(i32 noundef %29)
  %31 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
  store ptr %31, ptr %8, align 8, !tbaa !9
  store i32 23, ptr %7, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %49, %28
  %33 = load ptr, ptr %8, align 8, !tbaa !9
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %39

35:                                               ; preds = %32
  %36 = load i32, ptr %7, align 4, !tbaa !5
  %37 = add nsw i32 %36, -1
  store i32 %37, ptr %7, align 4, !tbaa !5
  %38 = icmp ne i32 %36, 0
  br label %39

39:                                               ; preds = %35, %32
  %40 = phi i1 [ false, %32 ], [ %38, %35 ]
  br i1 %40, label %41, label %50

41:                                               ; preds = %39
  %42 = load ptr, ptr %8, align 8, !tbaa !9
  %43 = call noundef ptr @strchr(ptr noundef %42, i32 noundef 32) #6
  store ptr %43, ptr %8, align 8, !tbaa !9
  %44 = load ptr, ptr %8, align 8, !tbaa !9
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %49

46:                                               ; preds = %41
  %47 = load ptr, ptr %8, align 8, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %47, i32 1
  store ptr %48, ptr %8, align 8, !tbaa !9
  br label %49

49:                                               ; preds = %46, %41
  br label %32, !llvm.loop !11

50:                                               ; preds = %39
  %51 = load ptr, ptr %8, align 8, !tbaa !9
  %52 = icmp ne ptr %51, null
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  store i64 0, ptr %1, align 8
  store i32 1, ptr %10, align 4
  br label %69

54:                                               ; preds = %50
  %55 = load ptr, ptr %8, align 8, !tbaa !9
  %56 = call noundef ptr @strchr(ptr noundef %55, i32 noundef 32) #6
  store ptr %56, ptr %9, align 8, !tbaa !9
  %57 = load ptr, ptr %9, align 8, !tbaa !9
  %58 = icmp ne ptr %57, null
  br i1 %58, label %60, label %59

59:                                               ; preds = %54
  store i64 0, ptr %1, align 8
  store i32 1, ptr %10, align 4
  br label %69

60:                                               ; preds = %54
  %61 = load ptr, ptr %9, align 8, !tbaa !9
  store i8 0, ptr %61, align 1, !tbaa !13
  %62 = load ptr, ptr %8, align 8, !tbaa !9
  %63 = call i64 @strtoll(ptr noundef %62, ptr noundef null, i32 noundef 10) #5
  store i64 %63, ptr %3, align 8, !tbaa !14
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = load i64, ptr %3, align 8, !tbaa !14
  %67 = mul i64 %66, %65
  store i64 %67, ptr %3, align 8, !tbaa !14
  %68 = load i64, ptr %3, align 8, !tbaa !14
  store i64 %68, ptr %1, align 8
  store i32 1, ptr %10, align 4
  br label %69

69:                                               ; preds = %60, %59, %53, %25, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 256, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4096, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %70 = load i64, ptr %1, align 8
  ret i64 %70
}

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

; Function Attrs: nounwind
declare i32 @getpid() #1

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

declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #3

declare i32 @close(i32 noundef) #3

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

; Function Attrs: nounwind
declare i64 @strtoll(ptr noundef, ptr noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "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 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}


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

@.str = external hidden unnamed_addr constant [14 x i8], align 1

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

; Function Attrs: nounwind
declare i64 @sysconf(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN4ardb12mem_rss_sizeEv() local_unnamed_addr #2 {
  %1 = alloca [4096 x i8], align 16
  %2 = alloca [256 x i8], align 16
  %3 = tail call i64 @sysconf(i32 noundef 30) #8
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #8
  %4 = tail call i32 @getpid() #8
  %5 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 256, ptr noundef nonnull @.str, i32 noundef %4) #8
  %6 = call i32 (ptr, i32, ...) @open(ptr noundef nonnull %2, i32 noundef 0)
  %7 = icmp eq i32 %6, -1
  br i1 %7, label %.critedge25, label %8

8:                                                ; preds = %0
  %9 = call i64 @read(i32 noundef %6, ptr noundef nonnull %1, i64 noundef 4096)
  %10 = icmp slt i64 %9, 1
  %11 = tail call i32 @close(i32 noundef %6)
  br i1 %10, label %.critedge25, label %select.unfold

select.unfold:                                    ; preds = %8
  %12 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %1, i32 noundef 32) #9
  %.not24 = icmp eq ptr %12, null
  br i1 %.not24, label %.critedge25, label %select.unfold.1

select.unfold.1:                                  ; preds = %select.unfold
  %13 = getelementptr inbounds i8, ptr %12, i64 1
  %14 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %13, i32 noundef 32) #9
  %.not24.1 = icmp eq ptr %14, null
  br i1 %.not24.1, label %.critedge25, label %select.unfold.2

select.unfold.2:                                  ; preds = %select.unfold.1
  %15 = getelementptr inbounds i8, ptr %14, i64 1
  %16 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %15, i32 noundef 32) #9
  %.not24.2 = icmp eq ptr %16, null
  br i1 %.not24.2, label %.critedge25, label %select.unfold.3

select.unfold.3:                                  ; preds = %select.unfold.2
  %17 = getelementptr inbounds i8, ptr %16, i64 1
  %18 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %17, i32 noundef 32) #9
  %.not24.3 = icmp eq ptr %18, null
  br i1 %.not24.3, label %.critedge25, label %select.unfold.4

select.unfold.4:                                  ; preds = %select.unfold.3
  %19 = getelementptr inbounds i8, ptr %18, i64 1
  %20 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %19, i32 noundef 32) #9
  %.not24.4 = icmp eq ptr %20, null
  br i1 %.not24.4, label %.critedge25, label %select.unfold.5

select.unfold.5:                                  ; preds = %select.unfold.4
  %21 = getelementptr inbounds i8, ptr %20, i64 1
  %22 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %21, i32 noundef 32) #9
  %.not24.5 = icmp eq ptr %22, null
  br i1 %.not24.5, label %.critedge25, label %select.unfold.6

select.unfold.6:                                  ; preds = %select.unfold.5
  %23 = getelementptr inbounds i8, ptr %22, i64 1
  %24 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %23, i32 noundef 32) #9
  %.not24.6 = icmp eq ptr %24, null
  br i1 %.not24.6, label %.critedge25, label %select.unfold.7

select.unfold.7:                                  ; preds = %select.unfold.6
  %25 = getelementptr inbounds i8, ptr %24, i64 1
  %26 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %25, i32 noundef 32) #9
  %.not24.7 = icmp eq ptr %26, null
  br i1 %.not24.7, label %.critedge25, label %select.unfold.8

select.unfold.8:                                  ; preds = %select.unfold.7
  %27 = getelementptr inbounds i8, ptr %26, i64 1
  %28 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %27, i32 noundef 32) #9
  %.not24.8 = icmp eq ptr %28, null
  br i1 %.not24.8, label %.critedge25, label %select.unfold.9

select.unfold.9:                                  ; preds = %select.unfold.8
  %29 = getelementptr inbounds i8, ptr %28, i64 1
  %30 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %29, i32 noundef 32) #9
  %.not24.9 = icmp eq ptr %30, null
  br i1 %.not24.9, label %.critedge25, label %select.unfold.10

select.unfold.10:                                 ; preds = %select.unfold.9
  %31 = getelementptr inbounds i8, ptr %30, i64 1
  %32 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %31, i32 noundef 32) #9
  %.not24.10 = icmp eq ptr %32, null
  br i1 %.not24.10, label %.critedge25, label %select.unfold.11

select.unfold.11:                                 ; preds = %select.unfold.10
  %33 = getelementptr inbounds i8, ptr %32, i64 1
  %34 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %33, i32 noundef 32) #9
  %.not24.11 = icmp eq ptr %34, null
  br i1 %.not24.11, label %.critedge25, label %select.unfold.12

select.unfold.12:                                 ; preds = %select.unfold.11
  %35 = getelementptr inbounds i8, ptr %34, i64 1
  %36 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %35, i32 noundef 32) #9
  %.not24.12 = icmp eq ptr %36, null
  br i1 %.not24.12, label %.critedge25, label %select.unfold.13

select.unfold.13:                                 ; preds = %select.unfold.12
  %37 = getelementptr inbounds i8, ptr %36, i64 1
  %38 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %37, i32 noundef 32) #9
  %.not24.13 = icmp eq ptr %38, null
  br i1 %.not24.13, label %.critedge25, label %select.unfold.14

select.unfold.14:                                 ; preds = %select.unfold.13
  %39 = getelementptr inbounds i8, ptr %38, i64 1
  %40 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %39, i32 noundef 32) #9
  %.not24.14 = icmp eq ptr %40, null
  br i1 %.not24.14, label %.critedge25, label %select.unfold.15

select.unfold.15:                                 ; preds = %select.unfold.14
  %41 = getelementptr inbounds i8, ptr %40, i64 1
  %42 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %41, i32 noundef 32) #9
  %.not24.15 = icmp eq ptr %42, null
  br i1 %.not24.15, label %.critedge25, label %select.unfold.16

select.unfold.16:                                 ; preds = %select.unfold.15
  %43 = getelementptr inbounds i8, ptr %42, i64 1
  %44 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %43, i32 noundef 32) #9
  %.not24.16 = icmp eq ptr %44, null
  br i1 %.not24.16, label %.critedge25, label %select.unfold.17

select.unfold.17:                                 ; preds = %select.unfold.16
  %45 = getelementptr inbounds i8, ptr %44, i64 1
  %46 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %45, i32 noundef 32) #9
  %.not24.17 = icmp eq ptr %46, null
  br i1 %.not24.17, label %.critedge25, label %select.unfold.18

select.unfold.18:                                 ; preds = %select.unfold.17
  %47 = getelementptr inbounds i8, ptr %46, i64 1
  %48 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %47, i32 noundef 32) #9
  %.not24.18 = icmp eq ptr %48, null
  br i1 %.not24.18, label %.critedge25, label %select.unfold.19

select.unfold.19:                                 ; preds = %select.unfold.18
  %49 = getelementptr inbounds i8, ptr %48, i64 1
  %50 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %49, i32 noundef 32) #9
  %.not24.19 = icmp eq ptr %50, null
  br i1 %.not24.19, label %.critedge25, label %select.unfold.20

select.unfold.20:                                 ; preds = %select.unfold.19
  %51 = getelementptr inbounds i8, ptr %50, i64 1
  %52 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %51, i32 noundef 32) #9
  %.not24.20 = icmp eq ptr %52, null
  br i1 %.not24.20, label %.critedge25, label %select.unfold.21

select.unfold.21:                                 ; preds = %select.unfold.20
  %53 = getelementptr inbounds i8, ptr %52, i64 1
  %54 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %53, i32 noundef 32) #9
  %.not24.21 = icmp eq ptr %54, null
  br i1 %.not24.21, label %.critedge25, label %select.unfold.22

select.unfold.22:                                 ; preds = %select.unfold.21
  %55 = getelementptr inbounds i8, ptr %54, i64 1
  %56 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %55, i32 noundef 32) #9
  %.not24.22 = icmp eq ptr %56, null
  %57 = getelementptr inbounds i8, ptr %56, i64 1
  br i1 %.not24.22, label %.critedge25, label %.critedge

.critedge:                                        ; preds = %select.unfold.22
  %58 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %57, i32 noundef 32) #9
  %.not23 = icmp eq ptr %58, null
  br i1 %.not23, label %.critedge25, label %59

59:                                               ; preds = %.critedge
  store i8 0, ptr %58, align 1, !tbaa !5
  %60 = call i64 @strtoll(ptr nocapture noundef nonnull %57, ptr noundef null, i32 noundef 10) #8
  %sext = shl i64 %3, 32
  %61 = ashr exact i64 %sext, 32
  %62 = mul i64 %60, %61
  br label %.critedge25

.critedge25:                                      ; preds = %8, %select.unfold, %select.unfold.1, %select.unfold.2, %select.unfold.3, %select.unfold.4, %select.unfold.5, %select.unfold.6, %select.unfold.7, %select.unfold.8, %select.unfold.9, %select.unfold.10, %select.unfold.11, %select.unfold.12, %select.unfold.13, %select.unfold.14, %select.unfold.15, %select.unfold.16, %select.unfold.17, %select.unfold.18, %select.unfold.19, %select.unfold.20, %select.unfold.21, %select.unfold.22, %.critedge, %0, %59
  %.0 = phi i64 [ %62, %59 ], [ 0, %0 ], [ 0, %.critedge ], [ 0, %select.unfold.22 ], [ 0, %select.unfold.21 ], [ 0, %select.unfold.20 ], [ 0, %select.unfold.19 ], [ 0, %select.unfold.18 ], [ 0, %select.unfold.17 ], [ 0, %select.unfold.16 ], [ 0, %select.unfold.15 ], [ 0, %select.unfold.14 ], [ 0, %select.unfold.13 ], [ 0, %select.unfold.12 ], [ 0, %select.unfold.11 ], [ 0, %select.unfold.10 ], [ 0, %select.unfold.9 ], [ 0, %select.unfold.8 ], [ 0, %select.unfold.7 ], [ 0, %select.unfold.6 ], [ 0, %select.unfold.5 ], [ 0, %select.unfold.4 ], [ 0, %select.unfold.3 ], [ 0, %select.unfold.2 ], [ 0, %select.unfold.1 ], [ 0, %select.unfold ], [ 0, %8 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %1) #8
  ret i64 %.0
}

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

; Function Attrs: nounwind
declare i32 @getpid() local_unnamed_addr #1

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #4

; Function Attrs: nofree
declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #4

declare i32 @close(i32 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtoll(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #7

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass