; LLVM IR from ohler55/agoo :: ext/agoo (page)

; 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._mimeSlot = type { ptr, [16 x i8], ptr, i64, i32 }

@.str = external hidden unnamed_addr constant [51 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [62 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 willreturn memory(read)
declare i64 @strlen(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i64 @calc_hash(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden ptr @get_mime_bucketp(i64 noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 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: nounwind uwtable
define dso_local i32 @mime_set(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = call i64 @strlen(ptr noundef %14) #7
  %16 = trunc i64 %15 to i32
  store i32 %16, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %17 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %17, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = call i64 @calc_hash(ptr noundef %18, ptr noundef %9)
  store i64 %19, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %20 = load i64, ptr %10, align 8, !tbaa !11
  %21 = call ptr @get_mime_bucketp(i64 noundef %20)
  store ptr %21, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = icmp slt i32 15, %22
  br i1 %23, label %24, label %28

24:                                               ; preds = %3
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call i32 (ptr, i32, ptr, ...) @agoo_err_set(ptr noundef %25, i32 noundef 304, ptr noundef @.str, ptr noundef %26, i32 noundef 15)
  store i32 %27, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %122

28:                                               ; preds = %3
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %30, ptr %12, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %76, %28
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = icmp ne ptr null, %32
  br i1 %33, label %34, label %80

34:                                               ; preds = %31
  %35 = load i64, ptr %10, align 8, !tbaa !11
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct._mimeSlot, ptr %36, i32 0, i32 3
  %38 = load i64, ptr %37, align 8, !tbaa !13
  %39 = icmp eq i64 %35, %38
  br i1 %39, label %40, label %75

40:                                               ; preds = %34
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._mimeSlot, ptr %42, i32 0, i32 4
  %44 = load i32, ptr %43, align 8, !tbaa !15
  %45 = icmp eq i32 %41, %44
  br i1 %45, label %46, label %75

46:                                               ; preds = %40
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = icmp sle i32 0, %47
  br i1 %48, label %49, label %52

49:                                               ; preds = %46
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = icmp sle i32 %50, 9
  br i1 %51, label %61, label %52

52:                                               ; preds = %49, %46
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._mimeSlot, ptr %53, i32 0, i32 1
  %55 = getelementptr inbounds [16 x i8], ptr %54, i64 0, i64 0
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = call i32 @strncmp(ptr noundef %55, ptr noundef %56, i64 noundef %58) #7
  %60 = icmp eq i32 0, %59
  br i1 %60, label %61, label %75

61:                                               ; preds = %52, %49
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._mimeSlot, ptr %62, i32 0, i32 2
  %64 = load ptr, ptr %63, align 8, !tbaa !16
  call void @free(ptr noundef %64) #6
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = call noalias ptr @strdup(ptr noundef %65) #6
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._mimeSlot, ptr %67, i32 0, i32 2
  store ptr %66, ptr %68, align 8, !tbaa !16
  %69 = icmp eq ptr null, %66
  br i1 %69, label %70, label %74

70:                                               ; preds = %61
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = call i32 (ptr, i32, ptr, ...) @agoo_err_set(ptr noundef %71, i32 noundef 304, ptr noundef @.str.1, ptr noundef %72)
  store i32 %73, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %122

74:                                               ; preds = %61
  store i32 0, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %122

75:                                               ; preds = %52, %40, %34
  br label %76

76:                                               ; preds = %75
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct._mimeSlot, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !17
  store ptr %79, ptr %12, align 8, !tbaa !5
  br label %31, !llvm.loop !18

80:                                               ; preds = %31
  %81 = call noalias ptr @malloc(i64 noundef 48) #8
  store ptr %81, ptr %12, align 8, !tbaa !5
  %82 = icmp eq ptr null, %81
  br i1 %82, label %83, label %86

83:                                               ; preds = %80
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = call i32 @agoo_err_memory(ptr noundef %84, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 259)
  store i32 %85, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %122

86:                                               ; preds = %80
  %87 = load i64, ptr %10, align 8, !tbaa !11
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._mimeSlot, ptr %88, i32 0, i32 3
  store i64 %87, ptr %89, align 8, !tbaa !13
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._mimeSlot, ptr %91, i32 0, i32 4
  store i32 %90, ptr %92, align 8, !tbaa !15
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = icmp eq ptr null, %93
  br i1 %94, label %95, label %99

95:                                               ; preds = %86
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct._mimeSlot, ptr %96, i32 0, i32 1
  %98 = getelementptr inbounds [16 x i8], ptr %97, i64 0, i64 0
  store i8 0, ptr %98, align 8, !tbaa !20
  br label %105

99:                                               ; preds = %86
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct._mimeSlot, ptr %100, i32 0, i32 1
  %102 = getelementptr inbounds [16 x i8], ptr %101, i64 0, i64 0
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = call ptr @strcpy(ptr noundef %102, ptr noundef %103) #6
  br label %105

105:                                              ; preds = %99, %95
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = call noalias ptr @strdup(ptr noundef %106) #6
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct._mimeSlot, ptr %108, i32 0, i32 2
  store ptr %107, ptr %109, align 8, !tbaa !16
  %110 = icmp eq ptr null, %107
  br i1 %110, label %111, label %115

111:                                              ; preds = %105
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %112) #6
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = call i32 @agoo_err_memory(ptr noundef %113, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 270)
  store i32 %114, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %122

115:                                              ; preds = %105
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct._mimeSlot, ptr %118, i32 0, i32 0
  store ptr %117, ptr %119, align 8, !tbaa !17
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %120, ptr %121, align 8, !tbaa !5
  store i32 0, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %122

122:                                              ; preds = %115, %111, %83, %74, %70, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %123 = load i32, ptr %4, align 4
  ret i32 %123
}

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #4

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

declare i32 @agoo_err_memory(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 "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 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind allocsize(0) }

!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}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 32}
!14 = !{!"_mimeSlot", !6, i64 0, !7, i64 8, !6, i64 24, !12, i64 32, !10, i64 40}
!15 = !{!14, !10, i64 40}
!16 = !{!14, !6, i64 24}
!17 = !{!14, !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!7, !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 [51 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [62 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: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden ptr @get_mime_bucketp(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 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: nounwind uwtable
define dso_local i32 @mime_set(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #2 {
  %4 = alloca i32, align 4
  %5 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #8
  %6 = trunc i64 %5 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  store i32 %6, ptr %4, align 4, !tbaa !5
  %7 = call i64 @calc_hash(ptr noundef %1, ptr noundef nonnull %4)
  %8 = call ptr @get_mime_bucketp(i64 noundef %7)
  %9 = load i32, ptr %4, align 4
  %.fr = freeze i32 %9
  %10 = icmp sgt i32 %.fr, 15
  br i1 %10, label %20, label %.preheader

.preheader:                                       ; preds = %3
  %.041 = load ptr, ptr %8, align 8, !tbaa !9
  %.not42 = icmp eq ptr %.041, null
  br i1 %.not42, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %or.cond = icmp ult i32 %.fr, 10
  %11 = sext i32 %.fr to i64
  br i1 %or.cond, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %19
  %.043.us = phi ptr [ %.0.us, %19 ], [ %.041, %.lr.ph ]
  %12 = getelementptr inbounds i8, ptr %.043.us, i64 32
  %13 = load i64, ptr %12, align 8, !tbaa !11
  %14 = icmp eq i64 %7, %13
  br i1 %14, label %15, label %19

15:                                               ; preds = %.lr.ph.split.us
  %16 = getelementptr inbounds i8, ptr %.043.us, i64 40
  %17 = load i32, ptr %16, align 8, !tbaa !14
  %18 = icmp eq i32 %.fr, %17
  br i1 %18, label %.split.us, label %19

19:                                               ; preds = %15, %.lr.ph.split.us
  %.0.us = load ptr, ptr %.043.us, align 8, !tbaa !9
  %.not.us = icmp eq ptr %.0.us, null
  br i1 %.not.us, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !15

20:                                               ; preds = %3
  %21 = call i32 (ptr, i32, ptr, ...) @agoo_err_set(ptr noundef %0, i32 noundef 304, ptr noundef nonnull @.str, ptr noundef %1, i32 noundef 15) #9
  br label %59

.lr.ph.split:                                     ; preds = %.lr.ph, %39
  %.043 = phi ptr [ %.0, %39 ], [ %.041, %.lr.ph ]
  %22 = getelementptr inbounds i8, ptr %.043, i64 32
  %23 = load i64, ptr %22, align 8, !tbaa !11
  %24 = icmp eq i64 %7, %23
  br i1 %24, label %25, label %39

25:                                               ; preds = %.lr.ph.split
  %26 = getelementptr inbounds i8, ptr %.043, i64 40
  %27 = load i32, ptr %26, align 8, !tbaa !14
  %28 = icmp eq i32 %.fr, %27
  br i1 %28, label %29, label %39

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %.043, i64 8
  %31 = call i32 @strncmp(ptr noundef nonnull %30, ptr noundef %1, i64 noundef %11) #8
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %.split.us, label %39

.split.us:                                        ; preds = %29, %15
  %.us-phi = phi ptr [ %.043.us, %15 ], [ %.043, %29 ]
  %33 = getelementptr inbounds i8, ptr %.us-phi, i64 24
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  call void @free(ptr noundef %34) #9
  %35 = call noalias ptr @strdup(ptr noundef %2) #9
  store ptr %35, ptr %33, align 8, !tbaa !17
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %59

37:                                               ; preds = %.split.us
  %38 = call i32 (ptr, i32, ptr, ...) @agoo_err_set(ptr noundef %0, i32 noundef 304, ptr noundef nonnull @.str.1, ptr noundef %1) #9
  br label %59

39:                                               ; preds = %.lr.ph.split, %25, %29
  %.0 = load ptr, ptr %.043, align 8, !tbaa !9
  %.not = icmp eq ptr %.0, null
  br i1 %.not, label %._crit_edge, label %.lr.ph.split, !llvm.loop !15

._crit_edge:                                      ; preds = %39, %19, %.preheader
  %40 = call noalias dereferenceable_or_null(48) ptr @malloc(i64 noundef 48) #10
  %41 = icmp eq ptr %40, null
  br i1 %41, label %42, label %44

42:                                               ; preds = %._crit_edge
  %43 = call i32 @agoo_err_memory(ptr noundef %0, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 259) #9
  br label %59

44:                                               ; preds = %._crit_edge
  %45 = getelementptr inbounds i8, ptr %40, i64 32
  store i64 %7, ptr %45, align 8, !tbaa !11
  %46 = getelementptr inbounds i8, ptr %40, i64 40
  store i32 %.fr, ptr %46, align 8, !tbaa !14
  %47 = icmp eq ptr %1, null
  %48 = getelementptr inbounds i8, ptr %40, i64 8
  br i1 %47, label %49, label %50

49:                                               ; preds = %44
  store i8 0, ptr %48, align 8, !tbaa !18
  br label %52

50:                                               ; preds = %44
  %51 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %48, ptr noundef nonnull dereferenceable(1) %1) #9
  br label %52

52:                                               ; preds = %50, %49
  %53 = call noalias ptr @strdup(ptr noundef %2) #9
  %54 = getelementptr inbounds i8, ptr %40, i64 24
  store ptr %53, ptr %54, align 8, !tbaa !17
  %55 = icmp eq ptr %53, null
  br i1 %55, label %56, label %58

56:                                               ; preds = %52
  call void @free(ptr noundef nonnull %40) #9
  %57 = call i32 @agoo_err_memory(ptr noundef %0, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 270) #9
  br label %59

58:                                               ; preds = %52
  store ptr %.041, ptr %40, align 8, !tbaa !19
  store ptr %40, ptr %8, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %.split.us, %58, %56, %42, %37, %20
  %.036 = phi i32 [ %21, %20 ], [ %38, %37 ], [ %43, %42 ], [ %57, %56 ], [ 0, %58 ], [ 0, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  ret i32 %.036
}

declare i32 @agoo_err_set(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #5

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

declare i32 @agoo_err_memory(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 #5 = { mustprogress nofree nounwind willreturn 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 = { 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 #7 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 willreturn memory(read) }
attributes #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }

!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 32}
!12 = !{!"_mimeSlot", !10, i64 0, !7, i64 8, !10, i64 24, !13, i64 32, !6, i64 40}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !6, i64 40}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !10, i64 24}
!18 = !{!7, !7, i64 0}
!19 = !{!12, !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass