; LLVM IR from intel/intel-ipsec-mb :: test/kat-app (kasumi_test)

; 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.kasumi_test_case = type { ptr, ptr }
%struct.test_suite_context = type { i32, i32, ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@kasumi_f8_func_tab = external hidden constant [7 x %struct.kasumi_test_case], align 16
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@kasumi_f9_func_tab = external hidden constant [2 x %struct.kasumi_test_case], align 16

; Function Attrs: nounwind uwtable
define dso_local i32 @kasumi_test(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.test_suite_context, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @test_suite_start(ptr noundef %3, ptr noundef @.str)
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %6

6:                                                ; preds = %45, %1
  %7 = load i32, ptr %5, align 4, !tbaa !9
  %8 = zext i32 %7 to i64
  %9 = icmp ult i64 %8, 7
  br i1 %9, label %10, label %48

10:                                               ; preds = %6
  %11 = load i32, ptr %5, align 4, !tbaa !9
  %12 = zext i32 %11 to i64
  %13 = getelementptr inbounds [7 x %struct.kasumi_test_case], ptr @kasumi_f8_func_tab, i64 0, i64 %12
  %14 = getelementptr inbounds %struct.kasumi_test_case, ptr %13, i32 0, i32 0
  %15 = load ptr, ptr %14, align 16, !tbaa !11
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = call i32 %15(ptr noundef %16, i32 noundef 0)
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %19, label %26

19:                                               ; preds = %10
  %20 = load i32, ptr %5, align 4, !tbaa !9
  %21 = zext i32 %20 to i64
  %22 = getelementptr inbounds [7 x %struct.kasumi_test_case], ptr @kasumi_f8_func_tab, i64 0, i64 %21
  %23 = getelementptr inbounds %struct.kasumi_test_case, ptr %22, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %24)
  call void @test_suite_update(ptr noundef %3, i32 noundef 0, i32 noundef 1)
  br label %27

26:                                               ; preds = %10
  call void @test_suite_update(ptr noundef %3, i32 noundef 1, i32 noundef 0)
  br label %27

27:                                               ; preds = %26, %19
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = getelementptr inbounds [7 x %struct.kasumi_test_case], ptr @kasumi_f8_func_tab, i64 0, i64 %29
  %31 = getelementptr inbounds %struct.kasumi_test_case, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 16, !tbaa !11
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = call i32 %32(ptr noundef %33, i32 noundef 1)
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %43

36:                                               ; preds = %27
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds [7 x %struct.kasumi_test_case], ptr @kasumi_f8_func_tab, i64 0, i64 %38
  %40 = getelementptr inbounds %struct.kasumi_test_case, ptr %39, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %41)
  call void @test_suite_update(ptr noundef %3, i32 noundef 0, i32 noundef 1)
  br label %44

43:                                               ; preds = %27
  call void @test_suite_update(ptr noundef %3, i32 noundef 1, i32 noundef 0)
  br label %44

44:                                               ; preds = %43, %36
  br label %45

45:                                               ; preds = %44
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = add i32 %46, 1
  store i32 %47, ptr %5, align 4, !tbaa !9
  br label %6, !llvm.loop !14

48:                                               ; preds = %6
  %49 = call i32 @test_suite_end(ptr noundef %3)
  %50 = load i32, ptr %4, align 4, !tbaa !9
  %51 = add nsw i32 %50, %49
  store i32 %51, ptr %4, align 4, !tbaa !9
  call void @test_suite_start(ptr noundef %3, ptr noundef @.str.2)
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %91, %48
  %53 = load i32, ptr %5, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = icmp ult i64 %54, 2
  br i1 %55, label %56, label %94

56:                                               ; preds = %52
  %57 = load i32, ptr %5, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds [2 x %struct.kasumi_test_case], ptr @kasumi_f9_func_tab, i64 0, i64 %58
  %60 = getelementptr inbounds %struct.kasumi_test_case, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 16, !tbaa !11
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = call i32 %61(ptr noundef %62, i32 noundef 0)
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %72

65:                                               ; preds = %56
  %66 = load i32, ptr %5, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds [2 x %struct.kasumi_test_case], ptr @kasumi_f9_func_tab, i64 0, i64 %67
  %69 = getelementptr inbounds %struct.kasumi_test_case, ptr %68, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !13
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %70)
  call void @test_suite_update(ptr noundef %3, i32 noundef 0, i32 noundef 1)
  br label %73

72:                                               ; preds = %56
  call void @test_suite_update(ptr noundef %3, i32 noundef 1, i32 noundef 0)
  br label %73

73:                                               ; preds = %72, %65
  %74 = load i32, ptr %5, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds [2 x %struct.kasumi_test_case], ptr @kasumi_f9_func_tab, i64 0, i64 %75
  %77 = getelementptr inbounds %struct.kasumi_test_case, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 16, !tbaa !11
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = call i32 %78(ptr noundef %79, i32 noundef 1)
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %89

82:                                               ; preds = %73
  %83 = load i32, ptr %5, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds [2 x %struct.kasumi_test_case], ptr @kasumi_f9_func_tab, i64 0, i64 %84
  %86 = getelementptr inbounds %struct.kasumi_test_case, ptr %85, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %87)
  call void @test_suite_update(ptr noundef %3, i32 noundef 0, i32 noundef 1)
  br label %90

89:                                               ; preds = %73
  call void @test_suite_update(ptr noundef %3, i32 noundef 1, i32 noundef 0)
  br label %90

90:                                               ; preds = %89, %82
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %5, align 4, !tbaa !9
  %93 = add i32 %92, 1
  store i32 %93, ptr %5, align 4, !tbaa !9
  br label %52, !llvm.loop !16

94:                                               ; preds = %52
  %95 = call i32 @test_suite_end(ptr noundef %3)
  %96 = load i32, ptr %4, align 4, !tbaa !9
  %97 = add nsw i32 %96, %95
  store i32 %97, ptr %4, align 4, !tbaa !9
  %98 = load i32, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #3
  ret i32 %98
}

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

declare void @test_suite_start(ptr noundef, ptr noundef) #2

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

declare void @test_suite_update(ptr noundef, i32 noundef, i32 noundef) #2

declare i32 @test_suite_end(ptr noundef) #2

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

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

!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, !6, i64 0}
!12 = !{!"kasumi_test_case", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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.kasumi_test_case = type { ptr, ptr }
%struct.test_suite_context = type { i32, i32, ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@kasumi_f8_func_tab = external hidden local_unnamed_addr constant [7 x %struct.kasumi_test_case], align 16
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@kasumi_f9_func_tab = external hidden local_unnamed_addr constant [2 x %struct.kasumi_test_case], align 16

; Function Attrs: nounwind uwtable
define dso_local i32 @kasumi_test(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca %struct.test_suite_context, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #4
  call void @test_suite_start(ptr noundef nonnull %2, ptr noundef nonnull @.str) #4
  %3 = load ptr, ptr @kasumi_f8_func_tab, align 16, !tbaa !5
  %4 = call i32 %3(ptr noundef %0, i32 noundef 0) #4
  %.not21 = icmp eq i32 %4, 0
  br i1 %.not21, label %8, label %5

5:                                                ; preds = %1
  %6 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 8), align 8, !tbaa !10
  %7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %6)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %9

8:                                                ; preds = %1
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %9

9:                                                ; preds = %8, %5
  %10 = call i32 %3(ptr noundef %0, i32 noundef 1) #4
  %.not22 = icmp eq i32 %10, 0
  br i1 %.not22, label %14, label %11

11:                                               ; preds = %9
  %12 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 8), align 8, !tbaa !10
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %12)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %15

14:                                               ; preds = %9
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %15

15:                                               ; preds = %11, %14
  %16 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 16), align 16, !tbaa !5
  %17 = call i32 %16(ptr noundef %0, i32 noundef 0) #4
  %.not21.1 = icmp eq i32 %17, 0
  br i1 %.not21.1, label %21, label %18

18:                                               ; preds = %15
  %19 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 24), align 8, !tbaa !10
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %19)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %22

21:                                               ; preds = %15
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %22

22:                                               ; preds = %21, %18
  %23 = call i32 %16(ptr noundef %0, i32 noundef 1) #4
  %.not22.1 = icmp eq i32 %23, 0
  br i1 %.not22.1, label %27, label %24

24:                                               ; preds = %22
  %25 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 24), align 8, !tbaa !10
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %25)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %28

27:                                               ; preds = %22
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %28

28:                                               ; preds = %27, %24
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 32), align 16, !tbaa !5
  %30 = call i32 %29(ptr noundef %0, i32 noundef 0) #4
  %.not21.2 = icmp eq i32 %30, 0
  br i1 %.not21.2, label %34, label %31

31:                                               ; preds = %28
  %32 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 40), align 8, !tbaa !10
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %32)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %35

34:                                               ; preds = %28
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %35

35:                                               ; preds = %34, %31
  %36 = call i32 %29(ptr noundef %0, i32 noundef 1) #4
  %.not22.2 = icmp eq i32 %36, 0
  br i1 %.not22.2, label %40, label %37

37:                                               ; preds = %35
  %38 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 40), align 8, !tbaa !10
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %38)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %41

40:                                               ; preds = %35
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %41

41:                                               ; preds = %40, %37
  %42 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 48), align 16, !tbaa !5
  %43 = call i32 %42(ptr noundef %0, i32 noundef 0) #4
  %.not21.3 = icmp eq i32 %43, 0
  br i1 %.not21.3, label %47, label %44

44:                                               ; preds = %41
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 56), align 8, !tbaa !10
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %45)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %48

47:                                               ; preds = %41
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %48

48:                                               ; preds = %47, %44
  %49 = call i32 %42(ptr noundef %0, i32 noundef 1) #4
  %.not22.3 = icmp eq i32 %49, 0
  br i1 %.not22.3, label %53, label %50

50:                                               ; preds = %48
  %51 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 56), align 8, !tbaa !10
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %51)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %54

53:                                               ; preds = %48
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %54

54:                                               ; preds = %53, %50
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 64), align 16, !tbaa !5
  %56 = call i32 %55(ptr noundef %0, i32 noundef 0) #4
  %.not21.4 = icmp eq i32 %56, 0
  br i1 %.not21.4, label %60, label %57

57:                                               ; preds = %54
  %58 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 72), align 8, !tbaa !10
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %58)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %61

60:                                               ; preds = %54
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %61

61:                                               ; preds = %60, %57
  %62 = call i32 %55(ptr noundef %0, i32 noundef 1) #4
  %.not22.4 = icmp eq i32 %62, 0
  br i1 %.not22.4, label %66, label %63

63:                                               ; preds = %61
  %64 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 72), align 8, !tbaa !10
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %64)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %67

66:                                               ; preds = %61
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %67

67:                                               ; preds = %66, %63
  %68 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 80), align 16, !tbaa !5
  %69 = call i32 %68(ptr noundef %0, i32 noundef 0) #4
  %.not21.5 = icmp eq i32 %69, 0
  br i1 %.not21.5, label %73, label %70

70:                                               ; preds = %67
  %71 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 88), align 8, !tbaa !10
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %71)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %74

73:                                               ; preds = %67
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %74

74:                                               ; preds = %73, %70
  %75 = call i32 %68(ptr noundef %0, i32 noundef 1) #4
  %.not22.5 = icmp eq i32 %75, 0
  br i1 %.not22.5, label %79, label %76

76:                                               ; preds = %74
  %77 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 88), align 8, !tbaa !10
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %77)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %80

79:                                               ; preds = %74
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %80

80:                                               ; preds = %79, %76
  %81 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 96), align 16, !tbaa !5
  %82 = call i32 %81(ptr noundef %0, i32 noundef 0) #4
  %.not21.6 = icmp eq i32 %82, 0
  br i1 %.not21.6, label %86, label %83

83:                                               ; preds = %80
  %84 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 104), align 8, !tbaa !10
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %84)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %87

86:                                               ; preds = %80
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %87

87:                                               ; preds = %86, %83
  %88 = call i32 %81(ptr noundef %0, i32 noundef 1) #4
  %.not22.6 = icmp eq i32 %88, 0
  br i1 %.not22.6, label %92, label %89

89:                                               ; preds = %87
  %90 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f8_func_tab, i64 104), align 8, !tbaa !10
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %90)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %93

92:                                               ; preds = %87
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %93

93:                                               ; preds = %92, %89
  %94 = call i32 @test_suite_end(ptr noundef nonnull %2) #4
  call void @test_suite_start(ptr noundef nonnull %2, ptr noundef nonnull @.str.2) #4
  %95 = load ptr, ptr @kasumi_f9_func_tab, align 16, !tbaa !5
  %96 = call i32 %95(ptr noundef %0, i32 noundef 0) #4
  %.not = icmp eq i32 %96, 0
  br i1 %.not, label %100, label %97

97:                                               ; preds = %93
  %98 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f9_func_tab, i64 8), align 8, !tbaa !10
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %98)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %101

100:                                              ; preds = %93
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %101

101:                                              ; preds = %100, %97
  %102 = call i32 %95(ptr noundef %0, i32 noundef 1) #4
  %.not20 = icmp eq i32 %102, 0
  br i1 %.not20, label %106, label %103

103:                                              ; preds = %101
  %104 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f9_func_tab, i64 8), align 8, !tbaa !10
  %105 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %104)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %107

106:                                              ; preds = %101
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %107

107:                                              ; preds = %103, %106
  %108 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f9_func_tab, i64 16), align 16, !tbaa !5
  %109 = call i32 %108(ptr noundef %0, i32 noundef 0) #4
  %.not.1 = icmp eq i32 %109, 0
  br i1 %.not.1, label %113, label %110

110:                                              ; preds = %107
  %111 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f9_func_tab, i64 24), align 8, !tbaa !10
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %111)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %114

113:                                              ; preds = %107
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %114

114:                                              ; preds = %113, %110
  %115 = call i32 %108(ptr noundef %0, i32 noundef 1) #4
  %.not20.1 = icmp eq i32 %115, 0
  br i1 %.not20.1, label %119, label %116

116:                                              ; preds = %114
  %117 = load ptr, ptr getelementptr inbounds (i8, ptr @kasumi_f9_func_tab, i64 24), align 8, !tbaa !10
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %117)
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #4
  br label %120

119:                                              ; preds = %114
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #4
  br label %120

120:                                              ; preds = %119, %116
  %121 = call i32 @test_suite_end(ptr noundef nonnull %2) #4
  %122 = add nsw i32 %121, %94
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #4
  ret i32 %122
}

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

declare void @test_suite_start(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @test_suite_update(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @test_suite_end(ptr noundef) local_unnamed_addr #2

; 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 = { "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 = { 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, !7, i64 0}
!6 = !{!"kasumi_test_case", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,ReassociatePass,SROAPass,SimplifyCFGPass