; LLVM IR from intel/intel-ipsec-mb :: test/kat-app (zuc_eia3_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.test_suite_context = type { i32, i32, ptr }

@__const.zuc_eia3_test.numBuffs = external hidden unnamed_addr constant [5 x i32], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @zuc_eia3_test(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca [5 x i32], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [17 x ptr], align 16
  %7 = alloca [17 x ptr], align 16
  %8 = alloca [17 x ptr], align 16
  %9 = alloca [17 x ptr], align 16
  %10 = alloca %struct.test_suite_context, align 8
  %11 = alloca %struct.test_suite_context, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 20, ptr %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.zuc_eia3_test.numBuffs, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 136, ptr %6) #5
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 136, i1 false)
  call void @llvm.lifetime.start.p0(i64 136, ptr %7) #5
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 136, i1 false)
  call void @llvm.lifetime.start.p0(i64 136, ptr %8) #5
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 136, i1 false)
  call void @llvm.lifetime.start.p0(i64 136, ptr %9) #5
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 136, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  call void @test_suite_start(ptr noundef %10, ptr noundef @.str)
  call void @test_suite_start(ptr noundef %11, ptr noundef @.str.1)
  %12 = getelementptr inbounds [17 x ptr], ptr %8, i64 0, i64 0
  %13 = call i32 @createData(ptr noundef %12, i32 noundef 17)
  %14 = icmp ne i32 %13, 0
  br i1 %14, label %15, label %17

15:                                               ; preds = %1
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @test_suite_update(ptr noundef %10, i32 noundef 0, i32 noundef 1)
  br label %154

17:                                               ; preds = %1
  %18 = getelementptr inbounds [17 x ptr], ptr %9, i64 0, i64 0
  %19 = call i32 @createData(ptr noundef %18, i32 noundef 17)
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %24

21:                                               ; preds = %17
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %23 = getelementptr inbounds [17 x ptr], ptr %8, i64 0, i64 0
  call void @freePtrArray(ptr noundef %23, i32 noundef 17)
  call void @test_suite_update(ptr noundef %10, i32 noundef 0, i32 noundef 1)
  br label %154

24:                                               ; preds = %17
  %25 = getelementptr inbounds [17 x ptr], ptr %6, i64 0, i64 0
  %26 = getelementptr inbounds [17 x ptr], ptr %7, i64 0, i64 0
  %27 = call i32 @createKeyVecData(i32 noundef 32, ptr noundef %25, i32 noundef 25, ptr noundef %26, i32 noundef 17)
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %33

29:                                               ; preds = %24
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %31 = getelementptr inbounds [17 x ptr], ptr %8, i64 0, i64 0
  call void @freePtrArray(ptr noundef %31, i32 noundef 17)
  %32 = getelementptr inbounds [17 x ptr], ptr %9, i64 0, i64 0
  call void @freePtrArray(ptr noundef %32, i32 noundef 17)
  call void @test_suite_update(ptr noundef %10, i32 noundef 0, i32 noundef 1)
  br label %154

33:                                               ; preds = %24
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds [17 x ptr], ptr %8, i64 0, i64 0
  %36 = load ptr, ptr %35, align 16, !tbaa !5
  %37 = getelementptr inbounds [17 x ptr], ptr %9, i64 0, i64 0
  %38 = load ptr, ptr %37, align 16, !tbaa !5
  %39 = getelementptr inbounds [17 x ptr], ptr %6, i64 0, i64 0
  %40 = load ptr, ptr %39, align 16, !tbaa !5
  %41 = getelementptr inbounds [17 x ptr], ptr %7, i64 0, i64 0
  %42 = load ptr, ptr %41, align 16, !tbaa !5
  %43 = call i32 @validate_zuc_EIA_1_block(ptr noundef %34, ptr noundef %36, ptr noundef %38, ptr noundef %40, ptr noundef %42, i32 noundef 0)
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %33
  call void @test_suite_update(ptr noundef %10, i32 noundef 0, i32 noundef 1)
  br label %47

46:                                               ; preds = %33
  call void @test_suite_update(ptr noundef %10, i32 noundef 1, i32 noundef 0)
  br label %47

47:                                               ; preds = %46, %45
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %67, %47
  %49 = load i32, ptr %4, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = icmp ult i64 %50, 5
  br i1 %51, label %52, label %70

52:                                               ; preds = %48
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds [17 x ptr], ptr %8, i64 0, i64 0
  %55 = getelementptr inbounds [17 x ptr], ptr %9, i64 0, i64 0
  %56 = getelementptr inbounds [17 x ptr], ptr %6, i64 0, i64 0
  %57 = getelementptr inbounds [17 x ptr], ptr %7, i64 0, i64 0
  %58 = load i32, ptr %4, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = call i32 @validate_zuc_EIA_n_block(ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57, i32 noundef %61, i32 noundef 0)
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %65

64:                                               ; preds = %52
  call void @test_suite_update(ptr noundef %10, i32 noundef 0, i32 noundef 1)
  br label %66

65:                                               ; preds = %52
  call void @test_suite_update(ptr noundef %10, i32 noundef 1, i32 noundef 0)
  br label %66

66:                                               ; preds = %65, %64
  br label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %4, align 4, !tbaa !9
  %69 = add i32 %68, 1
  store i32 %69, ptr %4, align 4, !tbaa !9
  br label %48, !llvm.loop !11

70:                                               ; preds = %48
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds [17 x ptr], ptr %8, i64 0, i64 0
  %73 = load ptr, ptr %72, align 16, !tbaa !5
  %74 = getelementptr inbounds [17 x ptr], ptr %9, i64 0, i64 0
  %75 = load ptr, ptr %74, align 16, !tbaa !5
  %76 = getelementptr inbounds [17 x ptr], ptr %6, i64 0, i64 0
  %77 = load ptr, ptr %76, align 16, !tbaa !5
  %78 = getelementptr inbounds [17 x ptr], ptr %7, i64 0, i64 0
  %79 = load ptr, ptr %78, align 16, !tbaa !5
  %80 = call i32 @validate_zuc_EIA_1_block(ptr noundef %71, ptr noundef %73, ptr noundef %75, ptr noundef %77, ptr noundef %79, i32 noundef 1)
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %70
  call void @test_suite_update(ptr noundef %10, i32 noundef 0, i32 noundef 1)
  br label %84

83:                                               ; preds = %70
  call void @test_suite_update(ptr noundef %10, i32 noundef 1, i32 noundef 0)
  br label %84

84:                                               ; preds = %83, %82
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %104, %84
  %86 = load i32, ptr %4, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = icmp ult i64 %87, 5
  br i1 %88, label %89, label %107

89:                                               ; preds = %85
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = getelementptr inbounds [17 x ptr], ptr %8, i64 0, i64 0
  %92 = getelementptr inbounds [17 x ptr], ptr %9, i64 0, i64 0
  %93 = getelementptr inbounds [17 x ptr], ptr %6, i64 0, i64 0
  %94 = getelementptr inbounds [17 x ptr], ptr %7, i64 0, i64 0
  %95 = load i32, ptr %4, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = call i32 @validate_zuc_EIA_n_block(ptr noundef %90, ptr noundef %91, ptr noundef %92, ptr noundef %93, ptr noundef %94, i32 noundef %98, i32 noundef 1)
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %89
  call void @test_suite_update(ptr noundef %10, i32 noundef 0, i32 noundef 1)
  br label %103

102:                                              ; preds = %89
  call void @test_suite_update(ptr noundef %10, i32 noundef 1, i32 noundef 0)
  br label %103

103:                                              ; preds = %102, %101
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %4, align 4, !tbaa !9
  %106 = add i32 %105, 1
  store i32 %106, ptr %4, align 4, !tbaa !9
  br label %85, !llvm.loop !13

107:                                              ; preds = %85
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %127, %107
  %109 = load i32, ptr %4, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = icmp ult i64 %110, 5
  br i1 %111, label %112, label %130

112:                                              ; preds = %108
  %113 = load ptr, ptr %2, align 8, !tbaa !5
  %114 = getelementptr inbounds [17 x ptr], ptr %8, i64 0, i64 0
  %115 = getelementptr inbounds [17 x ptr], ptr %9, i64 0, i64 0
  %116 = getelementptr inbounds [17 x ptr], ptr %6, i64 0, i64 0
  %117 = getelementptr inbounds [17 x ptr], ptr %7, i64 0, i64 0
  %118 = load i32, ptr %4, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = call i32 @validate_zuc256_EIA3(ptr noundef %113, ptr noundef %114, ptr noundef %115, ptr noundef %116, ptr noundef %117, i32 noundef %121, i32 noundef 1)
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %125

124:                                              ; preds = %112
  call void @test_suite_update(ptr noundef %11, i32 noundef 0, i32 noundef 1)
  br label %126

125:                                              ; preds = %112
  call void @test_suite_update(ptr noundef %11, i32 noundef 1, i32 noundef 0)
  br label %126

126:                                              ; preds = %125, %124
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %4, align 4, !tbaa !9
  %129 = add i32 %128, 1
  store i32 %129, ptr %4, align 4, !tbaa !9
  br label %108, !llvm.loop !14

130:                                              ; preds = %108
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %150, %130
  %132 = load i32, ptr %4, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = icmp ult i64 %133, 5
  br i1 %134, label %135, label %153

135:                                              ; preds = %131
  %136 = load ptr, ptr %2, align 8, !tbaa !5
  %137 = getelementptr inbounds [17 x ptr], ptr %8, i64 0, i64 0
  %138 = getelementptr inbounds [17 x ptr], ptr %9, i64 0, i64 0
  %139 = getelementptr inbounds [17 x ptr], ptr %6, i64 0, i64 0
  %140 = getelementptr inbounds [17 x ptr], ptr %7, i64 0, i64 0
  %141 = load i32, ptr %4, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = call i32 @validate_zuc256_EIA3(ptr noundef %136, ptr noundef %137, ptr noundef %138, ptr noundef %139, ptr noundef %140, i32 noundef %144, i32 noundef 2)
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %135
  call void @test_suite_update(ptr noundef %11, i32 noundef 0, i32 noundef 1)
  br label %149

148:                                              ; preds = %135
  call void @test_suite_update(ptr noundef %11, i32 noundef 1, i32 noundef 0)
  br label %149

149:                                              ; preds = %148, %147
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %4, align 4, !tbaa !9
  %152 = add i32 %151, 1
  store i32 %152, ptr %4, align 4, !tbaa !9
  br label %131, !llvm.loop !15

153:                                              ; preds = %131
  br label %154

154:                                              ; preds = %153, %29, %21, %15
  %155 = getelementptr inbounds [17 x ptr], ptr %6, i64 0, i64 0
  call void @freePtrArray(ptr noundef %155, i32 noundef 17)
  %156 = getelementptr inbounds [17 x ptr], ptr %7, i64 0, i64 0
  call void @freePtrArray(ptr noundef %156, i32 noundef 17)
  %157 = getelementptr inbounds [17 x ptr], ptr %8, i64 0, i64 0
  call void @freePtrArray(ptr noundef %157, i32 noundef 17)
  %158 = getelementptr inbounds [17 x ptr], ptr %9, i64 0, i64 0
  call void @freePtrArray(ptr noundef %158, i32 noundef 17)
  %159 = call i32 @test_suite_end(ptr noundef %10)
  %160 = load i32, ptr %5, align 4, !tbaa !9
  %161 = add nsw i32 %160, %159
  store i32 %161, ptr %5, align 4, !tbaa !9
  %162 = call i32 @test_suite_end(ptr noundef %11)
  %163 = load i32, ptr %5, align 4, !tbaa !9
  %164 = add nsw i32 %163, %162
  store i32 %164, ptr %5, align 4, !tbaa !9
  %165 = load i32, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 136, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 136, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 136, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 136, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr %3) #5
  ret i32 %165
}

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

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

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

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

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

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

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

declare i32 @test_suite_end(ptr noundef) #4

; 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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

@__const.zuc_eia3_test.numBuffs = external hidden unnamed_addr constant [5 x i32], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @zuc_eia3_test(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [17 x ptr], align 16
  %3 = alloca [17 x ptr], align 16
  %4 = alloca [17 x ptr], align 16
  %5 = alloca [17 x ptr], align 16
  %6 = alloca %struct.test_suite_context, align 8
  %7 = alloca %struct.test_suite_context, align 8
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %2) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(136) %2, i8 0, i64 136, i1 false)
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(136) %3, i8 0, i64 136, i1 false)
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %4) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(136) %4, i8 0, i64 136, i1 false)
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %5) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(136) %5, i8 0, i64 136, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @test_suite_start(ptr noundef nonnull %6, ptr noundef nonnull @.str) #5
  call void @test_suite_start(ptr noundef nonnull %7, ptr noundef nonnull @.str.1) #5
  %8 = call i32 @createData(ptr noundef nonnull %4, i32 noundef 17)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %11, label %9

9:                                                ; preds = %1
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %.loopexit

11:                                               ; preds = %1
  %12 = call i32 @createData(ptr noundef nonnull %5, i32 noundef 17)
  %.not24 = icmp eq i32 %12, 0
  br i1 %.not24, label %15, label %13

13:                                               ; preds = %11
  %14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @freePtrArray(ptr noundef nonnull %4, i32 noundef 17)
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %.loopexit

15:                                               ; preds = %11
  %16 = call i32 @createKeyVecData(i32 noundef 32, ptr noundef nonnull %2, i32 noundef 25, ptr noundef nonnull %3, i32 noundef 17)
  %.not25 = icmp eq i32 %16, 0
  br i1 %.not25, label %19, label %17

17:                                               ; preds = %15
  %18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  call void @freePtrArray(ptr noundef nonnull %4, i32 noundef 17)
  call void @freePtrArray(ptr noundef nonnull %5, i32 noundef 17)
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %.loopexit

19:                                               ; preds = %15
  %20 = load ptr, ptr %4, align 16, !tbaa !5
  %21 = load ptr, ptr %5, align 16, !tbaa !5
  %22 = load ptr, ptr %2, align 16, !tbaa !5
  %23 = load ptr, ptr %3, align 16, !tbaa !5
  %24 = call i32 @validate_zuc_EIA_1_block(ptr noundef %0, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, i32 noundef 0)
  %.not26 = icmp eq i32 %24, 0
  br i1 %.not26, label %26, label %25

25:                                               ; preds = %19
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %27

26:                                               ; preds = %19
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 1, i32 noundef 0) #5
  br label %27

27:                                               ; preds = %26, %25
  %28 = load i32, ptr @__const.zuc_eia3_test.numBuffs, align 16, !tbaa !9
  %29 = call i32 @validate_zuc_EIA_n_block(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %28, i32 noundef 0)
  %.not31 = icmp eq i32 %29, 0
  br i1 %.not31, label %31, label %30

30:                                               ; preds = %27
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %32

31:                                               ; preds = %27
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 1, i32 noundef 0) #5
  br label %32

32:                                               ; preds = %30, %31
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @__const.zuc_eia3_test.numBuffs, i64 4), align 4, !tbaa !9
  %34 = call i32 @validate_zuc_EIA_n_block(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %33, i32 noundef 0)
  %.not31.1 = icmp eq i32 %34, 0
  br i1 %.not31.1, label %36, label %35

35:                                               ; preds = %32
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %37

36:                                               ; preds = %32
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 1, i32 noundef 0) #5
  br label %37

37:                                               ; preds = %36, %35
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @__const.zuc_eia3_test.numBuffs, i64 8), align 8, !tbaa !9
  %39 = call i32 @validate_zuc_EIA_n_block(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %38, i32 noundef 0)
  %.not31.2 = icmp eq i32 %39, 0
  br i1 %.not31.2, label %41, label %40

40:                                               ; preds = %37
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %42

41:                                               ; preds = %37
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 1, i32 noundef 0) #5
  br label %42

42:                                               ; preds = %41, %40
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @__const.zuc_eia3_test.numBuffs, i64 12), align 4, !tbaa !9
  %44 = call i32 @validate_zuc_EIA_n_block(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %43, i32 noundef 0)
  %.not31.3 = icmp eq i32 %44, 0
  br i1 %.not31.3, label %46, label %45

45:                                               ; preds = %42
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %47

46:                                               ; preds = %42
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 1, i32 noundef 0) #5
  br label %47

47:                                               ; preds = %46, %45
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @__const.zuc_eia3_test.numBuffs, i64 16), align 16, !tbaa !9
  %49 = call i32 @validate_zuc_EIA_n_block(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %48, i32 noundef 0)
  %.not31.4 = icmp eq i32 %49, 0
  br i1 %.not31.4, label %51, label %50

50:                                               ; preds = %47
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %52

51:                                               ; preds = %47
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 1, i32 noundef 0) #5
  br label %52

52:                                               ; preds = %51, %50
  %53 = load ptr, ptr %4, align 16, !tbaa !5
  %54 = load ptr, ptr %5, align 16, !tbaa !5
  %55 = load ptr, ptr %2, align 16, !tbaa !5
  %56 = load ptr, ptr %3, align 16, !tbaa !5
  %57 = call i32 @validate_zuc_EIA_1_block(ptr noundef %0, ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, i32 noundef 1)
  %.not27 = icmp eq i32 %57, 0
  br i1 %.not27, label %59, label %58

58:                                               ; preds = %52
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %60

59:                                               ; preds = %52
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 1, i32 noundef 0) #5
  br label %60

60:                                               ; preds = %59, %58
  %61 = call i32 @validate_zuc_EIA_n_block(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %28, i32 noundef 1)
  %.not30 = icmp eq i32 %61, 0
  br i1 %.not30, label %63, label %62

62:                                               ; preds = %60
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %64

63:                                               ; preds = %60
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 1, i32 noundef 0) #5
  br label %64

64:                                               ; preds = %62, %63
  %65 = call i32 @validate_zuc_EIA_n_block(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %33, i32 noundef 1)
  %.not30.1 = icmp eq i32 %65, 0
  br i1 %.not30.1, label %67, label %66

66:                                               ; preds = %64
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %68

67:                                               ; preds = %64
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 1, i32 noundef 0) #5
  br label %68

68:                                               ; preds = %67, %66
  %69 = call i32 @validate_zuc_EIA_n_block(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %38, i32 noundef 1)
  %.not30.2 = icmp eq i32 %69, 0
  br i1 %.not30.2, label %71, label %70

70:                                               ; preds = %68
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %72

71:                                               ; preds = %68
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 1, i32 noundef 0) #5
  br label %72

72:                                               ; preds = %71, %70
  %73 = call i32 @validate_zuc_EIA_n_block(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %43, i32 noundef 1)
  %.not30.3 = icmp eq i32 %73, 0
  br i1 %.not30.3, label %75, label %74

74:                                               ; preds = %72
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %76

75:                                               ; preds = %72
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 1, i32 noundef 0) #5
  br label %76

76:                                               ; preds = %75, %74
  %77 = call i32 @validate_zuc_EIA_n_block(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %48, i32 noundef 1)
  %.not30.4 = icmp eq i32 %77, 0
  br i1 %.not30.4, label %79, label %78

78:                                               ; preds = %76
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 1) #5
  br label %.preheader32.preheader

79:                                               ; preds = %76
  call void @test_suite_update(ptr noundef nonnull %6, i32 noundef 1, i32 noundef 0) #5
  br label %.preheader32.preheader

.preheader32.preheader:                           ; preds = %79, %78
  %80 = call i32 @validate_zuc256_EIA3(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %28, i32 noundef 1)
  %.not29 = icmp eq i32 %80, 0
  br i1 %.not29, label %82, label %81

81:                                               ; preds = %.preheader32.preheader
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 0, i32 noundef 1) #5
  br label %.preheader32.1

82:                                               ; preds = %.preheader32.preheader
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 1, i32 noundef 0) #5
  br label %.preheader32.1

.preheader32.1:                                   ; preds = %81, %82
  %83 = call i32 @validate_zuc256_EIA3(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %33, i32 noundef 1)
  %.not29.1 = icmp eq i32 %83, 0
  br i1 %.not29.1, label %85, label %84

84:                                               ; preds = %.preheader32.1
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 0, i32 noundef 1) #5
  br label %.preheader32.2

85:                                               ; preds = %.preheader32.1
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 1, i32 noundef 0) #5
  br label %.preheader32.2

.preheader32.2:                                   ; preds = %85, %84
  %86 = call i32 @validate_zuc256_EIA3(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %38, i32 noundef 1)
  %.not29.2 = icmp eq i32 %86, 0
  br i1 %.not29.2, label %88, label %87

87:                                               ; preds = %.preheader32.2
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 0, i32 noundef 1) #5
  br label %.preheader32.3

88:                                               ; preds = %.preheader32.2
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 1, i32 noundef 0) #5
  br label %.preheader32.3

.preheader32.3:                                   ; preds = %88, %87
  %89 = call i32 @validate_zuc256_EIA3(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %43, i32 noundef 1)
  %.not29.3 = icmp eq i32 %89, 0
  br i1 %.not29.3, label %91, label %90

90:                                               ; preds = %.preheader32.3
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 0, i32 noundef 1) #5
  br label %.preheader32.4

91:                                               ; preds = %.preheader32.3
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 1, i32 noundef 0) #5
  br label %.preheader32.4

.preheader32.4:                                   ; preds = %91, %90
  %92 = call i32 @validate_zuc256_EIA3(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %48, i32 noundef 1)
  %.not29.4 = icmp eq i32 %92, 0
  br i1 %.not29.4, label %94, label %93

93:                                               ; preds = %.preheader32.4
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 0, i32 noundef 1) #5
  br label %.preheader.preheader

94:                                               ; preds = %.preheader32.4
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 1, i32 noundef 0) #5
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %94, %93
  %95 = call i32 @validate_zuc256_EIA3(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %28, i32 noundef 2)
  %.not28 = icmp eq i32 %95, 0
  br i1 %.not28, label %97, label %96

96:                                               ; preds = %.preheader.preheader
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 0, i32 noundef 1) #5
  br label %.preheader.1

97:                                               ; preds = %.preheader.preheader
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 1, i32 noundef 0) #5
  br label %.preheader.1

.preheader.1:                                     ; preds = %96, %97
  %98 = call i32 @validate_zuc256_EIA3(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %33, i32 noundef 2)
  %.not28.1 = icmp eq i32 %98, 0
  br i1 %.not28.1, label %100, label %99

99:                                               ; preds = %.preheader.1
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 0, i32 noundef 1) #5
  br label %.preheader.2

100:                                              ; preds = %.preheader.1
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 1, i32 noundef 0) #5
  br label %.preheader.2

.preheader.2:                                     ; preds = %100, %99
  %101 = call i32 @validate_zuc256_EIA3(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %38, i32 noundef 2)
  %.not28.2 = icmp eq i32 %101, 0
  br i1 %.not28.2, label %103, label %102

102:                                              ; preds = %.preheader.2
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 0, i32 noundef 1) #5
  br label %.preheader.3

103:                                              ; preds = %.preheader.2
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 1, i32 noundef 0) #5
  br label %.preheader.3

.preheader.3:                                     ; preds = %103, %102
  %104 = call i32 @validate_zuc256_EIA3(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %43, i32 noundef 2)
  %.not28.3 = icmp eq i32 %104, 0
  br i1 %.not28.3, label %106, label %105

105:                                              ; preds = %.preheader.3
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 0, i32 noundef 1) #5
  br label %.preheader.4

106:                                              ; preds = %.preheader.3
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 1, i32 noundef 0) #5
  br label %.preheader.4

.preheader.4:                                     ; preds = %106, %105
  %107 = call i32 @validate_zuc256_EIA3(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %48, i32 noundef 2)
  %.not28.4 = icmp eq i32 %107, 0
  br i1 %.not28.4, label %109, label %108

108:                                              ; preds = %.preheader.4
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 0, i32 noundef 1) #5
  br label %.loopexit

109:                                              ; preds = %.preheader.4
  call void @test_suite_update(ptr noundef nonnull %7, i32 noundef 1, i32 noundef 0) #5
  br label %.loopexit

.loopexit:                                        ; preds = %108, %109, %17, %13, %9
  call void @freePtrArray(ptr noundef nonnull %2, i32 noundef 17)
  call void @freePtrArray(ptr noundef nonnull %3, i32 noundef 17)
  call void @freePtrArray(ptr noundef nonnull %4, i32 noundef 17)
  call void @freePtrArray(ptr noundef nonnull %5, i32 noundef 17)
  %110 = call i32 @test_suite_end(ptr noundef nonnull %6) #5
  %111 = call i32 @test_suite_end(ptr noundef nonnull %7) #5
  %112 = add nsw i32 %111, %110
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %2) #5
  ret i32 %112
}

; 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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

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

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

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

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

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

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

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

declare i32 @test_suite_end(ptr noundef) local_unnamed_addr #3

; 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 nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 = { 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}


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