; LLVM IR from casensiom/fast-image-processing :: src (image)

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

; Function Attrs: nounwind uwtable
declare dso_local void @create_image(ptr dead_on_unwind noalias writable sret(%struct.SImage) align 8, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @reset_image(ptr 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: 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) #2

; Function Attrs: nounwind uwtable
define dso_local void @convertToARGB(ptr dead_on_unwind noalias writable sret(%struct.SImage) align 8 %0, ptr noundef byval(%struct.SImage) align 8 %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.SImage, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %10 = getelementptr inbounds %struct.SImage, ptr %1, i32 0, i32 4
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %11, ptr %3, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %12 = getelementptr inbounds %struct.SImage, ptr %1, i32 0, i32 0
  %13 = load i32, ptr %12, align 8, !tbaa !12
  %14 = getelementptr inbounds %struct.SImage, ptr %1, i32 0, i32 1
  %15 = load i32, ptr %14, align 4, !tbaa !13
  %16 = mul i32 %13, %15
  store i32 %16, ptr %5, align 4, !tbaa !14
  call void @reset_image(ptr noundef %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #3
  %17 = getelementptr inbounds %struct.SImage, ptr %1, i32 0, i32 0
  %18 = load i32, ptr %17, align 8, !tbaa !12
  %19 = getelementptr inbounds %struct.SImage, ptr %1, i32 0, i32 1
  %20 = load i32, ptr %19, align 4, !tbaa !13
  call void @create_image(ptr dead_on_unwind writable sret(%struct.SImage) align 8 %6, i32 noundef %18, i32 noundef %20, i32 noundef 4)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %6, i64 24, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #3
  %21 = getelementptr inbounds %struct.SImage, ptr %1, i32 0, i32 3
  %22 = load i32, ptr %21, align 4, !tbaa !16
  %23 = icmp eq i32 %22, 1
  br i1 %23, label %24, label %54

24:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %25 = getelementptr inbounds %struct.SImage, ptr %0, i32 0, i32 4
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %26, ptr %7, align 8, !tbaa !11
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %27

27:                                               ; preds = %50, %24
  %28 = load i32, ptr %4, align 4, !tbaa !14
  %29 = load i32, ptr %5, align 4, !tbaa !14
  %30 = icmp ult i32 %28, %29
  br i1 %30, label %31, label %53

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %32 = load ptr, ptr %3, align 8, !tbaa !11
  %33 = load i8, ptr %32, align 1, !tbaa !17
  %34 = zext i8 %33 to i32
  store i32 %34, ptr %8, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %35 = load i32, ptr %8, align 4, !tbaa !14
  %36 = shl i32 %35, 24
  %37 = load i32, ptr %8, align 4, !tbaa !14
  %38 = shl i32 %37, 16
  %39 = or i32 %36, %38
  %40 = load i32, ptr %8, align 4, !tbaa !14
  %41 = shl i32 %40, 8
  %42 = or i32 %39, %41
  store i32 %42, ptr %9, align 4, !tbaa !14
  %43 = load i32, ptr %9, align 4, !tbaa !14
  %44 = load ptr, ptr %7, align 8, !tbaa !11
  %45 = load i32, ptr %4, align 4, !tbaa !14
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds i32, ptr %44, i64 %46
  store i32 %43, ptr %47, align 4, !tbaa !14
  %48 = load ptr, ptr %3, align 8, !tbaa !11
  %49 = getelementptr inbounds i8, ptr %48, i32 1
  store ptr %49, ptr %3, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %50

50:                                               ; preds = %31
  %51 = load i32, ptr %4, align 4, !tbaa !14
  %52 = add i32 %51, 1
  store i32 %52, ptr %4, align 4, !tbaa !14
  br label %27, !llvm.loop !18

53:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %115

54:                                               ; preds = %2
  %55 = getelementptr inbounds %struct.SImage, ptr %1, i32 0, i32 3
  %56 = load i32, ptr %55, align 4, !tbaa !16
  %57 = icmp eq i32 %56, 4
  br i1 %57, label %58, label %65

58:                                               ; preds = %54
  %59 = getelementptr inbounds %struct.SImage, ptr %0, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = load ptr, ptr %3, align 8, !tbaa !11
  %62 = load i32, ptr %5, align 4, !tbaa !14
  %63 = mul i32 %62, 4
  %64 = zext i32 %63 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %60, ptr align 1 %61, i64 %64, i1 false)
  br label %114

65:                                               ; preds = %54
  %66 = getelementptr inbounds %struct.SImage, ptr %1, i32 0, i32 3
  %67 = load i32, ptr %66, align 4, !tbaa !16
  %68 = icmp eq i32 %67, 3
  br i1 %68, label %69, label %112

69:                                               ; preds = %65
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %70

70:                                               ; preds = %108, %69
  %71 = load i32, ptr %4, align 4, !tbaa !14
  %72 = load i32, ptr %5, align 4, !tbaa !14
  %73 = icmp ult i32 %71, %72
  br i1 %73, label %74, label %111

74:                                               ; preds = %70
  %75 = load ptr, ptr %3, align 8, !tbaa !11
  %76 = load i8, ptr %75, align 1, !tbaa !17
  %77 = getelementptr inbounds %struct.SImage, ptr %0, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = load i32, ptr %4, align 4, !tbaa !14
  %80 = mul i32 %79, 3
  %81 = add i32 %80, 0
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds i8, ptr %78, i64 %82
  store i8 %76, ptr %83, align 1, !tbaa !17
  %84 = load ptr, ptr %3, align 8, !tbaa !11
  %85 = getelementptr inbounds i8, ptr %84, i32 1
  store ptr %85, ptr %3, align 8, !tbaa !11
  %86 = load ptr, ptr %3, align 8, !tbaa !11
  %87 = load i8, ptr %86, align 1, !tbaa !17
  %88 = getelementptr inbounds %struct.SImage, ptr %0, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = load i32, ptr %4, align 4, !tbaa !14
  %91 = mul i32 %90, 3
  %92 = add i32 %91, 1
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds i8, ptr %89, i64 %93
  store i8 %87, ptr %94, align 1, !tbaa !17
  %95 = load ptr, ptr %3, align 8, !tbaa !11
  %96 = getelementptr inbounds i8, ptr %95, i32 1
  store ptr %96, ptr %3, align 8, !tbaa !11
  %97 = load ptr, ptr %3, align 8, !tbaa !11
  %98 = load i8, ptr %97, align 1, !tbaa !17
  %99 = getelementptr inbounds %struct.SImage, ptr %0, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = load i32, ptr %4, align 4, !tbaa !14
  %102 = mul i32 %101, 3
  %103 = add i32 %102, 2
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds i8, ptr %100, i64 %104
  store i8 %98, ptr %105, align 1, !tbaa !17
  %106 = load ptr, ptr %3, align 8, !tbaa !11
  %107 = getelementptr inbounds i8, ptr %106, i32 1
  store ptr %107, ptr %3, align 8, !tbaa !11
  br label %108

108:                                              ; preds = %74
  %109 = load i32, ptr %4, align 4, !tbaa !14
  %110 = add i32 %109, 1
  store i32 %110, ptr %4, align 4, !tbaa !14
  br label %70, !llvm.loop !20

111:                                              ; preds = %70
  br label %113

112:                                              ; preds = %65
  br label %113

113:                                              ; preds = %112, %111
  br label %114

114:                                              ; preds = %113, %58
  br label %115

115:                                              ; preds = %114, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

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: readwrite) }
attributes #3 = { 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, !10, i64 16}
!6 = !{!"SImage", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !7, i64 4}
!14 = !{!7, !7, i64 0}
!15 = !{i64 0, i64 4, !14, i64 4, i64 4, !14, i64 8, i64 4, !14, i64 12, i64 4, !14, i64 16, i64 8, !11}
!16 = !{!6, !7, i64 12}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


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

%struct.SImage = type { i32, i32, i32, i32, ptr }

; Function Attrs: nounwind uwtable
declare dso_local void @create_image(ptr dead_on_unwind noalias writable sret(%struct.SImage) align 8, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @reset_image(ptr 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: 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) #2

; Function Attrs: nounwind uwtable
define dso_local void @convertToARGB(ptr dead_on_unwind noalias writable sret(%struct.SImage) align 8 %0, ptr nocapture noundef readonly byval(%struct.SImage) align 8 %1) local_unnamed_addr #0 {
  %3 = alloca %struct.SImage, align 8
  %4 = getelementptr inbounds i8, ptr %1, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = load i32, ptr %1, align 8, !tbaa !11
  %7 = getelementptr inbounds i8, ptr %1, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !12
  %9 = mul i32 %8, %6
  tail call void @reset_image(ptr noundef %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #3
  call void @create_image(ptr dead_on_unwind nonnull writable sret(%struct.SImage) align 8 %3, i32 noundef %6, i32 noundef %8, i32 noundef 4)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
  %10 = getelementptr inbounds i8, ptr %1, i64 12
  %11 = load i32, ptr %10, align 4, !tbaa !16
  switch i32 %11, label %.loopexit [
    i32 1, label %13
    i32 4, label %61
    i32 3, label %.preheader
  ]

.preheader:                                       ; preds = %2
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %wide.trip.count = zext i32 %9 to i64
  br label %66

13:                                               ; preds = %2
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %.not33 = icmp eq i32 %9, 0
  br i1 %.not33, label %.loopexit, label %.lr.ph32.preheader

.lr.ph32.preheader:                               ; preds = %13
  %wide.trip.count39 = zext i32 %9 to i64
  %min.iters.check = icmp ult i32 %9, 8
  br i1 %min.iters.check, label %.lr.ph32.preheader47, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph32.preheader
  %16 = shl nuw nsw i64 %wide.trip.count39, 2
  %scevgep = getelementptr i8, ptr %15, i64 %16
  %scevgep43 = getelementptr i8, ptr %5, i64 %wide.trip.count39
  %bound0 = icmp ult ptr %15, %scevgep43
  %bound1 = icmp ult ptr %5, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph32.preheader47, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count39, 4294967288
  %ind.end = getelementptr i8, ptr %5, i64 %n.vec
  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 %5, i64 %index
  %17 = getelementptr i8, ptr %next.gep, i64 4
  %wide.load = load <4 x i8>, ptr %next.gep, align 1, !tbaa !17, !alias.scope !18
  %wide.load46 = load <4 x i8>, ptr %17, align 1, !tbaa !17, !alias.scope !18
  %18 = zext <4 x i8> %wide.load to <4 x i32>
  %19 = zext <4 x i8> %wide.load46 to <4 x i32>
  %20 = shl nuw <4 x i32> %18, <i32 24, i32 24, i32 24, i32 24>
  %21 = shl nuw <4 x i32> %19, <i32 24, i32 24, i32 24, i32 24>
  %22 = shl nuw nsw <4 x i32> %18, <i32 16, i32 16, i32 16, i32 16>
  %23 = shl nuw nsw <4 x i32> %19, <i32 16, i32 16, i32 16, i32 16>
  %24 = or disjoint <4 x i32> %20, %22
  %25 = or disjoint <4 x i32> %21, %23
  %26 = shl nuw nsw <4 x i32> %18, <i32 8, i32 8, i32 8, i32 8>
  %27 = shl nuw nsw <4 x i32> %19, <i32 8, i32 8, i32 8, i32 8>
  %28 = or disjoint <4 x i32> %24, %26
  %29 = or disjoint <4 x i32> %25, %27
  %30 = getelementptr inbounds i32, ptr %15, i64 %index
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  store <4 x i32> %28, ptr %30, align 4, !tbaa !14, !alias.scope !21, !noalias !18
  store <4 x i32> %29, ptr %31, align 4, !tbaa !14, !alias.scope !21, !noalias !18
  %index.next = add nuw i64 %index, 8
  %32 = icmp eq i64 %index.next, %n.vec
  br i1 %32, label %middle.block, label %vector.body, !llvm.loop !23

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count39
  br i1 %cmp.n, label %.loopexit, label %.lr.ph32.preheader47

.lr.ph32.preheader47:                             ; preds = %middle.block, %vector.memcheck, %.lr.ph32.preheader
  %indvars.iv36.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph32.preheader ], [ %n.vec, %middle.block ]
  %.031.ph = phi ptr [ %5, %vector.memcheck ], [ %5, %.lr.ph32.preheader ], [ %ind.end, %middle.block ]
  %xtraiter = and i64 %wide.trip.count39, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph32.prol.loopexit, label %.lr.ph32.prol

.lr.ph32.prol:                                    ; preds = %.lr.ph32.preheader47
  %33 = load i8, ptr %.031.ph, align 1, !tbaa !17
  %34 = zext i8 %33 to i32
  %35 = shl nuw i32 %34, 24
  %36 = shl nuw nsw i32 %34, 16
  %37 = or disjoint i32 %35, %36
  %38 = shl nuw nsw i32 %34, 8
  %39 = or disjoint i32 %37, %38
  %40 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv36.ph
  store i32 %39, ptr %40, align 4, !tbaa !14
  %41 = getelementptr inbounds i8, ptr %.031.ph, i64 1
  %indvars.iv.next37.prol = or disjoint i64 %indvars.iv36.ph, 1
  br label %.lr.ph32.prol.loopexit

.lr.ph32.prol.loopexit:                           ; preds = %.lr.ph32.prol, %.lr.ph32.preheader47
  %indvars.iv36.unr = phi i64 [ %indvars.iv36.ph, %.lr.ph32.preheader47 ], [ %indvars.iv.next37.prol, %.lr.ph32.prol ]
  %.031.unr = phi ptr [ %.031.ph, %.lr.ph32.preheader47 ], [ %41, %.lr.ph32.prol ]
  %42 = add nsw i64 %wide.trip.count39, -1
  %43 = icmp eq i64 %indvars.iv36.ph, %42
  br i1 %43, label %.loopexit, label %.lr.ph32.preheader47.new

.lr.ph32.preheader47.new:                         ; preds = %.lr.ph32.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %15, i64 4
  br label %.lr.ph32

.lr.ph32:                                         ; preds = %.lr.ph32, %.lr.ph32.preheader47.new
  %indvars.iv36 = phi i64 [ %indvars.iv36.unr, %.lr.ph32.preheader47.new ], [ %indvars.iv.next37.1, %.lr.ph32 ]
  %.031 = phi ptr [ %.031.unr, %.lr.ph32.preheader47.new ], [ %60, %.lr.ph32 ]
  %44 = load i8, ptr %.031, align 1, !tbaa !17
  %45 = zext i8 %44 to i32
  %46 = shl nuw i32 %45, 24
  %47 = shl nuw nsw i32 %45, 16
  %48 = or disjoint i32 %46, %47
  %49 = shl nuw nsw i32 %45, 8
  %50 = or disjoint i32 %48, %49
  %51 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv36
  store i32 %50, ptr %51, align 4, !tbaa !14
  %52 = getelementptr inbounds i8, ptr %.031, i64 1
  %53 = load i8, ptr %52, align 1, !tbaa !17
  %54 = zext i8 %53 to i32
  %55 = shl nuw i32 %54, 24
  %56 = shl nuw nsw i32 %54, 16
  %57 = or disjoint i32 %55, %56
  %58 = shl nuw nsw i32 %54, 8
  %59 = or disjoint i32 %57, %58
  %gep = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv36
  store i32 %59, ptr %gep, align 4, !tbaa !14
  %60 = getelementptr inbounds i8, ptr %.031, i64 2
  %indvars.iv.next37.1 = add nuw nsw i64 %indvars.iv36, 2
  %exitcond40.not.1 = icmp eq i64 %indvars.iv.next37.1, %wide.trip.count39
  br i1 %exitcond40.not.1, label %.loopexit, label %.lr.ph32, !llvm.loop !27

61:                                               ; preds = %2
  %62 = getelementptr inbounds i8, ptr %0, i64 16
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = shl i32 %9, 2
  %65 = zext i32 %64 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %63, ptr align 1 %5, i64 %65, i1 false)
  br label %.loopexit

66:                                               ; preds = %.lr.ph, %66
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %66 ]
  %.129 = phi ptr [ %5, %.lr.ph ], [ %85, %66 ]
  %67 = load i8, ptr %.129, align 1, !tbaa !17
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = trunc nuw i64 %indvars.iv to i32
  %70 = mul i32 %69, 3
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds i8, ptr %68, i64 %71
  store i8 %67, ptr %72, align 1, !tbaa !17
  %73 = getelementptr inbounds i8, ptr %.129, i64 1
  %74 = load i8, ptr %73, align 1, !tbaa !17
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = add i32 %70, 1
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds i8, ptr %75, i64 %77
  store i8 %74, ptr %78, align 1, !tbaa !17
  %79 = getelementptr inbounds i8, ptr %.129, i64 2
  %80 = load i8, ptr %79, align 1, !tbaa !17
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = add i32 %70, 2
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds i8, ptr %81, i64 %83
  store i8 %80, ptr %84, align 1, !tbaa !17
  %85 = getelementptr inbounds i8, ptr %.129, i64 3
  %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 %.loopexit, label %66, !llvm.loop !28

.loopexit:                                        ; preds = %66, %.lr.ph32.prol.loopexit, %.lr.ph32, %middle.block, %.preheader, %13, %2, %61
  ret void
}

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: readwrite) }
attributes #3 = { 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, !10, i64 16}
!6 = !{!"SImage", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16}
!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 0}
!12 = !{!6, !7, i64 4}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14, i64 8, i64 4, !14, i64 12, i64 4, !14, i64 16, i64 8, !15}
!14 = !{!7, !7, i64 0}
!15 = !{!10, !10, i64 0}
!16 = !{!6, !7, i64 12}
!17 = !{!8, !8, i64 0}
!18 = !{!19}
!19 = distinct !{!19, !20}
!20 = distinct !{!20, !"LVerDomain"}
!21 = !{!22}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !24, !25, !26}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = distinct !{!27, !24, !25}
!28 = distinct !{!28, !24}


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