; LLVM IR from Lut1n/ImpGears :: src/ImpGears/Core/Noise.ll (ZN3imp16PermutationTable4initEijj)

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

%"class.imp::PermutationTable" = type <{ ptr, ptr, i32, i32, i8, [7 x i8] }>

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp16PermutationTable4initEijj(ptr noundef nonnull align 8 dereferenceable(25) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %14 = load ptr, ptr %5, align 8
  %15 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 4
  %16 = load i8, ptr %15, align 8, !tbaa !11, !range !14, !noundef !15
  %17 = trunc i8 %16 to i1
  br i1 %17, label %18, label %19

18:                                               ; preds = %4
  br label %109

19:                                               ; preds = %4
  %20 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !16
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %29

23:                                               ; preds = %19
  %24 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 1
  %25 = load ptr, ptr %24, align 8, !tbaa !16
  %26 = icmp eq ptr %25, null
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  call void @_ZdaPv(ptr noundef %25) #7
  br label %28

28:                                               ; preds = %27, %23
  br label %29

29:                                               ; preds = %28, %19
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = load i32, ptr %8, align 4, !tbaa !9
  %32 = mul i32 %30, %31
  %33 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 3
  store i32 %32, ptr %33, align 4, !tbaa !17
  %34 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 3
  %35 = load i32, ptr %34, align 4, !tbaa !17
  %36 = sext i32 %35 to i64
  %37 = call noalias noundef nonnull ptr @_Znam(i64 noundef %36) #8
  %38 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 1
  store ptr %37, ptr %38, align 8, !tbaa !16
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 2
  store i32 %39, ptr %40, align 8, !tbaa !18
  %41 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 2
  %42 = load i32, ptr %41, align 8, !tbaa !18
  call void @srand(i32 noundef %42) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %56, %29
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = icmp ult i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %59

48:                                               ; preds = %43
  %49 = load i32, ptr %9, align 4, !tbaa !9
  %50 = trunc i32 %49 to i8
  %51 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds i8, ptr %52, i64 %54
  store i8 %50, ptr %55, align 1, !tbaa !19
  br label %56

56:                                               ; preds = %48
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = add i32 %57, 1
  store i32 %58, ptr %9, align 4, !tbaa !9
  br label %43, !llvm.loop !20

59:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %80, %59
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = load i32, ptr %7, align 4, !tbaa !9
  %63 = icmp ult i32 %61, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %83

65:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %66 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %66, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %67 = call noundef double @_ZN3imp4RandEddd(double noundef 0.000000e+00, double noundef 1.000000e+00, double noundef 1.000000e-09)
  %68 = fmul double %67, 2.550000e+02
  %69 = fptosi double %68 to i32
  store i32 %69, ptr %12, align 4, !tbaa !9
  %70 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i8, ptr %71, i64 %73
  %75 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !16
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i8, ptr %76, i64 %78
  call void @_ZN3imp16PermutationTable4swapIhEEvPT_S3_(ptr noundef %74, ptr noundef %79)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %80

80:                                               ; preds = %65
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = add i32 %81, 1
  store i32 %82, ptr %10, align 4, !tbaa !9
  br label %60, !llvm.loop !22

83:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %104, %83
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = icmp ult i32 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %107

89:                                               ; preds = %84
  %90 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8, !tbaa !16
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds i8, ptr %91, i64 %93
  %95 = load i8, ptr %94, align 1, !tbaa !19
  %96 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !16
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = load i32, ptr %7, align 4, !tbaa !9
  %100 = mul i32 1, %99
  %101 = add i32 %98, %100
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds i8, ptr %97, i64 %102
  store i8 %95, ptr %103, align 1, !tbaa !19
  br label %104

104:                                              ; preds = %89
  %105 = load i32, ptr %13, align 4, !tbaa !9
  %106 = add i32 %105, 1
  store i32 %106, ptr %13, align 4, !tbaa !9
  br label %84, !llvm.loop !23

107:                                              ; preds = %88
  %108 = getelementptr inbounds %"class.imp::PermutationTable", ptr %14, i32 0, i32 4
  store i8 1, ptr %108, align 8, !tbaa !11
  br label %109

109:                                              ; preds = %107, %18
  ret void
}

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

; Function Attrs: nounwind
declare void @srand(i32 noundef) #3

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

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

declare noundef double @_ZN3imp4RandEddd(double noundef, double noundef, double noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp16PermutationTable4swapIhEEvPT_S3_(ptr noundef, ptr noundef) #6 align 2

attributes #0 = { mustprogress 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 = { nobuiltin 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 = { nobuiltin 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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 #6 = { mustprogress 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 #7 = { builtin nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 24}
!12 = !{!"_ZTSN3imp16PermutationTableE", !6, i64 8, !10, i64 16, !10, i64 20, !13, i64 24}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!12, !6, i64 8}
!17 = !{!12, !10, i64 20}
!18 = !{!12, !10, i64 16}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}


; 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 uwtable
define dso_local void @_ZN3imp16PermutationTable4initEijj(ptr nocapture noundef nonnull align 8 dereferenceable(25) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i8, ptr %5, align 8, !tbaa !5, !range !12, !noundef !13
  %7 = trunc nuw i8 %6 to i1
  br i1 %7, label %79, label %8

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %12, label %11

11:                                               ; preds = %8
  tail call void @_ZdaPv(ptr noundef nonnull %10) #6
  br label %12

12:                                               ; preds = %11, %8
  %13 = mul i32 %3, %2
  %14 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %13, ptr %14, align 4, !tbaa !15
  %15 = sext i32 %13 to i64
  %16 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %15) #7
  store ptr %16, ptr %9, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %1, ptr %17, align 8, !tbaa !16
  tail call void @srand(i32 noundef %1) #8
  %.not30 = icmp eq i32 %2, 0
  br i1 %.not30, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %12
  %wide.trip.count = zext i32 %2 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %18 = icmp ult i32 %2, 4
  br i1 %18, label %.preheader24.unr-lcssa, label %.lr.ph.preheader.new

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

.preheader24.unr-lcssa:                           ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader24, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader24.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.preheader24.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader24.unr-lcssa ]
  %19 = trunc i64 %indvars.iv.epil to i8
  %20 = load ptr, ptr %9, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %20, i64 %indvars.iv.epil
  store i8 %19, ptr %21, align 1, !tbaa !17
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader24, label %.lr.ph.epil, !llvm.loop !18

.preheader24:                                     ; preds = %.lr.ph.epil, %.preheader24.unr-lcssa
  br i1 %.not30, label %._crit_edge, label %.lr.ph27

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %22 = trunc i64 %indvars.iv to i8
  %23 = load ptr, ptr %9, align 8, !tbaa !14
  %24 = getelementptr inbounds i8, ptr %23, i64 %indvars.iv
  store i8 %22, ptr %24, align 1, !tbaa !17
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %25 = trunc i64 %indvars.iv.next to i8
  %26 = load ptr, ptr %9, align 8, !tbaa !14
  %27 = getelementptr inbounds i8, ptr %26, i64 %indvars.iv.next
  store i8 %25, ptr %27, align 1, !tbaa !17
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %28 = trunc i64 %indvars.iv.next.1 to i8
  %29 = load ptr, ptr %9, align 8, !tbaa !14
  %30 = getelementptr inbounds i8, ptr %29, i64 %indvars.iv.next.1
  store i8 %28, ptr %30, align 1, !tbaa !17
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %31 = trunc i64 %indvars.iv.next.2 to i8
  %32 = load ptr, ptr %9, align 8, !tbaa !14
  %33 = getelementptr inbounds i8, ptr %32, i64 %indvars.iv.next.2
  store i8 %31, ptr %33, align 1, !tbaa !17
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader24.unr-lcssa, label %.lr.ph, !llvm.loop !20

.lr.ph29.preheader:                               ; preds = %.lr.ph27
  %wide.trip.count38 = zext i32 %2 to i64
  %xtraiter40 = and i64 %wide.trip.count38, 3
  %34 = icmp ult i32 %2, 4
  br i1 %34, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph29.preheader.new

.lr.ph29.preheader.new:                           ; preds = %.lr.ph29.preheader
  %unroll_iter43 = and i64 %wide.trip.count38, 4294967292
  br label %.lr.ph29

.lr.ph27:                                         ; preds = %.preheader24, %.lr.ph27
  %.02126 = phi i32 [ %43, %.lr.ph27 ], [ 0, %.preheader24 ]
  %35 = tail call noundef double @_ZN3imp4RandEddd(double noundef 0.000000e+00, double noundef 1.000000e+00, double noundef 1.000000e-09)
  %36 = fmul double %35, 2.550000e+02
  %37 = fptosi double %36 to i32
  %38 = load ptr, ptr %9, align 8, !tbaa !14
  %39 = sext i32 %.02126 to i64
  %40 = getelementptr inbounds i8, ptr %38, i64 %39
  %41 = sext i32 %37 to i64
  %42 = getelementptr inbounds i8, ptr %38, i64 %41
  tail call void @_ZN3imp16PermutationTable4swapIhEEvPT_S3_(ptr noundef %40, ptr noundef %42)
  %43 = add nuw i32 %.02126, 1
  %exitcond34.not = icmp eq i32 %43, %2
  br i1 %exitcond34.not, label %.lr.ph29.preheader, label %.lr.ph27, !llvm.loop !22

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph29, %.lr.ph29.preheader
  %indvars.iv35.unr = phi i64 [ 0, %.lr.ph29.preheader ], [ %indvars.iv.next36.3, %.lr.ph29 ]
  %lcmp.mod42.not = icmp eq i64 %xtraiter40, 0
  br i1 %lcmp.mod42.not, label %._crit_edge, label %.lr.ph29.epil

.lr.ph29.epil:                                    ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph29.epil
  %indvars.iv35.epil = phi i64 [ %indvars.iv.next36.epil, %.lr.ph29.epil ], [ %indvars.iv35.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter41 = phi i64 [ %epil.iter41.next, %.lr.ph29.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %44 = load ptr, ptr %9, align 8, !tbaa !14
  %45 = getelementptr inbounds i8, ptr %44, i64 %indvars.iv35.epil
  %46 = load i8, ptr %45, align 1, !tbaa !17
  %47 = trunc nuw i64 %indvars.iv35.epil to i32
  %48 = add i32 %47, %2
  %49 = zext i32 %48 to i64
  %50 = getelementptr inbounds i8, ptr %44, i64 %49
  store i8 %46, ptr %50, align 1, !tbaa !17
  %indvars.iv.next36.epil = add nuw nsw i64 %indvars.iv35.epil, 1
  %epil.iter41.next = add i64 %epil.iter41, 1
  %epil.iter41.cmp.not = icmp eq i64 %epil.iter41.next, %xtraiter40
  br i1 %epil.iter41.cmp.not, label %._crit_edge, label %.lr.ph29.epil, !llvm.loop !23

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph29.epil, %12, %.preheader24
  store i8 1, ptr %5, align 8, !tbaa !5
  br label %79

.lr.ph29:                                         ; preds = %.lr.ph29, %.lr.ph29.preheader.new
  %indvars.iv35 = phi i64 [ 0, %.lr.ph29.preheader.new ], [ %indvars.iv.next36.3, %.lr.ph29 ]
  %niter44 = phi i64 [ 0, %.lr.ph29.preheader.new ], [ %niter44.next.3, %.lr.ph29 ]
  %51 = load ptr, ptr %9, align 8, !tbaa !14
  %52 = getelementptr inbounds i8, ptr %51, i64 %indvars.iv35
  %53 = load i8, ptr %52, align 1, !tbaa !17
  %54 = trunc nuw i64 %indvars.iv35 to i32
  %55 = add i32 %54, %2
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds i8, ptr %51, i64 %56
  store i8 %53, ptr %57, align 1, !tbaa !17
  %indvars.iv.next36 = or disjoint i64 %indvars.iv35, 1
  %58 = load ptr, ptr %9, align 8, !tbaa !14
  %59 = getelementptr inbounds i8, ptr %58, i64 %indvars.iv.next36
  %60 = load i8, ptr %59, align 1, !tbaa !17
  %61 = trunc nuw i64 %indvars.iv.next36 to i32
  %62 = add i32 %61, %2
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds i8, ptr %58, i64 %63
  store i8 %60, ptr %64, align 1, !tbaa !17
  %indvars.iv.next36.1 = or disjoint i64 %indvars.iv35, 2
  %65 = load ptr, ptr %9, align 8, !tbaa !14
  %66 = getelementptr inbounds i8, ptr %65, i64 %indvars.iv.next36.1
  %67 = load i8, ptr %66, align 1, !tbaa !17
  %68 = trunc nuw i64 %indvars.iv.next36.1 to i32
  %69 = add i32 %68, %2
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds i8, ptr %65, i64 %70
  store i8 %67, ptr %71, align 1, !tbaa !17
  %indvars.iv.next36.2 = or disjoint i64 %indvars.iv35, 3
  %72 = load ptr, ptr %9, align 8, !tbaa !14
  %73 = getelementptr inbounds i8, ptr %72, i64 %indvars.iv.next36.2
  %74 = load i8, ptr %73, align 1, !tbaa !17
  %75 = trunc nuw i64 %indvars.iv.next36.2 to i32
  %76 = add i32 %75, %2
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds i8, ptr %72, i64 %77
  store i8 %74, ptr %78, align 1, !tbaa !17
  %indvars.iv.next36.3 = add nuw nsw i64 %indvars.iv35, 4
  %niter44.next.3 = add i64 %niter44, 4
  %niter44.ncmp.3 = icmp eq i64 %niter44.next.3, %unroll_iter43
  br i1 %niter44.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph29, !llvm.loop !24

79:                                               ; preds = %4, %._crit_edge
  ret void
}

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #3

declare noundef double @_ZN3imp4RandEddd(double noundef, double noundef, double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp16PermutationTable4swapIhEEvPT_S3_(ptr noundef, ptr noundef) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress 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 = { nobuiltin 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 = { nobuiltin 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 #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 = { "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 = { mustprogress 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 #6 = { builtin nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { 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, !11, i64 24}
!6 = !{!"_ZTSN3imp16PermutationTableE", !7, i64 8, !10, i64 16, !10, i64 20, !11, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!6, !7, i64 8}
!15 = !{!6, !10, i64 20}
!16 = !{!6, !10, i64 16}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !21}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass