; LLVM IR from ljm941004/HYPERCV_PUBLIC :: modules/algorithm/src (HisEqualization)

; 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.SIMPLE_MAT = type { i32, i32, i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @HisEqualization(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [256 x i32], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %19

15:                                               ; preds = %2
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %15
  br label %23

19:                                               ; preds = %15, %2
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #5
  unreachable

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 8, !tbaa !9
  store i32 %26, ptr %5, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 4, !tbaa !13
  store i32 %29, ptr %6, align 4, !tbaa !12
  %30 = load i32, ptr %5, align 4, !tbaa !12
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %31, i32 0, i32 0
  %33 = load i32, ptr %32, align 8, !tbaa !9
  %34 = icmp eq i32 %30, %33
  br i1 %34, label %35, label %42

35:                                               ; preds = %23
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %36, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !13
  %39 = load i32, ptr %6, align 4, !tbaa !12
  %40 = icmp eq i32 %38, %39
  br i1 %40, label %41, label %42

41:                                               ; preds = %35
  br label %46

42:                                               ; preds = %35, %23
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #5
  unreachable

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %47, i32 0, i32 5
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  store ptr %49, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %50, i32 0, i32 5
  %52 = load ptr, ptr %51, align 8, !tbaa !14
  store ptr %52, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %9) #6
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !12
  br label %53

53:                                               ; preds = %70, %46
  %54 = load i32, ptr %10, align 4, !tbaa !12
  %55 = load i32, ptr %5, align 4, !tbaa !12
  %56 = load i32, ptr %6, align 4, !tbaa !12
  %57 = mul nsw i32 %55, %56
  %58 = icmp slt i32 %54, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %73

60:                                               ; preds = %53
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load i32, ptr %10, align 4, !tbaa !12
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds i8, ptr %61, i64 %63
  %65 = load i8, ptr %64, align 1, !tbaa !15
  %66 = zext i8 %65 to i64
  %67 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !12
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %67, align 4, !tbaa !12
  br label %70

70:                                               ; preds = %60
  %71 = load i32, ptr %10, align 4, !tbaa !12
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %10, align 4, !tbaa !12
  br label %53, !llvm.loop !16

73:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 1, ptr %11, align 4, !tbaa !12
  br label %74

74:                                               ; preds = %101, %73
  %75 = load i32, ptr %11, align 4, !tbaa !12
  %76 = icmp slt i32 %75, 256
  br i1 %76, label %78, label %77

77:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %104

78:                                               ; preds = %74
  %79 = load i32, ptr %11, align 4, !tbaa !12
  %80 = sub nsw i32 %79, 1
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !12
  %84 = load i32, ptr %11, align 4, !tbaa !12
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !12
  %88 = add nsw i32 %87, %83
  store i32 %88, ptr %86, align 4, !tbaa !12
  %89 = load i32, ptr %11, align 4, !tbaa !12
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !12
  %93 = mul nsw i32 %92, 255
  %94 = load i32, ptr %5, align 4, !tbaa !12
  %95 = load i32, ptr %6, align 4, !tbaa !12
  %96 = mul nsw i32 %94, %95
  %97 = sdiv i32 %93, %96
  %98 = load i32, ptr %11, align 4, !tbaa !12
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %99
  store i32 %97, ptr %100, align 4, !tbaa !12
  br label %101

101:                                              ; preds = %78
  %102 = load i32, ptr %11, align 4, !tbaa !12
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %11, align 4, !tbaa !12
  br label %74, !llvm.loop !18

104:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !12
  br label %105

105:                                              ; preds = %126, %104
  %106 = load i32, ptr %12, align 4, !tbaa !12
  %107 = load i32, ptr %5, align 4, !tbaa !12
  %108 = load i32, ptr %6, align 4, !tbaa !12
  %109 = mul nsw i32 %107, %108
  %110 = icmp slt i32 %106, %109
  br i1 %110, label %112, label %111

111:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %129

112:                                              ; preds = %105
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = load i32, ptr %12, align 4, !tbaa !12
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds i8, ptr %113, i64 %115
  %117 = load i8, ptr %116, align 1, !tbaa !15
  %118 = zext i8 %117 to i64
  %119 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !12
  %121 = trunc i32 %120 to i8
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = load i32, ptr %12, align 4, !tbaa !12
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds i8, ptr %122, i64 %124
  store i8 %121, ptr %125, align 1, !tbaa !15
  br label %126

126:                                              ; preds = %112
  %127 = load i32, ptr %12, align 4, !tbaa !12
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %12, align 4, !tbaa !12
  br label %105, !llvm.loop !19

129:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 1024, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret void
}

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { "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 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{!10, !6, i64 24}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


; 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 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @HisEqualization(ptr noundef readonly %0, ptr noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [256 x i32], align 16
  %4 = icmp ne ptr %0, null
  %5 = icmp ne ptr %1, null
  %or.cond = and i1 %4, %5
  br i1 %or.cond, label %10, label %6

6:                                                ; preds = %2
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #5
  unreachable

10:                                               ; preds = %2
  %11 = load i32, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 4
  %13 = load i32, ptr %12, align 4, !tbaa !11
  %14 = load i32, ptr %1, align 8, !tbaa !5
  %15 = icmp eq i32 %11, %14
  br i1 %15, label %16, label %20

16:                                               ; preds = %10
  %17 = getelementptr inbounds i8, ptr %1, i64 4
  %18 = load i32, ptr %17, align 4, !tbaa !11
  %19 = icmp eq i32 %18, %13
  br i1 %19, label %24, label %20

20:                                               ; preds = %16, %10
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #5
  unreachable

24:                                               ; preds = %16
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  %26 = load ptr, ptr %25, align 8, !tbaa !12
  %27 = getelementptr inbounds i8, ptr %1, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %3, i8 0, i64 1024, i1 false)
  %29 = mul nsw i32 %13, %11
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph.preheader, label %.preheader39.preheader

.preheader39.preheader:                           ; preds = %.preheader39.loopexit, %24
  %.ph = phi i32 [ 0, %24 ], [ %.pre.pre, %.preheader39.loopexit ]
  br label %.preheader39

.lr.ph.preheader:                                 ; preds = %24
  %wide.trip.count = zext nneg i32 %29 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %31 = icmp ult i32 %29, 4
  br i1 %31, label %.preheader39.loopexit.unr-lcssa, label %.lr.ph.preheader.new

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

.preheader39.loopexit.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 %.preheader39.loopexit, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader39.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.preheader39.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader39.loopexit.unr-lcssa ]
  %32 = getelementptr inbounds i8, ptr %26, i64 %indvars.iv.epil
  %33 = load i8, ptr %32, align 1, !tbaa !13
  %34 = zext i8 %33 to i64
  %35 = getelementptr inbounds [256 x i32], ptr %3, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !14
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %35, align 4, !tbaa !14
  %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 %.preheader39.loopexit, label %.lr.ph.epil, !llvm.loop !15

.preheader39.loopexit:                            ; preds = %.lr.ph.epil, %.preheader39.loopexit.unr-lcssa
  %.pre.pre = load i32, ptr %3, align 16, !tbaa !14
  br label %.preheader39.preheader

.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 ]
  %38 = getelementptr inbounds i8, ptr %26, i64 %indvars.iv
  %39 = load i8, ptr %38, align 1, !tbaa !13
  %40 = zext i8 %39 to i64
  %41 = getelementptr inbounds [256 x i32], ptr %3, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !14
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %41, align 4, !tbaa !14
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %44 = getelementptr inbounds i8, ptr %26, i64 %indvars.iv.next
  %45 = load i8, ptr %44, align 1, !tbaa !13
  %46 = zext i8 %45 to i64
  %47 = getelementptr inbounds [256 x i32], ptr %3, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !14
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %47, align 4, !tbaa !14
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %50 = getelementptr inbounds i8, ptr %26, i64 %indvars.iv.next.1
  %51 = load i8, ptr %50, align 1, !tbaa !13
  %52 = zext i8 %51 to i64
  %53 = getelementptr inbounds [256 x i32], ptr %3, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !14
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %53, align 4, !tbaa !14
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %56 = getelementptr inbounds i8, ptr %26, i64 %indvars.iv.next.2
  %57 = load i8, ptr %56, align 1, !tbaa !13
  %58 = zext i8 %57 to i64
  %59 = getelementptr inbounds [256 x i32], ptr %3, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !14
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %59, align 4, !tbaa !14
  %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 %.preheader39.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !17

.preheader:                                       ; preds = %.preheader39
  br i1 %30, label %.lr.ph43.preheader, label %._crit_edge

.lr.ph43.preheader:                               ; preds = %.preheader
  %wide.trip.count52 = zext nneg i32 %29 to i64
  %xtraiter55 = and i64 %wide.trip.count52, 3
  %62 = icmp ult i32 %29, 4
  br i1 %62, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph43.preheader.new

.lr.ph43.preheader.new:                           ; preds = %.lr.ph43.preheader
  %unroll_iter58 = and i64 %wide.trip.count52, 2147483644
  br label %.lr.ph43

.preheader39:                                     ; preds = %.preheader39.1, %.preheader39.preheader
  %63 = phi i32 [ %.ph, %.preheader39.preheader ], [ %73, %.preheader39.1 ]
  %indvars.iv45 = phi i64 [ 1, %.preheader39.preheader ], [ %indvars.iv.next46.1, %.preheader39.1 ]
  %64 = getelementptr inbounds [256 x i32], ptr %3, i64 0, i64 %indvars.iv45
  %65 = load i32, ptr %64, align 4, !tbaa !14
  %66 = add nsw i32 %65, %63
  %67 = mul nsw i32 %66, 255
  %68 = sdiv i32 %67, %29
  store i32 %68, ptr %64, align 4, !tbaa !14
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %exitcond48.not = icmp eq i64 %indvars.iv.next46, 256
  br i1 %exitcond48.not, label %.preheader, label %.preheader39.1, !llvm.loop !19

.preheader39.1:                                   ; preds = %.preheader39
  %69 = getelementptr inbounds [256 x i32], ptr %3, i64 0, i64 %indvars.iv.next46
  %70 = load i32, ptr %69, align 4, !tbaa !14
  %71 = add nsw i32 %70, %68
  %72 = mul nsw i32 %71, 255
  %73 = sdiv i32 %72, %29
  store i32 %73, ptr %69, align 4, !tbaa !14
  %indvars.iv.next46.1 = add nuw nsw i64 %indvars.iv45, 2
  br label %.preheader39

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph43, %.lr.ph43.preheader
  %indvars.iv49.unr = phi i64 [ 0, %.lr.ph43.preheader ], [ %indvars.iv.next50.3, %.lr.ph43 ]
  %lcmp.mod57.not = icmp eq i64 %xtraiter55, 0
  br i1 %lcmp.mod57.not, label %._crit_edge, label %.lr.ph43.epil

.lr.ph43.epil:                                    ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph43.epil
  %indvars.iv49.epil = phi i64 [ %indvars.iv.next50.epil, %.lr.ph43.epil ], [ %indvars.iv49.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter56 = phi i64 [ %epil.iter56.next, %.lr.ph43.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %74 = getelementptr inbounds i8, ptr %26, i64 %indvars.iv49.epil
  %75 = load i8, ptr %74, align 1, !tbaa !13
  %76 = zext i8 %75 to i64
  %77 = getelementptr inbounds [256 x i32], ptr %3, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !14
  %79 = trunc i32 %78 to i8
  %80 = getelementptr inbounds i8, ptr %28, i64 %indvars.iv49.epil
  store i8 %79, ptr %80, align 1, !tbaa !13
  %indvars.iv.next50.epil = add nuw nsw i64 %indvars.iv49.epil, 1
  %epil.iter56.next = add i64 %epil.iter56, 1
  %epil.iter56.cmp.not = icmp eq i64 %epil.iter56.next, %xtraiter55
  br i1 %epil.iter56.cmp.not, label %._crit_edge, label %.lr.ph43.epil, !llvm.loop !20

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph43.epil, %.preheader
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #6
  ret void

.lr.ph43:                                         ; preds = %.lr.ph43, %.lr.ph43.preheader.new
  %indvars.iv49 = phi i64 [ 0, %.lr.ph43.preheader.new ], [ %indvars.iv.next50.3, %.lr.ph43 ]
  %niter59 = phi i64 [ 0, %.lr.ph43.preheader.new ], [ %niter59.next.3, %.lr.ph43 ]
  %81 = getelementptr inbounds i8, ptr %26, i64 %indvars.iv49
  %82 = load i8, ptr %81, align 1, !tbaa !13
  %83 = zext i8 %82 to i64
  %84 = getelementptr inbounds [256 x i32], ptr %3, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !14
  %86 = trunc i32 %85 to i8
  %87 = getelementptr inbounds i8, ptr %28, i64 %indvars.iv49
  store i8 %86, ptr %87, align 1, !tbaa !13
  %indvars.iv.next50 = or disjoint i64 %indvars.iv49, 1
  %88 = getelementptr inbounds i8, ptr %26, i64 %indvars.iv.next50
  %89 = load i8, ptr %88, align 1, !tbaa !13
  %90 = zext i8 %89 to i64
  %91 = getelementptr inbounds [256 x i32], ptr %3, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !14
  %93 = trunc i32 %92 to i8
  %94 = getelementptr inbounds i8, ptr %28, i64 %indvars.iv.next50
  store i8 %93, ptr %94, align 1, !tbaa !13
  %indvars.iv.next50.1 = or disjoint i64 %indvars.iv49, 2
  %95 = getelementptr inbounds i8, ptr %26, i64 %indvars.iv.next50.1
  %96 = load i8, ptr %95, align 1, !tbaa !13
  %97 = zext i8 %96 to i64
  %98 = getelementptr inbounds [256 x i32], ptr %3, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !14
  %100 = trunc i32 %99 to i8
  %101 = getelementptr inbounds i8, ptr %28, i64 %indvars.iv.next50.1
  store i8 %100, ptr %101, align 1, !tbaa !13
  %indvars.iv.next50.2 = or disjoint i64 %indvars.iv49, 3
  %102 = getelementptr inbounds i8, ptr %26, i64 %indvars.iv.next50.2
  %103 = load i8, ptr %102, align 1, !tbaa !13
  %104 = zext i8 %103 to i64
  %105 = getelementptr inbounds [256 x i32], ptr %3, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !14
  %107 = trunc i32 %106 to i8
  %108 = getelementptr inbounds i8, ptr %28, i64 %indvars.iv.next50.2
  store i8 %107, ptr %108, align 1, !tbaa !13
  %indvars.iv.next50.3 = add nuw nsw i64 %indvars.iv49, 4
  %niter59.next.3 = add i64 %niter59, 4
  %niter59.ncmp.3 = icmp eq i64 %niter59.next.3, %unroll_iter58
  br i1 %niter59.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph43, !llvm.loop !21
}

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !10, i64 24}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !18}


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