; LLVM IR from dynexcoin/Dynex :: src/crypto (keccak)

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

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

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @keccak(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca [25 x i64], align 16
  %10 = alloca [144 x i8], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 200, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 144, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 136, ptr %14, align 4, !tbaa !9
  %15 = load i32, ptr %8, align 4, !tbaa !9
  %16 = sext i32 %15 to i64
  %17 = icmp eq i64 200, %16
  br i1 %17, label %18, label %19

18:                                               ; preds = %4
  br label %23

19:                                               ; preds = %4
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = mul nsw i32 2, %20
  %22 = sub nsw i32 200, %21
  br label %23

23:                                               ; preds = %19, %18
  %24 = phi i32 [ 136, %18 ], [ %22, %19 ]
  store i32 %24, ptr %12, align 4, !tbaa !9
  %25 = load i32, ptr %12, align 4, !tbaa !9
  %26 = sdiv i32 %25, 8
  store i32 %26, ptr %13, align 4, !tbaa !9
  %27 = getelementptr inbounds [25 x i64], ptr %9, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %27, i8 0, i64 200, i1 false)
  br label %28

28:                                               ; preds = %53, %23
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = load i32, ptr %12, align 4, !tbaa !9
  %31 = icmp sge i32 %29, %30
  br i1 %31, label %32, label %61

32:                                               ; preds = %28
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %48, %32
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %37, label %51

37:                                               ; preds = %33
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = load i32, ptr %11, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i64, ptr %38, i64 %40
  %42 = load i64, ptr %41, align 8, !tbaa !11
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [25 x i64], ptr %9, i64 0, i64 %44
  %46 = load i64, ptr %45, align 8, !tbaa !11
  %47 = xor i64 %46, %42
  store i64 %47, ptr %45, align 8, !tbaa !11
  br label %48

48:                                               ; preds = %37
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %11, align 4, !tbaa !9
  br label %33, !llvm.loop !13

51:                                               ; preds = %33
  %52 = getelementptr inbounds [25 x i64], ptr %9, i64 0, i64 0
  call void @keccakf(ptr noundef %52, i32 noundef 24)
  br label %53

53:                                               ; preds = %51
  %54 = load i32, ptr %12, align 4, !tbaa !9
  %55 = load i32, ptr %6, align 4, !tbaa !9
  %56 = sub nsw i32 %55, %54
  store i32 %56, ptr %6, align 4, !tbaa !9
  %57 = load i32, ptr %12, align 4, !tbaa !9
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = sext i32 %57 to i64
  %60 = getelementptr inbounds i8, ptr %58, i64 %59
  store ptr %60, ptr %5, align 8, !tbaa !5
  br label %28, !llvm.loop !15

61:                                               ; preds = %28
  %62 = load i32, ptr %6, align 4, !tbaa !9
  %63 = icmp sgt i32 %62, 0
  br i1 %63, label %64, label %69

64:                                               ; preds = %61
  %65 = getelementptr inbounds [144 x i8], ptr %10, i64 0, i64 0
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %65, ptr align 1 %66, i64 %68, i1 false)
  br label %69

69:                                               ; preds = %64, %61
  %70 = load i32, ptr %6, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %6, align 4, !tbaa !9
  %72 = sext i32 %70 to i64
  %73 = getelementptr inbounds [144 x i8], ptr %10, i64 0, i64 %72
  store i8 1, ptr %73, align 1, !tbaa !16
  %74 = getelementptr inbounds [144 x i8], ptr %10, i64 0, i64 0
  %75 = load i32, ptr %6, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i8, ptr %74, i64 %76
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = load i32, ptr %6, align 4, !tbaa !9
  %80 = sub nsw i32 %78, %79
  %81 = sext i32 %80 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %77, i8 0, i64 %81, i1 false)
  %82 = load i32, ptr %12, align 4, !tbaa !9
  %83 = sub nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [144 x i8], ptr %10, i64 0, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !16
  %87 = zext i8 %86 to i32
  %88 = or i32 %87, 128
  %89 = trunc i32 %88 to i8
  store i8 %89, ptr %85, align 1, !tbaa !16
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %105, %69
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %94, label %108

94:                                               ; preds = %90
  %95 = getelementptr inbounds [144 x i8], ptr %10, i64 0, i64 0
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i64, ptr %95, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !11
  %100 = load i32, ptr %11, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [25 x i64], ptr %9, i64 0, i64 %101
  %103 = load i64, ptr %102, align 8, !tbaa !11
  %104 = xor i64 %103, %99
  store i64 %104, ptr %102, align 8, !tbaa !11
  br label %105

105:                                              ; preds = %94
  %106 = load i32, ptr %11, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %11, align 4, !tbaa !9
  br label %90, !llvm.loop !17

108:                                              ; preds = %90
  %109 = getelementptr inbounds [25 x i64], ptr %9, i64 0, i64 0
  call void @keccakf(ptr noundef %109, i32 noundef 24)
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds [25 x i64], ptr %9, i64 0, i64 0
  %112 = load i32, ptr %8, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %110, ptr align 16 %111, i64 %113, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 144, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 200, ptr %9) #4
  ret i32 0
}

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

; 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) #3

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: write) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !14}


; 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: nounwind uwtable
declare dso_local void @keccakf(ptr noundef, i32 noundef) local_unnamed_addr #0

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @keccak(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef writeonly %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = alloca [25 x i64], align 16
  %6 = alloca [144 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %6) #4
  %7 = icmp eq i32 %3, 200
  %8 = shl nsw i32 %3, 1
  %9 = sub nsw i32 200, %8
  %10 = select i1 %7, i32 136, i32 %9
  %11 = sdiv i32 %10, 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(200) %5, i8 0, i64 200, i1 false)
  %.not34 = icmp sgt i32 %10, %1
  br i1 %.not34, label %._crit_edge37, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %4
  %12 = icmp sgt i32 %10, 7
  %13 = sext i32 %10 to i64
  br i1 %12, label %.preheader.us.preheader, label %.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count = zext nneg i32 %11 to i64
  %min.iters.check = icmp ult i32 %11, 4
  %n.vec = and i64 %wide.trip.count, 268435452
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.036.us = phi ptr [ %27, %._crit_edge.us ], [ %0, %.preheader.us.preheader ]
  %.02935.us = phi i32 [ %26, %._crit_edge.us ], [ %1, %.preheader.us.preheader ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader.us ]
  %14 = getelementptr inbounds i64, ptr %.036.us, i64 %index
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  %wide.load = load <2 x i64>, ptr %14, align 8, !tbaa !5
  %wide.load59 = load <2 x i64>, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds [25 x i64], ptr %5, i64 0, i64 %index
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %wide.load60 = load <2 x i64>, ptr %16, align 16, !tbaa !5
  %wide.load61 = load <2 x i64>, ptr %17, align 16, !tbaa !5
  %18 = xor <2 x i64> %wide.load60, %wide.load
  %19 = xor <2 x i64> %wide.load61, %wide.load59
  store <2 x i64> %18, ptr %16, align 16, !tbaa !5
  store <2 x i64> %19, ptr %17, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !9

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

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader.us
  %indvars.iv.ph = phi i64 [ 0, %.preheader.us ], [ %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 i64, ptr %.036.us, i64 %indvars.iv
  %22 = load i64, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds [25 x i64], ptr %5, i64 0, i64 %indvars.iv
  %24 = load i64, ptr %23, align 8, !tbaa !5
  %25 = xor i64 %24, %22
  store i64 %25, ptr %23, align 8, !tbaa !5
  %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 %._crit_edge.us, label %scalar.ph, !llvm.loop !13

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  call void @keccakf(ptr noundef nonnull %5, i32 noundef 24)
  %26 = sub nsw i32 %.02935.us, %10
  %27 = getelementptr inbounds i8, ptr %.036.us, i64 %13
  %.not.us = icmp slt i32 %26, %10
  br i1 %.not.us, label %._crit_edge37, label %.preheader.us, !llvm.loop !14

.preheader:                                       ; preds = %.preheader.lr.ph, %.preheader
  %.036 = phi ptr [ %29, %.preheader ], [ %0, %.preheader.lr.ph ]
  %.02935 = phi i32 [ %28, %.preheader ], [ %1, %.preheader.lr.ph ]
  call void @keccakf(ptr noundef nonnull %5, i32 noundef 24)
  %28 = sub nsw i32 %.02935, %10
  %29 = getelementptr inbounds i8, ptr %.036, i64 %13
  %.not = icmp slt i32 %28, %10
  br i1 %.not, label %._crit_edge37, label %.preheader, !llvm.loop !14

._crit_edge37:                                    ; preds = %.preheader, %._crit_edge.us, %4
  %.029.lcssa = phi i32 [ %1, %4 ], [ %26, %._crit_edge.us ], [ %28, %.preheader ]
  %.0.lcssa = phi ptr [ %0, %4 ], [ %27, %._crit_edge.us ], [ %29, %.preheader ]
  %30 = icmp sgt i32 %.029.lcssa, 0
  br i1 %30, label %31, label %33

31:                                               ; preds = %._crit_edge37
  %32 = zext nneg i32 %.029.lcssa to i64
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %6, ptr align 1 %.0.lcssa, i64 %32, i1 false)
  br label %33

33:                                               ; preds = %31, %._crit_edge37
  %34 = add nsw i32 %.029.lcssa, 1
  %35 = sext i32 %.029.lcssa to i64
  %36 = getelementptr inbounds [144 x i8], ptr %6, i64 0, i64 %35
  store i8 1, ptr %36, align 1, !tbaa !15
  %37 = sext i32 %34 to i64
  %38 = getelementptr inbounds i8, ptr %6, i64 %37
  %39 = sub nsw i32 %10, %34
  %40 = sext i32 %39 to i64
  call void @llvm.memset.p0.i64(ptr nonnull align 1 %38, i8 0, i64 %40, i1 false)
  %41 = add nsw i32 %10, -1
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [144 x i8], ptr %6, i64 0, i64 %42
  %44 = load i8, ptr %43, align 1, !tbaa !15
  %45 = or i8 %44, -128
  store i8 %45, ptr %43, align 1, !tbaa !15
  %46 = icmp sgt i32 %10, 7
  br i1 %46, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %33
  %wide.trip.count49 = zext nneg i32 %11 to i64
  %min.iters.check64 = icmp ult i32 %11, 4
  br i1 %min.iters.check64, label %.lr.ph.preheader77, label %vector.ph65

vector.ph65:                                      ; preds = %.lr.ph.preheader
  %n.vec67 = and i64 %wide.trip.count49, 268435452
  br label %vector.body69

vector.body69:                                    ; preds = %vector.body69, %vector.ph65
  %index70 = phi i64 [ 0, %vector.ph65 ], [ %index.next75, %vector.body69 ]
  %47 = getelementptr inbounds i64, ptr %6, i64 %index70
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  %wide.load71 = load <2 x i64>, ptr %47, align 16, !tbaa !5
  %wide.load72 = load <2 x i64>, ptr %48, align 16, !tbaa !5
  %49 = getelementptr inbounds [25 x i64], ptr %5, i64 0, i64 %index70
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %wide.load73 = load <2 x i64>, ptr %49, align 16, !tbaa !5
  %wide.load74 = load <2 x i64>, ptr %50, align 16, !tbaa !5
  %51 = xor <2 x i64> %wide.load73, %wide.load71
  %52 = xor <2 x i64> %wide.load74, %wide.load72
  store <2 x i64> %51, ptr %49, align 16, !tbaa !5
  store <2 x i64> %52, ptr %50, align 16, !tbaa !5
  %index.next75 = add nuw i64 %index70, 4
  %53 = icmp eq i64 %index.next75, %n.vec67
  br i1 %53, label %middle.block62, label %vector.body69, !llvm.loop !16

middle.block62:                                   ; preds = %vector.body69
  %cmp.n76 = icmp eq i64 %n.vec67, %wide.trip.count49
  br i1 %cmp.n76, label %._crit_edge, label %.lr.ph.preheader77

.lr.ph.preheader77:                               ; preds = %middle.block62, %.lr.ph.preheader
  %indvars.iv46.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec67, %middle.block62 ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader77, %.lr.ph
  %indvars.iv46 = phi i64 [ %indvars.iv.next47, %.lr.ph ], [ %indvars.iv46.ph, %.lr.ph.preheader77 ]
  %54 = getelementptr inbounds i64, ptr %6, i64 %indvars.iv46
  %55 = load i64, ptr %54, align 8, !tbaa !5
  %56 = getelementptr inbounds [25 x i64], ptr %5, i64 0, i64 %indvars.iv46
  %57 = load i64, ptr %56, align 8, !tbaa !5
  %58 = xor i64 %57, %55
  store i64 %58, ptr %56, align 8, !tbaa !5
  %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
  %exitcond50.not = icmp eq i64 %indvars.iv.next47, %wide.trip.count49
  br i1 %exitcond50.not, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph, %middle.block62, %33
  %59 = sext i32 %3 to i64
  call void @keccakf(ptr noundef nonnull %5, i32 noundef 24)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr nonnull align 16 %5, i64 %59, i1 false)
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %5) #4
  ret i32 0
}

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

; 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) #3

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !10, !11, !12}
!17 = distinct !{!17, !10, !12, !11}


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