; LLVM IR from shellphish/how2heap :: glibc_2.27 (house_of_einherjar)

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

@stdin = external global ptr, align 8
@stdout = external global ptr, align 8
@.str = external hidden unnamed_addr constant [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [145 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [85 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 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 i32, align 4
  %5 = alloca [6 x i64], align 16
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = load ptr, ptr @stdin, align 8, !tbaa !5
  call void @setbuf(ptr noundef %9, ptr noundef null) #6
  %10 = load ptr, ptr @stdout, align 8, !tbaa !5
  call void @setbuf(ptr noundef %10, ptr noundef null) #6
  %11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %16 = call noalias ptr @malloc(i64 noundef 56) #7
  store ptr %16, ptr %1, align 8, !tbaa !5
  %17 = load ptr, ptr %1, align 8, !tbaa !5
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %19 = load ptr, ptr %1, align 8, !tbaa !5
  %20 = call i64 @malloc_usable_size(ptr noundef %19) #6
  %21 = trunc i64 %20 to i32
  store i32 %21, ptr %4, align 4, !tbaa !9
  %22 = load i32, ptr %4, align 4, !tbaa !9
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %22)
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #6
  %28 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 0
  store i64 256, ptr %28, align 16, !tbaa !11
  %29 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 1
  store i64 256, ptr %29, align 8, !tbaa !11
  %30 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 0
  %31 = ptrtoint ptr %30 to i64
  %32 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 2
  store i64 %31, ptr %32, align 16, !tbaa !11
  %33 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 0
  %34 = ptrtoint ptr %33 to i64
  %35 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 3
  store i64 %34, ptr %35, align 8, !tbaa !11
  %36 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 0
  %37 = ptrtoint ptr %36 to i64
  %38 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 4
  store i64 %37, ptr %38, align 16, !tbaa !11
  %39 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 0
  %40 = ptrtoint ptr %39 to i64
  %41 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 5
  store i64 %40, ptr %41, align 8, !tbaa !11
  %42 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 0
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %42)
  %44 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 0
  %45 = load i64, ptr %44, align 16, !tbaa !11
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef %45)
  %47 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 1
  %48 = load i64, ptr %47, align 8, !tbaa !11
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i64 noundef %48)
  %50 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 2
  %51 = load i64, ptr %50, align 16, !tbaa !11
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i64 noundef %51)
  %53 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 3
  %54 = load i64, ptr %53, align 8, !tbaa !11
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i64 noundef %54)
  %56 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 4
  %57 = load i64, ptr %56, align 16, !tbaa !11
  %58 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i64 noundef %57)
  %59 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 5
  %60 = load i64, ptr %59, align 8, !tbaa !11
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i64 noundef %60)
  %62 = call noalias ptr @malloc(i64 noundef 1272) #7
  store ptr %62, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = call i64 @malloc_usable_size(ptr noundef %63) #6
  %65 = trunc i64 %64 to i32
  store i32 %65, ptr %6, align 4, !tbaa !9
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, ptr noundef %67)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 -8
  store ptr %70, ptr %7, align 8, !tbaa !5
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load i64, ptr %71, align 8, !tbaa !11
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i64 noundef %72)
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  %76 = load ptr, ptr %1, align 8, !tbaa !5
  %77 = load i32, ptr %4, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i8, ptr %76, i64 %78
  store i8 0, ptr %79, align 1, !tbaa !13
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = load i64, ptr %80, align 8, !tbaa !11
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i64 noundef %81)
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, i64 noundef 8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i64 -16
  %88 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 0
  %89 = ptrtoint ptr %87 to i64
  %90 = ptrtoint ptr %88 to i64
  %91 = sub i64 %89, %90
  store i64 %91, ptr %8, align 8, !tbaa !11
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %92, i64 -16
  %94 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 0
  %95 = load i64, ptr %8, align 8, !tbaa !11
  %96 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, ptr noundef %93, ptr noundef %94, i64 noundef %95)
  %97 = load i64, ptr %8, align 8, !tbaa !11
  %98 = load ptr, ptr %1, align 8, !tbaa !5
  %99 = load i32, ptr %4, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = sub i64 %100, 8
  %102 = getelementptr inbounds i8, ptr %98, i64 %101
  store i64 %97, ptr %102, align 8, !tbaa !11
  %103 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  %104 = load i64, ptr %8, align 8, !tbaa !11
  %105 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 1
  store i64 %104, ptr %105, align 8, !tbaa !11
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %107) #6
  %108 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 1
  %109 = load i64, ptr %108, align 8, !tbaa !11
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, i64 noundef %109)
  %111 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  %112 = call noalias ptr @malloc(i64 noundef 512) #7
  store ptr %112, ptr %3, align 8, !tbaa !5
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef %113)
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = ptrtoint ptr %115 to i64
  %117 = getelementptr inbounds [6 x i64], ptr %5, i64 0, i64 2
  %118 = ptrtoint ptr %117 to i64
  %119 = icmp eq i64 %116, %118
  br i1 %119, label %120, label %121

120:                                              ; preds = %0
  br label %122

121:                                              ; preds = %0
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.34, i32 noundef 115, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

122:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  ret i32 0
}

; Function Attrs: nounwind
declare void @setbuf(ptr noundef, ptr noundef) #1

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

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

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

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

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

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

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

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 = { 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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 = { nounwind allocsize(0) }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!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"

@stdin = external local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [145 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [85 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [6 x i64], align 16
  %2 = load ptr, ptr @stdin, align 8, !tbaa !5
  tail call void @setbuf(ptr noundef %2, ptr noundef null) #7
  %3 = load ptr, ptr @stdout, align 8, !tbaa !5
  tail call void @setbuf(ptr noundef %3, ptr noundef null) #7
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %9 = tail call noalias dereferenceable_or_null(56) ptr @malloc(i64 noundef 56) #8
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef %9)
  %11 = tail call i64 @malloc_usable_size(ptr noundef %9) #7
  %12 = trunc i64 %11 to i32
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %12)
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #7
  store i64 256, ptr %1, align 16, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  store i64 256, ptr %18, align 8, !tbaa !9
  %19 = ptrtoint ptr %1 to i64
  %20 = getelementptr inbounds i8, ptr %1, i64 16
  store i64 %19, ptr %20, align 16, !tbaa !9
  %21 = getelementptr inbounds i8, ptr %1, i64 24
  store i64 %19, ptr %21, align 8, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %1, i64 32
  store i64 %19, ptr %22, align 16, !tbaa !9
  %23 = getelementptr inbounds i8, ptr %1, i64 40
  store i64 %19, ptr %23, align 8, !tbaa !9
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef nonnull %1)
  %25 = load i64, ptr %1, align 16, !tbaa !9
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i64 noundef %25)
  %27 = load i64, ptr %18, align 8, !tbaa !9
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i64 noundef %27)
  %29 = load i64, ptr %20, align 16, !tbaa !9
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i64 noundef %29)
  %31 = load i64, ptr %21, align 8, !tbaa !9
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i64 noundef %31)
  %33 = load i64, ptr %22, align 16, !tbaa !9
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i64 noundef %33)
  %35 = load i64, ptr %23, align 8, !tbaa !9
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i64 noundef %35)
  %37 = call noalias dereferenceable_or_null(1272) ptr @malloc(i64 noundef 1272) #8
  %38 = call i64 @malloc_usable_size(ptr noundef %37) #7
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, ptr noundef %37)
  %41 = getelementptr inbounds i8, ptr %37, i64 -8
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i64 noundef %42)
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21)
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22)
  %sext = shl i64 %11, 32
  %46 = ashr exact i64 %sext, 32
  %47 = getelementptr inbounds i8, ptr %9, i64 %46
  store i8 0, ptr %47, align 1, !tbaa !11
  %48 = load i64, ptr %41, align 8, !tbaa !9
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, i64 noundef %48)
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24)
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, i64 noundef 8)
  %53 = getelementptr inbounds i8, ptr %37, i64 -16
  %54 = ptrtoint ptr %53 to i64
  %55 = sub i64 %54, %19
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27, ptr noundef nonnull %53, ptr noundef nonnull %1, i64 noundef %55)
  %57 = getelementptr i8, ptr %47, i64 -8
  store i64 %55, ptr %57, align 8, !tbaa !9
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28)
  store i64 %55, ptr %18, align 8, !tbaa !9
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29)
  call void @free(ptr noundef %37) #7
  %60 = load i64, ptr %18, align 8, !tbaa !9
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, i64 noundef %60)
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31)
  %63 = call noalias dereferenceable_or_null(512) ptr @malloc(i64 noundef 512) #8
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, ptr noundef %63)
  call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.34, i32 noundef 115, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable
}

; Function Attrs: nofree nounwind
declare void @setbuf(ptr nocapture noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

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

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

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

attributes #0 = { noreturn 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { 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 = { 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}


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