; LLVM IR from square/subzero :: core/external-crypto/modes/ltc (ltc_eax)

; 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.eax_state = type { [16 x i8], [1 x %struct.ctr_ctx], [1 x %struct.omac_state], [1 x %struct.omac_state] }
%struct.ctr_ctx = type { [1 x %struct.aes_crypt_ctx], [16 x i8], [16 x i8], i32, i32, [8 x i8] }
%struct.aes_crypt_ctx = type { [60 x i32], %union.aes_inf, [12 x i8] }
%union.aes_inf = type { i32 }
%struct.omac_state = type { [1 x %struct.aes_crypt_ctx], [16 x i8], [16 x i8], [2 x [16 x i8]], i32, [12 x i8] }

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

declare i32 @omac_done(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @eax_done(ptr noundef %0, i64 noundef %1, ptr noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %12 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %12, ptr %8, align 8, !tbaa !5
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %3
  br label %84

15:                                               ; preds = %3
  %16 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %16, ptr %9, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %15
  br label %82

19:                                               ; preds = %15
  store i64 16, ptr %11, align 8, !tbaa !9
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.eax_state, ptr %21, i32 0, i32 3
  %23 = getelementptr inbounds [1 x %struct.omac_state], ptr %22, i64 0, i64 0
  %24 = call i32 @omac_done(ptr noundef %20, ptr noundef %11, ptr noundef %23)
  store i32 %24, ptr %7, align 4, !tbaa !11
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %27

26:                                               ; preds = %19
  br label %80

27:                                               ; preds = %19
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.eax_state, ptr %29, i32 0, i32 2
  %31 = getelementptr inbounds [1 x %struct.omac_state], ptr %30, i64 0, i64 0
  %32 = call i32 @omac_done(ptr noundef %28, ptr noundef %11, ptr noundef %31)
  store i32 %32, ptr %7, align 4, !tbaa !11
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %27
  br label %80

35:                                               ; preds = %27
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.eax_state, ptr %36, i32 0, i32 1
  %38 = getelementptr inbounds [1 x %struct.ctr_ctx], ptr %37, i64 0, i64 0
  %39 = call i32 @ctr_done(ptr noundef %38)
  store i32 %39, ptr %7, align 4, !tbaa !11
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %35
  br label %80

42:                                               ; preds = %35
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %43

43:                                               ; preds = %76, %42
  %44 = load i64, ptr %10, align 8, !tbaa !9
  %45 = load i64, ptr %11, align 8, !tbaa !9
  %46 = icmp ult i64 %44, %45
  br i1 %46, label %47, label %51

47:                                               ; preds = %43
  %48 = load i64, ptr %10, align 8, !tbaa !9
  %49 = load i64, ptr %5, align 8, !tbaa !9
  %50 = icmp ult i64 %48, %49
  br label %51

51:                                               ; preds = %47, %43
  %52 = phi i1 [ false, %43 ], [ %50, %47 ]
  br i1 %52, label %53, label %79

53:                                               ; preds = %51
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.eax_state, ptr %54, i32 0, i32 0
  %56 = load i64, ptr %10, align 8, !tbaa !9
  %57 = getelementptr inbounds [16 x i8], ptr %55, i64 0, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !13
  %59 = zext i8 %58 to i32
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = load i64, ptr %10, align 8, !tbaa !9
  %62 = getelementptr inbounds i8, ptr %60, i64 %61
  %63 = load i8, ptr %62, align 1, !tbaa !13
  %64 = zext i8 %63 to i32
  %65 = xor i32 %59, %64
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = load i64, ptr %10, align 8, !tbaa !9
  %68 = getelementptr inbounds i8, ptr %66, i64 %67
  %69 = load i8, ptr %68, align 1, !tbaa !13
  %70 = zext i8 %69 to i32
  %71 = xor i32 %65, %70
  %72 = trunc i32 %71 to i8
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = load i64, ptr %10, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %73, i64 %74
  store i8 %72, ptr %75, align 1, !tbaa !13
  br label %76

76:                                               ; preds = %53
  %77 = load i64, ptr %10, align 8, !tbaa !9
  %78 = add i64 %77, 1
  store i64 %78, ptr %10, align 8, !tbaa !9
  br label %43, !llvm.loop !14

79:                                               ; preds = %51
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %80

80:                                               ; preds = %79, %41, %34, %26
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %81) #5
  br label %82

82:                                               ; preds = %80, %18
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %83) #5
  br label %84

84:                                               ; preds = %82, %14
  %85 = load i32, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i32 %85
}

declare i32 @ctr_done(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(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 #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 "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 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 = { nounwind allocsize(0) }

!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"}


; 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"

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

declare i32 @omac_done(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture 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) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @eax_done(ptr nocapture noundef writeonly %0, i64 noundef %1, ptr noundef %2) local_unnamed_addr #4 {
  %4 = ptrtoint ptr %2 to i64
  %5 = ptrtoint ptr %0 to i64
  %6 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %7 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %8 = icmp eq ptr %7, null
  br i1 %8, label %75, label %9

9:                                                ; preds = %3
  %10 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %11 = icmp eq ptr %10, null
  br i1 %11, label %74, label %12

12:                                               ; preds = %9
  store i64 16, ptr %6, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %2, i64 656
  %14 = call i32 @omac_done(ptr noundef nonnull %10, ptr noundef nonnull %6, ptr noundef nonnull %13) #6
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %15, label %.loopexit

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %2, i64 320
  %17 = call i32 @omac_done(ptr noundef nonnull %7, ptr noundef nonnull %6, ptr noundef nonnull %16) #6
  %.not25 = icmp eq i32 %17, 0
  br i1 %.not25, label %18, label %.loopexit

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %2, i64 16
  %20 = call i32 @ctr_done(ptr noundef nonnull %19) #6
  %.not26 = icmp eq i32 %20, 0
  br i1 %.not26, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %18
  %21 = load i64, ptr %6, align 8, !tbaa !5
  %invariant.umin = call i64 @llvm.umin.i64(i64 %1, i64 %21)
  %.not28 = icmp eq i64 %invariant.umin, 0
  br i1 %.not28, label %.loopexit, label %iter.check

iter.check:                                       ; preds = %.preheader
  %min.iters.check = icmp ult i64 %invariant.umin, 8
  %22 = sub i64 %5, %4
  %diff.check = icmp ult i64 %22, 32
  %or.cond = or i1 %min.iters.check, %diff.check
  br i1 %or.cond, label %.lr.ph.preheader, label %vector.main.loop.iter.check

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

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %invariant.umin, -32
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %23 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 %index
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %wide.load = load <16 x i8>, ptr %23, align 1, !tbaa !9
  %wide.load30 = load <16 x i8>, ptr %24, align 1, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %7, i64 %index
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %wide.load31 = load <16 x i8>, ptr %25, align 1, !tbaa !9
  %wide.load32 = load <16 x i8>, ptr %26, align 1, !tbaa !9
  %27 = xor <16 x i8> %wide.load31, %wide.load
  %28 = xor <16 x i8> %wide.load32, %wide.load30
  %29 = getelementptr inbounds i8, ptr %10, i64 %index
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %wide.load33 = load <16 x i8>, ptr %29, align 1, !tbaa !9
  %wide.load34 = load <16 x i8>, ptr %30, align 1, !tbaa !9
  %31 = xor <16 x i8> %27, %wide.load33
  %32 = xor <16 x i8> %28, %wide.load34
  %33 = getelementptr inbounds i8, ptr %0, i64 %index
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  store <16 x i8> %31, ptr %33, align 1, !tbaa !9
  store <16 x i8> %32, ptr %34, align 1, !tbaa !9
  %index.next = add nuw i64 %index, 32
  %35 = icmp eq i64 %index.next, %n.vec
  br i1 %35, label %middle.block, label %vector.body, !llvm.loop !10

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

vec.epilog.iter.check:                            ; preds = %middle.block
  %n.vec.remaining = and i64 %invariant.umin, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph.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.vec36 = and i64 %invariant.umin, -8
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index37 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next41, %vec.epilog.vector.body ]
  %36 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 %index37
  %wide.load38 = load <8 x i8>, ptr %36, align 1, !tbaa !9
  %37 = getelementptr inbounds i8, ptr %7, i64 %index37
  %wide.load39 = load <8 x i8>, ptr %37, align 1, !tbaa !9
  %38 = xor <8 x i8> %wide.load39, %wide.load38
  %39 = getelementptr inbounds i8, ptr %10, i64 %index37
  %wide.load40 = load <8 x i8>, ptr %39, align 1, !tbaa !9
  %40 = xor <8 x i8> %38, %wide.load40
  %41 = getelementptr inbounds i8, ptr %0, i64 %index37
  store <8 x i8> %40, ptr %41, align 1, !tbaa !9
  %index.next41 = add nuw i64 %index37, 8
  %42 = icmp eq i64 %index.next41, %n.vec36
  br i1 %42, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !14

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n42 = icmp eq i64 %invariant.umin, %n.vec36
  br i1 %cmp.n42, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %.027.ph = phi i64 [ 0, %iter.check ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec36, %vec.epilog.middle.block ]
  %.neg = or disjoint i64 %.027.ph, 1
  %xtraiter = and i64 %invariant.umin, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader
  %43 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 %.027.ph
  %44 = load i8, ptr %43, align 1, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %7, i64 %.027.ph
  %46 = load i8, ptr %45, align 1, !tbaa !9
  %47 = xor i8 %46, %44
  %48 = getelementptr inbounds i8, ptr %10, i64 %.027.ph
  %49 = load i8, ptr %48, align 1, !tbaa !9
  %50 = xor i8 %47, %49
  %51 = getelementptr inbounds i8, ptr %0, i64 %.027.ph
  store i8 %50, ptr %51, align 1, !tbaa !9
  %52 = or disjoint i64 %.027.ph, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.027.unr = phi i64 [ %.027.ph, %.lr.ph.preheader ], [ %52, %.lr.ph.prol ]
  %53 = icmp eq i64 %invariant.umin, %.neg
  br i1 %53, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.027 = phi i64 [ %73, %.lr.ph ], [ %.027.unr, %.lr.ph.prol.loopexit ]
  %54 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 %.027
  %55 = load i8, ptr %54, align 1, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %7, i64 %.027
  %57 = load i8, ptr %56, align 1, !tbaa !9
  %58 = xor i8 %57, %55
  %59 = getelementptr inbounds i8, ptr %10, i64 %.027
  %60 = load i8, ptr %59, align 1, !tbaa !9
  %61 = xor i8 %58, %60
  %62 = getelementptr inbounds i8, ptr %0, i64 %.027
  store i8 %61, ptr %62, align 1, !tbaa !9
  %63 = add nuw i64 %.027, 1
  %64 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 %63
  %65 = load i8, ptr %64, align 1, !tbaa !9
  %66 = getelementptr inbounds i8, ptr %7, i64 %63
  %67 = load i8, ptr %66, align 1, !tbaa !9
  %68 = xor i8 %67, %65
  %69 = getelementptr inbounds i8, ptr %10, i64 %63
  %70 = load i8, ptr %69, align 1, !tbaa !9
  %71 = xor i8 %68, %70
  %72 = getelementptr inbounds i8, ptr %0, i64 %63
  store i8 %71, ptr %72, align 1, !tbaa !9
  %73 = add nuw i64 %.027, 2
  %exitcond.not.1 = icmp eq i64 %73, %invariant.umin
  br i1 %exitcond.not.1, label %.loopexit, label %.lr.ph, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %vec.epilog.middle.block, %.preheader, %18, %15, %12
  %.019 = phi i32 [ %14, %12 ], [ %17, %15 ], [ %20, %18 ], [ 0, %.preheader ], [ 0, %vec.epilog.middle.block ], [ 0, %middle.block ], [ 0, %.lr.ph ], [ 0, %.lr.ph.prol.loopexit ]
  call void @free(ptr noundef nonnull %10) #6
  br label %74

74:                                               ; preds = %9, %.loopexit
  %.1 = phi i32 [ 1, %9 ], [ %.019, %.loopexit ]
  call void @free(ptr noundef nonnull %7) #6
  br label %75

75:                                               ; preds = %3, %74
  %.2 = phi i32 [ 1, %3 ], [ %.1, %74 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  ret i32 %.2
}

declare i32 @ctr_done(ptr noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nounwind allocsize(0) }

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11, !12, !13}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !11, !12, !13}
!15 = distinct !{!15, !11, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass