; LLVM IR from wangziqi2013/EpochManager :: test/var_len_pool_test.ll (Z19VarLenPoolBasicTestv)

; 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"

%class.VarLenPool = type { i64, %"struct.std::atomic", ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { ptr }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@stdout = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._Z19VarLenPoolBasicTestv = external hidden unnamed_addr constant [27 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19VarLenPoolBasicTestv() #0 {
  %1 = alloca [10 x ptr], align 16
  %2 = alloca %class.VarLenPool, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  call void @_Z13PrintTestNamePKc(ptr noundef @.str)
  call void @llvm.lifetime.start.p0(i64 80, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #6
  call void @_ZN10VarLenPoolC2Em(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 64)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %37, %0
  %9 = load i32, ptr %3, align 4, !tbaa !5
  %10 = icmp sle i32 %9, 10
  br i1 %10, label %12, label %11

11:                                               ; preds = %8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %40

12:                                               ; preds = %8
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = call noundef ptr @_ZN10VarLenPool8AllocateEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %14)
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = sub nsw i32 %16, 1
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [10 x ptr], ptr %1, i64 0, i64 %18
  store ptr %15, ptr %19, align 8, !tbaa !9
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = sub nsw i32 %20, 1
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [10 x ptr], ptr %1, i64 0, i64 %22
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = trunc i32 %25 to i8
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %24, i8 %26, i64 %28, i1 false)
  br label %29

29:                                               ; preds = %12
  %30 = load ptr, ptr @stderr, align 8, !tbaa !9
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.1, ptr noundef @.str, i32 noundef %31) #6
  %33 = load ptr, ptr @stdout, align 8, !tbaa !9
  %34 = call i32 @fflush(ptr noundef %33)
  br label %35

35:                                               ; preds = %29
  br label %36

36:                                               ; preds = %35
  br label %37

37:                                               ; preds = %36
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %3, align 4, !tbaa !5
  br label %8, !llvm.loop !11

40:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %83, %40
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = icmp sle i32 %42, 10
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  store i32 7, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %86

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = sub nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [10 x ptr], ptr %1, i64 0, i64 %48
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  store ptr %50, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %71, %45
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 10, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %74

56:                                               ; preds = %51
  %57 = load ptr, ptr %6, align 8, !tbaa !9
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i8, ptr %57, i64 %59
  %61 = load i8, ptr %60, align 1, !tbaa !13
  %62 = sext i8 %61 to i32
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = trunc i32 %63 to i8
  %65 = sext i8 %64 to i32
  %66 = icmp eq i32 %62, %65
  br i1 %66, label %67, label %68

67:                                               ; preds = %56
  br label %70

68:                                               ; preds = %56
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 34, ptr noundef @__PRETTY_FUNCTION__._Z19VarLenPoolBasicTestv) #7
  unreachable

69:                                               ; No predecessors!
  br label %70

70:                                               ; preds = %69, %67
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %7, align 4, !tbaa !5
  br label %51, !llvm.loop !14

74:                                               ; preds = %55
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr @stderr, align 8, !tbaa !9
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.4, ptr noundef @.str, i32 noundef %77) #6
  %79 = load ptr, ptr @stdout, align 8, !tbaa !9
  %80 = call i32 @fflush(ptr noundef %79)
  br label %81

81:                                               ; preds = %75
  br label %82

82:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %4, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %4, align 4, !tbaa !5
  br label %41, !llvm.loop !15

86:                                               ; preds = %44
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %1) #6
  ret void
}

declare void @_Z13PrintTestNamePKc(ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10VarLenPoolC2Em(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN10VarLenPool8AllocateEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

declare i32 @fflush(ptr noundef) #1

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

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

attributes #0 = { mustprogress 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; 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"

%class.VarLenPool = type { i64, %"struct.std::atomic", ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { ptr }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._Z19VarLenPoolBasicTestv = external hidden unnamed_addr constant [27 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19VarLenPoolBasicTestv() local_unnamed_addr #0 {
.preheader.preheader:
  %0 = alloca %class.VarLenPool, align 8
  tail call void @_Z13PrintTestNamePKc(ptr noundef nonnull @.str)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %0) #6
  call void @_ZN10VarLenPoolC2Em(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 64)
  %1 = call noundef ptr @_ZN10VarLenPool8AllocateEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1)
  store i8 1, ptr %1, align 1
  %2 = load ptr, ptr @stderr, align 8, !tbaa !5
  %3 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %2, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str, i32 noundef 1) #7
  %4 = load ptr, ptr @stdout, align 8, !tbaa !5
  %5 = call i32 @fflush(ptr noundef %4)
  %6 = call noundef ptr @_ZN10VarLenPool8AllocateEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 2)
  store i16 514, ptr %6, align 1
  %7 = load ptr, ptr @stderr, align 8, !tbaa !5
  %8 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str, i32 noundef 2) #7
  %9 = load ptr, ptr @stdout, align 8, !tbaa !5
  %10 = call i32 @fflush(ptr noundef %9)
  %11 = call noundef ptr @_ZN10VarLenPool8AllocateEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %11, i8 3, i64 3, i1 false)
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str, i32 noundef 3) #7
  %14 = load ptr, ptr @stdout, align 8, !tbaa !5
  %15 = call i32 @fflush(ptr noundef %14)
  %16 = call noundef ptr @_ZN10VarLenPool8AllocateEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 4)
  store i32 67372036, ptr %16, align 1
  %17 = load ptr, ptr @stderr, align 8, !tbaa !5
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str, i32 noundef 4) #7
  %19 = load ptr, ptr @stdout, align 8, !tbaa !5
  %20 = call i32 @fflush(ptr noundef %19)
  %21 = call noundef ptr @_ZN10VarLenPool8AllocateEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 5)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %21, i8 5, i64 5, i1 false)
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str, i32 noundef 5) #7
  %24 = load ptr, ptr @stdout, align 8, !tbaa !5
  %25 = call i32 @fflush(ptr noundef %24)
  %26 = call noundef ptr @_ZN10VarLenPool8AllocateEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %26, i8 6, i64 6, i1 false)
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str, i32 noundef 6) #7
  %29 = load ptr, ptr @stdout, align 8, !tbaa !5
  %30 = call i32 @fflush(ptr noundef %29)
  %31 = call noundef ptr @_ZN10VarLenPool8AllocateEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 7)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(7) %31, i8 7, i64 7, i1 false)
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str, i32 noundef 7) #7
  %34 = load ptr, ptr @stdout, align 8, !tbaa !5
  %35 = call i32 @fflush(ptr noundef %34)
  %36 = call noundef ptr @_ZN10VarLenPool8AllocateEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 8)
  store i64 578721382704613384, ptr %36, align 1
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str, i32 noundef 8) #7
  %39 = load ptr, ptr @stdout, align 8, !tbaa !5
  %40 = call i32 @fflush(ptr noundef %39)
  %41 = call noundef ptr @_ZN10VarLenPool8AllocateEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 9)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(9) %41, i8 9, i64 9, i1 false)
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str, i32 noundef 9) #7
  %44 = load ptr, ptr @stdout, align 8, !tbaa !5
  %45 = call i32 @fflush(ptr noundef %44)
  %46 = call noundef ptr @_ZN10VarLenPool8AllocateEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 10)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(10) %46, i8 10, i64 10, i1 false)
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str, i32 noundef 10) #7
  %49 = load ptr, ptr @stdout, align 8, !tbaa !5
  %50 = call i32 @fflush(ptr noundef %49)
  %51 = load i8, ptr %1, align 1, !tbaa !9
  %52 = sext i8 %51 to i64
  %53 = and i64 %52, 4294967295
  %54 = icmp eq i64 %53, 1
  br i1 %54, label %.preheader.1, label %.loopexit

.preheader.1:                                     ; preds = %.preheader.preheader
  %55 = load ptr, ptr @stderr, align 8, !tbaa !5
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 1) #7
  %57 = load ptr, ptr @stdout, align 8, !tbaa !5
  %58 = call i32 @fflush(ptr noundef %57)
  %59 = load i8, ptr %6, align 1, !tbaa !9
  %60 = sext i8 %59 to i64
  %61 = and i64 %60, 4294967295
  %62 = icmp eq i64 %61, 2
  br i1 %62, label %63, label %.loopexit

63:                                               ; preds = %.preheader.1
  %64 = getelementptr inbounds i8, ptr %6, i64 1
  %65 = load i8, ptr %64, align 1, !tbaa !9
  %66 = sext i8 %65 to i64
  %67 = and i64 %66, 4294967295
  %68 = icmp eq i64 %67, 2
  br i1 %68, label %.preheader.2, label %.loopexit

.preheader.2:                                     ; preds = %63
  %69 = load ptr, ptr @stderr, align 8, !tbaa !5
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 2) #7
  %71 = load ptr, ptr @stdout, align 8, !tbaa !5
  %72 = call i32 @fflush(ptr noundef %71)
  %73 = load i8, ptr %11, align 1, !tbaa !9
  %74 = sext i8 %73 to i64
  %75 = and i64 %74, 4294967295
  %76 = icmp eq i64 %75, 3
  br i1 %76, label %77, label %.loopexit

77:                                               ; preds = %.preheader.2
  %78 = getelementptr inbounds i8, ptr %11, i64 1
  %79 = load i8, ptr %78, align 1, !tbaa !9
  %80 = sext i8 %79 to i64
  %81 = and i64 %80, 4294967295
  %82 = icmp eq i64 %81, 3
  br i1 %82, label %83, label %.loopexit

83:                                               ; preds = %77
  %84 = getelementptr inbounds i8, ptr %11, i64 2
  %85 = load i8, ptr %84, align 1, !tbaa !9
  %86 = sext i8 %85 to i64
  %87 = and i64 %86, 4294967295
  %88 = icmp eq i64 %87, 3
  br i1 %88, label %.preheader.3, label %.loopexit

.preheader.3:                                     ; preds = %83
  %89 = load ptr, ptr @stderr, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 3) #7
  %91 = load ptr, ptr @stdout, align 8, !tbaa !5
  %92 = call i32 @fflush(ptr noundef %91)
  %93 = load i8, ptr %16, align 1, !tbaa !9
  %94 = sext i8 %93 to i64
  %95 = and i64 %94, 4294967295
  %96 = icmp eq i64 %95, 4
  br i1 %96, label %97, label %.loopexit

97:                                               ; preds = %.preheader.3
  %98 = getelementptr inbounds i8, ptr %16, i64 1
  %99 = load i8, ptr %98, align 1, !tbaa !9
  %100 = sext i8 %99 to i64
  %101 = and i64 %100, 4294967295
  %102 = icmp eq i64 %101, 4
  br i1 %102, label %103, label %.loopexit

103:                                              ; preds = %97
  %104 = getelementptr inbounds i8, ptr %16, i64 2
  %105 = load i8, ptr %104, align 1, !tbaa !9
  %106 = sext i8 %105 to i64
  %107 = and i64 %106, 4294967295
  %108 = icmp eq i64 %107, 4
  br i1 %108, label %109, label %.loopexit

109:                                              ; preds = %103
  %110 = getelementptr inbounds i8, ptr %16, i64 3
  %111 = load i8, ptr %110, align 1, !tbaa !9
  %112 = sext i8 %111 to i64
  %113 = and i64 %112, 4294967295
  %114 = icmp eq i64 %113, 4
  br i1 %114, label %.preheader.4, label %.loopexit

.preheader.4:                                     ; preds = %109
  %115 = load ptr, ptr @stderr, align 8, !tbaa !5
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 4) #7
  %117 = load ptr, ptr @stdout, align 8, !tbaa !5
  %118 = call i32 @fflush(ptr noundef %117)
  %119 = load i8, ptr %21, align 1, !tbaa !9
  %120 = sext i8 %119 to i64
  %121 = and i64 %120, 4294967295
  %122 = icmp eq i64 %121, 5
  br i1 %122, label %123, label %.loopexit

123:                                              ; preds = %.preheader.4
  %124 = getelementptr inbounds i8, ptr %21, i64 1
  %125 = load i8, ptr %124, align 1, !tbaa !9
  %126 = sext i8 %125 to i64
  %127 = and i64 %126, 4294967295
  %128 = icmp eq i64 %127, 5
  br i1 %128, label %129, label %.loopexit

129:                                              ; preds = %123
  %130 = getelementptr inbounds i8, ptr %21, i64 2
  %131 = load i8, ptr %130, align 1, !tbaa !9
  %132 = sext i8 %131 to i64
  %133 = and i64 %132, 4294967295
  %134 = icmp eq i64 %133, 5
  br i1 %134, label %135, label %.loopexit

135:                                              ; preds = %129
  %136 = getelementptr inbounds i8, ptr %21, i64 3
  %137 = load i8, ptr %136, align 1, !tbaa !9
  %138 = sext i8 %137 to i64
  %139 = and i64 %138, 4294967295
  %140 = icmp eq i64 %139, 5
  br i1 %140, label %141, label %.loopexit

141:                                              ; preds = %135
  %142 = getelementptr inbounds i8, ptr %21, i64 4
  %143 = load i8, ptr %142, align 1, !tbaa !9
  %144 = sext i8 %143 to i64
  %145 = and i64 %144, 4294967295
  %146 = icmp eq i64 %145, 5
  br i1 %146, label %.preheader.5, label %.loopexit

.preheader.5:                                     ; preds = %141
  %147 = load ptr, ptr @stderr, align 8, !tbaa !5
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 5) #7
  %149 = load ptr, ptr @stdout, align 8, !tbaa !5
  %150 = call i32 @fflush(ptr noundef %149)
  %151 = load i8, ptr %26, align 1, !tbaa !9
  %152 = sext i8 %151 to i64
  %153 = and i64 %152, 4294967295
  %154 = icmp eq i64 %153, 6
  br i1 %154, label %155, label %.loopexit

155:                                              ; preds = %.preheader.5
  %156 = getelementptr inbounds i8, ptr %26, i64 1
  %157 = load i8, ptr %156, align 1, !tbaa !9
  %158 = sext i8 %157 to i64
  %159 = and i64 %158, 4294967295
  %160 = icmp eq i64 %159, 6
  br i1 %160, label %161, label %.loopexit

161:                                              ; preds = %155
  %162 = getelementptr inbounds i8, ptr %26, i64 2
  %163 = load i8, ptr %162, align 1, !tbaa !9
  %164 = sext i8 %163 to i64
  %165 = and i64 %164, 4294967295
  %166 = icmp eq i64 %165, 6
  br i1 %166, label %167, label %.loopexit

167:                                              ; preds = %161
  %168 = getelementptr inbounds i8, ptr %26, i64 3
  %169 = load i8, ptr %168, align 1, !tbaa !9
  %170 = sext i8 %169 to i64
  %171 = and i64 %170, 4294967295
  %172 = icmp eq i64 %171, 6
  br i1 %172, label %173, label %.loopexit

173:                                              ; preds = %167
  %174 = getelementptr inbounds i8, ptr %26, i64 4
  %175 = load i8, ptr %174, align 1, !tbaa !9
  %176 = sext i8 %175 to i64
  %177 = and i64 %176, 4294967295
  %178 = icmp eq i64 %177, 6
  br i1 %178, label %179, label %.loopexit

179:                                              ; preds = %173
  %180 = getelementptr inbounds i8, ptr %26, i64 5
  %181 = load i8, ptr %180, align 1, !tbaa !9
  %182 = sext i8 %181 to i64
  %183 = and i64 %182, 4294967295
  %184 = icmp eq i64 %183, 6
  br i1 %184, label %.preheader.6, label %.loopexit

.preheader.6:                                     ; preds = %179
  %185 = load ptr, ptr @stderr, align 8, !tbaa !5
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 6) #7
  %187 = load ptr, ptr @stdout, align 8, !tbaa !5
  %188 = call i32 @fflush(ptr noundef %187)
  %189 = load i8, ptr %31, align 1, !tbaa !9
  %190 = sext i8 %189 to i64
  %191 = and i64 %190, 4294967295
  %192 = icmp eq i64 %191, 7
  br i1 %192, label %193, label %.loopexit

193:                                              ; preds = %.preheader.6
  %194 = getelementptr inbounds i8, ptr %31, i64 1
  %195 = load i8, ptr %194, align 1, !tbaa !9
  %196 = sext i8 %195 to i64
  %197 = and i64 %196, 4294967295
  %198 = icmp eq i64 %197, 7
  br i1 %198, label %199, label %.loopexit

199:                                              ; preds = %193
  %200 = getelementptr inbounds i8, ptr %31, i64 2
  %201 = load i8, ptr %200, align 1, !tbaa !9
  %202 = sext i8 %201 to i64
  %203 = and i64 %202, 4294967295
  %204 = icmp eq i64 %203, 7
  br i1 %204, label %205, label %.loopexit

205:                                              ; preds = %199
  %206 = getelementptr inbounds i8, ptr %31, i64 3
  %207 = load i8, ptr %206, align 1, !tbaa !9
  %208 = sext i8 %207 to i64
  %209 = and i64 %208, 4294967295
  %210 = icmp eq i64 %209, 7
  br i1 %210, label %211, label %.loopexit

211:                                              ; preds = %205
  %212 = getelementptr inbounds i8, ptr %31, i64 4
  %213 = load i8, ptr %212, align 1, !tbaa !9
  %214 = sext i8 %213 to i64
  %215 = and i64 %214, 4294967295
  %216 = icmp eq i64 %215, 7
  br i1 %216, label %217, label %.loopexit

217:                                              ; preds = %211
  %218 = getelementptr inbounds i8, ptr %31, i64 5
  %219 = load i8, ptr %218, align 1, !tbaa !9
  %220 = sext i8 %219 to i64
  %221 = and i64 %220, 4294967295
  %222 = icmp eq i64 %221, 7
  br i1 %222, label %223, label %.loopexit

223:                                              ; preds = %217
  %224 = getelementptr inbounds i8, ptr %31, i64 6
  %225 = load i8, ptr %224, align 1, !tbaa !9
  %226 = sext i8 %225 to i64
  %227 = and i64 %226, 4294967295
  %228 = icmp eq i64 %227, 7
  br i1 %228, label %.preheader.7, label %.loopexit

.preheader.7:                                     ; preds = %223
  %229 = load ptr, ptr @stderr, align 8, !tbaa !5
  %230 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %229, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 7) #7
  %231 = load ptr, ptr @stdout, align 8, !tbaa !5
  %232 = call i32 @fflush(ptr noundef %231)
  %233 = load i8, ptr %36, align 1, !tbaa !9
  %234 = sext i8 %233 to i64
  %235 = and i64 %234, 4294967295
  %236 = icmp eq i64 %235, 8
  br i1 %236, label %237, label %.loopexit

237:                                              ; preds = %.preheader.7
  %238 = getelementptr inbounds i8, ptr %36, i64 1
  %239 = load i8, ptr %238, align 1, !tbaa !9
  %240 = sext i8 %239 to i64
  %241 = and i64 %240, 4294967295
  %242 = icmp eq i64 %241, 8
  br i1 %242, label %243, label %.loopexit

243:                                              ; preds = %237
  %244 = getelementptr inbounds i8, ptr %36, i64 2
  %245 = load i8, ptr %244, align 1, !tbaa !9
  %246 = sext i8 %245 to i64
  %247 = and i64 %246, 4294967295
  %248 = icmp eq i64 %247, 8
  br i1 %248, label %249, label %.loopexit

249:                                              ; preds = %243
  %250 = getelementptr inbounds i8, ptr %36, i64 3
  %251 = load i8, ptr %250, align 1, !tbaa !9
  %252 = sext i8 %251 to i64
  %253 = and i64 %252, 4294967295
  %254 = icmp eq i64 %253, 8
  br i1 %254, label %255, label %.loopexit

255:                                              ; preds = %249
  %256 = getelementptr inbounds i8, ptr %36, i64 4
  %257 = load i8, ptr %256, align 1, !tbaa !9
  %258 = sext i8 %257 to i64
  %259 = and i64 %258, 4294967295
  %260 = icmp eq i64 %259, 8
  br i1 %260, label %261, label %.loopexit

261:                                              ; preds = %255
  %262 = getelementptr inbounds i8, ptr %36, i64 5
  %263 = load i8, ptr %262, align 1, !tbaa !9
  %264 = sext i8 %263 to i64
  %265 = and i64 %264, 4294967295
  %266 = icmp eq i64 %265, 8
  br i1 %266, label %267, label %.loopexit

267:                                              ; preds = %261
  %268 = getelementptr inbounds i8, ptr %36, i64 6
  %269 = load i8, ptr %268, align 1, !tbaa !9
  %270 = sext i8 %269 to i64
  %271 = and i64 %270, 4294967295
  %272 = icmp eq i64 %271, 8
  br i1 %272, label %273, label %.loopexit

273:                                              ; preds = %267
  %274 = getelementptr inbounds i8, ptr %36, i64 7
  %275 = load i8, ptr %274, align 1, !tbaa !9
  %276 = sext i8 %275 to i64
  %277 = and i64 %276, 4294967295
  %278 = icmp eq i64 %277, 8
  br i1 %278, label %.preheader.8, label %.loopexit

.preheader.8:                                     ; preds = %273
  %279 = load ptr, ptr @stderr, align 8, !tbaa !5
  %280 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %279, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 8) #7
  %281 = load ptr, ptr @stdout, align 8, !tbaa !5
  %282 = call i32 @fflush(ptr noundef %281)
  %283 = load i8, ptr %41, align 1, !tbaa !9
  %284 = sext i8 %283 to i64
  %285 = and i64 %284, 4294967295
  %286 = icmp eq i64 %285, 9
  br i1 %286, label %287, label %.loopexit

287:                                              ; preds = %.preheader.8
  %288 = getelementptr inbounds i8, ptr %41, i64 1
  %289 = load i8, ptr %288, align 1, !tbaa !9
  %290 = sext i8 %289 to i64
  %291 = and i64 %290, 4294967295
  %292 = icmp eq i64 %291, 9
  br i1 %292, label %293, label %.loopexit

293:                                              ; preds = %287
  %294 = getelementptr inbounds i8, ptr %41, i64 2
  %295 = load i8, ptr %294, align 1, !tbaa !9
  %296 = sext i8 %295 to i64
  %297 = and i64 %296, 4294967295
  %298 = icmp eq i64 %297, 9
  br i1 %298, label %299, label %.loopexit

299:                                              ; preds = %293
  %300 = getelementptr inbounds i8, ptr %41, i64 3
  %301 = load i8, ptr %300, align 1, !tbaa !9
  %302 = sext i8 %301 to i64
  %303 = and i64 %302, 4294967295
  %304 = icmp eq i64 %303, 9
  br i1 %304, label %305, label %.loopexit

305:                                              ; preds = %299
  %306 = getelementptr inbounds i8, ptr %41, i64 4
  %307 = load i8, ptr %306, align 1, !tbaa !9
  %308 = sext i8 %307 to i64
  %309 = and i64 %308, 4294967295
  %310 = icmp eq i64 %309, 9
  br i1 %310, label %311, label %.loopexit

311:                                              ; preds = %305
  %312 = getelementptr inbounds i8, ptr %41, i64 5
  %313 = load i8, ptr %312, align 1, !tbaa !9
  %314 = sext i8 %313 to i64
  %315 = and i64 %314, 4294967295
  %316 = icmp eq i64 %315, 9
  br i1 %316, label %317, label %.loopexit

317:                                              ; preds = %311
  %318 = getelementptr inbounds i8, ptr %41, i64 6
  %319 = load i8, ptr %318, align 1, !tbaa !9
  %320 = sext i8 %319 to i64
  %321 = and i64 %320, 4294967295
  %322 = icmp eq i64 %321, 9
  br i1 %322, label %323, label %.loopexit

323:                                              ; preds = %317
  %324 = getelementptr inbounds i8, ptr %41, i64 7
  %325 = load i8, ptr %324, align 1, !tbaa !9
  %326 = sext i8 %325 to i64
  %327 = and i64 %326, 4294967295
  %328 = icmp eq i64 %327, 9
  br i1 %328, label %329, label %.loopexit

329:                                              ; preds = %323
  %330 = getelementptr inbounds i8, ptr %41, i64 8
  %331 = load i8, ptr %330, align 1, !tbaa !9
  %332 = sext i8 %331 to i64
  %333 = and i64 %332, 4294967295
  %334 = icmp eq i64 %333, 9
  br i1 %334, label %.preheader.9, label %.loopexit

.preheader.9:                                     ; preds = %329
  %335 = load ptr, ptr @stderr, align 8, !tbaa !5
  %336 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %335, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 9) #7
  %337 = load ptr, ptr @stdout, align 8, !tbaa !5
  %338 = call i32 @fflush(ptr noundef %337)
  %339 = load i8, ptr %46, align 1, !tbaa !9
  %340 = sext i8 %339 to i64
  %341 = and i64 %340, 4294967295
  %342 = icmp eq i64 %341, 10
  br i1 %342, label %343, label %.loopexit

343:                                              ; preds = %.preheader.9
  %344 = getelementptr inbounds i8, ptr %46, i64 1
  %345 = load i8, ptr %344, align 1, !tbaa !9
  %346 = sext i8 %345 to i64
  %347 = and i64 %346, 4294967295
  %348 = icmp eq i64 %347, 10
  br i1 %348, label %349, label %.loopexit

349:                                              ; preds = %343
  %350 = getelementptr inbounds i8, ptr %46, i64 2
  %351 = load i8, ptr %350, align 1, !tbaa !9
  %352 = sext i8 %351 to i64
  %353 = and i64 %352, 4294967295
  %354 = icmp eq i64 %353, 10
  br i1 %354, label %355, label %.loopexit

355:                                              ; preds = %349
  %356 = getelementptr inbounds i8, ptr %46, i64 3
  %357 = load i8, ptr %356, align 1, !tbaa !9
  %358 = sext i8 %357 to i64
  %359 = and i64 %358, 4294967295
  %360 = icmp eq i64 %359, 10
  br i1 %360, label %361, label %.loopexit

361:                                              ; preds = %355
  %362 = getelementptr inbounds i8, ptr %46, i64 4
  %363 = load i8, ptr %362, align 1, !tbaa !9
  %364 = sext i8 %363 to i64
  %365 = and i64 %364, 4294967295
  %366 = icmp eq i64 %365, 10
  br i1 %366, label %367, label %.loopexit

367:                                              ; preds = %361
  %368 = getelementptr inbounds i8, ptr %46, i64 5
  %369 = load i8, ptr %368, align 1, !tbaa !9
  %370 = sext i8 %369 to i64
  %371 = and i64 %370, 4294967295
  %372 = icmp eq i64 %371, 10
  br i1 %372, label %373, label %.loopexit

373:                                              ; preds = %367
  %374 = getelementptr inbounds i8, ptr %46, i64 6
  %375 = load i8, ptr %374, align 1, !tbaa !9
  %376 = sext i8 %375 to i64
  %377 = and i64 %376, 4294967295
  %378 = icmp eq i64 %377, 10
  br i1 %378, label %379, label %.loopexit

379:                                              ; preds = %373
  %380 = getelementptr inbounds i8, ptr %46, i64 7
  %381 = load i8, ptr %380, align 1, !tbaa !9
  %382 = sext i8 %381 to i64
  %383 = and i64 %382, 4294967295
  %384 = icmp eq i64 %383, 10
  br i1 %384, label %385, label %.loopexit

385:                                              ; preds = %379
  %386 = getelementptr inbounds i8, ptr %46, i64 8
  %387 = load i8, ptr %386, align 1, !tbaa !9
  %388 = sext i8 %387 to i64
  %389 = and i64 %388, 4294967295
  %390 = icmp eq i64 %389, 10
  br i1 %390, label %391, label %.loopexit

391:                                              ; preds = %385
  %392 = getelementptr inbounds i8, ptr %46, i64 9
  %393 = load i8, ptr %392, align 1, !tbaa !9
  %394 = sext i8 %393 to i64
  %395 = and i64 %394, 4294967295
  %396 = icmp eq i64 %395, 10
  br i1 %396, label %397, label %.loopexit

397:                                              ; preds = %391
  %398 = load ptr, ptr @stderr, align 8, !tbaa !5
  %399 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %398, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 10) #7
  %400 = load ptr, ptr @stdout, align 8, !tbaa !5
  %401 = call i32 @fflush(ptr noundef %400)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %0) #6
  ret void

.loopexit:                                        ; preds = %.preheader.9, %343, %349, %355, %361, %367, %373, %379, %385, %391, %.preheader.8, %287, %293, %299, %305, %311, %317, %323, %329, %.preheader.7, %237, %243, %249, %255, %261, %267, %273, %.preheader.6, %193, %199, %205, %211, %217, %223, %.preheader.5, %155, %161, %167, %173, %179, %.preheader.4, %123, %129, %135, %141, %.preheader.3, %97, %103, %109, %.preheader.2, %77, %83, %.preheader.1, %63, %.preheader.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 34, ptr noundef nonnull @__PRETTY_FUNCTION__._Z19VarLenPoolBasicTestv) #8
  unreachable
}

declare void @_Z13PrintTestNamePKc(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10VarLenPoolC2Em(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN10VarLenPool8AllocateEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

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

attributes #0 = { mustprogress 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { cold nounwind }
attributes #8 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass