; LLVM IR from shellphish/how2heap :: glibc_2.23 (overlapping_chunks_2)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [45 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [139 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [140 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [151 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1, ptr %13, align 4, !tbaa !5
  %14 = load ptr, ptr @stderr, align 8, !tbaa !9
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef @.str) #5
  %16 = load ptr, ptr @stderr, align 8, !tbaa !9
  %17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef @.str.1) #5
  %18 = load ptr, ptr @stderr, align 8, !tbaa !9
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str.2) #5
  %20 = call noalias ptr @malloc(i64 noundef 1000) #6
  store ptr %20, ptr %1, align 8, !tbaa !9
  %21 = call noalias ptr @malloc(i64 noundef 1000) #6
  store ptr %21, ptr %2, align 8, !tbaa !9
  %22 = call noalias ptr @malloc(i64 noundef 1000) #6
  store ptr %22, ptr %3, align 8, !tbaa !9
  %23 = call noalias ptr @malloc(i64 noundef 1000) #6
  store ptr %23, ptr %4, align 8, !tbaa !9
  %24 = call noalias ptr @malloc(i64 noundef 1000) #6
  store ptr %24, ptr %5, align 8, !tbaa !9
  %25 = load ptr, ptr %1, align 8, !tbaa !9
  %26 = call i64 @malloc_usable_size(ptr noundef %25) #5
  %27 = trunc i64 %26 to i32
  store i32 %27, ptr %7, align 4, !tbaa !5
  %28 = load ptr, ptr %2, align 8, !tbaa !9
  %29 = call i64 @malloc_usable_size(ptr noundef %28) #5
  %30 = trunc i64 %29 to i32
  store i32 %30, ptr %8, align 4, !tbaa !5
  %31 = load ptr, ptr %3, align 8, !tbaa !9
  %32 = call i64 @malloc_usable_size(ptr noundef %31) #5
  %33 = trunc i64 %32 to i32
  store i32 %33, ptr %9, align 4, !tbaa !5
  %34 = load ptr, ptr %4, align 8, !tbaa !9
  %35 = call i64 @malloc_usable_size(ptr noundef %34) #5
  %36 = trunc i64 %35 to i32
  store i32 %36, ptr %10, align 4, !tbaa !5
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  %38 = call i64 @malloc_usable_size(ptr noundef %37) #5
  %39 = trunc i64 %38 to i32
  store i32 %39, ptr %11, align 4, !tbaa !5
  %40 = load ptr, ptr @stderr, align 8, !tbaa !9
  %41 = load ptr, ptr %1, align 8, !tbaa !9
  %42 = load ptr, ptr %1, align 8, !tbaa !9
  %43 = load ptr, ptr %1, align 8, !tbaa !9
  %44 = call i64 @malloc_usable_size(ptr noundef %43) #5
  %45 = getelementptr inbounds i8, ptr %42, i64 %44
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.3, ptr noundef %41, ptr noundef %45) #5
  %47 = load ptr, ptr @stderr, align 8, !tbaa !9
  %48 = load ptr, ptr %2, align 8, !tbaa !9
  %49 = load ptr, ptr %2, align 8, !tbaa !9
  %50 = load ptr, ptr %2, align 8, !tbaa !9
  %51 = call i64 @malloc_usable_size(ptr noundef %50) #5
  %52 = getelementptr inbounds i8, ptr %49, i64 %51
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.4, ptr noundef %48, ptr noundef %52) #5
  %54 = load ptr, ptr @stderr, align 8, !tbaa !9
  %55 = load ptr, ptr %3, align 8, !tbaa !9
  %56 = load ptr, ptr %3, align 8, !tbaa !9
  %57 = load ptr, ptr %3, align 8, !tbaa !9
  %58 = call i64 @malloc_usable_size(ptr noundef %57) #5
  %59 = getelementptr inbounds i8, ptr %56, i64 %58
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.5, ptr noundef %55, ptr noundef %59) #5
  %61 = load ptr, ptr @stderr, align 8, !tbaa !9
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  %63 = load ptr, ptr %4, align 8, !tbaa !9
  %64 = load ptr, ptr %4, align 8, !tbaa !9
  %65 = call i64 @malloc_usable_size(ptr noundef %64) #5
  %66 = getelementptr inbounds i8, ptr %63, i64 %65
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.6, ptr noundef %62, ptr noundef %66) #5
  %68 = load ptr, ptr @stderr, align 8, !tbaa !9
  %69 = load ptr, ptr %5, align 8, !tbaa !9
  %70 = load ptr, ptr %5, align 8, !tbaa !9
  %71 = load ptr, ptr %5, align 8, !tbaa !9
  %72 = call i64 @malloc_usable_size(ptr noundef %71) #5
  %73 = getelementptr inbounds i8, ptr %70, i64 %72
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.7, ptr noundef %69, ptr noundef %73) #5
  %75 = load ptr, ptr %1, align 8, !tbaa !9
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  call void @llvm.memset.p0.i64(ptr align 8 %75, i8 65, i64 %77, i1 false)
  %78 = load ptr, ptr %2, align 8, !tbaa !9
  %79 = load i32, ptr %8, align 4, !tbaa !5
  %80 = zext i32 %79 to i64
  call void @llvm.memset.p0.i64(ptr align 8 %78, i8 66, i64 %80, i1 false)
  %81 = load ptr, ptr %3, align 8, !tbaa !9
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = zext i32 %82 to i64
  call void @llvm.memset.p0.i64(ptr align 8 %81, i8 67, i64 %83, i1 false)
  %84 = load ptr, ptr %4, align 8, !tbaa !9
  %85 = load i32, ptr %10, align 4, !tbaa !5
  %86 = zext i32 %85 to i64
  call void @llvm.memset.p0.i64(ptr align 8 %84, i8 68, i64 %86, i1 false)
  %87 = load ptr, ptr %5, align 8, !tbaa !9
  %88 = load i32, ptr %11, align 4, !tbaa !5
  %89 = zext i32 %88 to i64
  call void @llvm.memset.p0.i64(ptr align 8 %87, i8 69, i64 %89, i1 false)
  %90 = load ptr, ptr @stderr, align 8, !tbaa !9
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef @.str.8) #5
  %92 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %92) #5
  %93 = load ptr, ptr @stderr, align 8, !tbaa !9
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.9) #5
  %95 = load i32, ptr %8, align 4, !tbaa !5
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = add i32 %95, %96
  %98 = load i32, ptr %13, align 4, !tbaa !5
  %99 = add i32 %97, %98
  %100 = zext i32 %99 to i64
  %101 = add i64 %100, 16
  %102 = trunc i64 %101 to i32
  %103 = load ptr, ptr %1, align 8, !tbaa !9
  %104 = load i32, ptr %7, align 4, !tbaa !5
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds i8, ptr %103, i64 %105
  store i32 %102, ptr %106, align 4, !tbaa !5
  %107 = load ptr, ptr @stderr, align 8, !tbaa !9
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.10) #5
  %109 = load ptr, ptr @stderr, align 8, !tbaa !9
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str.11) #5
  %111 = load ptr, ptr %2, align 8, !tbaa !9
  call void @free(ptr noundef %111) #5
  %112 = load ptr, ptr @stderr, align 8, !tbaa !9
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.12) #5
  %114 = call noalias ptr @malloc(i64 noundef 2000) #6
  store ptr %114, ptr %6, align 8, !tbaa !9
  %115 = load ptr, ptr %6, align 8, !tbaa !9
  %116 = call i64 @malloc_usable_size(ptr noundef %115) #5
  %117 = trunc i64 %116 to i32
  store i32 %117, ptr %12, align 4, !tbaa !5
  %118 = load ptr, ptr @stderr, align 8, !tbaa !9
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %118, ptr noundef @.str.13) #5
  %120 = load ptr, ptr @stderr, align 8, !tbaa !9
  %121 = load ptr, ptr %6, align 8, !tbaa !9
  %122 = load ptr, ptr %6, align 8, !tbaa !9
  %123 = load i32, ptr %12, align 4, !tbaa !5
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds i8, ptr %122, i64 %124
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str.14, ptr noundef %121, ptr noundef %125) #5
  %127 = load ptr, ptr @stderr, align 8, !tbaa !9
  %128 = load ptr, ptr %3, align 8, !tbaa !9
  %129 = load ptr, ptr %3, align 8, !tbaa !9
  %130 = load i32, ptr %9, align 4, !tbaa !5
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds i8, ptr %129, i64 %131
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.15, ptr noundef %128, ptr noundef %132) #5
  %134 = load ptr, ptr @stderr, align 8, !tbaa !9
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.16) #5
  %136 = load ptr, ptr @stderr, align 8, !tbaa !9
  %137 = load ptr, ptr %3, align 8, !tbaa !9
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.17, ptr noundef %137) #5
  %139 = load ptr, ptr @stderr, align 8, !tbaa !9
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %139, ptr noundef @.str.18) #5
  %141 = load ptr, ptr %6, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 8 %141, i8 70, i64 1500, i1 false)
  %142 = load ptr, ptr @stderr, align 8, !tbaa !9
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.16) #5
  %144 = load ptr, ptr @stderr, align 8, !tbaa !9
  %145 = load ptr, ptr %3, align 8, !tbaa !9
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef @.str.17, ptr noundef %145) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret i32 0
}

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

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

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

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

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

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

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

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


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [45 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [139 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [140 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [151 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = load ptr, ptr @stderr, align 8, !tbaa !5
  %2 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str) #6
  %3 = load ptr, ptr @stderr, align 8, !tbaa !5
  %4 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.1) #6
  %5 = load ptr, ptr @stderr, align 8, !tbaa !5
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.2) #6
  %7 = tail call noalias dereferenceable_or_null(1000) ptr @malloc(i64 noundef 1000) #7
  %8 = tail call noalias dereferenceable_or_null(1000) ptr @malloc(i64 noundef 1000) #7
  %9 = tail call noalias dereferenceable_or_null(1000) ptr @malloc(i64 noundef 1000) #7
  %10 = tail call noalias dereferenceable_or_null(1000) ptr @malloc(i64 noundef 1000) #7
  %11 = tail call noalias dereferenceable_or_null(1000) ptr @malloc(i64 noundef 1000) #7
  %12 = tail call i64 @malloc_usable_size(ptr noundef %7) #8
  %13 = tail call i64 @malloc_usable_size(ptr noundef %8) #8
  %14 = tail call i64 @malloc_usable_size(ptr noundef %9) #8
  %15 = tail call i64 @malloc_usable_size(ptr noundef %10) #8
  %16 = tail call i64 @malloc_usable_size(ptr noundef %11) #8
  %17 = load ptr, ptr @stderr, align 8, !tbaa !5
  %18 = tail call i64 @malloc_usable_size(ptr noundef %7) #8
  %19 = getelementptr inbounds i8, ptr %7, i64 %18
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.3, ptr noundef %7, ptr noundef %19) #6
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = tail call i64 @malloc_usable_size(ptr noundef %8) #8
  %23 = getelementptr inbounds i8, ptr %8, i64 %22
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.4, ptr noundef %8, ptr noundef %23) #6
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = tail call i64 @malloc_usable_size(ptr noundef %9) #8
  %27 = getelementptr inbounds i8, ptr %9, i64 %26
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.5, ptr noundef %9, ptr noundef %27) #6
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = tail call i64 @malloc_usable_size(ptr noundef %10) #8
  %31 = getelementptr inbounds i8, ptr %10, i64 %30
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.6, ptr noundef %10, ptr noundef %31) #6
  %33 = load ptr, ptr @stderr, align 8, !tbaa !5
  %34 = tail call i64 @malloc_usable_size(ptr noundef %11) #8
  %35 = getelementptr inbounds i8, ptr %11, i64 %34
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.7, ptr noundef %11, ptr noundef %35) #6
  %37 = and i64 %12, 4294967295
  tail call void @llvm.memset.p0.i64(ptr align 8 %7, i8 65, i64 %37, i1 false)
  %38 = and i64 %13, 4294967295
  tail call void @llvm.memset.p0.i64(ptr align 8 %8, i8 66, i64 %38, i1 false)
  %39 = and i64 %14, 4294967295
  tail call void @llvm.memset.p0.i64(ptr align 8 %9, i8 67, i64 %39, i1 false)
  %40 = and i64 %15, 4294967295
  tail call void @llvm.memset.p0.i64(ptr align 8 %10, i8 68, i64 %40, i1 false)
  %41 = and i64 %16, 4294967295
  tail call void @llvm.memset.p0.i64(ptr align 8 %11, i8 69, i64 %41, i1 false)
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.8) #6
  tail call void @free(ptr noundef %10) #8
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.9) #6
  %46 = add i64 %14, %13
  %47 = trunc i64 %46 to i32
  %48 = add i32 %47, 17
  %49 = getelementptr inbounds i8, ptr %7, i64 %37
  store i32 %48, ptr %49, align 4, !tbaa !9
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.10) #6
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.11) #6
  tail call void @free(ptr noundef %8) #8
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.12) #6
  %56 = tail call noalias dereferenceable_or_null(2000) ptr @malloc(i64 noundef 2000) #7
  %57 = tail call i64 @malloc_usable_size(ptr noundef %56) #8
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.13) #6
  %60 = load ptr, ptr @stderr, align 8, !tbaa !5
  %61 = and i64 %57, 4294967295
  %62 = getelementptr inbounds i8, ptr %56, i64 %61
  %63 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str.14, ptr noundef %56, ptr noundef %62) #6
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %9, i64 %39
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.15, ptr noundef %9, ptr noundef %65) #6
  %67 = load ptr, ptr @stderr, align 8, !tbaa !5
  %68 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.16) #6
  %69 = load ptr, ptr @stderr, align 8, !tbaa !5
  %70 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.17, ptr noundef %9) #6
  %71 = load ptr, ptr @stderr, align 8, !tbaa !5
  %72 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.18) #6
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1500) %56, i8 70, i64 1500, i1 false)
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.16) #6
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.17, ptr noundef %9) #6
  ret i32 0
}

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

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

; Function Attrs: nounwind
declare i64 @malloc_usable_size(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { 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 #2 = { 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 #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { cold nounwind }
attributes #7 = { nounwind allocsize(0) }
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)"}
!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}


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