; LLVM IR from yourtion/LearningMasteringAlgorithms-C :: Example/bissearch (main)

; 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 [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@stdout = external global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [12 x [6 x i8]], align 16
  %8 = alloca [12 x [6 x i8]], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 72, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 72, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %11 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 0
  %12 = getelementptr inbounds [6 x i8], ptr %11, i64 0, i64 0
  %13 = call ptr @strcpy(ptr noundef %12, ptr noundef @.str) #4
  %14 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 1
  %15 = getelementptr inbounds [6 x i8], ptr %14, i64 0, i64 0
  %16 = call ptr @strcpy(ptr noundef %15, ptr noundef @.str.1) #4
  %17 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 2
  %18 = getelementptr inbounds [6 x i8], ptr %17, i64 0, i64 0
  %19 = call ptr @strcpy(ptr noundef %18, ptr noundef @.str.2) #4
  %20 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 3
  %21 = getelementptr inbounds [6 x i8], ptr %20, i64 0, i64 0
  %22 = call ptr @strcpy(ptr noundef %21, ptr noundef @.str.3) #4
  %23 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 4
  %24 = getelementptr inbounds [6 x i8], ptr %23, i64 0, i64 0
  %25 = call ptr @strcpy(ptr noundef %24, ptr noundef @.str.4) #4
  %26 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 5
  %27 = getelementptr inbounds [6 x i8], ptr %26, i64 0, i64 0
  %28 = call ptr @strcpy(ptr noundef %27, ptr noundef @.str.5) #4
  %29 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 6
  %30 = getelementptr inbounds [6 x i8], ptr %29, i64 0, i64 0
  %31 = call ptr @strcpy(ptr noundef %30, ptr noundef @.str.6) #4
  %32 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 7
  %33 = getelementptr inbounds [6 x i8], ptr %32, i64 0, i64 0
  %34 = call ptr @strcpy(ptr noundef %33, ptr noundef @.str.7) #4
  %35 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 8
  %36 = getelementptr inbounds [6 x i8], ptr %35, i64 0, i64 0
  %37 = call ptr @strcpy(ptr noundef %36, ptr noundef @.str.8) #4
  %38 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 9
  %39 = getelementptr inbounds [6 x i8], ptr %38, i64 0, i64 0
  %40 = call ptr @strcpy(ptr noundef %39, ptr noundef @.str.9) #4
  %41 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 10
  %42 = getelementptr inbounds [6 x i8], ptr %41, i64 0, i64 0
  %43 = call ptr @strcpy(ptr noundef %42, ptr noundef @.str.10) #4
  %44 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 11
  %45 = getelementptr inbounds [6 x i8], ptr %44, i64 0, i64 0
  %46 = call ptr @strcpy(ptr noundef %45, ptr noundef @.str.11) #4
  %47 = load ptr, ptr @stdout, align 8, !tbaa !9
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.12) #4
  %49 = getelementptr inbounds [12 x [6 x i8]], ptr %8, i64 0, i64 0
  %50 = getelementptr inbounds [6 x i8], ptr %49, i64 0, i64 0
  %51 = call ptr @strcpy(ptr noundef %50, ptr noundef @.str.3) #4
  %52 = getelementptr inbounds [12 x [6 x i8]], ptr %8, i64 0, i64 1
  %53 = getelementptr inbounds [6 x i8], ptr %52, i64 0, i64 0
  %54 = call ptr @strcpy(ptr noundef %53, ptr noundef @.str.10) #4
  %55 = getelementptr inbounds [12 x [6 x i8]], ptr %8, i64 0, i64 2
  %56 = getelementptr inbounds [6 x i8], ptr %55, i64 0, i64 0
  %57 = call ptr @strcpy(ptr noundef %56, ptr noundef @.str.13) #4
  %58 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 0
  %59 = call i32 @issort(ptr noundef %58, i32 noundef 12, i32 noundef 6, ptr noundef @compare_str)
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %71, %2
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = icmp ule i32 %61, 11
  br i1 %62, label %63, label %74

63:                                               ; preds = %60
  %64 = load ptr, ptr @stdout, align 8, !tbaa !9
  %65 = load i32, ptr %9, align 4, !tbaa !5
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 %67
  %69 = getelementptr inbounds [6 x i8], ptr %68, i64 0, i64 0
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.14, i32 noundef %65, ptr noundef %69) #4
  br label %71

71:                                               ; preds = %63
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = add i32 %72, 1
  store i32 %73, ptr %9, align 4, !tbaa !5
  br label %60, !llvm.loop !11

74:                                               ; preds = %60
  %75 = getelementptr inbounds [12 x [6 x i8]], ptr %8, i64 0, i64 0
  %76 = getelementptr inbounds [6 x i8], ptr %75, i64 0, i64 0
  store ptr %76, ptr %6, align 8, !tbaa !9
  %77 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 0
  %78 = load ptr, ptr %6, align 8, !tbaa !9
  %79 = call i32 @bisearch(ptr noundef %77, ptr noundef %78, i32 noundef 12, i32 noundef 6, ptr noundef @compare_str)
  store i32 %79, ptr %10, align 4, !tbaa !5
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = icmp slt i32 %80, 0
  br i1 %81, label %82, label %86

82:                                               ; preds = %74
  %83 = load ptr, ptr @stdout, align 8, !tbaa !9
  %84 = load ptr, ptr %6, align 8, !tbaa !9
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.15, ptr noundef %84) #4
  br label %91

86:                                               ; preds = %74
  %87 = load ptr, ptr @stdout, align 8, !tbaa !9
  %88 = load ptr, ptr %6, align 8, !tbaa !9
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str.16, ptr noundef %88, i32 noundef %89) #4
  br label %91

91:                                               ; preds = %86, %82
  %92 = getelementptr inbounds [12 x [6 x i8]], ptr %8, i64 0, i64 1
  %93 = getelementptr inbounds [6 x i8], ptr %92, i64 0, i64 0
  store ptr %93, ptr %6, align 8, !tbaa !9
  %94 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 0
  %95 = load ptr, ptr %6, align 8, !tbaa !9
  %96 = call i32 @bisearch(ptr noundef %94, ptr noundef %95, i32 noundef 12, i32 noundef 6, ptr noundef @compare_str)
  store i32 %96, ptr %10, align 4, !tbaa !5
  %97 = load i32, ptr %10, align 4, !tbaa !5
  %98 = icmp slt i32 %97, 0
  br i1 %98, label %99, label %103

99:                                               ; preds = %91
  %100 = load ptr, ptr @stdout, align 8, !tbaa !9
  %101 = load ptr, ptr %6, align 8, !tbaa !9
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.15, ptr noundef %101) #4
  br label %108

103:                                              ; preds = %91
  %104 = load ptr, ptr @stdout, align 8, !tbaa !9
  %105 = load ptr, ptr %6, align 8, !tbaa !9
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.16, ptr noundef %105, i32 noundef %106) #4
  br label %108

108:                                              ; preds = %103, %99
  %109 = getelementptr inbounds [12 x [6 x i8]], ptr %8, i64 0, i64 2
  %110 = getelementptr inbounds [6 x i8], ptr %109, i64 0, i64 0
  store ptr %110, ptr %6, align 8, !tbaa !9
  %111 = getelementptr inbounds [12 x [6 x i8]], ptr %7, i64 0, i64 0
  %112 = load ptr, ptr %6, align 8, !tbaa !9
  %113 = call i32 @bisearch(ptr noundef %111, ptr noundef %112, i32 noundef 12, i32 noundef 6, ptr noundef @compare_str)
  store i32 %113, ptr %10, align 4, !tbaa !5
  %114 = load i32, ptr %10, align 4, !tbaa !5
  %115 = icmp slt i32 %114, 0
  br i1 %115, label %116, label %120

116:                                              ; preds = %108
  %117 = load ptr, ptr @stdout, align 8, !tbaa !9
  %118 = load ptr, ptr %6, align 8, !tbaa !9
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.15, ptr noundef %118) #4
  br label %125

120:                                              ; preds = %108
  %121 = load ptr, ptr @stdout, align 8, !tbaa !9
  %122 = load ptr, ptr %6, align 8, !tbaa !9
  %123 = load i32, ptr %10, align 4, !tbaa !5
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str.16, ptr noundef %122, i32 noundef %123) #4
  br label %125

125:                                              ; preds = %120, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  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 ptr @strcpy(ptr noundef, ptr noundef) #2

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

declare i32 @issort(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @compare_str(ptr noundef, ptr noundef) #0

declare i32 @bisearch(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3

; 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 = { "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 }

!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}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; 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 [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca [12 x [6 x i8]], align 16
  %4 = alloca [12 x [6 x i8]], align 16
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #5
  %5 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str) #5
  %6 = getelementptr inbounds i8, ptr %3, i64 6
  %7 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.1) #5
  %8 = getelementptr inbounds i8, ptr %3, i64 12
  %9 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.2) #5
  %10 = getelementptr inbounds i8, ptr %3, i64 18
  %11 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %10, ptr noundef nonnull dereferenceable(1) @.str.3) #5
  %12 = getelementptr inbounds i8, ptr %3, i64 24
  %13 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.4) #5
  %14 = getelementptr inbounds i8, ptr %3, i64 30
  %15 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %14, ptr noundef nonnull dereferenceable(1) @.str.5) #5
  %16 = getelementptr inbounds i8, ptr %3, i64 36
  %17 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.6) #5
  %18 = getelementptr inbounds i8, ptr %3, i64 42
  %19 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.7) #5
  %20 = getelementptr inbounds i8, ptr %3, i64 48
  %21 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str.8) #5
  %22 = getelementptr inbounds i8, ptr %3, i64 54
  %23 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %22, ptr noundef nonnull dereferenceable(1) @.str.9) #5
  %24 = getelementptr inbounds i8, ptr %3, i64 60
  %25 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.10) #5
  %26 = getelementptr inbounds i8, ptr %3, i64 66
  %27 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %26, ptr noundef nonnull dereferenceable(1) @.str.11) #5
  %28 = load ptr, ptr @stdout, align 8, !tbaa !5
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.12) #5
  %30 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.3) #5
  %31 = getelementptr inbounds i8, ptr %4, i64 6
  %32 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %31, ptr noundef nonnull dereferenceable(1) @.str.10) #5
  %33 = getelementptr inbounds i8, ptr %4, i64 12
  %34 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %33, ptr noundef nonnull dereferenceable(1) @.str.13) #5
  %35 = call i32 @issort(ptr noundef nonnull %3, i32 noundef 12, i32 noundef 6, ptr noundef nonnull @compare_str) #5
  %36 = load ptr, ptr @stdout, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.14, i32 noundef 0, ptr noundef nonnull %3) #5
  %38 = load ptr, ptr @stdout, align 8, !tbaa !5
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.14, i32 noundef 1, ptr noundef nonnull %6) #5
  %40 = load ptr, ptr @stdout, align 8, !tbaa !5
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str.14, i32 noundef 2, ptr noundef nonnull %8) #5
  %42 = load ptr, ptr @stdout, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.14, i32 noundef 3, ptr noundef nonnull %10) #5
  %44 = load ptr, ptr @stdout, align 8, !tbaa !5
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.14, i32 noundef 4, ptr noundef nonnull %12) #5
  %46 = load ptr, ptr @stdout, align 8, !tbaa !5
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.14, i32 noundef 5, ptr noundef nonnull %14) #5
  %48 = load ptr, ptr @stdout, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.14, i32 noundef 6, ptr noundef nonnull %16) #5
  %50 = load ptr, ptr @stdout, align 8, !tbaa !5
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.14, i32 noundef 7, ptr noundef nonnull %18) #5
  %52 = load ptr, ptr @stdout, align 8, !tbaa !5
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.14, i32 noundef 8, ptr noundef nonnull %20) #5
  %54 = load ptr, ptr @stdout, align 8, !tbaa !5
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.14, i32 noundef 9, ptr noundef nonnull %22) #5
  %56 = load ptr, ptr @stdout, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.14, i32 noundef 10, ptr noundef nonnull %24) #5
  %58 = load ptr, ptr @stdout, align 8, !tbaa !5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.14, i32 noundef 11, ptr noundef nonnull %26) #5
  %60 = call i32 @bisearch(ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef 12, i32 noundef 6, ptr noundef nonnull @compare_str) #5
  %61 = icmp slt i32 %60, 0
  %62 = load ptr, ptr @stdout, align 8, !tbaa !5
  br i1 %61, label %63, label %65

63:                                               ; preds = %2
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.15, ptr noundef nonnull %4) #5
  br label %67

65:                                               ; preds = %2
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.16, ptr noundef nonnull %4, i32 noundef %60) #5
  br label %67

67:                                               ; preds = %65, %63
  %68 = call i32 @bisearch(ptr noundef nonnull %3, ptr noundef nonnull %31, i32 noundef 12, i32 noundef 6, ptr noundef nonnull @compare_str) #5
  %69 = icmp slt i32 %68, 0
  %70 = load ptr, ptr @stdout, align 8, !tbaa !5
  br i1 %69, label %71, label %73

71:                                               ; preds = %67
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.15, ptr noundef nonnull %31) #5
  br label %75

73:                                               ; preds = %67
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.16, ptr noundef nonnull %31, i32 noundef %68) #5
  br label %75

75:                                               ; preds = %73, %71
  %76 = call i32 @bisearch(ptr noundef nonnull %3, ptr noundef nonnull %33, i32 noundef 12, i32 noundef 6, ptr noundef nonnull @compare_str) #5
  %77 = icmp slt i32 %76, 0
  %78 = load ptr, ptr @stdout, align 8, !tbaa !5
  br i1 %77, label %79, label %81

79:                                               ; preds = %75
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.15, ptr noundef nonnull %33) #5
  br label %83

81:                                               ; preds = %75
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.16, ptr noundef nonnull %33, i32 noundef %76) #5
  br label %83

83:                                               ; preds = %81, %79
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #5
  ret i32 0
}

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

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

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

declare i32 @issort(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden i32 @compare_str(ptr noundef, ptr noundef) #0

declare i32 @bisearch(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr 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) #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { "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 }

!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"}


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