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

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

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [26 x i8], align 1
@target = external dso_local global [96 x i8], align 16
@.str.18 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @init() #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @get_shift_amount(ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [7 x ptr], align 16
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @init()
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr %6) #7
  %12 = call i32 @puts(ptr noundef @.str)
  %13 = call i32 @puts(ptr noundef @.str.1)
  %14 = call i32 @puts(ptr noundef @.str.2)
  %15 = call i32 @puts(ptr noundef @.str.3)
  %16 = call i32 @puts(ptr noundef @.str.4)
  %17 = call noalias ptr @malloc(i64 noundef 1256) #8
  store ptr %17, ptr %2, align 8, !tbaa !5
  %18 = call noalias ptr @malloc(i64 noundef 24) #8
  %19 = call i32 @puts(ptr noundef @.str.5)
  %20 = call i32 @puts(ptr noundef @.str.6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = call i32 @get_shift_amount(ptr noundef %21)
  store i32 %22, ptr %7, align 4, !tbaa !9
  %23 = load i32, ptr %7, align 4, !tbaa !9
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %23)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = ptrtoint ptr %25 to i64
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = mul nsw i32 8, %27
  %29 = zext i32 %28 to i64
  %30 = lshr i64 %26, %29
  store i64 %30, ptr %8, align 8, !tbaa !11
  %31 = load i64, ptr %8, align 8, !tbaa !11
  %32 = icmp ult i64 %31, 16
  br i1 %32, label %33, label %37

33:                                               ; preds = %0
  %34 = load i64, ptr %8, align 8, !tbaa !11
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i64 noundef %34)
  %36 = call i32 @puts(ptr noundef @.str.9)
  call void @exit(i32 noundef 1) #9
  unreachable

37:                                               ; preds = %0
  %38 = load i64, ptr %8, align 8, !tbaa !11
  %39 = and i64 %38, 68719476734
  %40 = sub i64 %39, 16
  store i64 %40, ptr %8, align 8, !tbaa !11
  %41 = load i64, ptr %8, align 8, !tbaa !11
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i64 noundef %41)
  %43 = load i64, ptr %8, align 8, !tbaa !11
  %44 = and i64 %43, 8
  %45 = icmp ne i64 %44, 0
  br i1 %45, label %54, label %46

46:                                               ; preds = %37
  %47 = load i64, ptr %8, align 8, !tbaa !11
  %48 = and i64 %47, 4
  %49 = icmp eq i64 %48, 4
  br i1 %49, label %50, label %59

50:                                               ; preds = %46
  %51 = load i64, ptr %8, align 8, !tbaa !11
  %52 = and i64 %51, 2
  %53 = icmp ne i64 %52, 2
  br i1 %53, label %54, label %59

54:                                               ; preds = %50, %37
  %55 = call i32 @puts(ptr noundef @.str.11)
  %56 = call i32 @puts(ptr noundef @.str.12)
  %57 = call i32 @puts(ptr noundef @.str.13)
  %58 = call i32 @puts(ptr noundef @.str.14)
  store i32 1, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %145

59:                                               ; preds = %50, %46
  %60 = load i64, ptr %8, align 8, !tbaa !11
  %61 = icmp ult i64 %60, 1040
  br i1 %61, label %62, label %92

62:                                               ; preds = %59
  %63 = call i32 @puts(ptr noundef @.str.15)
  %64 = call i32 @puts(ptr noundef @.str.16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %75, %62
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = icmp slt i32 %66, 7
  br i1 %67, label %69, label %68

68:                                               ; preds = %65
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %78

69:                                               ; preds = %65
  %70 = load i64, ptr %8, align 8, !tbaa !11
  %71 = call noalias ptr @malloc(i64 noundef %70) #8
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [7 x ptr], ptr %6, i64 0, i64 %73
  store ptr %71, ptr %74, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %69
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %10, align 4, !tbaa !9
  br label %65, !llvm.loop !13

78:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %88, %78
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = icmp slt i32 %80, 7
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %91

83:                                               ; preds = %79
  %84 = load i32, ptr %11, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [7 x ptr], ptr %6, i64 0, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  call void @free(ptr noundef %87) #7
  br label %88

88:                                               ; preds = %83
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %11, align 4, !tbaa !9
  br label %79, !llvm.loop !15

91:                                               ; preds = %82
  br label %94

92:                                               ; preds = %59
  %93 = call i32 @puts(ptr noundef @.str.17)
  br label %94

94:                                               ; preds = %92, %91
  %95 = call noalias ptr @malloc(i64 noundef 1240) #8
  store ptr %95, ptr %3, align 8, !tbaa !5
  %96 = call noalias ptr @malloc(i64 noundef 24) #8
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %97) #7
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %98) #7
  %99 = call noalias ptr @malloc(i64 noundef 1256) #8
  store ptr %99, ptr %2, align 8, !tbaa !5
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %100) #7
  store ptr getelementptr inbounds (i8, ptr @target, i64 -16), ptr %4, align 8, !tbaa !5
  %101 = call i32 @puts(ptr noundef @.str.18)
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = ptrtoint ptr %102 to i64
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds i64, ptr %104, i64 1
  store i64 %103, ptr %105, align 8, !tbaa !11
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = ptrtoint ptr %106 to i64
  %108 = add i64 %107, 8
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds i64, ptr %109, i64 1
  store i64 %108, ptr %110, align 8, !tbaa !11
  %111 = call i32 @puts(ptr noundef @.str.19)
  %112 = call i32 @puts(ptr noundef @.str.20)
  %113 = call i32 @puts(ptr noundef @.str.21)
  %114 = call i32 @puts(ptr noundef @.str.22)
  %115 = call i32 @puts(ptr noundef @.str.23)
  %116 = call i32 @puts(ptr noundef @.str.24)
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = ptrtoint ptr %117 to i64
  %119 = sub i64 %118, 24
  %120 = load i32, ptr %7, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = sub i64 %119, %121
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds i64, ptr %123, i64 3
  store i64 %122, ptr %124, align 8, !tbaa !11
  %125 = call i32 @puts(ptr noundef @.str.25)
  %126 = call i32 @puts(ptr noundef @.str.26)
  %127 = call i32 @puts(ptr noundef @.str.27)
  %128 = call i32 @puts(ptr noundef @.str.28)
  %129 = call i32 @puts(ptr noundef @.str.29)
  %130 = call i32 @puts(ptr noundef @.str.30)
  %131 = call i32 @puts(ptr noundef @.str.31)
  %132 = call i32 @puts(ptr noundef @.str.32)
  %133 = call i32 (ptr, ...) @printf(ptr noundef @.str.33, ptr noundef @target)
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, ptr noundef @target)
  %135 = call i32 @puts(ptr noundef @.str.35)
  %136 = call i32 @puts(ptr noundef @.str.36)
  %137 = call i32 @puts(ptr noundef @.str.37)
  %138 = load i64, ptr %8, align 8, !tbaa !11
  %139 = call noalias ptr @calloc(i64 noundef %138, i64 noundef 1) #10
  store ptr %139, ptr %5, align 8, !tbaa !5
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = call ptr @strncpy(ptr noundef %140, ptr noundef @.str.38, i64 noundef 87) #7
  %142 = call i32 (ptr, ...) @printf(ptr noundef @.str.39, ptr noundef @target)
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = call i32 (ptr, ...) @printf(ptr noundef @.str.40, ptr noundef %143)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %145

145:                                              ; preds = %94, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %146 = load i32, ptr %1, align 4
  ret i32 %146
}

declare i32 @puts(ptr noundef) #2

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #6

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #5 = { 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 allocsize(0,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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind allocsize(0,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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [26 x i8], align 1
@target = external dso_local global [96 x i8], align 16
@.str.18 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @init() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @get_shift_amount(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main() local_unnamed_addr #0 {
  tail call void @init()
  %1 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str)
  %2 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.1)
  %3 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  %4 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  %5 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.4)
  %6 = tail call noalias dereferenceable_or_null(1256) ptr @malloc(i64 noundef 1256) #7
  %7 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.5)
  %8 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.6)
  %9 = tail call i32 @get_shift_amount(ptr noundef %6)
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %9)
  %11 = ptrtoint ptr %6 to i64
  %12 = shl nsw i32 %9, 3
  %13 = zext nneg i32 %12 to i64
  %14 = lshr i64 %11, %13
  %15 = icmp ult i64 %14, 16
  br i1 %15, label %16, label %19

16:                                               ; preds = %0
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i64 noundef %14)
  %18 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.9)
  tail call void @exit(i32 noundef 1) #8
  unreachable

19:                                               ; preds = %0
  %20 = and i64 %14, 68719476734
  %21 = add nsw i64 %20, -16
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i64 noundef %21)
  %23 = and i64 %14, 8
  %.not = icmp ne i64 %23, 0
  %24 = and i64 %14, 6
  %or.cond = icmp eq i64 %24, 4
  %or.cond38 = or i1 %.not, %or.cond
  br i1 %or.cond38, label %25, label %30

25:                                               ; preds = %19
  %26 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.11)
  %27 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.12)
  %28 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.13)
  %29 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.14)
  br label %58

30:                                               ; preds = %19
  %31 = icmp ult i64 %21, 1040
  br i1 %31, label %.preheader.preheader, label %.loopexit

.preheader.preheader:                             ; preds = %30
  %32 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.15)
  br label %.loopexit

.loopexit:                                        ; preds = %30, %.preheader.preheader
  %.str.16.sink = phi ptr [ @.str.16, %.preheader.preheader ], [ @.str.17, %30 ]
  %33 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.16.sink)
  tail call void @free(ptr noundef %6) #9
  %34 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.18)
  %35 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.19)
  %36 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.20)
  %37 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.21)
  %38 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.22)
  %39 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.23)
  %40 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.24)
  %41 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.25)
  %42 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.26)
  %43 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.27)
  %44 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.28)
  %45 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.29)
  %46 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.30)
  %47 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.31)
  %48 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.32)
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33, ptr noundef nonnull @target)
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, ptr noundef nonnull @target)
  %51 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.35)
  %52 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.36)
  %53 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.37)
  %54 = tail call noalias ptr @calloc(i64 noundef %21, i64 noundef 1) #10
  %55 = tail call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %54, ptr noundef nonnull dereferenceable(1) @.str.38, i64 noundef 87) #9
  %56 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.39, ptr noundef nonnull @target)
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, ptr noundef %54)
  br label %58

58:                                               ; preds = %.loopexit, %25
  %.033 = phi i32 [ 1, %25 ], [ 0, %.loopexit ]
  ret i32 %.033
}

; Function Attrs: nofree nounwind
declare noundef i32 @puts(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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #5

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

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 = { 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 #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #6 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind }
attributes #10 = { nounwind allocsize(0,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)"}


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