; LLVM IR from rweather/lightweight-crypto :: src/combined (knot-hash)

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

%union.knot256_state_t = type { [4 x i64] }

; Function Attrs: nounwind uwtable
define dso_local i32 @knot_hash_256_256(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca %union.knot256_state_t, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  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 32, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %15 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 32, i1 false)
  br label %16

16:                                               ; preds = %41, %3
  %17 = load i64, ptr %6, align 8, !tbaa !9
  %18 = icmp uge i64 %17, 4
  br i1 %18, label %19, label %46

19:                                               ; preds = %16
  br label %20

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %21 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  store ptr %21, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %22, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 4, ptr %11, align 4, !tbaa !11
  br label %23

23:                                               ; preds = %26, %20
  %24 = load i32, ptr %11, align 4, !tbaa !11
  %25 = icmp ugt i32 %24, 0
  br i1 %25, label %26, label %39

26:                                               ; preds = %23
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i32 1
  store ptr %28, ptr %10, align 8, !tbaa !5
  %29 = load i8, ptr %27, align 1, !tbaa !13
  %30 = zext i8 %29 to i32
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i32 1
  store ptr %32, ptr %9, align 8, !tbaa !5
  %33 = load i8, ptr %31, align 1, !tbaa !13
  %34 = zext i8 %33 to i32
  %35 = xor i32 %34, %30
  %36 = trunc i32 %35 to i8
  store i8 %36, ptr %31, align 1, !tbaa !13
  %37 = load i32, ptr %11, align 4, !tbaa !11
  %38 = add i32 %37, -1
  store i32 %38, ptr %11, align 4, !tbaa !11
  br label %23, !llvm.loop !14

39:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, 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
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  call void @knot256_permute_7(ptr noundef %7, i8 noundef zeroext 68)
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 4
  store ptr %43, ptr %5, align 8, !tbaa !5
  %44 = load i64, ptr %6, align 8, !tbaa !9
  %45 = sub i64 %44, 4
  store i64 %45, ptr %6, align 8, !tbaa !9
  br label %16, !llvm.loop !16

46:                                               ; preds = %16
  %47 = load i64, ptr %6, align 8, !tbaa !9
  %48 = trunc i64 %47 to i32
  store i32 %48, ptr %8, align 4, !tbaa !11
  br label %49

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %50 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  store ptr %50, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %51, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %52 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %52, ptr %14, align 4, !tbaa !11
  br label %53

53:                                               ; preds = %56, %49
  %54 = load i32, ptr %14, align 4, !tbaa !11
  %55 = icmp ugt i32 %54, 0
  br i1 %55, label %56, label %69

56:                                               ; preds = %53
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i32 1
  store ptr %58, ptr %13, align 8, !tbaa !5
  %59 = load i8, ptr %57, align 1, !tbaa !13
  %60 = zext i8 %59 to i32
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i32 1
  store ptr %62, ptr %12, align 8, !tbaa !5
  %63 = load i8, ptr %61, align 1, !tbaa !13
  %64 = zext i8 %63 to i32
  %65 = xor i32 %64, %60
  %66 = trunc i32 %65 to i8
  store i8 %66, ptr %61, align 1, !tbaa !13
  %67 = load i32, ptr %14, align 4, !tbaa !11
  %68 = add i32 %67, -1
  store i32 %68, ptr %14, align 4, !tbaa !11
  br label %53, !llvm.loop !17

69:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %8, align 4, !tbaa !11
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 %73
  %75 = load i8, ptr %74, align 1, !tbaa !13
  %76 = zext i8 %75 to i32
  %77 = xor i32 %76, 1
  %78 = trunc i32 %77 to i8
  store i8 %78, ptr %74, align 1, !tbaa !13
  call void @knot256_permute_7(ptr noundef %7, i8 noundef zeroext 68)
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %79, ptr align 8 %80, i64 16, i1 false)
  call void @knot256_permute_7(ptr noundef %7, i8 noundef zeroext 68)
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 16
  %83 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %82, ptr align 8 %83, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  ret i32 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

declare void @knot256_permute_7(ptr noundef, i8 noundef zeroext) #3

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

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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long 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}
!17 = distinct !{!17, !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"

%union.knot256_state_t = type { [4 x i64] }

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @knot_hash_256_256(ptr nocapture noundef writeonly %0, ptr nocapture noundef readonly %1, i64 noundef %2) local_unnamed_addr #0 {
  %4 = alloca %union.knot256_state_t, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %4, i8 0, i64 32, i1 false)
  %5 = icmp ugt i64 %2, 3
  br i1 %5, label %.preheader, label %._crit_edge

.preheader:                                       ; preds = %3, %.preheader
  %.02229 = phi ptr [ %9, %.preheader ], [ %1, %3 ]
  %.02328 = phi i64 [ %10, %.preheader ], [ %2, %3 ]
  %6 = load <4 x i8>, ptr %.02229, align 1, !tbaa !5
  %7 = load <4 x i8>, ptr %4, align 8, !tbaa !5
  %8 = xor <4 x i8> %7, %6
  store <4 x i8> %8, ptr %4, align 8, !tbaa !5
  call void @knot256_permute_7(ptr noundef nonnull %4, i8 noundef zeroext 68) #5
  %9 = getelementptr inbounds i8, ptr %.02229, i64 4
  %10 = add i64 %.02328, -4
  %11 = icmp ugt i64 %10, 3
  br i1 %11, label %.preheader, label %._crit_edge, !llvm.loop !8

._crit_edge:                                      ; preds = %.preheader, %3
  %.023.lcssa = phi i64 [ %2, %3 ], [ %10, %.preheader ]
  %.022.lcssa = phi ptr [ %1, %3 ], [ %9, %.preheader ]
  %.not31 = icmp eq i64 %.023.lcssa, 0
  br i1 %.not31, label %._crit_edge36, label %iter.check

iter.check:                                       ; preds = %._crit_edge
  %12 = trunc nuw i64 %.023.lcssa to i32
  %13 = add nuw nsw i64 %.023.lcssa, 4294967295
  %14 = and i64 %13, 4294967295
  %15 = add nuw nsw i64 %14, 1
  %min.iters.check = icmp ult i64 %14, 7
  br i1 %min.iters.check, label %.lr.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %iter.check
  %16 = add nuw nsw i64 %.023.lcssa, 4294967295
  %17 = and i64 %16, 4294967295
  %18 = add nuw nsw i64 %17, 1
  %scevgep = getelementptr i8, ptr %4, i64 %18
  %scevgep40 = getelementptr i8, ptr %.022.lcssa, i64 %18
  %bound0 = icmp ult ptr %4, %scevgep40
  %bound1 = icmp ult ptr %.022.lcssa, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %vector.memcheck
  %min.iters.check41 = icmp ult i64 %14, 31
  br i1 %min.iters.check41, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %15, 8589934560
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %next.gep = getelementptr i8, ptr %.022.lcssa, i64 %index
  %next.gep43 = getelementptr i8, ptr %4, i64 %index
  %19 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load = load <16 x i8>, ptr %next.gep, align 1, !tbaa !5, !alias.scope !10
  %wide.load45 = load <16 x i8>, ptr %19, align 1, !tbaa !5, !alias.scope !10
  %20 = getelementptr i8, ptr %next.gep43, i64 16
  %wide.load46 = load <16 x i8>, ptr %next.gep43, align 8, !tbaa !5, !alias.scope !13, !noalias !10
  %wide.load47 = load <16 x i8>, ptr %20, align 8, !tbaa !5, !alias.scope !13, !noalias !10
  %21 = xor <16 x i8> %wide.load46, %wide.load
  %22 = xor <16 x i8> %wide.load47, %wide.load45
  store <16 x i8> %21, ptr %next.gep43, align 8, !tbaa !5, !alias.scope !13, !noalias !10
  store <16 x i8> %22, ptr %20, align 8, !tbaa !5, !alias.scope !13, !noalias !10
  %index.next = add nuw i64 %index, 32
  %23 = icmp eq i64 %index.next, %n.vec
  br i1 %23, label %middle.block, label %vector.body, !llvm.loop !15

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

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end56 = getelementptr i8, ptr %4, i64 %n.vec
  %ind.end53 = getelementptr i8, ptr %.022.lcssa, i64 %n.vec
  %.cast50 = trunc i64 %n.vec to i32
  %ind.end51 = sub i32 %12, %.cast50
  %n.vec.remaining = and i64 %15, 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.vec49 = and i64 %15, 8589934584
  %.cast = trunc i64 %n.vec49 to i32
  %ind.end = sub i32 %12, %.cast
  %ind.end52 = getelementptr i8, ptr %.022.lcssa, i64 %n.vec49
  %ind.end55 = getelementptr i8, ptr %4, i64 %n.vec49
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index58 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next63, %vec.epilog.vector.body ]
  %next.gep59 = getelementptr i8, ptr %.022.lcssa, i64 %index58
  %next.gep60 = getelementptr i8, ptr %4, i64 %index58
  %wide.load61 = load <8 x i8>, ptr %next.gep59, align 1, !tbaa !5, !alias.scope !18
  %wide.load62 = load <8 x i8>, ptr %next.gep60, align 8, !tbaa !5, !alias.scope !21, !noalias !18
  %24 = xor <8 x i8> %wide.load62, %wide.load61
  store <8 x i8> %24, ptr %next.gep60, align 8, !tbaa !5, !alias.scope !21, !noalias !18
  %index.next63 = add nuw i64 %index58, 8
  %25 = icmp eq i64 %index.next63, %n.vec49
  br i1 %25, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !23

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n64 = icmp eq i64 %15, %n.vec49
  br i1 %cmp.n64, label %._crit_edge36, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %vector.memcheck, %iter.check, %vec.epilog.iter.check
  %.034.ph = phi i32 [ %12, %iter.check ], [ %12, %vector.memcheck ], [ %ind.end51, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  %.01733.ph = phi ptr [ %.022.lcssa, %iter.check ], [ %.022.lcssa, %vector.memcheck ], [ %ind.end53, %vec.epilog.iter.check ], [ %ind.end52, %vec.epilog.middle.block ]
  %.01832.ph = phi ptr [ %4, %iter.check ], [ %4, %vector.memcheck ], [ %ind.end56, %vec.epilog.iter.check ], [ %ind.end55, %vec.epilog.middle.block ]
  %26 = add nsw i32 %.034.ph, -1
  %xtraiter = and i32 %.034.ph, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %.034.prol = phi i32 [ %32, %.lr.ph.prol ], [ %.034.ph, %.lr.ph.preheader ]
  %.01733.prol = phi ptr [ %27, %.lr.ph.prol ], [ %.01733.ph, %.lr.ph.preheader ]
  %.01832.prol = phi ptr [ %29, %.lr.ph.prol ], [ %.01832.ph, %.lr.ph.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %27 = getelementptr inbounds i8, ptr %.01733.prol, i64 1
  %28 = load i8, ptr %.01733.prol, align 1, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %.01832.prol, i64 1
  %30 = load i8, ptr %.01832.prol, align 1, !tbaa !5
  %31 = xor i8 %30, %28
  store i8 %31, ptr %.01832.prol, align 1, !tbaa !5
  %32 = add nsw i32 %.034.prol, -1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !24

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.034.unr = phi i32 [ %.034.ph, %.lr.ph.preheader ], [ %32, %.lr.ph.prol ]
  %.01733.unr = phi ptr [ %.01733.ph, %.lr.ph.preheader ], [ %27, %.lr.ph.prol ]
  %.01832.unr = phi ptr [ %.01832.ph, %.lr.ph.preheader ], [ %29, %.lr.ph.prol ]
  %33 = icmp ult i32 %26, 3
  br i1 %33, label %._crit_edge36, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.034 = phi i32 [ %54, %.lr.ph ], [ %.034.unr, %.lr.ph.prol.loopexit ]
  %.01733 = phi ptr [ %49, %.lr.ph ], [ %.01733.unr, %.lr.ph.prol.loopexit ]
  %.01832 = phi ptr [ %51, %.lr.ph ], [ %.01832.unr, %.lr.ph.prol.loopexit ]
  %34 = getelementptr inbounds i8, ptr %.01733, i64 1
  %35 = load i8, ptr %.01733, align 1, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %.01832, i64 1
  %37 = load i8, ptr %.01832, align 1, !tbaa !5
  %38 = xor i8 %37, %35
  store i8 %38, ptr %.01832, align 1, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %.01733, i64 2
  %40 = load i8, ptr %34, align 1, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %.01832, i64 2
  %42 = load i8, ptr %36, align 1, !tbaa !5
  %43 = xor i8 %42, %40
  store i8 %43, ptr %36, align 1, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %.01733, i64 3
  %45 = load i8, ptr %39, align 1, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %.01832, i64 3
  %47 = load i8, ptr %41, align 1, !tbaa !5
  %48 = xor i8 %47, %45
  store i8 %48, ptr %41, align 1, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %.01733, i64 4
  %50 = load i8, ptr %44, align 1, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %.01832, i64 4
  %52 = load i8, ptr %46, align 1, !tbaa !5
  %53 = xor i8 %52, %50
  store i8 %53, ptr %46, align 1, !tbaa !5
  %54 = add nsw i32 %.034, -4
  %.not.3 = icmp eq i32 %54, 0
  br i1 %.not.3, label %._crit_edge36, label %.lr.ph, !llvm.loop !26

._crit_edge36:                                    ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %vec.epilog.middle.block, %._crit_edge
  %55 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 %.023.lcssa
  %56 = load i8, ptr %55, align 1, !tbaa !5
  %57 = xor i8 %56, 1
  store i8 %57, ptr %55, align 1, !tbaa !5
  call void @knot256_permute_7(ptr noundef nonnull %4, i8 noundef zeroext 68) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %4, i64 16, i1 false)
  call void @knot256_permute_7(ptr noundef nonnull %4, i8 noundef zeroext 68) #5
  %58 = getelementptr inbounds i8, ptr %0, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(16) %58, ptr noundef nonnull align 8 dereferenceable(16) %4, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  ret i32 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

declare void @knot256_permute_7(ptr noundef, i8 noundef zeroext) local_unnamed_addr #3

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11}
!11 = distinct !{!11, !12}
!12 = distinct !{!12, !"LVerDomain"}
!13 = !{!14}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !9, !16, !17}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = !{!19}
!19 = distinct !{!19, !20}
!20 = distinct !{!20, !"LVerDomain"}
!21 = !{!22}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !9, !16, !17}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.unroll.disable"}
!26 = distinct !{!26, !9, !16}


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