; LLVM IR from quarkslab/crypto-condor :: crypto_condor/primitives/_aes (aes)

; 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.AES_ctx = type { [240 x i8], [16 x i8], i8, i8 }

@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

; Function Attrs: nounwind uwtable
declare hidden void @Cipher(ptr noundef, ptr noundef) #4

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

; Function Attrs: nounwind uwtable
declare hidden void @XorBlock(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @AES_CTR_xcrypt_buffer(ptr noundef %0, ptr noundef %1, i64 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca [16 x i8], align 16
  %9 = alloca [16 x i8], align 16
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 1, ptr %10, align 4, !tbaa !11
  %12 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.AES_ctx, ptr %13, i32 0, i32 1
  %15 = getelementptr inbounds [16 x i8], ptr %14, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 1 %15, i64 12, i1 false)
  %16 = load i32, ptr %10, align 4, !tbaa !11
  %17 = lshr i32 %16, 24
  %18 = trunc i32 %17 to i8
  %19 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 12
  store i8 %18, ptr %19, align 4, !tbaa !13
  %20 = load i32, ptr %10, align 4, !tbaa !11
  %21 = lshr i32 %20, 16
  %22 = and i32 %21, 255
  %23 = trunc i32 %22 to i8
  %24 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 13
  store i8 %23, ptr %24, align 1, !tbaa !13
  %25 = load i32, ptr %10, align 4, !tbaa !11
  %26 = lshr i32 %25, 8
  %27 = and i32 %26, 255
  %28 = trunc i32 %27 to i8
  %29 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 14
  store i8 %28, ptr %29, align 2, !tbaa !13
  %30 = load i32, ptr %10, align 4, !tbaa !11
  %31 = and i32 %30, 255
  %32 = trunc i32 %31 to i8
  %33 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 15
  store i8 %32, ptr %33, align 1, !tbaa !13
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %74, %3
  %35 = load i64, ptr %7, align 8, !tbaa !9
  %36 = load i64, ptr %6, align 8, !tbaa !9
  %37 = udiv i64 %36, 16
  %38 = icmp ult i64 %35, %37
  br i1 %38, label %39, label %77

39:                                               ; preds = %34
  %40 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
  %41 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %41, i64 16, i1 false)
  %42 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  call void @Cipher(ptr noundef %42, ptr noundef %43)
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load i64, ptr %7, align 8, !tbaa !9
  %46 = mul i64 %45, 16
  %47 = getelementptr inbounds i8, ptr %44, i64 %46
  %48 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
  call void @XorBlock(ptr noundef %47, ptr noundef %48)
  %49 = load i32, ptr %10, align 4, !tbaa !11
  %50 = add i32 %49, 1
  store i32 %50, ptr %10, align 4, !tbaa !11
  %51 = load i32, ptr %10, align 4, !tbaa !11
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %55

53:                                               ; preds = %39
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  call void @exit(i32 noundef 1) #6
  unreachable

55:                                               ; preds = %39
  %56 = load i32, ptr %10, align 4, !tbaa !11
  %57 = lshr i32 %56, 24
  %58 = trunc i32 %57 to i8
  %59 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 12
  store i8 %58, ptr %59, align 4, !tbaa !13
  %60 = load i32, ptr %10, align 4, !tbaa !11
  %61 = lshr i32 %60, 16
  %62 = and i32 %61, 255
  %63 = trunc i32 %62 to i8
  %64 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 13
  store i8 %63, ptr %64, align 1, !tbaa !13
  %65 = load i32, ptr %10, align 4, !tbaa !11
  %66 = lshr i32 %65, 8
  %67 = and i32 %66, 255
  %68 = trunc i32 %67 to i8
  %69 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 14
  store i8 %68, ptr %69, align 2, !tbaa !13
  %70 = load i32, ptr %10, align 4, !tbaa !11
  %71 = and i32 %70, 255
  %72 = trunc i32 %71 to i8
  %73 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 15
  store i8 %72, ptr %73, align 1, !tbaa !13
  br label %74

74:                                               ; preds = %55
  %75 = load i64, ptr %7, align 8, !tbaa !9
  %76 = add i64 %75, 1
  store i64 %76, ptr %7, align 8, !tbaa !9
  br label %34, !llvm.loop !14

77:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %78 = load i64, ptr %6, align 8, !tbaa !9
  %79 = udiv i64 %78, 16
  %80 = mul i64 %79, 16
  store i64 %80, ptr %11, align 8, !tbaa !9
  %81 = load i64, ptr %6, align 8, !tbaa !9
  %82 = load i64, ptr %11, align 8, !tbaa !9
  %83 = icmp ne i64 %81, %82
  br i1 %83, label %84, label %109

84:                                               ; preds = %77
  %85 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  call void @Cipher(ptr noundef %85, ptr noundef %86)
  %87 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %87, ptr %7, align 8, !tbaa !9
  br label %88

88:                                               ; preds = %105, %84
  %89 = load i64, ptr %7, align 8, !tbaa !9
  %90 = load i64, ptr %6, align 8, !tbaa !9
  %91 = icmp ult i64 %89, %90
  br i1 %91, label %92, label %108

92:                                               ; preds = %88
  %93 = load i64, ptr %7, align 8, !tbaa !9
  %94 = urem i64 %93, 16
  %95 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 %94
  %96 = load i8, ptr %95, align 1, !tbaa !13
  %97 = zext i8 %96 to i32
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = load i64, ptr %7, align 8, !tbaa !9
  %100 = getelementptr inbounds i8, ptr %98, i64 %99
  %101 = load i8, ptr %100, align 1, !tbaa !13
  %102 = zext i8 %101 to i32
  %103 = xor i32 %102, %97
  %104 = trunc i32 %103 to i8
  store i8 %104, ptr %100, align 1, !tbaa !13
  br label %105

105:                                              ; preds = %92
  %106 = load i64, ptr %7, align 8, !tbaa !9
  %107 = add i64 %106, 1
  store i64 %107, ptr %7, align 8, !tbaa !9
  br label %88, !llvm.loop !16

108:                                              ; preds = %88
  br label %109

109:                                              ; preds = %108, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret void
}

attributes #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 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!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"

@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

; Function Attrs: nounwind uwtable
declare hidden void @Cipher(ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
declare hidden void @XorBlock(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local void @AES_CTR_xcrypt_buffer(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #4 {
  %4 = alloca [16 x i8], align 16
  %5 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %6 = getelementptr inbounds i8, ptr %0, i64 240
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(12) %4, ptr noundef nonnull align 1 dereferenceable(12) %6, i64 12, i1 false)
  %7 = getelementptr inbounds i8, ptr %4, i64 12
  %8 = getelementptr inbounds i8, ptr %4, i64 13
  %9 = getelementptr inbounds i8, ptr %4, i64 14
  %10 = getelementptr inbounds i8, ptr %4, i64 15
  store <4 x i8> <i8 0, i8 0, i8 0, i8 1>, ptr %7, align 4, !tbaa !5
  %11 = lshr i64 %2, 4
  %.not37 = icmp ult i64 %2, 16
  br i1 %.not37, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3, %18
  %.033 = phi i64 [ %26, %18 ], [ 0, %3 ]
  %.02732 = phi i32 [ %14, %18 ], [ 1, %3 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %4, i64 16, i1 false)
  call void @Cipher(ptr noundef nonnull %5, ptr noundef %0)
  %12 = shl nuw i64 %.033, 4
  %13 = getelementptr inbounds i8, ptr %1, i64 %12
  call void @XorBlock(ptr noundef %13, ptr noundef nonnull %5)
  %14 = add i32 %.02732, 1
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %18

16:                                               ; preds = %.lr.ph
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  call void @exit(i32 noundef 1) #7
  unreachable

18:                                               ; preds = %.lr.ph
  %19 = lshr i32 %14, 24
  %20 = trunc nuw i32 %19 to i8
  store i8 %20, ptr %7, align 4, !tbaa !5
  %21 = lshr i32 %14, 16
  %22 = trunc i32 %21 to i8
  store i8 %22, ptr %8, align 1, !tbaa !5
  %23 = lshr i32 %14, 8
  %24 = trunc i32 %23 to i8
  store i8 %24, ptr %9, align 2, !tbaa !5
  %25 = trunc i32 %14 to i8
  store i8 %25, ptr %10, align 1, !tbaa !5
  %26 = add nuw nsw i64 %.033, 1
  %exitcond.not = icmp eq i64 %26, %11
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

._crit_edge:                                      ; preds = %18, %3
  %27 = and i64 %2, -16
  %.not = icmp eq i64 %27, %2
  br i1 %.not, label %.loopexit, label %iter.check

iter.check:                                       ; preds = %._crit_edge
  call void @Cipher(ptr noundef nonnull %4, ptr noundef %0)
  %28 = or disjoint i64 %27, 1
  %umax38 = call i64 @llvm.umax.i64(i64 %2, i64 %28)
  %29 = sub i64 %umax38, %27
  %min.iters.check = icmp ult i64 %29, 8
  br i1 %min.iters.check, label %.lr.ph36.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %iter.check
  %30 = or disjoint i64 %27, 1
  %umax = call i64 @llvm.umax.i64(i64 %2, i64 %30)
  %31 = sub i64 %27, %umax
  %32 = icmp ult i64 %31, -16
  br i1 %32, label %.lr.ph36.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %vector.scevcheck
  %min.iters.check39 = icmp ult i64 %29, 32
  br i1 %min.iters.check39, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %29, -32
  %33 = getelementptr inbounds i8, ptr %4, i64 16
  %wide.load = load <16 x i8>, ptr %4, align 16, !tbaa !5
  %wide.load40 = load <16 x i8>, ptr %33, align 16, !tbaa !5
  %34 = getelementptr i8, ptr %1, i64 %27
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %35 = getelementptr i8, ptr %34, i64 %index
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %wide.load41 = load <16 x i8>, ptr %35, align 1, !tbaa !5
  %wide.load42 = load <16 x i8>, ptr %36, align 1, !tbaa !5
  %37 = xor <16 x i8> %wide.load41, %wide.load
  %38 = xor <16 x i8> %wide.load42, %wide.load40
  store <16 x i8> %37, ptr %35, align 1, !tbaa !5
  store <16 x i8> %38, ptr %36, align 1, !tbaa !5
  %index.next = add nuw i64 %index, 32
  %39 = icmp eq i64 %index.next, %n.vec
  br i1 %39, label %middle.block, label %vector.body, !llvm.loop !10

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %29, %n.vec
  br i1 %cmp.n, label %.loopexit, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end45 = add i64 %27, %n.vec
  %n.vec.remaining = and i64 %29, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph36.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.mod.vf43 = and i64 %umax38, 7
  %n.vec44 = sub i64 %29, %n.mod.vf43
  %ind.end = add i64 %27, %n.vec44
  %40 = getelementptr i8, ptr %1, i64 %27
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index46 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next50, %vec.epilog.vector.body ]
  %41 = and i64 %index46, 8
  %42 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 %41
  %wide.load48 = load <8 x i8>, ptr %42, align 8, !tbaa !5
  %43 = getelementptr i8, ptr %40, i64 %index46
  %wide.load49 = load <8 x i8>, ptr %43, align 1, !tbaa !5
  %44 = xor <8 x i8> %wide.load49, %wide.load48
  store <8 x i8> %44, ptr %43, align 1, !tbaa !5
  %index.next50 = add nuw i64 %index46, 8
  %45 = icmp eq i64 %index.next50, %n.vec44
  br i1 %45, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !13

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n51 = icmp eq i64 %n.mod.vf43, 0
  br i1 %cmp.n51, label %.loopexit, label %.lr.ph36.preheader

.lr.ph36.preheader:                               ; preds = %vec.epilog.middle.block, %vector.scevcheck, %iter.check, %vec.epilog.iter.check
  %.134.ph = phi i64 [ %27, %iter.check ], [ %27, %vector.scevcheck ], [ %ind.end45, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  br label %.lr.ph36

.lr.ph36:                                         ; preds = %.lr.ph36.preheader, %.lr.ph36
  %.134 = phi i64 [ %52, %.lr.ph36 ], [ %.134.ph, %.lr.ph36.preheader ]
  %46 = and i64 %.134, 15
  %47 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 %46
  %48 = load i8, ptr %47, align 1, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %1, i64 %.134
  %50 = load i8, ptr %49, align 1, !tbaa !5
  %51 = xor i8 %50, %48
  store i8 %51, ptr %49, align 1, !tbaa !5
  %52 = add nuw i64 %.134, 1
  %53 = icmp ult i64 %52, %2
  br i1 %53, label %.lr.ph36, label %.loopexit, !llvm.loop !14

.loopexit:                                        ; preds = %.lr.ph36, %middle.block, %vec.epilog.middle.block, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #5

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9, !11, !12}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !9, !11, !12}
!14 = distinct !{!14, !9, !11}


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