; LLVM IR from gabekz/GoodsackEngine :: goodsack/gsk/gsk/util (logger)

; 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.anon = type { ptr, i64 }
%struct.anon.0 = type { ptr, [256 x i8], i64, i8, i64, i64 }
%struct.timeval = type { i64, i64 }
%struct.__va_list_tag = type { i32, i32, ptr, ptr }

@s_logger = external hidden global i32, align 4
@s_initialized = external hidden global i32, align 4
@.str = external hidden unnamed_addr constant [33 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@s_clog = external hidden global %struct.anon, align 8
@s_flog = external hidden global %struct.anon.0, align 8
@__PRETTY_FUNCTION__.logger_log = external hidden unnamed_addr constant [64 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @hasFlag(i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @logger_log(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ...) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %struct.timeval, align 8
  %10 = alloca i64, align 8
  %11 = alloca [32 x i8], align 16
  %12 = alloca i8, align 1
  %13 = alloca [32 x i8], align 16
  %14 = alloca i64, align 8
  %15 = alloca [1 x %struct.__va_list_tag], align 16
  %16 = alloca [1 x %struct.__va_list_tag], align 16
  %17 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  %18 = load volatile i32, ptr @s_logger, align 4, !tbaa !5
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %23, label %20

20:                                               ; preds = %4
  %21 = load volatile i32, ptr @s_initialized, align 4, !tbaa !5
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %24, label %23

23:                                               ; preds = %20, %4
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 415, ptr noundef @__PRETTY_FUNCTION__.logger_log) #6
  unreachable

24:                                               ; preds = %20
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = call i32 @logger_isEnabled(i32 noundef %25)
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  store i32 1, ptr %17, align 4
  br label %93

29:                                               ; preds = %24
  %30 = load i32, ptr %5, align 4, !tbaa !5
  switch i32 %30, label %33 [
    i32 3, label %31
    i32 0, label %32
  ]

31:                                               ; preds = %29
  call void @logger_setDetail(i32 noundef 0)
  br label %34

32:                                               ; preds = %29
  call void @logger_setDetail(i32 noundef 2)
  br label %34

33:                                               ; preds = %29
  call void @logger_setDetail(i32 noundef 1)
  br label %34

34:                                               ; preds = %33, %32, %31
  %35 = call i32 @gettimeofday(ptr noundef %9, ptr noundef null) #5
  %36 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 0
  %37 = load i64, ptr %36, align 8, !tbaa !11
  %38 = mul nsw i64 %37, 1000
  %39 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 1
  %40 = load i64, ptr %39, align 8, !tbaa !14
  %41 = sdiv i64 %40, 1000
  %42 = add nsw i64 %38, %41
  store i64 %42, ptr %10, align 8, !tbaa !15
  %43 = load i32, ptr %5, align 4, !tbaa !5
  %44 = call signext i8 @getLevelChar(i32 noundef %43)
  store i8 %44, ptr %12, align 1, !tbaa !17
  %45 = call i64 @getCurrentThreadID()
  store i64 %45, ptr %14, align 8, !tbaa !18
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %51

48:                                               ; preds = %34
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = getelementptr inbounds [32 x i8], ptr %11, i64 0, i64 0
  call void @setLevelStr(i32 noundef %49, i32 noundef 1, ptr noundef %50)
  br label %51

51:                                               ; preds = %48, %34
  %52 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
  call void @getTimestamp(ptr noundef %9, ptr noundef %52, i64 noundef 32)
  call void @lock()
  %53 = load volatile i32, ptr @s_logger, align 4, !tbaa !5
  %54 = call i32 @hasFlag(i32 noundef %53, i32 noundef 1)
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %69

56:                                               ; preds = %51
  %57 = getelementptr inbounds [1 x %struct.__va_list_tag], ptr %15, i64 0, i64 0
  call void @llvm.va_start.p0(ptr %57)
  %58 = load ptr, ptr @s_clog, align 8, !tbaa !19
  %59 = getelementptr inbounds [32 x i8], ptr %11, i64 0, i64 0
  %60 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
  %61 = load i64, ptr %14, align 8, !tbaa !18
  %62 = load ptr, ptr %6, align 8, !tbaa !9
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = load ptr, ptr %8, align 8, !tbaa !9
  %65 = getelementptr inbounds [1 x %struct.__va_list_tag], ptr %15, i64 0, i64 0
  %66 = load i64, ptr %10, align 8, !tbaa !15
  %67 = call i64 @vflog(ptr noundef %58, ptr noundef %59, ptr noundef %60, i64 noundef %61, ptr noundef %62, i32 noundef %63, ptr noundef %64, ptr noundef %65, i64 noundef %66, ptr noundef getelementptr inbounds (%struct.anon, ptr @s_clog, i32 0, i32 1))
  %68 = getelementptr inbounds [1 x %struct.__va_list_tag], ptr %15, i64 0, i64 0
  call void @llvm.va_end.p0(ptr %68)
  br label %69

69:                                               ; preds = %56, %51
  %70 = load volatile i32, ptr @s_logger, align 4, !tbaa !5
  %71 = call i32 @hasFlag(i32 noundef %70, i32 noundef 2)
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %92

73:                                               ; preds = %69
  %74 = call i32 @rotateLogFiles()
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %91

76:                                               ; preds = %73
  %77 = getelementptr inbounds [1 x %struct.__va_list_tag], ptr %16, i64 0, i64 0
  call void @llvm.va_start.p0(ptr %77)
  %78 = load ptr, ptr @s_flog, align 8, !tbaa !21
  %79 = getelementptr inbounds [32 x i8], ptr %11, i64 0, i64 0
  %80 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
  %81 = load i64, ptr %14, align 8, !tbaa !18
  %82 = load ptr, ptr %6, align 8, !tbaa !9
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = load ptr, ptr %8, align 8, !tbaa !9
  %85 = getelementptr inbounds [1 x %struct.__va_list_tag], ptr %16, i64 0, i64 0
  %86 = load i64, ptr %10, align 8, !tbaa !15
  %87 = call i64 @vflog(ptr noundef %78, ptr noundef %79, ptr noundef %80, i64 noundef %81, ptr noundef %82, i32 noundef %83, ptr noundef %84, ptr noundef %85, i64 noundef %86, ptr noundef getelementptr inbounds (%struct.anon.0, ptr @s_flog, i32 0, i32 5))
  %88 = load i64, ptr getelementptr inbounds (%struct.anon.0, ptr @s_flog, i32 0, i32 4), align 8, !tbaa !23
  %89 = add nsw i64 %88, %87
  store i64 %89, ptr getelementptr inbounds (%struct.anon.0, ptr @s_flog, i32 0, i32 4), align 8, !tbaa !23
  %90 = getelementptr inbounds [1 x %struct.__va_list_tag], ptr %16, i64 0, i64 0
  call void @llvm.va_end.p0(ptr %90)
  br label %91

91:                                               ; preds = %76, %73
  br label %92

92:                                               ; preds = %91, %69
  call void @unlock()
  store i32 0, ptr %17, align 4
  br label %93

93:                                               ; preds = %92, %28
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  %94 = load i32, ptr %17, align 4
  switch i32 %94, label %96 [
    i32 0, label %95
    i32 1, label %95
  ]

95:                                               ; preds = %93, %93
  ret void

96:                                               ; preds = %93
  unreachable
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @logger_setDetail(i32 noundef) #0

; Function Attrs: nounwind
declare i32 @gettimeofday(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden signext i8 @getLevelChar(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i64 @getCurrentThreadID() #0

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.va_start.p0(ptr) #4

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.va_end.p0(ptr) #4

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

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

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

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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind willreturn }
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 = !{!12, !13, i64 0}
!12 = !{!"timeval", !13, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"long long", !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!13, !13, i64 0}
!19 = !{!20, !10, i64 0}
!20 = !{!"", !10, i64 0, !16, i64 8}
!21 = !{!22, !10, i64 0}
!22 = !{!"", !10, i64 0, !7, i64 8, !13, i64 264, !7, i64 272, !13, i64 280, !16, i64 288}
!23 = !{!22, !13, i64 280}


; 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.anon = type { ptr, i64 }
%struct.anon.0 = type { ptr, [256 x i8], i64, i8, i64, i64 }
%struct.timeval = type { i64, i64 }
%struct.__va_list_tag = type { i32, i32, ptr, ptr }

@s_logger = external hidden global i32, align 4
@s_initialized = external hidden global i32, align 4
@.str = external hidden unnamed_addr constant [33 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@s_clog = external hidden global %struct.anon, align 8
@s_flog = external hidden global %struct.anon.0, align 8
@__PRETTY_FUNCTION__.logger_log = external hidden unnamed_addr constant [64 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @logger_log(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ...) local_unnamed_addr #0 {
  %5 = alloca %struct.timeval, align 8
  %6 = alloca [32 x i8], align 16
  %7 = alloca [32 x i8], align 16
  %8 = alloca [1 x %struct.__va_list_tag], align 16
  %9 = alloca [1 x %struct.__va_list_tag], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  %10 = load volatile i32, ptr @s_logger, align 4, !tbaa !5
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %14, label %12

12:                                               ; preds = %4
  %13 = load volatile i32, ptr @s_initialized, align 4, !tbaa !5
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %14, label %15

14:                                               ; preds = %12, %4
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 415, ptr noundef nonnull @__PRETTY_FUNCTION__.logger_log) #6
  unreachable

15:                                               ; preds = %12
  %16 = tail call i32 @logger_isEnabled(i32 noundef %0)
  %.not14 = icmp eq i32 %16, 0
  br i1 %.not14, label %45, label %17

17:                                               ; preds = %15
  %switch.selectcmp = icmp eq i32 %0, 0
  %switch.select = select i1 %switch.selectcmp, i32 2, i32 1
  %switch.selectcmp19 = icmp eq i32 %0, 3
  %switch.select20 = select i1 %switch.selectcmp19, i32 0, i32 %switch.select
  tail call void @logger_setDetail(i32 noundef %switch.select20)
  %18 = call i32 @gettimeofday(ptr noundef nonnull %5, ptr noundef null) #5
  %19 = load i64, ptr %5, align 8, !tbaa !9
  %20 = mul nsw i64 %19, 1000
  %21 = getelementptr inbounds i8, ptr %5, i64 8
  %22 = load i64, ptr %21, align 8, !tbaa !12
  %23 = sdiv i64 %22, 1000
  %24 = add nsw i64 %23, %20
  %25 = tail call signext i8 @getLevelChar(i32 noundef %0)
  %26 = tail call i64 @getCurrentThreadID()
  %.not15 = icmp eq i32 %0, 0
  br i1 %.not15, label %28, label %27

27:                                               ; preds = %17
  call void @setLevelStr(i32 noundef %0, i32 noundef 1, ptr noundef nonnull %6)
  br label %28

28:                                               ; preds = %27, %17
  call void @getTimestamp(ptr noundef nonnull %5, ptr noundef nonnull %7, i64 noundef 32)
  call void @lock()
  %29 = load volatile i32, ptr @s_logger, align 4, !tbaa !5
  %30 = call i32 @hasFlag(i32 noundef %29, i32 noundef 1)
  %.not16 = icmp eq i32 %30, 0
  br i1 %.not16, label %34, label %31

31:                                               ; preds = %28
  call void @llvm.va_start.p0(ptr nonnull %8)
  %32 = load ptr, ptr @s_clog, align 8, !tbaa !13
  %33 = call i64 @vflog(ptr noundef %32, ptr noundef nonnull %6, ptr noundef nonnull %7, i64 noundef %26, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef nonnull %8, i64 noundef %24, ptr noundef nonnull getelementptr inbounds (i8, ptr @s_clog, i64 8))
  call void @llvm.va_end.p0(ptr nonnull %8)
  br label %34

34:                                               ; preds = %31, %28
  %35 = load volatile i32, ptr @s_logger, align 4, !tbaa !5
  %36 = call i32 @hasFlag(i32 noundef %35, i32 noundef 2)
  %.not17 = icmp eq i32 %36, 0
  br i1 %.not17, label %44, label %37

37:                                               ; preds = %34
  %38 = call i32 @rotateLogFiles()
  %.not18 = icmp eq i32 %38, 0
  br i1 %.not18, label %44, label %39

39:                                               ; preds = %37
  call void @llvm.va_start.p0(ptr nonnull %9)
  %40 = load ptr, ptr @s_flog, align 8, !tbaa !17
  %41 = call i64 @vflog(ptr noundef %40, ptr noundef nonnull %6, ptr noundef nonnull %7, i64 noundef %26, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef nonnull %9, i64 noundef %24, ptr noundef nonnull getelementptr inbounds (i8, ptr @s_flog, i64 288))
  %42 = load i64, ptr getelementptr inbounds (i8, ptr @s_flog, i64 280), align 8, !tbaa !19
  %43 = add nsw i64 %42, %41
  store i64 %43, ptr getelementptr inbounds (i8, ptr @s_flog, i64 280), align 8, !tbaa !19
  call void @llvm.va_end.p0(ptr nonnull %9)
  br label %44

44:                                               ; preds = %37, %39, %34
  call void @unlock()
  br label %45

45:                                               ; preds = %15, %44
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  ret void
}

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

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

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

; Function Attrs: nounwind uwtable
declare hidden signext i8 @getLevelChar(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i64 @getCurrentThreadID() local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.va_start.p0(ptr) #4

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.va_end.p0(ptr) #4

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

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

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

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind willreturn }
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, !11, i64 0}
!10 = !{!"timeval", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !15, i64 0}
!14 = !{!"", !15, i64 0, !16, i64 8}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"long long", !7, i64 0}
!17 = !{!18, !15, i64 0}
!18 = !{!"", !15, i64 0, !7, i64 8, !11, i64 264, !7, i64 272, !11, i64 280, !16, i64 288}
!19 = !{!18, !11, i64 280}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass