; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (growTable)

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

@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@__func__.gt_add = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 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

declare void @class_protect_sprintf(ptr noundef, ptr 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 @gt_add(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca [2048 x i8], align 16
  %14 = alloca [2048 x i8], align 16
  %15 = alloca i32, align 4
  %16 = alloca [2048 x i8], align 16
  %17 = alloca [2048 x i8], align 16
  %18 = alloca [2048 x i8], align 16
  %19 = alloca [2048 x i8], align 16
  %20 = alloca [2048 x i8], align 16
  %21 = alloca [2048 x i8], align 16
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i64 %3, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.growTable, ptr %22, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !11
  %25 = icmp eq i32 %24, 1
  br i1 %25, label %26, label %34

26:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 2048, ptr %13) #5
  %27 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %27, ptr noundef @.str.3)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %14) #5
  %28 = getelementptr inbounds [2048 x i8], ptr %14, i64 0, i64 0
  %29 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %28, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %29)
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.growTable, ptr %30, i32 0, i32 4
  %32 = getelementptr inbounds [2048 x i8], ptr %31, i64 0, i64 0
  %33 = getelementptr inbounds [2048 x i8], ptr %14, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %32, ptr noundef @.str.2, ptr noundef @__func__.gt_add, i32 noundef 43, ptr noundef %33)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %13) #5
  store i32 1, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %121

34:                                               ; preds = %4
  %35 = load i64, ptr %7, align 8, !tbaa !9
  %36 = icmp eq i64 %35, -1
  br i1 %36, label %37, label %41

37:                                               ; preds = %34
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.growTable, ptr %38, i32 0, i32 2
  %40 = load i64, ptr %39, align 8, !tbaa !14
  store i64 %40, ptr %10, align 8, !tbaa !9
  br label %43

41:                                               ; preds = %34
  %42 = load i64, ptr %7, align 8, !tbaa !9
  store i64 %42, ptr %10, align 8, !tbaa !9
  br label %43

43:                                               ; preds = %41, %37
  %44 = load i64, ptr %10, align 8, !tbaa !9
  %45 = icmp slt i64 %44, 0
  br i1 %45, label %46, label %55

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 2048, ptr %16) #5
  %47 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  %48 = load i64, ptr %10, align 8, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %47, ptr noundef @.str.6, i64 noundef %48)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %17) #5
  %49 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  %50 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %49, ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef %50)
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.growTable, ptr %51, i32 0, i32 4
  %53 = getelementptr inbounds [2048 x i8], ptr %52, i64 0, i64 0
  %54 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %53, ptr noundef @.str.2, ptr noundef @__func__.gt_add, i32 noundef 53, ptr noundef %54)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %16) #5
  store i32 1, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %121

55:                                               ; preds = %43
  %56 = load i64, ptr %10, align 8, !tbaa !9
  %57 = load i64, ptr %9, align 8, !tbaa !9
  %58 = add nsw i64 %56, %57
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.growTable, ptr %59, i32 0, i32 1
  %61 = load i64, ptr %60, align 8, !tbaa !15
  %62 = icmp sgt i64 %58, %61
  br i1 %62, label %63, label %92

63:                                               ; preds = %55
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.growTable, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !16
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.growTable, ptr %67, i32 0, i32 1
  %69 = load i64, ptr %68, align 8, !tbaa !15
  %70 = mul nsw i64 %69, 2
  %71 = call ptr @realloc(ptr noundef %66, i64 noundef %70) #6
  store ptr %71, ptr %12, align 8, !tbaa !5
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = icmp eq ptr %72, null
  br i1 %73, label %74, label %82

74:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 2048, ptr %18) #5
  %75 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %75, ptr noundef @.str.8)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %19) #5
  %76 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  %77 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %76, ptr noundef @.str.4, ptr noundef @.str.9, ptr noundef %77)
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.growTable, ptr %78, i32 0, i32 4
  %80 = getelementptr inbounds [2048 x i8], ptr %79, i64 0, i64 0
  %81 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %80, ptr noundef @.str.2, ptr noundef @__func__.gt_add, i32 noundef 60, ptr noundef %81)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %18) #5
  store i32 1, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %121

82:                                               ; preds = %63
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.growTable, ptr %84, i32 0, i32 0
  store ptr %83, ptr %85, align 8, !tbaa !16
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.growTable, ptr %86, i32 0, i32 1
  %88 = load i64, ptr %87, align 8, !tbaa !15
  %89 = mul nsw i64 %88, 2
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.growTable, ptr %90, i32 0, i32 1
  store i64 %89, ptr %91, align 8, !tbaa !15
  br label %92

92:                                               ; preds = %82, %55
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.growTable, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !16
  %96 = load i64, ptr %10, align 8, !tbaa !9
  %97 = getelementptr inbounds i8, ptr %95, i64 %96
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %97, ptr align 1 %98, i64 %99, i1 false)
  store ptr %97, ptr %11, align 8, !tbaa !5
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.growTable, ptr %101, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !16
  %104 = load i64, ptr %10, align 8, !tbaa !9
  %105 = getelementptr inbounds i8, ptr %103, i64 %104
  %106 = icmp ne ptr %100, %105
  br i1 %106, label %107, label %115

107:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 2048, ptr %20) #5
  %108 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %108, ptr noundef @.str.10)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #5
  %109 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %110 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %109, ptr noundef @.str.4, ptr noundef @.str.11, ptr noundef %110)
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.growTable, ptr %111, i32 0, i32 4
  %113 = getelementptr inbounds [2048 x i8], ptr %112, i64 0, i64 0
  %114 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %113, ptr noundef @.str.2, ptr noundef @__func__.gt_add, i32 noundef 68, ptr noundef %114)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %20) #5
  store i32 1, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %121

115:                                              ; preds = %92
  %116 = load i64, ptr %10, align 8, !tbaa !9
  %117 = load i64, ptr %9, align 8, !tbaa !9
  %118 = add nsw i64 %116, %117
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.growTable, ptr %119, i32 0, i32 2
  store i64 %118, ptr %120, align 8, !tbaa !14
  store i32 0, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %121

121:                                              ; preds = %115, %107, %74, %46, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %122 = load i32, ptr %5, align 4
  ret i32 %122
}

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 24}
!12 = !{!"", !6, i64 0, !10, i64 8, !10, i64 16, !13, i64 24, !7, i64 28}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !10, i64 8}
!16 = !{!12, !6, 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.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@__func__.gt_add = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 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

declare void @class_protect_sprintf(ptr noundef, ptr 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 range(i32 0, 2) i32 @gt_add(ptr noundef %0, i64 noundef %1, ptr nocapture noundef readonly %2, i64 noundef %3) local_unnamed_addr #2 {
  %5 = alloca [2048 x i8], align 16
  %6 = alloca [2048 x i8], align 16
  %7 = alloca [2048 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = load i32, ptr %13, align 8, !tbaa !5
  %15 = icmp eq i32 %14, 1
  br i1 %15, label %16, label %18

16:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %5) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.3) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %6) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %5) #5
  %17 = getelementptr inbounds i8, ptr %0, i64 28
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %17, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.gt_add, i32 noundef 43, ptr noundef nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #5
  br label %49

18:                                               ; preds = %4
  %19 = icmp eq i64 %1, -1
  br i1 %19, label %20, label %23

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %0, i64 16
  %22 = load i64, ptr %21, align 8, !tbaa !12
  br label %23

23:                                               ; preds = %18, %20
  %.030 = phi i64 [ %22, %20 ], [ %1, %18 ]
  %24 = icmp slt i64 %.030, 0
  br i1 %24, label %25, label %27

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.6, i64 noundef %.030) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.7, ptr noundef nonnull %7) #5
  %26 = getelementptr inbounds i8, ptr %0, i64 28
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %26, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.gt_add, i32 noundef 53, ptr noundef nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #5
  br label %49

27:                                               ; preds = %23
  %28 = add nsw i64 %.030, %3
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = load i64, ptr %29, align 8, !tbaa !13
  %31 = icmp sgt i64 %28, %30
  %.pre = load ptr, ptr %0, align 8, !tbaa !14
  br i1 %31, label %32, label %41

32:                                               ; preds = %27
  %33 = shl nsw i64 %30, 1
  %34 = tail call ptr @realloc(ptr noundef %.pre, i64 noundef %33) #6
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %38

36:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.8) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.9, ptr noundef nonnull %9) #5
  %37 = getelementptr inbounds i8, ptr %0, i64 28
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %37, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.gt_add, i32 noundef 60, ptr noundef nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #5
  br label %49

38:                                               ; preds = %32
  store ptr %34, ptr %0, align 8, !tbaa !14
  %39 = load i64, ptr %29, align 8, !tbaa !13
  %40 = shl nsw i64 %39, 1
  store i64 %40, ptr %29, align 8, !tbaa !13
  br label %41

41:                                               ; preds = %38, %27
  %42 = phi ptr [ %34, %38 ], [ %.pre, %27 ]
  %43 = getelementptr inbounds i8, ptr %42, i64 %.030
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %43, ptr align 1 %2, i64 %3, i1 false)
  %44 = load ptr, ptr %0, align 8, !tbaa !14
  %.not = icmp eq ptr %42, %44
  br i1 %.not, label %47, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.10) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.11, ptr noundef nonnull %11) #5
  %46 = getelementptr inbounds i8, ptr %0, i64 28
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %46, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.gt_add, i32 noundef 68, ptr noundef nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #5
  br label %49

47:                                               ; preds = %41
  %48 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %28, ptr %48, align 8, !tbaa !12
  br label %49

49:                                               ; preds = %47, %45, %36, %25, %16
  %.0 = phi i32 [ 1, %16 ], [ 1, %25 ], [ 1, %36 ], [ 1, %45 ], [ 0, %47 ]
  ret i32 %.0
}

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(1) }

!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, !11, i64 24}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !8, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !10, i64 16}
!13 = !{!6, !10, i64 8}
!14 = !{!6, !7, i64 0}


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