; LLVM IR from jingweizhanghuai/Morn :: test (test_large_integer)

; 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.1 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @test_GMP(i32 noundef, 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
declare dso_local i32 @test_OpenSSL(i32 noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %10 = call noalias ptr @malloc(i64 noundef 500000) #7
  store ptr %10, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %11 = call noalias ptr @malloc(i64 noundef 500000) #7
  store ptr %11, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %12 = call noalias ptr @malloc(i64 noundef 500000) #7
  store ptr %12, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %13 = call noalias ptr @malloc(i64 noundef 500000) #7
  store ptr %13, ptr %5, align 8, !tbaa !5
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = call i32 @test_GMP(i32 noundef 100, ptr noundef %15)
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = call i32 @test_OpenSSL(i32 noundef 100, ptr noundef %17)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  call void @test_Morn(i32 noundef 100, ptr noundef %19)
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  call void @test_Morn2(i32 noundef 100, ptr noundef %20)
  br label %21

21:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = call i32 @strcmp(ptr noundef %22, ptr noundef %23) #8
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %31, label %26

26:                                               ; preds = %21
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call i32 @strcmp(ptr noundef %27, ptr noundef %28) #8
  %30 = icmp ne i32 %29, 0
  br label %31

31:                                               ; preds = %26, %21
  %32 = phi i1 [ true, %21 ], [ %30, %26 ]
  %33 = zext i1 %32 to i32
  store i32 %33, ptr %6, align 4, !tbaa !9
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %38

36:                                               ; preds = %31
  %37 = load i32, ptr %6, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %37, i32 noundef -1, ptr noundef @.str.1, i32 noundef 84, ptr noundef @__FUNCTION__.main, ptr noundef @.str.6)
  br label %38

38:                                               ; preds = %36, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %39

39:                                               ; preds = %38
  br label %40

40:                                               ; preds = %39
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = call i32 @test_GMP(i32 noundef 1000, ptr noundef %42)
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = call i32 @test_OpenSSL(i32 noundef 1000, ptr noundef %44)
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  call void @test_Morn(i32 noundef 1000, ptr noundef %46)
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  call void @test_Morn2(i32 noundef 1000, ptr noundef %47)
  br label %48

48:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = call i32 @strcmp(ptr noundef %49, ptr noundef %50) #8
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %58, label %53

53:                                               ; preds = %48
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = call i32 @strcmp(ptr noundef %54, ptr noundef %55) #8
  %57 = icmp ne i32 %56, 0
  br label %58

58:                                               ; preds = %53, %48
  %59 = phi i1 [ true, %48 ], [ %57, %53 ]
  %60 = zext i1 %59 to i32
  store i32 %60, ptr %7, align 4, !tbaa !9
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %58
  %64 = load i32, ptr %7, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %64, i32 noundef -1, ptr noundef @.str.1, i32 noundef 91, ptr noundef @__FUNCTION__.main, ptr noundef @.str.6)
  br label %65

65:                                               ; preds = %63, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %66

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = call i32 @test_GMP(i32 noundef 10000, ptr noundef %69)
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = call i32 @test_OpenSSL(i32 noundef 10000, ptr noundef %71)
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  call void @test_Morn(i32 noundef 10000, ptr noundef %73)
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  call void @test_Morn2(i32 noundef 10000, ptr noundef %74)
  br label %75

75:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = call i32 @strcmp(ptr noundef %76, ptr noundef %77) #8
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %85, label %80

80:                                               ; preds = %75
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = call i32 @strcmp(ptr noundef %81, ptr noundef %82) #8
  %84 = icmp ne i32 %83, 0
  br label %85

85:                                               ; preds = %80, %75
  %86 = phi i1 [ true, %75 ], [ %84, %80 ]
  %87 = zext i1 %86 to i32
  store i32 %87, ptr %8, align 4, !tbaa !9
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %92

90:                                               ; preds = %85
  %91 = load i32, ptr %8, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %91, i32 noundef -1, ptr noundef @.str.1, i32 noundef 98, ptr noundef @__FUNCTION__.main, ptr noundef @.str.6)
  br label %92

92:                                               ; preds = %90, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = call i32 @test_GMP(i32 noundef 100000, ptr noundef %96)
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = call i32 @test_OpenSSL(i32 noundef 100000, ptr noundef %98)
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  call void @test_Morn(i32 noundef 100000, ptr noundef %100)
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  call void @test_Morn2(i32 noundef 100000, ptr noundef %101)
  br label %102

102:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = call i32 @strcmp(ptr noundef %103, ptr noundef %104) #8
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %112, label %107

107:                                              ; preds = %102
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = call i32 @strcmp(ptr noundef %108, ptr noundef %109) #8
  %111 = icmp ne i32 %110, 0
  br label %112

112:                                              ; preds = %107, %102
  %113 = phi i1 [ true, %102 ], [ %111, %107 ]
  %114 = zext i1 %113 to i32
  store i32 %114, ptr %9, align 4, !tbaa !9
  %115 = load i32, ptr %9, align 4, !tbaa !9
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %119

117:                                              ; preds = %112
  %118 = load i32, ptr %9, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %118, i32 noundef -1, ptr noundef @.str.1, i32 noundef 105, ptr noundef @__FUNCTION__.main, ptr noundef @.str.6)
  br label %119

119:                                              ; preds = %117, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %120

120:                                              ; preds = %119
  br label %121

121:                                              ; preds = %120
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %122) #6
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %123) #6
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %124) #6
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %125) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  ret i32 0
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

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

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind
declare void @free(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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(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 "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 allocsize(0) }
attributes #8 = { 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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !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.1 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call noalias dereferenceable_or_null(500000) ptr @malloc(i64 noundef 500000) #6
  %2 = tail call noalias dereferenceable_or_null(500000) ptr @malloc(i64 noundef 500000) #6
  %3 = tail call noalias dereferenceable_or_null(500000) ptr @malloc(i64 noundef 500000) #6
  %4 = tail call noalias dereferenceable_or_null(500000) ptr @malloc(i64 noundef 500000) #6
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %6 = tail call i32 @test_GMP(i32 noundef 100, ptr noundef %1)
  %7 = tail call i32 @test_OpenSSL(i32 noundef 100, ptr noundef %2)
  tail call void @test_Morn(i32 noundef 100, ptr noundef %3)
  tail call void @test_Morn2(i32 noundef 100, ptr noundef %4)
  %8 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) %3) #7
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %9, label %.thread

9:                                                ; preds = %0
  %10 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %4) #7
  %.not49 = icmp eq i32 %10, 0
  br i1 %.not49, label %11, label %.thread

.thread:                                          ; preds = %0, %9
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 84, ptr noundef nonnull @__FUNCTION__.main, ptr noundef nonnull @.str.6) #8
  br label %11

11:                                               ; preds = %.thread, %9
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %13 = tail call i32 @test_GMP(i32 noundef 1000, ptr noundef %1)
  %14 = tail call i32 @test_OpenSSL(i32 noundef 1000, ptr noundef %2)
  tail call void @test_Morn(i32 noundef 1000, ptr noundef %3)
  tail call void @test_Morn2(i32 noundef 1000, ptr noundef %4)
  %15 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) %3) #7
  %.not43 = icmp eq i32 %15, 0
  br i1 %.not43, label %16, label %.thread46

16:                                               ; preds = %11
  %17 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %4) #7
  %.not50 = icmp eq i32 %17, 0
  br i1 %.not50, label %18, label %.thread46

.thread46:                                        ; preds = %11, %16
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 91, ptr noundef nonnull @__FUNCTION__.main, ptr noundef nonnull @.str.6) #8
  br label %18

18:                                               ; preds = %.thread46, %16
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %20 = tail call i32 @test_GMP(i32 noundef 10000, ptr noundef %1)
  %21 = tail call i32 @test_OpenSSL(i32 noundef 10000, ptr noundef %2)
  tail call void @test_Morn(i32 noundef 10000, ptr noundef %3)
  tail call void @test_Morn2(i32 noundef 10000, ptr noundef %4)
  %22 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) %3) #7
  %.not44 = icmp eq i32 %22, 0
  br i1 %.not44, label %23, label %.thread47

23:                                               ; preds = %18
  %24 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %4) #7
  %.not51 = icmp eq i32 %24, 0
  br i1 %.not51, label %25, label %.thread47

.thread47:                                        ; preds = %18, %23
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 98, ptr noundef nonnull @__FUNCTION__.main, ptr noundef nonnull @.str.6) #8
  br label %25

25:                                               ; preds = %.thread47, %23
  %26 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %27 = tail call i32 @test_GMP(i32 noundef 100000, ptr noundef %1)
  %28 = tail call i32 @test_OpenSSL(i32 noundef 100000, ptr noundef %2)
  tail call void @test_Morn(i32 noundef 100000, ptr noundef %3)
  tail call void @test_Morn2(i32 noundef 100000, ptr noundef %4)
  %29 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) %3) #7
  %.not45 = icmp eq i32 %29, 0
  br i1 %.not45, label %30, label %.thread48

30:                                               ; preds = %25
  %31 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %4) #7
  %.not52 = icmp eq i32 %31, 0
  br i1 %.not52, label %32, label %.thread48

.thread48:                                        ; preds = %25, %30
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 105, ptr noundef nonnull @__FUNCTION__.main, ptr noundef nonnull @.str.6) #8
  br label %32

32:                                               ; preds = %.thread48, %30
  tail call void @free(ptr noundef %1) #8
  tail call void @free(ptr noundef %2) #8
  tail call void @free(ptr noundef %3) #8
  tail call void @free(ptr noundef %4) #8
  ret i32 0
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

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

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

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { "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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 allocsize(0) }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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)"}


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