; LLVM IR from cyb70289/utf8 :: main (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"

%struct.ftab = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [55 x i8], align 1
@ftab = external hidden global [5 x %struct.ftab], align 16
@.str.5 = external hidden unnamed_addr constant [2 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 i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = 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 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store ptr null, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store ptr null, ptr %9, align 8, !tbaa !9
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = icmp sge i32 %13, 2
  br i1 %14, label %15, label %60

15:                                               ; preds = %2
  %16 = load ptr, ptr %5, align 8, !tbaa !9
  %17 = getelementptr inbounds ptr, ptr %16, i64 1
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = call i32 @strcmp(ptr noundef %18, ptr noundef @.str) #7
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %15
  store ptr @test, ptr %9, align 8, !tbaa !9
  br label %30

22:                                               ; preds = %15
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  %24 = getelementptr inbounds ptr, ptr %23, i64 1
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = call i32 @strcmp(ptr noundef %25, ptr noundef @.str.1) #7
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %22
  store ptr @bench, ptr %9, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %28, %22
  br label %30

30:                                               ; preds = %29, %21
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = icmp sge i32 %31, 3
  br i1 %32, label %33, label %59

33:                                               ; preds = %30
  %34 = load ptr, ptr %5, align 8, !tbaa !9
  %35 = getelementptr inbounds ptr, ptr %34, i64 2
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  store ptr %36, ptr %8, align 8, !tbaa !9
  %37 = load ptr, ptr %8, align 8, !tbaa !9
  %38 = call i32 @strcmp(ptr noundef %37, ptr noundef @.str.2) #7
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %58

40:                                               ; preds = %33
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = icmp slt i32 %41, 4
  br i1 %42, label %43, label %44

43:                                               ; preds = %40
  store ptr null, ptr %9, align 8, !tbaa !9
  br label %57

44:                                               ; preds = %40
  store ptr null, ptr %8, align 8, !tbaa !9
  %45 = load ptr, ptr %5, align 8, !tbaa !9
  %46 = getelementptr inbounds ptr, ptr %45, i64 3
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = call i32 @atoi(ptr noundef %47) #7
  store i32 %48, ptr %6, align 4, !tbaa !5
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = icmp sle i32 %49, 0
  br i1 %50, label %54, label %51

51:                                               ; preds = %44
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = icmp sgt i32 %52, 67108864
  br i1 %53, label %54, label %56

54:                                               ; preds = %51, %44
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store ptr null, ptr %9, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %54, %51
  br label %57

57:                                               ; preds = %56, %43
  br label %58

58:                                               ; preds = %57, %33
  br label %59

59:                                               ; preds = %58, %30
  br label %60

60:                                               ; preds = %59, %2
  %61 = load ptr, ptr %9, align 8, !tbaa !9
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %67

63:                                               ; preds = %60
  %64 = load ptr, ptr %5, align 8, !tbaa !9
  %65 = getelementptr inbounds ptr, ptr %64, i64 0
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  call void @usage(ptr noundef %66)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %117

67:                                               ; preds = %60
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %73

70:                                               ; preds = %67
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = call ptr @load_test_buf(i32 noundef %71)
  store ptr %72, ptr %7, align 8, !tbaa !9
  br label %75

73:                                               ; preds = %67
  %74 = call ptr @load_test_file(ptr noundef %6)
  store ptr %74, ptr %7, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %73, %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  %76 = load ptr, ptr %9, align 8, !tbaa !9
  %77 = icmp eq ptr %76, @bench
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %79)
  br label %81

81:                                               ; preds = %78, %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %111, %81
  %83 = load i32, ptr %12, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = icmp ult i64 %84, 5
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %114

87:                                               ; preds = %82
  %88 = load ptr, ptr %8, align 8, !tbaa !9
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %100

90:                                               ; preds = %87
  %91 = load ptr, ptr %8, align 8, !tbaa !9
  %92 = load i32, ptr %12, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [5 x %struct.ftab], ptr @ftab, i64 0, i64 %93
  %95 = getelementptr inbounds %struct.ftab, ptr %94, i32 0, i32 0
  %96 = load ptr, ptr %95, align 16, !tbaa !11
  %97 = call i32 @strcmp(ptr noundef %91, ptr noundef %96) #7
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %100

99:                                               ; preds = %90
  br label %111

100:                                              ; preds = %90, %87
  %101 = load ptr, ptr %9, align 8, !tbaa !9
  %102 = load ptr, ptr %7, align 8, !tbaa !9
  %103 = load i32, ptr %6, align 4, !tbaa !5
  %104 = load i32, ptr %12, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [5 x %struct.ftab], ptr @ftab, i64 0, i64 %105
  %107 = call i32 %101(ptr noundef %102, i32 noundef %103, ptr noundef %106)
  %108 = load i32, ptr %11, align 4, !tbaa !5
  %109 = or i32 %108, %107
  store i32 %109, ptr %11, align 4, !tbaa !5
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %111

111:                                              ; preds = %100, %99
  %112 = load i32, ptr %12, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %12, align 4, !tbaa !5
  br label %82, !llvm.loop !13

114:                                              ; preds = %86
  %115 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %115) #6
  %116 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %116, ptr %3, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %117

117:                                              ; preds = %114, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  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
  %118 = load i32, ptr %3, align 4
  ret i32 %118
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

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

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #3

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

; Function Attrs: nounwind uwtable
declare hidden void @usage(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare hidden ptr @load_test_file(ptr noundef) #0

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

; Function Attrs: nounwind
declare void @free(ptr 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 = { nounwind willreturn memory(read) "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 = { inlinehint nounwind willreturn memory(read) 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 #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 "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 willreturn memory(read) }

!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 = !{!12, !10, i64 0}
!12 = !{!"ftab", !10, i64 0, !10, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"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"

%struct.ftab = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [55 x i8], align 1
@ftab = external hidden global [5 x %struct.ftab], align 16
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  %4 = icmp sgt i32 %0, 1
  br i1 %4, label %5, label %.thread

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %1, i64 8
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %8 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str) #7
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %13, label %10

10:                                               ; preds = %5
  %11 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.1) #7
  %12 = icmp eq i32 %11, 0
  %spec.select = select i1 %12, ptr @bench, ptr null
  br label %13

13:                                               ; preds = %10, %5
  %.024 = phi ptr [ @test, %5 ], [ %spec.select, %10 ]
  %.not = icmp eq i32 %0, 2
  br i1 %.not, label %28, label %14

14:                                               ; preds = %13
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.2) #7
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %28

19:                                               ; preds = %14
  %20 = icmp ult i32 %0, 4
  br i1 %20, label %.thread, label %21

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %1, i64 24
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = tail call i32 @atoi(ptr nocapture noundef %23) #7
  store i32 %24, ptr %3, align 4, !tbaa !5
  %25 = add i32 %24, -67108865
  %or.cond = icmp ult i32 %25, -67108864
  br i1 %or.cond, label %26, label %28

26:                                               ; preds = %21
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %.thread

28:                                               ; preds = %13, %21, %14
  %29 = phi i32 [ %24, %21 ], [ 0, %14 ], [ 0, %13 ]
  %.026 = phi ptr [ null, %21 ], [ %16, %14 ], [ null, %13 ]
  %30 = icmp eq ptr %.024, null
  br i1 %30, label %.thread, label %32

.thread:                                          ; preds = %19, %2, %26, %28
  %31 = load ptr, ptr %1, align 8, !tbaa !9
  tail call void @usage(ptr noundef %31)
  br label %90

32:                                               ; preds = %28
  %.not32 = icmp eq i32 %29, 0
  br i1 %.not32, label %35, label %33

33:                                               ; preds = %32
  %34 = tail call ptr @load_test_buf(i32 noundef %29)
  br label %37

35:                                               ; preds = %32
  %36 = call ptr @load_test_file(ptr noundef nonnull %3)
  br label %37

37:                                               ; preds = %35, %33
  %.027 = phi ptr [ %34, %33 ], [ %36, %35 ]
  %38 = icmp eq ptr %.024, @bench
  br i1 %38, label %39, label %42

39:                                               ; preds = %37
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %40)
  br label %42

42:                                               ; preds = %39, %37
  %.not33 = icmp eq ptr %.026, null
  br i1 %.not33, label %.split.us.preheader, label %.split.preheader

.split.preheader:                                 ; preds = %42
  %43 = load ptr, ptr @ftab, align 16, !tbaa !11
  %44 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.026, ptr noundef nonnull dereferenceable(1) %43) #7
  %.not34 = icmp eq i32 %44, 0
  br i1 %.not34, label %63, label %.split.1

.split.us.preheader:                              ; preds = %42
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = call i32 %.024(ptr noundef %.027, i32 noundef %45, ptr noundef nonnull @ftab) #6, !callees !13
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = call i32 %.024(ptr noundef %.027, i32 noundef %48, ptr noundef nonnull getelementptr inbounds (i8, ptr @ftab, i64 16)) #6, !callees !13
  %50 = or i32 %49, %46
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = call i32 %.024(ptr noundef %.027, i32 noundef %52, ptr noundef nonnull getelementptr inbounds (i8, ptr @ftab, i64 32)) #6, !callees !13
  %54 = or i32 %53, %50
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = call i32 %.024(ptr noundef %.027, i32 noundef %56, ptr noundef nonnull getelementptr inbounds (i8, ptr @ftab, i64 48)) #6, !callees !13
  %58 = or i32 %57, %54
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %.split40.us.sink.split

.split40.us.sink.split:                           ; preds = %.split.4, %.split.us.preheader
  %.1.3.sink = phi i32 [ %58, %.split.us.preheader ], [ %.1.3, %.split.4 ]
  %.sink44 = load i32, ptr %3, align 4, !tbaa !5
  %60 = call i32 %.024(ptr noundef %.027, i32 noundef %.sink44, ptr noundef nonnull getelementptr inbounds (i8, ptr @ftab, i64 64)) #6
  %61 = or i32 %60, %.1.3.sink
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %.split40.us

.split40.us:                                      ; preds = %.split40.us.sink.split, %.split.4
  %.us-phi = phi i32 [ %.1.3, %.split.4 ], [ %61, %.split40.us.sink.split ]
  call void @free(ptr noundef %.027) #6
  br label %90

63:                                               ; preds = %.split.preheader
  %64 = load i32, ptr %3, align 4, !tbaa !5
  %65 = call i32 %.024(ptr noundef %.027, i32 noundef %64, ptr noundef nonnull @ftab) #6, !callees !13
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %.split.1

.split.1:                                         ; preds = %.split.preheader, %63
  %.1 = phi i32 [ 0, %.split.preheader ], [ %65, %63 ]
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @ftab, i64 16), align 16, !tbaa !11
  %68 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.026, ptr noundef nonnull dereferenceable(1) %67) #7
  %.not34.1 = icmp eq i32 %68, 0
  br i1 %.not34.1, label %69, label %.split.2

69:                                               ; preds = %.split.1
  %70 = load i32, ptr %3, align 4, !tbaa !5
  %71 = call i32 %.024(ptr noundef %.027, i32 noundef %70, ptr noundef nonnull getelementptr inbounds (i8, ptr @ftab, i64 16)) #6, !callees !13
  %72 = or i32 %71, %.1
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %.split.2

.split.2:                                         ; preds = %69, %.split.1
  %.1.1 = phi i32 [ %.1, %.split.1 ], [ %72, %69 ]
  %74 = load ptr, ptr getelementptr inbounds (i8, ptr @ftab, i64 32), align 16, !tbaa !11
  %75 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.026, ptr noundef nonnull dereferenceable(1) %74) #7
  %.not34.2 = icmp eq i32 %75, 0
  br i1 %.not34.2, label %76, label %.split.3

76:                                               ; preds = %.split.2
  %77 = load i32, ptr %3, align 4, !tbaa !5
  %78 = call i32 %.024(ptr noundef %.027, i32 noundef %77, ptr noundef nonnull getelementptr inbounds (i8, ptr @ftab, i64 32)) #6, !callees !13
  %79 = or i32 %78, %.1.1
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %.split.3

.split.3:                                         ; preds = %76, %.split.2
  %.1.2 = phi i32 [ %.1.1, %.split.2 ], [ %79, %76 ]
  %81 = load ptr, ptr getelementptr inbounds (i8, ptr @ftab, i64 48), align 16, !tbaa !11
  %82 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.026, ptr noundef nonnull dereferenceable(1) %81) #7
  %.not34.3 = icmp eq i32 %82, 0
  br i1 %.not34.3, label %83, label %.split.4

83:                                               ; preds = %.split.3
  %84 = load i32, ptr %3, align 4, !tbaa !5
  %85 = call i32 %.024(ptr noundef %.027, i32 noundef %84, ptr noundef nonnull getelementptr inbounds (i8, ptr @ftab, i64 48)) #6, !callees !13
  %86 = or i32 %85, %.1.2
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %.split.4

.split.4:                                         ; preds = %83, %.split.3
  %.1.3 = phi i32 [ %.1.2, %.split.3 ], [ %86, %83 ]
  %88 = load ptr, ptr getelementptr inbounds (i8, ptr @ftab, i64 64), align 16, !tbaa !11
  %89 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.026, ptr noundef nonnull dereferenceable(1) %88) #7
  %.not34.4 = icmp eq i32 %89, 0
  br i1 %.not34.4, label %.split40.us.sink.split, label %.split40.us

90:                                               ; preds = %.split40.us, %.thread
  %.028 = phi i32 [ 1, %.thread ], [ %.us-phi, %.split40.us ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  ret i32 %.028
}

; 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: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden void @usage(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare hidden ptr @load_test_file(ptr noundef) local_unnamed_addr #0

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

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

!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 = !{!12, !10, i64 0}
!12 = !{!"ftab", !10, i64 0, !10, i64 8}
!13 = !{ptr @bench, ptr @test}


; Effective O3 passes: CalledValuePropagationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass