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

@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [83 x i8], align 1
@zuc_eea3_256_test_json = external constant [0 x %struct.cipher_test], align 8
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__.validate_zuc256_EEA3 = external hidden unnamed_addr constant [122 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @validate_zuc256_EEA3(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6) #2 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca [17 x i32], align 16
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store i32 %5, ptr %14, align 4, !tbaa !9
  store i32 %6, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 68, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store ptr @zuc_eea3_256_test_json, ptr %22, align 8, !tbaa !5
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %35, %7
  %25 = load ptr, ptr %22, align 8, !tbaa !5
  %26 = load i32, ptr %16, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = getelementptr inbounds %struct.cipher_test, ptr %25, i64 %27
  %29 = getelementptr inbounds %struct.cipher_test, ptr %28, i32 0, i32 5
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %38

32:                                               ; preds = %24
  %33 = load i32, ptr %18, align 4, !tbaa !9
  %34 = add i32 %33, 1
  store i32 %34, ptr %18, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %32
  %36 = load i32, ptr %16, align 4, !tbaa !9
  %37 = add i32 %36, 1
  store i32 %37, ptr %16, align 4, !tbaa !9
  br label %24, !llvm.loop !14

38:                                               ; preds = %24
  %39 = load i32, ptr %18, align 4, !tbaa !9
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %43

41:                                               ; preds = %38
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %143

43:                                               ; preds = %38
  %44 = load i32, ptr %14, align 4, !tbaa !9
  %45 = icmp ugt i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  br label %48

47:                                               ; preds = %43
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.8, i32 noundef 804, ptr noundef @__PRETTY_FUNCTION__.validate_zuc256_EEA3) #5
  unreachable

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

49:                                               ; preds = %95, %48
  %50 = load i32, ptr %16, align 4, !tbaa !9
  %51 = load i32, ptr %18, align 4, !tbaa !9
  %52 = icmp ult i32 %50, %51
  br i1 %52, label %53, label %98

53:                                               ; preds = %49
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %63, %53
  %55 = load i32, ptr %17, align 4, !tbaa !9
  %56 = load i32, ptr %14, align 4, !tbaa !9
  %57 = icmp ult i32 %55, %56
  br i1 %57, label %58, label %66

58:                                               ; preds = %54
  %59 = load i32, ptr %16, align 4, !tbaa !9
  %60 = load i32, ptr %17, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds [17 x i32], ptr %21, i64 0, i64 %61
  store i32 %59, ptr %62, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %58
  %64 = load i32, ptr %17, align 4, !tbaa !9
  %65 = add i32 %64, 1
  store i32 %65, ptr %17, align 4, !tbaa !9
  br label %54, !llvm.loop !16

66:                                               ; preds = %54
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = load i32, ptr %15, align 4, !tbaa !9
  %73 = load i32, ptr %14, align 4, !tbaa !9
  %74 = getelementptr inbounds [17 x i32], ptr %21, i64 0, i64 0
  %75 = call i32 @submit_and_verify_zuc256(ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, i32 noundef %72, i32 noundef 1, i32 noundef 0, i32 noundef %73, ptr noundef %74)
  store i32 %75, ptr %20, align 4, !tbaa !9
  %76 = load i32, ptr %20, align 4, !tbaa !9
  %77 = icmp slt i32 %76, 0
  br i1 %77, label %78, label %80

78:                                               ; preds = %66
  %79 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %79, ptr %19, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %78, %66
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = load i32, ptr %15, align 4, !tbaa !9
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = getelementptr inbounds [17 x i32], ptr %21, i64 0, i64 0
  %89 = call i32 @submit_and_verify_zuc256(ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85, i32 noundef %86, i32 noundef 2, i32 noundef 0, i32 noundef %87, ptr noundef %88)
  store i32 %89, ptr %20, align 4, !tbaa !9
  %90 = load i32, ptr %20, align 4, !tbaa !9
  %91 = icmp slt i32 %90, 0
  br i1 %91, label %92, label %94

92:                                               ; preds = %80
  %93 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %93, ptr %19, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %92, %80
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = add i32 %96, 1
  store i32 %97, ptr %16, align 4, !tbaa !9
  br label %49, !llvm.loop !17

98:                                               ; preds = %49
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %110, %98
  %100 = load i32, ptr %16, align 4, !tbaa !9
  %101 = load i32, ptr %14, align 4, !tbaa !9
  %102 = icmp ult i32 %100, %101
  br i1 %102, label %103, label %113

103:                                              ; preds = %99
  %104 = load i32, ptr %16, align 4, !tbaa !9
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = urem i32 %104, %105
  %107 = load i32, ptr %16, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds [17 x i32], ptr %21, i64 0, i64 %108
  store i32 %106, ptr %109, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %103
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = add i32 %111, 1
  store i32 %112, ptr %16, align 4, !tbaa !9
  br label %99, !llvm.loop !18

113:                                              ; preds = %99
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = getelementptr inbounds [17 x i32], ptr %21, i64 0, i64 0
  %122 = call i32 @submit_and_verify_zuc256(ptr noundef %114, ptr noundef %115, ptr noundef %116, ptr noundef %117, ptr noundef %118, i32 noundef %119, i32 noundef 1, i32 noundef 1, i32 noundef %120, ptr noundef %121)
  store i32 %122, ptr %20, align 4, !tbaa !9
  %123 = load i32, ptr %20, align 4, !tbaa !9
  %124 = icmp slt i32 %123, 0
  br i1 %124, label %125, label %127

125:                                              ; preds = %113
  %126 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %126, ptr %19, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %125, %113
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = getelementptr inbounds [17 x i32], ptr %21, i64 0, i64 0
  %136 = call i32 @submit_and_verify_zuc256(ptr noundef %128, ptr noundef %129, ptr noundef %130, ptr noundef %131, ptr noundef %132, i32 noundef %133, i32 noundef 2, i32 noundef 1, i32 noundef %134, ptr noundef %135)
  store i32 %136, ptr %20, align 4, !tbaa !9
  %137 = load i32, ptr %20, align 4, !tbaa !9
  %138 = icmp slt i32 %137, 0
  br i1 %138, label %139, label %141

139:                                              ; preds = %127
  %140 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %140, ptr %19, align 4, !tbaa !9
  br label %141

141:                                              ; preds = %139, %127
  %142 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %142, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %143

143:                                              ; preds = %141, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 68, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  %144 = load i32, ptr %8, align 4
  ret i32 %144
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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 40}
!12 = !{!"cipher_test", !13, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !13, i64 64}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !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.cipher_test = type { i64, i64, i64, ptr, ptr, ptr, ptr, i32, i64 }

@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [83 x i8], align 1
@zuc_eea3_256_test_json = external local_unnamed_addr constant [0 x %struct.cipher_test], align 8
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__.validate_zuc256_EEA3 = external hidden unnamed_addr constant [122 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -2147483648, 1) i32 @validate_zuc256_EEA3(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #2 {
  %8 = alloca [17 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %8) #4
  %9 = load ptr, ptr getelementptr inbounds (i8, ptr @zuc_eea3_256_test_json, i64 40), align 8, !tbaa !5
  %.not72 = icmp eq ptr %9, null
  br i1 %.not72, label %._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %7, %.lr.ph
  %.05874 = phi i32 [ %10, %.lr.ph ], [ 0, %7 ]
  %10 = add i32 %.05874, 1
  %11 = zext i32 %10 to i64
  %12 = getelementptr inbounds %struct.cipher_test, ptr @zuc_eea3_256_test_json, i64 %11, i32 5
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph
  %14 = icmp eq i32 %10, 0
  br i1 %14, label %._crit_edge.thread, label %16

._crit_edge.thread:                               ; preds = %7, %._crit_edge
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %42

16:                                               ; preds = %._crit_edge
  %.not68 = icmp eq i32 %5, 0
  br i1 %.not68, label %17, label %.preheader70.preheader

.preheader70.preheader:                           ; preds = %16
  %wide.trip.count = zext i32 %5 to i64
  %min.iters.check = icmp ult i32 %5, 8
  %n.vec = and i64 %wide.trip.count, 4294967288
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %.preheader70

17:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8, i32 noundef 804, ptr noundef nonnull @__PRETTY_FUNCTION__.validate_zuc256_EEA3) #5
  unreachable

.preheader70:                                     ; preds = %.preheader70.preheader, %.loopexit
  %.05777 = phi i32 [ %.2, %.loopexit ], [ 0, %.preheader70.preheader ]
  %.16176 = phi i32 [ %26, %.loopexit ], [ 0, %.preheader70.preheader ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.preheader70
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %.16176, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %18 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 %index
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store <4 x i32> %broadcast.splat, ptr %18, align 16, !tbaa !14
  store <4 x i32> %broadcast.splat, ptr %19, align 16, !tbaa !14
  %index.next = add nuw i64 %index, 8
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader70
  %indvars.iv.ph = phi i64 [ 0, %.preheader70 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %21 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 %indvars.iv
  store i32 %.16176, ptr %21, align 4, !tbaa !14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %scalar.ph, !llvm.loop !18

.loopexit:                                        ; preds = %scalar.ph, %middle.block
  %22 = call i32 @submit_and_verify_zuc256(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %6, i32 noundef 1, i32 noundef 0, i32 noundef %5, ptr noundef nonnull %8)
  %23 = icmp slt i32 %22, 0
  %spec.select = select i1 %23, i32 %22, i32 %.05777
  %24 = call i32 @submit_and_verify_zuc256(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %6, i32 noundef 2, i32 noundef 0, i32 noundef %5, ptr noundef nonnull %8)
  %25 = icmp slt i32 %24, 0
  %.2 = select i1 %25, i32 %24, i32 %spec.select
  %26 = add nuw i32 %.16176, 1
  %exitcond80.not = icmp eq i32 %.16176, %.05874
  br i1 %exitcond80.not, label %.preheader.preheader, label %.preheader70, !llvm.loop !19

.preheader.preheader:                             ; preds = %.loopexit
  %xtraiter = and i64 %wide.trip.count, 1
  %27 = icmp eq i32 %5, 1
  br i1 %27, label %.unr-lcssa, label %.preheader.preheader.new

.preheader.preheader.new:                         ; preds = %.preheader.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  br label %.preheader

.preheader:                                       ; preds = %.preheader, %.preheader.preheader.new
  %indvars.iv81 = phi i64 [ 0, %.preheader.preheader.new ], [ %indvars.iv.next82.1, %.preheader ]
  %niter = phi i64 [ 0, %.preheader.preheader.new ], [ %niter.next.1, %.preheader ]
  %28 = trunc nuw i64 %indvars.iv81 to i32
  %29 = urem i32 %28, %10
  %30 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 %indvars.iv81
  store i32 %29, ptr %30, align 8, !tbaa !14
  %indvars.iv.next82 = or disjoint i64 %indvars.iv81, 1
  %31 = trunc nuw i64 %indvars.iv.next82 to i32
  %32 = urem i32 %31, %10
  %33 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 %indvars.iv.next82
  store i32 %32, ptr %33, align 4, !tbaa !14
  %indvars.iv.next82.1 = add nuw nsw i64 %indvars.iv81, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.unr-lcssa, label %.preheader, !llvm.loop !20

.unr-lcssa:                                       ; preds = %.preheader, %.preheader.preheader
  %indvars.iv81.unr = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next82.1, %.preheader ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %37, label %.preheader.epil

.preheader.epil:                                  ; preds = %.unr-lcssa
  %34 = trunc nuw i64 %indvars.iv81.unr to i32
  %35 = urem i32 %34, %10
  %36 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 %indvars.iv81.unr
  store i32 %35, ptr %36, align 4, !tbaa !14
  br label %37

37:                                               ; preds = %.unr-lcssa, %.preheader.epil
  %38 = call i32 @submit_and_verify_zuc256(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %6, i32 noundef 1, i32 noundef 1, i32 noundef %5, ptr noundef nonnull %8)
  %39 = icmp slt i32 %38, 0
  %spec.select69 = select i1 %39, i32 %38, i32 %.2
  %40 = call i32 @submit_and_verify_zuc256(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %6, i32 noundef 2, i32 noundef 1, i32 noundef %5, ptr noundef nonnull %8)
  %41 = icmp slt i32 %40, 0
  %.4 = select i1 %41, i32 %40, i32 %spec.select69
  br label %42

42:                                               ; preds = %37, %._crit_edge.thread
  %.0 = phi i32 [ -1, %._crit_edge.thread ], [ %.4, %37 ]
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %8) #4
  ret i32 %.0
}

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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, !10, i64 40}
!6 = !{!"cipher_test", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !11, i64 56, !7, i64 64}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!11, !11, i64 0}
!15 = distinct !{!15, !13, !16, !17}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !13, !17, !16}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass,TailCallElimPass