; LLVM IR from cpuimage/cpuimagelib :: cpuimage (CPUImageColorInvertFilter)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @CPUImageColorInvertFilter(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %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 [256 x i8], align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %19 = load i32, ptr %10, align 4, !tbaa !9
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = sdiv i32 %19, %20
  store i32 %21, ptr %11, align 4, !tbaa !9
  %22 = load i32, ptr %11, align 4, !tbaa !9
  %23 = icmp eq i32 %22, 1
  br i1 %23, label %24, label %25

24:                                               ; preds = %5
  store i32 1, ptr %12, align 4
  br label %105

25:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 256, ptr %13) #3
  call void @llvm.memset.p0.i64(ptr align 16 %13, i8 0, i64 256, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %37, %25
  %27 = load i32, ptr %14, align 4, !tbaa !9
  %28 = icmp slt i32 %27, 256
  br i1 %28, label %30, label %29

29:                                               ; preds = %26
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %40

30:                                               ; preds = %26
  %31 = load i32, ptr %14, align 4, !tbaa !9
  %32 = sub nsw i32 255, %31
  %33 = trunc i32 %32 to i8
  %34 = load i32, ptr %14, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 %35
  store i8 %33, ptr %36, align 1, !tbaa !11
  br label %37

37:                                               ; preds = %30
  %38 = load i32, ptr %14, align 4, !tbaa !9
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %14, align 4, !tbaa !9
  br label %26, !llvm.loop !12

40:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %101, %40
  %42 = load i32, ptr %15, align 4, !tbaa !9
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %104

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = load i32, ptr %15, align 4, !tbaa !9
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = mul nsw i32 %48, %49
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i8, ptr %47, i64 %51
  store ptr %52, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load i32, ptr %15, align 4, !tbaa !9
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = mul nsw i32 %54, %55
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i8, ptr %53, i64 %57
  store ptr %58, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %97, %46
  %60 = load i32, ptr %18, align 4, !tbaa !9
  %61 = load i32, ptr %8, align 4, !tbaa !9
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %100

64:                                               ; preds = %59
  %65 = load ptr, ptr %17, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 0
  %67 = load i8, ptr %66, align 1, !tbaa !11
  %68 = zext i8 %67 to i64
  %69 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 %68
  %70 = load i8, ptr %69, align 1, !tbaa !11
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 0
  store i8 %70, ptr %72, align 1, !tbaa !11
  %73 = load ptr, ptr %17, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 1
  %75 = load i8, ptr %74, align 1, !tbaa !11
  %76 = zext i8 %75 to i64
  %77 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !11
  %79 = load ptr, ptr %16, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %79, i64 1
  store i8 %78, ptr %80, align 1, !tbaa !11
  %81 = load ptr, ptr %17, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 2
  %83 = load i8, ptr %82, align 1, !tbaa !11
  %84 = zext i8 %83 to i64
  %85 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !11
  %87 = load ptr, ptr %16, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 2
  store i8 %86, ptr %88, align 1, !tbaa !11
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = load ptr, ptr %17, align 8, !tbaa !5
  %91 = sext i32 %89 to i64
  %92 = getelementptr inbounds i8, ptr %90, i64 %91
  store ptr %92, ptr %17, align 8, !tbaa !5
  %93 = load i32, ptr %11, align 4, !tbaa !9
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  %95 = sext i32 %93 to i64
  %96 = getelementptr inbounds i8, ptr %94, i64 %95
  store ptr %96, ptr %16, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %64
  %98 = load i32, ptr %18, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %18, align 4, !tbaa !9
  br label %59, !llvm.loop !14

100:                                              ; preds = %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %15, align 4, !tbaa !9
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %15, align 4, !tbaa !9
  br label %41, !llvm.loop !15

104:                                              ; preds = %45
  call void @llvm.lifetime.end.p0(i64 256, ptr %13) #3
  store i32 0, ptr %12, align 4
  br label %105

105:                                              ; preds = %104, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  %106 = load i32, ptr %12, align 4
  switch i32 %106, label %108 [
    i32 0, label %107
    i32 1, label %107
  ]

107:                                              ; preds = %105, %105
  ret void

108:                                              ; preds = %105
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


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

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

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

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @CPUImageColorInvertFilter(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = alloca [256 x i8], align 16
  %7 = sdiv i32 %4, %2
  %8 = icmp eq i32 %7, 1
  br i1 %8, label %84, label %vector.ph

vector.ph:                                        ; preds = %5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %6) #3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %6, i8 0, i64 256, i1 false)
  store <16 x i8> <i8 -1, i8 -2, i8 -3, i8 -4, i8 -5, i8 -6, i8 -7, i8 -8, i8 -9, i8 -10, i8 -11, i8 -12, i8 -13, i8 -14, i8 -15, i8 -16>, ptr %6, align 16, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %6, i64 16
  store <16 x i8> <i8 -17, i8 -18, i8 -19, i8 -20, i8 -21, i8 -22, i8 -23, i8 -24, i8 -25, i8 -26, i8 -27, i8 -28, i8 -29, i8 -30, i8 -31, i8 -32>, ptr %9, align 16, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %6, i64 32
  store <16 x i8> <i8 -33, i8 -34, i8 -35, i8 -36, i8 -37, i8 -38, i8 -39, i8 -40, i8 -41, i8 -42, i8 -43, i8 -44, i8 -45, i8 -46, i8 -47, i8 -48>, ptr %10, align 16, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %6, i64 48
  store <16 x i8> <i8 -49, i8 -50, i8 -51, i8 -52, i8 -53, i8 -54, i8 -55, i8 -56, i8 -57, i8 -58, i8 -59, i8 -60, i8 -61, i8 -62, i8 -63, i8 -64>, ptr %11, align 16, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %6, i64 64
  store <16 x i8> <i8 -65, i8 -66, i8 -67, i8 -68, i8 -69, i8 -70, i8 -71, i8 -72, i8 -73, i8 -74, i8 -75, i8 -76, i8 -77, i8 -78, i8 -79, i8 -80>, ptr %12, align 16, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %6, i64 80
  store <16 x i8> <i8 -81, i8 -82, i8 -83, i8 -84, i8 -85, i8 -86, i8 -87, i8 -88, i8 -89, i8 -90, i8 -91, i8 -92, i8 -93, i8 -94, i8 -95, i8 -96>, ptr %13, align 16, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %6, i64 96
  store <16 x i8> <i8 -97, i8 -98, i8 -99, i8 -100, i8 -101, i8 -102, i8 -103, i8 -104, i8 -105, i8 -106, i8 -107, i8 -108, i8 -109, i8 -110, i8 -111, i8 -112>, ptr %14, align 16, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %6, i64 112
  store <16 x i8> <i8 -113, i8 -114, i8 -115, i8 -116, i8 -117, i8 -118, i8 -119, i8 -120, i8 -121, i8 -122, i8 -123, i8 -124, i8 -125, i8 -126, i8 -127, i8 -128>, ptr %15, align 16, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %6, i64 128
  store <16 x i8> <i8 127, i8 126, i8 125, i8 124, i8 123, i8 122, i8 121, i8 120, i8 119, i8 118, i8 117, i8 116, i8 115, i8 114, i8 113, i8 112>, ptr %16, align 16, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %6, i64 144
  store <16 x i8> <i8 111, i8 110, i8 109, i8 108, i8 107, i8 106, i8 105, i8 104, i8 103, i8 102, i8 101, i8 100, i8 99, i8 98, i8 97, i8 96>, ptr %17, align 16, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %6, i64 160
  store <16 x i8> <i8 95, i8 94, i8 93, i8 92, i8 91, i8 90, i8 89, i8 88, i8 87, i8 86, i8 85, i8 84, i8 83, i8 82, i8 81, i8 80>, ptr %18, align 16, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %6, i64 176
  store <16 x i8> <i8 79, i8 78, i8 77, i8 76, i8 75, i8 74, i8 73, i8 72, i8 71, i8 70, i8 69, i8 68, i8 67, i8 66, i8 65, i8 64>, ptr %19, align 16, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %6, i64 192
  store <16 x i8> <i8 63, i8 62, i8 61, i8 60, i8 59, i8 58, i8 57, i8 56, i8 55, i8 54, i8 53, i8 52, i8 51, i8 50, i8 49, i8 48>, ptr %20, align 16, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %6, i64 208
  store <16 x i8> <i8 47, i8 46, i8 45, i8 44, i8 43, i8 42, i8 41, i8 40, i8 39, i8 38, i8 37, i8 36, i8 35, i8 34, i8 33, i8 32>, ptr %21, align 16, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %6, i64 224
  store <16 x i8> <i8 31, i8 30, i8 29, i8 28, i8 27, i8 26, i8 25, i8 24, i8 23, i8 22, i8 21, i8 20, i8 19, i8 18, i8 17, i8 16>, ptr %22, align 16, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %6, i64 240
  store <16 x i8> <i8 15, i8 14, i8 13, i8 12, i8 11, i8 10, i8 9, i8 8, i8 7, i8 6, i8 5, i8 4, i8 3, i8 2, i8 1, i8 0>, ptr %23, align 16, !tbaa !5
  %24 = icmp sgt i32 %3, 0
  br i1 %24, label %.lr.ph38, label %._crit_edge39

.lr.ph38:                                         ; preds = %vector.ph
  %25 = icmp sgt i32 %2, 0
  %26 = sext i32 %7 to i64
  br i1 %25, label %.lr.ph.us.preheader, label %._crit_edge39

.lr.ph.us.preheader:                              ; preds = %.lr.ph38
  %27 = sext i32 %4 to i64
  %wide.trip.count = zext nneg i32 %3 to i64
  %xtraiter = and i32 %2, 1
  %28 = icmp eq i32 %2, 1
  %unroll_iter = and i32 %2, 2147483646
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %indvars.iv43 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next44, %._crit_edge.us ]
  %29 = mul nsw i64 %indvars.iv43, %27
  %30 = getelementptr inbounds i8, ptr %1, i64 %29
  %31 = getelementptr inbounds i8, ptr %0, i64 %29
  br i1 %28, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new

.lr.ph.us.new:                                    ; preds = %.lr.ph.us, %.lr.ph.us.new
  %.02835.us = phi ptr [ %66, %.lr.ph.us.new ], [ %31, %.lr.ph.us ]
  %.02934.us = phi ptr [ %67, %.lr.ph.us.new ], [ %30, %.lr.ph.us ]
  %niter = phi i32 [ %niter.next.1, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %32 = load i8, ptr %.02835.us, align 1, !tbaa !5
  %33 = zext i8 %32 to i64
  %34 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %33
  %35 = load i8, ptr %34, align 1, !tbaa !5
  store i8 %35, ptr %.02934.us, align 1, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %.02835.us, i64 1
  %37 = load i8, ptr %36, align 1, !tbaa !5
  %38 = zext i8 %37 to i64
  %39 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %38
  %40 = load i8, ptr %39, align 1, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %.02934.us, i64 1
  store i8 %40, ptr %41, align 1, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %.02835.us, i64 2
  %43 = load i8, ptr %42, align 1, !tbaa !5
  %44 = zext i8 %43 to i64
  %45 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %44
  %46 = load i8, ptr %45, align 1, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %.02934.us, i64 2
  store i8 %46, ptr %47, align 1, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %.02835.us, i64 %26
  %49 = getelementptr inbounds i8, ptr %.02934.us, i64 %26
  %50 = load i8, ptr %48, align 1, !tbaa !5
  %51 = zext i8 %50 to i64
  %52 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !5
  store i8 %53, ptr %49, align 1, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %48, i64 1
  %55 = load i8, ptr %54, align 1, !tbaa !5
  %56 = zext i8 %55 to i64
  %57 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %49, i64 1
  store i8 %58, ptr %59, align 1, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %48, i64 2
  %61 = load i8, ptr %60, align 1, !tbaa !5
  %62 = zext i8 %61 to i64
  %63 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %49, i64 2
  store i8 %64, ptr %65, align 1, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %48, i64 %26
  %67 = getelementptr inbounds i8, ptr %49, i64 %26
  %niter.next.1 = add i32 %niter, 2
  %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new, !llvm.loop !8

._crit_edge.us.unr-lcssa:                         ; preds = %.lr.ph.us.new, %.lr.ph.us
  %.02835.us.unr = phi ptr [ %31, %.lr.ph.us ], [ %66, %.lr.ph.us.new ]
  %.02934.us.unr = phi ptr [ %30, %.lr.ph.us ], [ %67, %.lr.ph.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %68 = load i8, ptr %.02835.us.unr, align 1, !tbaa !5
  %69 = zext i8 %68 to i64
  %70 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %69
  %71 = load i8, ptr %70, align 1, !tbaa !5
  store i8 %71, ptr %.02934.us.unr, align 1, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %.02835.us.unr, i64 1
  %73 = load i8, ptr %72, align 1, !tbaa !5
  %74 = zext i8 %73 to i64
  %75 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %.02934.us.unr, i64 1
  store i8 %76, ptr %77, align 1, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %.02835.us.unr, i64 2
  %79 = load i8, ptr %78, align 1, !tbaa !5
  %80 = zext i8 %79 to i64
  %81 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 %80
  %82 = load i8, ptr %81, align 1, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %.02934.us.unr, i64 2
  store i8 %82, ptr %83, align 1, !tbaa !5
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %exitcond46.not = icmp eq i64 %indvars.iv.next44, %wide.trip.count
  br i1 %exitcond46.not, label %._crit_edge39, label %.lr.ph.us, !llvm.loop !10

._crit_edge39:                                    ; preds = %._crit_edge.us, %.lr.ph38, %vector.ph
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #3
  br label %84

84:                                               ; preds = %5, %._crit_edge39
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) 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 #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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}


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