; LLVM IR from onnx/onnx-mlir :: src/Runtime/jni (jnilog)

; 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.__va_list_tag = type { i32, i32, ptr, ptr }

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [73 x i8], align 1
@__PRETTY_FUNCTION__.log_printf = external hidden unnamed_addr constant [73 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@log_level_name = external hidden global [6 x ptr], align 16
@.str.9 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i64 @get_threadid() #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @get_filename(ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @log_printf(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ...) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca [4096 x i8], align 16
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca [1 x %struct.__va_list_tag], align 16
  %17 = alloca ptr, align 8
  store i32 %0, ptr %6, align 4, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !9
  %18 = load i32, ptr %6, align 4, !tbaa !5
  %19 = call i32 @get_log_level()
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %21, label %22

21:                                               ; preds = %5
  br label %119

22:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 4096, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !5
  %23 = call i64 @time(ptr noundef %11) #8
  %24 = icmp eq i64 %23, -1
  br i1 %24, label %33, label %25

25:                                               ; preds = %22
  %26 = call ptr @localtime(ptr noundef %11) #8
  store ptr %26, ptr %12, align 8, !tbaa !9
  %27 = icmp eq ptr %26, null
  br i1 %27, label %33, label %28

28:                                               ; preds = %25
  %29 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %30 = load ptr, ptr %12, align 8, !tbaa !9
  %31 = call i64 @strftime(ptr noundef %29, i64 noundef 4096, ptr noundef @.str, ptr noundef %30) #8
  %32 = icmp eq i64 %31, 0
  br i1 %32, label %33, label %42

33:                                               ; preds = %28, %25, %22
  %34 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %35 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %34, ptr noundef @.str.1) #8
  store i32 %35, ptr %14, align 4, !tbaa !5
  %36 = load i32, ptr %14, align 4, !tbaa !5
  %37 = icmp sge i32 %36, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %33
  br i1 true, label %39, label %40

39:                                               ; preds = %38
  br label %41

40:                                               ; preds = %38, %33
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 169, ptr noundef @__PRETTY_FUNCTION__.log_printf) #9
  unreachable

41:                                               ; preds = %39
  br label %42

42:                                               ; preds = %41, %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %43 = call i64 @get_threadid()
  store i64 %43, ptr %15, align 8, !tbaa !11
  %44 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %45 = call i64 @strlen(ptr noundef %44) #10
  %46 = icmp uge i64 4096, %45
  br i1 %46, label %47, label %49

47:                                               ; preds = %42
  br i1 true, label %48, label %49

48:                                               ; preds = %47
  br label %50

49:                                               ; preds = %47, %42
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.4, i32 noundef 177, ptr noundef @__PRETTY_FUNCTION__.log_printf) #9
  unreachable

50:                                               ; preds = %48
  %51 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %52 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %53 = call i64 @strlen(ptr noundef %52) #10
  %54 = getelementptr inbounds i8, ptr %51, i64 %53
  %55 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %56 = call i64 @strlen(ptr noundef %55) #10
  %57 = sub i64 4096, %56
  %58 = load i64, ptr %15, align 8, !tbaa !11
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [6 x ptr], ptr @log_level_name, i64 0, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = load ptr, ptr %7, align 8, !tbaa !9
  %64 = call ptr @get_filename(ptr noundef %63)
  %65 = load ptr, ptr %8, align 8, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %54, i64 noundef %57, ptr noundef @.str.7, i64 noundef %58, ptr noundef %62, ptr noundef %64, ptr noundef %65, i32 noundef %66) #8
  store i32 %67, ptr %14, align 4, !tbaa !5
  %68 = load i32, ptr %14, align 4, !tbaa !5
  %69 = icmp sge i32 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %50
  br i1 true, label %71, label %72

71:                                               ; preds = %70
  br label %73

72:                                               ; preds = %70, %50
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.4, i32 noundef 181, ptr noundef @__PRETTY_FUNCTION__.log_printf) #9
  unreachable

73:                                               ; preds = %71
  %74 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %75 = call i64 @strlen(ptr noundef %74) #10
  %76 = icmp uge i64 4096, %75
  br i1 %76, label %77, label %79

77:                                               ; preds = %73
  br i1 true, label %78, label %79

78:                                               ; preds = %77
  br label %80

79:                                               ; preds = %77, %73
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.4, i32 noundef 206, ptr noundef @__PRETTY_FUNCTION__.log_printf) #9
  unreachable

80:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  %81 = getelementptr inbounds [1 x %struct.__va_list_tag], ptr %16, i64 0, i64 0
  call void @llvm.va_start.p0(ptr %81)
  %82 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %83 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %84 = call i64 @strlen(ptr noundef %83) #10
  %85 = getelementptr inbounds i8, ptr %82, i64 %84
  %86 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %87 = call i64 @strlen(ptr noundef %86) #10
  %88 = sub i64 4096, %87
  %89 = load ptr, ptr %10, align 8, !tbaa !9
  %90 = getelementptr inbounds [1 x %struct.__va_list_tag], ptr %16, i64 0, i64 0
  %91 = call i32 @vsnprintf(ptr noundef %85, i64 noundef %88, ptr noundef %89, ptr noundef %90) #8
  store i32 %91, ptr %14, align 4, !tbaa !5
  %92 = load i32, ptr %14, align 4, !tbaa !5
  %93 = icmp sge i32 %92, 0
  br i1 %93, label %94, label %96

94:                                               ; preds = %80
  br i1 true, label %95, label %96

95:                                               ; preds = %94
  br label %97

96:                                               ; preds = %94, %80
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.4, i32 noundef 212, ptr noundef @__PRETTY_FUNCTION__.log_printf) #9
  unreachable

97:                                               ; preds = %95
  %98 = getelementptr inbounds [1 x %struct.__va_list_tag], ptr %16, i64 0, i64 0
  call void @llvm.va_end.p0(ptr %98)
  %99 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %100 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %101 = call i64 @strlen(ptr noundef %100) #10
  %102 = getelementptr inbounds i8, ptr %99, i64 %101
  %103 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %104 = call i64 @strlen(ptr noundef %103) #10
  %105 = sub i64 4096, %104
  %106 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %102, i64 noundef %105, ptr noundef @.str.14) #8
  store i32 %106, ptr %14, align 4, !tbaa !5
  %107 = load i32, ptr %14, align 4, !tbaa !5
  %108 = icmp sge i32 %107, 0
  br i1 %108, label %109, label %111

109:                                              ; preds = %97
  br i1 true, label %110, label %111

110:                                              ; preds = %109
  br label %112

111:                                              ; preds = %109, %97
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.4, i32 noundef 218, ptr noundef @__PRETTY_FUNCTION__.log_printf) #9
  unreachable

112:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %113 = call ptr @get_log_fp()
  store ptr %113, ptr %17, align 8, !tbaa !9
  %114 = getelementptr inbounds [4096 x i8], ptr %13, i64 0, i64 0
  %115 = load ptr, ptr %17, align 8, !tbaa !9
  %116 = call i32 @fputs(ptr noundef %114, ptr noundef %115)
  %117 = load ptr, ptr %17, align 8, !tbaa !9
  %118 = call i32 @fflush(ptr noundef %117)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %119

119:                                              ; preds = %112, %21
  ret void
}

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #2

; Function Attrs: nounwind
declare ptr @localtime(ptr noundef) #2

; Function Attrs: nounwind
declare i64 @strftime(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #2

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

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

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

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

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

declare i32 @fputs(ptr noundef, ptr noundef) #6

declare i32 @fflush(ptr noundef) #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @get_log_level() #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @get_log_fp() #7

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 = { 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 = { 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 = { nocallback nofree nosync nounwind willreturn }
attributes #6 = { "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 = { inlinehint 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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 = !{!12, !12, i64 0}
!12 = !{!"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"

%struct.__va_list_tag = type { i32, i32, ptr, ptr }

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [73 x i8], align 1
@__PRETTY_FUNCTION__.log_printf = external hidden unnamed_addr constant [73 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@log_level_name = external hidden local_unnamed_addr global [6 x ptr], align 16
@.str.9 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i64 @get_threadid() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @get_filename(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @log_printf(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr nocapture noundef readonly %4, ...) local_unnamed_addr #0 {
  %6 = alloca i64, align 8
  %7 = alloca [4096 x i8], align 16
  %8 = alloca [1 x %struct.__va_list_tag], align 16
  %9 = tail call i32 @get_log_level()
  %10 = icmp sgt i32 %9, %0
  br i1 %10, label %61, label %11

11:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %7) #8
  %12 = call i64 @time(ptr noundef nonnull %6) #8
  %13 = icmp eq i64 %12, -1
  br i1 %13, label %20, label %14

14:                                               ; preds = %11
  %15 = call ptr @localtime(ptr noundef nonnull %6) #8
  %16 = icmp eq ptr %15, null
  br i1 %16, label %20, label %17

17:                                               ; preds = %14
  %18 = call i64 @strftime(ptr noundef nonnull %7, i64 noundef 4096, ptr noundef nonnull @.str, ptr noundef nonnull %15) #8
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %20, label %24

20:                                               ; preds = %17, %14, %11
  %21 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.1) #8
  %22 = icmp sgt i32 %21, -1
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 169, ptr noundef nonnull @__PRETTY_FUNCTION__.log_printf) #9
  unreachable

24:                                               ; preds = %20, %17
  %25 = call i64 @get_threadid()
  %26 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #10
  %27 = icmp ult i64 %26, 4097
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.4, i32 noundef 177, ptr noundef nonnull @__PRETTY_FUNCTION__.log_printf) #9
  unreachable

29:                                               ; preds = %24
  %30 = getelementptr inbounds i8, ptr %7, i64 %26
  %31 = sub nuw nsw i64 4096, %26
  %32 = sext i32 %0 to i64
  %33 = getelementptr inbounds [6 x ptr], ptr @log_level_name, i64 0, i64 %32
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = call ptr @get_filename(ptr noundef %1)
  %36 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull %30, i64 noundef %31, ptr noundef nonnull @.str.7, i64 noundef %25, ptr noundef %34, ptr noundef %35, ptr noundef %2, i32 noundef %3) #8
  %37 = icmp sgt i32 %36, -1
  br i1 %37, label %39, label %38

38:                                               ; preds = %29
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i32 noundef 181, ptr noundef nonnull @__PRETTY_FUNCTION__.log_printf) #9
  unreachable

39:                                               ; preds = %29
  %40 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #10
  %41 = icmp ult i64 %40, 4097
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.4, i32 noundef 206, ptr noundef nonnull @__PRETTY_FUNCTION__.log_printf) #9
  unreachable

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.va_start.p0(ptr nonnull %8)
  %44 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #10
  %45 = getelementptr inbounds i8, ptr %7, i64 %44
  %46 = sub i64 4096, %44
  %47 = call i32 @vsnprintf(ptr noundef nonnull %45, i64 noundef %46, ptr noundef %4, ptr noundef nonnull %8) #8
  %48 = icmp sgt i32 %47, -1
  br i1 %48, label %50, label %49

49:                                               ; preds = %43
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.4, i32 noundef 212, ptr noundef nonnull @__PRETTY_FUNCTION__.log_printf) #9
  unreachable

50:                                               ; preds = %43
  call void @llvm.va_end.p0(ptr nonnull %8)
  %51 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #10
  %52 = getelementptr inbounds i8, ptr %7, i64 %51
  %53 = sub i64 4096, %51
  %54 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull %52, i64 noundef %53, ptr noundef nonnull @.str.14) #8
  %55 = icmp sgt i32 %54, -1
  br i1 %55, label %57, label %56

56:                                               ; preds = %50
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i32 noundef 218, ptr noundef nonnull @__PRETTY_FUNCTION__.log_printf) #9
  unreachable

57:                                               ; preds = %50
  %58 = call ptr @get_log_fp()
  %59 = call i32 @fputs(ptr noundef nonnull %7, ptr noundef %58)
  %60 = call i32 @fflush(ptr noundef %58)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %61

61:                                               ; preds = %5, %57
  ret void
}

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare ptr @localtime(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i64 @strftime(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #5

; 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: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.va_start.p0(ptr) #6

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @get_log_level() local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @get_log_fp() local_unnamed_addr #7

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 = { mustprogress 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 = { 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 = { 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 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #7 = { inlinehint 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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"}


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